@natoora-libs/core 0.1.9-dev-doug-5 → 0.1.9-dev-doug-6
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 +158 -140
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +6 -14
- package/dist/components/index.d.ts +6 -14
- package/dist/components/index.js +169 -149
- 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",
|
|
@@ -6898,14 +6900,14 @@ var TableDesktop = ({
|
|
|
6898
6900
|
onApplyFilters,
|
|
6899
6901
|
shouldShowCheckOnFilter
|
|
6900
6902
|
}) => {
|
|
6903
|
+
const { classes } = useStyles47();
|
|
6901
6904
|
const [order, setOrder] = useState15(appliedFilters?.sortDir || "desc");
|
|
6902
6905
|
const [orderBy, setOrderBy] = useState15(
|
|
6903
6906
|
appliedFilters?.sortField || "delivery_date"
|
|
6904
6907
|
);
|
|
6905
6908
|
const [selected, setSelected] = useState15(/* @__PURE__ */ new Set());
|
|
6906
6909
|
const [page] = useState15(0);
|
|
6907
|
-
const
|
|
6908
|
-
const rowHeight = 56;
|
|
6910
|
+
const numRows = data.length;
|
|
6909
6911
|
const emptyRows = useMemo2(
|
|
6910
6912
|
() => rowsPerPage - data.length,
|
|
6911
6913
|
[rowsPerPage, data]
|
|
@@ -6951,6 +6953,18 @@ var TableDesktop = ({
|
|
|
6951
6953
|
);
|
|
6952
6954
|
const renderTableRows = useMemo2(() => {
|
|
6953
6955
|
const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
|
|
6956
|
+
if (isLoading) {
|
|
6957
|
+
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ jsx110(TableRow3, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ jsx110(TableCell3, { children: /* @__PURE__ */ jsx110(
|
|
6958
|
+
Skeleton2,
|
|
6959
|
+
{
|
|
6960
|
+
animation: "pulse",
|
|
6961
|
+
variant: "rounded",
|
|
6962
|
+
height: ROW_HEIGHT - 33,
|
|
6963
|
+
sx: { bgcolor: colors.neutral150 },
|
|
6964
|
+
"data-testid": "loading-skeleton"
|
|
6965
|
+
}
|
|
6966
|
+
) }, cellIndex)) }, rowIndex));
|
|
6967
|
+
}
|
|
6954
6968
|
return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
|
|
6955
6969
|
const isItemSelected = selected.has(row[keyField]);
|
|
6956
6970
|
return /* @__PURE__ */ jsx110(
|
|
@@ -6962,8 +6976,8 @@ var TableDesktop = ({
|
|
|
6962
6976
|
deleteItem,
|
|
6963
6977
|
isItemSelected,
|
|
6964
6978
|
enableCheckboxSelection,
|
|
6965
|
-
|
|
6966
|
-
|
|
6979
|
+
rowHeight: ROW_HEIGHT,
|
|
6980
|
+
rowId: row[keyField],
|
|
6967
6981
|
handleRowCheckboxChange,
|
|
6968
6982
|
visibleHeadCells
|
|
6969
6983
|
}
|
|
@@ -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,53 @@ 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
7757
|
ref: cellRef,
|
|
7764
7758
|
align: "left",
|
|
7759
|
+
onMouseEnter: () => editableCellType && !disabled && setIsCellHovered(true),
|
|
7760
|
+
onMouseLeave: () => editableCellType && !disabled && setIsCellHovered(false),
|
|
7761
|
+
onClick: (event) => !disabled && onCellClick?.(event, isEditMode),
|
|
7765
7762
|
sx: {
|
|
7763
|
+
padding: 1,
|
|
7766
7764
|
width: width ?? "auto",
|
|
7767
7765
|
overflow: "hidden",
|
|
7768
7766
|
textOverflow: "ellipsis",
|
|
7769
|
-
whiteSpace: "nowrap"
|
|
7767
|
+
whiteSpace: "nowrap",
|
|
7768
|
+
position: "relative",
|
|
7769
|
+
cursor: disabled ? "default" : "pointer",
|
|
7770
|
+
opacity: disabled ? 0.2 : 1,
|
|
7771
|
+
":hover": editableCellType && {
|
|
7772
|
+
background: isEditMode ? colors.lightBlueBackground : colors.neutral100
|
|
7773
|
+
},
|
|
7774
|
+
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7770
7775
|
},
|
|
7771
|
-
children:
|
|
7776
|
+
children: /* @__PURE__ */ jsxs79(Box33, { p: 1, children: [
|
|
7777
|
+
isCellHovered ? /* @__PURE__ */ jsx117(Tooltip7, { title: "Toggle Edit Mode", children: /* @__PURE__ */ jsx117(
|
|
7778
|
+
IconButton4,
|
|
7779
|
+
{
|
|
7780
|
+
onClick: handleEditClick,
|
|
7781
|
+
sx: {
|
|
7782
|
+
position: "absolute",
|
|
7783
|
+
top: 0,
|
|
7784
|
+
right: 0,
|
|
7785
|
+
zIndex: 1,
|
|
7786
|
+
borderRadius: 0
|
|
7787
|
+
},
|
|
7788
|
+
children: isEditMode ? /* @__PURE__ */ jsx117(Close2, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx117(Edit3, { fontSize: "small" })
|
|
7789
|
+
}
|
|
7790
|
+
) }) : null,
|
|
7791
|
+
isEditMode && editableCellType ? editableComponents[editableCellType] : typeof readOnlyValue === "boolean" ? getReadOnlyBooleanIcon(readOnlyValue) : readOnlyValue
|
|
7792
|
+
] })
|
|
7772
7793
|
}
|
|
7773
7794
|
) });
|
|
7774
7795
|
};
|
|
@@ -7776,9 +7797,9 @@ var TableDesktopRowCell = ({
|
|
|
7776
7797
|
// src/components/TableHeader/TableHeader.tsx
|
|
7777
7798
|
import { memo as memo23, useEffect as useEffect14, useState as useState21 } from "react";
|
|
7778
7799
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
7779
|
-
import { TableCell as TableCell6, TableHead as TableHead3, TableRow as
|
|
7800
|
+
import { TableCell as TableCell6, TableHead as TableHead3, TableRow as TableRow5, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
7780
7801
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
7781
|
-
import { jsx as
|
|
7802
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
7782
7803
|
var useStyles50 = makeStyles50()(() => ({
|
|
7783
7804
|
sortLabel: {
|
|
7784
7805
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -7823,7 +7844,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7823
7844
|
});
|
|
7824
7845
|
setSortableCells(sortedCells);
|
|
7825
7846
|
};
|
|
7826
|
-
return /* @__PURE__ */
|
|
7847
|
+
return /* @__PURE__ */ jsx118(TableHead3, { children: /* @__PURE__ */ jsx118(TableRow5, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx118(TableCell6, { children: cell.isSortable ? /* @__PURE__ */ jsx118(
|
|
7827
7848
|
TableSortLabel3,
|
|
7828
7849
|
{
|
|
7829
7850
|
className: classes.sortLabel,
|
|
@@ -7837,9 +7858,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7837
7858
|
var TableHeader_default = memo23(TableHeader);
|
|
7838
7859
|
|
|
7839
7860
|
// src/components/TextDivider/TextDivider.tsx
|
|
7840
|
-
import { Box as
|
|
7861
|
+
import { Box as Box34, Typography as Typography28, Divider as Divider10, Button as Button14 } from "@mui/material";
|
|
7841
7862
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
7842
|
-
import { jsx as
|
|
7863
|
+
import { jsx as jsx119, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7843
7864
|
var useStyles51 = makeStyles51()(() => ({
|
|
7844
7865
|
icon: {
|
|
7845
7866
|
fontSize: 20
|
|
@@ -7876,18 +7897,18 @@ var TextDivider = ({
|
|
|
7876
7897
|
}) => {
|
|
7877
7898
|
const { classes } = useStyles51();
|
|
7878
7899
|
const iconColor = color ?? colors.neutral900;
|
|
7879
|
-
return /* @__PURE__ */
|
|
7880
|
-
|
|
7900
|
+
return /* @__PURE__ */ jsxs80(
|
|
7901
|
+
Box34,
|
|
7881
7902
|
{
|
|
7882
7903
|
display: "flex",
|
|
7883
7904
|
alignItems: "center",
|
|
7884
7905
|
justifyContent: "space-between",
|
|
7885
7906
|
className: classes.container,
|
|
7886
7907
|
children: [
|
|
7887
|
-
/* @__PURE__ */
|
|
7888
|
-
/* @__PURE__ */
|
|
7889
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
7890
|
-
/* @__PURE__ */
|
|
7908
|
+
/* @__PURE__ */ jsx119(Divider10, { className: classes.leftDivider }),
|
|
7909
|
+
/* @__PURE__ */ jsx119(Button14, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs80(Box34, { className: classes.center, children: [
|
|
7910
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx119(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
7911
|
+
/* @__PURE__ */ jsx119(
|
|
7891
7912
|
Typography28,
|
|
7892
7913
|
{
|
|
7893
7914
|
color: "textSecondary",
|
|
@@ -7896,9 +7917,9 @@ var TextDivider = ({
|
|
|
7896
7917
|
children: title
|
|
7897
7918
|
}
|
|
7898
7919
|
),
|
|
7899
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
7920
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx119(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
7900
7921
|
] }) }),
|
|
7901
|
-
/* @__PURE__ */
|
|
7922
|
+
/* @__PURE__ */ jsx119(Divider10, { className: classes.rightDivider })
|
|
7902
7923
|
]
|
|
7903
7924
|
}
|
|
7904
7925
|
);
|
|
@@ -7910,7 +7931,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
7910
7931
|
import { makeStyles as makeStyles52 } from "tss-react/mui";
|
|
7911
7932
|
import "react-dates/initialize";
|
|
7912
7933
|
import "react-dates/lib/css/_datepicker.css";
|
|
7913
|
-
import { jsx as
|
|
7934
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
7914
7935
|
var useStyles52 = makeStyles52()((theme) => ({
|
|
7915
7936
|
wrapper: {
|
|
7916
7937
|
"& .DateRangePicker": {
|
|
@@ -8006,15 +8027,15 @@ var ThemedDateRangePicker = ({
|
|
|
8006
8027
|
...props
|
|
8007
8028
|
}) => {
|
|
8008
8029
|
const { classes, cx } = useStyles52();
|
|
8009
|
-
return /* @__PURE__ */
|
|
8030
|
+
return /* @__PURE__ */ jsx120("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx120(DateRangePicker, { ...props }) });
|
|
8010
8031
|
};
|
|
8011
8032
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
8012
8033
|
|
|
8013
8034
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
8014
8035
|
import { memo as memo24 } from "react";
|
|
8015
|
-
import { AppBar, Box as
|
|
8036
|
+
import { AppBar, Box as Box35, Toolbar } from "@mui/material";
|
|
8016
8037
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
8017
|
-
import { jsx as
|
|
8038
|
+
import { jsx as jsx121, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8018
8039
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
8019
8040
|
menuButton: {
|
|
8020
8041
|
color: theme.palette.primary.contrastText
|
|
@@ -8034,9 +8055,9 @@ var TheToolbar = ({
|
|
|
8034
8055
|
rightSection
|
|
8035
8056
|
}) => {
|
|
8036
8057
|
const { classes } = useStyles53();
|
|
8037
|
-
return /* @__PURE__ */
|
|
8038
|
-
/* @__PURE__ */
|
|
8039
|
-
/* @__PURE__ */
|
|
8058
|
+
return /* @__PURE__ */ jsxs81(Box35, { children: [
|
|
8059
|
+
/* @__PURE__ */ jsx121(AppBar, { children: /* @__PURE__ */ jsxs81(Toolbar, { className: classes.topBar, children: [
|
|
8060
|
+
/* @__PURE__ */ jsx121(
|
|
8040
8061
|
RoundButton_default,
|
|
8041
8062
|
{
|
|
8042
8063
|
className: classes.menuButton,
|
|
@@ -8045,7 +8066,7 @@ var TheToolbar = ({
|
|
|
8045
8066
|
onClick: handleOpen
|
|
8046
8067
|
}
|
|
8047
8068
|
),
|
|
8048
|
-
/* @__PURE__ */
|
|
8069
|
+
/* @__PURE__ */ jsx121(
|
|
8049
8070
|
CompanyLogo_default,
|
|
8050
8071
|
{
|
|
8051
8072
|
size: "small",
|
|
@@ -8054,8 +8075,8 @@ var TheToolbar = ({
|
|
|
8054
8075
|
imageLogoLightSmall
|
|
8055
8076
|
}
|
|
8056
8077
|
),
|
|
8057
|
-
/* @__PURE__ */
|
|
8058
|
-
/* @__PURE__ */
|
|
8078
|
+
/* @__PURE__ */ jsx121(Box35, { ml: 2, children: leftSection }),
|
|
8079
|
+
/* @__PURE__ */ jsx121(Box35, { ml: "auto", children: rightSection })
|
|
8059
8080
|
] }) }),
|
|
8060
8081
|
LeftDrawer
|
|
8061
8082
|
] });
|
|
@@ -8064,20 +8085,20 @@ var TheToolbar_default = memo24(TheToolbar);
|
|
|
8064
8085
|
|
|
8065
8086
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8066
8087
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
8067
|
-
import { jsx as
|
|
8088
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
8068
8089
|
var ToastMessage = ({
|
|
8069
8090
|
toastType,
|
|
8070
8091
|
toastMessage,
|
|
8071
8092
|
open,
|
|
8072
8093
|
onClose
|
|
8073
|
-
}) => /* @__PURE__ */
|
|
8094
|
+
}) => /* @__PURE__ */ jsx122(
|
|
8074
8095
|
Snackbar,
|
|
8075
8096
|
{
|
|
8076
8097
|
open,
|
|
8077
8098
|
autoHideDuration: 1500,
|
|
8078
8099
|
onClose,
|
|
8079
8100
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8080
|
-
children: /* @__PURE__ */
|
|
8101
|
+
children: /* @__PURE__ */ jsx122(
|
|
8081
8102
|
MuiAlert,
|
|
8082
8103
|
{
|
|
8083
8104
|
elevation: 6,
|
|
@@ -8108,13 +8129,13 @@ import {
|
|
|
8108
8129
|
Typography as Typography29,
|
|
8109
8130
|
Dialog as Dialog5,
|
|
8110
8131
|
Backdrop,
|
|
8111
|
-
Box as
|
|
8132
|
+
Box as Box36,
|
|
8112
8133
|
Divider as Divider11,
|
|
8113
8134
|
Paper as Paper12,
|
|
8114
8135
|
Fade as Fade2
|
|
8115
8136
|
} from "@mui/material";
|
|
8116
8137
|
import { makeStyles as makeStyles54 } from "tss-react/mui";
|
|
8117
|
-
import { jsx as
|
|
8138
|
+
import { jsx as jsx123, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8118
8139
|
var useStyles54 = makeStyles54()((theme) => ({
|
|
8119
8140
|
paper: {
|
|
8120
8141
|
padding: theme.spacing(2)
|
|
@@ -8144,7 +8165,7 @@ var TwoButtonDialog = ({
|
|
|
8144
8165
|
cancelButton
|
|
8145
8166
|
}) => {
|
|
8146
8167
|
const { classes } = useStyles54();
|
|
8147
|
-
return /* @__PURE__ */
|
|
8168
|
+
return /* @__PURE__ */ jsx123(
|
|
8148
8169
|
Dialog5,
|
|
8149
8170
|
{
|
|
8150
8171
|
open,
|
|
@@ -8154,10 +8175,10 @@ var TwoButtonDialog = ({
|
|
|
8154
8175
|
closeAfterTransition: true,
|
|
8155
8176
|
BackdropComponent: Backdrop,
|
|
8156
8177
|
BackdropProps: { timeout: 500 },
|
|
8157
|
-
children: /* @__PURE__ */
|
|
8158
|
-
/* @__PURE__ */
|
|
8159
|
-
/* @__PURE__ */
|
|
8160
|
-
|
|
8178
|
+
children: /* @__PURE__ */ jsx123(Fade2, { in: open, children: /* @__PURE__ */ jsxs82(Paper12, { className: classes.paper, children: [
|
|
8179
|
+
/* @__PURE__ */ jsxs82(Box36, { className: classes.mb, children: [
|
|
8180
|
+
/* @__PURE__ */ jsx123(Typography29, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx123(
|
|
8181
|
+
Box36,
|
|
8161
8182
|
{
|
|
8162
8183
|
sx: {
|
|
8163
8184
|
fontWeight: 600
|
|
@@ -8165,23 +8186,23 @@ var TwoButtonDialog = ({
|
|
|
8165
8186
|
children: title
|
|
8166
8187
|
}
|
|
8167
8188
|
) }),
|
|
8168
|
-
/* @__PURE__ */
|
|
8169
|
-
|
|
8189
|
+
/* @__PURE__ */ jsxs82(
|
|
8190
|
+
Box36,
|
|
8170
8191
|
{
|
|
8171
8192
|
className: classes.mt,
|
|
8172
8193
|
sx: {
|
|
8173
8194
|
fontWeight: 600
|
|
8174
8195
|
},
|
|
8175
8196
|
children: [
|
|
8176
|
-
subtitle1 && /* @__PURE__ */
|
|
8177
|
-
subtitle2 && /* @__PURE__ */
|
|
8197
|
+
subtitle1 && /* @__PURE__ */ jsx123(Typography29, { variant: "subtitle1", children: subtitle1 }),
|
|
8198
|
+
subtitle2 && /* @__PURE__ */ jsx123(Typography29, { variant: "subtitle1", children: subtitle2 })
|
|
8178
8199
|
]
|
|
8179
8200
|
}
|
|
8180
8201
|
)
|
|
8181
8202
|
] }),
|
|
8182
|
-
/* @__PURE__ */
|
|
8183
|
-
/* @__PURE__ */
|
|
8184
|
-
/* @__PURE__ */
|
|
8203
|
+
/* @__PURE__ */ jsx123(Divider11, {}),
|
|
8204
|
+
/* @__PURE__ */ jsxs82(Box36, { className: classes.buttonContainer, children: [
|
|
8205
|
+
/* @__PURE__ */ jsx123(
|
|
8185
8206
|
FilledButton_default,
|
|
8186
8207
|
{
|
|
8187
8208
|
copy: cancelLabel,
|
|
@@ -8194,7 +8215,7 @@ var TwoButtonDialog = ({
|
|
|
8194
8215
|
}
|
|
8195
8216
|
}
|
|
8196
8217
|
),
|
|
8197
|
-
/* @__PURE__ */
|
|
8218
|
+
/* @__PURE__ */ jsx123(
|
|
8198
8219
|
FilledButton_default,
|
|
8199
8220
|
{
|
|
8200
8221
|
color: "primary",
|
|
@@ -8203,7 +8224,7 @@ var TwoButtonDialog = ({
|
|
|
8203
8224
|
}
|
|
8204
8225
|
)
|
|
8205
8226
|
] }),
|
|
8206
|
-
/* @__PURE__ */
|
|
8227
|
+
/* @__PURE__ */ jsx123(Loading_default, { isLoading: dialogLoading })
|
|
8207
8228
|
] }) })
|
|
8208
8229
|
}
|
|
8209
8230
|
);
|
|
@@ -8213,9 +8234,9 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8213
8234
|
// src/components/UserBust/UserBust.tsx
|
|
8214
8235
|
import { memo as memo25 } from "react";
|
|
8215
8236
|
import { Avatar as Avatar2, Typography as Typography30 } from "@mui/material";
|
|
8216
|
-
import { jsx as
|
|
8217
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
8218
|
-
/* @__PURE__ */
|
|
8237
|
+
import { jsx as jsx124, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8238
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs83("div", { children: [
|
|
8239
|
+
/* @__PURE__ */ jsx124(
|
|
8219
8240
|
Avatar2,
|
|
8220
8241
|
{
|
|
8221
8242
|
src: user.profile_picture,
|
|
@@ -8223,18 +8244,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8223
8244
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8224
8245
|
}
|
|
8225
8246
|
),
|
|
8226
|
-
/* @__PURE__ */
|
|
8227
|
-
/* @__PURE__ */
|
|
8228
|
-
/* @__PURE__ */
|
|
8247
|
+
/* @__PURE__ */ jsxs83("div", { style: { paddingTop: 16 }, children: [
|
|
8248
|
+
/* @__PURE__ */ jsx124(Typography30, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8249
|
+
/* @__PURE__ */ jsx124(Typography30, { ...typographyProps.username, children: user.username })
|
|
8229
8250
|
] })
|
|
8230
8251
|
] });
|
|
8231
8252
|
var UserBust_default = memo25(UserBust);
|
|
8232
8253
|
|
|
8233
8254
|
// src/components/icons/IconChart.tsx
|
|
8234
|
-
import { jsx as
|
|
8255
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
8235
8256
|
var SvgIconChart = (props) => {
|
|
8236
8257
|
const { fill } = props;
|
|
8237
|
-
return /* @__PURE__ */
|
|
8258
|
+
return /* @__PURE__ */ jsx125(
|
|
8238
8259
|
"svg",
|
|
8239
8260
|
{
|
|
8240
8261
|
width: "20",
|
|
@@ -8243,7 +8264,7 @@ var SvgIconChart = (props) => {
|
|
|
8243
8264
|
fill: "none",
|
|
8244
8265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8245
8266
|
...props,
|
|
8246
|
-
children: /* @__PURE__ */
|
|
8267
|
+
children: /* @__PURE__ */ jsx125(
|
|
8247
8268
|
"path",
|
|
8248
8269
|
{
|
|
8249
8270
|
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 +8343,6 @@ export {
|
|
|
8322
8343
|
Table_default as Table,
|
|
8323
8344
|
TableDesktop_default as TableDesktop,
|
|
8324
8345
|
TableDesktopFooter,
|
|
8325
|
-
TableDesktopRowActions,
|
|
8326
8346
|
TableDesktopRowCell,
|
|
8327
8347
|
TableDesktopSmartSelect,
|
|
8328
8348
|
TableEmptyResult_default as TableEmptyResult,
|