mantine-datatable 7.1.1 → 7.1.3
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/index.d.ts +798 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{css/styles.css → styles.css} +51 -37
- package/dist/styles.css.map +1 -0
- package/dist/{css/styles.layer.css → styles.layer.css} +47 -30
- package/dist/styles.layer.css.map +1 -0
- package/package.json +36 -27
- package/dist/esm/DataTable.js +0 -175
- package/dist/esm/DataTable.js.map +0 -1
- package/dist/esm/DataTableColumnGroupHeaderCell.js +0 -19
- package/dist/esm/DataTableColumnGroupHeaderCell.js.map +0 -1
- package/dist/esm/DataTableEmptyRow.js +0 -5
- package/dist/esm/DataTableEmptyRow.js.map +0 -1
- package/dist/esm/DataTableEmptyState.js +0 -7
- package/dist/esm/DataTableEmptyState.js.map +0 -1
- package/dist/esm/DataTableFooter.js +0 -22
- package/dist/esm/DataTableFooter.js.map +0 -1
- package/dist/esm/DataTableFooterCell.js +0 -24
- package/dist/esm/DataTableFooterCell.js.map +0 -1
- package/dist/esm/DataTableFooterSelectorPlaceholderCell.js +0 -6
- package/dist/esm/DataTableFooterSelectorPlaceholderCell.js.map +0 -1
- package/dist/esm/DataTableHeader.js +0 -18
- package/dist/esm/DataTableHeader.js.map +0 -1
- package/dist/esm/DataTableHeaderCell.js +0 -40
- package/dist/esm/DataTableHeaderCell.js.map +0 -1
- package/dist/esm/DataTableHeaderCellFilter.js +0 -15
- package/dist/esm/DataTableHeaderCellFilter.js.map +0 -1
- package/dist/esm/DataTableHeaderSelectorCell.js +0 -8
- package/dist/esm/DataTableHeaderSelectorCell.js.map +0 -1
- package/dist/esm/DataTableLoader.js +0 -7
- package/dist/esm/DataTableLoader.js.map +0 -1
- package/dist/esm/DataTablePageSizeSelector.js +0 -30
- package/dist/esm/DataTablePageSizeSelector.js.map +0 -1
- package/dist/esm/DataTablePagination.js +0 -34
- package/dist/esm/DataTablePagination.js.map +0 -1
- package/dist/esm/DataTableRow.js +0 -44
- package/dist/esm/DataTableRow.js.map +0 -1
- package/dist/esm/DataTableRowCell.js +0 -31
- package/dist/esm/DataTableRowCell.js.map +0 -1
- package/dist/esm/DataTableRowExpansion.js +0 -9
- package/dist/esm/DataTableRowExpansion.js.map +0 -1
- package/dist/esm/DataTableRowSelectorCell.js +0 -8
- package/dist/esm/DataTableRowSelectorCell.js.map +0 -1
- package/dist/esm/DataTableScrollArea.js +0 -22
- package/dist/esm/DataTableScrollArea.js.map +0 -1
- package/dist/esm/cssVariables.js +0 -43
- package/dist/esm/cssVariables.js.map +0 -1
- package/dist/esm/hooks/index.js +0 -9
- package/dist/esm/hooks/index.js.map +0 -1
- package/dist/esm/hooks/useElementOuterSize.js +0 -8
- package/dist/esm/hooks/useElementOuterSize.js.map +0 -1
- package/dist/esm/hooks/useIsomorphicLayoutEffect.js +0 -4
- package/dist/esm/hooks/useIsomorphicLayoutEffect.js.map +0 -1
- package/dist/esm/hooks/useLastSelectionChangeIndex.js +0 -11
- package/dist/esm/hooks/useLastSelectionChangeIndex.js.map +0 -1
- package/dist/esm/hooks/useMediaQueries.js +0 -52
- package/dist/esm/hooks/useMediaQueries.js.map +0 -1
- package/dist/esm/hooks/useMediaQueriesStringOrFunction.js +0 -11
- package/dist/esm/hooks/useMediaQueriesStringOrFunction.js.map +0 -1
- package/dist/esm/hooks/useMediaQueryStringOrFunction.js +0 -9
- package/dist/esm/hooks/useMediaQueryStringOrFunction.js.map +0 -1
- package/dist/esm/hooks/useRowExpansion.js +0 -45
- package/dist/esm/hooks/useRowExpansion.js.map +0 -1
- package/dist/esm/hooks/useRowExpansionStatus.js +0 -23
- package/dist/esm/hooks/useRowExpansionStatus.js.map +0 -1
- package/dist/esm/icons/IconArrowUp.js +0 -5
- package/dist/esm/icons/IconArrowUp.js.map +0 -1
- package/dist/esm/icons/IconArrowsVertical.js +0 -5
- package/dist/esm/icons/IconArrowsVertical.js.map +0 -1
- package/dist/esm/icons/IconDatabaseOff.js +0 -5
- package/dist/esm/icons/IconDatabaseOff.js.map +0 -1
- package/dist/esm/icons/IconFilter.js +0 -5
- package/dist/esm/icons/IconFilter.js.map +0 -1
- package/dist/esm/icons/IconFilterFilled.js +0 -5
- package/dist/esm/icons/IconFilterFilled.js.map +0 -1
- package/dist/esm/icons/IconSelector.js +0 -5
- package/dist/esm/icons/IconSelector.js.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/DataTableCellClickHandler.js +0 -2
- package/dist/esm/types/DataTableCellClickHandler.js.map +0 -1
- package/dist/esm/types/DataTableColorProps.js +0 -2
- package/dist/esm/types/DataTableColorProps.js.map +0 -1
- package/dist/esm/types/DataTableColumn.js +0 -2
- package/dist/esm/types/DataTableColumn.js.map +0 -1
- package/dist/esm/types/DataTableColumnGroup.js +0 -2
- package/dist/esm/types/DataTableColumnGroup.js.map +0 -1
- package/dist/esm/types/DataTableColumnProps.js +0 -2
- package/dist/esm/types/DataTableColumnProps.js.map +0 -1
- package/dist/esm/types/DataTableColumnTextAlign.js +0 -2
- package/dist/esm/types/DataTableColumnTextAlign.js.map +0 -1
- package/dist/esm/types/DataTableDefaultColumnProps.js +0 -2
- package/dist/esm/types/DataTableDefaultColumnProps.js.map +0 -1
- package/dist/esm/types/DataTableEmptyStateProps.js +0 -2
- package/dist/esm/types/DataTableEmptyStateProps.js.map +0 -1
- package/dist/esm/types/DataTableLoaderProps.js +0 -2
- package/dist/esm/types/DataTableLoaderProps.js.map +0 -1
- package/dist/esm/types/DataTableOuterBorderProps.js +0 -2
- package/dist/esm/types/DataTableOuterBorderProps.js.map +0 -1
- package/dist/esm/types/DataTablePageSizeSelectorProps.js +0 -2
- package/dist/esm/types/DataTablePageSizeSelectorProps.js.map +0 -1
- package/dist/esm/types/DataTablePaginationProps.js +0 -2
- package/dist/esm/types/DataTablePaginationProps.js.map +0 -1
- package/dist/esm/types/DataTableProps.js +0 -2
- package/dist/esm/types/DataTableProps.js.map +0 -1
- package/dist/esm/types/DataTableRowClickHandler.js +0 -2
- package/dist/esm/types/DataTableRowClickHandler.js.map +0 -1
- package/dist/esm/types/DataTableRowExpansionCollapseProps.js +0 -2
- package/dist/esm/types/DataTableRowExpansionCollapseProps.js.map +0 -1
- package/dist/esm/types/DataTableRowExpansionProps.js +0 -2
- package/dist/esm/types/DataTableRowExpansionProps.js.map +0 -1
- package/dist/esm/types/DataTableScrollProps.js +0 -2
- package/dist/esm/types/DataTableScrollProps.js.map +0 -1
- package/dist/esm/types/DataTableSelectionProps.js +0 -2
- package/dist/esm/types/DataTableSelectionProps.js.map +0 -1
- package/dist/esm/types/DataTableSortProps.js +0 -2
- package/dist/esm/types/DataTableSortProps.js.map +0 -1
- package/dist/esm/types/DataTableSortStatus.js +0 -2
- package/dist/esm/types/DataTableSortStatus.js.map +0 -1
- package/dist/esm/types/DataTableVerticalAlign.js +0 -2
- package/dist/esm/types/DataTableVerticalAlign.js.map +0 -1
- package/dist/esm/types/index.js +0 -18
- package/dist/esm/types/index.js.map +0 -1
- package/dist/esm/types/utils.js +0 -2
- package/dist/esm/types/utils.js.map +0 -1
- package/dist/esm/utilityClasses.js +0 -8
- package/dist/esm/utilityClasses.js.map +0 -1
- package/dist/esm/utils.js +0 -41
- package/dist/esm/utils.js.map +0 -1
- package/dist/types/DataTable.d.ts +0 -2
- package/dist/types/DataTableColumnGroupHeaderCell.d.ts +0 -6
- package/dist/types/DataTableEmptyRow.d.ts +0 -1
- package/dist/types/DataTableEmptyState.d.ts +0 -11
- package/dist/types/DataTableFooter.d.ts +0 -15
- package/dist/types/DataTableFooterCell.d.ts +0 -11
- package/dist/types/DataTableFooterSelectorPlaceholderCell.d.ts +0 -5
- package/dist/types/DataTableHeader.d.ts +0 -22
- package/dist/types/DataTableHeaderCell.d.ts +0 -14
- package/dist/types/DataTableHeaderCellFilter.d.ts +0 -7
- package/dist/types/DataTableHeaderSelectorCell.d.ts +0 -11
- package/dist/types/DataTableLoader.d.ts +0 -14
- package/dist/types/DataTablePageSizeSelector.d.ts +0 -18
- package/dist/types/DataTablePagination.d.ts +0 -16
- package/dist/types/DataTableRow.d.ts +0 -35
- package/dist/types/DataTableRowCell.d.ts +0 -14
- package/dist/types/DataTableRowExpansion.d.ts +0 -10
- package/dist/types/DataTableRowSelectorCell.d.ts +0 -13
- package/dist/types/DataTableScrollArea.d.ts +0 -16
- package/dist/types/cssVariables.d.ts +0 -46
- package/dist/types/hooks/index.d.ts +0 -8
- package/dist/types/hooks/useElementOuterSize.d.ts +0 -6
- package/dist/types/hooks/useIsomorphicLayoutEffect.d.ts +0 -2
- package/dist/types/hooks/useLastSelectionChangeIndex.d.ts +0 -5
- package/dist/types/hooks/useMediaQueries.d.ts +0 -4
- package/dist/types/hooks/useMediaQueriesStringOrFunction.d.ts +0 -2
- package/dist/types/hooks/useMediaQueryStringOrFunction.d.ts +0 -2
- package/dist/types/hooks/useRowExpansion.d.ts +0 -17
- package/dist/types/hooks/useRowExpansionStatus.d.ts +0 -4
- package/dist/types/icons/IconArrowUp.d.ts +0 -1
- package/dist/types/icons/IconArrowsVertical.d.ts +0 -1
- package/dist/types/icons/IconDatabaseOff.d.ts +0 -1
- package/dist/types/icons/IconFilter.d.ts +0 -1
- package/dist/types/icons/IconFilterFilled.d.ts +0 -1
- package/dist/types/icons/IconSelector.d.ts +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/types/DataTableCellClickHandler.d.ts +0 -24
- package/dist/types/types/DataTableColorProps.d.ts +0 -77
- package/dist/types/types/DataTableColumn.d.ts +0 -134
- package/dist/types/types/DataTableColumnGroup.d.ts +0 -33
- package/dist/types/types/DataTableColumnProps.d.ts +0 -15
- package/dist/types/types/DataTableColumnTextAlign.d.ts +0 -1
- package/dist/types/types/DataTableDefaultColumnProps.d.ts +0 -2
- package/dist/types/types/DataTableEmptyStateProps.d.ts +0 -18
- package/dist/types/types/DataTableLoaderProps.d.ts +0 -31
- package/dist/types/types/DataTableOuterBorderProps.d.ts +0 -14
- package/dist/types/types/DataTablePageSizeSelectorProps.d.ts +0 -19
- package/dist/types/types/DataTablePaginationProps.d.ts +0 -90
- package/dist/types/types/DataTableProps.d.ts +0 -155
- package/dist/types/types/DataTableRowClickHandler.d.ts +0 -15
- package/dist/types/types/DataTableRowExpansionCollapseProps.d.ts +0 -2
- package/dist/types/types/DataTableRowExpansionProps.d.ts +0 -52
- package/dist/types/types/DataTableScrollProps.d.ts +0 -25
- package/dist/types/types/DataTableSelectionProps.d.ts +0 -33
- package/dist/types/types/DataTableSortProps.d.ts +0 -31
- package/dist/types/types/DataTableSortStatus.d.ts +0 -12
- package/dist/types/types/DataTableVerticalAlign.d.ts +0 -1
- package/dist/types/types/index.d.ts +0 -17
- package/dist/types/types/utils.d.ts +0 -4
- package/dist/types/utilityClasses.d.ts +0 -7
- package/dist/types/utils.d.ts +0 -21
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type MantineSpacing, type StyleProp } from '@mantine/core';
|
|
3
|
-
type DataTableEmptyStateProps = React.PropsWithChildren<{
|
|
4
|
-
icon: React.ReactNode | undefined;
|
|
5
|
-
text: string;
|
|
6
|
-
pt: StyleProp<MantineSpacing>;
|
|
7
|
-
pb: StyleProp<MantineSpacing>;
|
|
8
|
-
active: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
export declare function DataTableEmptyState({ icon, text, pt, pb, active, children }: DataTableEmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type MantineStyleProp } from '@mantine/core';
|
|
2
|
-
import type { DataTableColumn, DataTableDefaultColumnProps } from './types';
|
|
3
|
-
type DataTableFooterProps<T> = {
|
|
4
|
-
className: string | undefined;
|
|
5
|
-
style: MantineStyleProp | undefined;
|
|
6
|
-
columns: DataTableColumn<T>[];
|
|
7
|
-
defaultColumnProps: DataTableDefaultColumnProps<T> | undefined;
|
|
8
|
-
selectionVisible: boolean;
|
|
9
|
-
leftShadowVisible: boolean;
|
|
10
|
-
scrollDiff: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const DataTableFooter: <T>(props: DataTableFooterProps<T> & {
|
|
13
|
-
ref: React.ForwardedRef<HTMLTableSectionElement>;
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type MantineStyleProp, type MantineTheme } from '@mantine/core';
|
|
3
|
-
import type { DataTableColumn } from './types';
|
|
4
|
-
type DataTableFooterCellProps<T> = {
|
|
5
|
-
className: string | undefined;
|
|
6
|
-
style: MantineStyleProp | undefined;
|
|
7
|
-
visibleMediaQuery: string | ((theme: MantineTheme) => string) | undefined;
|
|
8
|
-
title: React.ReactNode | undefined;
|
|
9
|
-
} & Pick<DataTableColumn<T>, 'noWrap' | 'ellipsis' | 'textAlign' | 'width'>;
|
|
10
|
-
export declare function DataTableFooterCell<T>({ className, style, visibleMediaQuery, title, noWrap, ellipsis, textAlign, width, }: DataTableFooterCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type CheckboxProps, type MantineStyleProp } from '@mantine/core';
|
|
2
|
-
import type { DataTableColumn, DataTableColumnGroup, DataTableSortProps } from './types';
|
|
3
|
-
type DataTableHeaderProps<T> = {
|
|
4
|
-
className: string | undefined;
|
|
5
|
-
style?: MantineStyleProp;
|
|
6
|
-
sortStatus: DataTableSortProps<T>['sortStatus'];
|
|
7
|
-
sortIcons: DataTableSortProps<T>['sortIcons'];
|
|
8
|
-
onSortStatusChange: DataTableSortProps<T>['onSortStatusChange'];
|
|
9
|
-
columns: DataTableColumn<T>[];
|
|
10
|
-
defaultColumnProps: Omit<DataTableColumn<T>, 'accessor'> | undefined;
|
|
11
|
-
groups: readonly DataTableColumnGroup<T>[] | undefined;
|
|
12
|
-
selectionVisible: boolean;
|
|
13
|
-
selectionChecked: boolean;
|
|
14
|
-
selectionIndeterminate: boolean;
|
|
15
|
-
onSelectionChange: (() => void) | undefined;
|
|
16
|
-
selectionCheckboxProps: CheckboxProps;
|
|
17
|
-
leftShadowVisible: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare const DataTableHeader: <T>(props: DataTableHeaderProps<T> & {
|
|
20
|
-
ref: React.ForwardedRef<HTMLTableSectionElement>;
|
|
21
|
-
}) => JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MantineStyleProp, type MantineTheme } from '@mantine/core';
|
|
3
|
-
import type { DataTableColumn, DataTableSortProps } from './types';
|
|
4
|
-
type DataTableHeaderCellProps<T> = {
|
|
5
|
-
className: string | undefined;
|
|
6
|
-
style: MantineStyleProp | undefined;
|
|
7
|
-
visibleMediaQuery: string | ((theme: MantineTheme) => string) | undefined;
|
|
8
|
-
title: React.ReactNode | undefined;
|
|
9
|
-
sortStatus: DataTableSortProps<T>['sortStatus'];
|
|
10
|
-
sortIcons: DataTableSortProps<T>['sortIcons'];
|
|
11
|
-
onSortStatusChange: DataTableSortProps<T>['onSortStatusChange'];
|
|
12
|
-
} & Pick<DataTableColumn<T>, 'accessor' | 'sortable' | 'textAlign' | 'width' | 'filter' | 'filtering'>;
|
|
13
|
-
export declare function DataTableHeaderCell<T>({ className, style, accessor, visibleMediaQuery, title, sortable, sortIcons, textAlign, width, sortStatus, onSortStatusChange, filter, filtering, }: DataTableHeaderCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DataTableColumn } from './types';
|
|
2
|
-
type DataTableHeaderCellFilterProps<T> = {
|
|
3
|
-
children: DataTableColumn<T>['filter'];
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare function DataTableHeaderCellFilter<T>({ children, isActive }: DataTableHeaderCellFilterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type CheckboxProps } from '@mantine/core';
|
|
2
|
-
type DataTableHeaderSelectorCellProps = {
|
|
3
|
-
shadowVisible: boolean;
|
|
4
|
-
checked: boolean;
|
|
5
|
-
indeterminate: boolean;
|
|
6
|
-
checkboxProps: CheckboxProps;
|
|
7
|
-
onChange: (() => void) | undefined;
|
|
8
|
-
rowSpan: number | undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare function DataTableHeaderSelectorCell({ shadowVisible, checked, indeterminate, checkboxProps, onChange, rowSpan, }: DataTableHeaderSelectorCellProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type MantineColor, type MantineLoader, type MantineSize } from '@mantine/core';
|
|
3
|
-
type DataTableLoaderProps = {
|
|
4
|
-
pt: number;
|
|
5
|
-
pb: number;
|
|
6
|
-
fetching: boolean | undefined;
|
|
7
|
-
customContent: React.ReactNode | undefined;
|
|
8
|
-
backgroundBlur: number | undefined;
|
|
9
|
-
size: MantineSize | (string & NonNullable<unknown>) | number | undefined;
|
|
10
|
-
type: MantineLoader | undefined;
|
|
11
|
-
color: MantineColor | undefined;
|
|
12
|
-
};
|
|
13
|
-
export declare function DataTableLoader({ pt, pb, fetching, customContent, backgroundBlur, size, type, color, }: DataTableLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MantineColor, type MantineSize } from '@mantine/core';
|
|
2
|
-
type DataTablePageSizeSelectorComponentProps = {
|
|
3
|
-
size: MantineSize;
|
|
4
|
-
label: string;
|
|
5
|
-
values: number[];
|
|
6
|
-
value: number;
|
|
7
|
-
activeTextColor: MantineColor | {
|
|
8
|
-
dark: MantineColor;
|
|
9
|
-
light: MantineColor;
|
|
10
|
-
} | undefined;
|
|
11
|
-
activeBackgroundColor: MantineColor | {
|
|
12
|
-
dark: MantineColor;
|
|
13
|
-
light: MantineColor;
|
|
14
|
-
} | undefined;
|
|
15
|
-
onChange: (value: number) => void;
|
|
16
|
-
};
|
|
17
|
-
export declare function DataTablePageSizeSelector({ size, label, values, value, activeTextColor, activeBackgroundColor, onChange, }: DataTablePageSizeSelectorComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type MantineSpacing, type MantineStyleProp } from '@mantine/core';
|
|
2
|
-
import { type ForwardedRef } from 'react';
|
|
3
|
-
import type { DataTablePaginationProps } from './types';
|
|
4
|
-
import type { WithOptionalProperty, WithRequiredProperty } from './types/utils';
|
|
5
|
-
type DataTablePaginationComponentProps = WithOptionalProperty<WithRequiredProperty<DataTablePaginationProps, 'loadingText' | 'paginationSize' | 'recordsPerPageLabel' | 'paginationWrapBreakpoint' | 'getPaginationControlProps'>, 'onRecordsPerPageChange' | 'recordsPerPageOptions'> & {
|
|
6
|
-
className: string | undefined;
|
|
7
|
-
style: MantineStyleProp | undefined;
|
|
8
|
-
fetching: boolean | undefined;
|
|
9
|
-
recordsLength: number | undefined;
|
|
10
|
-
horizontalSpacing: MantineSpacing | undefined;
|
|
11
|
-
noRecordsText: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const DataTablePagination: (props: DataTablePaginationComponentProps & {
|
|
14
|
-
ref: ForwardedRef<HTMLDivElement>;
|
|
15
|
-
}) => JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type CheckboxProps, type MantineColor, type MantineStyleProp } from '@mantine/core';
|
|
3
|
-
import { useRowExpansion } from './hooks';
|
|
4
|
-
import type { DataTableCellClickHandler, DataTableColumn, DataTableDefaultColumnProps, DataTableRowClickHandler } from './types';
|
|
5
|
-
type DataTableRowProps<T> = {
|
|
6
|
-
record: T;
|
|
7
|
-
index: number;
|
|
8
|
-
columns: DataTableColumn<T>[];
|
|
9
|
-
defaultColumnProps: DataTableDefaultColumnProps<T> | undefined;
|
|
10
|
-
defaultColumnRender: ((record: T, index: number, accessor: keyof T | (string & NonNullable<unknown>)) => React.ReactNode) | undefined;
|
|
11
|
-
selectionVisible: boolean;
|
|
12
|
-
selectionChecked: boolean;
|
|
13
|
-
onSelectionChange: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
14
|
-
isRecordSelectable: ((record: T, index: number) => boolean) | undefined;
|
|
15
|
-
getSelectionCheckboxProps: (record: T, index: number) => CheckboxProps;
|
|
16
|
-
onClick: DataTableRowClickHandler<T> | undefined;
|
|
17
|
-
onContextMenu: DataTableRowClickHandler<T> | undefined;
|
|
18
|
-
onCellClick: DataTableCellClickHandler<T> | undefined;
|
|
19
|
-
onCellContextMenu: DataTableCellClickHandler<T> | undefined;
|
|
20
|
-
expansion: ReturnType<typeof useRowExpansion<T>>;
|
|
21
|
-
customAttributes?: (record: T, index: number) => Record<string, unknown>;
|
|
22
|
-
color: ((record: T, index: number) => MantineColor | undefined | {
|
|
23
|
-
light: MantineColor;
|
|
24
|
-
dark: MantineColor;
|
|
25
|
-
}) | undefined;
|
|
26
|
-
backgroundColor: ((record: T, index: number) => MantineColor | undefined | {
|
|
27
|
-
light: MantineColor;
|
|
28
|
-
dark: MantineColor;
|
|
29
|
-
}) | undefined;
|
|
30
|
-
className?: string | ((record: T, index: number) => string | undefined);
|
|
31
|
-
style?: (record: T, index: number) => MantineStyleProp | undefined;
|
|
32
|
-
leftShadowVisible: boolean;
|
|
33
|
-
};
|
|
34
|
-
export declare function DataTableRow<T>({ record, index, columns, defaultColumnProps, defaultColumnRender, selectionVisible, selectionChecked, onSelectionChange, isRecordSelectable, getSelectionCheckboxProps, onClick, onContextMenu, onCellClick, onCellContextMenu, expansion, customAttributes, color, backgroundColor, className, style, leftShadowVisible, }: DataTableRowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type MantineStyleProp } from '@mantine/core';
|
|
3
|
-
import type { DataTableColumn } from './types';
|
|
4
|
-
type DataTableRowCellProps<T> = {
|
|
5
|
-
className: string | undefined;
|
|
6
|
-
style: MantineStyleProp | undefined;
|
|
7
|
-
record: T;
|
|
8
|
-
index: number;
|
|
9
|
-
defaultRender: ((record: T, index: number, accessor: keyof T | (string & NonNullable<unknown>)) => React.ReactNode) | undefined;
|
|
10
|
-
onClick: React.MouseEventHandler<HTMLTableCellElement> | undefined;
|
|
11
|
-
onContextMenu: React.MouseEventHandler<HTMLTableCellElement> | undefined;
|
|
12
|
-
} & Pick<DataTableColumn<T>, 'accessor' | 'visibleMediaQuery' | 'textAlign' | 'width' | 'noWrap' | 'ellipsis' | 'render' | 'customCellAttributes'>;
|
|
13
|
-
export declare function DataTableRowCell<T>({ className, style, visibleMediaQuery, record, index, onClick, onContextMenu, noWrap, ellipsis, textAlign, width, accessor, render, defaultRender, customCellAttributes, }: DataTableRowCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { DataTableRowExpansionCollapseProps } from './types';
|
|
3
|
-
type DataTableRowExpansionProps = {
|
|
4
|
-
open: boolean;
|
|
5
|
-
colSpan: number;
|
|
6
|
-
content: () => React.ReactNode;
|
|
7
|
-
collapseProps: DataTableRowExpansionCollapseProps | undefined;
|
|
8
|
-
};
|
|
9
|
-
export declare function DataTableRowExpansion({ open, colSpan, content, collapseProps }: DataTableRowExpansionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type CheckboxProps } from '@mantine/core';
|
|
3
|
-
type DataTableRowSelectorCellProps<T> = {
|
|
4
|
-
record: T;
|
|
5
|
-
index: number;
|
|
6
|
-
withRightShadow: boolean;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
onChange: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
10
|
-
getCheckboxProps: (record: T, index: number) => CheckboxProps;
|
|
11
|
-
};
|
|
12
|
-
export declare function DataTableRowSelectorCell<T>({ record, index, withRightShadow, getCheckboxProps, ...otherProps }: DataTableRowSelectorCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type ScrollAreaProps } from '@mantine/core';
|
|
3
|
-
type DataTableScrollAreaProps = React.PropsWithChildren<{
|
|
4
|
-
topShadowVisible: boolean;
|
|
5
|
-
leftShadowVisible: boolean;
|
|
6
|
-
leftShadowBehind: boolean;
|
|
7
|
-
rightShadowVisible: boolean;
|
|
8
|
-
bottomShadowVisible: boolean;
|
|
9
|
-
headerHeight: number;
|
|
10
|
-
footerHeight: number;
|
|
11
|
-
onScrollPositionChange: ScrollAreaProps['onScrollPositionChange'];
|
|
12
|
-
viewportRef: React.Ref<HTMLDivElement>;
|
|
13
|
-
scrollAreaProps: Omit<ScrollAreaProps, 'classNames' | 'styles' | 'onScrollPositionChange'> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export declare function DataTableScrollArea({ topShadowVisible, leftShadowVisible, leftShadowBehind, rightShadowVisible, bottomShadowVisible, headerHeight, footerHeight, onScrollPositionChange, children, viewportRef, scrollAreaProps, }: DataTableScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type MantineColor, type MantineTheme } from '@mantine/core';
|
|
2
|
-
import type { DataTableProps } from './types';
|
|
3
|
-
export declare function getColor(color: MantineColor | undefined | {
|
|
4
|
-
light: MantineColor;
|
|
5
|
-
dark: MantineColor;
|
|
6
|
-
}, theme: MantineTheme, colorScheme: 'light' | 'dark'): string;
|
|
7
|
-
export declare function getTableCssVariables({ theme, c, backgroundColor, borderColor, rowBorderColor, stripedColor, highlightOnHoverColor, }: Pick<DataTableProps, 'c' | 'backgroundColor' | 'borderColor' | 'rowBorderColor' | 'stripedColor' | 'highlightOnHoverColor'> & {
|
|
8
|
-
theme: MantineTheme;
|
|
9
|
-
}): {
|
|
10
|
-
'--mantine-datatable-color-light': string;
|
|
11
|
-
'--mantine-datatable-color-dark': string;
|
|
12
|
-
'--mantine-datatable-background-color-light': string;
|
|
13
|
-
'--mantine-datatable-background-color-dark': string;
|
|
14
|
-
'--mantine-datatable-border-color-light': string;
|
|
15
|
-
'--mantine-datatable-border-color-dark': string;
|
|
16
|
-
'--mantine-datatable-row-border-color-light': string;
|
|
17
|
-
'--mantine-datatable-row-border-color-dark': string;
|
|
18
|
-
'--mantine-datatable-striped-color-light': string;
|
|
19
|
-
'--mantine-datatable-striped-color-dark': string;
|
|
20
|
-
'--mantine-datatable-highlight-on-hover-color-light': string;
|
|
21
|
-
'--mantine-datatable-highlight-on-hover-color-dark': string;
|
|
22
|
-
};
|
|
23
|
-
export declare function getPaginationCssVariables({ theme, paginationActiveTextColor, paginationActiveBackgroundColor, }: Pick<DataTableProps, 'paginationActiveTextColor' | 'paginationActiveBackgroundColor'> & {
|
|
24
|
-
theme: MantineTheme;
|
|
25
|
-
}): {
|
|
26
|
-
'--mantine-datatable-pagination-active-text-color-light': string;
|
|
27
|
-
'--mantine-datatable-pagination-active-text-color-dark': string;
|
|
28
|
-
'--mantine-datatable-pagination-active-background-color-light': string;
|
|
29
|
-
'--mantine-datatable-pagination-active-background-color-dark': string;
|
|
30
|
-
};
|
|
31
|
-
export declare function getRowCssVariables({ theme, color, backgroundColor, }: {
|
|
32
|
-
theme: MantineTheme;
|
|
33
|
-
color: MantineColor | undefined | {
|
|
34
|
-
light: MantineColor;
|
|
35
|
-
dark: MantineColor;
|
|
36
|
-
};
|
|
37
|
-
backgroundColor: MantineColor | undefined | {
|
|
38
|
-
light: MantineColor;
|
|
39
|
-
dark: MantineColor;
|
|
40
|
-
};
|
|
41
|
-
}): {
|
|
42
|
-
'--mantine-datatable-row-color-light': string;
|
|
43
|
-
'--mantine-datatable-row-color-dark': string;
|
|
44
|
-
'--mantine-datatable-row-background-color-light': string;
|
|
45
|
-
'--mantine-datatable-row-background-color-dark': string;
|
|
46
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './useElementOuterSize';
|
|
2
|
-
export * from './useIsomorphicLayoutEffect';
|
|
3
|
-
export * from './useLastSelectionChangeIndex';
|
|
4
|
-
export * from './useMediaQueries';
|
|
5
|
-
export * from './useMediaQueriesStringOrFunction';
|
|
6
|
-
export * from './useMediaQueryStringOrFunction';
|
|
7
|
-
export * from './useRowExpansion';
|
|
8
|
-
export * from './useRowExpansionStatus';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DataTableRowExpansionProps } from '../types/DataTableRowExpansionProps';
|
|
3
|
-
export declare function useRowExpansion<T>({ rowExpansion, records, idAccessor, }: {
|
|
4
|
-
rowExpansion?: DataTableRowExpansionProps<T>;
|
|
5
|
-
records: T[] | undefined;
|
|
6
|
-
idAccessor: (keyof T | (string & NonNullable<unknown>)) | ((record: T) => React.Key);
|
|
7
|
-
}): {
|
|
8
|
-
expandOnClick: boolean;
|
|
9
|
-
isRowExpanded: (record: T) => boolean;
|
|
10
|
-
expandRow: (record: T) => void;
|
|
11
|
-
collapseRow: (record: T) => void;
|
|
12
|
-
collapseProps: import("..").DataTableRowExpansionCollapseProps;
|
|
13
|
-
content: ({ record, index }: {
|
|
14
|
-
record: T;
|
|
15
|
-
index: number;
|
|
16
|
-
}) => () => import("react").ReactNode;
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IconArrowUp(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IconArrowsVertical(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IconDatabaseOff(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IconFilter(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IconFilterFilled(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IconSelector(): import("react/jsx-runtime").JSX.Element;
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { DataTableColumn } from './DataTableColumn';
|
|
3
|
-
export type DataTableCellClickHandler<T = Record<string, unknown>> = (params: {
|
|
4
|
-
/**
|
|
5
|
-
* Click event.
|
|
6
|
-
*/
|
|
7
|
-
event: React.MouseEvent;
|
|
8
|
-
/**
|
|
9
|
-
* Clicked record.
|
|
10
|
-
*/
|
|
11
|
-
record: T;
|
|
12
|
-
/**
|
|
13
|
-
* Clicked record index.
|
|
14
|
-
*/
|
|
15
|
-
index: number;
|
|
16
|
-
/**
|
|
17
|
-
* Clicked column information.
|
|
18
|
-
*/
|
|
19
|
-
column: DataTableColumn<T>;
|
|
20
|
-
/**
|
|
21
|
-
* Clicked column index.
|
|
22
|
-
*/
|
|
23
|
-
columnIndex: number;
|
|
24
|
-
}) => void;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { MantineColor } from '@mantine/core';
|
|
2
|
-
export type DataTableColorProps<T> = {
|
|
3
|
-
/**
|
|
4
|
-
* Data table text color.
|
|
5
|
-
* Can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
6
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
7
|
-
*/
|
|
8
|
-
c?: MantineColor | {
|
|
9
|
-
light: MantineColor;
|
|
10
|
-
dark: MantineColor;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Data table background color.
|
|
14
|
-
* Can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
15
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
16
|
-
*/
|
|
17
|
-
backgroundColor?: MantineColor | {
|
|
18
|
-
light: MantineColor;
|
|
19
|
-
dark: MantineColor;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Color of table borders, applied to all borders except row borders.
|
|
23
|
-
* Can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
24
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
25
|
-
*/
|
|
26
|
-
borderColor?: MantineColor | {
|
|
27
|
-
light: MantineColor;
|
|
28
|
-
dark: MantineColor;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Color of row borders.
|
|
32
|
-
* Can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
33
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
34
|
-
*/
|
|
35
|
-
rowBorderColor?: MantineColor | {
|
|
36
|
-
light: MantineColor;
|
|
37
|
-
dark: MantineColor;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Background color of striped rows.
|
|
41
|
-
* Can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
42
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
43
|
-
*/
|
|
44
|
-
stripedColor?: MantineColor | {
|
|
45
|
-
light: MantineColor;
|
|
46
|
-
dark: MantineColor;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Background color of hover-highlighted row.
|
|
50
|
-
* Can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
51
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
52
|
-
*/
|
|
53
|
-
highlightOnHoverColor?: MantineColor | {
|
|
54
|
-
light: MantineColor;
|
|
55
|
-
dark: MantineColor;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Data table row text color.
|
|
59
|
-
* A function that accepts row data and returns color.
|
|
60
|
-
* The returned color can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
61
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
62
|
-
*/
|
|
63
|
-
rowColor?: (record: T, index: number) => MantineColor | undefined | {
|
|
64
|
-
light: MantineColor;
|
|
65
|
-
dark: MantineColor;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* Data table row background color.
|
|
69
|
-
* A function that accepts row data and returns background color color.
|
|
70
|
-
* Can be a `MantineColor` (key of `theme.colors` or any valid CSS color string),
|
|
71
|
-
* or an object with `light` and `dark` keys and `MantineColor` values.
|
|
72
|
-
*/
|
|
73
|
-
rowBackgroundColor?: (record: T, index: number) => MantineColor | undefined | {
|
|
74
|
-
light: MantineColor;
|
|
75
|
-
dark: MantineColor;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MantineStyleProp, MantineTheme } from '@mantine/core';
|
|
3
|
-
import type { DataTableColumnTextAlign } from './DataTableColumnTextAlign';
|
|
4
|
-
export type DataTableColumn<T = Record<string, unknown>> = {
|
|
5
|
-
/**
|
|
6
|
-
* Column accessor.
|
|
7
|
-
* You can use dot-notation for nested objects property drilling.
|
|
8
|
-
* (i.e. `department.name` or `department.company.name`)
|
|
9
|
-
*/
|
|
10
|
-
accessor: keyof T | (string & NonNullable<unknown>);
|
|
11
|
-
/**
|
|
12
|
-
* Optional column header title.
|
|
13
|
-
* If not present, one will be generated by "humanizing" the provided column accessor.
|
|
14
|
-
* (i.e. `firstName` -> `First name`; `user.firstName` -> `User first name`)
|
|
15
|
-
*/
|
|
16
|
-
title?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Custom cell data render function.
|
|
19
|
-
* Accepts the current record and its index in `records` as arguments and returns a React node
|
|
20
|
-
* (remember that a string is a valid React node too).
|
|
21
|
-
*/
|
|
22
|
-
render?: (record: T, index: number) => React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* Column text alignment.
|
|
25
|
-
* @default `left`
|
|
26
|
-
*/
|
|
27
|
-
textAlign?: DataTableColumnTextAlign;
|
|
28
|
-
/**
|
|
29
|
-
* If true, column will be sortable.
|
|
30
|
-
*/
|
|
31
|
-
sortable?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Optional node providing the user with filtering options.
|
|
34
|
-
* If present, a filter button will be added to the column's header. Upon clicking that button,
|
|
35
|
-
* a pop-over showing the provided node will be opened.
|
|
36
|
-
*
|
|
37
|
-
* Alternatively, a function returning a node can be provided. The function receives props with a `close`
|
|
38
|
-
* method which allows programatically closing the pop-over.
|
|
39
|
-
*
|
|
40
|
-
* ```tsx
|
|
41
|
-
* // …
|
|
42
|
-
* columns={[
|
|
43
|
-
* {
|
|
44
|
-
* accessor: 'name',
|
|
45
|
-
* filter: ({ close }) => {
|
|
46
|
-
* return <Stack>
|
|
47
|
-
* <Button onClick={() => { setFilter(undefined); close(); }}>Reset</Button>
|
|
48
|
-
* </Stack>
|
|
49
|
-
* },
|
|
50
|
-
* }
|
|
51
|
-
* ]}
|
|
52
|
-
* // …
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* Note: this property only takes care of rendering the node which provides the filtering options.
|
|
56
|
-
* It is assumed that the actual filtering is performed somewhere in user code.
|
|
57
|
-
*/
|
|
58
|
-
filter?: React.ReactNode | ((params: {
|
|
59
|
-
close: () => void;
|
|
60
|
-
}) => React.ReactNode);
|
|
61
|
-
/**
|
|
62
|
-
* If true, filter icon will be styled differently to indicate the filter is in effect.
|
|
63
|
-
*/
|
|
64
|
-
filtering?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Desired column width.
|
|
67
|
-
*/
|
|
68
|
-
width?: string | number;
|
|
69
|
-
/**
|
|
70
|
-
* If true, column will not be visible.
|
|
71
|
-
*/
|
|
72
|
-
hidden?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* If set, the column will only be visible according to the specified media query.
|
|
75
|
-
* Can be a string, or a function receiving the current theme and returning a string.
|
|
76
|
-
*/
|
|
77
|
-
visibleMediaQuery?: string | ((theme: MantineTheme) => string);
|
|
78
|
-
/**
|
|
79
|
-
* Optional class name passed to the column title
|
|
80
|
-
*/
|
|
81
|
-
titleClassName?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Optional style passed to the column title.
|
|
84
|
-
* Either a style object, or a function receiving the current theme and returning a style object.
|
|
85
|
-
*/
|
|
86
|
-
titleStyle?: MantineStyleProp;
|
|
87
|
-
/**
|
|
88
|
-
* Optional class name passed to each data cell in the column.
|
|
89
|
-
* Can be a string, or a function receiving the current record and its index
|
|
90
|
-
* as arguments and returning a string.
|
|
91
|
-
*/
|
|
92
|
-
cellsClassName?: string | ((record: T, index: number) => string | undefined);
|
|
93
|
-
/**
|
|
94
|
-
* Optional style passed to each data cell in the column.
|
|
95
|
-
* A function that receives the current record and its index as arguments and returns either
|
|
96
|
-
* a style object, or a function that accepts theme and returns a style object.
|
|
97
|
-
*/
|
|
98
|
-
cellsStyle?: (record: T, index: number) => MantineStyleProp | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* Optional function returning an object of custom attributes to be applied to each cell in the column.
|
|
101
|
-
* Receives the current record and its index as arguments.
|
|
102
|
-
* Useful for adding data attributes, handling middle-clicks, etc.
|
|
103
|
-
*/
|
|
104
|
-
customCellAttributes?: (record: T, index: number) => Record<string, unknown>;
|
|
105
|
-
/**
|
|
106
|
-
* Optional column footer content.
|
|
107
|
-
* If at least one column has a footer, the table will display a footer row.
|
|
108
|
-
*/
|
|
109
|
-
footer?: React.ReactNode;
|
|
110
|
-
/**
|
|
111
|
-
* Optional class name passed to the column footer.
|
|
112
|
-
*/
|
|
113
|
-
footerClassName?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Optional style passed to the column footer.
|
|
116
|
-
*/
|
|
117
|
-
footerStyle?: MantineStyleProp;
|
|
118
|
-
} & ({
|
|
119
|
-
/**
|
|
120
|
-
* If true, cell content in this column will be truncated with ellipsis as needed and will not wrap
|
|
121
|
-
* to multiple lines (i.e. `overflow: hidden; text-overflow: ellipsis`; `white-space: nowrap`).
|
|
122
|
-
* On a column, you can either set this property or `noWrap`, but not both.
|
|
123
|
-
*/
|
|
124
|
-
ellipsis?: boolean;
|
|
125
|
-
noWrap?: never;
|
|
126
|
-
} | {
|
|
127
|
-
ellipsis?: never;
|
|
128
|
-
/**
|
|
129
|
-
* If true, cell content in this column will not wrap to multiple lines (i.e. `white-space: nowrap`).
|
|
130
|
-
* This is useful for columns containing long strings.
|
|
131
|
-
* On a column, you can either set this property or `ellipsis`, but not both.
|
|
132
|
-
*/
|
|
133
|
-
noWrap?: boolean;
|
|
134
|
-
});
|