@ishibashi0112/spreadsheet-grid 0.32.0 → 0.33.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.
@@ -7,5 +7,6 @@ export type SerializeRowsToCsvParams<T> = {
7
7
  delimiter?: string;
8
8
  includeHeaders?: boolean;
9
9
  bom?: boolean;
10
+ isRowIncluded?: (row: T, rowIndex: number) => boolean;
10
11
  };
11
- export declare const serializeRowsToCsv: <T>({ getRow, startRow, endRow, columns, delimiter, includeHeaders, bom, }: SerializeRowsToCsvParams<T>) => string;
12
+ export declare const serializeRowsToCsv: <T>({ getRow, startRow, endRow, columns, delimiter, includeHeaders, bom, isRowIncluded, }: SerializeRowsToCsvParams<T>) => string;
@@ -4,5 +4,6 @@ export type BuildGridExportDataParams<T> = {
4
4
  startRow: number;
5
5
  endRow: number;
6
6
  columns: GridColumn<T>[];
7
+ isRowIncluded?: (row: T, rowIndex: number) => boolean;
7
8
  };
8
- export declare const buildGridExportData: <T>({ getRow, startRow, endRow, columns, }: BuildGridExportDataParams<T>) => GridExportData;
9
+ export declare const buildGridExportData: <T>({ getRow, startRow, endRow, columns, isRowIncluded, }: BuildGridExportDataParams<T>) => GridExportData;
@@ -694,6 +694,10 @@ export type SpreadsheetGridProps<T> = {
694
694
  onRowsChange?: (nextRows: T[]) => void;
695
695
  onColumnsChange?: (nextColumns: GridColumn<T>[]) => void;
696
696
  rowKeyGetter?: (row: T, index: number) => GridRowKey;
697
+ isRowExportable?: (row: T, ctx: {
698
+ viewRowIndex: number;
699
+ rowKey: GridRowKey;
700
+ }) => boolean;
697
701
  createRow?: () => T;
698
702
  createOverflowColumn?: (columnIndex: number) => GridColumn<T>;
699
703
  rowHeight?: number;
@@ -729,6 +733,10 @@ export type SpreadsheetGridProps<T> = {
729
733
  showCellOverflowTooltip?: boolean;
730
734
  showValidationMarks?: boolean;
731
735
  enableRowHover?: boolean;
736
+ hoveredRowIndex?: number | null;
737
+ onHoveredRowChange?: (viewRowIndex: number | null, ctx: {
738
+ source: 'pointer';
739
+ }) => void;
732
740
  enableColumnHeaderHover?: boolean;
733
741
  enableColumnMenu?: boolean;
734
742
  noMatchingRowsText?: string;
@@ -22,7 +22,7 @@ export declare const serializeSelectionToTsv: <T>(getRow: (viewIndex: number) =>
22
22
  type: "col";
23
23
  startCol: number;
24
24
  endCol: number;
25
- } | null) => string;
25
+ } | null, isRowIncluded?: (row: T, viewRowIndex: number) => boolean) => string;
26
26
  export declare const applyClipboardMatrixToRows: <T extends object>(rows: T[], resolveSourceIndex: (viewIndex: number) => number | undefined, columns: GridColumn<T>[], matrix: ClipboardMatrix, startRowIndex: number, startColIndex: number, canWriteCell: (originalRowIndex: number, colIndex: number, row: T, column: GridColumn<T>) => boolean) => T[];
27
27
  export declare const buildClipboardCellEdits: <T extends object>(getRow: (viewIndex: number) => T | undefined, columns: GridColumn<T>[], matrix: ClipboardMatrix, startRowIndex: number, startColIndex: number, canWriteCell: (viewIndex: number, colIndex: number, row: T, column: GridColumn<T>) => boolean) => ServerSideCellEditInput<T>[];
28
28
  export declare const copyTextViaExecCommand: (text: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ishibashi0112/spreadsheet-grid",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "React 19 製のカスタム仮想化データグリッド。100 万行対応の仮想化・3 ペイン固定列・ソート/フィルター・クライアント/サーバーサイド行モデル対応。",
5
5
  "keywords": [
6
6
  "react",