simple-table-core 4.0.4 → 4.0.6
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 +15 -3
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type ColumnDef from "../../types/ColumnDef";
|
|
2
2
|
/**
|
|
3
3
|
* Handle resizing of parent headers with multiple children
|
|
4
4
|
*/
|
|
5
5
|
export declare const handleParentHeaderResize: ({ delta, leafHeaders, minWidth, startWidth, maxWidth, }: {
|
|
6
6
|
delta: number;
|
|
7
|
-
leafHeaders:
|
|
7
|
+
leafHeaders: ColumnDef[];
|
|
8
8
|
minWidth: number;
|
|
9
9
|
startWidth: number;
|
|
10
10
|
maxWidth: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type ColumnDef from "../../types/ColumnDef";
|
|
2
2
|
/**
|
|
3
3
|
* Width of the *visible* portion of the main (non-pinned) section: the container
|
|
4
4
|
* width minus the pinned section widths.
|
|
@@ -24,7 +24,7 @@ export declare const getMainSectionViewportWidth: ({ containerWidth, leftWidth,
|
|
|
24
24
|
* Returns both constrained widths (for display) and raw content widths (for scrolling)
|
|
25
25
|
*/
|
|
26
26
|
export declare const recalculateAllSectionWidths: ({ headers, containerWidth, collapsedHeaders, }: {
|
|
27
|
-
headers:
|
|
27
|
+
headers: ColumnDef[];
|
|
28
28
|
containerWidth?: number;
|
|
29
29
|
collapsedHeaders?: Set<string>;
|
|
30
30
|
}) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ColumnDef, { Accessor } from "../types/ColumnDef";
|
|
2
2
|
import Row from "../types/Row";
|
|
3
3
|
import RowState from "../types/RowState";
|
|
4
4
|
import TableRow from "../types/TableRow";
|
|
@@ -16,7 +16,7 @@ export interface FlattenRowsConfig {
|
|
|
16
16
|
hasLoadingRenderer?: boolean;
|
|
17
17
|
hasErrorRenderer?: boolean;
|
|
18
18
|
hasEmptyRenderer?: boolean;
|
|
19
|
-
headers?:
|
|
19
|
+
headers?: ColumnDef[];
|
|
20
20
|
rowHeight?: number;
|
|
21
21
|
headerHeight?: number;
|
|
22
22
|
customTheme?: CustomTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CumulativeHeightMap } from "./infiniteScrollUtils";
|
|
2
|
-
import { Accessor } from "../types/
|
|
2
|
+
import { Accessor } from "../types/ColumnDef";
|
|
3
3
|
import TableRow from "../types/TableRow";
|
|
4
4
|
import { HeightOffsets } from "./infiniteScrollUtils";
|
|
5
5
|
import { CustomTheme } from "../types/CustomTheme";
|
|
@@ -9,7 +9,7 @@ export interface ProcessRowsConfig {
|
|
|
9
9
|
parentEndPositions: number[];
|
|
10
10
|
currentPage: number;
|
|
11
11
|
rowsPerPage: number;
|
|
12
|
-
|
|
12
|
+
enablePagination: boolean;
|
|
13
13
|
serverSidePagination: boolean;
|
|
14
14
|
contentHeight: number | undefined;
|
|
15
15
|
rowHeight: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Row from "../types/Row";
|
|
2
2
|
import TableRow from "../types/TableRow";
|
|
3
|
-
import
|
|
3
|
+
import ColumnDef from "../types/ColumnDef";
|
|
4
4
|
import type { RowSelectionMode } from "../types/RowSelectionMode";
|
|
5
5
|
/**
|
|
6
6
|
* Whether the checkbox / row-buttons column should be injected into headers.
|
|
@@ -59,4 +59,4 @@ export declare const getSelectedRowCount: (selectedRows: Set<string>) => number;
|
|
|
59
59
|
/**
|
|
60
60
|
* Create a selection header for the checkbox column
|
|
61
61
|
*/
|
|
62
|
-
export declare const createSelectionHeader: (width: number) =>
|
|
62
|
+
export declare const createSelectionHeader: (width: number) => ColumnDef;
|
package/dist/utils/rowUtils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import TableRow from "../types/TableRow";
|
|
2
2
|
import Row from "../types/Row";
|
|
3
|
-
import
|
|
3
|
+
import ColumnDef, { Accessor } from "../types/ColumnDef";
|
|
4
4
|
import CellValue from "../types/CellValue";
|
|
5
5
|
import RowState from "../types/RowState";
|
|
6
6
|
import { CustomTheme } from "../types/CustomTheme";
|
|
@@ -180,7 +180,7 @@ export declare const flattenRowsWithGrouping: ({ depth, expandedDepths, expanded
|
|
|
180
180
|
hasLoadingRenderer?: boolean;
|
|
181
181
|
hasErrorRenderer?: boolean;
|
|
182
182
|
hasEmptyRenderer?: boolean;
|
|
183
|
-
headers?:
|
|
183
|
+
headers?: ColumnDef[];
|
|
184
184
|
rowHeight: number;
|
|
185
185
|
headerHeight: number;
|
|
186
186
|
customTheme: CustomTheme;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ColumnDef from "../types/ColumnDef";
|
|
2
2
|
import Row from "../types/Row";
|
|
3
3
|
import SortColumn from "../types/SortColumn";
|
|
4
4
|
export declare const handleSort: ({ headers, rows, sortColumn, }: {
|
|
5
|
-
headers:
|
|
5
|
+
headers: ColumnDef[];
|
|
6
6
|
rows: Row[];
|
|
7
7
|
sortColumn: SortColumn;
|
|
8
8
|
}) => Row[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import TableRow from "../types/TableRow";
|
|
2
|
-
import
|
|
2
|
+
import ColumnDef from "../types/ColumnDef";
|
|
3
3
|
import { CumulativeHeightMap, HeightOffsets } from "./infiniteScrollUtils";
|
|
4
4
|
import type { SectionScrollController } from "../managers/SectionScrollController";
|
|
5
5
|
import { CustomTheme } from "../types/CustomTheme";
|
|
@@ -8,9 +8,9 @@ export interface StickyParentsContainerProps {
|
|
|
8
8
|
calculatedHeaderHeight: number;
|
|
9
9
|
heightMap?: CumulativeHeightMap;
|
|
10
10
|
partiallyVisibleRows: TableRow[];
|
|
11
|
-
pinnedLeftColumns:
|
|
11
|
+
pinnedLeftColumns: ColumnDef[];
|
|
12
12
|
pinnedLeftWidth: number;
|
|
13
|
-
pinnedRightColumns:
|
|
13
|
+
pinnedRightColumns: ColumnDef[];
|
|
14
14
|
pinnedRightWidth: number;
|
|
15
15
|
scrollTop: number;
|
|
16
16
|
scrollbarWidth: number;
|
|
@@ -42,8 +42,8 @@ export interface StickyParentsRenderContext {
|
|
|
42
42
|
collapsedHeaders: Set<string>;
|
|
43
43
|
customTheme: CustomTheme;
|
|
44
44
|
/** True when the column-editor toggle strip is visible and reserves horizontal space. */
|
|
45
|
-
|
|
46
|
-
headers:
|
|
45
|
+
enableColumnEditor: boolean;
|
|
46
|
+
headers: ColumnDef[];
|
|
47
47
|
rowHeight: number;
|
|
48
48
|
heightOffsets: HeightOffsets | undefined;
|
|
49
49
|
cellRenderContext: CellRenderContext;
|