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