schummar-table 0.45.3 → 0.46.1

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,6 +1,6 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { P as PartialTableTheme } from './types-DKqBJ_4v.cjs';
3
+ import { P as PartialTableTheme } from './types-CJnecNQy.cjs';
4
4
  import '@emotion/react';
5
5
  import './exporter-u6SatTo6.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { P as PartialTableTheme } from './types-cAzUt-yT.js';
3
+ import { P as PartialTableTheme } from './types-CIq7O-SN.js';
4
4
  import '@emotion/react';
5
5
  import './exporter-u6SatTo6.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { P as PartialTableTheme } from './types-DKqBJ_4v.cjs';
3
+ import { P as PartialTableTheme } from './types-CJnecNQy.cjs';
4
4
  import '@emotion/react';
5
5
  import './exporter-u6SatTo6.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { P as PartialTableTheme } from './types-cAzUt-yT.js';
3
+ import { P as PartialTableTheme } from './types-CIq7O-SN.js';
4
4
  import '@emotion/react';
5
5
  import './exporter-u6SatTo6.js';
6
6
 
@@ -313,6 +313,16 @@ interface TableProps<TItem> extends PartialTableTheme<TItem> {
313
313
  debugRender?: (...output: any) => void;
314
314
  onReset?: (scope?: 'table' | 'filters') => void;
315
315
  }
316
+ interface TableRef {
317
+ getSort: () => Sort[];
318
+ setSort: (sort: Sort[]) => void;
319
+ getSelection: () => Set<Id>;
320
+ setSelection: (selection: Set<Id>) => void;
321
+ getExpanded: () => Set<Id>;
322
+ setExpanded: (expanded: Set<Id>) => void;
323
+ getHiddenColumns: () => Set<Id>;
324
+ setHiddenColumns: (hidden: Set<Id>) => void;
325
+ }
316
326
  type InternalTableProps<TItem> = MemoizedFunctions<Omit<TableProps<TItem>, 'id' | 'parentId' | 'columns' | 'defaultColumnProps' | 'displaySizeOverrides'> & {
317
327
  id: (item: TItem) => Id;
318
328
  parentId?: (item: TItem) => Id | undefined;
@@ -421,4 +431,4 @@ type FilterImplementation<TItem, TColumnValue, TFilterBy, TFilterValue> = Common
421
431
  test: (filterValue: TFilterValue, value: TFilterBy) => boolean;
422
432
  };
423
433
 
424
- export type { CommonFilterProps as C, FilterImplementation as F, Id as I, MemoizedTableTheme as M, PartialTableTheme as P, Sort as S, TableTheme as T, TableProps as a, TableItem as b, InternalTableState as c, TableStateStorage as d, Column as e, FunctionWithDeps as f, InternalColumn as g, SortDirection as h };
434
+ export type { CommonFilterProps as C, FilterImplementation as F, Id as I, MemoizedTableTheme as M, PartialTableTheme as P, Sort as S, TableTheme as T, TableProps as a, TableRef as b, TableItem as c, InternalTableState as d, TableStateStorage as e, Column as f, FunctionWithDeps as g, InternalColumn as h, SortDirection as i };
@@ -313,6 +313,16 @@ interface TableProps<TItem> extends PartialTableTheme<TItem> {
313
313
  debugRender?: (...output: any) => void;
314
314
  onReset?: (scope?: 'table' | 'filters') => void;
315
315
  }
316
+ interface TableRef {
317
+ getSort: () => Sort[];
318
+ setSort: (sort: Sort[]) => void;
319
+ getSelection: () => Set<Id>;
320
+ setSelection: (selection: Set<Id>) => void;
321
+ getExpanded: () => Set<Id>;
322
+ setExpanded: (expanded: Set<Id>) => void;
323
+ getHiddenColumns: () => Set<Id>;
324
+ setHiddenColumns: (hidden: Set<Id>) => void;
325
+ }
316
326
  type InternalTableProps<TItem> = MemoizedFunctions<Omit<TableProps<TItem>, 'id' | 'parentId' | 'columns' | 'defaultColumnProps' | 'displaySizeOverrides'> & {
317
327
  id: (item: TItem) => Id;
318
328
  parentId?: (item: TItem) => Id | undefined;
@@ -421,4 +431,4 @@ type FilterImplementation<TItem, TColumnValue, TFilterBy, TFilterValue> = Common
421
431
  test: (filterValue: TFilterValue, value: TFilterBy) => boolean;
422
432
  };
423
433
 
424
- export type { CommonFilterProps as C, FilterImplementation as F, Id as I, MemoizedTableTheme as M, PartialTableTheme as P, Sort as S, TableTheme as T, TableProps as a, TableItem as b, InternalTableState as c, TableStateStorage as d, Column as e, FunctionWithDeps as f, InternalColumn as g, SortDirection as h };
434
+ export type { CommonFilterProps as C, FilterImplementation as F, Id as I, MemoizedTableTheme as M, PartialTableTheme as P, Sort as S, TableTheme as T, TableProps as a, TableRef as b, TableItem as c, InternalTableState as d, TableStateStorage as e, Column as f, FunctionWithDeps as g, InternalColumn as h, SortDirection as i };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schummar-table",
3
- "version": "0.45.3",
3
+ "version": "0.46.1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "repository": "schummar/schummar-table",