@natoora-libs/core 0.2.0 → 0.2.1-dev-doug-1
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/TableDesktop-aJHXhRuv.d.cts +126 -0
- package/dist/TableDesktop-aJHXhRuv.d.ts +126 -0
- package/dist/chunk-IXEF6LYV.js +33 -0
- package/dist/chunk-IXEF6LYV.js.map +1 -0
- package/dist/chunk-N3IUZVB7.js +21 -0
- package/dist/chunk-N3IUZVB7.js.map +1 -0
- package/dist/components/index.cjs +2219 -1726
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +59 -101
- package/dist/components/index.d.ts +59 -101
- package/dist/components/index.js +2066 -1577
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.cjs +34 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +12 -2
- package/dist/hooks/index.d.ts +12 -2
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/index.js.map +1 -1
- package/dist/utils/index.cjs +47 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +12 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +6 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { MouseEvent, ReactNode,
|
|
2
|
+
import React__default, { MouseEvent, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import {
|
|
4
|
+
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, E as EditableCellType } from '../TableDesktop-aJHXhRuv.cjs';
|
|
5
|
+
export { B as BulkChanges, j as BulkChangesDialogProps, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps } from '../TableDesktop-aJHXhRuv.cjs';
|
|
5
6
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
6
7
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
8
|
+
import { SxProps, Theme, MenuProps, Typography } from '@mui/material';
|
|
7
9
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
10
|
|
|
9
11
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -47,80 +49,13 @@ interface IAppLabel {
|
|
|
47
49
|
}
|
|
48
50
|
declare const AppLabel: ({ appName }: IAppLabel) => react_jsx_runtime.JSX.Element;
|
|
49
51
|
|
|
50
|
-
type
|
|
51
|
-
numPages: number;
|
|
52
|
-
page: number;
|
|
53
|
-
pageSize: number;
|
|
54
|
-
pageSizeOptions: number[];
|
|
55
|
-
onPageChange: (event: ChangeEvent<unknown>, page: number) => void;
|
|
56
|
-
onPageSizeChange: (event: SelectChangeEvent<number>) => void;
|
|
57
|
-
refetch: () => Promise<unknown>;
|
|
58
|
-
isFetching: boolean;
|
|
59
|
-
};
|
|
60
|
-
declare const TableDesktopFooter: FC<TableDesktopFooterProps>;
|
|
61
|
-
|
|
62
|
-
type Order = 'asc' | 'desc';
|
|
63
|
-
type EditableCellType = 'select' | 'checkbox' | 'text' | 'numeric';
|
|
64
|
-
type HeaderFilterObject = {
|
|
65
|
-
id: number | string;
|
|
66
|
-
[key: string]: number | string;
|
|
67
|
-
};
|
|
68
|
-
type HeaderFilterOptions = string[] | HeaderFilterObject[];
|
|
69
|
-
type HeaderFilters = {
|
|
70
|
-
[key: string]: HeaderFilterOptions;
|
|
71
|
-
};
|
|
72
|
-
type HeadCell = {
|
|
73
|
-
id: string;
|
|
74
|
-
label?: string;
|
|
75
|
-
labelTooltip?: string;
|
|
76
|
-
fieldName?: string;
|
|
77
|
-
numeric?: boolean;
|
|
78
|
-
disablePadding?: boolean;
|
|
79
|
-
width?: number | string;
|
|
80
|
-
enabled?: boolean;
|
|
81
|
-
disableSort?: boolean;
|
|
82
|
-
RenderHeader?: ReactNode;
|
|
83
|
-
editableCellType?: EditableCellType;
|
|
84
|
-
validateInput?: (value: string | null) => boolean;
|
|
85
|
-
onUpdateEditableCell?: (rowId: number, field: string, value: string | number | boolean, label: string | number | boolean) => void;
|
|
86
|
-
filterOptions?: HeaderFilterOptions;
|
|
87
|
-
refetchFilterOptions?: () => void;
|
|
88
|
-
isFetchingFilterOptions?: boolean;
|
|
89
|
-
isAutocompleteFilterMenu?: boolean;
|
|
90
|
-
onAutocompleteFilterChange?: (value: string) => void;
|
|
91
|
-
};
|
|
92
|
-
type TableDesktopProps = {
|
|
93
|
-
data: any[];
|
|
52
|
+
type AppliedTableFiltersDisplayProps = {
|
|
94
53
|
headCells: HeadCell[];
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
};
|
|
99
|
-
componentsProps?: {
|
|
100
|
-
toolbarProps?: any;
|
|
101
|
-
footerProps?: TableDesktopFooterProps;
|
|
102
|
-
};
|
|
103
|
-
appliedFilters?: any;
|
|
104
|
-
headerFilters?: HeaderFilters;
|
|
105
|
-
children?: ReactNode;
|
|
106
|
-
height?: number | string;
|
|
107
|
-
rowHeight?: number;
|
|
108
|
-
totalDataCount?: number;
|
|
109
|
-
isLoading?: boolean;
|
|
110
|
-
rowsPerPage?: number;
|
|
111
|
-
enableEditMode?: boolean;
|
|
112
|
-
enableCheckboxSelection?: boolean;
|
|
113
|
-
disableInternalSort?: boolean;
|
|
114
|
-
updateSort?: (sortField: string, sortDir: Order) => void;
|
|
115
|
-
showClearFilterButton?: boolean;
|
|
116
|
-
handleClickOnClearFiltersButton?: () => void;
|
|
117
|
-
deleteItem?: (id: number, contentTypeName?: string, appTypeName?: string) => void;
|
|
118
|
-
keyField?: string;
|
|
119
|
-
tableLayout?: 'fixed' | 'auto';
|
|
120
|
-
onApplyFilters?: (updatedFilters: HeaderFilters, shouldSave: boolean) => void;
|
|
121
|
-
shouldShowCheckOnFilter?: (columnId: string, filterOption: string | HeaderFilterObject) => boolean;
|
|
54
|
+
headerFilters: HeaderFilters;
|
|
55
|
+
hasAnyFiltersApplied: boolean;
|
|
56
|
+
onOpenClearFiltersDialog: () => void;
|
|
122
57
|
};
|
|
123
|
-
declare const
|
|
58
|
+
declare const AppliedTableFiltersDisplay: FC<AppliedTableFiltersDisplayProps>;
|
|
124
59
|
|
|
125
60
|
type AutocompleteFilterMenuContentProps = {
|
|
126
61
|
columnId: string;
|
|
@@ -131,9 +66,9 @@ type AutocompleteFilterMenuContentProps = {
|
|
|
131
66
|
maxHeight?: number;
|
|
132
67
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
133
68
|
onApplyFiltersClick: (shouldSave: boolean) => void;
|
|
134
|
-
filterOptions: HeadCell[
|
|
135
|
-
|
|
136
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
69
|
+
filterOptions: HeadCell['filterOptions'];
|
|
70
|
+
onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
|
|
71
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
137
72
|
};
|
|
138
73
|
declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
|
|
139
74
|
|
|
@@ -292,13 +227,23 @@ type CheckboxFilterMenuContentProps = {
|
|
|
292
227
|
filterOptions: HeaderFilterOptions;
|
|
293
228
|
maxHeight?: number;
|
|
294
229
|
width?: number;
|
|
295
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
230
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
296
231
|
onSelectAllChange: (checked: boolean) => void;
|
|
297
232
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
298
233
|
onApplyFiltersClick: (shouldSave: boolean) => void;
|
|
299
234
|
};
|
|
300
235
|
declare const CheckboxFilterMenuContent: FC<CheckboxFilterMenuContentProps>;
|
|
301
236
|
|
|
237
|
+
type ClearFiltersConfirmationDialogProps = {
|
|
238
|
+
isOpen: boolean;
|
|
239
|
+
clearFiltersMode: 'unsaved' | 'saved';
|
|
240
|
+
hasAnyUnsavedFilters: boolean;
|
|
241
|
+
onClose: () => void;
|
|
242
|
+
onConfirm: () => void;
|
|
243
|
+
onChangeClearFiltersMode: (mode: 'unsaved' | 'saved') => void;
|
|
244
|
+
};
|
|
245
|
+
declare const ClearFiltersConfirmationDialog: FC<ClearFiltersConfirmationDialogProps>;
|
|
246
|
+
|
|
302
247
|
interface ICompanyLogo {
|
|
303
248
|
size: 'small' | 'medium';
|
|
304
249
|
color: 'light' | 'dark';
|
|
@@ -586,7 +531,7 @@ type FilterOptionsCheckboxesProps = {
|
|
|
586
531
|
filterOptions: HeaderFilterOptions;
|
|
587
532
|
selectedFilterOptions: HeaderFilterOptions;
|
|
588
533
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
589
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
534
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
590
535
|
};
|
|
591
536
|
declare const FilterOptionsCheckboxes: FC<FilterOptionsCheckboxesProps>;
|
|
592
537
|
|
|
@@ -644,6 +589,12 @@ declare const icons: {
|
|
|
644
589
|
SvgIconTableEdit: (props: React.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
645
590
|
};
|
|
646
591
|
|
|
592
|
+
type LabeledValueListProps = {
|
|
593
|
+
label: string;
|
|
594
|
+
values: (string | number)[];
|
|
595
|
+
};
|
|
596
|
+
declare const LabeledValueList: FC<LabeledValueListProps>;
|
|
597
|
+
|
|
647
598
|
interface VirtualizedListProps {
|
|
648
599
|
headers?: any;
|
|
649
600
|
items?: any;
|
|
@@ -836,7 +787,7 @@ declare const _default$7: React.MemoExoticComponent<(props: SearchAndFilterHeade
|
|
|
836
787
|
|
|
837
788
|
type SearchFieldDebouncedProps = {
|
|
838
789
|
onSearch: (value: string) => void;
|
|
839
|
-
variant?:
|
|
790
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
840
791
|
hideSearchIcon?: boolean;
|
|
841
792
|
initialValue?: string;
|
|
842
793
|
debounceDelay?: number;
|
|
@@ -848,6 +799,13 @@ type SearchFieldDebouncedProps = {
|
|
|
848
799
|
};
|
|
849
800
|
declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
|
|
850
801
|
|
|
802
|
+
type SearchHeaderProps = {
|
|
803
|
+
renderButton?: ReactNode;
|
|
804
|
+
children?: ReactNode;
|
|
805
|
+
onSearch: (value: string) => void;
|
|
806
|
+
};
|
|
807
|
+
declare const SearchHeader: React.MemoExoticComponent<({ renderButton, children, onSearch }: SearchHeaderProps) => react_jsx_runtime.JSX.Element>;
|
|
808
|
+
|
|
851
809
|
interface ISearchWithFiltersProps {
|
|
852
810
|
enterPressedInSearch?: () => void;
|
|
853
811
|
filterClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -988,10 +946,10 @@ type SmartTableHeaderFilterMenuProps = {
|
|
|
988
946
|
headCell: HeadCell;
|
|
989
947
|
headerFilters: HeaderFilters;
|
|
990
948
|
numActiveFilters: number;
|
|
991
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
992
|
-
onApplyFilters?: TableDesktopProps[
|
|
949
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
950
|
+
onApplyFilters?: TableDesktopProps['onApplyFilters'];
|
|
993
951
|
};
|
|
994
|
-
declare const SmartTableHeaderFilterMenu:
|
|
952
|
+
declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
|
|
995
953
|
|
|
996
954
|
type SmartTableHeaderProps = {
|
|
997
955
|
order: Order;
|
|
@@ -1003,8 +961,8 @@ type SmartTableHeaderProps = {
|
|
|
1003
961
|
headerFilters: HeaderFilters;
|
|
1004
962
|
onRequestSort: (event: MouseEvent<unknown>, property: string) => void;
|
|
1005
963
|
onSelectAllClick: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1006
|
-
onApplyFilters?: TableDesktopProps[
|
|
1007
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
964
|
+
onApplyFilters?: TableDesktopProps['onApplyFilters'];
|
|
965
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
1008
966
|
};
|
|
1009
967
|
declare const SmartTableHeader: React.MemoExoticComponent<({ order, orderBy, headCells, numSelectedRows, numRows, enableCheckboxSelection, headerFilters, onRequestSort, onSelectAllClick, onApplyFilters, shouldShowCheckOnFilter, }: SmartTableHeaderProps) => react_jsx_runtime.JSX.Element>;
|
|
1010
968
|
|
|
@@ -1035,17 +993,17 @@ type TableDesktopEditableFieldProps = {
|
|
|
1035
993
|
fieldName: string;
|
|
1036
994
|
disabled?: boolean;
|
|
1037
995
|
showCheckboxLabel?: boolean;
|
|
1038
|
-
variant?: "standard" | "outlined" | "filled";
|
|
1039
|
-
size?: "medium" | "small";
|
|
1040
996
|
inputLabel: string;
|
|
997
|
+
variant?: 'standard' | 'outlined' | 'filled';
|
|
998
|
+
size?: 'medium' | 'small';
|
|
1041
999
|
editableCellType: EditableCellType;
|
|
1042
|
-
filterOptions?: HeadCell[
|
|
1043
|
-
refetchFilterOptions?: HeadCell[
|
|
1044
|
-
isFetchingFilterOptions?: HeadCell[
|
|
1045
|
-
validateInput?: HeadCell[
|
|
1046
|
-
onUpdateEditableCell?: HeadCell[
|
|
1000
|
+
filterOptions?: HeadCell['filterOptions'];
|
|
1001
|
+
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1002
|
+
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1003
|
+
validateInput?: HeadCell['validateInput'];
|
|
1004
|
+
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1047
1005
|
};
|
|
1048
|
-
declare const TableDesktopEditableField:
|
|
1006
|
+
declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
|
|
1049
1007
|
|
|
1050
1008
|
type TableDesktopCellProps = {
|
|
1051
1009
|
editableCellType?: EditableCellType;
|
|
@@ -1056,13 +1014,13 @@ type TableDesktopCellProps = {
|
|
|
1056
1014
|
enableEditMode: boolean;
|
|
1057
1015
|
disabled?: boolean;
|
|
1058
1016
|
readOnlyValue: string | number | boolean;
|
|
1059
|
-
width?: HeadCell[
|
|
1060
|
-
inputLabel: HeadCell[
|
|
1061
|
-
filterOptions?: HeadCell[
|
|
1062
|
-
refetchFilterOptions?: HeadCell[
|
|
1063
|
-
isFetchingFilterOptions?: HeadCell[
|
|
1064
|
-
validateInput?: HeadCell[
|
|
1065
|
-
onUpdateEditableCell?: HeadCell[
|
|
1017
|
+
width?: HeadCell['width'];
|
|
1018
|
+
inputLabel: HeadCell['label'];
|
|
1019
|
+
filterOptions?: HeadCell['filterOptions'];
|
|
1020
|
+
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1021
|
+
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1022
|
+
validateInput?: HeadCell['validateInput'];
|
|
1023
|
+
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1066
1024
|
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
|
|
1067
1025
|
};
|
|
1068
1026
|
declare const TableDesktopCell: FC<TableDesktopCellProps>;
|
|
@@ -1171,4 +1129,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1171
1129
|
|
|
1172
1130
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1173
1131
|
|
|
1174
|
-
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip,
|
|
1132
|
+
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, EditableCellType, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { MouseEvent, ReactNode,
|
|
2
|
+
import React__default, { MouseEvent, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import {
|
|
4
|
+
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, E as EditableCellType } from '../TableDesktop-aJHXhRuv.js';
|
|
5
|
+
export { B as BulkChanges, j as BulkChangesDialogProps, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps } from '../TableDesktop-aJHXhRuv.js';
|
|
5
6
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
6
7
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
8
|
+
import { SxProps, Theme, MenuProps, Typography } from '@mui/material';
|
|
7
9
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
10
|
|
|
9
11
|
type ActiveFiltersIconButtonProps = {
|
|
@@ -47,80 +49,13 @@ interface IAppLabel {
|
|
|
47
49
|
}
|
|
48
50
|
declare const AppLabel: ({ appName }: IAppLabel) => react_jsx_runtime.JSX.Element;
|
|
49
51
|
|
|
50
|
-
type
|
|
51
|
-
numPages: number;
|
|
52
|
-
page: number;
|
|
53
|
-
pageSize: number;
|
|
54
|
-
pageSizeOptions: number[];
|
|
55
|
-
onPageChange: (event: ChangeEvent<unknown>, page: number) => void;
|
|
56
|
-
onPageSizeChange: (event: SelectChangeEvent<number>) => void;
|
|
57
|
-
refetch: () => Promise<unknown>;
|
|
58
|
-
isFetching: boolean;
|
|
59
|
-
};
|
|
60
|
-
declare const TableDesktopFooter: FC<TableDesktopFooterProps>;
|
|
61
|
-
|
|
62
|
-
type Order = 'asc' | 'desc';
|
|
63
|
-
type EditableCellType = 'select' | 'checkbox' | 'text' | 'numeric';
|
|
64
|
-
type HeaderFilterObject = {
|
|
65
|
-
id: number | string;
|
|
66
|
-
[key: string]: number | string;
|
|
67
|
-
};
|
|
68
|
-
type HeaderFilterOptions = string[] | HeaderFilterObject[];
|
|
69
|
-
type HeaderFilters = {
|
|
70
|
-
[key: string]: HeaderFilterOptions;
|
|
71
|
-
};
|
|
72
|
-
type HeadCell = {
|
|
73
|
-
id: string;
|
|
74
|
-
label?: string;
|
|
75
|
-
labelTooltip?: string;
|
|
76
|
-
fieldName?: string;
|
|
77
|
-
numeric?: boolean;
|
|
78
|
-
disablePadding?: boolean;
|
|
79
|
-
width?: number | string;
|
|
80
|
-
enabled?: boolean;
|
|
81
|
-
disableSort?: boolean;
|
|
82
|
-
RenderHeader?: ReactNode;
|
|
83
|
-
editableCellType?: EditableCellType;
|
|
84
|
-
validateInput?: (value: string | null) => boolean;
|
|
85
|
-
onUpdateEditableCell?: (rowId: number, field: string, value: string | number | boolean, label: string | number | boolean) => void;
|
|
86
|
-
filterOptions?: HeaderFilterOptions;
|
|
87
|
-
refetchFilterOptions?: () => void;
|
|
88
|
-
isFetchingFilterOptions?: boolean;
|
|
89
|
-
isAutocompleteFilterMenu?: boolean;
|
|
90
|
-
onAutocompleteFilterChange?: (value: string) => void;
|
|
91
|
-
};
|
|
92
|
-
type TableDesktopProps = {
|
|
93
|
-
data: any[];
|
|
52
|
+
type AppliedTableFiltersDisplayProps = {
|
|
94
53
|
headCells: HeadCell[];
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
};
|
|
99
|
-
componentsProps?: {
|
|
100
|
-
toolbarProps?: any;
|
|
101
|
-
footerProps?: TableDesktopFooterProps;
|
|
102
|
-
};
|
|
103
|
-
appliedFilters?: any;
|
|
104
|
-
headerFilters?: HeaderFilters;
|
|
105
|
-
children?: ReactNode;
|
|
106
|
-
height?: number | string;
|
|
107
|
-
rowHeight?: number;
|
|
108
|
-
totalDataCount?: number;
|
|
109
|
-
isLoading?: boolean;
|
|
110
|
-
rowsPerPage?: number;
|
|
111
|
-
enableEditMode?: boolean;
|
|
112
|
-
enableCheckboxSelection?: boolean;
|
|
113
|
-
disableInternalSort?: boolean;
|
|
114
|
-
updateSort?: (sortField: string, sortDir: Order) => void;
|
|
115
|
-
showClearFilterButton?: boolean;
|
|
116
|
-
handleClickOnClearFiltersButton?: () => void;
|
|
117
|
-
deleteItem?: (id: number, contentTypeName?: string, appTypeName?: string) => void;
|
|
118
|
-
keyField?: string;
|
|
119
|
-
tableLayout?: 'fixed' | 'auto';
|
|
120
|
-
onApplyFilters?: (updatedFilters: HeaderFilters, shouldSave: boolean) => void;
|
|
121
|
-
shouldShowCheckOnFilter?: (columnId: string, filterOption: string | HeaderFilterObject) => boolean;
|
|
54
|
+
headerFilters: HeaderFilters;
|
|
55
|
+
hasAnyFiltersApplied: boolean;
|
|
56
|
+
onOpenClearFiltersDialog: () => void;
|
|
122
57
|
};
|
|
123
|
-
declare const
|
|
58
|
+
declare const AppliedTableFiltersDisplay: FC<AppliedTableFiltersDisplayProps>;
|
|
124
59
|
|
|
125
60
|
type AutocompleteFilterMenuContentProps = {
|
|
126
61
|
columnId: string;
|
|
@@ -131,9 +66,9 @@ type AutocompleteFilterMenuContentProps = {
|
|
|
131
66
|
maxHeight?: number;
|
|
132
67
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
133
68
|
onApplyFiltersClick: (shouldSave: boolean) => void;
|
|
134
|
-
filterOptions: HeadCell[
|
|
135
|
-
|
|
136
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
69
|
+
filterOptions: HeadCell['filterOptions'];
|
|
70
|
+
onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
|
|
71
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
137
72
|
};
|
|
138
73
|
declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
|
|
139
74
|
|
|
@@ -292,13 +227,23 @@ type CheckboxFilterMenuContentProps = {
|
|
|
292
227
|
filterOptions: HeaderFilterOptions;
|
|
293
228
|
maxHeight?: number;
|
|
294
229
|
width?: number;
|
|
295
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
230
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
296
231
|
onSelectAllChange: (checked: boolean) => void;
|
|
297
232
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
298
233
|
onApplyFiltersClick: (shouldSave: boolean) => void;
|
|
299
234
|
};
|
|
300
235
|
declare const CheckboxFilterMenuContent: FC<CheckboxFilterMenuContentProps>;
|
|
301
236
|
|
|
237
|
+
type ClearFiltersConfirmationDialogProps = {
|
|
238
|
+
isOpen: boolean;
|
|
239
|
+
clearFiltersMode: 'unsaved' | 'saved';
|
|
240
|
+
hasAnyUnsavedFilters: boolean;
|
|
241
|
+
onClose: () => void;
|
|
242
|
+
onConfirm: () => void;
|
|
243
|
+
onChangeClearFiltersMode: (mode: 'unsaved' | 'saved') => void;
|
|
244
|
+
};
|
|
245
|
+
declare const ClearFiltersConfirmationDialog: FC<ClearFiltersConfirmationDialogProps>;
|
|
246
|
+
|
|
302
247
|
interface ICompanyLogo {
|
|
303
248
|
size: 'small' | 'medium';
|
|
304
249
|
color: 'light' | 'dark';
|
|
@@ -586,7 +531,7 @@ type FilterOptionsCheckboxesProps = {
|
|
|
586
531
|
filterOptions: HeaderFilterOptions;
|
|
587
532
|
selectedFilterOptions: HeaderFilterOptions;
|
|
588
533
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
589
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
534
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
590
535
|
};
|
|
591
536
|
declare const FilterOptionsCheckboxes: FC<FilterOptionsCheckboxesProps>;
|
|
592
537
|
|
|
@@ -644,6 +589,12 @@ declare const icons: {
|
|
|
644
589
|
SvgIconTableEdit: (props: React.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
645
590
|
};
|
|
646
591
|
|
|
592
|
+
type LabeledValueListProps = {
|
|
593
|
+
label: string;
|
|
594
|
+
values: (string | number)[];
|
|
595
|
+
};
|
|
596
|
+
declare const LabeledValueList: FC<LabeledValueListProps>;
|
|
597
|
+
|
|
647
598
|
interface VirtualizedListProps {
|
|
648
599
|
headers?: any;
|
|
649
600
|
items?: any;
|
|
@@ -836,7 +787,7 @@ declare const _default$7: React.MemoExoticComponent<(props: SearchAndFilterHeade
|
|
|
836
787
|
|
|
837
788
|
type SearchFieldDebouncedProps = {
|
|
838
789
|
onSearch: (value: string) => void;
|
|
839
|
-
variant?:
|
|
790
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
840
791
|
hideSearchIcon?: boolean;
|
|
841
792
|
initialValue?: string;
|
|
842
793
|
debounceDelay?: number;
|
|
@@ -848,6 +799,13 @@ type SearchFieldDebouncedProps = {
|
|
|
848
799
|
};
|
|
849
800
|
declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
|
|
850
801
|
|
|
802
|
+
type SearchHeaderProps = {
|
|
803
|
+
renderButton?: ReactNode;
|
|
804
|
+
children?: ReactNode;
|
|
805
|
+
onSearch: (value: string) => void;
|
|
806
|
+
};
|
|
807
|
+
declare const SearchHeader: React.MemoExoticComponent<({ renderButton, children, onSearch }: SearchHeaderProps) => react_jsx_runtime.JSX.Element>;
|
|
808
|
+
|
|
851
809
|
interface ISearchWithFiltersProps {
|
|
852
810
|
enterPressedInSearch?: () => void;
|
|
853
811
|
filterClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -988,10 +946,10 @@ type SmartTableHeaderFilterMenuProps = {
|
|
|
988
946
|
headCell: HeadCell;
|
|
989
947
|
headerFilters: HeaderFilters;
|
|
990
948
|
numActiveFilters: number;
|
|
991
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
992
|
-
onApplyFilters?: TableDesktopProps[
|
|
949
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
950
|
+
onApplyFilters?: TableDesktopProps['onApplyFilters'];
|
|
993
951
|
};
|
|
994
|
-
declare const SmartTableHeaderFilterMenu:
|
|
952
|
+
declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
|
|
995
953
|
|
|
996
954
|
type SmartTableHeaderProps = {
|
|
997
955
|
order: Order;
|
|
@@ -1003,8 +961,8 @@ type SmartTableHeaderProps = {
|
|
|
1003
961
|
headerFilters: HeaderFilters;
|
|
1004
962
|
onRequestSort: (event: MouseEvent<unknown>, property: string) => void;
|
|
1005
963
|
onSelectAllClick: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1006
|
-
onApplyFilters?: TableDesktopProps[
|
|
1007
|
-
shouldShowCheckOnFilter?: TableDesktopProps[
|
|
964
|
+
onApplyFilters?: TableDesktopProps['onApplyFilters'];
|
|
965
|
+
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
1008
966
|
};
|
|
1009
967
|
declare const SmartTableHeader: React.MemoExoticComponent<({ order, orderBy, headCells, numSelectedRows, numRows, enableCheckboxSelection, headerFilters, onRequestSort, onSelectAllClick, onApplyFilters, shouldShowCheckOnFilter, }: SmartTableHeaderProps) => react_jsx_runtime.JSX.Element>;
|
|
1010
968
|
|
|
@@ -1035,17 +993,17 @@ type TableDesktopEditableFieldProps = {
|
|
|
1035
993
|
fieldName: string;
|
|
1036
994
|
disabled?: boolean;
|
|
1037
995
|
showCheckboxLabel?: boolean;
|
|
1038
|
-
variant?: "standard" | "outlined" | "filled";
|
|
1039
|
-
size?: "medium" | "small";
|
|
1040
996
|
inputLabel: string;
|
|
997
|
+
variant?: 'standard' | 'outlined' | 'filled';
|
|
998
|
+
size?: 'medium' | 'small';
|
|
1041
999
|
editableCellType: EditableCellType;
|
|
1042
|
-
filterOptions?: HeadCell[
|
|
1043
|
-
refetchFilterOptions?: HeadCell[
|
|
1044
|
-
isFetchingFilterOptions?: HeadCell[
|
|
1045
|
-
validateInput?: HeadCell[
|
|
1046
|
-
onUpdateEditableCell?: HeadCell[
|
|
1000
|
+
filterOptions?: HeadCell['filterOptions'];
|
|
1001
|
+
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1002
|
+
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1003
|
+
validateInput?: HeadCell['validateInput'];
|
|
1004
|
+
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1047
1005
|
};
|
|
1048
|
-
declare const TableDesktopEditableField:
|
|
1006
|
+
declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
|
|
1049
1007
|
|
|
1050
1008
|
type TableDesktopCellProps = {
|
|
1051
1009
|
editableCellType?: EditableCellType;
|
|
@@ -1056,13 +1014,13 @@ type TableDesktopCellProps = {
|
|
|
1056
1014
|
enableEditMode: boolean;
|
|
1057
1015
|
disabled?: boolean;
|
|
1058
1016
|
readOnlyValue: string | number | boolean;
|
|
1059
|
-
width?: HeadCell[
|
|
1060
|
-
inputLabel: HeadCell[
|
|
1061
|
-
filterOptions?: HeadCell[
|
|
1062
|
-
refetchFilterOptions?: HeadCell[
|
|
1063
|
-
isFetchingFilterOptions?: HeadCell[
|
|
1064
|
-
validateInput?: HeadCell[
|
|
1065
|
-
onUpdateEditableCell?: HeadCell[
|
|
1017
|
+
width?: HeadCell['width'];
|
|
1018
|
+
inputLabel: HeadCell['label'];
|
|
1019
|
+
filterOptions?: HeadCell['filterOptions'];
|
|
1020
|
+
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1021
|
+
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1022
|
+
validateInput?: HeadCell['validateInput'];
|
|
1023
|
+
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1066
1024
|
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
|
|
1067
1025
|
};
|
|
1068
1026
|
declare const TableDesktopCell: FC<TableDesktopCellProps>;
|
|
@@ -1171,4 +1129,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1171
1129
|
|
|
1172
1130
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1173
1131
|
|
|
1174
|
-
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip,
|
|
1132
|
+
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, EditableCellType, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|