simple-table-core 3.7.4 → 3.7.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/cjs/src/core/rendering/TableRenderer.d.ts +2 -0
- package/dist/cjs/src/utils/columnEditor/columnEditorUtils.d.ts +13 -0
- package/dist/cjs/src/utils/columnEditor/createColumnEditorRow.d.ts +4 -4
- package/dist/index.es.js +1 -1
- package/dist/src/core/rendering/TableRenderer.d.ts +2 -0
- package/dist/src/utils/columnEditor/columnEditorUtils.d.ts +13 -0
- package/dist/src/utils/columnEditor/createColumnEditorRow.d.ts +4 -4
- package/package.json +1 -1
|
@@ -85,6 +85,8 @@ export interface TableRendererDeps {
|
|
|
85
85
|
export declare class TableRenderer {
|
|
86
86
|
private sectionRenderer;
|
|
87
87
|
private footerInstance;
|
|
88
|
+
private lastCustomFooterRenderer;
|
|
89
|
+
private lastCustomFooterKey;
|
|
88
90
|
private columnEditorInstance;
|
|
89
91
|
private horizontalScrollbarRef;
|
|
90
92
|
private scrollbarTimeoutId;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import HeaderObject, { Accessor } from "../../types/HeaderObject";
|
|
2
2
|
import { ColumnVisibilityState } from "../../types/ColumnVisibilityTypes";
|
|
3
3
|
import { FlattenedHeader } from "../../types/FlattenedHeader";
|
|
4
|
+
import { PanelSection } from "../../types/PanelSection";
|
|
4
5
|
export type { FlattenedHeader };
|
|
6
|
+
/**
|
|
7
|
+
* Tracks which drop separator is currently highlighted during a column-editor
|
|
8
|
+
* drag. The `index` is **section-relative** (matches the per-section
|
|
9
|
+
* `visualIndex`, or `-1` for the separator above the first row), so it must be
|
|
10
|
+
* paired with the `panelSection` it belongs to. Without the section, the same
|
|
11
|
+
* index is ambiguous across the pinned-left / main / pinned-right lists and the
|
|
12
|
+
* divider renders in the wrong section.
|
|
13
|
+
*/
|
|
14
|
+
export type HoveredSeparator = {
|
|
15
|
+
panelSection: PanelSection;
|
|
16
|
+
index: number;
|
|
17
|
+
} | null;
|
|
5
18
|
export declare const findAndMarkParentsVisible: (headers: HeaderObject[], childAccessor: Accessor, visited?: Set<string>) => void;
|
|
6
19
|
export declare const areAllChildrenHidden: (children: HeaderObject[]) => boolean;
|
|
7
20
|
export declare const updateParentHeaders: (headers: HeaderObject[]) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import HeaderObject from "../../types/HeaderObject";
|
|
2
2
|
import { ColumnEditorConfig } from "../../types/ColumnEditorConfig";
|
|
3
3
|
import { IconsConfig } from "../../types/IconsConfig";
|
|
4
|
-
import { FlattenedHeader } from "./columnEditorUtils";
|
|
4
|
+
import { FlattenedHeader, HoveredSeparator } from "./columnEditorUtils";
|
|
5
5
|
import { ColumnVisibilityState } from "../../types/ColumnVisibilityTypes";
|
|
6
6
|
import { PanelSection } from "../pinnedColumnUtils";
|
|
7
7
|
export interface CreateColumnEditorRowOptions {
|
|
@@ -11,17 +11,17 @@ export interface CreateColumnEditorRowOptions {
|
|
|
11
11
|
doesAnyHeaderHaveChildren: boolean;
|
|
12
12
|
draggingRow: FlattenedHeader | null;
|
|
13
13
|
getDraggingRow?: () => FlattenedHeader | null;
|
|
14
|
-
|
|
14
|
+
getHoveredSeparator?: () => HoveredSeparator;
|
|
15
15
|
expandedHeaders: Set<string>;
|
|
16
16
|
flattenedHeaders: FlattenedHeader[];
|
|
17
17
|
forceExpanded: boolean;
|
|
18
18
|
header: HeaderObject;
|
|
19
|
-
|
|
19
|
+
hoveredSeparator: HoveredSeparator;
|
|
20
20
|
panelSection?: PanelSection;
|
|
21
21
|
rowIndex: number;
|
|
22
22
|
setDraggingRow: (row: FlattenedHeader | null) => void;
|
|
23
23
|
setExpandedHeaders: (headers: Set<string>) => void;
|
|
24
|
-
|
|
24
|
+
setHoveredSeparator: (value: HoveredSeparator) => void;
|
|
25
25
|
columnEditorConfig: ColumnEditorConfig;
|
|
26
26
|
/** Resolved table icons; `icons.drag` overrides the default column-editor drag handle. */
|
|
27
27
|
icons?: IconsConfig;
|