bolt-table 0.1.19 → 0.1.21

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.mts CHANGED
@@ -281,7 +281,7 @@ interface StylesTypes {
281
281
  /** CSS color string for pinned column cells and headers background. */
282
282
  pinnedBg?: string;
283
283
  }
284
- declare function BoltTable<T extends DataRecord = DataRecord>({ columns: initialColumns, data, rowHeight, expandedRowHeight, maxExpandedRowHeight, accentColor, className, classNames, styles, gripIcon, hideGripIcon, icons, pagination, onPaginationChange, onColumnResize, onColumnOrderChange, onColumnPin, onColumnHide, rowSelection, rowPinning, onRowPin, expandable, rowKey, onEndReached, onEndReachedThreshold, isLoading, onSortChange, onFilterChange, columnContextMenuItems, autoHeight, layoutLoading, emptyRenderer, rowClassName, rowStyle, }: BoltTableProps<T>): react_jsx_runtime.JSX.Element;
284
+ declare function BoltTable<T extends DataRecord = DataRecord>({ columns: rawInitialColumns, data: rawData, rowHeight, expandedRowHeight, maxExpandedRowHeight, accentColor, className, classNames, styles, gripIcon, hideGripIcon, icons, pagination, onPaginationChange, onColumnResize, onColumnOrderChange, onColumnPin, onColumnHide, rowSelection, rowPinning, onRowPin, expandable, rowKey, onEndReached, onEndReachedThreshold, isLoading, onSortChange, onFilterChange, columnContextMenuItems, autoHeight, layoutLoading, emptyRenderer, rowClassName, rowStyle, }: BoltTableProps<T>): react_jsx_runtime.JSX.Element;
285
285
 
286
286
  interface DraggableHeaderProps {
287
287
  /** Column definition for this header cell. */
@@ -357,6 +357,8 @@ interface TableBodyProps {
357
357
  normalizedSelectedKeys?: string[];
358
358
  /** Returns the string key for a given row record and index */
359
359
  getRowKey?: (record: DataRecord, index: number) => string;
360
+ /** Returns the original-typed key for a given row record and index */
361
+ getRawRowKey?: (record: DataRecord, index: number) => React$1.Key;
360
362
  /** Expandable row configuration */
361
363
  expandable?: ExpandableConfig<DataRecord>;
362
364
  /** Set of currently expanded row keys */
package/dist/index.d.ts CHANGED
@@ -281,7 +281,7 @@ interface StylesTypes {
281
281
  /** CSS color string for pinned column cells and headers background. */
282
282
  pinnedBg?: string;
283
283
  }
284
- declare function BoltTable<T extends DataRecord = DataRecord>({ columns: initialColumns, data, rowHeight, expandedRowHeight, maxExpandedRowHeight, accentColor, className, classNames, styles, gripIcon, hideGripIcon, icons, pagination, onPaginationChange, onColumnResize, onColumnOrderChange, onColumnPin, onColumnHide, rowSelection, rowPinning, onRowPin, expandable, rowKey, onEndReached, onEndReachedThreshold, isLoading, onSortChange, onFilterChange, columnContextMenuItems, autoHeight, layoutLoading, emptyRenderer, rowClassName, rowStyle, }: BoltTableProps<T>): react_jsx_runtime.JSX.Element;
284
+ declare function BoltTable<T extends DataRecord = DataRecord>({ columns: rawInitialColumns, data: rawData, rowHeight, expandedRowHeight, maxExpandedRowHeight, accentColor, className, classNames, styles, gripIcon, hideGripIcon, icons, pagination, onPaginationChange, onColumnResize, onColumnOrderChange, onColumnPin, onColumnHide, rowSelection, rowPinning, onRowPin, expandable, rowKey, onEndReached, onEndReachedThreshold, isLoading, onSortChange, onFilterChange, columnContextMenuItems, autoHeight, layoutLoading, emptyRenderer, rowClassName, rowStyle, }: BoltTableProps<T>): react_jsx_runtime.JSX.Element;
285
285
 
286
286
  interface DraggableHeaderProps {
287
287
  /** Column definition for this header cell. */
@@ -357,6 +357,8 @@ interface TableBodyProps {
357
357
  normalizedSelectedKeys?: string[];
358
358
  /** Returns the string key for a given row record and index */
359
359
  getRowKey?: (record: DataRecord, index: number) => string;
360
+ /** Returns the original-typed key for a given row record and index */
361
+ getRawRowKey?: (record: DataRecord, index: number) => React$1.Key;
360
362
  /** Expandable row configuration */
361
363
  expandable?: ExpandableConfig<DataRecord>;
362
364
  /** Set of currently expanded row keys */