@natoora-libs/core 0.1.16 → 0.1.17
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.
|
@@ -3017,7 +3017,7 @@ var RoundButton = ({
|
|
|
3017
3017
|
onClick(e);
|
|
3018
3018
|
}
|
|
3019
3019
|
};
|
|
3020
|
-
const
|
|
3020
|
+
const Button16 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3021
3021
|
import_material16.Fab,
|
|
3022
3022
|
{
|
|
3023
3023
|
className: cx(
|
|
@@ -3041,7 +3041,7 @@ var RoundButton = ({
|
|
|
3041
3041
|
children: icon ? iconComponentMap[icon] : children || ""
|
|
3042
3042
|
}
|
|
3043
3043
|
);
|
|
3044
|
-
return tooltip ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material16.Tooltip, { title: tooltip, children:
|
|
3044
|
+
return tooltip ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material16.Tooltip, { title: tooltip, children: Button16 }) : Button16;
|
|
3045
3045
|
};
|
|
3046
3046
|
var RoundButton_default = RoundButton;
|
|
3047
3047
|
|
|
@@ -6799,13 +6799,13 @@ var Switch_default = (0, import_react31.memo)(LabelledSwitch);
|
|
|
6799
6799
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
6800
6800
|
var import_react34 = require("react");
|
|
6801
6801
|
var import_Check = __toESM(require("@mui/icons-material/Check"), 1);
|
|
6802
|
-
var
|
|
6802
|
+
var import_material62 = require("@mui/material");
|
|
6803
6803
|
var import_classnames3 = __toESM(require("classnames"), 1);
|
|
6804
6804
|
var import_mui55 = require("tss-react/mui");
|
|
6805
6805
|
|
|
6806
6806
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
6807
6807
|
var import_react33 = require("react");
|
|
6808
|
-
var
|
|
6808
|
+
var import_material61 = require("@mui/material");
|
|
6809
6809
|
var import_mui54 = require("tss-react/mui");
|
|
6810
6810
|
|
|
6811
6811
|
// src/components/SmartTableHeader/SmartTableHeader.tsx
|
|
@@ -6948,8 +6948,52 @@ var import_TableBody = __toESM(require("@mui/material/TableBody"), 1);
|
|
|
6948
6948
|
var import_TableCell = __toESM(require("@mui/material/TableCell"), 1);
|
|
6949
6949
|
var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
|
|
6950
6950
|
var import_Typography = __toESM(require("@mui/material/Typography"), 1);
|
|
6951
|
+
|
|
6952
|
+
// src/components/Buttons/IconButton/IconButton.tsx
|
|
6953
|
+
var import_material59 = require("@mui/material");
|
|
6951
6954
|
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
6952
|
-
var
|
|
6955
|
+
var IconButton4 = ({ icon, sx, ...props }) => {
|
|
6956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
6957
|
+
import_material59.Button,
|
|
6958
|
+
{
|
|
6959
|
+
...props,
|
|
6960
|
+
sx: {
|
|
6961
|
+
display: "flex",
|
|
6962
|
+
gap: 1,
|
|
6963
|
+
alignItems: "center",
|
|
6964
|
+
justifyContent: "center",
|
|
6965
|
+
borderRadius: 100,
|
|
6966
|
+
...sx
|
|
6967
|
+
},
|
|
6968
|
+
children: [
|
|
6969
|
+
icon,
|
|
6970
|
+
props.children
|
|
6971
|
+
]
|
|
6972
|
+
}
|
|
6973
|
+
);
|
|
6974
|
+
};
|
|
6975
|
+
var IconButton_default = IconButton4;
|
|
6976
|
+
|
|
6977
|
+
// src/components/icons/IconTableEdit.tsx
|
|
6978
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
6979
|
+
var SvgIconTableEdit = (props) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6980
|
+
"svg",
|
|
6981
|
+
{
|
|
6982
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6983
|
+
width: "24",
|
|
6984
|
+
height: "24",
|
|
6985
|
+
viewBox: "0 0 24 24",
|
|
6986
|
+
...props,
|
|
6987
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("path", { d: "M21.7 13.35L20.7 14.35L18.65 12.3L19.65 11.3C19.86 11.08 20.21 11.08 20.42 11.3L21.7 12.58C21.92 12.79 21.92 13.14 21.7 13.35ZM12 18.94L18.07 12.88L20.12 14.93L14.06 21H12V18.94ZM4 2H18C18.5304 2 19.0391 2.21071 19.4142 2.58579C19.7893 2.96086 20 3.46957 20 4V8.17L16.17 12H12V16.17L10.17 18H4C3.46957 18 2.96086 17.7893 2.58579 17.4142C2.21071 17.0391 2 16.5304 2 16V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2ZM4 6V10H10V6H4ZM12 6V10H18V6H12ZM4 12V16H10V12H4Z" })
|
|
6988
|
+
}
|
|
6989
|
+
);
|
|
6990
|
+
var IconTableEdit_default = SvgIconTableEdit;
|
|
6991
|
+
|
|
6992
|
+
// src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
|
|
6993
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
6994
|
+
var TableDesktopNoColumnsMessage = ({
|
|
6995
|
+
handleClickOnNoColumnsMessageAction
|
|
6996
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_TableBody.default, { children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_TableRow.default, { children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
|
|
6953
6997
|
import_TableCell.default,
|
|
6954
6998
|
{
|
|
6955
6999
|
sx: {
|
|
@@ -6962,20 +7006,44 @@ var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ (0, import_jsx_runtime1
|
|
|
6962
7006
|
alignItems: "center"
|
|
6963
7007
|
},
|
|
6964
7008
|
children: [
|
|
6965
|
-
/* @__PURE__ */ (0,
|
|
6966
|
-
/* @__PURE__ */ (0,
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
7009
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_Typography.default, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
|
|
7010
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_Typography.default, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
|
|
7011
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
|
|
7012
|
+
import_Typography.default,
|
|
7013
|
+
{
|
|
7014
|
+
variant: "subtitle1",
|
|
7015
|
+
align: "center",
|
|
7016
|
+
color: "textSecondary",
|
|
7017
|
+
sx: {
|
|
7018
|
+
backgroundColor: colors.neutral200,
|
|
7019
|
+
padding: 1,
|
|
7020
|
+
borderRadius: 1
|
|
7021
|
+
},
|
|
7022
|
+
children: [
|
|
7023
|
+
"Tips: ",
|
|
7024
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_Typography.default, { component: "strong", children: "Save as default" }),
|
|
7025
|
+
" to keep these columns for future views"
|
|
7026
|
+
]
|
|
7027
|
+
}
|
|
7028
|
+
),
|
|
7029
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7030
|
+
IconButton_default,
|
|
7031
|
+
{
|
|
7032
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(IconTableEdit_default, { fill: colors.white }),
|
|
7033
|
+
variant: "contained",
|
|
7034
|
+
color: "primary",
|
|
7035
|
+
onClick: handleClickOnNoColumnsMessageAction,
|
|
7036
|
+
children: "OPEN MENU"
|
|
7037
|
+
}
|
|
7038
|
+
)
|
|
6971
7039
|
]
|
|
6972
7040
|
}
|
|
6973
7041
|
) }) });
|
|
6974
7042
|
|
|
6975
7043
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
6976
|
-
var
|
|
7044
|
+
var import_material60 = require("@mui/material");
|
|
6977
7045
|
var import_mui53 = require("tss-react/mui");
|
|
6978
|
-
var
|
|
7046
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
6979
7047
|
var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
|
|
6980
7048
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
6981
7049
|
tableCellDefault: { padding: 24 }
|
|
@@ -6987,17 +7055,17 @@ var TableEmptyResult = ({
|
|
|
6987
7055
|
}
|
|
6988
7056
|
}) => {
|
|
6989
7057
|
const { classes } = useStyles47();
|
|
6990
|
-
return showClearFilterButton ? /* @__PURE__ */ (0,
|
|
6991
|
-
|
|
7058
|
+
return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7059
|
+
import_material60.TableCell,
|
|
6992
7060
|
{
|
|
6993
7061
|
className: classes.tableCellIcon,
|
|
6994
7062
|
colSpan,
|
|
6995
7063
|
align: "center",
|
|
6996
7064
|
children: [
|
|
6997
|
-
/* @__PURE__ */ (0,
|
|
6998
|
-
/* @__PURE__ */ (0,
|
|
6999
|
-
/* @__PURE__ */ (0,
|
|
7000
|
-
/* @__PURE__ */ (0,
|
|
7065
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(EmptyGlassIcon_default, {}),
|
|
7066
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "h6", children: "No results found." }),
|
|
7067
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
7068
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7001
7069
|
FilledButton_default,
|
|
7002
7070
|
{
|
|
7003
7071
|
copy: "Search",
|
|
@@ -7008,8 +7076,8 @@ var TableEmptyResult = ({
|
|
|
7008
7076
|
)
|
|
7009
7077
|
]
|
|
7010
7078
|
}
|
|
7011
|
-
) }) : /* @__PURE__ */ (0,
|
|
7012
|
-
|
|
7079
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7080
|
+
import_material60.TableCell,
|
|
7013
7081
|
{
|
|
7014
7082
|
className: classes.tableCellDefault,
|
|
7015
7083
|
colSpan,
|
|
@@ -7021,7 +7089,7 @@ var TableEmptyResult = ({
|
|
|
7021
7089
|
var TableEmptyResult_default = TableEmptyResult;
|
|
7022
7090
|
|
|
7023
7091
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
7024
|
-
var
|
|
7092
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
7025
7093
|
var ROW_HEIGHT = 56;
|
|
7026
7094
|
var useStyles48 = (0, import_mui54.makeStyles)()((theme) => ({
|
|
7027
7095
|
root: {
|
|
@@ -7101,6 +7169,7 @@ var TableDesktop = ({
|
|
|
7101
7169
|
updateSort,
|
|
7102
7170
|
showClearFilterButton,
|
|
7103
7171
|
handleClickOnClearFiltersButton,
|
|
7172
|
+
handleClickOnNoColumnsMessageAction,
|
|
7104
7173
|
deleteItem,
|
|
7105
7174
|
keyField = "id",
|
|
7106
7175
|
tableLayout = "auto",
|
|
@@ -7160,8 +7229,8 @@ var TableDesktop = ({
|
|
|
7160
7229
|
);
|
|
7161
7230
|
const renderTableRows = (0, import_react33.useMemo)(() => {
|
|
7162
7231
|
if (isLoading) {
|
|
7163
|
-
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ (0,
|
|
7164
|
-
|
|
7232
|
+
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.TableRow, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7233
|
+
import_material61.Skeleton,
|
|
7165
7234
|
{
|
|
7166
7235
|
animation: "pulse",
|
|
7167
7236
|
variant: "rounded",
|
|
@@ -7174,7 +7243,7 @@ var TableDesktop = ({
|
|
|
7174
7243
|
const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
|
|
7175
7244
|
return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
|
|
7176
7245
|
const isItemSelected = selected.has(row[keyField]);
|
|
7177
|
-
return /* @__PURE__ */ (0,
|
|
7246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7178
7247
|
RenderItem,
|
|
7179
7248
|
{
|
|
7180
7249
|
...{
|
|
@@ -7214,16 +7283,21 @@ var TableDesktop = ({
|
|
|
7214
7283
|
setSelected(/* @__PURE__ */ new Set());
|
|
7215
7284
|
}
|
|
7216
7285
|
}, [enableCheckboxSelection]);
|
|
7217
|
-
return /* @__PURE__ */ (0,
|
|
7218
|
-
/* @__PURE__ */ (0,
|
|
7219
|
-
|
|
7286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Paper, { className: classes.paper, children: [
|
|
7287
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7288
|
+
import_material61.Table,
|
|
7220
7289
|
{
|
|
7221
7290
|
stickyHeader: true,
|
|
7222
7291
|
"aria-labelledby": "tableTitle",
|
|
7223
7292
|
"aria-label": "sticky table",
|
|
7224
7293
|
style: { tableLayout },
|
|
7225
|
-
children: visibleHeadCells.length === 0 ? /* @__PURE__ */ (0,
|
|
7226
|
-
|
|
7294
|
+
children: visibleHeadCells.length === 0 && !isLoading ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7295
|
+
TableDesktopNoColumnsMessage,
|
|
7296
|
+
{
|
|
7297
|
+
handleClickOnNoColumnsMessageAction
|
|
7298
|
+
}
|
|
7299
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_jsx_runtime114.Fragment, { children: [
|
|
7300
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7227
7301
|
SmartTableHeader_default,
|
|
7228
7302
|
{
|
|
7229
7303
|
headCells: visibleHeadCells,
|
|
@@ -7239,14 +7313,21 @@ var TableDesktop = ({
|
|
|
7239
7313
|
shouldShowCheckOnFilter
|
|
7240
7314
|
}
|
|
7241
7315
|
),
|
|
7242
|
-
/* @__PURE__ */ (0,
|
|
7316
|
+
!isLoading ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.TableBody, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7243
7317
|
TableEmptyResult_default,
|
|
7244
7318
|
{
|
|
7245
7319
|
colSpan: enableCheckboxSelection ? visibleHeadCells.length + 1 : visibleHeadCells.length,
|
|
7246
7320
|
showClearFilterButton,
|
|
7247
7321
|
handleClickOnClearFiltersButton
|
|
7248
7322
|
}
|
|
7249
|
-
) })
|
|
7323
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.TableBody, { children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7324
|
+
import_material61.TableCell,
|
|
7325
|
+
{
|
|
7326
|
+
colSpan: visibleHeadCells.length,
|
|
7327
|
+
align: "center",
|
|
7328
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.CircularProgress, {})
|
|
7329
|
+
}
|
|
7330
|
+
) }) })
|
|
7250
7331
|
] })
|
|
7251
7332
|
}
|
|
7252
7333
|
) }),
|
|
@@ -7256,7 +7337,7 @@ var TableDesktop = ({
|
|
|
7256
7337
|
var TableDesktop_default = TableDesktop;
|
|
7257
7338
|
|
|
7258
7339
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
7259
|
-
var
|
|
7340
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
7260
7341
|
var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
|
|
7261
7342
|
filterMenu: {
|
|
7262
7343
|
display: "flex",
|
|
@@ -7291,7 +7372,7 @@ var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
|
|
|
7291
7372
|
padding: theme.spacing(0, 1),
|
|
7292
7373
|
justifyContent: "space-between"
|
|
7293
7374
|
},
|
|
7294
|
-
|
|
7375
|
+
applyButton: {
|
|
7295
7376
|
color: theme.palette.primary.main
|
|
7296
7377
|
},
|
|
7297
7378
|
skeleton: {
|
|
@@ -7326,7 +7407,10 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7326
7407
|
setFilterOptionsData(headCell.filterOptions);
|
|
7327
7408
|
}
|
|
7328
7409
|
}, [headCell.filterOptions]);
|
|
7329
|
-
const numFilterOptions = (0, import_react34.useMemo)(
|
|
7410
|
+
const numFilterOptions = (0, import_react34.useMemo)(
|
|
7411
|
+
() => filterOptionsData?.length ?? 0,
|
|
7412
|
+
[filterOptionsData?.length]
|
|
7413
|
+
);
|
|
7330
7414
|
const numCurrentSelectedFilters = selectedFilters.length;
|
|
7331
7415
|
const handleFilterMenuOpen = (event) => {
|
|
7332
7416
|
if (!numFilterOptions) {
|
|
@@ -7365,21 +7449,24 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7365
7449
|
(0, import_react34.useEffect)(() => {
|
|
7366
7450
|
setSelectedFilters(headerFilters[headCell.id] ?? []);
|
|
7367
7451
|
}, [headerFilters, headCell.id]);
|
|
7368
|
-
const isOptionChecked = (0, import_react34.useMemo)(
|
|
7369
|
-
(
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
/* @__PURE__ */ (0,
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7377
|
-
/* @__PURE__ */ (0,
|
|
7378
|
-
/* @__PURE__ */ (0,
|
|
7379
|
-
/* @__PURE__ */ (0,
|
|
7452
|
+
const isOptionChecked = (0, import_react34.useMemo)(
|
|
7453
|
+
() => (resolvedOption) => !!selectedFilters?.some(
|
|
7454
|
+
(value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
|
|
7455
|
+
),
|
|
7456
|
+
[selectedFilters]
|
|
7457
|
+
);
|
|
7458
|
+
const loadingSkeletons = /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Box, { "data-testid": "loading-skeletons", width: 272, children: [
|
|
7459
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7460
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Divider, {}),
|
|
7461
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7462
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7463
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7464
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7465
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Divider, {}),
|
|
7466
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Skeleton, { variant: "rounded", className: classes.skeleton })
|
|
7380
7467
|
] });
|
|
7381
|
-
return /* @__PURE__ */ (0,
|
|
7382
|
-
/* @__PURE__ */ (0,
|
|
7468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
|
|
7469
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7383
7470
|
ActiveFiltersIconButton_default,
|
|
7384
7471
|
{
|
|
7385
7472
|
numActiveFilters,
|
|
@@ -7389,8 +7476,8 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7389
7476
|
})
|
|
7390
7477
|
}
|
|
7391
7478
|
),
|
|
7392
|
-
/* @__PURE__ */ (0,
|
|
7393
|
-
|
|
7479
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7480
|
+
import_material62.Menu,
|
|
7394
7481
|
{
|
|
7395
7482
|
open: !!anchorEl,
|
|
7396
7483
|
onClose: handleFilterMenuClose,
|
|
@@ -7398,20 +7485,22 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7398
7485
|
"data-testid": "filter-menu",
|
|
7399
7486
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
7400
7487
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
7401
|
-
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ (0,
|
|
7402
|
-
/* @__PURE__ */ (0,
|
|
7403
|
-
|
|
7488
|
+
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Box, { className: classes.filterMenu, children: [
|
|
7489
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Box, { px: 3, mb: 0.5, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7490
|
+
import_material62.FormControlLabel,
|
|
7404
7491
|
{
|
|
7405
7492
|
label: "Select All",
|
|
7406
|
-
control: /* @__PURE__ */ (0,
|
|
7407
|
-
|
|
7493
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7494
|
+
import_material62.Checkbox,
|
|
7408
7495
|
{
|
|
7409
7496
|
disableRipple: true,
|
|
7410
7497
|
checked: numCurrentSelectedFilters === numFilterOptions,
|
|
7411
7498
|
indeterminate: numCurrentSelectedFilters > 0 && numCurrentSelectedFilters < numFilterOptions,
|
|
7412
7499
|
onChange: ({ target: { checked } }) => {
|
|
7413
7500
|
if (checked) {
|
|
7414
|
-
setSelectedFilters([
|
|
7501
|
+
setSelectedFilters([
|
|
7502
|
+
...filterOptionsData
|
|
7503
|
+
]);
|
|
7415
7504
|
} else {
|
|
7416
7505
|
setSelectedFilters([]);
|
|
7417
7506
|
}
|
|
@@ -7420,57 +7509,52 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7420
7509
|
)
|
|
7421
7510
|
}
|
|
7422
7511
|
) }),
|
|
7423
|
-
/* @__PURE__ */ (0,
|
|
7424
|
-
/* @__PURE__ */ (0,
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7512
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Divider, { sx: { mb: 0.5 } }),
|
|
7513
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Box, { className: classes.filterOptions, children: filterOptionsData?.map((option) => {
|
|
7514
|
+
const resolvedOption = resolveOptionType(
|
|
7515
|
+
option,
|
|
7516
|
+
headCell.fieldName ?? ""
|
|
7517
|
+
);
|
|
7518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Box, { className: classes.filter, children: [
|
|
7519
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7520
|
+
import_material62.FormControlLabel,
|
|
7429
7521
|
{
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
disableRipple: true,
|
|
7440
|
-
onChange: () => handleFilterOptionClick(option),
|
|
7441
|
-
checked: isOptionChecked(resolvedOption)
|
|
7442
|
-
}
|
|
7443
|
-
)
|
|
7444
|
-
},
|
|
7445
|
-
resolvedOption
|
|
7446
|
-
),
|
|
7447
|
-
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Tooltip, { title: "This filter is saved as default", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_Check.default, { fontSize: "small", color: "action" }) }) : null
|
|
7448
|
-
]
|
|
7522
|
+
label: resolvedOption,
|
|
7523
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7524
|
+
import_material62.Checkbox,
|
|
7525
|
+
{
|
|
7526
|
+
disableRipple: true,
|
|
7527
|
+
onChange: () => handleFilterOptionClick(option),
|
|
7528
|
+
checked: isOptionChecked(resolvedOption)
|
|
7529
|
+
}
|
|
7530
|
+
)
|
|
7449
7531
|
},
|
|
7450
7532
|
resolvedOption
|
|
7451
|
-
)
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
/* @__PURE__ */ (0,
|
|
7456
|
-
|
|
7533
|
+
),
|
|
7534
|
+
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Tooltip, { title: "This filter is saved as default", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_Check.default, { fontSize: "small", color: "action" }) }) : null
|
|
7535
|
+
] }, resolvedOption);
|
|
7536
|
+
}) }),
|
|
7537
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Divider, { sx: { mb: 0.5 } }),
|
|
7538
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Box, { className: classes.applyFilterButtonsContainer, children: [
|
|
7539
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7457
7540
|
ExtendedButton_default,
|
|
7458
7541
|
{
|
|
7459
|
-
copy: "
|
|
7460
|
-
buttonType: "button",
|
|
7542
|
+
copy: "Apply",
|
|
7461
7543
|
variant: "text",
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7544
|
+
buttonType: "button",
|
|
7545
|
+
tooltip: "Apply the filters without saving.",
|
|
7546
|
+
className: classes.applyButton,
|
|
7547
|
+
onClick: () => handleApplyFilters(false)
|
|
7465
7548
|
}
|
|
7466
7549
|
),
|
|
7467
|
-
/* @__PURE__ */ (0,
|
|
7550
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7468
7551
|
ExtendedButton_default,
|
|
7469
7552
|
{
|
|
7470
|
-
copy: "
|
|
7553
|
+
copy: "Save as Default",
|
|
7471
7554
|
color: "primary",
|
|
7472
7555
|
buttonType: "submit",
|
|
7473
|
-
|
|
7556
|
+
tooltip: "Persists those filters for future visits",
|
|
7557
|
+
onClick: () => handleApplyFilters(true)
|
|
7474
7558
|
}
|
|
7475
7559
|
)
|
|
7476
7560
|
] })
|
|
@@ -7483,19 +7567,19 @@ var SmartTableHeaderFilterMenu_default = (0, import_react34.memo)(SmartTableHead
|
|
|
7483
7567
|
|
|
7484
7568
|
// src/components/Table/Table.tsx
|
|
7485
7569
|
var import_react35 = require("react");
|
|
7486
|
-
var
|
|
7570
|
+
var import_material64 = require("@mui/material");
|
|
7487
7571
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
7488
7572
|
var import_mui56 = require("tss-react/mui");
|
|
7489
7573
|
var import_uuid = require("uuid");
|
|
7490
7574
|
|
|
7491
7575
|
// src/components/TableLoading/TableLoading.tsx
|
|
7492
|
-
var
|
|
7493
|
-
var
|
|
7576
|
+
var import_material63 = require("@mui/material");
|
|
7577
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
7494
7578
|
var TableLoading = ({
|
|
7495
7579
|
rowsPerPage,
|
|
7496
7580
|
rowHeight
|
|
7497
|
-
}) => /* @__PURE__ */ (0,
|
|
7498
|
-
|
|
7581
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7582
|
+
import_material63.Skeleton,
|
|
7499
7583
|
{
|
|
7500
7584
|
animation: "pulse",
|
|
7501
7585
|
"data-testid": "table-loading-skeleton",
|
|
@@ -7543,7 +7627,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7543
7627
|
}
|
|
7544
7628
|
|
|
7545
7629
|
// src/components/Table/Table.tsx
|
|
7546
|
-
var
|
|
7630
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7547
7631
|
var useStyles50 = (0, import_mui56.makeStyles)()(() => ({
|
|
7548
7632
|
root: {
|
|
7549
7633
|
height: "calc(100vh - 262px)",
|
|
@@ -7621,25 +7705,25 @@ var Table2 = ({
|
|
|
7621
7705
|
);
|
|
7622
7706
|
const rowsComponents = rows.map((row) => {
|
|
7623
7707
|
if (RenderItem) {
|
|
7624
|
-
return /* @__PURE__ */ (0,
|
|
7708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(RenderItem, { ...row }, row.id);
|
|
7625
7709
|
}
|
|
7626
|
-
return /* @__PURE__ */ (0,
|
|
7710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableCell, { children: row[column.id] }, column.id)) }, row.id);
|
|
7627
7711
|
});
|
|
7628
7712
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
7629
7713
|
rowsComponents.push(
|
|
7630
|
-
/* @__PURE__ */ (0,
|
|
7714
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
|
|
7631
7715
|
);
|
|
7632
7716
|
}
|
|
7633
7717
|
return rowsComponents;
|
|
7634
7718
|
};
|
|
7635
|
-
return /* @__PURE__ */ (0,
|
|
7636
|
-
/* @__PURE__ */ (0,
|
|
7637
|
-
|
|
7719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_material64.Table, { size: "medium", stickyHeader: true, children: [
|
|
7720
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
7721
|
+
import_material64.TableCell,
|
|
7638
7722
|
{
|
|
7639
7723
|
align: "left",
|
|
7640
7724
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
7641
|
-
children: /* @__PURE__ */ (0,
|
|
7642
|
-
|
|
7725
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
7726
|
+
import_material64.TableSortLabel,
|
|
7643
7727
|
{
|
|
7644
7728
|
active: orderBy === headCell.id,
|
|
7645
7729
|
direction: orderBy === headCell.id ? order : "asc",
|
|
@@ -7650,9 +7734,9 @@ var Table2 = ({
|
|
|
7650
7734
|
},
|
|
7651
7735
|
headCell.id
|
|
7652
7736
|
)) }) }),
|
|
7653
|
-
/* @__PURE__ */ (0,
|
|
7737
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_material64.TableBody, { children: [
|
|
7654
7738
|
getTableRows(),
|
|
7655
|
-
rowsPerPage === emptyRows && /* @__PURE__ */ (0,
|
|
7739
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
7656
7740
|
] })
|
|
7657
7741
|
] }) }) }) });
|
|
7658
7742
|
};
|
|
@@ -7660,8 +7744,8 @@ var Table_default = Table2;
|
|
|
7660
7744
|
|
|
7661
7745
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7662
7746
|
var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
|
|
7663
|
-
var
|
|
7664
|
-
var
|
|
7747
|
+
var import_material65 = require("@mui/material");
|
|
7748
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7665
7749
|
var TableDesktopFooter = ({
|
|
7666
7750
|
numPages,
|
|
7667
7751
|
page,
|
|
@@ -7672,8 +7756,8 @@ var TableDesktopFooter = ({
|
|
|
7672
7756
|
refetch,
|
|
7673
7757
|
isFetching
|
|
7674
7758
|
}) => {
|
|
7675
|
-
return /* @__PURE__ */ (0,
|
|
7676
|
-
|
|
7759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
|
|
7760
|
+
import_material65.Box,
|
|
7677
7761
|
{
|
|
7678
7762
|
py: 1,
|
|
7679
7763
|
gap: 2,
|
|
@@ -7683,8 +7767,8 @@ var TableDesktopFooter = ({
|
|
|
7683
7767
|
borderTop: `1px solid ${colors.neutral300}`,
|
|
7684
7768
|
bgcolor: (theme) => theme.palette.background.default,
|
|
7685
7769
|
children: [
|
|
7686
|
-
/* @__PURE__ */ (0,
|
|
7687
|
-
|
|
7770
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
|
|
7771
|
+
import_material65.Button,
|
|
7688
7772
|
{
|
|
7689
7773
|
disableRipple: true,
|
|
7690
7774
|
variant: "outlined",
|
|
@@ -7698,7 +7782,7 @@ var TableDesktopFooter = ({
|
|
|
7698
7782
|
borderColor: colors.neutral600
|
|
7699
7783
|
},
|
|
7700
7784
|
children: [
|
|
7701
|
-
/* @__PURE__ */ (0,
|
|
7785
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7702
7786
|
import_Refresh.default,
|
|
7703
7787
|
{
|
|
7704
7788
|
fontSize: "small",
|
|
@@ -7709,22 +7793,22 @@ var TableDesktopFooter = ({
|
|
|
7709
7793
|
]
|
|
7710
7794
|
}
|
|
7711
7795
|
),
|
|
7712
|
-
/* @__PURE__ */ (0,
|
|
7713
|
-
/* @__PURE__ */ (0,
|
|
7714
|
-
/* @__PURE__ */ (0,
|
|
7715
|
-
/* @__PURE__ */ (0,
|
|
7716
|
-
|
|
7796
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { display: "flex", children: [
|
|
7797
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7798
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Typography, { children: "Rows per page:" }),
|
|
7799
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7800
|
+
import_material65.Select,
|
|
7717
7801
|
{
|
|
7718
7802
|
value: pageSize,
|
|
7719
7803
|
onChange: handlePageSizeChange,
|
|
7720
7804
|
size: "small",
|
|
7721
7805
|
variant: "standard",
|
|
7722
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */ (0,
|
|
7806
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.MenuItem, { value: size, children: size }, size))
|
|
7723
7807
|
}
|
|
7724
7808
|
)
|
|
7725
7809
|
] }),
|
|
7726
|
-
/* @__PURE__ */ (0,
|
|
7727
|
-
|
|
7810
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7811
|
+
import_material65.Pagination,
|
|
7728
7812
|
{
|
|
7729
7813
|
color: "standard",
|
|
7730
7814
|
count: numPages,
|
|
@@ -7743,11 +7827,11 @@ var import_react38 = require("react");
|
|
|
7743
7827
|
var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
7744
7828
|
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
7745
7829
|
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
7746
|
-
var
|
|
7830
|
+
var import_material67 = require("@mui/material");
|
|
7747
7831
|
|
|
7748
7832
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7749
7833
|
var import_react36 = require("react");
|
|
7750
|
-
var
|
|
7834
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
7751
7835
|
var resolveValue = (value) => {
|
|
7752
7836
|
if (typeof value === "string") {
|
|
7753
7837
|
return value;
|
|
@@ -7779,7 +7863,7 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
|
|
|
7779
7863
|
setOptions(parsedOptions);
|
|
7780
7864
|
}
|
|
7781
7865
|
}, [filterOptions]);
|
|
7782
|
-
return /* @__PURE__ */ (0,
|
|
7866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7783
7867
|
SmartSelect_default,
|
|
7784
7868
|
{
|
|
7785
7869
|
ref,
|
|
@@ -7803,8 +7887,8 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
|
|
|
7803
7887
|
|
|
7804
7888
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7805
7889
|
var import_react37 = require("react");
|
|
7806
|
-
var
|
|
7807
|
-
var
|
|
7890
|
+
var import_material66 = require("@mui/material");
|
|
7891
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
7808
7892
|
var TableDesktopTextField = ({
|
|
7809
7893
|
rowId,
|
|
7810
7894
|
editInitialValue,
|
|
@@ -7827,8 +7911,8 @@ var TableDesktopTextField = ({
|
|
|
7827
7911
|
commitValue(input);
|
|
7828
7912
|
}
|
|
7829
7913
|
};
|
|
7830
|
-
return /* @__PURE__ */ (0,
|
|
7831
|
-
|
|
7914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7915
|
+
import_material66.TextField,
|
|
7832
7916
|
{
|
|
7833
7917
|
fullWidth: true,
|
|
7834
7918
|
variant: "standard",
|
|
@@ -7848,10 +7932,10 @@ var TableDesktopTextField = ({
|
|
|
7848
7932
|
};
|
|
7849
7933
|
|
|
7850
7934
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7851
|
-
var
|
|
7935
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
7852
7936
|
var getReadOnlyBooleanIcon = (value) => {
|
|
7853
7937
|
if (value) {
|
|
7854
|
-
return /* @__PURE__ */ (0,
|
|
7938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
|
|
7855
7939
|
}
|
|
7856
7940
|
return "-";
|
|
7857
7941
|
};
|
|
@@ -7901,7 +7985,7 @@ var TableDesktopRowCell = ({
|
|
|
7901
7985
|
};
|
|
7902
7986
|
}, [isEditMode]);
|
|
7903
7987
|
const editableComponents = {
|
|
7904
|
-
"select": /* @__PURE__ */ (0,
|
|
7988
|
+
"select": /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7905
7989
|
TableDesktopSmartSelect,
|
|
7906
7990
|
{
|
|
7907
7991
|
rowId,
|
|
@@ -7915,8 +7999,8 @@ var TableDesktopRowCell = ({
|
|
|
7915
7999
|
onUpdateEditableCell
|
|
7916
8000
|
}
|
|
7917
8001
|
),
|
|
7918
|
-
"checkbox": /* @__PURE__ */ (0,
|
|
7919
|
-
|
|
8002
|
+
"checkbox": /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8003
|
+
import_material67.Checkbox,
|
|
7920
8004
|
{
|
|
7921
8005
|
disableRipple: true,
|
|
7922
8006
|
disabled,
|
|
@@ -7926,7 +8010,7 @@ var TableDesktopRowCell = ({
|
|
|
7926
8010
|
}
|
|
7927
8011
|
}
|
|
7928
8012
|
),
|
|
7929
|
-
"text": /* @__PURE__ */ (0,
|
|
8013
|
+
"text": /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7930
8014
|
TableDesktopTextField,
|
|
7931
8015
|
{
|
|
7932
8016
|
rowId,
|
|
@@ -7937,8 +8021,8 @@ var TableDesktopRowCell = ({
|
|
|
7937
8021
|
onUpdateEditableCell
|
|
7938
8022
|
}
|
|
7939
8023
|
),
|
|
7940
|
-
"numeric": /* @__PURE__ */ (0,
|
|
7941
|
-
|
|
8024
|
+
"numeric": /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8025
|
+
import_material67.TextField,
|
|
7942
8026
|
{
|
|
7943
8027
|
fullWidth: true,
|
|
7944
8028
|
variant: "standard",
|
|
@@ -7963,8 +8047,8 @@ var TableDesktopRowCell = ({
|
|
|
7963
8047
|
e.stopPropagation();
|
|
7964
8048
|
setIsEditMode((prev) => !prev);
|
|
7965
8049
|
};
|
|
7966
|
-
return /* @__PURE__ */ (0,
|
|
7967
|
-
|
|
8050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8051
|
+
import_material67.TableCell,
|
|
7968
8052
|
{
|
|
7969
8053
|
align: "left",
|
|
7970
8054
|
onMouseEnter: () => editableCellType && !disabled && setIsCellHovered(true),
|
|
@@ -7981,8 +8065,8 @@ var TableDesktopRowCell = ({
|
|
|
7981
8065
|
},
|
|
7982
8066
|
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7983
8067
|
},
|
|
7984
|
-
children: /* @__PURE__ */ (0,
|
|
7985
|
-
|
|
8068
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
8069
|
+
import_material67.Box,
|
|
7986
8070
|
{
|
|
7987
8071
|
p: 1,
|
|
7988
8072
|
ref: cellRef,
|
|
@@ -7990,8 +8074,8 @@ var TableDesktopRowCell = ({
|
|
|
7990
8074
|
textOverflow: "ellipsis",
|
|
7991
8075
|
whiteSpace: "nowrap",
|
|
7992
8076
|
children: [
|
|
7993
|
-
isCellHovered ? /* @__PURE__ */ (0,
|
|
7994
|
-
|
|
8077
|
+
isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Tooltip, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8078
|
+
import_material67.IconButton,
|
|
7995
8079
|
{
|
|
7996
8080
|
onClick: handleEditClick,
|
|
7997
8081
|
sx: {
|
|
@@ -8005,7 +8089,7 @@ var TableDesktopRowCell = ({
|
|
|
8005
8089
|
backgroundColor: isEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
8006
8090
|
}
|
|
8007
8091
|
},
|
|
8008
|
-
children: isEditMode ? /* @__PURE__ */ (0,
|
|
8092
|
+
children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_Edit.default, { fontSize: "small" })
|
|
8009
8093
|
}
|
|
8010
8094
|
) }) : null,
|
|
8011
8095
|
isEditMode && editableCellType ? editableComponents[editableCellType] : renderReadOnlyValue(readOnlyValue)
|
|
@@ -8019,9 +8103,9 @@ var TableDesktopRowCell = ({
|
|
|
8019
8103
|
// src/components/TableHeader/TableHeader.tsx
|
|
8020
8104
|
var import_react39 = require("react");
|
|
8021
8105
|
var import_icons_material12 = require("@mui/icons-material");
|
|
8022
|
-
var
|
|
8106
|
+
var import_material68 = require("@mui/material");
|
|
8023
8107
|
var import_mui57 = require("tss-react/mui");
|
|
8024
|
-
var
|
|
8108
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
8025
8109
|
var useStyles51 = (0, import_mui57.makeStyles)()(() => ({
|
|
8026
8110
|
sortLabel: {
|
|
8027
8111
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -8066,8 +8150,8 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8066
8150
|
});
|
|
8067
8151
|
setSortableCells(sortedCells);
|
|
8068
8152
|
};
|
|
8069
|
-
return /* @__PURE__ */ (0,
|
|
8070
|
-
|
|
8153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material68.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material68.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material68.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8154
|
+
import_material68.TableSortLabel,
|
|
8071
8155
|
{
|
|
8072
8156
|
className: classes.sortLabel,
|
|
8073
8157
|
direction: cell?.direction || "asc",
|
|
@@ -8080,9 +8164,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8080
8164
|
var TableHeader_default = (0, import_react39.memo)(TableHeader);
|
|
8081
8165
|
|
|
8082
8166
|
// src/components/TextDivider/TextDivider.tsx
|
|
8083
|
-
var
|
|
8167
|
+
var import_material69 = require("@mui/material");
|
|
8084
8168
|
var import_mui58 = require("tss-react/mui");
|
|
8085
|
-
var
|
|
8169
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
8086
8170
|
var useStyles52 = (0, import_mui58.makeStyles)()(() => ({
|
|
8087
8171
|
icon: {
|
|
8088
8172
|
fontSize: 20
|
|
@@ -8119,19 +8203,19 @@ var TextDivider = ({
|
|
|
8119
8203
|
}) => {
|
|
8120
8204
|
const { classes } = useStyles52();
|
|
8121
8205
|
const iconColor = color ?? colors.neutral900;
|
|
8122
|
-
return /* @__PURE__ */ (0,
|
|
8123
|
-
|
|
8206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
|
|
8207
|
+
import_material69.Box,
|
|
8124
8208
|
{
|
|
8125
8209
|
display: "flex",
|
|
8126
8210
|
alignItems: "center",
|
|
8127
8211
|
justifyContent: "space-between",
|
|
8128
8212
|
className: classes.container,
|
|
8129
8213
|
children: [
|
|
8130
|
-
/* @__PURE__ */ (0,
|
|
8131
|
-
/* @__PURE__ */ (0,
|
|
8132
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0,
|
|
8133
|
-
/* @__PURE__ */ (0,
|
|
8134
|
-
|
|
8214
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.Divider, { className: classes.leftDivider }),
|
|
8215
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material69.Box, { className: classes.center, children: [
|
|
8216
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
8217
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8218
|
+
import_material69.Typography,
|
|
8135
8219
|
{
|
|
8136
8220
|
color: "textSecondary",
|
|
8137
8221
|
className: classes.title,
|
|
@@ -8139,9 +8223,9 @@ var TextDivider = ({
|
|
|
8139
8223
|
children: title
|
|
8140
8224
|
}
|
|
8141
8225
|
),
|
|
8142
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0,
|
|
8226
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
8143
8227
|
] }) }),
|
|
8144
|
-
/* @__PURE__ */ (0,
|
|
8228
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.Divider, { className: classes.rightDivider })
|
|
8145
8229
|
]
|
|
8146
8230
|
}
|
|
8147
8231
|
);
|
|
@@ -8153,7 +8237,7 @@ var import_react_dates = require("react-dates");
|
|
|
8153
8237
|
var import_mui59 = require("tss-react/mui");
|
|
8154
8238
|
var import_initialize = require("react-dates/initialize");
|
|
8155
8239
|
var import_datepicker = require("react-dates/lib/css/_datepicker.css");
|
|
8156
|
-
var
|
|
8240
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
8157
8241
|
var useStyles53 = (0, import_mui59.makeStyles)()((theme) => ({
|
|
8158
8242
|
wrapper: {
|
|
8159
8243
|
"& .DateRangePicker": {
|
|
@@ -8249,15 +8333,15 @@ var ThemedDateRangePicker = ({
|
|
|
8249
8333
|
...props
|
|
8250
8334
|
}) => {
|
|
8251
8335
|
const { classes, cx } = useStyles53();
|
|
8252
|
-
return /* @__PURE__ */ (0,
|
|
8336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_react_dates.DateRangePicker, { ...props }) });
|
|
8253
8337
|
};
|
|
8254
8338
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
8255
8339
|
|
|
8256
8340
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
8257
8341
|
var import_react40 = require("react");
|
|
8258
|
-
var
|
|
8342
|
+
var import_material70 = require("@mui/material");
|
|
8259
8343
|
var import_mui60 = require("tss-react/mui");
|
|
8260
|
-
var
|
|
8344
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
8261
8345
|
var useStyles54 = (0, import_mui60.makeStyles)()((theme) => ({
|
|
8262
8346
|
menuButton: {
|
|
8263
8347
|
color: theme.palette.primary.contrastText
|
|
@@ -8277,9 +8361,9 @@ var TheToolbar = ({
|
|
|
8277
8361
|
rightSection
|
|
8278
8362
|
}) => {
|
|
8279
8363
|
const { classes } = useStyles54();
|
|
8280
|
-
return /* @__PURE__ */ (0,
|
|
8281
|
-
/* @__PURE__ */ (0,
|
|
8282
|
-
/* @__PURE__ */ (0,
|
|
8364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Box, { children: [
|
|
8365
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Toolbar, { className: classes.topBar, children: [
|
|
8366
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8283
8367
|
RoundButton_default,
|
|
8284
8368
|
{
|
|
8285
8369
|
className: classes.menuButton,
|
|
@@ -8288,7 +8372,7 @@ var TheToolbar = ({
|
|
|
8288
8372
|
onClick: handleOpen
|
|
8289
8373
|
}
|
|
8290
8374
|
),
|
|
8291
|
-
/* @__PURE__ */ (0,
|
|
8375
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8292
8376
|
CompanyLogo_default,
|
|
8293
8377
|
{
|
|
8294
8378
|
size: "small",
|
|
@@ -8297,8 +8381,8 @@ var TheToolbar = ({
|
|
|
8297
8381
|
imageLogoLightSmall
|
|
8298
8382
|
}
|
|
8299
8383
|
),
|
|
8300
|
-
/* @__PURE__ */ (0,
|
|
8301
|
-
/* @__PURE__ */ (0,
|
|
8384
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Box, { ml: 2, children: leftSection }),
|
|
8385
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Box, { ml: "auto", children: rightSection })
|
|
8302
8386
|
] }) }),
|
|
8303
8387
|
LeftDrawer
|
|
8304
8388
|
] });
|
|
@@ -8306,22 +8390,22 @@ var TheToolbar = ({
|
|
|
8306
8390
|
var TheToolbar_default = (0, import_react40.memo)(TheToolbar);
|
|
8307
8391
|
|
|
8308
8392
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8309
|
-
var
|
|
8310
|
-
var
|
|
8393
|
+
var import_material71 = require("@mui/material");
|
|
8394
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
8311
8395
|
var ToastMessage = ({
|
|
8312
8396
|
toastType,
|
|
8313
8397
|
toastMessage,
|
|
8314
8398
|
open,
|
|
8315
8399
|
onClose
|
|
8316
|
-
}) => /* @__PURE__ */ (0,
|
|
8317
|
-
|
|
8400
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8401
|
+
import_material71.Snackbar,
|
|
8318
8402
|
{
|
|
8319
8403
|
open,
|
|
8320
8404
|
autoHideDuration: 1500,
|
|
8321
8405
|
onClose,
|
|
8322
8406
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8323
|
-
children: /* @__PURE__ */ (0,
|
|
8324
|
-
|
|
8407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8408
|
+
import_material71.Alert,
|
|
8325
8409
|
{
|
|
8326
8410
|
elevation: 6,
|
|
8327
8411
|
variant: "filled",
|
|
@@ -8347,9 +8431,9 @@ var ToastMessage = ({
|
|
|
8347
8431
|
var ToastMessage_default = ToastMessage;
|
|
8348
8432
|
|
|
8349
8433
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
8350
|
-
var
|
|
8434
|
+
var import_material72 = require("@mui/material");
|
|
8351
8435
|
var import_mui61 = require("tss-react/mui");
|
|
8352
|
-
var
|
|
8436
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
8353
8437
|
var useStyles55 = (0, import_mui61.makeStyles)()((theme) => ({
|
|
8354
8438
|
paper: {
|
|
8355
8439
|
padding: theme.spacing(2)
|
|
@@ -8379,20 +8463,20 @@ var TwoButtonDialog = ({
|
|
|
8379
8463
|
cancelButton
|
|
8380
8464
|
}) => {
|
|
8381
8465
|
const { classes } = useStyles55();
|
|
8382
|
-
return /* @__PURE__ */ (0,
|
|
8383
|
-
|
|
8466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
8467
|
+
import_material72.Dialog,
|
|
8384
8468
|
{
|
|
8385
8469
|
open,
|
|
8386
8470
|
disableEnforceFocus: true,
|
|
8387
8471
|
maxWidth: "sm",
|
|
8388
8472
|
fullWidth: true,
|
|
8389
8473
|
closeAfterTransition: true,
|
|
8390
|
-
BackdropComponent:
|
|
8474
|
+
BackdropComponent: import_material72.Backdrop,
|
|
8391
8475
|
BackdropProps: { timeout: 500 },
|
|
8392
|
-
children: /* @__PURE__ */ (0,
|
|
8393
|
-
/* @__PURE__ */ (0,
|
|
8394
|
-
/* @__PURE__ */ (0,
|
|
8395
|
-
|
|
8476
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material72.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material72.Paper, { className: classes.paper, children: [
|
|
8477
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material72.Box, { className: classes.mb, children: [
|
|
8478
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material72.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
8479
|
+
import_material72.Box,
|
|
8396
8480
|
{
|
|
8397
8481
|
sx: {
|
|
8398
8482
|
fontWeight: 600
|
|
@@ -8400,23 +8484,23 @@ var TwoButtonDialog = ({
|
|
|
8400
8484
|
children: title
|
|
8401
8485
|
}
|
|
8402
8486
|
) }),
|
|
8403
|
-
/* @__PURE__ */ (0,
|
|
8404
|
-
|
|
8487
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
|
|
8488
|
+
import_material72.Box,
|
|
8405
8489
|
{
|
|
8406
8490
|
className: classes.mt,
|
|
8407
8491
|
sx: {
|
|
8408
8492
|
fontWeight: 600
|
|
8409
8493
|
},
|
|
8410
8494
|
children: [
|
|
8411
|
-
subtitle1 && /* @__PURE__ */ (0,
|
|
8412
|
-
subtitle2 && /* @__PURE__ */ (0,
|
|
8495
|
+
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material72.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
8496
|
+
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material72.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
8413
8497
|
]
|
|
8414
8498
|
}
|
|
8415
8499
|
)
|
|
8416
8500
|
] }),
|
|
8417
|
-
/* @__PURE__ */ (0,
|
|
8418
|
-
/* @__PURE__ */ (0,
|
|
8419
|
-
/* @__PURE__ */ (0,
|
|
8501
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material72.Divider, {}),
|
|
8502
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material72.Box, { className: classes.buttonContainer, children: [
|
|
8503
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
8420
8504
|
FilledButton_default,
|
|
8421
8505
|
{
|
|
8422
8506
|
copy: cancelLabel,
|
|
@@ -8429,7 +8513,7 @@ var TwoButtonDialog = ({
|
|
|
8429
8513
|
}
|
|
8430
8514
|
}
|
|
8431
8515
|
),
|
|
8432
|
-
/* @__PURE__ */ (0,
|
|
8516
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
8433
8517
|
FilledButton_default,
|
|
8434
8518
|
{
|
|
8435
8519
|
color: "primary",
|
|
@@ -8438,7 +8522,7 @@ var TwoButtonDialog = ({
|
|
|
8438
8522
|
}
|
|
8439
8523
|
)
|
|
8440
8524
|
] }),
|
|
8441
|
-
/* @__PURE__ */ (0,
|
|
8525
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Loading_default, { isLoading: dialogLoading })
|
|
8442
8526
|
] }) })
|
|
8443
8527
|
}
|
|
8444
8528
|
);
|
|
@@ -8447,29 +8531,29 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8447
8531
|
|
|
8448
8532
|
// src/components/UserBust/UserBust.tsx
|
|
8449
8533
|
var import_react41 = require("react");
|
|
8450
|
-
var
|
|
8451
|
-
var
|
|
8452
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0,
|
|
8453
|
-
/* @__PURE__ */ (0,
|
|
8454
|
-
|
|
8534
|
+
var import_material73 = require("@mui/material");
|
|
8535
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
8536
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { children: [
|
|
8537
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8538
|
+
import_material73.Avatar,
|
|
8455
8539
|
{
|
|
8456
8540
|
src: user.profile_picture,
|
|
8457
8541
|
alt: "user_avatar",
|
|
8458
8542
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8459
8543
|
}
|
|
8460
8544
|
),
|
|
8461
|
-
/* @__PURE__ */ (0,
|
|
8462
|
-
/* @__PURE__ */ (0,
|
|
8463
|
-
/* @__PURE__ */ (0,
|
|
8545
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { style: { paddingTop: 16 }, children: [
|
|
8546
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material73.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8547
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material73.Typography, { ...typographyProps.username, children: user.username })
|
|
8464
8548
|
] })
|
|
8465
8549
|
] });
|
|
8466
8550
|
var UserBust_default = (0, import_react41.memo)(UserBust);
|
|
8467
8551
|
|
|
8468
8552
|
// src/components/icons/IconChart.tsx
|
|
8469
|
-
var
|
|
8553
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
8470
8554
|
var SvgIconChart = (props) => {
|
|
8471
8555
|
const { fill } = props;
|
|
8472
|
-
return /* @__PURE__ */ (0,
|
|
8556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
8473
8557
|
"svg",
|
|
8474
8558
|
{
|
|
8475
8559
|
width: "20",
|
|
@@ -8478,7 +8562,7 @@ var SvgIconChart = (props) => {
|
|
|
8478
8562
|
fill: "none",
|
|
8479
8563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8480
8564
|
...props,
|
|
8481
|
-
children: /* @__PURE__ */ (0,
|
|
8565
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
8482
8566
|
"path",
|
|
8483
8567
|
{
|
|
8484
8568
|
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",
|