@natoora-libs/core 0.1.13-mui-upgrade-3 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +175 -143
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +177 -145
- package/dist/components/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -882,7 +882,7 @@ var ExtendedButton = ({
|
|
|
882
882
|
buttonType = "button",
|
|
883
883
|
color = "noOutline",
|
|
884
884
|
disabled = false,
|
|
885
|
-
href
|
|
885
|
+
href,
|
|
886
886
|
tooltip = "",
|
|
887
887
|
component = "button",
|
|
888
888
|
type,
|
|
@@ -919,7 +919,7 @@ var ExtendedButton = ({
|
|
|
919
919
|
component,
|
|
920
920
|
"data-testid": copy ? `extended-button-${copy.toLowerCase()}` : "extended-button",
|
|
921
921
|
disabled,
|
|
922
|
-
href,
|
|
922
|
+
href: href ? href : void 0,
|
|
923
923
|
onClick,
|
|
924
924
|
type: buttonType,
|
|
925
925
|
variant,
|
|
@@ -1003,7 +1003,9 @@ var BottomBar_default = BottomBar;
|
|
|
1003
1003
|
// src/components/BoxButton/BoxButton.tsx
|
|
1004
1004
|
var import_react3 = require("react");
|
|
1005
1005
|
var import_material8 = require("@mui/material");
|
|
1006
|
-
var
|
|
1006
|
+
var import_green = __toESM(require("@mui/material/colors/green"), 1);
|
|
1007
|
+
var import_orange = __toESM(require("@mui/material/colors/orange"), 1);
|
|
1008
|
+
var import_red = __toESM(require("@mui/material/colors/red"), 1);
|
|
1007
1009
|
var import_mui6 = require("tss-react/mui");
|
|
1008
1010
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1009
1011
|
var useStyles6 = (0, import_mui6.makeStyles)()((theme) => ({
|
|
@@ -1030,17 +1032,17 @@ var useStyles6 = (0, import_mui6.makeStyles)()((theme) => ({
|
|
|
1030
1032
|
borderStyle: "solid"
|
|
1031
1033
|
},
|
|
1032
1034
|
green: {
|
|
1033
|
-
borderColor:
|
|
1035
|
+
borderColor: import_green.default["500"],
|
|
1034
1036
|
borderWidth: 3,
|
|
1035
1037
|
borderStyle: "solid"
|
|
1036
1038
|
},
|
|
1037
1039
|
red: {
|
|
1038
|
-
borderColor:
|
|
1040
|
+
borderColor: import_red.default["500"],
|
|
1039
1041
|
borderWidth: 3,
|
|
1040
1042
|
borderStyle: "solid"
|
|
1041
1043
|
},
|
|
1042
1044
|
orange: {
|
|
1043
|
-
borderColor:
|
|
1045
|
+
borderColor: import_orange.default["500"],
|
|
1044
1046
|
borderWidth: 3,
|
|
1045
1047
|
borderStyle: "solid"
|
|
1046
1048
|
},
|
|
@@ -3867,7 +3869,7 @@ var DataGrid_default = DataGrid;
|
|
|
3867
3869
|
var import_moment = __toESM(require("moment"), 1);
|
|
3868
3870
|
|
|
3869
3871
|
// src/resources/styles/themes/default.js
|
|
3870
|
-
var
|
|
3872
|
+
var import_grey = __toESM(require("@mui/material/colors/grey"), 1);
|
|
3871
3873
|
var import_styles = require("@mui/material/styles");
|
|
3872
3874
|
var defaultTheme = (0, import_styles.createTheme)({
|
|
3873
3875
|
typography: {
|
|
@@ -3882,14 +3884,14 @@ var defaultTheme = (0, import_styles.createTheme)({
|
|
|
3882
3884
|
primary: {
|
|
3883
3885
|
main: colors.muiPrimary,
|
|
3884
3886
|
alternate: colors.muiPrimaryAlternate,
|
|
3885
|
-
light:
|
|
3886
|
-
contrastText:
|
|
3887
|
+
light: import_grey.default["100"],
|
|
3888
|
+
contrastText: import_grey.default["50"]
|
|
3887
3889
|
},
|
|
3888
3890
|
secondary: {
|
|
3889
3891
|
main: colors.muiSecondary,
|
|
3890
3892
|
alternate: colors.muiSecondaryAlternate,
|
|
3891
|
-
dark:
|
|
3892
|
-
light:
|
|
3893
|
+
dark: import_grey.default["900"],
|
|
3894
|
+
light: import_grey.default["50"]
|
|
3893
3895
|
},
|
|
3894
3896
|
success: {
|
|
3895
3897
|
main: colors.muiSuccess,
|
|
@@ -4116,13 +4118,14 @@ var FileCard_default = FileCard;
|
|
|
4116
4118
|
// src/components/FilledLabel/FilledLabel.tsx
|
|
4117
4119
|
var import_react15 = require("react");
|
|
4118
4120
|
var import_material29 = require("@mui/material");
|
|
4119
|
-
var
|
|
4121
|
+
var import_brown = __toESM(require("@mui/material/colors/brown"), 1);
|
|
4122
|
+
var import_teal = __toESM(require("@mui/material/colors/teal"), 1);
|
|
4120
4123
|
var import_mui26 = require("tss-react/mui");
|
|
4121
4124
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4122
4125
|
var useStyles24 = (0, import_mui26.makeStyles)()((theme) => ({
|
|
4123
4126
|
siteOne: {
|
|
4124
|
-
backgroundColor:
|
|
4125
|
-
color:
|
|
4127
|
+
backgroundColor: import_teal.default["50"],
|
|
4128
|
+
color: import_teal.default["500"],
|
|
4126
4129
|
padding: theme.spacing(0.5),
|
|
4127
4130
|
paddingLeft: theme.spacing(2),
|
|
4128
4131
|
paddingRight: theme.spacing(2),
|
|
@@ -4132,8 +4135,8 @@ var useStyles24 = (0, import_mui26.makeStyles)()((theme) => ({
|
|
|
4132
4135
|
width: "fit-content"
|
|
4133
4136
|
},
|
|
4134
4137
|
siteTwo: {
|
|
4135
|
-
backgroundColor:
|
|
4136
|
-
color:
|
|
4138
|
+
backgroundColor: import_brown.default["50"],
|
|
4139
|
+
color: import_brown.default["500"],
|
|
4137
4140
|
padding: theme.spacing(0.5),
|
|
4138
4141
|
paddingLeft: theme.spacing(2),
|
|
4139
4142
|
paddingRight: theme.spacing(2),
|
|
@@ -4523,7 +4526,7 @@ var Loading_default = Loading;
|
|
|
4523
4526
|
// src/components/LocationsSectionInfo/LocationsSectionInfo.tsx
|
|
4524
4527
|
var import_react18 = require("react");
|
|
4525
4528
|
var import_material36 = require("@mui/material");
|
|
4526
|
-
var
|
|
4529
|
+
var import_colors31 = require("@mui/material/colors");
|
|
4527
4530
|
var import_classnames2 = __toESM(require("classnames"), 1);
|
|
4528
4531
|
var import_mui32 = require("tss-react/mui");
|
|
4529
4532
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
@@ -4552,8 +4555,8 @@ var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
|
|
|
4552
4555
|
borderColor: colors.neutral100
|
|
4553
4556
|
},
|
|
4554
4557
|
pickingStockChip: {
|
|
4555
|
-
backgroundColor:
|
|
4556
|
-
color:
|
|
4558
|
+
backgroundColor: import_colors31.purple[50],
|
|
4559
|
+
color: import_colors31.purple[500]
|
|
4557
4560
|
}
|
|
4558
4561
|
}));
|
|
4559
4562
|
var LocationsSectionInfo = ({
|
|
@@ -6716,13 +6719,13 @@ var SmartSelect_default = SmartSelect;
|
|
|
6716
6719
|
// src/components/SquareLabel/SquareLabel.tsx
|
|
6717
6720
|
var import_react30 = require("react");
|
|
6718
6721
|
var import_material56 = require("@mui/material");
|
|
6719
|
-
var
|
|
6722
|
+
var import_red2 = __toESM(require("@mui/material/colors/red"), 1);
|
|
6720
6723
|
var import_mui50 = require("tss-react/mui");
|
|
6721
6724
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
6722
6725
|
var useStyles45 = (0, import_mui50.makeStyles)()((theme) => ({
|
|
6723
6726
|
red: {
|
|
6724
|
-
backgroundColor:
|
|
6725
|
-
color:
|
|
6727
|
+
backgroundColor: import_red2.default["50"],
|
|
6728
|
+
color: import_red2.default["500"],
|
|
6726
6729
|
padding: theme.spacing(1.5),
|
|
6727
6730
|
borderRadius: "5px",
|
|
6728
6731
|
marginTop: theme.spacing(1),
|
|
@@ -6940,10 +6943,39 @@ var SmartTableHeader = ({
|
|
|
6940
6943
|
};
|
|
6941
6944
|
var SmartTableHeader_default = (0, import_react32.memo)(SmartTableHeader);
|
|
6942
6945
|
|
|
6946
|
+
// src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
|
|
6947
|
+
var import_TableBody = __toESM(require("@mui/material/TableBody"), 1);
|
|
6948
|
+
var import_TableCell = __toESM(require("@mui/material/TableCell"), 1);
|
|
6949
|
+
var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
|
|
6950
|
+
var import_Typography = __toESM(require("@mui/material/Typography"), 1);
|
|
6951
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
6952
|
+
var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_TableBody.default, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_TableRow.default, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
6953
|
+
import_TableCell.default,
|
|
6954
|
+
{
|
|
6955
|
+
sx: {
|
|
6956
|
+
py: 8,
|
|
6957
|
+
gap: 2,
|
|
6958
|
+
borderBottom: "none",
|
|
6959
|
+
display: "flex",
|
|
6960
|
+
flexDirection: "column",
|
|
6961
|
+
justifyContent: "center",
|
|
6962
|
+
alignItems: "center"
|
|
6963
|
+
},
|
|
6964
|
+
children: [
|
|
6965
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_Typography.default, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
|
|
6966
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_Typography.default, { variant: "subtitle1", align: "center", color: "textSecondary", children: [
|
|
6967
|
+
"Use the column selector on the right to choose which fields",
|
|
6968
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("br", {}),
|
|
6969
|
+
"you want to display in the table"
|
|
6970
|
+
] })
|
|
6971
|
+
]
|
|
6972
|
+
}
|
|
6973
|
+
) }) });
|
|
6974
|
+
|
|
6943
6975
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
6944
6976
|
var import_material59 = require("@mui/material");
|
|
6945
6977
|
var import_mui53 = require("tss-react/mui");
|
|
6946
|
-
var
|
|
6978
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
6947
6979
|
var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
|
|
6948
6980
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
6949
6981
|
tableCellDefault: { padding: 24 }
|
|
@@ -6955,17 +6987,17 @@ var TableEmptyResult = ({
|
|
|
6955
6987
|
}
|
|
6956
6988
|
}) => {
|
|
6957
6989
|
const { classes } = useStyles47();
|
|
6958
|
-
return showClearFilterButton ? /* @__PURE__ */ (0,
|
|
6990
|
+
return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
6959
6991
|
import_material59.TableCell,
|
|
6960
6992
|
{
|
|
6961
6993
|
className: classes.tableCellIcon,
|
|
6962
6994
|
colSpan,
|
|
6963
6995
|
align: "center",
|
|
6964
6996
|
children: [
|
|
6965
|
-
/* @__PURE__ */ (0,
|
|
6966
|
-
/* @__PURE__ */ (0,
|
|
6967
|
-
/* @__PURE__ */ (0,
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
6997
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(EmptyGlassIcon_default, {}),
|
|
6998
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.Typography, { variant: "h6", children: "No results found." }),
|
|
6999
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
7000
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6969
7001
|
FilledButton_default,
|
|
6970
7002
|
{
|
|
6971
7003
|
copy: "Search",
|
|
@@ -6976,7 +7008,7 @@ var TableEmptyResult = ({
|
|
|
6976
7008
|
)
|
|
6977
7009
|
]
|
|
6978
7010
|
}
|
|
6979
|
-
) }) : /* @__PURE__ */ (0,
|
|
7011
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6980
7012
|
import_material59.TableCell,
|
|
6981
7013
|
{
|
|
6982
7014
|
className: classes.tableCellDefault,
|
|
@@ -6989,7 +7021,7 @@ var TableEmptyResult = ({
|
|
|
6989
7021
|
var TableEmptyResult_default = TableEmptyResult;
|
|
6990
7022
|
|
|
6991
7023
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
6992
|
-
var
|
|
7024
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
6993
7025
|
var ROW_HEIGHT = 56;
|
|
6994
7026
|
var useStyles48 = (0, import_mui54.makeStyles)()((theme) => ({
|
|
6995
7027
|
root: {
|
|
@@ -7128,7 +7160,7 @@ var TableDesktop = ({
|
|
|
7128
7160
|
);
|
|
7129
7161
|
const renderTableRows = (0, import_react33.useMemo)(() => {
|
|
7130
7162
|
if (isLoading) {
|
|
7131
|
-
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ (0,
|
|
7163
|
+
return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableRow, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7132
7164
|
import_material60.Skeleton,
|
|
7133
7165
|
{
|
|
7134
7166
|
animation: "pulse",
|
|
@@ -7142,7 +7174,7 @@ var TableDesktop = ({
|
|
|
7142
7174
|
const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
|
|
7143
7175
|
return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
|
|
7144
7176
|
const isItemSelected = selected.has(row[keyField]);
|
|
7145
|
-
return /* @__PURE__ */ (0,
|
|
7177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7146
7178
|
RenderItem,
|
|
7147
7179
|
{
|
|
7148
7180
|
...{
|
|
@@ -7182,16 +7214,16 @@ var TableDesktop = ({
|
|
|
7182
7214
|
setSelected(/* @__PURE__ */ new Set());
|
|
7183
7215
|
}
|
|
7184
7216
|
}, [enableCheckboxSelection]);
|
|
7185
|
-
return /* @__PURE__ */ (0,
|
|
7186
|
-
/* @__PURE__ */ (0,
|
|
7217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_material60.Paper, { className: classes.paper, children: [
|
|
7218
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7187
7219
|
import_material60.Table,
|
|
7188
7220
|
{
|
|
7189
7221
|
stickyHeader: true,
|
|
7190
7222
|
"aria-labelledby": "tableTitle",
|
|
7191
7223
|
"aria-label": "sticky table",
|
|
7192
7224
|
style: { tableLayout },
|
|
7193
|
-
children: [
|
|
7194
|
-
/* @__PURE__ */ (0,
|
|
7225
|
+
children: visibleHeadCells.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(TableDesktopNoColumnsMessage, {}) : /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
|
|
7226
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7195
7227
|
SmartTableHeader_default,
|
|
7196
7228
|
{
|
|
7197
7229
|
headCells: visibleHeadCells,
|
|
@@ -7207,7 +7239,7 @@ var TableDesktop = ({
|
|
|
7207
7239
|
shouldShowCheckOnFilter
|
|
7208
7240
|
}
|
|
7209
7241
|
),
|
|
7210
|
-
/* @__PURE__ */ (0,
|
|
7242
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableBody, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7211
7243
|
TableEmptyResult_default,
|
|
7212
7244
|
{
|
|
7213
7245
|
colSpan: enableCheckboxSelection ? visibleHeadCells.length + 1 : visibleHeadCells.length,
|
|
@@ -7215,7 +7247,7 @@ var TableDesktop = ({
|
|
|
7215
7247
|
handleClickOnClearFiltersButton
|
|
7216
7248
|
}
|
|
7217
7249
|
) })
|
|
7218
|
-
]
|
|
7250
|
+
] })
|
|
7219
7251
|
}
|
|
7220
7252
|
) }),
|
|
7221
7253
|
children
|
|
@@ -7224,7 +7256,7 @@ var TableDesktop = ({
|
|
|
7224
7256
|
var TableDesktop_default = TableDesktop;
|
|
7225
7257
|
|
|
7226
7258
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
7227
|
-
var
|
|
7259
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
7228
7260
|
var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
|
|
7229
7261
|
filterMenu: {
|
|
7230
7262
|
display: "flex",
|
|
@@ -7336,18 +7368,18 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7336
7368
|
const isOptionChecked = (0, import_react34.useMemo)(() => (resolvedOption) => !!selectedFilters?.some(
|
|
7337
7369
|
(value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
|
|
7338
7370
|
), [selectedFilters]);
|
|
7339
|
-
const loadingSkeletons = /* @__PURE__ */ (0,
|
|
7340
|
-
/* @__PURE__ */ (0,
|
|
7341
|
-
/* @__PURE__ */ (0,
|
|
7342
|
-
/* @__PURE__ */ (0,
|
|
7343
|
-
/* @__PURE__ */ (0,
|
|
7344
|
-
/* @__PURE__ */ (0,
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7346
|
-
/* @__PURE__ */ (0,
|
|
7347
|
-
/* @__PURE__ */ (0,
|
|
7371
|
+
const loadingSkeletons = /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material61.Box, { "data-testid": "loading-skeletons", width: 272, children: [
|
|
7372
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7373
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, {}),
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7375
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7376
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7377
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
|
|
7378
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, {}),
|
|
7379
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton })
|
|
7348
7380
|
] });
|
|
7349
|
-
return /* @__PURE__ */ (0,
|
|
7350
|
-
/* @__PURE__ */ (0,
|
|
7381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
7382
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7351
7383
|
ActiveFiltersIconButton_default,
|
|
7352
7384
|
{
|
|
7353
7385
|
numActiveFilters,
|
|
@@ -7357,7 +7389,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7357
7389
|
})
|
|
7358
7390
|
}
|
|
7359
7391
|
),
|
|
7360
|
-
/* @__PURE__ */ (0,
|
|
7392
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7361
7393
|
import_material61.Menu,
|
|
7362
7394
|
{
|
|
7363
7395
|
open: !!anchorEl,
|
|
@@ -7366,12 +7398,12 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7366
7398
|
"data-testid": "filter-menu",
|
|
7367
7399
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
7368
7400
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
7369
|
-
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ (0,
|
|
7370
|
-
/* @__PURE__ */ (0,
|
|
7401
|
+
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material61.Box, { className: classes.filterMenu, children: [
|
|
7402
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Box, { px: 3, mb: 0.5, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7371
7403
|
import_material61.FormControlLabel,
|
|
7372
7404
|
{
|
|
7373
7405
|
label: "Select All",
|
|
7374
|
-
control: /* @__PURE__ */ (0,
|
|
7406
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7375
7407
|
import_material61.Checkbox,
|
|
7376
7408
|
{
|
|
7377
7409
|
disableRipple: true,
|
|
@@ -7388,20 +7420,20 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7388
7420
|
)
|
|
7389
7421
|
}
|
|
7390
7422
|
) }),
|
|
7391
|
-
/* @__PURE__ */ (0,
|
|
7392
|
-
/* @__PURE__ */ (0,
|
|
7423
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, { sx: { mb: 0.5 } }),
|
|
7424
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Box, { className: classes.filterOptions, children: filterOptionsData?.map(
|
|
7393
7425
|
(option) => {
|
|
7394
7426
|
const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
|
|
7395
|
-
return /* @__PURE__ */ (0,
|
|
7427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7396
7428
|
import_material61.Box,
|
|
7397
7429
|
{
|
|
7398
7430
|
className: classes.filter,
|
|
7399
7431
|
children: [
|
|
7400
|
-
/* @__PURE__ */ (0,
|
|
7432
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7401
7433
|
import_material61.FormControlLabel,
|
|
7402
7434
|
{
|
|
7403
7435
|
label: resolvedOption,
|
|
7404
|
-
control: /* @__PURE__ */ (0,
|
|
7436
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7405
7437
|
import_material61.Checkbox,
|
|
7406
7438
|
{
|
|
7407
7439
|
disableRipple: true,
|
|
@@ -7412,16 +7444,16 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7412
7444
|
},
|
|
7413
7445
|
resolvedOption
|
|
7414
7446
|
),
|
|
7415
|
-
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ (0,
|
|
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
|
|
7416
7448
|
]
|
|
7417
7449
|
},
|
|
7418
7450
|
resolvedOption
|
|
7419
7451
|
);
|
|
7420
7452
|
}
|
|
7421
7453
|
) }),
|
|
7422
|
-
/* @__PURE__ */ (0,
|
|
7423
|
-
/* @__PURE__ */ (0,
|
|
7424
|
-
/* @__PURE__ */ (0,
|
|
7454
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, { sx: { mb: 0.5 } }),
|
|
7455
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material61.Box, { className: classes.applyFilterButtonsContainer, children: [
|
|
7456
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7425
7457
|
ExtendedButton_default,
|
|
7426
7458
|
{
|
|
7427
7459
|
copy: "Save as Default",
|
|
@@ -7432,7 +7464,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7432
7464
|
onClick: () => handleApplyFilters(true)
|
|
7433
7465
|
}
|
|
7434
7466
|
),
|
|
7435
|
-
/* @__PURE__ */ (0,
|
|
7467
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7436
7468
|
ExtendedButton_default,
|
|
7437
7469
|
{
|
|
7438
7470
|
copy: "Apply",
|
|
@@ -7458,11 +7490,11 @@ var import_uuid = require("uuid");
|
|
|
7458
7490
|
|
|
7459
7491
|
// src/components/TableLoading/TableLoading.tsx
|
|
7460
7492
|
var import_material62 = require("@mui/material");
|
|
7461
|
-
var
|
|
7493
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
7462
7494
|
var TableLoading = ({
|
|
7463
7495
|
rowsPerPage,
|
|
7464
7496
|
rowHeight
|
|
7465
|
-
}) => /* @__PURE__ */ (0,
|
|
7497
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material62.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7466
7498
|
import_material62.Skeleton,
|
|
7467
7499
|
{
|
|
7468
7500
|
animation: "pulse",
|
|
@@ -7511,7 +7543,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7511
7543
|
}
|
|
7512
7544
|
|
|
7513
7545
|
// src/components/Table/Table.tsx
|
|
7514
|
-
var
|
|
7546
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
7515
7547
|
var useStyles50 = (0, import_mui56.makeStyles)()(() => ({
|
|
7516
7548
|
root: {
|
|
7517
7549
|
height: "calc(100vh - 262px)",
|
|
@@ -7589,24 +7621,24 @@ var Table2 = ({
|
|
|
7589
7621
|
);
|
|
7590
7622
|
const rowsComponents = rows.map((row) => {
|
|
7591
7623
|
if (RenderItem) {
|
|
7592
|
-
return /* @__PURE__ */ (0,
|
|
7624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(RenderItem, { ...row }, row.id);
|
|
7593
7625
|
}
|
|
7594
|
-
return /* @__PURE__ */ (0,
|
|
7626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableCell, { children: row[column.id] }, column.id)) }, row.id);
|
|
7595
7627
|
});
|
|
7596
7628
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
7597
7629
|
rowsComponents.push(
|
|
7598
|
-
/* @__PURE__ */ (0,
|
|
7630
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
|
|
7599
7631
|
);
|
|
7600
7632
|
}
|
|
7601
7633
|
return rowsComponents;
|
|
7602
7634
|
};
|
|
7603
|
-
return /* @__PURE__ */ (0,
|
|
7604
|
-
/* @__PURE__ */ (0,
|
|
7635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material63.Table, { size: "medium", stickyHeader: true, children: [
|
|
7636
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7605
7637
|
import_material63.TableCell,
|
|
7606
7638
|
{
|
|
7607
7639
|
align: "left",
|
|
7608
7640
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
7609
|
-
children: /* @__PURE__ */ (0,
|
|
7641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7610
7642
|
import_material63.TableSortLabel,
|
|
7611
7643
|
{
|
|
7612
7644
|
active: orderBy === headCell.id,
|
|
@@ -7618,9 +7650,9 @@ var Table2 = ({
|
|
|
7618
7650
|
},
|
|
7619
7651
|
headCell.id
|
|
7620
7652
|
)) }) }),
|
|
7621
|
-
/* @__PURE__ */ (0,
|
|
7653
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material63.TableBody, { children: [
|
|
7622
7654
|
getTableRows(),
|
|
7623
|
-
rowsPerPage === emptyRows && /* @__PURE__ */ (0,
|
|
7655
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
7624
7656
|
] })
|
|
7625
7657
|
] }) }) }) });
|
|
7626
7658
|
};
|
|
@@ -7629,7 +7661,7 @@ var Table_default = Table2;
|
|
|
7629
7661
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7630
7662
|
var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
|
|
7631
7663
|
var import_material64 = require("@mui/material");
|
|
7632
|
-
var
|
|
7664
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
7633
7665
|
var TableDesktopFooter = ({
|
|
7634
7666
|
numPages,
|
|
7635
7667
|
page,
|
|
@@ -7640,7 +7672,7 @@ var TableDesktopFooter = ({
|
|
|
7640
7672
|
refetch,
|
|
7641
7673
|
isFetching
|
|
7642
7674
|
}) => {
|
|
7643
|
-
return /* @__PURE__ */ (0,
|
|
7675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
7644
7676
|
import_material64.Box,
|
|
7645
7677
|
{
|
|
7646
7678
|
py: 1,
|
|
@@ -7651,7 +7683,7 @@ var TableDesktopFooter = ({
|
|
|
7651
7683
|
borderTop: `1px solid ${colors.neutral300}`,
|
|
7652
7684
|
bgcolor: (theme) => theme.palette.background.default,
|
|
7653
7685
|
children: [
|
|
7654
|
-
/* @__PURE__ */ (0,
|
|
7686
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
7655
7687
|
import_material64.Button,
|
|
7656
7688
|
{
|
|
7657
7689
|
disableRipple: true,
|
|
@@ -7666,7 +7698,7 @@ var TableDesktopFooter = ({
|
|
|
7666
7698
|
borderColor: colors.neutral600
|
|
7667
7699
|
},
|
|
7668
7700
|
children: [
|
|
7669
|
-
/* @__PURE__ */ (0,
|
|
7701
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7670
7702
|
import_Refresh.default,
|
|
7671
7703
|
{
|
|
7672
7704
|
fontSize: "small",
|
|
@@ -7677,21 +7709,21 @@ var TableDesktopFooter = ({
|
|
|
7677
7709
|
]
|
|
7678
7710
|
}
|
|
7679
7711
|
),
|
|
7680
|
-
/* @__PURE__ */ (0,
|
|
7681
|
-
/* @__PURE__ */ (0,
|
|
7682
|
-
/* @__PURE__ */ (0,
|
|
7683
|
-
/* @__PURE__ */ (0,
|
|
7712
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material64.Box, { display: "flex", children: [
|
|
7713
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material64.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7714
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material64.Typography, { children: "Rows per page:" }),
|
|
7715
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7684
7716
|
import_material64.Select,
|
|
7685
7717
|
{
|
|
7686
7718
|
value: pageSize,
|
|
7687
7719
|
onChange: handlePageSizeChange,
|
|
7688
7720
|
size: "small",
|
|
7689
7721
|
variant: "standard",
|
|
7690
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */ (0,
|
|
7722
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material64.MenuItem, { value: size, children: size }, size))
|
|
7691
7723
|
}
|
|
7692
7724
|
)
|
|
7693
7725
|
] }),
|
|
7694
|
-
/* @__PURE__ */ (0,
|
|
7726
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7695
7727
|
import_material64.Pagination,
|
|
7696
7728
|
{
|
|
7697
7729
|
color: "standard",
|
|
@@ -7712,7 +7744,7 @@ var import_material65 = require("@mui/material");
|
|
|
7712
7744
|
|
|
7713
7745
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7714
7746
|
var import_react36 = require("react");
|
|
7715
|
-
var
|
|
7747
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7716
7748
|
var resolveValue = (value) => {
|
|
7717
7749
|
if (typeof value === "string") {
|
|
7718
7750
|
return value;
|
|
@@ -7744,7 +7776,7 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
|
|
|
7744
7776
|
setOptions(parsedOptions);
|
|
7745
7777
|
}
|
|
7746
7778
|
}, [filterOptions]);
|
|
7747
|
-
return /* @__PURE__ */ (0,
|
|
7779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
7748
7780
|
SmartSelect_default,
|
|
7749
7781
|
{
|
|
7750
7782
|
ref,
|
|
@@ -7772,7 +7804,7 @@ var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
|
7772
7804
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7773
7805
|
var import_TextField = __toESM(require("@mui/material/TextField"), 1);
|
|
7774
7806
|
var import_react37 = require("react");
|
|
7775
|
-
var
|
|
7807
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7776
7808
|
var TableDesktopTextField = ({
|
|
7777
7809
|
rowId,
|
|
7778
7810
|
editInitialValue,
|
|
@@ -7783,7 +7815,7 @@ var TableDesktopTextField = ({
|
|
|
7783
7815
|
}) => {
|
|
7784
7816
|
const [value, setValue] = (0, import_react37.useState)(editInitialValue);
|
|
7785
7817
|
const hasError = (0, import_react37.useMemo)(() => !validateInput?.(value), [value, validateInput]);
|
|
7786
|
-
return /* @__PURE__ */ (0,
|
|
7818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7787
7819
|
import_TextField.default,
|
|
7788
7820
|
{
|
|
7789
7821
|
fullWidth: true,
|
|
@@ -7808,7 +7840,7 @@ var TableDesktopTextField = ({
|
|
|
7808
7840
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7809
7841
|
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
7810
7842
|
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
7811
|
-
var
|
|
7843
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
7812
7844
|
var TableDesktopRowCell = ({
|
|
7813
7845
|
inputLabel,
|
|
7814
7846
|
editInitialValue,
|
|
@@ -7849,7 +7881,7 @@ var TableDesktopRowCell = ({
|
|
|
7849
7881
|
};
|
|
7850
7882
|
}, [isEditMode]);
|
|
7851
7883
|
const editableComponents = {
|
|
7852
|
-
"select": /* @__PURE__ */ (0,
|
|
7884
|
+
"select": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7853
7885
|
TableDesktopSmartSelect,
|
|
7854
7886
|
{
|
|
7855
7887
|
rowId,
|
|
@@ -7863,7 +7895,7 @@ var TableDesktopRowCell = ({
|
|
|
7863
7895
|
onUpdateEditableCell
|
|
7864
7896
|
}
|
|
7865
7897
|
),
|
|
7866
|
-
"checkbox": /* @__PURE__ */ (0,
|
|
7898
|
+
"checkbox": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7867
7899
|
import_material65.Checkbox,
|
|
7868
7900
|
{
|
|
7869
7901
|
disableRipple: true,
|
|
@@ -7874,7 +7906,7 @@ var TableDesktopRowCell = ({
|
|
|
7874
7906
|
}
|
|
7875
7907
|
}
|
|
7876
7908
|
),
|
|
7877
|
-
"text": /* @__PURE__ */ (0,
|
|
7909
|
+
"text": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7878
7910
|
TableDesktopTextField,
|
|
7879
7911
|
{
|
|
7880
7912
|
rowId,
|
|
@@ -7885,7 +7917,7 @@ var TableDesktopRowCell = ({
|
|
|
7885
7917
|
onUpdateEditableCell
|
|
7886
7918
|
}
|
|
7887
7919
|
),
|
|
7888
|
-
"numeric": /* @__PURE__ */ (0,
|
|
7920
|
+
"numeric": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7889
7921
|
import_material65.TextField,
|
|
7890
7922
|
{
|
|
7891
7923
|
fullWidth: true,
|
|
@@ -7909,7 +7941,7 @@ var TableDesktopRowCell = ({
|
|
|
7909
7941
|
};
|
|
7910
7942
|
const getReadOnlyBooleanIcon = (value) => {
|
|
7911
7943
|
if (value) {
|
|
7912
|
-
return /* @__PURE__ */ (0,
|
|
7944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
|
|
7913
7945
|
}
|
|
7914
7946
|
return "-";
|
|
7915
7947
|
};
|
|
@@ -7917,7 +7949,7 @@ var TableDesktopRowCell = ({
|
|
|
7917
7949
|
e.stopPropagation();
|
|
7918
7950
|
setIsEditMode((prev) => !prev);
|
|
7919
7951
|
};
|
|
7920
|
-
return /* @__PURE__ */ (0,
|
|
7952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material65.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7921
7953
|
import_material65.TableCell,
|
|
7922
7954
|
{
|
|
7923
7955
|
align: "left",
|
|
@@ -7935,7 +7967,7 @@ var TableDesktopRowCell = ({
|
|
|
7935
7967
|
},
|
|
7936
7968
|
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7937
7969
|
},
|
|
7938
|
-
children: /* @__PURE__ */ (0,
|
|
7970
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
7939
7971
|
import_material65.Box,
|
|
7940
7972
|
{
|
|
7941
7973
|
p: 1,
|
|
@@ -7944,7 +7976,7 @@ var TableDesktopRowCell = ({
|
|
|
7944
7976
|
textOverflow: "ellipsis",
|
|
7945
7977
|
whiteSpace: "nowrap",
|
|
7946
7978
|
children: [
|
|
7947
|
-
isCellHovered ? /* @__PURE__ */ (0,
|
|
7979
|
+
isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material65.Tooltip, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7948
7980
|
import_material65.IconButton,
|
|
7949
7981
|
{
|
|
7950
7982
|
onClick: handleEditClick,
|
|
@@ -7959,7 +7991,7 @@ var TableDesktopRowCell = ({
|
|
|
7959
7991
|
backgroundColor: isEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
7960
7992
|
}
|
|
7961
7993
|
},
|
|
7962
|
-
children: isEditMode ? /* @__PURE__ */ (0,
|
|
7994
|
+
children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Edit.default, { fontSize: "small" })
|
|
7963
7995
|
}
|
|
7964
7996
|
) }) : null,
|
|
7965
7997
|
isEditMode && editableCellType ? editableComponents[editableCellType] : typeof readOnlyValue === "boolean" ? getReadOnlyBooleanIcon(readOnlyValue) : readOnlyValue
|
|
@@ -7975,7 +8007,7 @@ var import_react39 = require("react");
|
|
|
7975
8007
|
var import_icons_material12 = require("@mui/icons-material");
|
|
7976
8008
|
var import_material66 = require("@mui/material");
|
|
7977
8009
|
var import_mui57 = require("tss-react/mui");
|
|
7978
|
-
var
|
|
8010
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
7979
8011
|
var useStyles51 = (0, import_mui57.makeStyles)()(() => ({
|
|
7980
8012
|
sortLabel: {
|
|
7981
8013
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -8020,7 +8052,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8020
8052
|
});
|
|
8021
8053
|
setSortableCells(sortedCells);
|
|
8022
8054
|
};
|
|
8023
|
-
return /* @__PURE__ */ (0,
|
|
8055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material66.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material66.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material66.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8024
8056
|
import_material66.TableSortLabel,
|
|
8025
8057
|
{
|
|
8026
8058
|
className: classes.sortLabel,
|
|
@@ -8036,7 +8068,7 @@ var TableHeader_default = (0, import_react39.memo)(TableHeader);
|
|
|
8036
8068
|
// src/components/TextDivider/TextDivider.tsx
|
|
8037
8069
|
var import_material67 = require("@mui/material");
|
|
8038
8070
|
var import_mui58 = require("tss-react/mui");
|
|
8039
|
-
var
|
|
8071
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
8040
8072
|
var useStyles52 = (0, import_mui58.makeStyles)()(() => ({
|
|
8041
8073
|
icon: {
|
|
8042
8074
|
fontSize: 20
|
|
@@ -8073,7 +8105,7 @@ var TextDivider = ({
|
|
|
8073
8105
|
}) => {
|
|
8074
8106
|
const { classes } = useStyles52();
|
|
8075
8107
|
const iconColor = color ?? colors.neutral900;
|
|
8076
|
-
return /* @__PURE__ */ (0,
|
|
8108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
8077
8109
|
import_material67.Box,
|
|
8078
8110
|
{
|
|
8079
8111
|
display: "flex",
|
|
@@ -8081,10 +8113,10 @@ var TextDivider = ({
|
|
|
8081
8113
|
justifyContent: "space-between",
|
|
8082
8114
|
className: classes.container,
|
|
8083
8115
|
children: [
|
|
8084
|
-
/* @__PURE__ */ (0,
|
|
8085
|
-
/* @__PURE__ */ (0,
|
|
8086
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0,
|
|
8087
|
-
/* @__PURE__ */ (0,
|
|
8116
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Divider, { className: classes.leftDivider }),
|
|
8117
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_material67.Box, { className: classes.center, children: [
|
|
8118
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
8119
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8088
8120
|
import_material67.Typography,
|
|
8089
8121
|
{
|
|
8090
8122
|
color: "textSecondary",
|
|
@@ -8093,9 +8125,9 @@ var TextDivider = ({
|
|
|
8093
8125
|
children: title
|
|
8094
8126
|
}
|
|
8095
8127
|
),
|
|
8096
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0,
|
|
8128
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
8097
8129
|
] }) }),
|
|
8098
|
-
/* @__PURE__ */ (0,
|
|
8130
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Divider, { className: classes.rightDivider })
|
|
8099
8131
|
]
|
|
8100
8132
|
}
|
|
8101
8133
|
);
|
|
@@ -8107,7 +8139,7 @@ var import_react_dates = require("react-dates");
|
|
|
8107
8139
|
var import_mui59 = require("tss-react/mui");
|
|
8108
8140
|
var import_initialize = require("react-dates/initialize");
|
|
8109
8141
|
var import_datepicker = require("react-dates/lib/css/_datepicker.css");
|
|
8110
|
-
var
|
|
8142
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
8111
8143
|
var useStyles53 = (0, import_mui59.makeStyles)()((theme) => ({
|
|
8112
8144
|
wrapper: {
|
|
8113
8145
|
"& .DateRangePicker": {
|
|
@@ -8203,7 +8235,7 @@ var ThemedDateRangePicker = ({
|
|
|
8203
8235
|
...props
|
|
8204
8236
|
}) => {
|
|
8205
8237
|
const { classes, cx } = useStyles53();
|
|
8206
|
-
return /* @__PURE__ */ (0,
|
|
8238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react_dates.DateRangePicker, { ...props }) });
|
|
8207
8239
|
};
|
|
8208
8240
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
8209
8241
|
|
|
@@ -8211,7 +8243,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
8211
8243
|
var import_react40 = require("react");
|
|
8212
8244
|
var import_material68 = require("@mui/material");
|
|
8213
8245
|
var import_mui60 = require("tss-react/mui");
|
|
8214
|
-
var
|
|
8246
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
8215
8247
|
var useStyles54 = (0, import_mui60.makeStyles)()((theme) => ({
|
|
8216
8248
|
menuButton: {
|
|
8217
8249
|
color: theme.palette.primary.contrastText
|
|
@@ -8231,9 +8263,9 @@ var TheToolbar = ({
|
|
|
8231
8263
|
rightSection
|
|
8232
8264
|
}) => {
|
|
8233
8265
|
const { classes } = useStyles54();
|
|
8234
|
-
return /* @__PURE__ */ (0,
|
|
8235
|
-
/* @__PURE__ */ (0,
|
|
8236
|
-
/* @__PURE__ */ (0,
|
|
8266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material68.Box, { children: [
|
|
8267
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material68.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material68.Toolbar, { className: classes.topBar, children: [
|
|
8268
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8237
8269
|
RoundButton_default,
|
|
8238
8270
|
{
|
|
8239
8271
|
className: classes.menuButton,
|
|
@@ -8242,7 +8274,7 @@ var TheToolbar = ({
|
|
|
8242
8274
|
onClick: handleOpen
|
|
8243
8275
|
}
|
|
8244
8276
|
),
|
|
8245
|
-
/* @__PURE__ */ (0,
|
|
8277
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8246
8278
|
CompanyLogo_default,
|
|
8247
8279
|
{
|
|
8248
8280
|
size: "small",
|
|
@@ -8251,8 +8283,8 @@ var TheToolbar = ({
|
|
|
8251
8283
|
imageLogoLightSmall
|
|
8252
8284
|
}
|
|
8253
8285
|
),
|
|
8254
|
-
/* @__PURE__ */ (0,
|
|
8255
|
-
/* @__PURE__ */ (0,
|
|
8286
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material68.Box, { ml: 2, children: leftSection }),
|
|
8287
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material68.Box, { ml: "auto", children: rightSection })
|
|
8256
8288
|
] }) }),
|
|
8257
8289
|
LeftDrawer
|
|
8258
8290
|
] });
|
|
@@ -8261,20 +8293,20 @@ var TheToolbar_default = (0, import_react40.memo)(TheToolbar);
|
|
|
8261
8293
|
|
|
8262
8294
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8263
8295
|
var import_material69 = require("@mui/material");
|
|
8264
|
-
var
|
|
8296
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
8265
8297
|
var ToastMessage = ({
|
|
8266
8298
|
toastType,
|
|
8267
8299
|
toastMessage,
|
|
8268
8300
|
open,
|
|
8269
8301
|
onClose
|
|
8270
|
-
}) => /* @__PURE__ */ (0,
|
|
8302
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8271
8303
|
import_material69.Snackbar,
|
|
8272
8304
|
{
|
|
8273
8305
|
open,
|
|
8274
8306
|
autoHideDuration: 1500,
|
|
8275
8307
|
onClose,
|
|
8276
8308
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8277
|
-
children: /* @__PURE__ */ (0,
|
|
8309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8278
8310
|
import_material69.Alert,
|
|
8279
8311
|
{
|
|
8280
8312
|
elevation: 6,
|
|
@@ -8303,7 +8335,7 @@ var ToastMessage_default = ToastMessage;
|
|
|
8303
8335
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
8304
8336
|
var import_material70 = require("@mui/material");
|
|
8305
8337
|
var import_mui61 = require("tss-react/mui");
|
|
8306
|
-
var
|
|
8338
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
8307
8339
|
var useStyles55 = (0, import_mui61.makeStyles)()((theme) => ({
|
|
8308
8340
|
paper: {
|
|
8309
8341
|
padding: theme.spacing(2)
|
|
@@ -8333,7 +8365,7 @@ var TwoButtonDialog = ({
|
|
|
8333
8365
|
cancelButton
|
|
8334
8366
|
}) => {
|
|
8335
8367
|
const { classes } = useStyles55();
|
|
8336
|
-
return /* @__PURE__ */ (0,
|
|
8368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8337
8369
|
import_material70.Dialog,
|
|
8338
8370
|
{
|
|
8339
8371
|
open,
|
|
@@ -8343,9 +8375,9 @@ var TwoButtonDialog = ({
|
|
|
8343
8375
|
closeAfterTransition: true,
|
|
8344
8376
|
BackdropComponent: import_material70.Backdrop,
|
|
8345
8377
|
BackdropProps: { timeout: 500 },
|
|
8346
|
-
children: /* @__PURE__ */ (0,
|
|
8347
|
-
/* @__PURE__ */ (0,
|
|
8348
|
-
/* @__PURE__ */ (0,
|
|
8378
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Paper, { className: classes.paper, children: [
|
|
8379
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Box, { className: classes.mb, children: [
|
|
8380
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8349
8381
|
import_material70.Box,
|
|
8350
8382
|
{
|
|
8351
8383
|
sx: {
|
|
@@ -8354,7 +8386,7 @@ var TwoButtonDialog = ({
|
|
|
8354
8386
|
children: title
|
|
8355
8387
|
}
|
|
8356
8388
|
) }),
|
|
8357
|
-
/* @__PURE__ */ (0,
|
|
8389
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8358
8390
|
import_material70.Box,
|
|
8359
8391
|
{
|
|
8360
8392
|
className: classes.mt,
|
|
@@ -8362,15 +8394,15 @@ var TwoButtonDialog = ({
|
|
|
8362
8394
|
fontWeight: 600
|
|
8363
8395
|
},
|
|
8364
8396
|
children: [
|
|
8365
|
-
subtitle1 && /* @__PURE__ */ (0,
|
|
8366
|
-
subtitle2 && /* @__PURE__ */ (0,
|
|
8397
|
+
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
8398
|
+
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
8367
8399
|
]
|
|
8368
8400
|
}
|
|
8369
8401
|
)
|
|
8370
8402
|
] }),
|
|
8371
|
-
/* @__PURE__ */ (0,
|
|
8372
|
-
/* @__PURE__ */ (0,
|
|
8373
|
-
/* @__PURE__ */ (0,
|
|
8403
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Divider, {}),
|
|
8404
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Box, { className: classes.buttonContainer, children: [
|
|
8405
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8374
8406
|
FilledButton_default,
|
|
8375
8407
|
{
|
|
8376
8408
|
copy: cancelLabel,
|
|
@@ -8383,7 +8415,7 @@ var TwoButtonDialog = ({
|
|
|
8383
8415
|
}
|
|
8384
8416
|
}
|
|
8385
8417
|
),
|
|
8386
|
-
/* @__PURE__ */ (0,
|
|
8418
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8387
8419
|
FilledButton_default,
|
|
8388
8420
|
{
|
|
8389
8421
|
color: "primary",
|
|
@@ -8392,7 +8424,7 @@ var TwoButtonDialog = ({
|
|
|
8392
8424
|
}
|
|
8393
8425
|
)
|
|
8394
8426
|
] }),
|
|
8395
|
-
/* @__PURE__ */ (0,
|
|
8427
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Loading_default, { isLoading: dialogLoading })
|
|
8396
8428
|
] }) })
|
|
8397
8429
|
}
|
|
8398
8430
|
);
|
|
@@ -8402,9 +8434,9 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8402
8434
|
// src/components/UserBust/UserBust.tsx
|
|
8403
8435
|
var import_react41 = require("react");
|
|
8404
8436
|
var import_material71 = require("@mui/material");
|
|
8405
|
-
var
|
|
8406
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0,
|
|
8407
|
-
/* @__PURE__ */ (0,
|
|
8437
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
8438
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { children: [
|
|
8439
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8408
8440
|
import_material71.Avatar,
|
|
8409
8441
|
{
|
|
8410
8442
|
src: user.profile_picture,
|
|
@@ -8412,18 +8444,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, i
|
|
|
8412
8444
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8413
8445
|
}
|
|
8414
8446
|
),
|
|
8415
|
-
/* @__PURE__ */ (0,
|
|
8416
|
-
/* @__PURE__ */ (0,
|
|
8417
|
-
/* @__PURE__ */ (0,
|
|
8447
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { style: { paddingTop: 16 }, children: [
|
|
8448
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material71.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8449
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material71.Typography, { ...typographyProps.username, children: user.username })
|
|
8418
8450
|
] })
|
|
8419
8451
|
] });
|
|
8420
8452
|
var UserBust_default = (0, import_react41.memo)(UserBust);
|
|
8421
8453
|
|
|
8422
8454
|
// src/components/icons/IconChart.tsx
|
|
8423
|
-
var
|
|
8455
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
8424
8456
|
var SvgIconChart = (props) => {
|
|
8425
8457
|
const { fill } = props;
|
|
8426
|
-
return /* @__PURE__ */ (0,
|
|
8458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
8427
8459
|
"svg",
|
|
8428
8460
|
{
|
|
8429
8461
|
width: "20",
|
|
@@ -8432,7 +8464,7 @@ var SvgIconChart = (props) => {
|
|
|
8432
8464
|
fill: "none",
|
|
8433
8465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8434
8466
|
...props,
|
|
8435
|
-
children: /* @__PURE__ */ (0,
|
|
8467
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
8436
8468
|
"path",
|
|
8437
8469
|
{
|
|
8438
8470
|
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",
|