@natoora-libs/core 0.2.7 → 0.2.61-po-confirmation

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.
@@ -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 } from '../TableDesktop-CZe649rr.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-CZe649rr.cjs';
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-4tjwQjmc.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-4tjwQjmc.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
- onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
70
+ onAutocompleteFilterChange: HeadCell['onAutocompleteFilterChange'];
71
71
  shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
72
72
  };
73
73
  declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
@@ -926,23 +926,6 @@ 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
- values?: Option[];
934
- defaultValues?: Option[];
935
- onOpen?: () => void;
936
- onChange?: (values: Option[]) => void;
937
- onClose?: (values: Option[]) => void;
938
- menuOptions?: Option[];
939
- isLoading?: boolean;
940
- disabled?: boolean;
941
- emptyMessage?: string;
942
- helperText?: string;
943
- };
944
- declare const SmartMultipleSelect: FC<SmartMultipleSelectProps>;
945
-
946
929
  interface SquareLabelProps {
947
930
  color?: string;
948
931
  copy?: any;
@@ -966,7 +949,7 @@ type SmartTableHeaderFilterMenuProps = {
966
949
  shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
967
950
  onApplyFilters?: TableDesktopProps['onApplyFilters'];
968
951
  };
969
- declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
952
+ declare const SmartTableHeaderFilterMenu: React__default.MemoExoticComponent<({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element>;
970
953
 
971
954
  type SmartTableHeaderProps = {
972
955
  order: Order;
@@ -1004,24 +987,40 @@ interface TableProps {
1004
987
  declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
1005
988
 
1006
989
  type TableDesktopEditableFieldProps = {
1007
- headCell: HeadCell;
1008
990
  editInitialValue?: any;
1009
991
  rowId?: number;
992
+ field: string;
993
+ fieldName: string;
1010
994
  disabled?: boolean;
1011
995
  showCheckboxLabel?: boolean;
996
+ inputLabel: string;
1012
997
  variant?: 'standard' | 'outlined' | 'filled';
1013
998
  size?: 'medium' | 'small';
1014
- onUpdateEditableCell: HeadCell['onUpdateEditableCell'];
999
+ editableCellType: EditableCellType;
1000
+ filterOptions?: HeadCell['filterOptions'];
1001
+ refetchFilterOptions?: HeadCell['refetchFilterOptions'];
1002
+ isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
1003
+ validateInput?: HeadCell['validateInput'];
1004
+ onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
1015
1005
  };
1016
1006
  declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
1017
1007
 
1018
1008
  type TableDesktopCellProps = {
1009
+ editableCellType?: EditableCellType;
1019
1010
  editInitialValue: any;
1020
1011
  rowId: number;
1012
+ field: string;
1013
+ fieldName: string;
1021
1014
  enableEditMode: boolean;
1022
1015
  disabled?: boolean;
1023
1016
  readOnlyValue: string | number | boolean;
1024
- headCell: 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'];
1025
1024
  onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
1026
1025
  };
1027
1026
  declare const TableDesktopCell: FC<TableDesktopCellProps>;
@@ -1130,4 +1129,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1130
1129
 
1131
1130
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1132
1131
 
1133
- 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, 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 };
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,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 } from '../TableDesktop-CZe649rr.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-CZe649rr.js';
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-4tjwQjmc.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-4tjwQjmc.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
- onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
70
+ onAutocompleteFilterChange: HeadCell['onAutocompleteFilterChange'];
71
71
  shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
72
72
  };
73
73
  declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
@@ -926,23 +926,6 @@ 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
- values?: Option[];
934
- defaultValues?: Option[];
935
- onOpen?: () => void;
936
- onChange?: (values: Option[]) => void;
937
- onClose?: (values: Option[]) => void;
938
- menuOptions?: Option[];
939
- isLoading?: boolean;
940
- disabled?: boolean;
941
- emptyMessage?: string;
942
- helperText?: string;
943
- };
944
- declare const SmartMultipleSelect: FC<SmartMultipleSelectProps>;
945
-
946
929
  interface SquareLabelProps {
947
930
  color?: string;
948
931
  copy?: any;
@@ -966,7 +949,7 @@ type SmartTableHeaderFilterMenuProps = {
966
949
  shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
967
950
  onApplyFilters?: TableDesktopProps['onApplyFilters'];
968
951
  };
969
- declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
952
+ declare const SmartTableHeaderFilterMenu: React__default.MemoExoticComponent<({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element>;
970
953
 
971
954
  type SmartTableHeaderProps = {
972
955
  order: Order;
@@ -1004,24 +987,40 @@ interface TableProps {
1004
987
  declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
1005
988
 
1006
989
  type TableDesktopEditableFieldProps = {
1007
- headCell: HeadCell;
1008
990
  editInitialValue?: any;
1009
991
  rowId?: number;
992
+ field: string;
993
+ fieldName: string;
1010
994
  disabled?: boolean;
1011
995
  showCheckboxLabel?: boolean;
996
+ inputLabel: string;
1012
997
  variant?: 'standard' | 'outlined' | 'filled';
1013
998
  size?: 'medium' | 'small';
1014
- onUpdateEditableCell: HeadCell['onUpdateEditableCell'];
999
+ editableCellType: EditableCellType;
1000
+ filterOptions?: HeadCell['filterOptions'];
1001
+ refetchFilterOptions?: HeadCell['refetchFilterOptions'];
1002
+ isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
1003
+ validateInput?: HeadCell['validateInput'];
1004
+ onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
1015
1005
  };
1016
1006
  declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
1017
1007
 
1018
1008
  type TableDesktopCellProps = {
1009
+ editableCellType?: EditableCellType;
1019
1010
  editInitialValue: any;
1020
1011
  rowId: number;
1012
+ field: string;
1013
+ fieldName: string;
1021
1014
  enableEditMode: boolean;
1022
1015
  disabled?: boolean;
1023
1016
  readOnlyValue: string | number | boolean;
1024
- headCell: 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'];
1025
1024
  onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
1026
1025
  };
1027
1026
  declare const TableDesktopCell: FC<TableDesktopCellProps>;
@@ -1130,4 +1129,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1130
1129
 
1131
1130
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1132
1131
 
1133
- 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, 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 };
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 };