@natoora-libs/core 0.1.9-dev-doug-3 → 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.
- package/dist/components/index.cjs +218 -100
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +16 -2
- package/dist/components/index.d.ts +16 -2
- package/dist/components/index.js +200 -83
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 = {
|
|
@@ -869,6 +869,7 @@ type HeadCell = {
|
|
|
869
869
|
disableSort?: boolean;
|
|
870
870
|
RenderHeader?: ReactNode;
|
|
871
871
|
editableCellType?: EditableCellType;
|
|
872
|
+
validateInput?: (value: string) => boolean;
|
|
872
873
|
onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
|
|
873
874
|
filterOptions?: HeaderFilterOptions;
|
|
874
875
|
refetchFilterOptions?: () => void;
|
|
@@ -942,6 +943,18 @@ interface TableProps {
|
|
|
942
943
|
}
|
|
943
944
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
944
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
|
+
|
|
945
958
|
type TableDesktopRowActionsProps = {
|
|
946
959
|
isRowHovered: boolean;
|
|
947
960
|
children: ReactNode;
|
|
@@ -964,6 +977,7 @@ type TableDesktopRowCellProps = {
|
|
|
964
977
|
filterOptions?: HeadCell["filterOptions"];
|
|
965
978
|
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
966
979
|
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
980
|
+
validateInput?: HeadCell["validateInput"];
|
|
967
981
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
968
982
|
};
|
|
969
983
|
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
|
@@ -1085,4 +1099,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1085
1099
|
|
|
1086
1100
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1087
1101
|
|
|
1088
|
-
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 = {
|
|
@@ -869,6 +869,7 @@ type HeadCell = {
|
|
|
869
869
|
disableSort?: boolean;
|
|
870
870
|
RenderHeader?: ReactNode;
|
|
871
871
|
editableCellType?: EditableCellType;
|
|
872
|
+
validateInput?: (value: string) => boolean;
|
|
872
873
|
onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
|
|
873
874
|
filterOptions?: HeaderFilterOptions;
|
|
874
875
|
refetchFilterOptions?: () => void;
|
|
@@ -942,6 +943,18 @@ interface TableProps {
|
|
|
942
943
|
}
|
|
943
944
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
944
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
|
+
|
|
945
958
|
type TableDesktopRowActionsProps = {
|
|
946
959
|
isRowHovered: boolean;
|
|
947
960
|
children: ReactNode;
|
|
@@ -964,6 +977,7 @@ type TableDesktopRowCellProps = {
|
|
|
964
977
|
filterOptions?: HeadCell["filterOptions"];
|
|
965
978
|
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
966
979
|
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
980
|
+
validateInput?: HeadCell["validateInput"];
|
|
967
981
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
968
982
|
};
|
|
969
983
|
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
|
@@ -1085,4 +1099,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1085
1099
|
|
|
1086
1100
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1087
1101
|
|
|
1088
|
-
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 };
|