@natoora-libs/core 0.1.9-dev-doug-4 → 0.1.9-dev-doug-5
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.
|
@@ -3,7 +3,7 @@ import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC,
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
5
5
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
6
|
-
import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
|
|
6
|
+
import { MenuProps, SelectChangeEvent, SxProps, Theme, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
9
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -943,6 +943,18 @@ interface TableProps {
|
|
|
943
943
|
}
|
|
944
944
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
945
945
|
|
|
946
|
+
type TableDesktopFooterProps = {
|
|
947
|
+
numPages?: number;
|
|
948
|
+
page: number;
|
|
949
|
+
pageSize: number;
|
|
950
|
+
pageSizeOptions: number[];
|
|
951
|
+
handlePageChange: (event: ChangeEvent<unknown>, page: number) => void;
|
|
952
|
+
handlePageSizeChange: (event: SelectChangeEvent<number>) => void;
|
|
953
|
+
refetch: () => Promise<unknown>;
|
|
954
|
+
isFetching: boolean;
|
|
955
|
+
};
|
|
956
|
+
declare const TableDesktopFooter: FC<TableDesktopFooterProps>;
|
|
957
|
+
|
|
946
958
|
type TableDesktopRowActionsProps = {
|
|
947
959
|
isRowHovered: boolean;
|
|
948
960
|
children: ReactNode;
|
|
@@ -1087,4 +1099,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1087
1099
|
|
|
1088
1100
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1089
1101
|
|
|
1090
|
-
export { _default$n as ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, BackHeader, BottomBar, _default$m as BoxButton, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$e as DeleteSubstitutionDialogContent, _default$d as DeleteUserDialogContent, type EditableCellType, _default$l as ExtendedButton, FileCard, _default$k as FilledButton, _default$j as FilledButtonLg, _default$c as FilledLabel, FilterGroupSelector, FilterSimpleSelector, _default$b as FixedFooter, type HeadCell, Header, type HeaderFilterObject, type HeaderFilterOptions, type HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$i as ImageButton, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$a as NumpadInput, NumpadPlus, type Order, _default$h as OutlinedButton, _default$g as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$f as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$9 as SearchAndFilterHeaderForTable, SearchFieldDebounced, _default$8 as SearchWithFilters, _default$7 as SearchWithFiltersForTable, SectionName, SmartSelect, _default$3 as SmartTableHeader, _default$4 as SmartTableHeaderFilterMenu, SquareButton, _default$6 as SquareLabel, _default$5 as Switch, Table, TableDesktop, TableDesktopRowActions, TableDesktopRowCell, TableDesktopSmartSelect, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|
|
1102
|
+
export { _default$n as ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, BackHeader, BottomBar, _default$m as BoxButton, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$e as DeleteSubstitutionDialogContent, _default$d as DeleteUserDialogContent, type EditableCellType, _default$l as ExtendedButton, FileCard, _default$k as FilledButton, _default$j as FilledButtonLg, _default$c as FilledLabel, FilterGroupSelector, FilterSimpleSelector, _default$b as FixedFooter, type HeadCell, Header, type HeaderFilterObject, type HeaderFilterOptions, type HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$i as ImageButton, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$a as NumpadInput, NumpadPlus, type Order, _default$h as OutlinedButton, _default$g as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$f as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$9 as SearchAndFilterHeaderForTable, SearchFieldDebounced, _default$8 as SearchWithFilters, _default$7 as SearchWithFiltersForTable, SectionName, SmartSelect, _default$3 as SmartTableHeader, _default$4 as SmartTableHeaderFilterMenu, SquareButton, _default$6 as SquareLabel, _default$5 as Switch, Table, TableDesktop, TableDesktopFooter, TableDesktopRowActions, TableDesktopRowCell, TableDesktopSmartSelect, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|
|
@@ -3,7 +3,7 @@ import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC,
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
5
5
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
6
|
-
import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
|
|
6
|
+
import { MenuProps, SelectChangeEvent, SxProps, Theme, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
9
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -943,6 +943,18 @@ interface TableProps {
|
|
|
943
943
|
}
|
|
944
944
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
945
945
|
|
|
946
|
+
type TableDesktopFooterProps = {
|
|
947
|
+
numPages?: number;
|
|
948
|
+
page: number;
|
|
949
|
+
pageSize: number;
|
|
950
|
+
pageSizeOptions: number[];
|
|
951
|
+
handlePageChange: (event: ChangeEvent<unknown>, page: number) => void;
|
|
952
|
+
handlePageSizeChange: (event: SelectChangeEvent<number>) => void;
|
|
953
|
+
refetch: () => Promise<unknown>;
|
|
954
|
+
isFetching: boolean;
|
|
955
|
+
};
|
|
956
|
+
declare const TableDesktopFooter: FC<TableDesktopFooterProps>;
|
|
957
|
+
|
|
946
958
|
type TableDesktopRowActionsProps = {
|
|
947
959
|
isRowHovered: boolean;
|
|
948
960
|
children: ReactNode;
|
|
@@ -1087,4 +1099,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1087
1099
|
|
|
1088
1100
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1089
1101
|
|
|
1090
|
-
export { _default$n as ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, BackHeader, BottomBar, _default$m as BoxButton, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$e as DeleteSubstitutionDialogContent, _default$d as DeleteUserDialogContent, type EditableCellType, _default$l as ExtendedButton, FileCard, _default$k as FilledButton, _default$j as FilledButtonLg, _default$c as FilledLabel, FilterGroupSelector, FilterSimpleSelector, _default$b as FixedFooter, type HeadCell, Header, type HeaderFilterObject, type HeaderFilterOptions, type HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$i as ImageButton, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$a as NumpadInput, NumpadPlus, type Order, _default$h as OutlinedButton, _default$g as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$f as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$9 as SearchAndFilterHeaderForTable, SearchFieldDebounced, _default$8 as SearchWithFilters, _default$7 as SearchWithFiltersForTable, SectionName, SmartSelect, _default$3 as SmartTableHeader, _default$4 as SmartTableHeaderFilterMenu, SquareButton, _default$6 as SquareLabel, _default$5 as Switch, Table, TableDesktop, TableDesktopRowActions, TableDesktopRowCell, TableDesktopSmartSelect, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|
|
1102
|
+
export { _default$n as ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, BackHeader, BottomBar, _default$m as BoxButton, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$e as DeleteSubstitutionDialogContent, _default$d as DeleteUserDialogContent, type EditableCellType, _default$l as ExtendedButton, FileCard, _default$k as FilledButton, _default$j as FilledButtonLg, _default$c as FilledLabel, FilterGroupSelector, FilterSimpleSelector, _default$b as FixedFooter, type HeadCell, Header, type HeaderFilterObject, type HeaderFilterOptions, type HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$i as ImageButton, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$a as NumpadInput, NumpadPlus, type Order, _default$h as OutlinedButton, _default$g as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$f as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$9 as SearchAndFilterHeaderForTable, SearchFieldDebounced, _default$8 as SearchWithFilters, _default$7 as SearchWithFiltersForTable, SectionName, SmartSelect, _default$3 as SmartTableHeader, _default$4 as SmartTableHeaderFilterMenu, SquareButton, _default$6 as SquareLabel, _default$5 as Switch, Table, TableDesktop, TableDesktopFooter, TableDesktopRowActions, TableDesktopRowCell, TableDesktopSmartSelect, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|
package/dist/components/index.js
CHANGED
|
@@ -2781,7 +2781,7 @@ var RoundButton = ({
|
|
|
2781
2781
|
onClick(e);
|
|
2782
2782
|
}
|
|
2783
2783
|
};
|
|
2784
|
-
const
|
|
2784
|
+
const Button15 = /* @__PURE__ */ jsx63(
|
|
2785
2785
|
Fab,
|
|
2786
2786
|
{
|
|
2787
2787
|
className: cx(
|
|
@@ -2805,7 +2805,7 @@ var RoundButton = ({
|
|
|
2805
2805
|
children: icon ? iconComponentMap[icon] : children || ""
|
|
2806
2806
|
}
|
|
2807
2807
|
);
|
|
2808
|
-
return tooltip ? /* @__PURE__ */ jsx63(Tooltip2, { title: tooltip, children:
|
|
2808
|
+
return tooltip ? /* @__PURE__ */ jsx63(Tooltip2, { title: tooltip, children: Button15 }) : Button15;
|
|
2809
2809
|
};
|
|
2810
2810
|
var RoundButton_default = RoundButton;
|
|
2811
2811
|
|
|
@@ -7456,9 +7456,90 @@ var Table2 = ({
|
|
|
7456
7456
|
};
|
|
7457
7457
|
var Table_default = Table2;
|
|
7458
7458
|
|
|
7459
|
+
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7460
|
+
import Refresh3 from "@mui/icons-material/Refresh";
|
|
7461
|
+
import { Box as Box33, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography27 } from "@mui/material";
|
|
7462
|
+
import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7463
|
+
var TableDesktopFooter = ({
|
|
7464
|
+
numPages,
|
|
7465
|
+
page,
|
|
7466
|
+
pageSize,
|
|
7467
|
+
pageSizeOptions,
|
|
7468
|
+
handlePageChange,
|
|
7469
|
+
handlePageSizeChange,
|
|
7470
|
+
refetch,
|
|
7471
|
+
isFetching
|
|
7472
|
+
}) => {
|
|
7473
|
+
return /* @__PURE__ */ jsxs78(
|
|
7474
|
+
Box33,
|
|
7475
|
+
{
|
|
7476
|
+
py: 1,
|
|
7477
|
+
gap: 2,
|
|
7478
|
+
display: "flex",
|
|
7479
|
+
justifyContent: "space-between",
|
|
7480
|
+
alignItems: "center",
|
|
7481
|
+
borderTop: `1px solid ${colors.neutral300}`,
|
|
7482
|
+
bgcolor: (theme) => theme.palette.background.default,
|
|
7483
|
+
children: [
|
|
7484
|
+
/* @__PURE__ */ jsxs78(
|
|
7485
|
+
Button13,
|
|
7486
|
+
{
|
|
7487
|
+
disableRipple: true,
|
|
7488
|
+
variant: "outlined",
|
|
7489
|
+
onClick: () => refetch(),
|
|
7490
|
+
disabled: isFetching,
|
|
7491
|
+
sx: {
|
|
7492
|
+
ml: 1,
|
|
7493
|
+
gap: 1,
|
|
7494
|
+
borderRadius: 25,
|
|
7495
|
+
color: colors.neutral800,
|
|
7496
|
+
borderColor: colors.neutral600
|
|
7497
|
+
},
|
|
7498
|
+
children: [
|
|
7499
|
+
/* @__PURE__ */ jsx114(
|
|
7500
|
+
Refresh3,
|
|
7501
|
+
{
|
|
7502
|
+
fontSize: "small",
|
|
7503
|
+
color: isFetching ? "disabled" : "primary"
|
|
7504
|
+
}
|
|
7505
|
+
),
|
|
7506
|
+
"REFRESH"
|
|
7507
|
+
]
|
|
7508
|
+
}
|
|
7509
|
+
),
|
|
7510
|
+
/* @__PURE__ */ jsxs78(Box33, { display: "flex", children: [
|
|
7511
|
+
/* @__PURE__ */ jsxs78(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7512
|
+
/* @__PURE__ */ jsx114(Typography27, { children: "Rows per page:" }),
|
|
7513
|
+
/* @__PURE__ */ jsx114(
|
|
7514
|
+
Select4,
|
|
7515
|
+
{
|
|
7516
|
+
value: pageSize,
|
|
7517
|
+
onChange: handlePageSizeChange,
|
|
7518
|
+
size: "small",
|
|
7519
|
+
"data-testid": "page-size-options-select",
|
|
7520
|
+
variant: "standard",
|
|
7521
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx114(MenuItem4, { value: size, children: size }, size))
|
|
7522
|
+
}
|
|
7523
|
+
)
|
|
7524
|
+
] }),
|
|
7525
|
+
/* @__PURE__ */ jsx114(
|
|
7526
|
+
Pagination2,
|
|
7527
|
+
{
|
|
7528
|
+
color: "standard",
|
|
7529
|
+
count: numPages,
|
|
7530
|
+
page,
|
|
7531
|
+
onChange: handlePageChange
|
|
7532
|
+
}
|
|
7533
|
+
)
|
|
7534
|
+
] })
|
|
7535
|
+
]
|
|
7536
|
+
}
|
|
7537
|
+
);
|
|
7538
|
+
};
|
|
7539
|
+
|
|
7459
7540
|
// src/components/TableDesktopRowActions/TableDesktopRowActions.tsx
|
|
7460
|
-
import { Box as
|
|
7461
|
-
import { jsx as
|
|
7541
|
+
import { Box as Box34, TableCell as TableCell4 } from "@mui/material";
|
|
7542
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
7462
7543
|
var TableDesktopRowActions = ({
|
|
7463
7544
|
isRowHovered,
|
|
7464
7545
|
children,
|
|
@@ -7466,7 +7547,7 @@ var TableDesktopRowActions = ({
|
|
|
7466
7547
|
zIndex = 1,
|
|
7467
7548
|
backgroundColor
|
|
7468
7549
|
}) => {
|
|
7469
|
-
return isRowHovered ? /* @__PURE__ */
|
|
7550
|
+
return isRowHovered ? /* @__PURE__ */ jsx115(
|
|
7470
7551
|
TableCell4,
|
|
7471
7552
|
{
|
|
7472
7553
|
padding: "none",
|
|
@@ -7479,8 +7560,8 @@ var TableDesktopRowActions = ({
|
|
|
7479
7560
|
justifyContent: "flex-end",
|
|
7480
7561
|
alignItems: "center"
|
|
7481
7562
|
},
|
|
7482
|
-
children: /* @__PURE__ */
|
|
7483
|
-
|
|
7563
|
+
children: /* @__PURE__ */ jsx115(
|
|
7564
|
+
Box34,
|
|
7484
7565
|
{
|
|
7485
7566
|
sx,
|
|
7486
7567
|
display: "flex",
|
|
@@ -7499,7 +7580,7 @@ import { Checkbox as Checkbox6, TableCell as TableCell5, TextField as TextField9
|
|
|
7499
7580
|
|
|
7500
7581
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7501
7582
|
import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
|
|
7502
|
-
import { jsx as
|
|
7583
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7503
7584
|
var resolveValue = (value) => {
|
|
7504
7585
|
if (typeof value === "string") {
|
|
7505
7586
|
return value;
|
|
@@ -7530,7 +7611,7 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7530
7611
|
setOptions(parsedOptions);
|
|
7531
7612
|
}
|
|
7532
7613
|
}, [filterOptions]);
|
|
7533
|
-
return /* @__PURE__ */
|
|
7614
|
+
return /* @__PURE__ */ jsx116(
|
|
7534
7615
|
SmartSelect_default,
|
|
7535
7616
|
{
|
|
7536
7617
|
ref,
|
|
@@ -7557,7 +7638,7 @@ import CheckIcon2 from "@mui/icons-material/Check";
|
|
|
7557
7638
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7558
7639
|
import TextField8 from "@mui/material/TextField";
|
|
7559
7640
|
import { useMemo as useMemo4, useState as useState19 } from "react";
|
|
7560
|
-
import { jsx as
|
|
7641
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
7561
7642
|
var TableDesktopTextField = ({
|
|
7562
7643
|
rowId,
|
|
7563
7644
|
editInitialValue,
|
|
@@ -7566,8 +7647,8 @@ var TableDesktopTextField = ({
|
|
|
7566
7647
|
onUpdateEditableCell
|
|
7567
7648
|
}) => {
|
|
7568
7649
|
const [value, setValue] = useState19(editInitialValue);
|
|
7569
|
-
const hasError = useMemo4(() => validateInput?.(value), [value, validateInput]);
|
|
7570
|
-
return /* @__PURE__ */
|
|
7650
|
+
const hasError = useMemo4(() => !validateInput?.(value), [value, validateInput]);
|
|
7651
|
+
return /* @__PURE__ */ jsx117(
|
|
7571
7652
|
TextField8,
|
|
7572
7653
|
{
|
|
7573
7654
|
fullWidth: true,
|
|
@@ -7589,7 +7670,7 @@ var TableDesktopTextField = ({
|
|
|
7589
7670
|
};
|
|
7590
7671
|
|
|
7591
7672
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7592
|
-
import { jsx as
|
|
7673
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
7593
7674
|
var TableDesktopRowCell = ({
|
|
7594
7675
|
ref,
|
|
7595
7676
|
inputLabel,
|
|
@@ -7615,7 +7696,7 @@ var TableDesktopRowCell = ({
|
|
|
7615
7696
|
}
|
|
7616
7697
|
}, [readOnlyValue, width]);
|
|
7617
7698
|
const editableComponents = {
|
|
7618
|
-
"select": /* @__PURE__ */
|
|
7699
|
+
"select": /* @__PURE__ */ jsx118(
|
|
7619
7700
|
TableDesktopSmartSelect,
|
|
7620
7701
|
{
|
|
7621
7702
|
ref,
|
|
@@ -7629,7 +7710,7 @@ var TableDesktopRowCell = ({
|
|
|
7629
7710
|
onUpdateEditableCell
|
|
7630
7711
|
}
|
|
7631
7712
|
),
|
|
7632
|
-
"checkbox": /* @__PURE__ */
|
|
7713
|
+
"checkbox": /* @__PURE__ */ jsx118(
|
|
7633
7714
|
Checkbox6,
|
|
7634
7715
|
{
|
|
7635
7716
|
disableRipple: true,
|
|
@@ -7639,7 +7720,7 @@ var TableDesktopRowCell = ({
|
|
|
7639
7720
|
}
|
|
7640
7721
|
}
|
|
7641
7722
|
),
|
|
7642
|
-
"text": /* @__PURE__ */
|
|
7723
|
+
"text": /* @__PURE__ */ jsx118(
|
|
7643
7724
|
TableDesktopTextField,
|
|
7644
7725
|
{
|
|
7645
7726
|
rowId,
|
|
@@ -7649,7 +7730,7 @@ var TableDesktopRowCell = ({
|
|
|
7649
7730
|
onUpdateEditableCell
|
|
7650
7731
|
}
|
|
7651
7732
|
),
|
|
7652
|
-
"numeric": /* @__PURE__ */
|
|
7733
|
+
"numeric": /* @__PURE__ */ jsx118(
|
|
7653
7734
|
TextField9,
|
|
7654
7735
|
{
|
|
7655
7736
|
fullWidth: true,
|
|
@@ -7672,11 +7753,11 @@ var TableDesktopRowCell = ({
|
|
|
7672
7753
|
};
|
|
7673
7754
|
const getReadOnlyBooleanIcon = (value) => {
|
|
7674
7755
|
if (value) {
|
|
7675
|
-
return /* @__PURE__ */
|
|
7756
|
+
return /* @__PURE__ */ jsx118(CheckIcon2, { sx: { fontSize: 16 } });
|
|
7676
7757
|
}
|
|
7677
7758
|
return "-";
|
|
7678
7759
|
};
|
|
7679
|
-
return /* @__PURE__ */
|
|
7760
|
+
return /* @__PURE__ */ jsx118(Tooltip7, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx118(
|
|
7680
7761
|
TableCell5,
|
|
7681
7762
|
{
|
|
7682
7763
|
ref: cellRef,
|
|
@@ -7697,7 +7778,7 @@ import { memo as memo23, useEffect as useEffect14, useState as useState21 } from
|
|
|
7697
7778
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
7698
7779
|
import { TableCell as TableCell6, TableHead as TableHead3, TableRow as TableRow4, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
7699
7780
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
7700
|
-
import { jsx as
|
|
7781
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
7701
7782
|
var useStyles50 = makeStyles50()(() => ({
|
|
7702
7783
|
sortLabel: {
|
|
7703
7784
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -7742,7 +7823,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7742
7823
|
});
|
|
7743
7824
|
setSortableCells(sortedCells);
|
|
7744
7825
|
};
|
|
7745
|
-
return /* @__PURE__ */
|
|
7826
|
+
return /* @__PURE__ */ jsx119(TableHead3, { children: /* @__PURE__ */ jsx119(TableRow4, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx119(TableCell6, { children: cell.isSortable ? /* @__PURE__ */ jsx119(
|
|
7746
7827
|
TableSortLabel3,
|
|
7747
7828
|
{
|
|
7748
7829
|
className: classes.sortLabel,
|
|
@@ -7756,9 +7837,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7756
7837
|
var TableHeader_default = memo23(TableHeader);
|
|
7757
7838
|
|
|
7758
7839
|
// src/components/TextDivider/TextDivider.tsx
|
|
7759
|
-
import { Box as
|
|
7840
|
+
import { Box as Box35, Typography as Typography28, Divider as Divider10, Button as Button14 } from "@mui/material";
|
|
7760
7841
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
7761
|
-
import { jsx as
|
|
7842
|
+
import { jsx as jsx120, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7762
7843
|
var useStyles51 = makeStyles51()(() => ({
|
|
7763
7844
|
icon: {
|
|
7764
7845
|
fontSize: 20
|
|
@@ -7795,19 +7876,19 @@ var TextDivider = ({
|
|
|
7795
7876
|
}) => {
|
|
7796
7877
|
const { classes } = useStyles51();
|
|
7797
7878
|
const iconColor = color ?? colors.neutral900;
|
|
7798
|
-
return /* @__PURE__ */
|
|
7799
|
-
|
|
7879
|
+
return /* @__PURE__ */ jsxs79(
|
|
7880
|
+
Box35,
|
|
7800
7881
|
{
|
|
7801
7882
|
display: "flex",
|
|
7802
7883
|
alignItems: "center",
|
|
7803
7884
|
justifyContent: "space-between",
|
|
7804
7885
|
className: classes.container,
|
|
7805
7886
|
children: [
|
|
7806
|
-
/* @__PURE__ */
|
|
7807
|
-
/* @__PURE__ */
|
|
7808
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
7809
|
-
/* @__PURE__ */
|
|
7810
|
-
|
|
7887
|
+
/* @__PURE__ */ jsx120(Divider10, { className: classes.leftDivider }),
|
|
7888
|
+
/* @__PURE__ */ jsx120(Button14, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs79(Box35, { className: classes.center, children: [
|
|
7889
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
7890
|
+
/* @__PURE__ */ jsx120(
|
|
7891
|
+
Typography28,
|
|
7811
7892
|
{
|
|
7812
7893
|
color: "textSecondary",
|
|
7813
7894
|
className: classes.title,
|
|
@@ -7815,9 +7896,9 @@ var TextDivider = ({
|
|
|
7815
7896
|
children: title
|
|
7816
7897
|
}
|
|
7817
7898
|
),
|
|
7818
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
7899
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
7819
7900
|
] }) }),
|
|
7820
|
-
/* @__PURE__ */
|
|
7901
|
+
/* @__PURE__ */ jsx120(Divider10, { className: classes.rightDivider })
|
|
7821
7902
|
]
|
|
7822
7903
|
}
|
|
7823
7904
|
);
|
|
@@ -7829,7 +7910,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
7829
7910
|
import { makeStyles as makeStyles52 } from "tss-react/mui";
|
|
7830
7911
|
import "react-dates/initialize";
|
|
7831
7912
|
import "react-dates/lib/css/_datepicker.css";
|
|
7832
|
-
import { jsx as
|
|
7913
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
7833
7914
|
var useStyles52 = makeStyles52()((theme) => ({
|
|
7834
7915
|
wrapper: {
|
|
7835
7916
|
"& .DateRangePicker": {
|
|
@@ -7925,15 +8006,15 @@ var ThemedDateRangePicker = ({
|
|
|
7925
8006
|
...props
|
|
7926
8007
|
}) => {
|
|
7927
8008
|
const { classes, cx } = useStyles52();
|
|
7928
|
-
return /* @__PURE__ */
|
|
8009
|
+
return /* @__PURE__ */ jsx121("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx121(DateRangePicker, { ...props }) });
|
|
7929
8010
|
};
|
|
7930
8011
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
7931
8012
|
|
|
7932
8013
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
7933
8014
|
import { memo as memo24 } from "react";
|
|
7934
|
-
import { AppBar, Box as
|
|
8015
|
+
import { AppBar, Box as Box36, Toolbar } from "@mui/material";
|
|
7935
8016
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
7936
|
-
import { jsx as
|
|
8017
|
+
import { jsx as jsx122, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7937
8018
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
7938
8019
|
menuButton: {
|
|
7939
8020
|
color: theme.palette.primary.contrastText
|
|
@@ -7953,9 +8034,9 @@ var TheToolbar = ({
|
|
|
7953
8034
|
rightSection
|
|
7954
8035
|
}) => {
|
|
7955
8036
|
const { classes } = useStyles53();
|
|
7956
|
-
return /* @__PURE__ */
|
|
7957
|
-
/* @__PURE__ */
|
|
7958
|
-
/* @__PURE__ */
|
|
8037
|
+
return /* @__PURE__ */ jsxs80(Box36, { children: [
|
|
8038
|
+
/* @__PURE__ */ jsx122(AppBar, { children: /* @__PURE__ */ jsxs80(Toolbar, { className: classes.topBar, children: [
|
|
8039
|
+
/* @__PURE__ */ jsx122(
|
|
7959
8040
|
RoundButton_default,
|
|
7960
8041
|
{
|
|
7961
8042
|
className: classes.menuButton,
|
|
@@ -7964,7 +8045,7 @@ var TheToolbar = ({
|
|
|
7964
8045
|
onClick: handleOpen
|
|
7965
8046
|
}
|
|
7966
8047
|
),
|
|
7967
|
-
/* @__PURE__ */
|
|
8048
|
+
/* @__PURE__ */ jsx122(
|
|
7968
8049
|
CompanyLogo_default,
|
|
7969
8050
|
{
|
|
7970
8051
|
size: "small",
|
|
@@ -7973,8 +8054,8 @@ var TheToolbar = ({
|
|
|
7973
8054
|
imageLogoLightSmall
|
|
7974
8055
|
}
|
|
7975
8056
|
),
|
|
7976
|
-
/* @__PURE__ */
|
|
7977
|
-
/* @__PURE__ */
|
|
8057
|
+
/* @__PURE__ */ jsx122(Box36, { ml: 2, children: leftSection }),
|
|
8058
|
+
/* @__PURE__ */ jsx122(Box36, { ml: "auto", children: rightSection })
|
|
7978
8059
|
] }) }),
|
|
7979
8060
|
LeftDrawer
|
|
7980
8061
|
] });
|
|
@@ -7983,20 +8064,20 @@ var TheToolbar_default = memo24(TheToolbar);
|
|
|
7983
8064
|
|
|
7984
8065
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
7985
8066
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
7986
|
-
import { jsx as
|
|
8067
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
7987
8068
|
var ToastMessage = ({
|
|
7988
8069
|
toastType,
|
|
7989
8070
|
toastMessage,
|
|
7990
8071
|
open,
|
|
7991
8072
|
onClose
|
|
7992
|
-
}) => /* @__PURE__ */
|
|
8073
|
+
}) => /* @__PURE__ */ jsx123(
|
|
7993
8074
|
Snackbar,
|
|
7994
8075
|
{
|
|
7995
8076
|
open,
|
|
7996
8077
|
autoHideDuration: 1500,
|
|
7997
8078
|
onClose,
|
|
7998
8079
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
7999
|
-
children: /* @__PURE__ */
|
|
8080
|
+
children: /* @__PURE__ */ jsx123(
|
|
8000
8081
|
MuiAlert,
|
|
8001
8082
|
{
|
|
8002
8083
|
elevation: 6,
|
|
@@ -8024,16 +8105,16 @@ var ToastMessage_default = ToastMessage;
|
|
|
8024
8105
|
|
|
8025
8106
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
8026
8107
|
import {
|
|
8027
|
-
Typography as
|
|
8108
|
+
Typography as Typography29,
|
|
8028
8109
|
Dialog as Dialog5,
|
|
8029
8110
|
Backdrop,
|
|
8030
|
-
Box as
|
|
8111
|
+
Box as Box37,
|
|
8031
8112
|
Divider as Divider11,
|
|
8032
8113
|
Paper as Paper12,
|
|
8033
8114
|
Fade as Fade2
|
|
8034
8115
|
} from "@mui/material";
|
|
8035
8116
|
import { makeStyles as makeStyles54 } from "tss-react/mui";
|
|
8036
|
-
import { jsx as
|
|
8117
|
+
import { jsx as jsx124, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8037
8118
|
var useStyles54 = makeStyles54()((theme) => ({
|
|
8038
8119
|
paper: {
|
|
8039
8120
|
padding: theme.spacing(2)
|
|
@@ -8063,7 +8144,7 @@ var TwoButtonDialog = ({
|
|
|
8063
8144
|
cancelButton
|
|
8064
8145
|
}) => {
|
|
8065
8146
|
const { classes } = useStyles54();
|
|
8066
|
-
return /* @__PURE__ */
|
|
8147
|
+
return /* @__PURE__ */ jsx124(
|
|
8067
8148
|
Dialog5,
|
|
8068
8149
|
{
|
|
8069
8150
|
open,
|
|
@@ -8073,10 +8154,10 @@ var TwoButtonDialog = ({
|
|
|
8073
8154
|
closeAfterTransition: true,
|
|
8074
8155
|
BackdropComponent: Backdrop,
|
|
8075
8156
|
BackdropProps: { timeout: 500 },
|
|
8076
|
-
children: /* @__PURE__ */
|
|
8077
|
-
/* @__PURE__ */
|
|
8078
|
-
/* @__PURE__ */
|
|
8079
|
-
|
|
8157
|
+
children: /* @__PURE__ */ jsx124(Fade2, { in: open, children: /* @__PURE__ */ jsxs81(Paper12, { className: classes.paper, children: [
|
|
8158
|
+
/* @__PURE__ */ jsxs81(Box37, { className: classes.mb, children: [
|
|
8159
|
+
/* @__PURE__ */ jsx124(Typography29, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx124(
|
|
8160
|
+
Box37,
|
|
8080
8161
|
{
|
|
8081
8162
|
sx: {
|
|
8082
8163
|
fontWeight: 600
|
|
@@ -8084,23 +8165,23 @@ var TwoButtonDialog = ({
|
|
|
8084
8165
|
children: title
|
|
8085
8166
|
}
|
|
8086
8167
|
) }),
|
|
8087
|
-
/* @__PURE__ */
|
|
8088
|
-
|
|
8168
|
+
/* @__PURE__ */ jsxs81(
|
|
8169
|
+
Box37,
|
|
8089
8170
|
{
|
|
8090
8171
|
className: classes.mt,
|
|
8091
8172
|
sx: {
|
|
8092
8173
|
fontWeight: 600
|
|
8093
8174
|
},
|
|
8094
8175
|
children: [
|
|
8095
|
-
subtitle1 && /* @__PURE__ */
|
|
8096
|
-
subtitle2 && /* @__PURE__ */
|
|
8176
|
+
subtitle1 && /* @__PURE__ */ jsx124(Typography29, { variant: "subtitle1", children: subtitle1 }),
|
|
8177
|
+
subtitle2 && /* @__PURE__ */ jsx124(Typography29, { variant: "subtitle1", children: subtitle2 })
|
|
8097
8178
|
]
|
|
8098
8179
|
}
|
|
8099
8180
|
)
|
|
8100
8181
|
] }),
|
|
8101
|
-
/* @__PURE__ */
|
|
8102
|
-
/* @__PURE__ */
|
|
8103
|
-
/* @__PURE__ */
|
|
8182
|
+
/* @__PURE__ */ jsx124(Divider11, {}),
|
|
8183
|
+
/* @__PURE__ */ jsxs81(Box37, { className: classes.buttonContainer, children: [
|
|
8184
|
+
/* @__PURE__ */ jsx124(
|
|
8104
8185
|
FilledButton_default,
|
|
8105
8186
|
{
|
|
8106
8187
|
copy: cancelLabel,
|
|
@@ -8113,7 +8194,7 @@ var TwoButtonDialog = ({
|
|
|
8113
8194
|
}
|
|
8114
8195
|
}
|
|
8115
8196
|
),
|
|
8116
|
-
/* @__PURE__ */
|
|
8197
|
+
/* @__PURE__ */ jsx124(
|
|
8117
8198
|
FilledButton_default,
|
|
8118
8199
|
{
|
|
8119
8200
|
color: "primary",
|
|
@@ -8122,7 +8203,7 @@ var TwoButtonDialog = ({
|
|
|
8122
8203
|
}
|
|
8123
8204
|
)
|
|
8124
8205
|
] }),
|
|
8125
|
-
/* @__PURE__ */
|
|
8206
|
+
/* @__PURE__ */ jsx124(Loading_default, { isLoading: dialogLoading })
|
|
8126
8207
|
] }) })
|
|
8127
8208
|
}
|
|
8128
8209
|
);
|
|
@@ -8131,10 +8212,10 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8131
8212
|
|
|
8132
8213
|
// src/components/UserBust/UserBust.tsx
|
|
8133
8214
|
import { memo as memo25 } from "react";
|
|
8134
|
-
import { Avatar as Avatar2, Typography as
|
|
8135
|
-
import { jsx as
|
|
8136
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
8137
|
-
/* @__PURE__ */
|
|
8215
|
+
import { Avatar as Avatar2, Typography as Typography30 } from "@mui/material";
|
|
8216
|
+
import { jsx as jsx125, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8217
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs82("div", { children: [
|
|
8218
|
+
/* @__PURE__ */ jsx125(
|
|
8138
8219
|
Avatar2,
|
|
8139
8220
|
{
|
|
8140
8221
|
src: user.profile_picture,
|
|
@@ -8142,18 +8223,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8142
8223
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8143
8224
|
}
|
|
8144
8225
|
),
|
|
8145
|
-
/* @__PURE__ */
|
|
8146
|
-
/* @__PURE__ */
|
|
8147
|
-
/* @__PURE__ */
|
|
8226
|
+
/* @__PURE__ */ jsxs82("div", { style: { paddingTop: 16 }, children: [
|
|
8227
|
+
/* @__PURE__ */ jsx125(Typography30, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8228
|
+
/* @__PURE__ */ jsx125(Typography30, { ...typographyProps.username, children: user.username })
|
|
8148
8229
|
] })
|
|
8149
8230
|
] });
|
|
8150
8231
|
var UserBust_default = memo25(UserBust);
|
|
8151
8232
|
|
|
8152
8233
|
// src/components/icons/IconChart.tsx
|
|
8153
|
-
import { jsx as
|
|
8234
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
8154
8235
|
var SvgIconChart = (props) => {
|
|
8155
8236
|
const { fill } = props;
|
|
8156
|
-
return /* @__PURE__ */
|
|
8237
|
+
return /* @__PURE__ */ jsx126(
|
|
8157
8238
|
"svg",
|
|
8158
8239
|
{
|
|
8159
8240
|
width: "20",
|
|
@@ -8162,7 +8243,7 @@ var SvgIconChart = (props) => {
|
|
|
8162
8243
|
fill: "none",
|
|
8163
8244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8164
8245
|
...props,
|
|
8165
|
-
children: /* @__PURE__ */
|
|
8246
|
+
children: /* @__PURE__ */ jsx126(
|
|
8166
8247
|
"path",
|
|
8167
8248
|
{
|
|
8168
8249
|
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",
|
|
@@ -8240,6 +8321,7 @@ export {
|
|
|
8240
8321
|
Switch_default as Switch,
|
|
8241
8322
|
Table_default as Table,
|
|
8242
8323
|
TableDesktop_default as TableDesktop,
|
|
8324
|
+
TableDesktopFooter,
|
|
8243
8325
|
TableDesktopRowActions,
|
|
8244
8326
|
TableDesktopRowCell,
|
|
8245
8327
|
TableDesktopSmartSelect,
|