@natoora-libs/core 0.1.9-dev-doug-5 → 0.1.9-dev-doug-7
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 +169 -145
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +8 -17
- package/dist/components/index.d.ts +8 -17
- package/dist/components/index.js +180 -154
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -6592,7 +6592,7 @@ var Switch_default = memo19(LabelledSwitch);
|
|
|
6592
6592
|
import { useMemo as useMemo3, useState as useState16, useEffect as useEffect11, memo as memo21 } from "react";
|
|
6593
6593
|
import CheckIcon from "@mui/icons-material/Check";
|
|
6594
6594
|
import {
|
|
6595
|
-
Box as
|
|
6595
|
+
Box as Box29,
|
|
6596
6596
|
Checkbox as Checkbox5,
|
|
6597
6597
|
Divider as Divider9,
|
|
6598
6598
|
FormControlLabel as FormControlLabel3,
|
|
@@ -6616,7 +6616,8 @@ import {
|
|
|
6616
6616
|
TableBody,
|
|
6617
6617
|
TableContainer,
|
|
6618
6618
|
Skeleton as Skeleton2,
|
|
6619
|
-
|
|
6619
|
+
TableRow as TableRow3,
|
|
6620
|
+
TableCell as TableCell3
|
|
6620
6621
|
} from "@mui/material";
|
|
6621
6622
|
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
6622
6623
|
|
|
@@ -6813,6 +6814,7 @@ var TableEmptyResult_default = TableEmptyResult;
|
|
|
6813
6814
|
|
|
6814
6815
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
6815
6816
|
import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
6817
|
+
var ROW_HEIGHT = 56;
|
|
6816
6818
|
var useStyles47 = makeStyles47()((theme) => ({
|
|
6817
6819
|
root: {
|
|
6818
6820
|
justifyContent: "space-between",
|
|
@@ -6887,7 +6889,6 @@ var TableDesktop = ({
|
|
|
6887
6889
|
isLoading,
|
|
6888
6890
|
rowsPerPage = 50,
|
|
6889
6891
|
enableCheckboxSelection = false,
|
|
6890
|
-
enableRowActions = false,
|
|
6891
6892
|
disableInternalSort = false,
|
|
6892
6893
|
updateSort,
|
|
6893
6894
|
showClearFilterButton,
|
|
@@ -6898,14 +6899,14 @@ var TableDesktop = ({
|
|
|
6898
6899
|
onApplyFilters,
|
|
6899
6900
|
shouldShowCheckOnFilter
|
|
6900
6901
|
}) => {
|
|
6902
|
+
const { classes } = useStyles47();
|
|
6901
6903
|
const [order, setOrder] = useState15(appliedFilters?.sortDir || "desc");
|
|
6902
6904
|
const [orderBy, setOrderBy] = useState15(
|
|
6903
6905
|
appliedFilters?.sortField || "delivery_date"
|
|
6904
6906
|
);
|
|
6905
6907
|
const [selected, setSelected] = useState15(/* @__PURE__ */ new Set());
|
|
6906
6908
|
const [page] = useState15(0);
|
|
6907
|
-
const
|
|
6908
|
-
const rowHeight = 56;
|
|
6909
|
+
const numRows = data.length;
|
|
6909
6910
|
const emptyRows = useMemo2(
|
|
6910
6911
|
() => rowsPerPage - data.length,
|
|
6911
6912
|
[rowsPerPage, data]
|
|
@@ -6950,6 +6951,18 @@ var TableDesktop = ({
|
|
|
6950
6951
|
[]
|
|
6951
6952
|
);
|
|
6952
6953
|
const renderTableRows = useMemo2(() => {
|
|
6954
|
+
if (isLoading) {
|
|
6955
|
+
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ jsx110(TableRow3, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ jsx110(TableCell3, { children: /* @__PURE__ */ jsx110(
|
|
6956
|
+
Skeleton2,
|
|
6957
|
+
{
|
|
6958
|
+
animation: "pulse",
|
|
6959
|
+
variant: "rounded",
|
|
6960
|
+
height: ROW_HEIGHT - 33,
|
|
6961
|
+
sx: { bgcolor: colors.neutral100 },
|
|
6962
|
+
"data-testid": "loading-skeleton"
|
|
6963
|
+
}
|
|
6964
|
+
) }, cellIndex)) }, rowIndex));
|
|
6965
|
+
}
|
|
6953
6966
|
const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
|
|
6954
6967
|
return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
|
|
6955
6968
|
const isItemSelected = selected.has(row[keyField]);
|
|
@@ -6962,8 +6975,8 @@ var TableDesktop = ({
|
|
|
6962
6975
|
deleteItem,
|
|
6963
6976
|
isItemSelected,
|
|
6964
6977
|
enableCheckboxSelection,
|
|
6965
|
-
|
|
6966
|
-
|
|
6978
|
+
rowHeight: ROW_HEIGHT,
|
|
6979
|
+
rowId: row[keyField],
|
|
6967
6980
|
handleRowCheckboxChange,
|
|
6968
6981
|
visibleHeadCells
|
|
6969
6982
|
}
|
|
@@ -6978,8 +6991,9 @@ var TableDesktop = ({
|
|
|
6978
6991
|
page,
|
|
6979
6992
|
rowsPerPage,
|
|
6980
6993
|
selected,
|
|
6994
|
+
isLoading,
|
|
6995
|
+
numRows,
|
|
6981
6996
|
enableCheckboxSelection,
|
|
6982
|
-
enableRowActions,
|
|
6983
6997
|
disableInternalSort,
|
|
6984
6998
|
deleteItem,
|
|
6985
6999
|
keyField,
|
|
@@ -6993,17 +7007,7 @@ var TableDesktop = ({
|
|
|
6993
7007
|
}
|
|
6994
7008
|
}, [enableCheckboxSelection]);
|
|
6995
7009
|
return /* @__PURE__ */ jsx110("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsxs75(Paper10, { className: classes.paper, children: [
|
|
6996
|
-
|
|
6997
|
-
Skeleton2,
|
|
6998
|
-
{
|
|
6999
|
-
animation: "pulse",
|
|
7000
|
-
variant: "rounded",
|
|
7001
|
-
sx: { margin: 1 },
|
|
7002
|
-
height: rowHeight,
|
|
7003
|
-
"data-testid": "loading-skeleton"
|
|
7004
|
-
},
|
|
7005
|
-
index
|
|
7006
|
-
)) }) : /* @__PURE__ */ jsx110(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs75(
|
|
7010
|
+
/* @__PURE__ */ jsx110(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs75(
|
|
7007
7011
|
Table,
|
|
7008
7012
|
{
|
|
7009
7013
|
stickyHeader: true,
|
|
@@ -7018,7 +7022,7 @@ var TableDesktop = ({
|
|
|
7018
7022
|
order,
|
|
7019
7023
|
orderBy,
|
|
7020
7024
|
numSelected: selected.size,
|
|
7021
|
-
numRows
|
|
7025
|
+
numRows,
|
|
7022
7026
|
enableCheckboxSelection,
|
|
7023
7027
|
headerFilters: headerFilters ?? {},
|
|
7024
7028
|
onRequestSort: handleRequestSort,
|
|
@@ -7156,7 +7160,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7156
7160
|
const isOptionChecked = useMemo3(() => (resolvedOption) => !!selectedFilters?.some(
|
|
7157
7161
|
(value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
|
|
7158
7162
|
), [selectedFilters]);
|
|
7159
|
-
const loadingSkeletons = /* @__PURE__ */ jsxs76(
|
|
7163
|
+
const loadingSkeletons = /* @__PURE__ */ jsxs76(Box29, { "data-testid": "loading-skeletons", width: 272, children: [
|
|
7160
7164
|
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7161
7165
|
/* @__PURE__ */ jsx111(Divider9, {}),
|
|
7162
7166
|
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
@@ -7186,8 +7190,8 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7186
7190
|
"data-testid": "filter-menu",
|
|
7187
7191
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
7188
7192
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
7189
|
-
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs76(
|
|
7190
|
-
/* @__PURE__ */ jsx111(
|
|
7193
|
+
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs76(Box29, { className: classes.filterMenu, children: [
|
|
7194
|
+
/* @__PURE__ */ jsx111(Box29, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx111(
|
|
7191
7195
|
FormControlLabel3,
|
|
7192
7196
|
{
|
|
7193
7197
|
label: "Select All",
|
|
@@ -7209,11 +7213,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7209
7213
|
}
|
|
7210
7214
|
) }),
|
|
7211
7215
|
/* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
|
|
7212
|
-
/* @__PURE__ */ jsx111(
|
|
7216
|
+
/* @__PURE__ */ jsx111(Box29, { className: classes.filterOptions, children: filterOptionsData?.map(
|
|
7213
7217
|
(option) => {
|
|
7214
7218
|
const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
|
|
7215
7219
|
return /* @__PURE__ */ jsxs76(
|
|
7216
|
-
|
|
7220
|
+
Box29,
|
|
7217
7221
|
{
|
|
7218
7222
|
className: classes.filter,
|
|
7219
7223
|
children: [
|
|
@@ -7240,7 +7244,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7240
7244
|
}
|
|
7241
7245
|
) }),
|
|
7242
7246
|
/* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
|
|
7243
|
-
/* @__PURE__ */ jsxs76(
|
|
7247
|
+
/* @__PURE__ */ jsxs76(Box29, { className: classes.applyFilterButtonsContainer, children: [
|
|
7244
7248
|
/* @__PURE__ */ jsx111(
|
|
7245
7249
|
ExtendedButton_default,
|
|
7246
7250
|
{
|
|
@@ -7273,26 +7277,26 @@ var SmartTableHeaderFilterMenu_default = memo21(SmartTableHeaderFilterMenu);
|
|
|
7273
7277
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
7274
7278
|
import { useLayoutEffect, useState as useState17 } from "react";
|
|
7275
7279
|
import {
|
|
7276
|
-
Box as
|
|
7280
|
+
Box as Box31,
|
|
7277
7281
|
Paper as Paper11,
|
|
7278
7282
|
Table as MUITable,
|
|
7279
7283
|
TableBody as TableBody2,
|
|
7280
|
-
TableCell as
|
|
7284
|
+
TableCell as TableCell4,
|
|
7281
7285
|
TableContainer as TableContainer2,
|
|
7282
7286
|
TableHead as TableHead2,
|
|
7283
|
-
TableRow as
|
|
7287
|
+
TableRow as TableRow4,
|
|
7284
7288
|
TableSortLabel as TableSortLabel2
|
|
7285
7289
|
} from "@mui/material";
|
|
7286
7290
|
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
7287
7291
|
import { v4 as uuidv4 } from "uuid";
|
|
7288
7292
|
|
|
7289
7293
|
// src/components/TableLoading/TableLoading.tsx
|
|
7290
|
-
import { Box as
|
|
7294
|
+
import { Box as Box30, Skeleton as Skeleton4 } from "@mui/material";
|
|
7291
7295
|
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
7292
7296
|
var TableLoading = ({
|
|
7293
7297
|
rowsPerPage,
|
|
7294
7298
|
rowHeight
|
|
7295
|
-
}) => /* @__PURE__ */ jsx112(
|
|
7299
|
+
}) => /* @__PURE__ */ jsx112(Box30, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx112(
|
|
7296
7300
|
Skeleton4,
|
|
7297
7301
|
{
|
|
7298
7302
|
animation: "pulse",
|
|
@@ -7421,18 +7425,18 @@ var Table2 = ({
|
|
|
7421
7425
|
if (RenderItem) {
|
|
7422
7426
|
return /* @__PURE__ */ jsx113(RenderItem, { ...row }, row.id);
|
|
7423
7427
|
}
|
|
7424
|
-
return /* @__PURE__ */ jsx113(
|
|
7428
|
+
return /* @__PURE__ */ jsx113(TableRow4, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx113(TableCell4, { children: row[column.id] }, column.id)) }, row.id);
|
|
7425
7429
|
});
|
|
7426
7430
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
7427
7431
|
rowsComponents.push(
|
|
7428
|
-
/* @__PURE__ */ jsx113(
|
|
7432
|
+
/* @__PURE__ */ jsx113(TableRow4, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx113(TableCell4, { colSpan: 8 }) }, uuidv4())
|
|
7429
7433
|
);
|
|
7430
7434
|
}
|
|
7431
7435
|
return rowsComponents;
|
|
7432
7436
|
};
|
|
7433
|
-
return /* @__PURE__ */ jsx113(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx113(
|
|
7434
|
-
/* @__PURE__ */ jsx113(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx113(
|
|
7435
|
-
|
|
7437
|
+
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: [
|
|
7438
|
+
/* @__PURE__ */ jsx113(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx113(TableRow4, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx113(
|
|
7439
|
+
TableCell4,
|
|
7436
7440
|
{
|
|
7437
7441
|
align: "left",
|
|
7438
7442
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
@@ -7450,7 +7454,7 @@ var Table2 = ({
|
|
|
7450
7454
|
)) }) }),
|
|
7451
7455
|
/* @__PURE__ */ jsxs77(TableBody2, { children: [
|
|
7452
7456
|
getTableRows(),
|
|
7453
|
-
rowsPerPage === emptyRows && /* @__PURE__ */ jsx113(
|
|
7457
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ jsx113(TableRow4, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx113(TableCell4, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
7454
7458
|
] })
|
|
7455
7459
|
] }) }) }) });
|
|
7456
7460
|
};
|
|
@@ -7458,7 +7462,7 @@ var Table_default = Table2;
|
|
|
7458
7462
|
|
|
7459
7463
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7460
7464
|
import Refresh3 from "@mui/icons-material/Refresh";
|
|
7461
|
-
import { Box as
|
|
7465
|
+
import { Box as Box32, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography27 } from "@mui/material";
|
|
7462
7466
|
import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7463
7467
|
var TableDesktopFooter = ({
|
|
7464
7468
|
numPages,
|
|
@@ -7471,7 +7475,7 @@ var TableDesktopFooter = ({
|
|
|
7471
7475
|
isFetching
|
|
7472
7476
|
}) => {
|
|
7473
7477
|
return /* @__PURE__ */ jsxs78(
|
|
7474
|
-
|
|
7478
|
+
Box32,
|
|
7475
7479
|
{
|
|
7476
7480
|
py: 1,
|
|
7477
7481
|
gap: 2,
|
|
@@ -7507,7 +7511,7 @@ var TableDesktopFooter = ({
|
|
|
7507
7511
|
]
|
|
7508
7512
|
}
|
|
7509
7513
|
),
|
|
7510
|
-
/* @__PURE__ */ jsxs78(
|
|
7514
|
+
/* @__PURE__ */ jsxs78(Box32, { display: "flex", children: [
|
|
7511
7515
|
/* @__PURE__ */ jsxs78(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7512
7516
|
/* @__PURE__ */ jsx114(Typography27, { children: "Rows per page:" }),
|
|
7513
7517
|
/* @__PURE__ */ jsx114(
|
|
@@ -7516,7 +7520,6 @@ var TableDesktopFooter = ({
|
|
|
7516
7520
|
value: pageSize,
|
|
7517
7521
|
onChange: handlePageSizeChange,
|
|
7518
7522
|
size: "small",
|
|
7519
|
-
"data-testid": "page-size-options-select",
|
|
7520
7523
|
variant: "standard",
|
|
7521
7524
|
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx114(MenuItem4, { value: size, children: size }, size))
|
|
7522
7525
|
}
|
|
@@ -7537,50 +7540,13 @@ var TableDesktopFooter = ({
|
|
|
7537
7540
|
);
|
|
7538
7541
|
};
|
|
7539
7542
|
|
|
7540
|
-
// src/components/TableDesktopRowActions/TableDesktopRowActions.tsx
|
|
7541
|
-
import { Box as Box34, TableCell as TableCell4 } from "@mui/material";
|
|
7542
|
-
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
7543
|
-
var TableDesktopRowActions = ({
|
|
7544
|
-
isRowHovered,
|
|
7545
|
-
children,
|
|
7546
|
-
sx,
|
|
7547
|
-
zIndex = 1,
|
|
7548
|
-
backgroundColor
|
|
7549
|
-
}) => {
|
|
7550
|
-
return isRowHovered ? /* @__PURE__ */ jsx115(
|
|
7551
|
-
TableCell4,
|
|
7552
|
-
{
|
|
7553
|
-
padding: "none",
|
|
7554
|
-
sx: {
|
|
7555
|
-
top: 0,
|
|
7556
|
-
right: 0,
|
|
7557
|
-
zIndex,
|
|
7558
|
-
position: "sticky",
|
|
7559
|
-
display: "flex",
|
|
7560
|
-
justifyContent: "flex-end",
|
|
7561
|
-
alignItems: "center"
|
|
7562
|
-
},
|
|
7563
|
-
children: /* @__PURE__ */ jsx115(
|
|
7564
|
-
Box34,
|
|
7565
|
-
{
|
|
7566
|
-
sx,
|
|
7567
|
-
display: "flex",
|
|
7568
|
-
flexDirection: "row",
|
|
7569
|
-
bgcolor: backgroundColor ?? colors.neutral100,
|
|
7570
|
-
children
|
|
7571
|
-
}
|
|
7572
|
-
)
|
|
7573
|
-
}
|
|
7574
|
-
) : null;
|
|
7575
|
-
};
|
|
7576
|
-
|
|
7577
7543
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7578
7544
|
import { useEffect as useEffect13, useRef as useRef5, useState as useState20 } from "react";
|
|
7579
|
-
import { Checkbox as Checkbox6, TableCell as TableCell5, TextField as TextField9, Tooltip as Tooltip7 } from "@mui/material";
|
|
7545
|
+
import { Box as Box33, Checkbox as Checkbox6, IconButton as IconButton4, TableCell as TableCell5, TextField as TextField9, Tooltip as Tooltip7 } from "@mui/material";
|
|
7580
7546
|
|
|
7581
7547
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7582
7548
|
import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
|
|
7583
|
-
import { jsx as
|
|
7549
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
7584
7550
|
var resolveValue = (value) => {
|
|
7585
7551
|
if (typeof value === "string") {
|
|
7586
7552
|
return value;
|
|
@@ -7593,6 +7559,7 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7593
7559
|
inputLabel,
|
|
7594
7560
|
fieldName,
|
|
7595
7561
|
rowId,
|
|
7562
|
+
disabled,
|
|
7596
7563
|
filterOptions,
|
|
7597
7564
|
refetchFilterOptions,
|
|
7598
7565
|
isFetchingFilterOptions,
|
|
@@ -7611,13 +7578,14 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7611
7578
|
setOptions(parsedOptions);
|
|
7612
7579
|
}
|
|
7613
7580
|
}, [filterOptions]);
|
|
7614
|
-
return /* @__PURE__ */
|
|
7581
|
+
return /* @__PURE__ */ jsx115(
|
|
7615
7582
|
SmartSelect_default,
|
|
7616
7583
|
{
|
|
7617
7584
|
ref,
|
|
7618
7585
|
value: valueId,
|
|
7619
7586
|
inputLabel,
|
|
7620
7587
|
options,
|
|
7588
|
+
disabled,
|
|
7621
7589
|
refetch: refetchFilterOptions,
|
|
7622
7590
|
isFetching: isFetchingFilterOptions,
|
|
7623
7591
|
defaultOption: {
|
|
@@ -7638,17 +7606,18 @@ import CheckIcon2 from "@mui/icons-material/Check";
|
|
|
7638
7606
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7639
7607
|
import TextField8 from "@mui/material/TextField";
|
|
7640
7608
|
import { useMemo as useMemo4, useState as useState19 } from "react";
|
|
7641
|
-
import { jsx as
|
|
7609
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7642
7610
|
var TableDesktopTextField = ({
|
|
7643
7611
|
rowId,
|
|
7644
7612
|
editInitialValue,
|
|
7645
7613
|
inputLabel,
|
|
7614
|
+
disabled,
|
|
7646
7615
|
validateInput,
|
|
7647
7616
|
onUpdateEditableCell
|
|
7648
7617
|
}) => {
|
|
7649
7618
|
const [value, setValue] = useState19(editInitialValue);
|
|
7650
7619
|
const hasError = useMemo4(() => !validateInput?.(value), [value, validateInput]);
|
|
7651
|
-
return /* @__PURE__ */
|
|
7620
|
+
return /* @__PURE__ */ jsx116(
|
|
7652
7621
|
TextField8,
|
|
7653
7622
|
{
|
|
7654
7623
|
fullWidth: true,
|
|
@@ -7656,6 +7625,7 @@ var TableDesktopTextField = ({
|
|
|
7656
7625
|
defaultValue: value,
|
|
7657
7626
|
label: inputLabel,
|
|
7658
7627
|
error: hasError,
|
|
7628
|
+
disabled,
|
|
7659
7629
|
onChange: ({ target: { value: value2 } }) => {
|
|
7660
7630
|
setValue(value2);
|
|
7661
7631
|
},
|
|
@@ -7670,38 +7640,55 @@ var TableDesktopTextField = ({
|
|
|
7670
7640
|
};
|
|
7671
7641
|
|
|
7672
7642
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7673
|
-
import
|
|
7643
|
+
import Close2 from "@mui/icons-material/Close";
|
|
7644
|
+
import Edit3 from "@mui/icons-material/Edit";
|
|
7645
|
+
import { jsx as jsx117, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7674
7646
|
var TableDesktopRowCell = ({
|
|
7675
|
-
ref,
|
|
7676
7647
|
inputLabel,
|
|
7677
7648
|
editInitialValue,
|
|
7678
7649
|
rowId,
|
|
7679
7650
|
fieldName,
|
|
7680
7651
|
width,
|
|
7681
|
-
|
|
7652
|
+
disabled,
|
|
7682
7653
|
readOnlyValue,
|
|
7683
7654
|
editableCellType,
|
|
7684
7655
|
filterOptions,
|
|
7685
7656
|
refetchFilterOptions,
|
|
7686
7657
|
isFetchingFilterOptions,
|
|
7687
7658
|
validateInput,
|
|
7688
|
-
onUpdateEditableCell
|
|
7659
|
+
onUpdateEditableCell,
|
|
7660
|
+
onCellClick
|
|
7689
7661
|
}) => {
|
|
7690
7662
|
const cellRef = useRef5(null);
|
|
7691
7663
|
const [isOverflowed, setIsOverflowed] = useState20(false);
|
|
7664
|
+
const [isCellHovered, setIsCellHovered] = useState20(false);
|
|
7665
|
+
const [isEditMode, setIsEditMode] = useState20(false);
|
|
7692
7666
|
useEffect13(() => {
|
|
7693
|
-
const
|
|
7694
|
-
if (
|
|
7695
|
-
setIsOverflowed(
|
|
7667
|
+
const ref = cellRef.current;
|
|
7668
|
+
if (ref) {
|
|
7669
|
+
setIsOverflowed(ref.scrollWidth > ref.clientWidth);
|
|
7696
7670
|
}
|
|
7697
7671
|
}, [readOnlyValue, width]);
|
|
7672
|
+
useEffect13(() => {
|
|
7673
|
+
const handleKeyDown = (e) => {
|
|
7674
|
+
if (e.key === "Escape") {
|
|
7675
|
+
setIsEditMode(false);
|
|
7676
|
+
}
|
|
7677
|
+
};
|
|
7678
|
+
if (isEditMode) {
|
|
7679
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
7680
|
+
}
|
|
7681
|
+
return () => {
|
|
7682
|
+
window.removeEventListener("keydown", handleKeyDown);
|
|
7683
|
+
};
|
|
7684
|
+
}, [isEditMode]);
|
|
7698
7685
|
const editableComponents = {
|
|
7699
|
-
"select": /* @__PURE__ */
|
|
7686
|
+
"select": /* @__PURE__ */ jsx117(
|
|
7700
7687
|
TableDesktopSmartSelect,
|
|
7701
7688
|
{
|
|
7702
|
-
ref,
|
|
7703
7689
|
rowId,
|
|
7704
7690
|
fieldName,
|
|
7691
|
+
disabled,
|
|
7705
7692
|
initialValue: editInitialValue,
|
|
7706
7693
|
inputLabel: inputLabel ?? "",
|
|
7707
7694
|
filterOptions,
|
|
@@ -7710,31 +7697,34 @@ var TableDesktopRowCell = ({
|
|
|
7710
7697
|
onUpdateEditableCell
|
|
7711
7698
|
}
|
|
7712
7699
|
),
|
|
7713
|
-
"checkbox": /* @__PURE__ */
|
|
7700
|
+
"checkbox": /* @__PURE__ */ jsx117(
|
|
7714
7701
|
Checkbox6,
|
|
7715
7702
|
{
|
|
7716
7703
|
disableRipple: true,
|
|
7704
|
+
disabled,
|
|
7717
7705
|
defaultChecked: editInitialValue,
|
|
7718
7706
|
onChange: ({ target: { checked } }) => {
|
|
7719
7707
|
onUpdateEditableCell?.(rowId, checked);
|
|
7720
7708
|
}
|
|
7721
7709
|
}
|
|
7722
7710
|
),
|
|
7723
|
-
"text": /* @__PURE__ */
|
|
7711
|
+
"text": /* @__PURE__ */ jsx117(
|
|
7724
7712
|
TableDesktopTextField,
|
|
7725
7713
|
{
|
|
7726
7714
|
rowId,
|
|
7715
|
+
disabled,
|
|
7727
7716
|
editInitialValue,
|
|
7728
7717
|
inputLabel: inputLabel ?? "",
|
|
7729
7718
|
validateInput,
|
|
7730
7719
|
onUpdateEditableCell
|
|
7731
7720
|
}
|
|
7732
7721
|
),
|
|
7733
|
-
"numeric": /* @__PURE__ */
|
|
7722
|
+
"numeric": /* @__PURE__ */ jsx117(
|
|
7734
7723
|
TextField9,
|
|
7735
7724
|
{
|
|
7736
7725
|
fullWidth: true,
|
|
7737
7726
|
variant: "standard",
|
|
7727
|
+
disabled,
|
|
7738
7728
|
defaultValue: editInitialValue,
|
|
7739
7729
|
label: inputLabel,
|
|
7740
7730
|
onChange: (e) => {
|
|
@@ -7753,22 +7743,59 @@ var TableDesktopRowCell = ({
|
|
|
7753
7743
|
};
|
|
7754
7744
|
const getReadOnlyBooleanIcon = (value) => {
|
|
7755
7745
|
if (value) {
|
|
7756
|
-
return /* @__PURE__ */
|
|
7746
|
+
return /* @__PURE__ */ jsx117(CheckIcon2, { sx: { fontSize: 16 } });
|
|
7757
7747
|
}
|
|
7758
7748
|
return "-";
|
|
7759
7749
|
};
|
|
7760
|
-
|
|
7750
|
+
const handleEditClick = (e) => {
|
|
7751
|
+
e.stopPropagation();
|
|
7752
|
+
setIsEditMode((prev) => !prev);
|
|
7753
|
+
};
|
|
7754
|
+
return /* @__PURE__ */ jsx117(Tooltip7, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx117(
|
|
7761
7755
|
TableCell5,
|
|
7762
7756
|
{
|
|
7763
|
-
ref: cellRef,
|
|
7764
7757
|
align: "left",
|
|
7758
|
+
onMouseEnter: () => editableCellType && !disabled && setIsCellHovered(true),
|
|
7759
|
+
onMouseLeave: () => editableCellType && !disabled && setIsCellHovered(false),
|
|
7760
|
+
onClick: (event) => !disabled && onCellClick?.(event, isEditMode),
|
|
7765
7761
|
sx: {
|
|
7762
|
+
padding: 1,
|
|
7766
7763
|
width: width ?? "auto",
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7764
|
+
position: "relative",
|
|
7765
|
+
cursor: disabled ? "default" : "pointer",
|
|
7766
|
+
opacity: disabled ? 0.2 : 1,
|
|
7767
|
+
":hover": editableCellType && {
|
|
7768
|
+
background: isEditMode ? colors.lightBlueBackground : colors.neutral100
|
|
7769
|
+
},
|
|
7770
|
+
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7770
7771
|
},
|
|
7771
|
-
children:
|
|
7772
|
+
children: /* @__PURE__ */ jsxs79(
|
|
7773
|
+
Box33,
|
|
7774
|
+
{
|
|
7775
|
+
p: 1,
|
|
7776
|
+
ref: cellRef,
|
|
7777
|
+
overflow: "hidden",
|
|
7778
|
+
textOverflow: "ellipsis",
|
|
7779
|
+
whiteSpace: "nowrap",
|
|
7780
|
+
children: [
|
|
7781
|
+
isCellHovered ? /* @__PURE__ */ jsx117(Tooltip7, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx117(
|
|
7782
|
+
IconButton4,
|
|
7783
|
+
{
|
|
7784
|
+
onClick: handleEditClick,
|
|
7785
|
+
sx: {
|
|
7786
|
+
top: 0,
|
|
7787
|
+
right: 0,
|
|
7788
|
+
zIndex: 1,
|
|
7789
|
+
borderRadius: 0,
|
|
7790
|
+
position: "absolute"
|
|
7791
|
+
},
|
|
7792
|
+
children: isEditMode ? /* @__PURE__ */ jsx117(Close2, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx117(Edit3, { fontSize: "small" })
|
|
7793
|
+
}
|
|
7794
|
+
) }) : null,
|
|
7795
|
+
isEditMode && editableCellType ? editableComponents[editableCellType] : typeof readOnlyValue === "boolean" ? getReadOnlyBooleanIcon(readOnlyValue) : readOnlyValue
|
|
7796
|
+
]
|
|
7797
|
+
}
|
|
7798
|
+
)
|
|
7772
7799
|
}
|
|
7773
7800
|
) });
|
|
7774
7801
|
};
|
|
@@ -7776,9 +7803,9 @@ var TableDesktopRowCell = ({
|
|
|
7776
7803
|
// src/components/TableHeader/TableHeader.tsx
|
|
7777
7804
|
import { memo as memo23, useEffect as useEffect14, useState as useState21 } from "react";
|
|
7778
7805
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
7779
|
-
import { TableCell as TableCell6, TableHead as TableHead3, TableRow as
|
|
7806
|
+
import { TableCell as TableCell6, TableHead as TableHead3, TableRow as TableRow5, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
7780
7807
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
7781
|
-
import { jsx as
|
|
7808
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
7782
7809
|
var useStyles50 = makeStyles50()(() => ({
|
|
7783
7810
|
sortLabel: {
|
|
7784
7811
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -7823,7 +7850,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7823
7850
|
});
|
|
7824
7851
|
setSortableCells(sortedCells);
|
|
7825
7852
|
};
|
|
7826
|
-
return /* @__PURE__ */
|
|
7853
|
+
return /* @__PURE__ */ jsx118(TableHead3, { children: /* @__PURE__ */ jsx118(TableRow5, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx118(TableCell6, { children: cell.isSortable ? /* @__PURE__ */ jsx118(
|
|
7827
7854
|
TableSortLabel3,
|
|
7828
7855
|
{
|
|
7829
7856
|
className: classes.sortLabel,
|
|
@@ -7837,9 +7864,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7837
7864
|
var TableHeader_default = memo23(TableHeader);
|
|
7838
7865
|
|
|
7839
7866
|
// src/components/TextDivider/TextDivider.tsx
|
|
7840
|
-
import { Box as
|
|
7867
|
+
import { Box as Box34, Typography as Typography28, Divider as Divider10, Button as Button14 } from "@mui/material";
|
|
7841
7868
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
7842
|
-
import { jsx as
|
|
7869
|
+
import { jsx as jsx119, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7843
7870
|
var useStyles51 = makeStyles51()(() => ({
|
|
7844
7871
|
icon: {
|
|
7845
7872
|
fontSize: 20
|
|
@@ -7876,18 +7903,18 @@ var TextDivider = ({
|
|
|
7876
7903
|
}) => {
|
|
7877
7904
|
const { classes } = useStyles51();
|
|
7878
7905
|
const iconColor = color ?? colors.neutral900;
|
|
7879
|
-
return /* @__PURE__ */
|
|
7880
|
-
|
|
7906
|
+
return /* @__PURE__ */ jsxs80(
|
|
7907
|
+
Box34,
|
|
7881
7908
|
{
|
|
7882
7909
|
display: "flex",
|
|
7883
7910
|
alignItems: "center",
|
|
7884
7911
|
justifyContent: "space-between",
|
|
7885
7912
|
className: classes.container,
|
|
7886
7913
|
children: [
|
|
7887
|
-
/* @__PURE__ */
|
|
7888
|
-
/* @__PURE__ */
|
|
7889
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
7890
|
-
/* @__PURE__ */
|
|
7914
|
+
/* @__PURE__ */ jsx119(Divider10, { className: classes.leftDivider }),
|
|
7915
|
+
/* @__PURE__ */ jsx119(Button14, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs80(Box34, { className: classes.center, children: [
|
|
7916
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx119(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
7917
|
+
/* @__PURE__ */ jsx119(
|
|
7891
7918
|
Typography28,
|
|
7892
7919
|
{
|
|
7893
7920
|
color: "textSecondary",
|
|
@@ -7896,9 +7923,9 @@ var TextDivider = ({
|
|
|
7896
7923
|
children: title
|
|
7897
7924
|
}
|
|
7898
7925
|
),
|
|
7899
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
7926
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx119(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
7900
7927
|
] }) }),
|
|
7901
|
-
/* @__PURE__ */
|
|
7928
|
+
/* @__PURE__ */ jsx119(Divider10, { className: classes.rightDivider })
|
|
7902
7929
|
]
|
|
7903
7930
|
}
|
|
7904
7931
|
);
|
|
@@ -7910,7 +7937,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
7910
7937
|
import { makeStyles as makeStyles52 } from "tss-react/mui";
|
|
7911
7938
|
import "react-dates/initialize";
|
|
7912
7939
|
import "react-dates/lib/css/_datepicker.css";
|
|
7913
|
-
import { jsx as
|
|
7940
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
7914
7941
|
var useStyles52 = makeStyles52()((theme) => ({
|
|
7915
7942
|
wrapper: {
|
|
7916
7943
|
"& .DateRangePicker": {
|
|
@@ -8006,15 +8033,15 @@ var ThemedDateRangePicker = ({
|
|
|
8006
8033
|
...props
|
|
8007
8034
|
}) => {
|
|
8008
8035
|
const { classes, cx } = useStyles52();
|
|
8009
|
-
return /* @__PURE__ */
|
|
8036
|
+
return /* @__PURE__ */ jsx120("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx120(DateRangePicker, { ...props }) });
|
|
8010
8037
|
};
|
|
8011
8038
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
8012
8039
|
|
|
8013
8040
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
8014
8041
|
import { memo as memo24 } from "react";
|
|
8015
|
-
import { AppBar, Box as
|
|
8042
|
+
import { AppBar, Box as Box35, Toolbar } from "@mui/material";
|
|
8016
8043
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
8017
|
-
import { jsx as
|
|
8044
|
+
import { jsx as jsx121, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8018
8045
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
8019
8046
|
menuButton: {
|
|
8020
8047
|
color: theme.palette.primary.contrastText
|
|
@@ -8034,9 +8061,9 @@ var TheToolbar = ({
|
|
|
8034
8061
|
rightSection
|
|
8035
8062
|
}) => {
|
|
8036
8063
|
const { classes } = useStyles53();
|
|
8037
|
-
return /* @__PURE__ */
|
|
8038
|
-
/* @__PURE__ */
|
|
8039
|
-
/* @__PURE__ */
|
|
8064
|
+
return /* @__PURE__ */ jsxs81(Box35, { children: [
|
|
8065
|
+
/* @__PURE__ */ jsx121(AppBar, { children: /* @__PURE__ */ jsxs81(Toolbar, { className: classes.topBar, children: [
|
|
8066
|
+
/* @__PURE__ */ jsx121(
|
|
8040
8067
|
RoundButton_default,
|
|
8041
8068
|
{
|
|
8042
8069
|
className: classes.menuButton,
|
|
@@ -8045,7 +8072,7 @@ var TheToolbar = ({
|
|
|
8045
8072
|
onClick: handleOpen
|
|
8046
8073
|
}
|
|
8047
8074
|
),
|
|
8048
|
-
/* @__PURE__ */
|
|
8075
|
+
/* @__PURE__ */ jsx121(
|
|
8049
8076
|
CompanyLogo_default,
|
|
8050
8077
|
{
|
|
8051
8078
|
size: "small",
|
|
@@ -8054,8 +8081,8 @@ var TheToolbar = ({
|
|
|
8054
8081
|
imageLogoLightSmall
|
|
8055
8082
|
}
|
|
8056
8083
|
),
|
|
8057
|
-
/* @__PURE__ */
|
|
8058
|
-
/* @__PURE__ */
|
|
8084
|
+
/* @__PURE__ */ jsx121(Box35, { ml: 2, children: leftSection }),
|
|
8085
|
+
/* @__PURE__ */ jsx121(Box35, { ml: "auto", children: rightSection })
|
|
8059
8086
|
] }) }),
|
|
8060
8087
|
LeftDrawer
|
|
8061
8088
|
] });
|
|
@@ -8064,20 +8091,20 @@ var TheToolbar_default = memo24(TheToolbar);
|
|
|
8064
8091
|
|
|
8065
8092
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8066
8093
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
8067
|
-
import { jsx as
|
|
8094
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
8068
8095
|
var ToastMessage = ({
|
|
8069
8096
|
toastType,
|
|
8070
8097
|
toastMessage,
|
|
8071
8098
|
open,
|
|
8072
8099
|
onClose
|
|
8073
|
-
}) => /* @__PURE__ */
|
|
8100
|
+
}) => /* @__PURE__ */ jsx122(
|
|
8074
8101
|
Snackbar,
|
|
8075
8102
|
{
|
|
8076
8103
|
open,
|
|
8077
8104
|
autoHideDuration: 1500,
|
|
8078
8105
|
onClose,
|
|
8079
8106
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8080
|
-
children: /* @__PURE__ */
|
|
8107
|
+
children: /* @__PURE__ */ jsx122(
|
|
8081
8108
|
MuiAlert,
|
|
8082
8109
|
{
|
|
8083
8110
|
elevation: 6,
|
|
@@ -8108,13 +8135,13 @@ import {
|
|
|
8108
8135
|
Typography as Typography29,
|
|
8109
8136
|
Dialog as Dialog5,
|
|
8110
8137
|
Backdrop,
|
|
8111
|
-
Box as
|
|
8138
|
+
Box as Box36,
|
|
8112
8139
|
Divider as Divider11,
|
|
8113
8140
|
Paper as Paper12,
|
|
8114
8141
|
Fade as Fade2
|
|
8115
8142
|
} from "@mui/material";
|
|
8116
8143
|
import { makeStyles as makeStyles54 } from "tss-react/mui";
|
|
8117
|
-
import { jsx as
|
|
8144
|
+
import { jsx as jsx123, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8118
8145
|
var useStyles54 = makeStyles54()((theme) => ({
|
|
8119
8146
|
paper: {
|
|
8120
8147
|
padding: theme.spacing(2)
|
|
@@ -8144,7 +8171,7 @@ var TwoButtonDialog = ({
|
|
|
8144
8171
|
cancelButton
|
|
8145
8172
|
}) => {
|
|
8146
8173
|
const { classes } = useStyles54();
|
|
8147
|
-
return /* @__PURE__ */
|
|
8174
|
+
return /* @__PURE__ */ jsx123(
|
|
8148
8175
|
Dialog5,
|
|
8149
8176
|
{
|
|
8150
8177
|
open,
|
|
@@ -8154,10 +8181,10 @@ var TwoButtonDialog = ({
|
|
|
8154
8181
|
closeAfterTransition: true,
|
|
8155
8182
|
BackdropComponent: Backdrop,
|
|
8156
8183
|
BackdropProps: { timeout: 500 },
|
|
8157
|
-
children: /* @__PURE__ */
|
|
8158
|
-
/* @__PURE__ */
|
|
8159
|
-
/* @__PURE__ */
|
|
8160
|
-
|
|
8184
|
+
children: /* @__PURE__ */ jsx123(Fade2, { in: open, children: /* @__PURE__ */ jsxs82(Paper12, { className: classes.paper, children: [
|
|
8185
|
+
/* @__PURE__ */ jsxs82(Box36, { className: classes.mb, children: [
|
|
8186
|
+
/* @__PURE__ */ jsx123(Typography29, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx123(
|
|
8187
|
+
Box36,
|
|
8161
8188
|
{
|
|
8162
8189
|
sx: {
|
|
8163
8190
|
fontWeight: 600
|
|
@@ -8165,23 +8192,23 @@ var TwoButtonDialog = ({
|
|
|
8165
8192
|
children: title
|
|
8166
8193
|
}
|
|
8167
8194
|
) }),
|
|
8168
|
-
/* @__PURE__ */
|
|
8169
|
-
|
|
8195
|
+
/* @__PURE__ */ jsxs82(
|
|
8196
|
+
Box36,
|
|
8170
8197
|
{
|
|
8171
8198
|
className: classes.mt,
|
|
8172
8199
|
sx: {
|
|
8173
8200
|
fontWeight: 600
|
|
8174
8201
|
},
|
|
8175
8202
|
children: [
|
|
8176
|
-
subtitle1 && /* @__PURE__ */
|
|
8177
|
-
subtitle2 && /* @__PURE__ */
|
|
8203
|
+
subtitle1 && /* @__PURE__ */ jsx123(Typography29, { variant: "subtitle1", children: subtitle1 }),
|
|
8204
|
+
subtitle2 && /* @__PURE__ */ jsx123(Typography29, { variant: "subtitle1", children: subtitle2 })
|
|
8178
8205
|
]
|
|
8179
8206
|
}
|
|
8180
8207
|
)
|
|
8181
8208
|
] }),
|
|
8182
|
-
/* @__PURE__ */
|
|
8183
|
-
/* @__PURE__ */
|
|
8184
|
-
/* @__PURE__ */
|
|
8209
|
+
/* @__PURE__ */ jsx123(Divider11, {}),
|
|
8210
|
+
/* @__PURE__ */ jsxs82(Box36, { className: classes.buttonContainer, children: [
|
|
8211
|
+
/* @__PURE__ */ jsx123(
|
|
8185
8212
|
FilledButton_default,
|
|
8186
8213
|
{
|
|
8187
8214
|
copy: cancelLabel,
|
|
@@ -8194,7 +8221,7 @@ var TwoButtonDialog = ({
|
|
|
8194
8221
|
}
|
|
8195
8222
|
}
|
|
8196
8223
|
),
|
|
8197
|
-
/* @__PURE__ */
|
|
8224
|
+
/* @__PURE__ */ jsx123(
|
|
8198
8225
|
FilledButton_default,
|
|
8199
8226
|
{
|
|
8200
8227
|
color: "primary",
|
|
@@ -8203,7 +8230,7 @@ var TwoButtonDialog = ({
|
|
|
8203
8230
|
}
|
|
8204
8231
|
)
|
|
8205
8232
|
] }),
|
|
8206
|
-
/* @__PURE__ */
|
|
8233
|
+
/* @__PURE__ */ jsx123(Loading_default, { isLoading: dialogLoading })
|
|
8207
8234
|
] }) })
|
|
8208
8235
|
}
|
|
8209
8236
|
);
|
|
@@ -8213,9 +8240,9 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8213
8240
|
// src/components/UserBust/UserBust.tsx
|
|
8214
8241
|
import { memo as memo25 } from "react";
|
|
8215
8242
|
import { Avatar as Avatar2, Typography as Typography30 } from "@mui/material";
|
|
8216
|
-
import { jsx as
|
|
8217
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
8218
|
-
/* @__PURE__ */
|
|
8243
|
+
import { jsx as jsx124, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8244
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs83("div", { children: [
|
|
8245
|
+
/* @__PURE__ */ jsx124(
|
|
8219
8246
|
Avatar2,
|
|
8220
8247
|
{
|
|
8221
8248
|
src: user.profile_picture,
|
|
@@ -8223,18 +8250,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8223
8250
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8224
8251
|
}
|
|
8225
8252
|
),
|
|
8226
|
-
/* @__PURE__ */
|
|
8227
|
-
/* @__PURE__ */
|
|
8228
|
-
/* @__PURE__ */
|
|
8253
|
+
/* @__PURE__ */ jsxs83("div", { style: { paddingTop: 16 }, children: [
|
|
8254
|
+
/* @__PURE__ */ jsx124(Typography30, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8255
|
+
/* @__PURE__ */ jsx124(Typography30, { ...typographyProps.username, children: user.username })
|
|
8229
8256
|
] })
|
|
8230
8257
|
] });
|
|
8231
8258
|
var UserBust_default = memo25(UserBust);
|
|
8232
8259
|
|
|
8233
8260
|
// src/components/icons/IconChart.tsx
|
|
8234
|
-
import { jsx as
|
|
8261
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
8235
8262
|
var SvgIconChart = (props) => {
|
|
8236
8263
|
const { fill } = props;
|
|
8237
|
-
return /* @__PURE__ */
|
|
8264
|
+
return /* @__PURE__ */ jsx125(
|
|
8238
8265
|
"svg",
|
|
8239
8266
|
{
|
|
8240
8267
|
width: "20",
|
|
@@ -8243,7 +8270,7 @@ var SvgIconChart = (props) => {
|
|
|
8243
8270
|
fill: "none",
|
|
8244
8271
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8245
8272
|
...props,
|
|
8246
|
-
children: /* @__PURE__ */
|
|
8273
|
+
children: /* @__PURE__ */ jsx125(
|
|
8247
8274
|
"path",
|
|
8248
8275
|
{
|
|
8249
8276
|
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",
|
|
@@ -8322,7 +8349,6 @@ export {
|
|
|
8322
8349
|
Table_default as Table,
|
|
8323
8350
|
TableDesktop_default as TableDesktop,
|
|
8324
8351
|
TableDesktopFooter,
|
|
8325
|
-
TableDesktopRowActions,
|
|
8326
8352
|
TableDesktopRowCell,
|
|
8327
8353
|
TableDesktopSmartSelect,
|
|
8328
8354
|
TableEmptyResult_default as TableEmptyResult,
|