@ishibashi0112/spreadsheet-grid 0.49.0 → 0.51.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.
@@ -1,9 +1,10 @@
1
- import type { SpreadsheetGridSlotContext } from '../model/gridTypes.js';
1
+ import type { GridSelectionAggregates, SpreadsheetGridDerivedSummary } from '../model/gridTypes.js';
2
2
  import type { GridResolvedSlot } from '../model/gridTypes.js';
3
- type DefaultGridBottomBarProps<T> = {
4
- context: SpreadsheetGridSlotContext<T>;
3
+ type DefaultGridBottomBarProps = {
4
+ derivedSummary: SpreadsheetGridDerivedSummary;
5
+ selectionAggregates?: GridSelectionAggregates | null;
5
6
  showCounts?: boolean;
6
7
  slot?: GridResolvedSlot;
7
8
  };
8
- export declare function DefaultGridBottomBar<T>({ context, showCounts, slot, }: DefaultGridBottomBarProps<T>): import("react").JSX.Element;
9
+ export declare function DefaultGridBottomBar({ derivedSummary, selectionAggregates, showCounts, slot, }: DefaultGridBottomBarProps): import("react").JSX.Element;
9
10
  export default DefaultGridBottomBar;
@@ -1,8 +1,10 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { SpreadsheetGridSlotContext } from '../model/gridTypes.js';
2
+ import type { SpreadsheetGridDerivedSummary } from '../model/gridTypes.js';
3
3
  import type { GridResolvedSlot } from '../model/gridTypes.js';
4
- type DefaultGridTopBarProps<T> = {
5
- context: SpreadsheetGridSlotContext<T>;
4
+ type DefaultGridTopBarProps = {
5
+ derivedSummary: SpreadsheetGridDerivedSummary;
6
+ globalFilterText: string;
7
+ setGlobalFilterText: (value: string) => void;
6
8
  showSummary?: boolean;
7
9
  showFilter?: boolean;
8
10
  showCounts?: boolean;
@@ -11,5 +13,5 @@ type DefaultGridTopBarProps<T> = {
11
13
  onFilterSummaryClick?: () => void;
12
14
  slot?: GridResolvedSlot;
13
15
  };
14
- export declare function DefaultGridTopBar<T>({ context, showSummary, showFilter, showCounts, globalFilterPlaceholder, globalFilterIcon, onFilterSummaryClick, slot, }: DefaultGridTopBarProps<T>): import("react").JSX.Element;
16
+ export declare function DefaultGridTopBar({ derivedSummary, globalFilterText, setGlobalFilterText, showSummary, showFilter, showCounts, globalFilterPlaceholder, globalFilterIcon, onFilterSummaryClick, slot, }: DefaultGridTopBarProps): import("react").JSX.Element;
15
17
  export default DefaultGridTopBar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ishibashi0112/spreadsheet-grid",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "description": "React 19 製の仮想化データグリッド。SSRM(書き戻し付き)/ 行グルーピング + 集計 / Master/Detail / 範囲選択 + クリップボードを MIT で。IME に強い編集、100 万行の仮想化、Tailwind / Mantine / HeroUI と共存。コアは @ishibashi0112/spreadsheet-grid-core。",
5
5
  "keywords": [
6
6
  "react",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "@tanstack/virtual-core": "^3.17.0",
72
- "@ishibashi0112/spreadsheet-grid-core": "^0.49.0"
72
+ "@ishibashi0112/spreadsheet-grid-core": "^0.51.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/react": "^19.3.0",