simple-table-core 3.0.0 → 3.0.2
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/RenderOrchestrator.d.ts +6 -0
- package/dist/cjs/src/utils/horizontalScrollbarRenderer.d.ts +5 -0
- package/dist/cjs/stories/tests/13-ColumnResizeTests.stories.d.ts +12 -0
- package/dist/index.es.js +1 -1
- package/dist/src/core/rendering/RenderOrchestrator.d.ts +6 -0
- package/dist/src/utils/horizontalScrollbarRenderer.d.ts +5 -0
- package/dist/stories/tests/13-ColumnResizeTests.stories.d.ts +12 -0
- package/package.json +1 -1
|
@@ -97,6 +97,12 @@ export declare class RenderOrchestrator {
|
|
|
97
97
|
getLastProcessedResult(): ProcessRowsResult | null;
|
|
98
98
|
invalidateCache(type?: "body" | "header" | "context" | "all"): void;
|
|
99
99
|
computeEffectiveHeaders(headers: HeaderObject[], config: SimpleTableConfig, customTheme: CustomTheme, containerWidth?: number): HeaderObject[];
|
|
100
|
+
/**
|
|
101
|
+
* Warms flattened/processed row caches so imperative APIs (e.g. getVisibleRows) are
|
|
102
|
+
* correct before the first ResizeObserver-driven render, without mutating the DOM.
|
|
103
|
+
*/
|
|
104
|
+
primeLastProcessedResult(context: RenderContext, state: RenderState): void;
|
|
105
|
+
private buildRowModelSnapshot;
|
|
100
106
|
render(elements: {
|
|
101
107
|
bodyContainer: HTMLElement;
|
|
102
108
|
content: HTMLElement;
|
|
@@ -11,4 +11,9 @@ export interface HorizontalScrollbarProps {
|
|
|
11
11
|
sectionScrollController?: SectionScrollController | null;
|
|
12
12
|
}
|
|
13
13
|
export declare const createHorizontalScrollbar: (props: HorizontalScrollbarProps) => HTMLElement | null;
|
|
14
|
+
/**
|
|
15
|
+
* Apply width props to an existing scrollbar from {@link createHorizontalScrollbar}.
|
|
16
|
+
* Used when layout is recreated without tearing down the DOM node (e.g. pinned resize).
|
|
17
|
+
*/
|
|
18
|
+
export declare const syncHorizontalScrollbarLayout: (container: HTMLElement, props: HorizontalScrollbarProps) => void;
|
|
14
19
|
export declare const cleanupHorizontalScrollbar: (container: HTMLElement, sectionScrollController?: SectionScrollController | null) => void;
|
|
@@ -63,6 +63,18 @@ export declare const DoubleClickResizeHandleAutoFit: {
|
|
|
63
63
|
canvasElement: HTMLElement;
|
|
64
64
|
}) => Promise<void>;
|
|
65
65
|
};
|
|
66
|
+
/** Bottom horizontal track left segment should stay aligned with the pinned-left body width. */
|
|
67
|
+
export declare const PinnedResizeSyncsHorizontalScrollbar: {
|
|
68
|
+
parameters: {
|
|
69
|
+
tags: string[];
|
|
70
|
+
};
|
|
71
|
+
render: () => HTMLDivElement & {
|
|
72
|
+
_table?: SimpleTableVanilla | undefined;
|
|
73
|
+
};
|
|
74
|
+
play: ({ canvasElement }: {
|
|
75
|
+
canvasElement: HTMLElement;
|
|
76
|
+
}) => Promise<void>;
|
|
77
|
+
};
|
|
66
78
|
export declare const ResizeLeftPinnedColumn: {
|
|
67
79
|
render: () => HTMLDivElement & {
|
|
68
80
|
_table?: SimpleTableVanilla | undefined;
|