@natoora-libs/core 0.1.9-dev-doug-1 → 0.1.9-dev-doug-2
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC,
|
|
2
|
+
import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC, RefObject, ComponentProps, SVGProps } from 'react';
|
|
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, Theme, Typography } from '@mui/material';
|
|
6
|
+
import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
9
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -712,7 +712,7 @@ declare const _default$9: React.MemoExoticComponent<(props: SearchAndFilterHeade
|
|
|
712
712
|
type SearchFieldDebouncedProps = {
|
|
713
713
|
onSearch: (value: string) => void;
|
|
714
714
|
initialValue?: string;
|
|
715
|
-
|
|
715
|
+
debounceDelay?: number;
|
|
716
716
|
};
|
|
717
717
|
declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
|
|
718
718
|
|
|
@@ -866,6 +866,7 @@ type HeadCell = {
|
|
|
866
866
|
disablePadding?: boolean;
|
|
867
867
|
width?: number | string;
|
|
868
868
|
enabled?: boolean;
|
|
869
|
+
disableSort?: boolean;
|
|
869
870
|
RenderHeader?: ReactNode;
|
|
870
871
|
editableCellType?: EditableCellType;
|
|
871
872
|
onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
|
|
@@ -942,21 +943,11 @@ interface TableProps {
|
|
|
942
943
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
943
944
|
|
|
944
945
|
type TableDesktopRowActionsProps = {
|
|
945
|
-
rowRef: Ref<unknown>;
|
|
946
946
|
isRowHovered: boolean;
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
bottom?: number | string;
|
|
950
|
-
left?: number | string;
|
|
947
|
+
children: ReactNode;
|
|
948
|
+
sx?: SxProps<Theme>;
|
|
951
949
|
zIndex?: number | string;
|
|
952
|
-
px?: number | string;
|
|
953
|
-
py?: number | string;
|
|
954
|
-
pt?: number | string;
|
|
955
|
-
pb?: number | string;
|
|
956
|
-
pr?: number | string;
|
|
957
|
-
pl?: number | string;
|
|
958
950
|
backgroundColor?: string | ((theme: Theme) => string);
|
|
959
|
-
children: ReactNode;
|
|
960
951
|
};
|
|
961
952
|
declare const TableDesktopRowActions: FC<TableDesktopRowActionsProps>;
|
|
962
953
|
|
|
@@ -972,7 +963,7 @@ type TableDesktopRowCellProps = {
|
|
|
972
963
|
inputLabel: HeadCell["label"];
|
|
973
964
|
filterOptions?: HeadCell["filterOptions"];
|
|
974
965
|
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
975
|
-
isFetchingFilterOptions
|
|
966
|
+
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
976
967
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
977
968
|
};
|
|
978
969
|
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC,
|
|
2
|
+
import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC, RefObject, ComponentProps, SVGProps } from 'react';
|
|
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, Theme, Typography } from '@mui/material';
|
|
6
|
+
import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
9
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -712,7 +712,7 @@ declare const _default$9: React.MemoExoticComponent<(props: SearchAndFilterHeade
|
|
|
712
712
|
type SearchFieldDebouncedProps = {
|
|
713
713
|
onSearch: (value: string) => void;
|
|
714
714
|
initialValue?: string;
|
|
715
|
-
|
|
715
|
+
debounceDelay?: number;
|
|
716
716
|
};
|
|
717
717
|
declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
|
|
718
718
|
|
|
@@ -866,6 +866,7 @@ type HeadCell = {
|
|
|
866
866
|
disablePadding?: boolean;
|
|
867
867
|
width?: number | string;
|
|
868
868
|
enabled?: boolean;
|
|
869
|
+
disableSort?: boolean;
|
|
869
870
|
RenderHeader?: ReactNode;
|
|
870
871
|
editableCellType?: EditableCellType;
|
|
871
872
|
onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
|
|
@@ -942,21 +943,11 @@ interface TableProps {
|
|
|
942
943
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
943
944
|
|
|
944
945
|
type TableDesktopRowActionsProps = {
|
|
945
|
-
rowRef: Ref<unknown>;
|
|
946
946
|
isRowHovered: boolean;
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
bottom?: number | string;
|
|
950
|
-
left?: number | string;
|
|
947
|
+
children: ReactNode;
|
|
948
|
+
sx?: SxProps<Theme>;
|
|
951
949
|
zIndex?: number | string;
|
|
952
|
-
px?: number | string;
|
|
953
|
-
py?: number | string;
|
|
954
|
-
pt?: number | string;
|
|
955
|
-
pb?: number | string;
|
|
956
|
-
pr?: number | string;
|
|
957
|
-
pl?: number | string;
|
|
958
950
|
backgroundColor?: string | ((theme: Theme) => string);
|
|
959
|
-
children: ReactNode;
|
|
960
951
|
};
|
|
961
952
|
declare const TableDesktopRowActions: FC<TableDesktopRowActionsProps>;
|
|
962
953
|
|
|
@@ -972,7 +963,7 @@ type TableDesktopRowCellProps = {
|
|
|
972
963
|
inputLabel: HeadCell["label"];
|
|
973
964
|
filterOptions?: HeadCell["filterOptions"];
|
|
974
965
|
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
975
|
-
isFetchingFilterOptions
|
|
966
|
+
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
976
967
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
977
968
|
};
|
|
978
969
|
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
package/dist/components/index.js
CHANGED
|
@@ -6226,7 +6226,7 @@ import { jsx as jsx103 } from "react/jsx-runtime";
|
|
|
6226
6226
|
var SearchFieldDebounced = ({
|
|
6227
6227
|
onSearch,
|
|
6228
6228
|
initialValue = "",
|
|
6229
|
-
|
|
6229
|
+
debounceDelay = 500
|
|
6230
6230
|
}) => {
|
|
6231
6231
|
const [value, setValue] = useState13(initialValue);
|
|
6232
6232
|
const debounceRef = useRef4(null);
|
|
@@ -6238,7 +6238,7 @@ var SearchFieldDebounced = ({
|
|
|
6238
6238
|
;
|
|
6239
6239
|
debounceRef.current = window.setTimeout(() => {
|
|
6240
6240
|
onSearch(e.target.value);
|
|
6241
|
-
},
|
|
6241
|
+
}, debounceDelay);
|
|
6242
6242
|
};
|
|
6243
6243
|
useEffect8(() => {
|
|
6244
6244
|
return () => {
|
|
@@ -6592,7 +6592,7 @@ var Switch_default = memo19(LabelledSwitch);
|
|
|
6592
6592
|
import { useMemo as useMemo3, useState as useState16, useEffect as useEffect11, memo as memo21 } from "react";
|
|
6593
6593
|
import CheckIcon from "@mui/icons-material/Check";
|
|
6594
6594
|
import {
|
|
6595
|
-
Box as
|
|
6595
|
+
Box as Box30,
|
|
6596
6596
|
Checkbox as Checkbox5,
|
|
6597
6597
|
Divider as Divider9,
|
|
6598
6598
|
FormControlLabel as FormControlLabel3,
|
|
@@ -6616,18 +6616,20 @@ import {
|
|
|
6616
6616
|
TableBody,
|
|
6617
6617
|
TableContainer,
|
|
6618
6618
|
Skeleton as Skeleton2,
|
|
6619
|
-
Box as
|
|
6619
|
+
Box as Box29
|
|
6620
6620
|
} from "@mui/material";
|
|
6621
6621
|
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
6622
6622
|
|
|
6623
6623
|
// src/components/SmartTableHeader/SmartTableHeader.tsx
|
|
6624
6624
|
import { memo as memo20 } from "react";
|
|
6625
6625
|
import {
|
|
6626
|
+
Box as Box28,
|
|
6626
6627
|
Checkbox as Checkbox4,
|
|
6627
6628
|
TableCell,
|
|
6628
6629
|
TableHead,
|
|
6629
6630
|
TableRow,
|
|
6630
|
-
TableSortLabel
|
|
6631
|
+
TableSortLabel,
|
|
6632
|
+
Typography as Typography25
|
|
6631
6633
|
} from "@mui/material";
|
|
6632
6634
|
import { makeStyles as makeStyles45 } from "tss-react/mui";
|
|
6633
6635
|
import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
@@ -6714,38 +6716,46 @@ var SmartTableHeader = ({
|
|
|
6714
6716
|
onChange: onSelectAllClick
|
|
6715
6717
|
}
|
|
6716
6718
|
) }) : null,
|
|
6717
|
-
headCells.map((headCell) => /* @__PURE__ */
|
|
6719
|
+
headCells.map((headCell) => /* @__PURE__ */ jsx108(
|
|
6718
6720
|
TableCell,
|
|
6719
6721
|
{
|
|
6720
6722
|
className: classes.tableHeaderContent,
|
|
6721
6723
|
align: "left",
|
|
6722
|
-
|
|
6724
|
+
width: headCell.width ?? "auto",
|
|
6723
6725
|
sortDirection: orderBy === headCell.id ? order : false,
|
|
6724
|
-
children:
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6726
|
+
children: /* @__PURE__ */ jsxs73(
|
|
6727
|
+
Box28,
|
|
6728
|
+
{
|
|
6729
|
+
display: "flex",
|
|
6730
|
+
flexDirection: "row",
|
|
6731
|
+
gap: headCell.disableSort ? 1 : 0,
|
|
6732
|
+
children: [
|
|
6733
|
+
headCell.disableSort ? /* @__PURE__ */ jsx108(Typography25, { variant: "subtitle2", mt: 0.25, fontWeight: 600, children: headCell.label }) : /* @__PURE__ */ jsxs73(
|
|
6734
|
+
TableSortLabel,
|
|
6735
|
+
{
|
|
6736
|
+
"data-testid": "table-sort-label",
|
|
6737
|
+
active: isSortActive(headCell.id),
|
|
6738
|
+
direction: orderBy === headCell.id ? order : "asc",
|
|
6739
|
+
onClick: createSortHandler(headCell.id),
|
|
6740
|
+
children: [
|
|
6741
|
+
headCell.RenderHeader ?? headCell.label,
|
|
6742
|
+
orderBy === headCell.id ? /* @__PURE__ */ jsx108("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
6743
|
+
]
|
|
6744
|
+
}
|
|
6745
|
+
),
|
|
6746
|
+
headCell.refetchFilterOptions ? /* @__PURE__ */ jsx108(
|
|
6747
|
+
SmartTableHeaderFilterMenu_default,
|
|
6748
|
+
{
|
|
6749
|
+
headCell,
|
|
6750
|
+
headerFilters,
|
|
6751
|
+
numActiveFilters: headerFilters[headCell.id]?.length ?? 0,
|
|
6752
|
+
onApplyFilters,
|
|
6753
|
+
shouldShowCheckOnFilter
|
|
6754
|
+
}
|
|
6755
|
+
) : null
|
|
6756
|
+
]
|
|
6757
|
+
}
|
|
6758
|
+
)
|
|
6749
6759
|
},
|
|
6750
6760
|
headCell.id
|
|
6751
6761
|
))
|
|
@@ -6754,7 +6764,7 @@ var SmartTableHeader = ({
|
|
|
6754
6764
|
var SmartTableHeader_default = memo20(SmartTableHeader);
|
|
6755
6765
|
|
|
6756
6766
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
6757
|
-
import { TableCell as TableCell2, TableRow as TableRow2, Typography as
|
|
6767
|
+
import { TableCell as TableCell2, TableRow as TableRow2, Typography as Typography26 } from "@mui/material";
|
|
6758
6768
|
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
6759
6769
|
import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
6760
6770
|
var useStyles46 = makeStyles46()(() => ({
|
|
@@ -6776,8 +6786,8 @@ var TableEmptyResult = ({
|
|
|
6776
6786
|
align: "center",
|
|
6777
6787
|
children: [
|
|
6778
6788
|
/* @__PURE__ */ jsx109(EmptyGlassIcon_default, {}),
|
|
6779
|
-
/* @__PURE__ */ jsx109(
|
|
6780
|
-
/* @__PURE__ */ jsx109(
|
|
6789
|
+
/* @__PURE__ */ jsx109(Typography26, { variant: "h6", children: "No results found." }),
|
|
6790
|
+
/* @__PURE__ */ jsx109(Typography26, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
6781
6791
|
/* @__PURE__ */ jsx109(
|
|
6782
6792
|
FilledButton_default,
|
|
6783
6793
|
{
|
|
@@ -6983,7 +6993,7 @@ var TableDesktop = ({
|
|
|
6983
6993
|
}
|
|
6984
6994
|
}, [enableCheckboxSelection]);
|
|
6985
6995
|
return /* @__PURE__ */ jsx110("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsxs75(Paper10, { className: classes.paper, children: [
|
|
6986
|
-
isLoading ? /* @__PURE__ */ jsx110(
|
|
6996
|
+
isLoading ? /* @__PURE__ */ jsx110(Box29, { width: "100%", overflow: "hidden", children: [...Array(Math.floor(rowsPerPage ?? 50))].map((_, index) => /* @__PURE__ */ jsx110(
|
|
6987
6997
|
Skeleton2,
|
|
6988
6998
|
{
|
|
6989
6999
|
animation: "pulse",
|
|
@@ -7099,8 +7109,9 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7099
7109
|
headerFilters[headCell.id] ?? []
|
|
7100
7110
|
);
|
|
7101
7111
|
useEffect11(() => {
|
|
7102
|
-
if (headCell.filterOptions)
|
|
7112
|
+
if (headCell.filterOptions) {
|
|
7103
7113
|
setFilterOptionsData(headCell.filterOptions);
|
|
7114
|
+
}
|
|
7104
7115
|
}, [headCell.filterOptions]);
|
|
7105
7116
|
const numFilterOptions = useMemo3(() => filterOptionsData?.length ?? 0, [filterOptionsData?.length]);
|
|
7106
7117
|
const numCurrentSelectedFilters = selectedFilters.length;
|
|
@@ -7144,7 +7155,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7144
7155
|
const isOptionChecked = useMemo3(() => (resolvedOption) => !!selectedFilters?.some(
|
|
7145
7156
|
(value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
|
|
7146
7157
|
), [selectedFilters]);
|
|
7147
|
-
const loadingSkeletons = /* @__PURE__ */ jsxs76(
|
|
7158
|
+
const loadingSkeletons = /* @__PURE__ */ jsxs76(Box30, { "data-testid": "loading-skeletons", width: 272, children: [
|
|
7148
7159
|
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
7149
7160
|
/* @__PURE__ */ jsx111(Divider9, {}),
|
|
7150
7161
|
/* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
|
|
@@ -7174,8 +7185,8 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7174
7185
|
"data-testid": "filter-menu",
|
|
7175
7186
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
7176
7187
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
7177
|
-
children:
|
|
7178
|
-
/* @__PURE__ */ jsx111(
|
|
7188
|
+
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs76(Box30, { className: classes.filterMenu, children: [
|
|
7189
|
+
/* @__PURE__ */ jsx111(Box30, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx111(
|
|
7179
7190
|
FormControlLabel3,
|
|
7180
7191
|
{
|
|
7181
7192
|
label: "Select All",
|
|
@@ -7197,11 +7208,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7197
7208
|
}
|
|
7198
7209
|
) }),
|
|
7199
7210
|
/* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
|
|
7200
|
-
/* @__PURE__ */ jsx111(
|
|
7211
|
+
/* @__PURE__ */ jsx111(Box30, { className: classes.filterOptions, children: filterOptionsData?.map(
|
|
7201
7212
|
(option) => {
|
|
7202
7213
|
const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
|
|
7203
7214
|
return /* @__PURE__ */ jsxs76(
|
|
7204
|
-
|
|
7215
|
+
Box30,
|
|
7205
7216
|
{
|
|
7206
7217
|
className: classes.filter,
|
|
7207
7218
|
children: [
|
|
@@ -7228,7 +7239,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
7228
7239
|
}
|
|
7229
7240
|
) }),
|
|
7230
7241
|
/* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
|
|
7231
|
-
/* @__PURE__ */ jsxs76(
|
|
7242
|
+
/* @__PURE__ */ jsxs76(Box30, { className: classes.applyFilterButtonsContainer, children: [
|
|
7232
7243
|
/* @__PURE__ */ jsx111(
|
|
7233
7244
|
ExtendedButton_default,
|
|
7234
7245
|
{
|
|
@@ -7261,7 +7272,7 @@ var SmartTableHeaderFilterMenu_default = memo21(SmartTableHeaderFilterMenu);
|
|
|
7261
7272
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
7262
7273
|
import { useLayoutEffect, useState as useState17 } from "react";
|
|
7263
7274
|
import {
|
|
7264
|
-
Box as
|
|
7275
|
+
Box as Box32,
|
|
7265
7276
|
Paper as Paper11,
|
|
7266
7277
|
Table as MUITable,
|
|
7267
7278
|
TableBody as TableBody2,
|
|
@@ -7275,12 +7286,12 @@ import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
|
7275
7286
|
import { v4 as uuidv4 } from "uuid";
|
|
7276
7287
|
|
|
7277
7288
|
// src/components/TableLoading/TableLoading.tsx
|
|
7278
|
-
import { Box as
|
|
7289
|
+
import { Box as Box31, Skeleton as Skeleton4 } from "@mui/material";
|
|
7279
7290
|
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
7280
7291
|
var TableLoading = ({
|
|
7281
7292
|
rowsPerPage,
|
|
7282
7293
|
rowHeight
|
|
7283
|
-
}) => /* @__PURE__ */ jsx112(
|
|
7294
|
+
}) => /* @__PURE__ */ jsx112(Box31, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx112(
|
|
7284
7295
|
Skeleton4,
|
|
7285
7296
|
{
|
|
7286
7297
|
animation: "pulse",
|
|
@@ -7418,7 +7429,7 @@ var Table2 = ({
|
|
|
7418
7429
|
}
|
|
7419
7430
|
return rowsComponents;
|
|
7420
7431
|
};
|
|
7421
|
-
return /* @__PURE__ */ jsx113(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx113(
|
|
7432
|
+
return /* @__PURE__ */ jsx113(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx113(Box32, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx113(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx113(TableContainer2, { className: classes.container, children: /* @__PURE__ */ jsxs77(MUITable, { size: "medium", stickyHeader: true, children: [
|
|
7422
7433
|
/* @__PURE__ */ jsx113(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx113(TableRow3, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx113(
|
|
7423
7434
|
TableCell3,
|
|
7424
7435
|
{
|
|
@@ -7445,49 +7456,32 @@ var Table2 = ({
|
|
|
7445
7456
|
var Table_default = Table2;
|
|
7446
7457
|
|
|
7447
7458
|
// src/components/TableDesktopRowActions/TableDesktopRowActions.tsx
|
|
7448
|
-
import { Box as
|
|
7459
|
+
import { Box as Box33, TableCell as TableCell4 } from "@mui/material";
|
|
7449
7460
|
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
7450
7461
|
var TableDesktopRowActions = ({
|
|
7451
|
-
rowRef,
|
|
7452
7462
|
isRowHovered,
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
pt,
|
|
7456
|
-
pb,
|
|
7457
|
-
pr,
|
|
7458
|
-
pl,
|
|
7459
|
-
top = 0,
|
|
7460
|
-
right = 0,
|
|
7461
|
-
bottom = 0,
|
|
7462
|
-
left = 0,
|
|
7463
|
+
children,
|
|
7464
|
+
sx,
|
|
7463
7465
|
zIndex = 1,
|
|
7464
|
-
backgroundColor
|
|
7465
|
-
children
|
|
7466
|
+
backgroundColor
|
|
7466
7467
|
}) => {
|
|
7467
7468
|
return isRowHovered ? /* @__PURE__ */ jsx114(
|
|
7468
7469
|
TableCell4,
|
|
7469
7470
|
{
|
|
7470
|
-
ref: rowRef,
|
|
7471
7471
|
padding: "none",
|
|
7472
7472
|
sx: {
|
|
7473
|
-
top,
|
|
7474
|
-
right,
|
|
7475
|
-
bottom,
|
|
7476
|
-
left,
|
|
7473
|
+
top: 0,
|
|
7474
|
+
right: 0,
|
|
7477
7475
|
zIndex,
|
|
7478
7476
|
position: "sticky",
|
|
7479
7477
|
display: "flex",
|
|
7480
|
-
justifyContent: "flex-end"
|
|
7478
|
+
justifyContent: "flex-end",
|
|
7479
|
+
alignItems: "center"
|
|
7481
7480
|
},
|
|
7482
7481
|
children: /* @__PURE__ */ jsx114(
|
|
7483
|
-
|
|
7482
|
+
Box33,
|
|
7484
7483
|
{
|
|
7485
|
-
|
|
7486
|
-
py,
|
|
7487
|
-
pt,
|
|
7488
|
-
pb,
|
|
7489
|
-
pr,
|
|
7490
|
-
pl,
|
|
7484
|
+
sx,
|
|
7491
7485
|
display: "flex",
|
|
7492
7486
|
flexDirection: "row",
|
|
7493
7487
|
borderLeft: `1px solid ${colors.neutral300}`,
|
|
@@ -7506,7 +7500,7 @@ import { Checkbox as Checkbox6, TableCell as TableCell5, TextField as TextField8
|
|
|
7506
7500
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7507
7501
|
import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
|
|
7508
7502
|
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
7509
|
-
var
|
|
7503
|
+
var resolveValue = (value) => {
|
|
7510
7504
|
if (typeof value === "string") {
|
|
7511
7505
|
return value;
|
|
7512
7506
|
}
|
|
@@ -7525,12 +7519,12 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7525
7519
|
}) => {
|
|
7526
7520
|
const [value, setValue] = useState18(initialValue);
|
|
7527
7521
|
const [options, setOptions] = useState18();
|
|
7528
|
-
const valueId =
|
|
7522
|
+
const valueId = resolveValue(value);
|
|
7529
7523
|
const valueLabel = resolveOptionType(value, fieldName);
|
|
7530
7524
|
useEffect12(() => {
|
|
7531
7525
|
if (filterOptions) {
|
|
7532
7526
|
const parsedOptions = filterOptions?.map((option) => ({
|
|
7533
|
-
value:
|
|
7527
|
+
value: resolveValue(option),
|
|
7534
7528
|
label: String(resolveOptionType(option, fieldName))
|
|
7535
7529
|
}));
|
|
7536
7530
|
setOptions(parsedOptions);
|
|
@@ -7588,10 +7582,10 @@ var TableDesktopRowCell = ({
|
|
|
7588
7582
|
TableDesktopSmartSelect,
|
|
7589
7583
|
{
|
|
7590
7584
|
ref,
|
|
7585
|
+
rowId,
|
|
7586
|
+
fieldName,
|
|
7591
7587
|
initialValue: editInitialValue,
|
|
7592
7588
|
inputLabel: inputLabel ?? "",
|
|
7593
|
-
fieldName,
|
|
7594
|
-
rowId,
|
|
7595
7589
|
filterOptions,
|
|
7596
7590
|
refetchFilterOptions,
|
|
7597
7591
|
isFetchingFilterOptions,
|
|
@@ -7727,7 +7721,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7727
7721
|
var TableHeader_default = memo23(TableHeader);
|
|
7728
7722
|
|
|
7729
7723
|
// src/components/TextDivider/TextDivider.tsx
|
|
7730
|
-
import { Box as
|
|
7724
|
+
import { Box as Box34, Typography as Typography27, Divider as Divider10, Button as Button13 } from "@mui/material";
|
|
7731
7725
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
7732
7726
|
import { jsx as jsx118, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7733
7727
|
var useStyles51 = makeStyles51()(() => ({
|
|
@@ -7767,7 +7761,7 @@ var TextDivider = ({
|
|
|
7767
7761
|
const { classes } = useStyles51();
|
|
7768
7762
|
const iconColor = color ?? colors.neutral900;
|
|
7769
7763
|
return /* @__PURE__ */ jsxs78(
|
|
7770
|
-
|
|
7764
|
+
Box34,
|
|
7771
7765
|
{
|
|
7772
7766
|
display: "flex",
|
|
7773
7767
|
alignItems: "center",
|
|
@@ -7775,10 +7769,10 @@ var TextDivider = ({
|
|
|
7775
7769
|
className: classes.container,
|
|
7776
7770
|
children: [
|
|
7777
7771
|
/* @__PURE__ */ jsx118(Divider10, { className: classes.leftDivider }),
|
|
7778
|
-
/* @__PURE__ */ jsx118(Button13, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs78(
|
|
7772
|
+
/* @__PURE__ */ jsx118(Button13, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs78(Box34, { className: classes.center, children: [
|
|
7779
7773
|
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx118(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
7780
7774
|
/* @__PURE__ */ jsx118(
|
|
7781
|
-
|
|
7775
|
+
Typography27,
|
|
7782
7776
|
{
|
|
7783
7777
|
color: "textSecondary",
|
|
7784
7778
|
className: classes.title,
|
|
@@ -7902,7 +7896,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
7902
7896
|
|
|
7903
7897
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
7904
7898
|
import { memo as memo24 } from "react";
|
|
7905
|
-
import { AppBar, Box as
|
|
7899
|
+
import { AppBar, Box as Box35, Toolbar } from "@mui/material";
|
|
7906
7900
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
7907
7901
|
import { jsx as jsx120, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7908
7902
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
@@ -7924,7 +7918,7 @@ var TheToolbar = ({
|
|
|
7924
7918
|
rightSection
|
|
7925
7919
|
}) => {
|
|
7926
7920
|
const { classes } = useStyles53();
|
|
7927
|
-
return /* @__PURE__ */ jsxs79(
|
|
7921
|
+
return /* @__PURE__ */ jsxs79(Box35, { children: [
|
|
7928
7922
|
/* @__PURE__ */ jsx120(AppBar, { children: /* @__PURE__ */ jsxs79(Toolbar, { className: classes.topBar, children: [
|
|
7929
7923
|
/* @__PURE__ */ jsx120(
|
|
7930
7924
|
RoundButton_default,
|
|
@@ -7944,8 +7938,8 @@ var TheToolbar = ({
|
|
|
7944
7938
|
imageLogoLightSmall
|
|
7945
7939
|
}
|
|
7946
7940
|
),
|
|
7947
|
-
/* @__PURE__ */ jsx120(
|
|
7948
|
-
/* @__PURE__ */ jsx120(
|
|
7941
|
+
/* @__PURE__ */ jsx120(Box35, { ml: 2, children: leftSection }),
|
|
7942
|
+
/* @__PURE__ */ jsx120(Box35, { ml: "auto", children: rightSection })
|
|
7949
7943
|
] }) }),
|
|
7950
7944
|
LeftDrawer
|
|
7951
7945
|
] });
|
|
@@ -7995,10 +7989,10 @@ var ToastMessage_default = ToastMessage;
|
|
|
7995
7989
|
|
|
7996
7990
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
7997
7991
|
import {
|
|
7998
|
-
Typography as
|
|
7992
|
+
Typography as Typography28,
|
|
7999
7993
|
Dialog as Dialog5,
|
|
8000
7994
|
Backdrop,
|
|
8001
|
-
Box as
|
|
7995
|
+
Box as Box36,
|
|
8002
7996
|
Divider as Divider11,
|
|
8003
7997
|
Paper as Paper12,
|
|
8004
7998
|
Fade as Fade2
|
|
@@ -8045,9 +8039,9 @@ var TwoButtonDialog = ({
|
|
|
8045
8039
|
BackdropComponent: Backdrop,
|
|
8046
8040
|
BackdropProps: { timeout: 500 },
|
|
8047
8041
|
children: /* @__PURE__ */ jsx122(Fade2, { in: open, children: /* @__PURE__ */ jsxs80(Paper12, { className: classes.paper, children: [
|
|
8048
|
-
/* @__PURE__ */ jsxs80(
|
|
8049
|
-
/* @__PURE__ */ jsx122(
|
|
8050
|
-
|
|
8042
|
+
/* @__PURE__ */ jsxs80(Box36, { className: classes.mb, children: [
|
|
8043
|
+
/* @__PURE__ */ jsx122(Typography28, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx122(
|
|
8044
|
+
Box36,
|
|
8051
8045
|
{
|
|
8052
8046
|
sx: {
|
|
8053
8047
|
fontWeight: 600
|
|
@@ -8056,21 +8050,21 @@ var TwoButtonDialog = ({
|
|
|
8056
8050
|
}
|
|
8057
8051
|
) }),
|
|
8058
8052
|
/* @__PURE__ */ jsxs80(
|
|
8059
|
-
|
|
8053
|
+
Box36,
|
|
8060
8054
|
{
|
|
8061
8055
|
className: classes.mt,
|
|
8062
8056
|
sx: {
|
|
8063
8057
|
fontWeight: 600
|
|
8064
8058
|
},
|
|
8065
8059
|
children: [
|
|
8066
|
-
subtitle1 && /* @__PURE__ */ jsx122(
|
|
8067
|
-
subtitle2 && /* @__PURE__ */ jsx122(
|
|
8060
|
+
subtitle1 && /* @__PURE__ */ jsx122(Typography28, { variant: "subtitle1", children: subtitle1 }),
|
|
8061
|
+
subtitle2 && /* @__PURE__ */ jsx122(Typography28, { variant: "subtitle1", children: subtitle2 })
|
|
8068
8062
|
]
|
|
8069
8063
|
}
|
|
8070
8064
|
)
|
|
8071
8065
|
] }),
|
|
8072
8066
|
/* @__PURE__ */ jsx122(Divider11, {}),
|
|
8073
|
-
/* @__PURE__ */ jsxs80(
|
|
8067
|
+
/* @__PURE__ */ jsxs80(Box36, { className: classes.buttonContainer, children: [
|
|
8074
8068
|
/* @__PURE__ */ jsx122(
|
|
8075
8069
|
FilledButton_default,
|
|
8076
8070
|
{
|
|
@@ -8102,7 +8096,7 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8102
8096
|
|
|
8103
8097
|
// src/components/UserBust/UserBust.tsx
|
|
8104
8098
|
import { memo as memo25 } from "react";
|
|
8105
|
-
import { Avatar as Avatar2, Typography as
|
|
8099
|
+
import { Avatar as Avatar2, Typography as Typography29 } from "@mui/material";
|
|
8106
8100
|
import { jsx as jsx123, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8107
8101
|
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs81("div", { children: [
|
|
8108
8102
|
/* @__PURE__ */ jsx123(
|
|
@@ -8114,8 +8108,8 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8114
8108
|
}
|
|
8115
8109
|
),
|
|
8116
8110
|
/* @__PURE__ */ jsxs81("div", { style: { paddingTop: 16 }, children: [
|
|
8117
|
-
/* @__PURE__ */ jsx123(
|
|
8118
|
-
/* @__PURE__ */ jsx123(
|
|
8111
|
+
/* @__PURE__ */ jsx123(Typography29, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8112
|
+
/* @__PURE__ */ jsx123(Typography29, { ...typographyProps.username, children: user.username })
|
|
8119
8113
|
] })
|
|
8120
8114
|
] });
|
|
8121
8115
|
var UserBust_default = memo25(UserBust);
|