@ishibashi0112/spreadsheet-grid 0.4.0 → 0.5.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.
@@ -35,7 +35,7 @@ export type GridUiAction = {
35
35
  startX: number;
36
36
  startWidth: number;
37
37
  minWidth: number;
38
- maxWidth: number;
38
+ maxWidth?: number;
39
39
  } | {
40
40
  type: 'column/resizeUpdate';
41
41
  clientX: number;
@@ -77,7 +77,7 @@ export declare const gridActions: {
77
77
  clearSelection: () => GridUiAction;
78
78
  startEdit: (cell: CellCoord) => GridUiAction;
79
79
  stopEdit: () => GridUiAction;
80
- startColumnResize: (columnKey: string, startX: number, startWidth: number, minWidth: number, maxWidth: number) => GridUiAction;
80
+ startColumnResize: (columnKey: string, startX: number, startWidth: number, minWidth: number, maxWidth?: number) => GridUiAction;
81
81
  updateColumnResize: (clientX: number) => GridUiAction;
82
82
  endColumnResize: () => GridUiAction;
83
83
  syncColumnWidths: (widths: Record<string, number>) => GridUiAction;
@@ -148,6 +148,8 @@ export type GridColumn<T> = {
148
148
  maxWidth?: number;
149
149
  flex?: number;
150
150
  resizable?: boolean;
151
+ suppressAutoSize?: boolean;
152
+ estimateCellWidth?: (row: T, column: GridColumn<T>) => number;
151
153
  autoHeight?: boolean;
152
154
  visible?: boolean;
153
155
  editable?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ishibashi0112/spreadsheet-grid",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "React 19 製のカスタム仮想化データグリッド。100 万行対応の仮想化・3 ペイン固定列・ソート/フィルター・クライアント/サーバーサイド行モデル対応。",
5
5
  "keywords": [
6
6
  "react",