@natoora-libs/core 0.1.9-dev-doug-4 → 0.1.9-dev-doug-6
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 +161 -60
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +16 -12
- package/dist/components/index.d.ts +16 -12
- package/dist/components/index.js +209 -107
- 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,
|
|
6
|
+
import { MenuProps, SelectChangeEvent, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
9
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -943,22 +943,24 @@ 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
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
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;
|
|
952
955
|
};
|
|
953
|
-
declare const
|
|
956
|
+
declare const TableDesktopFooter: FC<TableDesktopFooterProps>;
|
|
954
957
|
|
|
955
958
|
type TableDesktopRowCellProps = {
|
|
956
|
-
ref?: RefObject<HTMLDivElement | null>;
|
|
957
959
|
editableCellType?: EditableCellType;
|
|
958
960
|
editInitialValue: any;
|
|
959
961
|
rowId: number;
|
|
960
962
|
fieldName: string;
|
|
961
|
-
|
|
963
|
+
disabled?: boolean;
|
|
962
964
|
readOnlyValue: string | number | boolean;
|
|
963
965
|
width?: HeadCell["width"];
|
|
964
966
|
inputLabel: HeadCell["label"];
|
|
@@ -967,6 +969,7 @@ type TableDesktopRowCellProps = {
|
|
|
967
969
|
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
968
970
|
validateInput?: HeadCell["validateInput"];
|
|
969
971
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
972
|
+
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
|
|
970
973
|
};
|
|
971
974
|
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
|
972
975
|
|
|
@@ -976,12 +979,13 @@ type TableDesktopSmartSelectProps = {
|
|
|
976
979
|
inputLabel: string;
|
|
977
980
|
fieldName: string;
|
|
978
981
|
rowId: number;
|
|
982
|
+
disabled?: boolean;
|
|
979
983
|
filterOptions?: HeadCell["filterOptions"];
|
|
980
984
|
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
981
985
|
isFetchingFilterOptions: HeadCell["isFetchingFilterOptions"];
|
|
982
986
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
983
987
|
};
|
|
984
|
-
declare const TableDesktopSmartSelect: React.MemoExoticComponent<({ ref, initialValue, inputLabel, fieldName, rowId, filterOptions, refetchFilterOptions, isFetchingFilterOptions, onUpdateEditableCell, }: TableDesktopSmartSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
988
|
+
declare const TableDesktopSmartSelect: React.MemoExoticComponent<({ ref, initialValue, inputLabel, fieldName, rowId, disabled, filterOptions, refetchFilterOptions, isFetchingFilterOptions, onUpdateEditableCell, }: TableDesktopSmartSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
985
989
|
|
|
986
990
|
interface ITableEmptyResult {
|
|
987
991
|
colSpan: number;
|
|
@@ -1087,4 +1091,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1087
1091
|
|
|
1088
1092
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1089
1093
|
|
|
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,
|
|
1094
|
+
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, 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,
|
|
6
|
+
import { MenuProps, SelectChangeEvent, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
9
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -943,22 +943,24 @@ 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
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
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;
|
|
952
955
|
};
|
|
953
|
-
declare const
|
|
956
|
+
declare const TableDesktopFooter: FC<TableDesktopFooterProps>;
|
|
954
957
|
|
|
955
958
|
type TableDesktopRowCellProps = {
|
|
956
|
-
ref?: RefObject<HTMLDivElement | null>;
|
|
957
959
|
editableCellType?: EditableCellType;
|
|
958
960
|
editInitialValue: any;
|
|
959
961
|
rowId: number;
|
|
960
962
|
fieldName: string;
|
|
961
|
-
|
|
963
|
+
disabled?: boolean;
|
|
962
964
|
readOnlyValue: string | number | boolean;
|
|
963
965
|
width?: HeadCell["width"];
|
|
964
966
|
inputLabel: HeadCell["label"];
|
|
@@ -967,6 +969,7 @@ type TableDesktopRowCellProps = {
|
|
|
967
969
|
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
968
970
|
validateInput?: HeadCell["validateInput"];
|
|
969
971
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
972
|
+
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
|
|
970
973
|
};
|
|
971
974
|
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
|
972
975
|
|
|
@@ -976,12 +979,13 @@ type TableDesktopSmartSelectProps = {
|
|
|
976
979
|
inputLabel: string;
|
|
977
980
|
fieldName: string;
|
|
978
981
|
rowId: number;
|
|
982
|
+
disabled?: boolean;
|
|
979
983
|
filterOptions?: HeadCell["filterOptions"];
|
|
980
984
|
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
981
985
|
isFetchingFilterOptions: HeadCell["isFetchingFilterOptions"];
|
|
982
986
|
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
983
987
|
};
|
|
984
|
-
declare const TableDesktopSmartSelect: React.MemoExoticComponent<({ ref, initialValue, inputLabel, fieldName, rowId, filterOptions, refetchFilterOptions, isFetchingFilterOptions, onUpdateEditableCell, }: TableDesktopSmartSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
988
|
+
declare const TableDesktopSmartSelect: React.MemoExoticComponent<({ ref, initialValue, inputLabel, fieldName, rowId, disabled, filterOptions, refetchFilterOptions, isFetchingFilterOptions, onUpdateEditableCell, }: TableDesktopSmartSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
985
989
|
|
|
986
990
|
interface ITableEmptyResult {
|
|
987
991
|
colSpan: number;
|
|
@@ -1087,4 +1091,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1087
1091
|
|
|
1088
1092
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1089
1093
|
|
|
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,
|
|
1094
|
+
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, TableDesktopRowCell, TableDesktopSmartSelect, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|