@scmlatam/web-ui 0.2.53 → 0.2.56
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,3 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { RbTableBaseRow, RbTableProps } from './types';
|
|
3
|
-
export declare function RbTable<Row extends RbTableBaseRow = RbTableBaseRow>({ id, columns, rows, loading, getRowKey, title, description, toolbarLeft, toolbarRight, showToolbar, toolbarClassName, emptyText, emptyState, className, rootClassName, bodyClassName, size, fill, density, maxHeight, onRowClick, onCellContextMenu, rowClassName, getCellClassName, getRowClassName, checkboxSelection, rowSelectionModel, setRowSelectionModel, onRowSelectionModelChange, isRowSelectable, disableRowSelectionOnClick, pinnedColumns, initialState, paginate, paginationMode, paginationModel, setPaginationModel, onPaginationModelChange, rowCount, defaultRowsPerPage, rowsPerPageOptions, resultsLabel, viewAllLabel, prevAriaLabel, nextAriaLabel, footer, footerActions, hideFooter, }: RbTableProps<Row>): React.JSX.Element;
|
|
3
|
+
export declare function RbTable<Row extends RbTableBaseRow = RbTableBaseRow>({ id, columns, rows, loading, getRowKey, title, description, toolbarLeft, toolbarRight, showToolbar, toolbarClassName, emptyText, emptyState, className, rootClassName, bodyClassName, size, fill, density, maxHeight, onRowClick, onCellContextMenu, rowClassName, getCellClassName, getRowClassName, checkboxSelection, rowSelectionModel, setRowSelectionModel, onRowSelectionModelChange, isRowSelectable, disableRowSelectionOnClick, disableColumnPinning, pinnedColumns, onPinnedColumnsChange, initialState, paginate, paginationMode, paginationModel, setPaginationModel, onPaginationModelChange, rowCount, defaultRowsPerPage, rowsPerPageOptions, resultsLabel, viewAllLabel, prevAriaLabel, nextAriaLabel, footer, footerActions, hideFooter, }: RbTableProps<Row>): React.JSX.Element;
|
|
@@ -4,6 +4,7 @@ export type RbToolbarActionButtonProps = React.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
4
4
|
variant?: RbToolbarActionButtonVariant;
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
6
|
loading?: boolean;
|
|
7
|
+
id?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare function RbToolbarActionButton({ children, icon, loading, disabled, variant, className, type, ...props }: RbToolbarActionButtonProps): React.JSX.Element;
|
|
9
|
+
export declare function RbToolbarActionButton({ children, icon, loading, disabled, id, variant, className, type, ...props }: RbToolbarActionButtonProps): React.JSX.Element;
|
|
9
10
|
export default RbToolbarActionButton;
|
|
@@ -85,8 +85,7 @@ export type RbTableColumn<Row extends RbTableBaseRow = RbTableBaseRow> = {
|
|
|
85
85
|
* - "1fr"
|
|
86
86
|
* - "minmax(120px, 1fr)"
|
|
87
87
|
*
|
|
88
|
-
*
|
|
89
|
-
* Para columnas fijas/sticky se recomienda usar ancho numérico o px.
|
|
88
|
+
* Los offsets de columnas fijas se calculan con el ancho renderizado.
|
|
90
89
|
*/
|
|
91
90
|
width?: number | string;
|
|
92
91
|
/**
|
|
@@ -115,6 +114,8 @@ export type RbTableColumn<Row extends RbTableBaseRow = RbTableBaseRow> = {
|
|
|
115
114
|
cellClassName?: string | ((row: Row, index: number) => string | undefined);
|
|
116
115
|
sortable?: boolean;
|
|
117
116
|
filterable?: boolean;
|
|
117
|
+
/** Permite cambiar la posición fija de esta columna desde su menú. */
|
|
118
|
+
pinnable?: boolean;
|
|
118
119
|
disabled?: boolean;
|
|
119
120
|
};
|
|
120
121
|
/**
|
|
@@ -142,6 +143,7 @@ export type RbLegacyGridColumn<Row extends RbTableBaseRow = RbTableBaseRow> = {
|
|
|
142
143
|
fullWidthRender?: boolean;
|
|
143
144
|
sortable?: boolean;
|
|
144
145
|
filterable?: boolean;
|
|
146
|
+
pinnable?: boolean;
|
|
145
147
|
headerClassName?: string;
|
|
146
148
|
cellClassName?: string | ((params: RbTableCellParams<Row>) => string | undefined);
|
|
147
149
|
renderCell?: (params: RbTableCellParams<Row>) => React.ReactNode;
|
|
@@ -237,7 +239,10 @@ export type RbTableProps<Row extends RbTableBaseRow = RbTableBaseRow> = {
|
|
|
237
239
|
onRowSelectionModelChange?: (value: RbTableRowId[]) => void;
|
|
238
240
|
isRowSelectable?: (params: RbTableRowParams<Row>) => boolean;
|
|
239
241
|
disableRowSelectionOnClick?: boolean;
|
|
242
|
+
/** Oculta el menú para fijar columnas sin desactivar el pinning por API. */
|
|
243
|
+
disableColumnPinning?: boolean;
|
|
240
244
|
pinnedColumns?: RbTablePinnedColumns;
|
|
245
|
+
onPinnedColumnsChange?: (value: RbTablePinnedColumns) => void;
|
|
241
246
|
initialState?: RbTableInitialState;
|
|
242
247
|
/**
|
|
243
248
|
* Activa el footer de paginación de la tabla.
|