@myunisoft/design-system 1.1.4 → 1.2.0
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/AccordionSection/index.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete/AutocompleteTag/index.d.ts +14 -0
- package/dist/components/Autocomplete/Autocomplete/example-usage.d.ts +4 -0
- package/dist/components/Autocomplete/Autocomplete/index.d.ts +51 -0
- package/dist/components/Autocomplete/AutocompleteMultiple/Results/SuggestList/SuggestItem/styles.d.ts +1 -1
- package/dist/components/Autocomplete/AutocompleteMultiple/index.d.ts +3 -0
- package/dist/components/Autocomplete/AutocompleteMultiple/styles.d.ts +1 -1
- package/dist/components/Autocomplete/AutocompleteSingle/Mode/edit.d.ts +2 -3
- package/dist/components/Autocomplete/AutocompleteSingle/Mode/view.d.ts +1 -2
- package/dist/components/Autocomplete/AutocompleteSingle/index.d.ts +3 -0
- package/dist/components/BadgeAdd/index.d.ts +1 -1
- package/dist/components/DataGrid/DataGridDS.d.ts +2 -2
- package/dist/components/DataGrid/components/menu/RowMenu/index.d.ts +1 -1
- package/dist/components/DataGrid/components/panel/CustomGridColumnsPanel/ColumnsManagementTable.d.ts +1 -1
- package/dist/components/DataGrid/components/toolbar/ArrayButtons/index.d.ts +2 -2
- package/dist/components/DataGrid/components/toolbar/CustomGridToolbar.d.ts +2 -2
- package/dist/components/DataGrid/components/toolbar/ToolbarIconButton/index.d.ts +1 -1
- package/dist/components/DataGrid/components/toolbar/buttons/QuickFilterButton.d.ts +1 -1
- package/dist/components/DataGrid/contexts/EditContext.d.ts +1 -1
- package/dist/components/DataGrid/index.d.ts +1 -1
- package/dist/components/DataGrid/utils.d.ts +1 -1
- package/dist/components/DraggableList/index.d.ts +1 -1
- package/dist/components/Modal/components/ModalAction.d.ts +2 -2
- package/dist/components/Modal/components/ModalClose.d.ts +1 -1
- package/dist/components/Modal/components/ModalContent.d.ts +1 -1
- package/dist/components/Modal/components/ModalCustomAction.d.ts +1 -1
- package/dist/components/Modal/components/ModalPrimaryAction.d.ts +2 -2
- package/dist/components/Modal/components/ModalSecondaryAction.d.ts +2 -2
- package/dist/components/Modal/components/ModalTitle.d.ts +2 -2
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/SplitButton/index.d.ts +2 -2
- package/dist/components/VirtualTable/cells/AmountCell/index.d.ts +5 -1
- package/dist/components/VirtualTable/cells/AutocompleteCell/Mode/edit.d.ts +1 -1
- package/dist/components/VirtualTable/cells/AutocompleteCell/index.d.ts +5 -1
- package/dist/components/VirtualTable/cells/NumberCell/index.d.ts +5 -1
- package/dist/components/VirtualTable/cells/SelectCell/Mode/view.d.ts +1 -1
- package/dist/components/VirtualTable/cells/StringCell/index.d.ts +5 -1
- package/dist/components/VirtualTable/components/Body/Cell/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Buttons/Button/index.d.ts +2 -2
- package/dist/components/VirtualTable/components/Buttons/index.d.ts +2 -2
- package/dist/components/VirtualTable/components/ColumnsSetting/ColumnsSetting.d.ts +5 -4
- package/dist/components/VirtualTable/components/ColumnsSetting/hooks/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/ColumnsSetting/hooks/useColumnsSetting.d.ts +1 -1
- package/dist/components/VirtualTable/components/ContextMenu/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/ErrorTooltip/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/ExportDialog/index.d.ts +1 -0
- package/dist/components/VirtualTable/components/ExportDialog/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Footer/Cell/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Header/components/Sortable/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/Icon/Font/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/Icon/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/SearchBar/component/FilterChip/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/SearchBar/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Toolbar/SettingsIcon.d.ts +1 -1
- package/dist/components/VirtualTable/features/secured/utils.d.ts +1 -1
- package/dist/components/VirtualTable/features/selection/utils.d.ts +1 -0
- package/dist/components/VirtualTable/helpers/filter.d.ts +1 -1
- package/dist/components/VirtualTable/hooks/useColumns.d.ts +1 -1
- package/dist/components/VirtualTable/hooks/useNavigation.d.ts +3 -3
- package/dist/components/VirtualTable/hooks/useWindowState.d.ts +2 -9
- package/dist/components/VirtualTable/styles.d.ts +1 -1
- package/dist/components/VirtualTable/utils.d.ts +1 -1
- package/dist/components/basics/Badge/index.d.ts +1 -1
- package/dist/components/basics/Checkbox/index.d.ts +3 -1
- package/dist/components/basics/ExpandButton/index.d.ts +1 -1
- package/dist/components/basics/Icon/Icon.d.ts +1 -1
- package/dist/components/basics/Icon/Icons-material/index.d.ts +4 -4
- package/dist/components/basics/Icon/index.d.ts +15 -15
- package/dist/components/basics/Title/index.d.ts +1 -1
- package/dist/helpers/hooks/useWindowWidth.d.ts +2 -0
- package/dist/helpers/validation/validators.d.ts +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -3
- package/package.json +3 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type SxProps, type Theme } from '@mui/material';
|
|
3
|
+
import type { OptionType } from '../index';
|
|
4
|
+
export type AutocompleteTagProps = {
|
|
5
|
+
option?: OptionType;
|
|
6
|
+
label?: string;
|
|
7
|
+
maxChipWidth?: number;
|
|
8
|
+
reserveForCounter?: number;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
onDelete?: (event: MouseEvent) => void;
|
|
11
|
+
sx?: SxProps<Theme>;
|
|
12
|
+
};
|
|
13
|
+
declare const AutocompleteTag: React.FC<AutocompleteTagProps>;
|
|
14
|
+
export default AutocompleteTag;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const BasicExample: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const CustomOptionExample: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ProductExample: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { BasicExample, CustomOptionExample, ProductExample };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type ChipProps, type AutocompleteProps as MuiAutocompleteProps, type TextFieldVariants } from '@mui/material';
|
|
3
|
+
import type { InputProps as StandardInputProps } from '@mui/material/Input/Input';
|
|
4
|
+
export type OptionType = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use value instead
|
|
9
|
+
*/
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
optionType?: 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
13
|
+
};
|
|
14
|
+
type SingleValueType<T> = T | null;
|
|
15
|
+
type MultiValueType<T> = T[];
|
|
16
|
+
type ValueType<T> = SingleValueType<T> | MultiValueType<T>;
|
|
17
|
+
export type AutocompleteBaseProps<T extends OptionType = OptionType> = {
|
|
18
|
+
label?: string;
|
|
19
|
+
options?: T[];
|
|
20
|
+
isError?: boolean;
|
|
21
|
+
isDisplayLabel?: boolean;
|
|
22
|
+
customSearch?: (inputValue: string, options: T[]) => T[];
|
|
23
|
+
selectAllHidden?: boolean;
|
|
24
|
+
selectAllLabel?: string;
|
|
25
|
+
allSelectedLabel?: string;
|
|
26
|
+
isDisabled?: boolean;
|
|
27
|
+
oneRowMode?: boolean;
|
|
28
|
+
InputProps?: StandardInputProps;
|
|
29
|
+
onIsSearchingChange?: (isOpen: boolean) => void;
|
|
30
|
+
getOptionLabel?: (option: T) => string;
|
|
31
|
+
onCreate?: (label: string, options: T[]) => void;
|
|
32
|
+
renderTag?: (tagProps: ChipProps, option: T) => ReactNode;
|
|
33
|
+
renderOptionLabel?: (labelChild: ReactNode, option: T) => ReactNode;
|
|
34
|
+
disableAllSelectedTag?: true;
|
|
35
|
+
disableSort?: true;
|
|
36
|
+
variant?: TextFieldVariants;
|
|
37
|
+
isOptionEqualToValue?: (option: T, value: T) => boolean;
|
|
38
|
+
};
|
|
39
|
+
export type AutocompleteMultipleProps<T extends OptionType = OptionType> = Omit<MuiAutocompleteProps<T, true, false, false>, 'renderInput' | 'renderOption' | 'value' | 'multiple'> & AutocompleteBaseProps<T> & {
|
|
40
|
+
multiple: true;
|
|
41
|
+
value?: MultiValueType<T>;
|
|
42
|
+
onChange?: (newValue: ValueType<T>) => void;
|
|
43
|
+
};
|
|
44
|
+
export type AutocompleteSingleProps<T extends OptionType = OptionType> = Omit<MuiAutocompleteProps<T, false, false, false>, 'renderInput' | 'renderOption' | 'value' | 'multiple'> & AutocompleteBaseProps<T> & {
|
|
45
|
+
multiple?: false;
|
|
46
|
+
value?: SingleValueType<T>;
|
|
47
|
+
onChange?: (newValue: ValueType<T>) => void;
|
|
48
|
+
};
|
|
49
|
+
export type AutocompleteProps<T extends OptionType = OptionType> = AutocompleteMultipleProps<T> | AutocompleteSingleProps<T>;
|
|
50
|
+
declare const Autocomplete: <T extends OptionType = OptionType>(inProps: AutocompleteProps<T>) => React.ReactElement;
|
|
51
|
+
export default Autocomplete;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"label" | "line" | "disabled" | "
|
|
5
|
+
classes: Record<"label" | "line" | "disabled" | "tooltip" | "checkboxContainer", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -9,5 +9,8 @@ type AutocompleteMultipleProps = {
|
|
|
9
9
|
isOptionsMutable?: boolean;
|
|
10
10
|
onIsSearchingChange?: UnknownFunction;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use <Autocomplete mutliple /> instead
|
|
14
|
+
*/
|
|
12
15
|
declare const AutocompleteMultiple: ({ options, customSearch, onChange, isError, label, isDisplayLabel, onIsSearchingChange, isDisabled, isOptionsMutable }: AutocompleteMultipleProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
export default AutocompleteMultiple;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"label" | "search" | "border" | "clear" | "
|
|
5
|
+
classes: Record<"label" | "search" | "border" | "clear" | "open" | "isError" | "selector" | "autoCompleteContainer" | "icons" | "dropDownIcon" | "rotated" | "isErrorBorder", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UnknownFunction } from 'reselect/es/types';
|
|
1
|
+
import type { UnknownFunction } from 'reselect/es/types';
|
|
3
2
|
type AutocompleteEditProps = {
|
|
4
3
|
data?: object;
|
|
5
4
|
dataKey?: string;
|
|
@@ -7,5 +6,5 @@ type AutocompleteEditProps = {
|
|
|
7
6
|
options: unknown[] | UnknownFunction;
|
|
8
7
|
};
|
|
9
8
|
};
|
|
10
|
-
declare const AutocompleteEdit:
|
|
9
|
+
declare const AutocompleteEdit: import("react").NamedExoticComponent<AutocompleteEditProps>;
|
|
11
10
|
export default AutocompleteEdit;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
type AutocompleteViewProps = {
|
|
3
2
|
data?: object;
|
|
4
3
|
columnIndex?: number;
|
|
5
4
|
};
|
|
6
|
-
declare const AutocompleteView:
|
|
5
|
+
declare const AutocompleteView: import("react").NamedExoticComponent<AutocompleteViewProps>;
|
|
7
6
|
export default AutocompleteView;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source (MUI v7.x): https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid-pro
|
|
7
7
|
*/
|
|
8
|
-
import { DataGridProProps, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
9
|
-
import { RowMenuAction } from './components/menu/RowMenu';
|
|
8
|
+
import { type DataGridProProps, type GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
9
|
+
import { type RowMenuAction } from './components/menu/RowMenu';
|
|
10
10
|
export interface DataGridDSProps extends DataGridProProps {
|
|
11
11
|
rowContextMenu?: {
|
|
12
12
|
actions: RowMenuAction[];
|
package/dist/components/DataGrid/components/panel/CustomGridColumnsPanel/ColumnsManagementTable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridColumnVisibilityModel } from '@mui/x-data-grid-pro';
|
|
1
|
+
import { type GridColumnVisibilityModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
interface ColumnsManagementTableProps {
|
|
3
3
|
visibilityModel: GridColumnVisibilityModel;
|
|
4
4
|
setVisibilityModel: (model: GridColumnVisibilityModel) => void;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Source (MUI v7.x): https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/components/toolbar/GridToolbar.tsx
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
10
|
-
import { IconButtonConfig, TextButtonConfig } from './ArrayButtons';
|
|
9
|
+
import { type GridRowSelectionModel, type GridSlotsComponentsProps, type GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
10
|
+
import { type IconButtonConfig, type TextButtonConfig } from './ArrayButtons';
|
|
11
11
|
interface DeleteAction {
|
|
12
12
|
onDelete: (selectedRowIds: GridRowSelectionModel) => boolean | Promise<boolean>;
|
|
13
13
|
disabled?: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GridToolbarQuickFilterProps } from '@mui/x-data-grid-pro';
|
|
1
|
+
import { type GridToolbarQuickFilterProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
declare const QuickFilterButton: (props: GridToolbarQuickFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default QuickFilterButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridApiPro } from '@mui/x-data-grid-pro';
|
|
3
3
|
declare const getSelectedRows: (apiRef: RefObject<GridApiPro>) => import("@mui/x-data-grid-pro").GridValidRowModel[];
|
|
4
4
|
export { getSelectedRows };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC, ReactNode, Ref } from 'react';
|
|
2
|
-
import { ButtonProps } from '@mui/material';
|
|
1
|
+
import { type FC, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type ButtonProps } from '@mui/material';
|
|
3
3
|
type ModalActionProps = {
|
|
4
4
|
color?: ButtonProps['color'];
|
|
5
5
|
variant?: ButtonProps['variant'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC, ReactNode, Ref } from 'react';
|
|
2
|
-
import { ModalVariant } from '../index';
|
|
1
|
+
import { type FC, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import type { ModalVariant } from '../index';
|
|
3
3
|
export type ModalPrimaryActionProps = {
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use `<Modal variant="error">` instead
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { ButtonProps } from '@mui/material';
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
import type { ButtonProps } from '@mui/material';
|
|
3
3
|
type ModalSecondaryActionProps = {
|
|
4
4
|
color?: ButtonProps['color'];
|
|
5
5
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, ReactNode } from 'react';
|
|
1
|
+
import React, { type FC, type ReactNode } from 'react';
|
|
2
2
|
import ModalContent from './components/ModalContent';
|
|
3
3
|
import ModalCustomAction from './components/ModalCustomAction';
|
|
4
4
|
import ModalPrimaryAction from './components/ModalPrimaryAction';
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type AmountCellProps = {
|
|
3
|
+
isReadOnly: boolean;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
declare const AmountCell: React.NamedExoticComponent<AmountCellProps>;
|
|
3
7
|
export default AmountCell;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type AutocompleteCellProps = {
|
|
3
|
+
isReadOnly: boolean;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
declare const AutocompleteCell: React.NamedExoticComponent<AutocompleteCellProps>;
|
|
3
7
|
export default AutocompleteCell;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type NumberCellProps = {
|
|
3
|
+
isReadOnly: boolean;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
declare const NumberCell: React.NamedExoticComponent<NumberCellProps>;
|
|
3
7
|
export default NumberCell;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type StringCellProps = {
|
|
3
|
+
isReadOnly: boolean;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
declare const StringCell: React.NamedExoticComponent<StringCellProps>;
|
|
3
7
|
export default StringCell;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"onError" | "expandIcon" | "align" | "
|
|
5
|
+
classes: Record<"onError" | "expandIcon" | "align" | "cell" | "pointer" | "focused" | "odd" | "alignLeft" | "alignCenter" | "alignRight" | "thumbnail" | "groupRow" | "cbCell" | "BodyGrid" | "defaultStyle" | "even" | "expandCell" | "lockRow" | "withGrid" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "iconButton", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { Ref } from 'react';
|
|
2
|
-
import { ButtonOwnProps } from '@mui/material';
|
|
1
|
+
import React, { type Ref } from 'react';
|
|
2
|
+
import { type ButtonOwnProps } from '@mui/material';
|
|
3
3
|
type ButtonProps = ButtonOwnProps & {
|
|
4
4
|
className?: string;
|
|
5
5
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
type ColumnsSettingProps = {
|
|
2
2
|
open: any;
|
|
3
3
|
onClose: any;
|
|
4
|
-
onChangeColumnsSetting
|
|
5
|
-
columnsConfig
|
|
6
|
-
}
|
|
4
|
+
onChangeColumnsSetting?: any;
|
|
5
|
+
columnsConfig?: any;
|
|
6
|
+
};
|
|
7
|
+
declare const ColumnsSetting: ({ open, onClose, onChangeColumnsSetting, columnsConfig }: ColumnsSettingProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default ColumnsSetting;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import useColumnsSetting from
|
|
1
|
+
import useColumnsSetting from './useColumnsSetting';
|
|
2
2
|
export { useColumnsSetting };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const useColumnsSetting: (initialSavedColumns: any, editable:
|
|
1
|
+
declare const useColumnsSetting: (initialSavedColumns: any, editable: any, deleted: any, columnsConfig: any, storageColumns: any, setItem: any, defaultColumns: any) => {
|
|
2
2
|
columns: never[];
|
|
3
3
|
changes: {};
|
|
4
4
|
reset: () => void;
|
|
@@ -2,6 +2,7 @@ type ExportDialogProps = {
|
|
|
2
2
|
onClose: UnknownFunction;
|
|
3
3
|
onCustomExportClick?: UnknownFunction;
|
|
4
4
|
isExportAllPages?: boolean;
|
|
5
|
+
open?: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const ExportDialog: ({ onClose, onCustomExportClick, isExportAllPages }: ExportDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default ExportDialog;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"fieldset" | "title" | "checkbox" | "root" | "
|
|
5
|
+
classes: Record<"fieldset" | "title" | "checkbox" | "root" | "actions" | "exportAllPage" | "checkboxLabel" | "switchButton", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"footer" | "align" | "cell" | "alignLeft" | "alignCenter" | "alignRight" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop"
|
|
5
|
+
classes: Record<"footer" | "align" | "cell" | "footerCell" | "alignLeft" | "alignCenter" | "alignRight" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import FontIcon from './Font';
|
|
2
|
-
export { FontIcon
|
|
2
|
+
export { FontIcon };
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"input" | "select" | "
|
|
5
|
+
classes: Record<"input" | "select" | "root" | "closeIcon", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"button" | "input" | "menu" | "
|
|
5
|
+
classes: Record<"button" | "input" | "menu" | "root" | "closeIcon" | "termsWrapper" | "inputEmpty" | "mainInput" | "chipsGroup" | "inputWrapper", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -14,4 +14,4 @@ export declare const isLockedRow: ({ unlockedRowsIds, row, selectableRowKey, has
|
|
|
14
14
|
* @param {string} selectableRowKey
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
export declare const getUnlockedRowsIds: (unlockedRows
|
|
17
|
+
export declare const getUnlockedRowsIds: (unlockedRows?: (any | number)[], selectableRowKey?: string) => any[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const isRowSelectableByConfig: (row: any, rowIndex: any, hideCheckboxFromConfig: any) => boolean;
|
|
1
2
|
export declare function createSelection(rows?: never[]): never[];
|
|
2
3
|
export declare function unselectRow(rows: any, id: any): any[];
|
|
3
4
|
export declare function getSelectedHiddenRows(selectedRows?: never[], displayableRows?: never[], selectableRowKey?: string): never[];
|
|
@@ -21,5 +21,5 @@ export declare const isMatchingWallet: (search: any, _value: any, options?: {})
|
|
|
21
21
|
* @param {object} row - The data to check
|
|
22
22
|
* @param {array} filters - List of specific column filters
|
|
23
23
|
*/
|
|
24
|
-
export declare const matchFilterList: (row: any, filters?:
|
|
24
|
+
export declare const matchFilterList: (row: any, filters?: any[], columns?: any[]) => boolean;
|
|
25
25
|
export declare const getSearchableColumns: (columns: any) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const useColumns: (columns: any, tableKeyName: any,
|
|
1
|
+
declare const useColumns: (columns: any, tableKeyName: any, _config: any, onColumnsChange: any) => {
|
|
2
2
|
dispatch: import("react").ActionDispatch<[action: any]>;
|
|
3
3
|
state: any;
|
|
4
4
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const useNavigation: ({ hasCheckBox, onFocusChange, columns }: {
|
|
2
2
|
hasCheckBox: any;
|
|
3
3
|
onFocusChange?: (() => void) | undefined;
|
|
4
|
-
columns?:
|
|
4
|
+
columns?: any[] | undefined;
|
|
5
5
|
}) => {
|
|
6
6
|
handleCellBlur: (previousRowIndex: any, previousColumnIndex: any) => void;
|
|
7
7
|
handleCellFocus: (rowIndex: any, columnIndex: any) => void;
|
|
8
|
-
focusedCell:
|
|
9
|
-
currentCell: undefined;
|
|
8
|
+
focusedCell: any[] | undefined;
|
|
9
|
+
currentCell: any[] | undefined;
|
|
10
10
|
setCurrentCell: (rowIndex: any, columnIndex: any) => void;
|
|
11
11
|
};
|
|
12
12
|
export default useNavigation;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
export declare const useWindowState: (props?:
|
|
1
|
+
export declare const useWindowState: (props?: any) => {
|
|
2
2
|
open: (message: any, focus?: boolean) => void;
|
|
3
3
|
send: (message: any, focus?: boolean) => void;
|
|
4
4
|
focus: () => void;
|
|
5
5
|
close: () => void;
|
|
6
|
-
props:
|
|
7
|
-
open: any;
|
|
8
|
-
focusing: boolean;
|
|
9
|
-
message: any;
|
|
10
|
-
onOpen: () => void;
|
|
11
|
-
onFocusChanged: () => void;
|
|
12
|
-
onClose: () => void;
|
|
13
|
-
};
|
|
6
|
+
props: any;
|
|
14
7
|
};
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"center" | "container" | "disabled" | "onError" | "align" | "
|
|
5
|
+
classes: Record<"center" | "container" | "disabled" | "onError" | "align" | "checkbox" | "cell" | "pointer" | "alignLeft" | "alignCenter" | "alignRight" | "thumbnail" | "groupRow" | "cbCell" | "checkmark" | "BodyGrid" | "defaultStyle" | "lockRow" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "selectedRow" | "hasSelectAll" | "HeaderGrid" | "GridRow" | "GridColumn" | "LeftSideGridContainer" | "LeftSideGrid" | "mb32" | "hoverRow" | "displayNone", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -70,5 +70,5 @@ declare const matchFilter: (columns: any, row: any, filters?: never[], term?: st
|
|
|
70
70
|
declare function isAsync(func: any): boolean;
|
|
71
71
|
declare function calculateColumnsWidth(columns: any, width: any, minCellWidth?: number): any;
|
|
72
72
|
declare function calculateColumnWidth(column: any, width: any, totalColumnsWidth: any, totalColumnsSize: any, minCellWidth: any): any;
|
|
73
|
-
declare function sortColumns(order:
|
|
73
|
+
declare function sortColumns(order: any, col: any): any;
|
|
74
74
|
export { ROW_TYPE, INSERT_POSITION, TABLE_STATE, SORTABLE_DIRECTIONS, addGroupIdToObj, processGroupItemData, createTitleRow, createAddRowGroup, isExportable, isSortable, isAsync, matchFilter, calculateColumnWidth, calculateColumnsWidth, sortColumns };
|