@clickhouse/click-ui 0.0.100 → 0.0.102

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.
@@ -10,7 +10,7 @@ interface RowNumberColumnProps {
10
10
  rounded: RoundedType;
11
11
  showHeader: boolean;
12
12
  scrolledHorizontal: boolean;
13
- rowStart?: number;
13
+ rowStart: number;
14
14
  showBorder: boolean;
15
15
  }
16
16
  declare const RowNumberColumn: ({ minRow, maxRow, rowHeight, headerHeight, rowWidth, getSelectionType, rowCount, rounded, showHeader, scrolledHorizontal, rowStart, showBorder, }: RowNumberColumnProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { CellProps, SelectedRegion, SelectionFocus } from "./types";
2
+ import { RefObject } from "react";
2
3
  interface CopyGridElementsProps {
3
4
  cell: CellProps;
4
5
  selection: SelectedRegion;
@@ -6,6 +7,7 @@ interface CopyGridElementsProps {
6
7
  columnCount: number;
7
8
  pageStart?: number;
8
9
  focus: SelectionFocus;
10
+ outerRef: RefObject<HTMLDivElement>;
9
11
  }
10
- declare const copyGridElements: ({ cell, selection, rowCount, columnCount, pageStart, focus, }: CopyGridElementsProps) => Promise<void>;
12
+ declare const copyGridElements: ({ cell, selection, rowCount, columnCount, pageStart, focus, outerRef, }: CopyGridElementsProps) => Promise<void>;
11
13
  export default copyGridElements;
@@ -104,6 +104,7 @@ export interface ItemDataType {
104
104
  rowHeight: number;
105
105
  headerHeight: number;
106
106
  rowNumberWidth: number;
107
+ rowStart: number;
107
108
  }
108
109
  export interface GridContextMenuItemProps extends Omit<ContextMenuItemProps, "children"> {
109
110
  label: ReactNode;
@@ -13,6 +13,7 @@ interface Props {
13
13
  column?: number;
14
14
  }) => void;
15
15
  selection: SelectedRegion;
16
+ rowStart: number;
16
17
  }
17
18
  interface SelectionActions {
18
19
  getSelectionType: SelectionTypeFn;
@@ -26,5 +27,5 @@ export declare const rectangleSelection: (anchorColumn: number, anchorRow: numbe
26
27
  export declare const emptySelection: () => SelectedRegion;
27
28
  export declare const columnIsSelected: (selection: SelectedRegion, column: number, bounds: Rectangle) => boolean;
28
29
  export declare const rangeIndices: (a: number, b: number) => number[];
29
- export declare const useSelectionActions: ({ onCellSelect, focus, columnCount, rowCount, onFocusChange, scrollGridTo, selection, }: Props) => SelectionActions;
30
+ export declare const useSelectionActions: ({ onCellSelect, focus, columnCount, rowCount, onFocusChange, scrollGridTo, selection, rowStart, }: Props) => SelectionActions;
30
31
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.100",
3
+ "version": "0.0.102",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",