@natoora-libs/core 0.2.4 → 0.2.5-dev-prod-list-bulk-changes-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-4tjwQjmc.d.cts → TableDesktop-Z0KE59L4.d.cts} +21 -13
- package/dist/{TableDesktop-4tjwQjmc.d.ts → TableDesktop-Z0KE59L4.d.ts} +21 -13
- package/dist/components/index.cjs +810 -582
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +28 -26
- package/dist/components/index.d.ts +28 -26
- package/dist/components/index.js +776 -539
- package/dist/components/index.js.map +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +10 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
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 { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order,
|
|
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-
|
|
4
|
+
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-Z0KE59L4.cjs';
|
|
5
|
+
export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-Z0KE59L4.cjs';
|
|
6
6
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
7
7
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
8
8
|
import { SxProps, Theme, MenuProps, Typography } from '@mui/material';
|
|
@@ -67,7 +67,7 @@ type AutocompleteFilterMenuContentProps = {
|
|
|
67
67
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
68
68
|
onApplyFiltersClick: (shouldSave: boolean) => void;
|
|
69
69
|
filterOptions: HeadCell['filterOptions'];
|
|
70
|
-
|
|
70
|
+
onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
|
|
71
71
|
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
72
72
|
};
|
|
73
73
|
declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
|
|
@@ -926,6 +926,24 @@ interface SmartSelectProps {
|
|
|
926
926
|
}
|
|
927
927
|
declare const SmartSelect: React.ForwardRefExoticComponent<SmartSelectProps & React.RefAttributes<unknown>>;
|
|
928
928
|
|
|
929
|
+
type SmartMultipleSelectProps = {
|
|
930
|
+
inputLabel?: string;
|
|
931
|
+
variant?: 'standard' | 'filled' | 'outlined';
|
|
932
|
+
size?: 'small' | 'medium';
|
|
933
|
+
error?: boolean;
|
|
934
|
+
values?: Option[];
|
|
935
|
+
defaultValues?: Option[];
|
|
936
|
+
onOpen?: () => void;
|
|
937
|
+
onChange?: (values: Option[]) => void;
|
|
938
|
+
onClose?: (values: Option[]) => void;
|
|
939
|
+
menuOptions?: Option[];
|
|
940
|
+
isLoading?: boolean;
|
|
941
|
+
disabled?: boolean;
|
|
942
|
+
emptyMessage?: string;
|
|
943
|
+
helperText?: string;
|
|
944
|
+
};
|
|
945
|
+
declare const SmartMultipleSelect: FC<SmartMultipleSelectProps>;
|
|
946
|
+
|
|
929
947
|
interface SquareLabelProps {
|
|
930
948
|
color?: string;
|
|
931
949
|
copy?: any;
|
|
@@ -949,7 +967,7 @@ type SmartTableHeaderFilterMenuProps = {
|
|
|
949
967
|
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
950
968
|
onApplyFilters?: TableDesktopProps['onApplyFilters'];
|
|
951
969
|
};
|
|
952
|
-
declare const SmartTableHeaderFilterMenu:
|
|
970
|
+
declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
|
|
953
971
|
|
|
954
972
|
type SmartTableHeaderProps = {
|
|
955
973
|
order: Order;
|
|
@@ -987,40 +1005,24 @@ interface TableProps {
|
|
|
987
1005
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
988
1006
|
|
|
989
1007
|
type TableDesktopEditableFieldProps = {
|
|
1008
|
+
headCell: HeadCell;
|
|
990
1009
|
editInitialValue?: any;
|
|
991
|
-
rowId?:
|
|
992
|
-
field: string;
|
|
993
|
-
fieldName: string;
|
|
1010
|
+
rowId?: RowId;
|
|
994
1011
|
disabled?: boolean;
|
|
995
1012
|
showCheckboxLabel?: boolean;
|
|
996
|
-
inputLabel: string;
|
|
997
1013
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
998
1014
|
size?: 'medium' | 'small';
|
|
999
|
-
|
|
1000
|
-
filterOptions?: HeadCell['filterOptions'];
|
|
1001
|
-
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1002
|
-
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1003
|
-
validateInput?: HeadCell['validateInput'];
|
|
1004
|
-
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1015
|
+
onUpdateEditableCell: HeadCell['onUpdateEditableCell'];
|
|
1005
1016
|
};
|
|
1006
1017
|
declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
|
|
1007
1018
|
|
|
1008
1019
|
type TableDesktopCellProps = {
|
|
1009
|
-
editableCellType?: EditableCellType;
|
|
1010
1020
|
editInitialValue: any;
|
|
1011
|
-
rowId:
|
|
1012
|
-
field: string;
|
|
1013
|
-
fieldName: string;
|
|
1021
|
+
rowId: RowId;
|
|
1014
1022
|
enableEditMode: boolean;
|
|
1015
1023
|
disabled?: boolean;
|
|
1016
1024
|
readOnlyValue: string | number | boolean;
|
|
1017
|
-
|
|
1018
|
-
inputLabel: HeadCell['label'];
|
|
1019
|
-
filterOptions?: HeadCell['filterOptions'];
|
|
1020
|
-
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1021
|
-
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1022
|
-
validateInput?: HeadCell['validateInput'];
|
|
1023
|
-
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1025
|
+
headCell: HeadCell;
|
|
1024
1026
|
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
|
|
1025
1027
|
};
|
|
1026
1028
|
declare const TableDesktopCell: FC<TableDesktopCellProps>;
|
|
@@ -1129,4 +1131,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1129
1131
|
|
|
1130
1132
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1131
1133
|
|
|
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,
|
|
1134
|
+
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, _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, RowId, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, 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,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
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 { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order,
|
|
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-
|
|
4
|
+
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-Z0KE59L4.js';
|
|
5
|
+
export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-Z0KE59L4.js';
|
|
6
6
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
7
7
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
8
8
|
import { SxProps, Theme, MenuProps, Typography } from '@mui/material';
|
|
@@ -67,7 +67,7 @@ type AutocompleteFilterMenuContentProps = {
|
|
|
67
67
|
onFilterOptionChange: (option: string | HeaderFilterObject) => void;
|
|
68
68
|
onApplyFiltersClick: (shouldSave: boolean) => void;
|
|
69
69
|
filterOptions: HeadCell['filterOptions'];
|
|
70
|
-
|
|
70
|
+
onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
|
|
71
71
|
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
72
72
|
};
|
|
73
73
|
declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
|
|
@@ -926,6 +926,24 @@ interface SmartSelectProps {
|
|
|
926
926
|
}
|
|
927
927
|
declare const SmartSelect: React.ForwardRefExoticComponent<SmartSelectProps & React.RefAttributes<unknown>>;
|
|
928
928
|
|
|
929
|
+
type SmartMultipleSelectProps = {
|
|
930
|
+
inputLabel?: string;
|
|
931
|
+
variant?: 'standard' | 'filled' | 'outlined';
|
|
932
|
+
size?: 'small' | 'medium';
|
|
933
|
+
error?: boolean;
|
|
934
|
+
values?: Option[];
|
|
935
|
+
defaultValues?: Option[];
|
|
936
|
+
onOpen?: () => void;
|
|
937
|
+
onChange?: (values: Option[]) => void;
|
|
938
|
+
onClose?: (values: Option[]) => void;
|
|
939
|
+
menuOptions?: Option[];
|
|
940
|
+
isLoading?: boolean;
|
|
941
|
+
disabled?: boolean;
|
|
942
|
+
emptyMessage?: string;
|
|
943
|
+
helperText?: string;
|
|
944
|
+
};
|
|
945
|
+
declare const SmartMultipleSelect: FC<SmartMultipleSelectProps>;
|
|
946
|
+
|
|
929
947
|
interface SquareLabelProps {
|
|
930
948
|
color?: string;
|
|
931
949
|
copy?: any;
|
|
@@ -949,7 +967,7 @@ type SmartTableHeaderFilterMenuProps = {
|
|
|
949
967
|
shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
|
|
950
968
|
onApplyFilters?: TableDesktopProps['onApplyFilters'];
|
|
951
969
|
};
|
|
952
|
-
declare const SmartTableHeaderFilterMenu:
|
|
970
|
+
declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
|
|
953
971
|
|
|
954
972
|
type SmartTableHeaderProps = {
|
|
955
973
|
order: Order;
|
|
@@ -987,40 +1005,24 @@ interface TableProps {
|
|
|
987
1005
|
declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
988
1006
|
|
|
989
1007
|
type TableDesktopEditableFieldProps = {
|
|
1008
|
+
headCell: HeadCell;
|
|
990
1009
|
editInitialValue?: any;
|
|
991
|
-
rowId?:
|
|
992
|
-
field: string;
|
|
993
|
-
fieldName: string;
|
|
1010
|
+
rowId?: RowId;
|
|
994
1011
|
disabled?: boolean;
|
|
995
1012
|
showCheckboxLabel?: boolean;
|
|
996
|
-
inputLabel: string;
|
|
997
1013
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
998
1014
|
size?: 'medium' | 'small';
|
|
999
|
-
|
|
1000
|
-
filterOptions?: HeadCell['filterOptions'];
|
|
1001
|
-
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1002
|
-
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1003
|
-
validateInput?: HeadCell['validateInput'];
|
|
1004
|
-
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1015
|
+
onUpdateEditableCell: HeadCell['onUpdateEditableCell'];
|
|
1005
1016
|
};
|
|
1006
1017
|
declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
|
|
1007
1018
|
|
|
1008
1019
|
type TableDesktopCellProps = {
|
|
1009
|
-
editableCellType?: EditableCellType;
|
|
1010
1020
|
editInitialValue: any;
|
|
1011
|
-
rowId:
|
|
1012
|
-
field: string;
|
|
1013
|
-
fieldName: string;
|
|
1021
|
+
rowId: RowId;
|
|
1014
1022
|
enableEditMode: boolean;
|
|
1015
1023
|
disabled?: boolean;
|
|
1016
1024
|
readOnlyValue: string | number | boolean;
|
|
1017
|
-
|
|
1018
|
-
inputLabel: HeadCell['label'];
|
|
1019
|
-
filterOptions?: HeadCell['filterOptions'];
|
|
1020
|
-
refetchFilterOptions?: HeadCell['refetchFilterOptions'];
|
|
1021
|
-
isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
|
|
1022
|
-
validateInput?: HeadCell['validateInput'];
|
|
1023
|
-
onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
|
|
1025
|
+
headCell: HeadCell;
|
|
1024
1026
|
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
|
|
1025
1027
|
};
|
|
1026
1028
|
declare const TableDesktopCell: FC<TableDesktopCellProps>;
|
|
@@ -1129,4 +1131,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1129
1131
|
|
|
1130
1132
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1131
1133
|
|
|
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,
|
|
1134
|
+
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, _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, RowId, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, 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 };
|