simple-table-core 4.0.4 → 4.0.5
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/cjs/index.js +1 -1
- package/dist/consts/general-consts.d.ts +2 -2
- package/dist/core/SimpleTableVanilla.d.ts +3 -3
- package/dist/core/api/TableAPIImpl.d.ts +6 -6
- package/dist/core/initialization/TableInitializer.d.ts +4 -4
- package/dist/core/rendering/RenderOrchestrator.d.ts +9 -9
- package/dist/core/rendering/SectionRenderer.d.ts +3 -3
- package/dist/core/rendering/TableRenderer.d.ts +8 -8
- package/dist/hooks/contentHeight.d.ts +2 -2
- package/dist/hooks/expandedDepths.d.ts +1 -1
- package/dist/hooks/handleOutsideClick.d.ts +3 -3
- package/dist/hooks/useAggregatedRows.d.ts +2 -2
- package/dist/hooks/useQuickFilter.d.ts +2 -2
- package/dist/index.d.ts +2 -3
- package/dist/index.es.js +1 -1
- package/dist/managers/AutoScaleManager.d.ts +5 -5
- package/dist/managers/ColumnManager.d.ts +12 -12
- package/dist/managers/DimensionManager.d.ts +2 -2
- package/dist/managers/DragHandlerManager.d.ts +20 -20
- package/dist/managers/FilterManager.d.ts +2 -2
- package/dist/managers/PivotManager.d.ts +4 -4
- package/dist/managers/RowManager.d.ts +2 -2
- package/dist/managers/SelectionManager/types.d.ts +3 -3
- package/dist/managers/SortManager.d.ts +2 -2
- package/dist/managers/TableManager.d.ts +4 -4
- package/dist/types/CellChangeProps.d.ts +1 -1
- package/dist/types/CellClickProps.d.ts +1 -1
- package/dist/types/CellRendererProps.d.ts +1 -1
- package/dist/types/{HeaderObject.d.ts → ColumnDef.d.ts} +3 -5
- package/dist/types/ColumnEditorConfig.d.ts +2 -2
- package/dist/types/ColumnEditorCustomRendererProps.d.ts +2 -2
- package/dist/types/ColumnEditorRowRendererProps.d.ts +5 -5
- package/dist/types/ColumnVisibilityTypes.d.ts +1 -1
- package/dist/types/DragHandlerProps.d.ts +6 -6
- package/dist/types/FilterTypes.d.ts +1 -1
- package/dist/types/FlattenedHeader.d.ts +3 -3
- package/dist/types/HandleResizeStartProps.d.ts +5 -5
- package/dist/types/HeaderRendererProps.d.ts +3 -3
- package/dist/types/OnRowGroupExpandProps.d.ts +1 -1
- package/dist/types/OnSortProps.d.ts +1 -1
- package/dist/types/PinnedSectionsState.d.ts +1 -1
- package/dist/types/PivotTypes.d.ts +3 -3
- package/dist/types/QuickFilterTypes.d.ts +1 -1
- package/dist/types/SharedTableProps.d.ts +7 -7
- package/dist/types/SimpleTableConfig.d.ts +24 -16
- package/dist/types/SimpleTableProps.d.ts +19 -58
- package/dist/types/SortColumn.d.ts +2 -2
- package/dist/types/TableAPI.d.ts +4 -4
- package/dist/types/TableBodyProps.d.ts +3 -3
- package/dist/types/TableHeaderProps.d.ts +4 -4
- package/dist/types/TableHeaderSectionProps.d.ts +2 -2
- package/dist/types/TableRow.d.ts +2 -2
- package/dist/types/TableRowProps.d.ts +6 -6
- package/dist/types/UpdateCellProps.d.ts +1 -1
- package/dist/utils/bodyCell/content.d.ts +2 -2
- package/dist/utils/bodyCell/types.d.ts +6 -6
- package/dist/utils/cellClipboardUtils.d.ts +4 -4
- package/dist/utils/cellUtils.d.ts +3 -3
- package/dist/utils/collapseUtils.d.ts +7 -7
- package/dist/utils/columnEditor/columnEditorUtils.d.ts +5 -5
- package/dist/utils/columnEditor/createColumnEditor.d.ts +5 -5
- package/dist/utils/columnEditor/createColumnEditorPopout.d.ts +4 -4
- package/dist/utils/columnEditor/createColumnEditorRow.d.ts +6 -6
- package/dist/utils/columnIndicesUtils.d.ts +4 -4
- package/dist/utils/columnVirtualizationUtils.d.ts +10 -10
- package/dist/utils/csvExportUtils.d.ts +3 -3
- package/dist/utils/filters/createBooleanFilter.d.ts +2 -2
- package/dist/utils/filters/createDateFilter.d.ts +2 -2
- package/dist/utils/filters/createEnumFilter.d.ts +2 -2
- package/dist/utils/filters/createFilterDropdown.d.ts +2 -2
- package/dist/utils/filters/createNumberFilter.d.ts +2 -2
- package/dist/utils/filters/createStringFilter.d.ts +2 -2
- package/dist/utils/footer/createTableFooter.d.ts +1 -1
- package/dist/utils/generalUtils.d.ts +2 -2
- package/dist/utils/headerCell/collapsing.d.ts +2 -2
- package/dist/utils/headerCell/dragging.d.ts +4 -4
- package/dist/utils/headerCell/editing.d.ts +3 -3
- package/dist/utils/headerCell/eventTracking.d.ts +3 -3
- package/dist/utils/headerCell/filtering.d.ts +2 -2
- package/dist/utils/headerCell/resizing.d.ts +2 -2
- package/dist/utils/headerCell/sorting.d.ts +2 -2
- package/dist/utils/headerCell/types.d.ts +13 -13
- package/dist/utils/headerLayoutUtils.d.ts +2 -2
- package/dist/utils/headerUtils.d.ts +5 -5
- package/dist/utils/headerWidthUtils.d.ts +10 -10
- package/dist/utils/horizontalScrollbarRenderer.d.ts +1 -1
- package/dist/utils/infiniteScrollUtils.d.ts +1 -1
- package/dist/utils/normalizeConfig.d.ts +7 -43
- package/dist/utils/pinnedColumnUtils.d.ts +12 -12
- package/dist/utils/pivot/pivotRows.d.ts +4 -4
- package/dist/utils/propSyncEqual.d.ts +1 -1
- package/dist/utils/resizeUtils/autoExpandResize.d.ts +5 -5
- package/dist/utils/resizeUtils/compensation.d.ts +2 -2
- package/dist/utils/resizeUtils/domUpdates.d.ts +3 -3
- package/dist/utils/resizeUtils/index.d.ts +5 -5
- package/dist/utils/resizeUtils/maxWidth.d.ts +3 -3
- package/dist/utils/resizeUtils/parentHeaderResize.d.ts +2 -2
- package/dist/utils/resizeUtils/sectionWidths.d.ts +2 -2
- package/dist/utils/rowFlattening.d.ts +2 -2
- package/dist/utils/rowProcessing.d.ts +2 -2
- package/dist/utils/rowSelectionUtils.d.ts +2 -2
- package/dist/utils/rowUtils.d.ts +2 -2
- package/dist/utils/sortUtils.d.ts +2 -2
- package/dist/utils/stickyParentsRenderer.d.ts +5 -5
- package/package.json +1 -1
|
@@ -12,11 +12,11 @@ export declare const COLUMN_EDIT_WIDTH = 29.5;
|
|
|
12
12
|
* Horizontal space reserved for the built-in column-editor toggle strip.
|
|
13
13
|
* Returns 0 when editing is off or the strip is hidden via `showToggle: false`.
|
|
14
14
|
*/
|
|
15
|
-
export declare const getColumnEditorStripWidth: (
|
|
15
|
+
export declare const getColumnEditorStripWidth: (enableColumnEditor: boolean | undefined, showToggle?: boolean) => number;
|
|
16
16
|
/**
|
|
17
17
|
* Whether the built-in column-editor toggle strip is visible and takes layout space.
|
|
18
18
|
*/
|
|
19
|
-
export declare const isColumnEditorStripVisible: (
|
|
19
|
+
export declare const isColumnEditorStripVisible: (enableColumnEditor: boolean | undefined, showToggle?: boolean) => boolean;
|
|
20
20
|
export declare const TABLE_HEADER_CELL_WIDTH_DEFAULT = 150;
|
|
21
21
|
export declare const PINNED_BORDER_WIDTH = 1;
|
|
22
22
|
export declare const CHART_COLUMN_TYPES: string[];
|
|
@@ -16,10 +16,10 @@ export declare class SimpleTableVanilla {
|
|
|
16
16
|
private headers;
|
|
17
17
|
/**
|
|
18
18
|
* Pristine deep-cloned snapshot of the column definitions as configured
|
|
19
|
-
* (constructor / update with `
|
|
20
|
-
* references with `config.
|
|
19
|
+
* (constructor / update with `columns`). `this.headers` shares object
|
|
20
|
+
* references with `config.columns` at mount, and the column editor
|
|
21
21
|
* mutates header objects in place (e.g. `header.hide = true`) — so
|
|
22
|
-
* `config.
|
|
22
|
+
* `config.columns` drifts with runtime state and cannot serve as the
|
|
23
23
|
* reset target. `resetColumns()` restores from this snapshot instead, giving
|
|
24
24
|
* a well-defined default: every column visible except those explicitly
|
|
25
25
|
* configured with `hide: true` in the definitions.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableAPI } from "../../types/TableAPI";
|
|
2
2
|
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
3
|
-
import
|
|
3
|
+
import ColumnDef, { Accessor } from "../../types/ColumnDef";
|
|
4
4
|
import Row from "../../types/Row";
|
|
5
5
|
import { CustomTheme } from "../../types/CustomTheme";
|
|
6
6
|
import RowState from "../../types/RowState";
|
|
@@ -14,10 +14,10 @@ import type { PivotConfig } from "../../types/PivotTypes";
|
|
|
14
14
|
export interface TableAPIContext {
|
|
15
15
|
config: SimpleTableConfig;
|
|
16
16
|
localRows: Row[];
|
|
17
|
-
effectiveHeaders:
|
|
18
|
-
headers:
|
|
17
|
+
effectiveHeaders: ColumnDef[];
|
|
18
|
+
headers: ColumnDef[];
|
|
19
19
|
/** Pristine snapshot of the configured column definitions (see SimpleTableVanilla.pristineDefaultHeaders). */
|
|
20
|
-
getPristineDefaultHeaders: () =>
|
|
20
|
+
getPristineDefaultHeaders: () => ColumnDef[];
|
|
21
21
|
essentialAccessors: Set<string>;
|
|
22
22
|
customTheme: CustomTheme;
|
|
23
23
|
currentPage: number;
|
|
@@ -64,13 +64,13 @@ export interface TableAPIContext {
|
|
|
64
64
|
* frequency ticks don't spam sort animations.
|
|
65
65
|
*/
|
|
66
66
|
runWithoutAnimationSnapshot?: (fn: () => void) => void;
|
|
67
|
-
setHeaders: (headers:
|
|
67
|
+
setHeaders: (headers: ColumnDef[]) => void;
|
|
68
68
|
setCurrentPage: (page: number) => void;
|
|
69
69
|
setColumnEditorOpen: (open: boolean) => void;
|
|
70
70
|
getEffectiveRowGrouping: () => Accessor[] | undefined;
|
|
71
71
|
setPivot: (config: PivotConfig | null) => void;
|
|
72
72
|
getPivot: () => PivotConfig | null;
|
|
73
|
-
getPivotHeaders: () =>
|
|
73
|
+
getPivotHeaders: () => ColumnDef[];
|
|
74
74
|
getPivotedRows: () => Row[];
|
|
75
75
|
}
|
|
76
76
|
export declare class TableAPIImpl {
|
|
@@ -2,7 +2,7 @@ import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
|
2
2
|
import { CustomTheme } from "../../types/CustomTheme";
|
|
3
3
|
import { ColumnEditorRowRenderer } from "../../types/ColumnEditorRowRendererProps";
|
|
4
4
|
import { ColumnEditorCustomRenderer } from "../../types/ColumnEditorCustomRendererProps";
|
|
5
|
-
import
|
|
5
|
+
import ColumnDef, { Accessor } from "../../types/ColumnDef";
|
|
6
6
|
export interface ResolvedIcons {
|
|
7
7
|
drag: string | HTMLElement | SVGSVGElement;
|
|
8
8
|
expand: string | HTMLElement | SVGSVGElement;
|
|
@@ -20,7 +20,7 @@ export interface MergedColumnEditorConfig {
|
|
|
20
20
|
searchEnabled: boolean;
|
|
21
21
|
searchPlaceholder: string;
|
|
22
22
|
allowColumnPinning: boolean;
|
|
23
|
-
searchFunction?: (header:
|
|
23
|
+
searchFunction?: (header: ColumnDef, searchText: string) => boolean;
|
|
24
24
|
rowRenderer?: ColumnEditorRowRenderer;
|
|
25
25
|
customRenderer?: ColumnEditorCustomRenderer;
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@ export declare class TableInitializer {
|
|
|
28
28
|
static resolveIcons(config: SimpleTableConfig): ResolvedIcons;
|
|
29
29
|
static mergeCustomTheme(config: SimpleTableConfig): CustomTheme;
|
|
30
30
|
static mergeColumnEditorConfig(config: SimpleTableConfig): MergedColumnEditorConfig;
|
|
31
|
-
static buildEssentialAccessors(headers:
|
|
32
|
-
static getInitialCollapsedHeaders(headers:
|
|
31
|
+
static buildEssentialAccessors(headers: ColumnDef[]): Set<string>;
|
|
32
|
+
static getInitialCollapsedHeaders(headers: ColumnDef[]): Set<Accessor>;
|
|
33
33
|
static getInitialExpandedDepths(config: SimpleTableConfig): Set<number>;
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
2
2
|
import { CustomTheme } from "../../types/CustomTheme";
|
|
3
|
-
import
|
|
3
|
+
import ColumnDef, { Accessor } from "../../types/ColumnDef";
|
|
4
4
|
import Row from "../../types/Row";
|
|
5
5
|
import RowState from "../../types/RowState";
|
|
6
6
|
import { DimensionManager } from "../../managers/DimensionManager";
|
|
@@ -33,9 +33,9 @@ export interface RenderContext {
|
|
|
33
33
|
customTheme: CustomTheme;
|
|
34
34
|
dimensionManager: DimensionManager | null;
|
|
35
35
|
draggedHeaderRef: {
|
|
36
|
-
current:
|
|
36
|
+
current: ColumnDef | null;
|
|
37
37
|
};
|
|
38
|
-
effectiveHeaders:
|
|
38
|
+
effectiveHeaders: ColumnDef[];
|
|
39
39
|
essentialAccessors: Set<string>;
|
|
40
40
|
expandedDepths: Set<number>;
|
|
41
41
|
expandedRows: Map<string, number>;
|
|
@@ -43,19 +43,19 @@ export interface RenderContext {
|
|
|
43
43
|
getCollapsedRows: () => Map<string, number>;
|
|
44
44
|
getCollapsedHeaders?: () => Set<Accessor>;
|
|
45
45
|
getExpandedRows: () => Map<string, number>;
|
|
46
|
-
getHeaders: () =>
|
|
46
|
+
getHeaders: () => ColumnDef[];
|
|
47
47
|
/** Pristine snapshot of the configured column definitions — the reset target for the column editor's reset button. */
|
|
48
|
-
getPristineDefaultHeaders: () =>
|
|
48
|
+
getPristineDefaultHeaders: () => ColumnDef[];
|
|
49
49
|
getRowStateMap: () => Map<string | number, RowState>;
|
|
50
50
|
headerRegistry: Map<string, any>;
|
|
51
|
-
headers:
|
|
51
|
+
headers: ColumnDef[];
|
|
52
52
|
/**
|
|
53
53
|
* Unique id for this table instance. Scopes row-hover cell tracking so
|
|
54
54
|
* multiple tables on one page with overlapping rowIds don't cross-hover.
|
|
55
55
|
*/
|
|
56
56
|
hoverScopeId: string;
|
|
57
57
|
hoveredHeaderRef: {
|
|
58
|
-
current:
|
|
58
|
+
current: ColumnDef | null;
|
|
59
59
|
};
|
|
60
60
|
internalIsLoading: boolean;
|
|
61
61
|
isResizing: boolean;
|
|
@@ -96,7 +96,7 @@ export interface RenderContext {
|
|
|
96
96
|
setColumnEditorOpen: (open: boolean) => void;
|
|
97
97
|
setCurrentPage: (page: number) => void;
|
|
98
98
|
setExpandedRows: (rows: Map<string, number>) => void;
|
|
99
|
-
setHeaders: (headers:
|
|
99
|
+
setHeaders: (headers: ColumnDef[]) => void;
|
|
100
100
|
setIsResizing: (value: boolean) => void;
|
|
101
101
|
setRowStateMap: (map: Map<string | number, any>) => void;
|
|
102
102
|
sortManager: SortManager | null;
|
|
@@ -140,7 +140,7 @@ export declare class RenderOrchestrator {
|
|
|
140
140
|
invalidateCache(type?: "body" | "header" | "context" | "all"): void;
|
|
141
141
|
/** @see TableRenderer.invalidateCustomFooterCache */
|
|
142
142
|
invalidateCustomFooterCache(): void;
|
|
143
|
-
computeEffectiveHeaders(headers:
|
|
143
|
+
computeEffectiveHeaders(headers: ColumnDef[], config: SimpleTableConfig, customTheme: CustomTheme, containerWidth?: number): ColumnDef[];
|
|
144
144
|
/**
|
|
145
145
|
* Warms flattened/processed row caches so imperative APIs (e.g. getVisibleRows) are
|
|
146
146
|
* correct before the first ResizeObserver-driven render, without mutating the DOM.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ColumnDef, { Accessor } from "../../types/ColumnDef";
|
|
2
2
|
import { HeaderRenderContext } from "../../utils/headerCellRenderer";
|
|
3
3
|
import { CellRenderContext } from "../../utils/bodyCellRenderer";
|
|
4
4
|
import TableRow from "../../types/TableRow";
|
|
5
5
|
import type { AnimationCoordinator, CellPosition } from "../../managers/AnimationCoordinator";
|
|
6
6
|
export interface HeaderSectionParams {
|
|
7
|
-
headers:
|
|
7
|
+
headers: ColumnDef[];
|
|
8
8
|
collapsedHeaders: Set<Accessor>;
|
|
9
9
|
pinned?: "left" | "right";
|
|
10
10
|
maxHeaderDepth: number;
|
|
@@ -14,7 +14,7 @@ export interface HeaderSectionParams {
|
|
|
14
14
|
startColIndex?: number;
|
|
15
15
|
}
|
|
16
16
|
export interface BodySectionParams {
|
|
17
|
-
headers:
|
|
17
|
+
headers: ColumnDef[];
|
|
18
18
|
rows: TableRow[];
|
|
19
19
|
collapsedHeaders: Set<Accessor>;
|
|
20
20
|
pinned?: "left" | "right";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ColumnDef, { Accessor } from "../../types/ColumnDef";
|
|
2
2
|
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
3
3
|
import { CustomTheme } from "../../types/CustomTheme";
|
|
4
4
|
import { DimensionManager } from "../../managers/DimensionManager";
|
|
@@ -30,9 +30,9 @@ export interface TableRendererDeps {
|
|
|
30
30
|
customTheme: CustomTheme;
|
|
31
31
|
dimensionManager: DimensionManager | null;
|
|
32
32
|
draggedHeaderRef: {
|
|
33
|
-
current:
|
|
33
|
+
current: ColumnDef | null;
|
|
34
34
|
};
|
|
35
|
-
effectiveHeaders:
|
|
35
|
+
effectiveHeaders: ColumnDef[];
|
|
36
36
|
essentialAccessors: Set<string>;
|
|
37
37
|
expandedDepths: Set<number>;
|
|
38
38
|
expandedRows: Map<string, number>;
|
|
@@ -40,16 +40,16 @@ export interface TableRendererDeps {
|
|
|
40
40
|
getCollapsedHeaders?: () => Set<Accessor>;
|
|
41
41
|
getCollapsedRows: () => Map<string, number>;
|
|
42
42
|
getExpandedRows: () => Map<string, number>;
|
|
43
|
-
getHeaders: () =>
|
|
43
|
+
getHeaders: () => ColumnDef[];
|
|
44
44
|
/** Pristine snapshot of the configured column definitions — the reset target for the column editor's reset button. */
|
|
45
|
-
getPristineDefaultHeaders: () =>
|
|
45
|
+
getPristineDefaultHeaders: () => ColumnDef[];
|
|
46
46
|
getRowStateMap: () => Map<string | number, any>;
|
|
47
47
|
headerRegistry: Map<string, any>;
|
|
48
|
-
headers:
|
|
48
|
+
headers: ColumnDef[];
|
|
49
49
|
/** Unique id for this table instance — scopes row-hover cell tracking. */
|
|
50
50
|
hoverScopeId: string;
|
|
51
51
|
hoveredHeaderRef: {
|
|
52
|
-
current:
|
|
52
|
+
current: ColumnDef | null;
|
|
53
53
|
};
|
|
54
54
|
internalIsLoading: boolean;
|
|
55
55
|
isResizing: boolean;
|
|
@@ -86,7 +86,7 @@ export interface TableRendererDeps {
|
|
|
86
86
|
setCollapsedHeaders: (headers: Set<Accessor>) => void;
|
|
87
87
|
setCollapsedRows: (rows: Map<string, number>) => void;
|
|
88
88
|
setExpandedRows: (rows: Map<string, number>) => void;
|
|
89
|
-
setHeaders: (headers:
|
|
89
|
+
setHeaders: (headers: ColumnDef[]) => void;
|
|
90
90
|
setIsResizing: (value: boolean) => void;
|
|
91
91
|
setRowStateMap: (map: Map<string | number, any>) => void;
|
|
92
92
|
sortManager: SortManager | null;
|
|
@@ -2,7 +2,7 @@ export interface ContentHeightConfig {
|
|
|
2
2
|
height?: string | number;
|
|
3
3
|
maxHeight?: string | number;
|
|
4
4
|
rowHeight: number;
|
|
5
|
-
|
|
5
|
+
enablePagination?: boolean;
|
|
6
6
|
rowsPerPage?: number;
|
|
7
7
|
totalRowCount: number;
|
|
8
8
|
headerHeight?: number;
|
|
@@ -25,5 +25,5 @@ export declare const convertHeightToPixels: (heightValue: string | number, conta
|
|
|
25
25
|
* @param config - Configuration for content height calculation
|
|
26
26
|
* @returns The calculated content height in pixels, or undefined to disable virtualization
|
|
27
27
|
*/
|
|
28
|
-
export declare const calculateContentHeight: ({ height, maxHeight, rowHeight,
|
|
28
|
+
export declare const calculateContentHeight: ({ height, maxHeight, rowHeight, enablePagination, rowsPerPage, totalRowCount, headerHeight, footerHeight, externalViewportHeight, }: ContentHeightConfig) => number | undefined;
|
|
29
29
|
export default calculateContentHeight;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ColumnDef from "../types/ColumnDef";
|
|
2
2
|
import Cell from "../types/Cell";
|
|
3
3
|
export interface HandleOutsideClickConfig {
|
|
4
4
|
selectableColumns: boolean;
|
|
@@ -6,8 +6,8 @@ export interface HandleOutsideClickConfig {
|
|
|
6
6
|
selectedColumns: Set<number>;
|
|
7
7
|
setSelectedCells: (cells: Set<string>) => void;
|
|
8
8
|
setSelectedColumns: (columns: Set<number>) => void;
|
|
9
|
-
activeHeaderDropdown?:
|
|
10
|
-
setActiveHeaderDropdown?: (header:
|
|
9
|
+
activeHeaderDropdown?: ColumnDef | null;
|
|
10
|
+
setActiveHeaderDropdown?: (header: ColumnDef | null) => void;
|
|
11
11
|
startCell?: {
|
|
12
12
|
current: Cell | null;
|
|
13
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ColumnDef from "../types/ColumnDef";
|
|
2
2
|
import Row from "../types/Row";
|
|
3
3
|
import { RowManager } from "../managers/RowManager";
|
|
4
4
|
interface CalculateAggregatedRowsProps {
|
|
5
5
|
rows?: Row[];
|
|
6
|
-
headers?:
|
|
6
|
+
headers?: ColumnDef[];
|
|
7
7
|
rowGrouping?: string[];
|
|
8
8
|
rowManager?: RowManager;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { QuickFilterConfig } from "../types/QuickFilterTypes";
|
|
2
2
|
import Row from "../types/Row";
|
|
3
|
-
import
|
|
3
|
+
import ColumnDef from "../types/ColumnDef";
|
|
4
4
|
interface FilterRowsWithQuickFilterProps {
|
|
5
5
|
rows: Row[];
|
|
6
|
-
headers:
|
|
6
|
+
headers: ColumnDef[];
|
|
7
7
|
quickFilter?: QuickFilterConfig;
|
|
8
8
|
}
|
|
9
9
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ import type Cell from "./types/Cell";
|
|
|
3
3
|
import type CellChangeProps from "./types/CellChangeProps";
|
|
4
4
|
import type CellValue from "./types/CellValue";
|
|
5
5
|
import type EnumOption from "./types/EnumOption";
|
|
6
|
-
import type
|
|
7
|
-
import type { Accessor, AutoSizeMode, ChartOptions, ColumnDef, ColumnType, Comparator, ComparatorProps, ExportValueGetter, ExportValueProps, ShowWhen, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps } from "./types/HeaderObject";
|
|
6
|
+
import type { Accessor, AutoSizeMode, ChartOptions, ColumnDef, ColumnType, Comparator, ComparatorProps, ExportValueGetter, ExportValueProps, ShowWhen, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps } from "./types/ColumnDef";
|
|
8
7
|
import type { SimpleTableConfigInput } from "./utils/normalizeConfig";
|
|
9
8
|
import type { AggregationConfig, AggregationType } from "./types/AggregationTypes";
|
|
10
9
|
import type { PivotConfig, PivotValueConfig, PivotResult } from "./types/PivotTypes";
|
|
@@ -53,4 +52,4 @@ export { normalizeConfig, normalizeConfigPatch, normalizeColumnDef, normalizeCol
|
|
|
53
52
|
export { pivotRows, buildPivotAccessor, buildPivotRowTotalAccessor, PIVOT_CHILDREN_KEY, PIVOT_IS_TOTAL_KEY, PIVOT_ACCESSOR_PREFIX, PIVOT_BLANK_LABEL, };
|
|
54
53
|
export { headersStructurallyEqual, collectHeaderAccessors, rowsShallowUnchanged, shallowEqualRow, SHALLOW_ROW_COMPARE_MAX, } from "./utils/propSyncEqual";
|
|
55
54
|
export type { HeaderStructureLike, GetRowIdLike } from "./utils/propSyncEqual";
|
|
56
|
-
export type { Accessor, AggregationConfig, AggregationType, AnimationsConfig, AutoSizeMode, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ChartOptions, ColumnEditorConfig, ColumnEditorCustomRenderer, ColumnEditorCustomRendererProps, ColumnEditorRowRenderer, ColumnEditorRowRendererComponents, ColumnEditorRowRendererProps, ColumnDef, ColumnEditorSearchFunction, ColumnType, ColumnVisibilityState, Comparator, ComparatorProps, CustomTheme, CustomThemeProps, EmptyStateRenderer, EmptyStateRendererProps, EnumOption, ErrorStateRenderer, ErrorStateRendererProps, ExportToCSVProps, ExportValueGetter, ExportValueProps, FilterCondition, FilterOperator, StringFilterOperator, NumberFilterOperator, BooleanFilterOperator, DateFilterOperator, EnumFilterOperator, FooterRendererProps, FooterPosition, GetRowId, GetRowIdParams, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, HeaderDropdown, HeaderDropdownProps,
|
|
55
|
+
export type { Accessor, AggregationConfig, AggregationType, AnimationsConfig, AutoSizeMode, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ChartOptions, ColumnEditorConfig, ColumnEditorCustomRenderer, ColumnEditorCustomRendererProps, ColumnEditorRowRenderer, ColumnEditorRowRendererComponents, ColumnEditorRowRendererProps, ColumnDef, ColumnEditorSearchFunction, ColumnType, ColumnVisibilityState, Comparator, ComparatorProps, CustomTheme, CustomThemeProps, EmptyStateRenderer, EmptyStateRendererProps, EnumOption, ErrorStateRenderer, ErrorStateRendererProps, ExportToCSVProps, ExportValueGetter, ExportValueProps, FilterCondition, FilterOperator, StringFilterOperator, NumberFilterOperator, BooleanFilterOperator, DateFilterOperator, EnumFilterOperator, FooterRendererProps, FooterPosition, GetRowId, GetRowIdParams, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, HeaderDropdown, HeaderDropdownProps, HeaderRenderer, HeaderRendererProps, HeaderRendererComponents, OnRowGroupExpandProps, Pinned, PinnedSectionsState, PivotConfig, PivotValueConfig, PivotResult, QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode, Row, RowButtonProps, RowId, RowSelectionChangeProps, RowSelectionMode, RowState, SetHeaderRenameProps, ShowWhen, SimpleTableConfig, SimpleTableConfigInput, SimpleTableProps, SortColumn, TableAPI, TableFilterState, TableRow, Theme, UpdateDataProps, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps, };
|