@natoora-libs/core 0.1.8 → 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.
- package/dist/components/index.cjs +2047 -2279
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +95 -49
- package/dist/components/index.d.ts +95 -49
- package/dist/components/index.js +1954 -2178
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.cjs +15 -16
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +22 -7
- package/dist/hooks/index.js.map +1 -1
- package/package.json +10 -28
- package/README.md +0 -0
- package/dist/chunk-6VEWNVPA.js +0 -23
- package/dist/chunk-6VEWNVPA.js.map +0 -1
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { ReactNode, ComponentType,
|
|
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
|
-
import { UseMutateAsyncFunction
|
|
6
|
-
import { MenuProps, Typography } from '@mui/material';
|
|
5
|
+
import { UseMutateAsyncFunction } from 'react-query';
|
|
6
|
+
import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
|
+
type ActiveFiltersIconButtonProps = {
|
|
10
|
+
label?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
enableRipple?: boolean;
|
|
13
|
+
numActiveFilters: number;
|
|
14
|
+
handleClick: (event: MouseEvent<HTMLElement>) => void;
|
|
15
|
+
};
|
|
16
|
+
declare const _default$n: React.NamedExoticComponent<ActiveFiltersIconButtonProps>;
|
|
17
|
+
|
|
9
18
|
interface AlertDialogProps {
|
|
10
19
|
open: boolean;
|
|
11
20
|
alertTitle?: string;
|
|
@@ -59,7 +68,7 @@ interface BoxButtonProps {
|
|
|
59
68
|
extra?: any;
|
|
60
69
|
borderColor?: any;
|
|
61
70
|
}
|
|
62
|
-
declare const _default$
|
|
71
|
+
declare const _default$m: React.MemoExoticComponent<(props: BoxButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
63
72
|
|
|
64
73
|
interface IExtendedButton {
|
|
65
74
|
buttonType?: 'button' | 'submit';
|
|
@@ -76,7 +85,7 @@ interface IExtendedButton {
|
|
|
76
85
|
variant?: 'contained' | 'outlined' | 'text';
|
|
77
86
|
copyColor?: string;
|
|
78
87
|
}
|
|
79
|
-
declare const _default$
|
|
88
|
+
declare const _default$l: React.MemoExoticComponent<({ buttonType, color, disabled, href, tooltip, component, type, className, onClick, copy, subcopy, variant, copyColor, }: IExtendedButton) => react_jsx_runtime.JSX.Element>;
|
|
80
89
|
|
|
81
90
|
interface IFilledButton {
|
|
82
91
|
autoFocus?: boolean;
|
|
@@ -90,7 +99,7 @@ interface IFilledButton {
|
|
|
90
99
|
type?: 'button' | 'submit';
|
|
91
100
|
variant?: 'contained' | 'outlined' | 'text';
|
|
92
101
|
}
|
|
93
|
-
declare const _default$
|
|
102
|
+
declare const _default$k: React.MemoExoticComponent<({ autoFocus, className, color, copy, disabled, href, isLoading, onClick, type, variant, }: IFilledButton) => react_jsx_runtime.JSX.Element>;
|
|
94
103
|
|
|
95
104
|
interface FilledButtonLgProps {
|
|
96
105
|
classes?: any;
|
|
@@ -106,14 +115,14 @@ interface FilledButtonLgProps {
|
|
|
106
115
|
style?: string;
|
|
107
116
|
};
|
|
108
117
|
}
|
|
109
|
-
declare const _default$
|
|
118
|
+
declare const _default$j: React.MemoExoticComponent<({ classes, disabled, variant, color, copy, handleClick, loading, loadingProps, }: FilledButtonLgProps) => react_jsx_runtime.JSX.Element>;
|
|
110
119
|
|
|
111
120
|
interface ImageButtonProps {
|
|
112
121
|
src?: any;
|
|
113
122
|
onClick?: any;
|
|
114
123
|
value?: any;
|
|
115
124
|
}
|
|
116
|
-
declare const _default$
|
|
125
|
+
declare const _default$i: React.MemoExoticComponent<(props: ImageButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
117
126
|
|
|
118
127
|
interface SquareButtonProps {
|
|
119
128
|
children: any;
|
|
@@ -144,7 +153,7 @@ interface OutlinedButtonProps {
|
|
|
144
153
|
subcopy?: any;
|
|
145
154
|
type?: any;
|
|
146
155
|
}
|
|
147
|
-
declare const _default$
|
|
156
|
+
declare const _default$h: React.MemoExoticComponent<({ className, color, copy, disabled, href, isLoading, onClick, startIcon, style, subcopy, type, }: OutlinedButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
148
157
|
|
|
149
158
|
interface AButtonProps {
|
|
150
159
|
classes?: any;
|
|
@@ -152,7 +161,7 @@ interface AButtonProps {
|
|
|
152
161
|
color?: string;
|
|
153
162
|
copy?: any;
|
|
154
163
|
}
|
|
155
|
-
declare const _default$
|
|
164
|
+
declare const _default$g: React.MemoExoticComponent<({ classes, variant, color, copy }: AButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
156
165
|
|
|
157
166
|
interface IRoundButton {
|
|
158
167
|
active?: boolean;
|
|
@@ -178,7 +187,7 @@ interface IRoundButton {
|
|
|
178
187
|
*/
|
|
179
188
|
declare const RoundButton: ({ active, children, className, disabled, focused, icon, iconColor, isContrast, isTableButton, noStrokes, onClick, size, tooltip, variant, testID, }: IRoundButton) => react_jsx_runtime.JSX.Element;
|
|
180
189
|
|
|
181
|
-
declare const _default$
|
|
190
|
+
declare const _default$f: React.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
182
191
|
|
|
183
192
|
interface ActionButtonProps {
|
|
184
193
|
app?: any;
|
|
@@ -415,14 +424,14 @@ interface IDeleteSubstitutionDialogContent {
|
|
|
415
424
|
deleteSubstitution: () => void;
|
|
416
425
|
substitutionName: string;
|
|
417
426
|
}
|
|
418
|
-
declare const _default$
|
|
427
|
+
declare const _default$e: React.MemoExoticComponent<({ closeDialog, substitutionName, deleteSubstitution, }: IDeleteSubstitutionDialogContent) => react_jsx_runtime.JSX.Element>;
|
|
419
428
|
|
|
420
429
|
interface IDeleteUserDialogContent {
|
|
421
430
|
closeDialog: () => void;
|
|
422
431
|
deleteUser: () => void;
|
|
423
432
|
userName: string;
|
|
424
433
|
}
|
|
425
|
-
declare const _default$
|
|
434
|
+
declare const _default$d: React.MemoExoticComponent<({ closeDialog, userName, deleteUser, }: IDeleteUserDialogContent) => react_jsx_runtime.JSX.Element>;
|
|
426
435
|
|
|
427
436
|
interface FileCardProps {
|
|
428
437
|
document: string;
|
|
@@ -433,33 +442,35 @@ interface FilledLabelProps {
|
|
|
433
442
|
color?: string;
|
|
434
443
|
copy?: any;
|
|
435
444
|
}
|
|
436
|
-
declare const _default$
|
|
445
|
+
declare const _default$c: React.MemoExoticComponent<(props: FilledLabelProps) => react_jsx_runtime.JSX.Element>;
|
|
437
446
|
|
|
438
447
|
type IFilterGroupSelector = {
|
|
439
448
|
name?: string;
|
|
440
449
|
categoryIdentification?: string;
|
|
450
|
+
selectedOptions: string[];
|
|
451
|
+
setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
|
|
452
|
+
handleClickOnApply: () => void;
|
|
441
453
|
optionsList?: {
|
|
442
454
|
category: string;
|
|
443
455
|
options: string[];
|
|
444
456
|
}[];
|
|
445
|
-
handleClickOnApply: () => void;
|
|
446
|
-
setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
|
|
447
457
|
};
|
|
448
|
-
declare const FilterGroupSelector: ({ name,
|
|
458
|
+
declare const FilterGroupSelector: ({ name, categoryIdentification, selectedOptions, setSelectedOptions, handleClickOnApply, optionsList, }: IFilterGroupSelector) => react_jsx_runtime.JSX.Element;
|
|
449
459
|
|
|
450
460
|
type IFilterSimpleSelector = {
|
|
451
461
|
name?: string;
|
|
452
462
|
options?: string[];
|
|
453
|
-
|
|
463
|
+
selectedOptions: string[];
|
|
454
464
|
setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
|
|
465
|
+
handleClickOnApply: () => void;
|
|
455
466
|
};
|
|
456
|
-
declare const FilterSimpleSelector: ({ name, options,
|
|
467
|
+
declare const FilterSimpleSelector: ({ name, options, selectedOptions, setSelectedOptions, handleClickOnApply, }: IFilterSimpleSelector) => react_jsx_runtime.JSX.Element;
|
|
457
468
|
|
|
458
469
|
interface FixedFooterProps {
|
|
459
470
|
children: React.ReactNode;
|
|
460
471
|
justifyContent?: string;
|
|
461
472
|
}
|
|
462
|
-
declare const _default$
|
|
473
|
+
declare const _default$b: React.MemoExoticComponent<({ justifyContent, children }: FixedFooterProps) => react_jsx_runtime.JSX.Element>;
|
|
463
474
|
|
|
464
475
|
interface HeaderProps {
|
|
465
476
|
appName: any;
|
|
@@ -508,24 +519,6 @@ declare const icons: {
|
|
|
508
519
|
SvgIconUserManagement: () => react_jsx_runtime.JSX.Element;
|
|
509
520
|
};
|
|
510
521
|
|
|
511
|
-
interface ILeftDrawer {
|
|
512
|
-
open: boolean;
|
|
513
|
-
handleOpen: () => void;
|
|
514
|
-
handleClose: () => void;
|
|
515
|
-
onLogout: () => void;
|
|
516
|
-
featureSettings: {
|
|
517
|
-
enabled_features: string[];
|
|
518
|
-
enabled_ui_features: string[];
|
|
519
|
-
};
|
|
520
|
-
user: {
|
|
521
|
-
profile_picture: string;
|
|
522
|
-
first_name: string;
|
|
523
|
-
last_name: string;
|
|
524
|
-
username: string;
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
declare const _default$b: React.MemoExoticComponent<({ handleClose, handleOpen, onLogout, featureSettings, open, user, }: ILeftDrawer) => react_jsx_runtime.JSX.Element>;
|
|
528
|
-
|
|
529
522
|
interface VirtualizedListProps {
|
|
530
523
|
headers?: any;
|
|
531
524
|
items?: any;
|
|
@@ -716,6 +709,13 @@ interface SearchAndFilterHeaderForTableProps {
|
|
|
716
709
|
}
|
|
717
710
|
declare const _default$9: React.MemoExoticComponent<(props: SearchAndFilterHeaderForTableProps) => react_jsx_runtime.JSX.Element>;
|
|
718
711
|
|
|
712
|
+
type SearchFieldDebouncedProps = {
|
|
713
|
+
onSearch: (value: string) => void;
|
|
714
|
+
initialValue?: string;
|
|
715
|
+
debounceDelay?: number;
|
|
716
|
+
};
|
|
717
|
+
declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
|
|
718
|
+
|
|
719
719
|
interface ISearchWithFiltersProps {
|
|
720
720
|
enterPressedInSearch?: () => void;
|
|
721
721
|
filterClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -751,11 +751,11 @@ interface ISectionName {
|
|
|
751
751
|
}
|
|
752
752
|
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
|
|
753
753
|
|
|
754
|
-
|
|
754
|
+
type Option = {
|
|
755
755
|
value?: string | number;
|
|
756
756
|
label?: string;
|
|
757
757
|
disabled?: boolean;
|
|
758
|
-
}
|
|
758
|
+
};
|
|
759
759
|
interface SmartSelectProps {
|
|
760
760
|
/**
|
|
761
761
|
* The current selected value of the select input. It can be a string, number, or null.
|
|
@@ -849,10 +849,10 @@ interface LSwitchProps {
|
|
|
849
849
|
declare const _default$5: React.MemoExoticComponent<({ checked, labelOn, labelOff, handleChange, classes, disabled, }: LSwitchProps) => react_jsx_runtime.JSX.Element>;
|
|
850
850
|
|
|
851
851
|
type Order = 'asc' | 'desc';
|
|
852
|
+
type EditableCellType = 'select' | 'checkbox' | 'text' | 'numeric';
|
|
852
853
|
type HeaderFilterObject = {
|
|
853
|
-
id: number;
|
|
854
|
-
|
|
855
|
-
label?: string;
|
|
854
|
+
id: number | string;
|
|
855
|
+
[key: string]: number | string;
|
|
856
856
|
};
|
|
857
857
|
type HeaderFilterOptions = string[] | HeaderFilterObject[];
|
|
858
858
|
type HeaderFilters = {
|
|
@@ -861,14 +861,20 @@ type HeaderFilters = {
|
|
|
861
861
|
type HeadCell = {
|
|
862
862
|
id: string;
|
|
863
863
|
label?: string;
|
|
864
|
+
fieldName?: string;
|
|
864
865
|
numeric?: boolean;
|
|
865
866
|
disablePadding?: boolean;
|
|
866
867
|
width?: number | string;
|
|
867
868
|
enabled?: boolean;
|
|
868
|
-
|
|
869
|
-
|
|
869
|
+
disableSort?: boolean;
|
|
870
|
+
RenderHeader?: ReactNode;
|
|
871
|
+
editableCellType?: EditableCellType;
|
|
872
|
+
onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
|
|
873
|
+
filterOptions?: HeaderFilterOptions;
|
|
874
|
+
refetchFilterOptions?: () => void;
|
|
875
|
+
isFetchingFilterOptions?: boolean;
|
|
870
876
|
};
|
|
871
|
-
|
|
877
|
+
type TableDesktopProps = {
|
|
872
878
|
data: any[];
|
|
873
879
|
headCells: HeadCell[];
|
|
874
880
|
RenderItem: ComponentType<any>;
|
|
@@ -879,6 +885,7 @@ interface ITableDesktopProps {
|
|
|
879
885
|
isLoading?: boolean;
|
|
880
886
|
rowsPerPage?: number;
|
|
881
887
|
enableCheckboxSelection?: boolean;
|
|
888
|
+
enableRowActions?: boolean;
|
|
882
889
|
disableInternalSort?: boolean;
|
|
883
890
|
updateSort?: (sortField: string, sortDir: Order) => void;
|
|
884
891
|
showClearFilterButton?: boolean;
|
|
@@ -888,8 +895,8 @@ interface ITableDesktopProps {
|
|
|
888
895
|
tableLayout?: 'fixed' | 'auto';
|
|
889
896
|
onApplyFilters?: (updatedFilters: HeaderFilters, shouldSave: boolean) => void;
|
|
890
897
|
shouldShowCheckOnFilter?: (columnId: string, filterOption: HeaderFilterObject) => boolean;
|
|
891
|
-
}
|
|
892
|
-
declare const TableDesktop: ({ data, headCells, RenderItem, appliedFilters, headerFilters, children, height, isLoading, rowsPerPage, enableCheckboxSelection, disableInternalSort, updateSort, showClearFilterButton, handleClickOnClearFiltersButton, deleteItem, keyField, tableLayout, onApplyFilters, shouldShowCheckOnFilter, }:
|
|
898
|
+
};
|
|
899
|
+
declare const TableDesktop: ({ data, headCells, RenderItem, appliedFilters, headerFilters, children, height, isLoading, rowsPerPage, enableCheckboxSelection, enableRowActions, disableInternalSort, updateSort, showClearFilterButton, handleClickOnClearFiltersButton, deleteItem, keyField, tableLayout, onApplyFilters, shouldShowCheckOnFilter, }: TableDesktopProps) => react_jsx_runtime.JSX.Element;
|
|
893
900
|
|
|
894
901
|
interface SmartTableHeaderFilterMenuProps {
|
|
895
902
|
headCell: HeadCell;
|
|
@@ -935,6 +942,45 @@ interface TableProps {
|
|
|
935
942
|
}
|
|
936
943
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
937
944
|
|
|
945
|
+
type TableDesktopRowActionsProps = {
|
|
946
|
+
isRowHovered: boolean;
|
|
947
|
+
children: ReactNode;
|
|
948
|
+
sx?: SxProps<Theme>;
|
|
949
|
+
zIndex?: number | string;
|
|
950
|
+
backgroundColor?: string | ((theme: Theme) => string);
|
|
951
|
+
};
|
|
952
|
+
declare const TableDesktopRowActions: FC<TableDesktopRowActionsProps>;
|
|
953
|
+
|
|
954
|
+
type TableDesktopRowCellProps = {
|
|
955
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
956
|
+
editableCellType?: EditableCellType;
|
|
957
|
+
editInitialValue: any;
|
|
958
|
+
rowId: number;
|
|
959
|
+
fieldName: string;
|
|
960
|
+
isEditMode: boolean;
|
|
961
|
+
readOnlyValue: string | number | boolean;
|
|
962
|
+
width?: HeadCell["width"];
|
|
963
|
+
inputLabel: HeadCell["label"];
|
|
964
|
+
filterOptions?: HeadCell["filterOptions"];
|
|
965
|
+
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
966
|
+
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
967
|
+
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
968
|
+
};
|
|
969
|
+
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
|
970
|
+
|
|
971
|
+
type TableDesktopSmartSelectProps = {
|
|
972
|
+
ref?: RefObject<any>;
|
|
973
|
+
initialValue: HeaderFilterObject | string;
|
|
974
|
+
inputLabel: string;
|
|
975
|
+
fieldName: string;
|
|
976
|
+
rowId: number;
|
|
977
|
+
filterOptions?: HeadCell["filterOptions"];
|
|
978
|
+
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
979
|
+
isFetchingFilterOptions: HeadCell["isFetchingFilterOptions"];
|
|
980
|
+
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
981
|
+
};
|
|
982
|
+
declare const TableDesktopSmartSelect: React.MemoExoticComponent<({ ref, initialValue, inputLabel, fieldName, rowId, filterOptions, refetchFilterOptions, isFetchingFilterOptions, onUpdateEditableCell, }: TableDesktopSmartSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
983
|
+
|
|
938
984
|
interface ITableEmptyResult {
|
|
939
985
|
colSpan: number;
|
|
940
986
|
showClearFilterButton?: boolean;
|
|
@@ -1039,4 +1085,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1039
1085
|
|
|
1040
1086
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1041
1087
|
|
|
1042
|
-
export { AlertDialog, AlertDialogFullScreen, AppLabel, BackHeader, BottomBar, _default$
|
|
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 };
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { ReactNode, ComponentType,
|
|
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
|
-
import { UseMutateAsyncFunction
|
|
6
|
-
import { MenuProps, Typography } from '@mui/material';
|
|
5
|
+
import { UseMutateAsyncFunction } from 'react-query';
|
|
6
|
+
import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
|
|
7
7
|
import { DateRangePickerShape } from 'react-dates';
|
|
8
8
|
|
|
9
|
+
type ActiveFiltersIconButtonProps = {
|
|
10
|
+
label?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
enableRipple?: boolean;
|
|
13
|
+
numActiveFilters: number;
|
|
14
|
+
handleClick: (event: MouseEvent<HTMLElement>) => void;
|
|
15
|
+
};
|
|
16
|
+
declare const _default$n: React.NamedExoticComponent<ActiveFiltersIconButtonProps>;
|
|
17
|
+
|
|
9
18
|
interface AlertDialogProps {
|
|
10
19
|
open: boolean;
|
|
11
20
|
alertTitle?: string;
|
|
@@ -59,7 +68,7 @@ interface BoxButtonProps {
|
|
|
59
68
|
extra?: any;
|
|
60
69
|
borderColor?: any;
|
|
61
70
|
}
|
|
62
|
-
declare const _default$
|
|
71
|
+
declare const _default$m: React.MemoExoticComponent<(props: BoxButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
63
72
|
|
|
64
73
|
interface IExtendedButton {
|
|
65
74
|
buttonType?: 'button' | 'submit';
|
|
@@ -76,7 +85,7 @@ interface IExtendedButton {
|
|
|
76
85
|
variant?: 'contained' | 'outlined' | 'text';
|
|
77
86
|
copyColor?: string;
|
|
78
87
|
}
|
|
79
|
-
declare const _default$
|
|
88
|
+
declare const _default$l: React.MemoExoticComponent<({ buttonType, color, disabled, href, tooltip, component, type, className, onClick, copy, subcopy, variant, copyColor, }: IExtendedButton) => react_jsx_runtime.JSX.Element>;
|
|
80
89
|
|
|
81
90
|
interface IFilledButton {
|
|
82
91
|
autoFocus?: boolean;
|
|
@@ -90,7 +99,7 @@ interface IFilledButton {
|
|
|
90
99
|
type?: 'button' | 'submit';
|
|
91
100
|
variant?: 'contained' | 'outlined' | 'text';
|
|
92
101
|
}
|
|
93
|
-
declare const _default$
|
|
102
|
+
declare const _default$k: React.MemoExoticComponent<({ autoFocus, className, color, copy, disabled, href, isLoading, onClick, type, variant, }: IFilledButton) => react_jsx_runtime.JSX.Element>;
|
|
94
103
|
|
|
95
104
|
interface FilledButtonLgProps {
|
|
96
105
|
classes?: any;
|
|
@@ -106,14 +115,14 @@ interface FilledButtonLgProps {
|
|
|
106
115
|
style?: string;
|
|
107
116
|
};
|
|
108
117
|
}
|
|
109
|
-
declare const _default$
|
|
118
|
+
declare const _default$j: React.MemoExoticComponent<({ classes, disabled, variant, color, copy, handleClick, loading, loadingProps, }: FilledButtonLgProps) => react_jsx_runtime.JSX.Element>;
|
|
110
119
|
|
|
111
120
|
interface ImageButtonProps {
|
|
112
121
|
src?: any;
|
|
113
122
|
onClick?: any;
|
|
114
123
|
value?: any;
|
|
115
124
|
}
|
|
116
|
-
declare const _default$
|
|
125
|
+
declare const _default$i: React.MemoExoticComponent<(props: ImageButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
117
126
|
|
|
118
127
|
interface SquareButtonProps {
|
|
119
128
|
children: any;
|
|
@@ -144,7 +153,7 @@ interface OutlinedButtonProps {
|
|
|
144
153
|
subcopy?: any;
|
|
145
154
|
type?: any;
|
|
146
155
|
}
|
|
147
|
-
declare const _default$
|
|
156
|
+
declare const _default$h: React.MemoExoticComponent<({ className, color, copy, disabled, href, isLoading, onClick, startIcon, style, subcopy, type, }: OutlinedButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
148
157
|
|
|
149
158
|
interface AButtonProps {
|
|
150
159
|
classes?: any;
|
|
@@ -152,7 +161,7 @@ interface AButtonProps {
|
|
|
152
161
|
color?: string;
|
|
153
162
|
copy?: any;
|
|
154
163
|
}
|
|
155
|
-
declare const _default$
|
|
164
|
+
declare const _default$g: React.MemoExoticComponent<({ classes, variant, color, copy }: AButtonProps) => react_jsx_runtime.JSX.Element>;
|
|
156
165
|
|
|
157
166
|
interface IRoundButton {
|
|
158
167
|
active?: boolean;
|
|
@@ -178,7 +187,7 @@ interface IRoundButton {
|
|
|
178
187
|
*/
|
|
179
188
|
declare const RoundButton: ({ active, children, className, disabled, focused, icon, iconColor, isContrast, isTableButton, noStrokes, onClick, size, tooltip, variant, testID, }: IRoundButton) => react_jsx_runtime.JSX.Element;
|
|
180
189
|
|
|
181
|
-
declare const _default$
|
|
190
|
+
declare const _default$f: React.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
182
191
|
|
|
183
192
|
interface ActionButtonProps {
|
|
184
193
|
app?: any;
|
|
@@ -415,14 +424,14 @@ interface IDeleteSubstitutionDialogContent {
|
|
|
415
424
|
deleteSubstitution: () => void;
|
|
416
425
|
substitutionName: string;
|
|
417
426
|
}
|
|
418
|
-
declare const _default$
|
|
427
|
+
declare const _default$e: React.MemoExoticComponent<({ closeDialog, substitutionName, deleteSubstitution, }: IDeleteSubstitutionDialogContent) => react_jsx_runtime.JSX.Element>;
|
|
419
428
|
|
|
420
429
|
interface IDeleteUserDialogContent {
|
|
421
430
|
closeDialog: () => void;
|
|
422
431
|
deleteUser: () => void;
|
|
423
432
|
userName: string;
|
|
424
433
|
}
|
|
425
|
-
declare const _default$
|
|
434
|
+
declare const _default$d: React.MemoExoticComponent<({ closeDialog, userName, deleteUser, }: IDeleteUserDialogContent) => react_jsx_runtime.JSX.Element>;
|
|
426
435
|
|
|
427
436
|
interface FileCardProps {
|
|
428
437
|
document: string;
|
|
@@ -433,33 +442,35 @@ interface FilledLabelProps {
|
|
|
433
442
|
color?: string;
|
|
434
443
|
copy?: any;
|
|
435
444
|
}
|
|
436
|
-
declare const _default$
|
|
445
|
+
declare const _default$c: React.MemoExoticComponent<(props: FilledLabelProps) => react_jsx_runtime.JSX.Element>;
|
|
437
446
|
|
|
438
447
|
type IFilterGroupSelector = {
|
|
439
448
|
name?: string;
|
|
440
449
|
categoryIdentification?: string;
|
|
450
|
+
selectedOptions: string[];
|
|
451
|
+
setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
|
|
452
|
+
handleClickOnApply: () => void;
|
|
441
453
|
optionsList?: {
|
|
442
454
|
category: string;
|
|
443
455
|
options: string[];
|
|
444
456
|
}[];
|
|
445
|
-
handleClickOnApply: () => void;
|
|
446
|
-
setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
|
|
447
457
|
};
|
|
448
|
-
declare const FilterGroupSelector: ({ name,
|
|
458
|
+
declare const FilterGroupSelector: ({ name, categoryIdentification, selectedOptions, setSelectedOptions, handleClickOnApply, optionsList, }: IFilterGroupSelector) => react_jsx_runtime.JSX.Element;
|
|
449
459
|
|
|
450
460
|
type IFilterSimpleSelector = {
|
|
451
461
|
name?: string;
|
|
452
462
|
options?: string[];
|
|
453
|
-
|
|
463
|
+
selectedOptions: string[];
|
|
454
464
|
setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
|
|
465
|
+
handleClickOnApply: () => void;
|
|
455
466
|
};
|
|
456
|
-
declare const FilterSimpleSelector: ({ name, options,
|
|
467
|
+
declare const FilterSimpleSelector: ({ name, options, selectedOptions, setSelectedOptions, handleClickOnApply, }: IFilterSimpleSelector) => react_jsx_runtime.JSX.Element;
|
|
457
468
|
|
|
458
469
|
interface FixedFooterProps {
|
|
459
470
|
children: React.ReactNode;
|
|
460
471
|
justifyContent?: string;
|
|
461
472
|
}
|
|
462
|
-
declare const _default$
|
|
473
|
+
declare const _default$b: React.MemoExoticComponent<({ justifyContent, children }: FixedFooterProps) => react_jsx_runtime.JSX.Element>;
|
|
463
474
|
|
|
464
475
|
interface HeaderProps {
|
|
465
476
|
appName: any;
|
|
@@ -508,24 +519,6 @@ declare const icons: {
|
|
|
508
519
|
SvgIconUserManagement: () => react_jsx_runtime.JSX.Element;
|
|
509
520
|
};
|
|
510
521
|
|
|
511
|
-
interface ILeftDrawer {
|
|
512
|
-
open: boolean;
|
|
513
|
-
handleOpen: () => void;
|
|
514
|
-
handleClose: () => void;
|
|
515
|
-
onLogout: () => void;
|
|
516
|
-
featureSettings: {
|
|
517
|
-
enabled_features: string[];
|
|
518
|
-
enabled_ui_features: string[];
|
|
519
|
-
};
|
|
520
|
-
user: {
|
|
521
|
-
profile_picture: string;
|
|
522
|
-
first_name: string;
|
|
523
|
-
last_name: string;
|
|
524
|
-
username: string;
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
declare const _default$b: React.MemoExoticComponent<({ handleClose, handleOpen, onLogout, featureSettings, open, user, }: ILeftDrawer) => react_jsx_runtime.JSX.Element>;
|
|
528
|
-
|
|
529
522
|
interface VirtualizedListProps {
|
|
530
523
|
headers?: any;
|
|
531
524
|
items?: any;
|
|
@@ -716,6 +709,13 @@ interface SearchAndFilterHeaderForTableProps {
|
|
|
716
709
|
}
|
|
717
710
|
declare const _default$9: React.MemoExoticComponent<(props: SearchAndFilterHeaderForTableProps) => react_jsx_runtime.JSX.Element>;
|
|
718
711
|
|
|
712
|
+
type SearchFieldDebouncedProps = {
|
|
713
|
+
onSearch: (value: string) => void;
|
|
714
|
+
initialValue?: string;
|
|
715
|
+
debounceDelay?: number;
|
|
716
|
+
};
|
|
717
|
+
declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
|
|
718
|
+
|
|
719
719
|
interface ISearchWithFiltersProps {
|
|
720
720
|
enterPressedInSearch?: () => void;
|
|
721
721
|
filterClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -751,11 +751,11 @@ interface ISectionName {
|
|
|
751
751
|
}
|
|
752
752
|
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
|
|
753
753
|
|
|
754
|
-
|
|
754
|
+
type Option = {
|
|
755
755
|
value?: string | number;
|
|
756
756
|
label?: string;
|
|
757
757
|
disabled?: boolean;
|
|
758
|
-
}
|
|
758
|
+
};
|
|
759
759
|
interface SmartSelectProps {
|
|
760
760
|
/**
|
|
761
761
|
* The current selected value of the select input. It can be a string, number, or null.
|
|
@@ -849,10 +849,10 @@ interface LSwitchProps {
|
|
|
849
849
|
declare const _default$5: React.MemoExoticComponent<({ checked, labelOn, labelOff, handleChange, classes, disabled, }: LSwitchProps) => react_jsx_runtime.JSX.Element>;
|
|
850
850
|
|
|
851
851
|
type Order = 'asc' | 'desc';
|
|
852
|
+
type EditableCellType = 'select' | 'checkbox' | 'text' | 'numeric';
|
|
852
853
|
type HeaderFilterObject = {
|
|
853
|
-
id: number;
|
|
854
|
-
|
|
855
|
-
label?: string;
|
|
854
|
+
id: number | string;
|
|
855
|
+
[key: string]: number | string;
|
|
856
856
|
};
|
|
857
857
|
type HeaderFilterOptions = string[] | HeaderFilterObject[];
|
|
858
858
|
type HeaderFilters = {
|
|
@@ -861,14 +861,20 @@ type HeaderFilters = {
|
|
|
861
861
|
type HeadCell = {
|
|
862
862
|
id: string;
|
|
863
863
|
label?: string;
|
|
864
|
+
fieldName?: string;
|
|
864
865
|
numeric?: boolean;
|
|
865
866
|
disablePadding?: boolean;
|
|
866
867
|
width?: number | string;
|
|
867
868
|
enabled?: boolean;
|
|
868
|
-
|
|
869
|
-
|
|
869
|
+
disableSort?: boolean;
|
|
870
|
+
RenderHeader?: ReactNode;
|
|
871
|
+
editableCellType?: EditableCellType;
|
|
872
|
+
onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
|
|
873
|
+
filterOptions?: HeaderFilterOptions;
|
|
874
|
+
refetchFilterOptions?: () => void;
|
|
875
|
+
isFetchingFilterOptions?: boolean;
|
|
870
876
|
};
|
|
871
|
-
|
|
877
|
+
type TableDesktopProps = {
|
|
872
878
|
data: any[];
|
|
873
879
|
headCells: HeadCell[];
|
|
874
880
|
RenderItem: ComponentType<any>;
|
|
@@ -879,6 +885,7 @@ interface ITableDesktopProps {
|
|
|
879
885
|
isLoading?: boolean;
|
|
880
886
|
rowsPerPage?: number;
|
|
881
887
|
enableCheckboxSelection?: boolean;
|
|
888
|
+
enableRowActions?: boolean;
|
|
882
889
|
disableInternalSort?: boolean;
|
|
883
890
|
updateSort?: (sortField: string, sortDir: Order) => void;
|
|
884
891
|
showClearFilterButton?: boolean;
|
|
@@ -888,8 +895,8 @@ interface ITableDesktopProps {
|
|
|
888
895
|
tableLayout?: 'fixed' | 'auto';
|
|
889
896
|
onApplyFilters?: (updatedFilters: HeaderFilters, shouldSave: boolean) => void;
|
|
890
897
|
shouldShowCheckOnFilter?: (columnId: string, filterOption: HeaderFilterObject) => boolean;
|
|
891
|
-
}
|
|
892
|
-
declare const TableDesktop: ({ data, headCells, RenderItem, appliedFilters, headerFilters, children, height, isLoading, rowsPerPage, enableCheckboxSelection, disableInternalSort, updateSort, showClearFilterButton, handleClickOnClearFiltersButton, deleteItem, keyField, tableLayout, onApplyFilters, shouldShowCheckOnFilter, }:
|
|
898
|
+
};
|
|
899
|
+
declare const TableDesktop: ({ data, headCells, RenderItem, appliedFilters, headerFilters, children, height, isLoading, rowsPerPage, enableCheckboxSelection, enableRowActions, disableInternalSort, updateSort, showClearFilterButton, handleClickOnClearFiltersButton, deleteItem, keyField, tableLayout, onApplyFilters, shouldShowCheckOnFilter, }: TableDesktopProps) => react_jsx_runtime.JSX.Element;
|
|
893
900
|
|
|
894
901
|
interface SmartTableHeaderFilterMenuProps {
|
|
895
902
|
headCell: HeadCell;
|
|
@@ -935,6 +942,45 @@ interface TableProps {
|
|
|
935
942
|
}
|
|
936
943
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
937
944
|
|
|
945
|
+
type TableDesktopRowActionsProps = {
|
|
946
|
+
isRowHovered: boolean;
|
|
947
|
+
children: ReactNode;
|
|
948
|
+
sx?: SxProps<Theme>;
|
|
949
|
+
zIndex?: number | string;
|
|
950
|
+
backgroundColor?: string | ((theme: Theme) => string);
|
|
951
|
+
};
|
|
952
|
+
declare const TableDesktopRowActions: FC<TableDesktopRowActionsProps>;
|
|
953
|
+
|
|
954
|
+
type TableDesktopRowCellProps = {
|
|
955
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
956
|
+
editableCellType?: EditableCellType;
|
|
957
|
+
editInitialValue: any;
|
|
958
|
+
rowId: number;
|
|
959
|
+
fieldName: string;
|
|
960
|
+
isEditMode: boolean;
|
|
961
|
+
readOnlyValue: string | number | boolean;
|
|
962
|
+
width?: HeadCell["width"];
|
|
963
|
+
inputLabel: HeadCell["label"];
|
|
964
|
+
filterOptions?: HeadCell["filterOptions"];
|
|
965
|
+
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
966
|
+
isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
|
|
967
|
+
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
968
|
+
};
|
|
969
|
+
declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
|
|
970
|
+
|
|
971
|
+
type TableDesktopSmartSelectProps = {
|
|
972
|
+
ref?: RefObject<any>;
|
|
973
|
+
initialValue: HeaderFilterObject | string;
|
|
974
|
+
inputLabel: string;
|
|
975
|
+
fieldName: string;
|
|
976
|
+
rowId: number;
|
|
977
|
+
filterOptions?: HeadCell["filterOptions"];
|
|
978
|
+
refetchFilterOptions?: HeadCell["refetchFilterOptions"];
|
|
979
|
+
isFetchingFilterOptions: HeadCell["isFetchingFilterOptions"];
|
|
980
|
+
onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
|
|
981
|
+
};
|
|
982
|
+
declare const TableDesktopSmartSelect: React.MemoExoticComponent<({ ref, initialValue, inputLabel, fieldName, rowId, filterOptions, refetchFilterOptions, isFetchingFilterOptions, onUpdateEditableCell, }: TableDesktopSmartSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
983
|
+
|
|
938
984
|
interface ITableEmptyResult {
|
|
939
985
|
colSpan: number;
|
|
940
986
|
showClearFilterButton?: boolean;
|
|
@@ -1039,4 +1085,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1039
1085
|
|
|
1040
1086
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1041
1087
|
|
|
1042
|
-
export { AlertDialog, AlertDialogFullScreen, AppLabel, BackHeader, BottomBar, _default$
|
|
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 };
|