@scmlatam/web-ui 0.2.51 → 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
- * Nota sobre pinned columns:
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;
@@ -219,7 +221,7 @@ export type RbTableProps<Row extends RbTableBaseRow = RbTableBaseRow> = {
219
221
  * Altura máxima del body de la tabla. Acepta el mismo formato que el ancho
220
222
  * de columnas: number => px, o cualquier string CSS válido ("20rem", "50vh", etc).
221
223
  * Si no se define, se usa el valor por defecto asociado a 'size'.
222
- * Se ignora cuando 'fill' está activo o 'size' es "f".
224
+ * Se ignora cuando 'fill' está activo o 'size' es "f".
223
225
  */
224
226
  maxHeight?: number | string;
225
227
  onRowClick?: (row: Row, index: number) => void;
@@ -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.
@@ -11,6 +11,7 @@ export type BaseInputProps = {
11
11
  unstyled?: boolean;
12
12
  infoTooltip?: React.ReactNode;
13
13
  infoAriaLabel?: string;
14
+ showCounter?: boolean;
14
15
  };
15
16
  type TextInputProps = BaseInputProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
16
17
  as?: "input";