@1771technologies/lytenyte-pro 2.0.3 → 2.0.4-dev.1

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.
Files changed (86) hide show
  1. package/dist/components/select-all.d.ts +1 -1
  2. package/dist/data-source-client/hooks/use-flattened-data.d.ts +1 -1
  3. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/apply-reference-column.d.ts +1 -1
  4. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths.d.ts +1 -1
  5. package/dist/data-source-client/hooks/use-pivot/use-agg-model.d.ts +1 -1
  6. package/dist/data-source-client/hooks/use-pivot/use-pivot-columns.d.ts +1 -1
  7. package/dist/data-source-client/hooks/use-pivot/use-pivot-data.d.ts +1 -1
  8. package/dist/data-source-client/hooks/use-pivot/use-pivot-group-fn.d.ts +1 -1
  9. package/dist/data-source-client/use-client-data-source.d.ts +1 -3
  10. package/dist/index.d.ts +1 -3
  11. package/dist/root/root.d.ts +5 -8
  12. package/dist/root/root.js +5 -83
  13. package/dist/types.d.ts +3 -0
  14. package/package.json +10 -5
  15. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +0 -2
  16. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +0 -43
  17. package/dist/cell-selection/are-rects-equal.d.ts +0 -2
  18. package/dist/cell-selection/are-rects-equal.js +0 -6
  19. package/dist/cell-selection/bound-selection-rect.d.ts +0 -3
  20. package/dist/cell-selection/bound-selection-rect.js +0 -16
  21. package/dist/cell-selection/cell-selection-containers.d.ts +0 -3
  22. package/dist/cell-selection/cell-selection-containers.js +0 -86
  23. package/dist/cell-selection/cell-selection-driver/cell-selection-driver.d.ts +0 -1
  24. package/dist/cell-selection/cell-selection-driver/cell-selection-driver.js +0 -279
  25. package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.d.ts +0 -5
  26. package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.js +0 -34
  27. package/dist/cell-selection/cell-style-row.d.ts +0 -8
  28. package/dist/cell-selection/cell-style-row.js +0 -79
  29. package/dist/cell-selection/data-rect-from-cell-position.d.ts +0 -3
  30. package/dist/cell-selection/data-rect-from-cell-position.js +0 -17
  31. package/dist/cell-selection/deselect-rect-range.d.ts +0 -2
  32. package/dist/cell-selection/deselect-rect-range.js +0 -43
  33. package/dist/cell-selection/expand-selection-down.d.ts +0 -3
  34. package/dist/cell-selection/expand-selection-down.js +0 -78
  35. package/dist/cell-selection/expand-selection-end.d.ts +0 -3
  36. package/dist/cell-selection/expand-selection-end.js +0 -76
  37. package/dist/cell-selection/expand-selection-start.d.ts +0 -3
  38. package/dist/cell-selection/expand-selection-start.js +0 -73
  39. package/dist/cell-selection/expand-selection-up.d.ts +0 -3
  40. package/dist/cell-selection/expand-selection-up.js +0 -74
  41. package/dist/cell-selection/full-width-start-end-index.d.ts +0 -2
  42. package/dist/cell-selection/full-width-start-end-index.js +0 -4
  43. package/dist/cell-selection/get-root-cell.d.ts +0 -3
  44. package/dist/cell-selection/get-root-cell.js +0 -6
  45. package/dist/cell-selection/index.d.ts +0 -11
  46. package/dist/cell-selection/index.js +0 -11
  47. package/dist/cell-selection/is-bottom-rect.d.ts +0 -2
  48. package/dist/cell-selection/is-bottom-rect.js +0 -4
  49. package/dist/cell-selection/is-center-col-rect.d.ts +0 -5
  50. package/dist/cell-selection/is-center-col-rect.js +0 -3
  51. package/dist/cell-selection/is-center-rect.d.ts +0 -2
  52. package/dist/cell-selection/is-center-rect.js +0 -4
  53. package/dist/cell-selection/is-end-rect.d.ts +0 -5
  54. package/dist/cell-selection/is-end-rect.js +0 -3
  55. package/dist/cell-selection/is-fully-within-rect.d.ts +0 -2
  56. package/dist/cell-selection/is-fully-within-rect.js +0 -6
  57. package/dist/cell-selection/is-overlapping-rect.d.ts +0 -2
  58. package/dist/cell-selection/is-overlapping-rect.js +0 -5
  59. package/dist/cell-selection/is-start-rect.d.ts +0 -5
  60. package/dist/cell-selection/is-start-rect.js +0 -3
  61. package/dist/cell-selection/is-top-rect.d.ts +0 -2
  62. package/dist/cell-selection/is-top-rect.js +0 -3
  63. package/dist/cell-selection/is-within-selection-rect.d.ts +0 -2
  64. package/dist/cell-selection/is-within-selection-rect.js +0 -3
  65. package/dist/cell-selection/split-cell-selection-rect.d.ts +0 -41
  66. package/dist/cell-selection/split-cell-selection-rect.js +0 -84
  67. package/dist/cell-selection/update-additive-cell-selection.d.ts +0 -4
  68. package/dist/cell-selection/update-additive-cell-selection.js +0 -21
  69. package/dist/cell-selection/use-edge-scroll.d.ts +0 -6
  70. package/dist/cell-selection/use-edge-scroll.js +0 -71
  71. package/dist/root/context.d.ts +0 -16
  72. package/dist/root/context.js +0 -4
  73. package/dist/root/hooks/use-pro-api.d.ts +0 -2
  74. package/dist/root/hooks/use-pro-api.js +0 -8
  75. package/dist/types/api.d.ts +0 -100
  76. package/dist/types/column.d.ts +0 -73
  77. package/dist/types/column.js +0 -1
  78. package/dist/types/events.d.ts +0 -56
  79. package/dist/types/events.js +0 -1
  80. package/dist/types/grid.d.ts +0 -46
  81. package/dist/types/grid.js +0 -1
  82. package/dist/types/index.d.ts +0 -7
  83. package/dist/types/index.js +0 -1
  84. package/dist/types/props.d.ts +0 -187
  85. package/dist/types/props.js +0 -1
  86. /package/dist/{types/api.js → types.js} +0 -0
@@ -1,100 +0,0 @@
1
- import type { ColumnView, PositionFullWidthRow, PositionGridCell, PositionUnion, RowAggregated, RowGroup, RowLeaf, RowNode, RowSource } from "@1771technologies/lytenyte-shared";
2
- import type { Column } from "./column.js";
3
- import type { GridSpec } from "./grid.js";
4
- import type { Piece, useDraggable, UseDraggableProps } from "@1771technologies/lytenyte-core/internal";
5
- import type { Props } from "./props.js";
6
- type WithId = {
7
- readonly id: string;
8
- };
9
- type RowSourceOmits = "onRowGroupExpansionsChange" | "onRowsUpdated" | "onRowsSelected";
10
- export interface DataRect {
11
- readonly rowStart: number;
12
- readonly rowEnd: number;
13
- readonly columnStart: number;
14
- readonly columnEnd: number;
15
- }
16
- export interface ExportDataRectResult<Spec extends GridSpec = GridSpec> {
17
- readonly headers: string[];
18
- readonly groupHeaders: (string | null)[][];
19
- readonly data: unknown[][];
20
- readonly columns: Column<Spec>[];
21
- }
22
- export type API<Spec extends GridSpec = GridSpec> = {
23
- readonly cellSelections: () => DataRect[];
24
- readonly positionFromElement: (el: HTMLElement) => PositionUnion | null;
25
- readonly xPositions$: Piece<Uint32Array>;
26
- readonly yPositions$: Piece<Uint32Array>;
27
- readonly viewport$: Piece<HTMLElement | null>;
28
- readonly cellRoot: (row: number, column: number) => PositionGridCell | PositionFullWidthRow | null;
29
- readonly columnById: (id: string) => Column<Spec> | null;
30
- readonly columnByIndex: (index: number) => Column<Spec> | null;
31
- readonly columnField: (columnOrId: string | WithId, row: RowNode<Spec["data"]>) => unknown;
32
- readonly columnMove: (params: {
33
- readonly moveColumns: (string | WithId)[];
34
- readonly moveTarget: string | number | WithId;
35
- readonly before?: boolean;
36
- readonly updatePinState?: boolean;
37
- }) => void;
38
- readonly columnResize: (sizes: Record<string, number>) => void;
39
- readonly columnAutosize: (params?: {
40
- readonly dryRun?: boolean;
41
- readonly includeHeader?: boolean;
42
- readonly columns?: (string | number | WithId)[];
43
- }) => Record<string, number>;
44
- readonly columnUpdate: (updates: Record<string, Omit<Partial<Column<Spec>>, "id">>) => void;
45
- readonly columnToggleGroup: (group: string | string[], state?: boolean) => void;
46
- readonly columnView: () => ColumnView;
47
- readonly rowDetailHeight: (rowId: WithId | string) => number;
48
- readonly rowDetailExpanded: (rowOrId: RowNode<Spec["data"]> | string | number) => boolean;
49
- readonly rowDetailToggle: (rowOrId: string | RowNode<Spec["data"]>, state?: boolean) => void;
50
- readonly rowGroupToggle: (rowOrId: RowNode<Spec["data"]> | string, state?: boolean) => void;
51
- readonly rowIsLeaf: (row: RowNode<Spec["data"]>) => row is RowLeaf<Spec["data"]>;
52
- readonly rowIsGroup: (row: RowNode<Spec["data"]>) => row is RowGroup;
53
- readonly rowIsAggregated: (row: RowNode<Spec["data"]>) => row is RowAggregated;
54
- readonly rowIsExpanded: (row: RowNode<Spec["data"]>) => boolean;
55
- readonly rowIsExpandable: (row: RowNode<Spec["data"]>) => boolean;
56
- readonly rowView: () => {
57
- rowCount: number;
58
- topCount: number;
59
- bottomCount: number;
60
- centerCount: number;
61
- };
62
- readonly exportData: (params?: {
63
- readonly rect?: DataRect;
64
- }) => Promise<ExportDataRectResult<Spec>>;
65
- readonly scrollIntoView: (params: {
66
- readonly column?: number | string | WithId;
67
- readonly row?: number;
68
- readonly behavior?: "smooth" | "auto" | "instant";
69
- }) => void;
70
- readonly viewport: () => HTMLElement | null;
71
- readonly editBegin: (params: {
72
- readonly init?: any;
73
- readonly column: WithId | string | number;
74
- readonly rowIndex: number;
75
- readonly focusIfNotEditable?: boolean;
76
- }) => void;
77
- readonly editEnd: (cancel?: boolean) => void;
78
- readonly editIsCellActive: (params: {
79
- readonly column: WithId | string | number;
80
- readonly rowIndex: number;
81
- }) => boolean;
82
- readonly editUpdateRows: (rows: Map<string | number, unknown>) => true | Map<string | number, boolean | Record<string, unknown>>;
83
- readonly editUpdateCells: (cells: Map<string | number, {
84
- value: any;
85
- column: Column<Spec> | string | number;
86
- }[]>) => true | Map<string | number, boolean | Record<string, unknown>>;
87
- readonly rowSelect: (params: {
88
- readonly selected: string | [start: string, end: string] | Set<string> | "all";
89
- readonly deselect?: boolean;
90
- }) => void;
91
- readonly rowHandleSelect: (params: {
92
- readonly target: EventTarget;
93
- readonly shiftKey: boolean;
94
- }) => void;
95
- readonly useRowDrag: (params: Partial<Pick<UseDraggableProps, "data" | "placeholder">> & {
96
- rowIndex: number;
97
- }) => ReturnType<typeof useDraggable>;
98
- readonly props: () => Props<Spec>;
99
- } & Omit<RowSource, RowSourceOmits> & (undefined extends Spec["source"] ? object : Omit<Spec["source"], RowSourceOmits>) & Spec["api"];
100
- export {};
@@ -1,73 +0,0 @@
1
- import type { ReactNode } from "react";
2
- import type { ColumnAbstract, LayoutCell, LayoutFullWidthRow, RowNode } from "@1771technologies/lytenyte-shared";
3
- import type { GridSpec } from "./grid.js";
4
- import type { API } from "./api.js";
5
- export type PathField = {
6
- kind: "path";
7
- path: string;
8
- };
9
- export interface RowParams<Spec extends GridSpec = GridSpec> {
10
- readonly rowIndex: number;
11
- readonly row: RowNode<Spec["data"]>;
12
- readonly api: API<Spec>;
13
- }
14
- export interface RowFullWidthRendererParams<Spec extends GridSpec = GridSpec> extends RowParams<Spec> {
15
- readonly layout: LayoutFullWidthRow;
16
- }
17
- export interface HeaderParams<Spec extends GridSpec = GridSpec> {
18
- readonly column: Column<Spec>;
19
- readonly api: API<Spec>;
20
- }
21
- export interface HeaderGroupParams<Spec extends GridSpec = GridSpec> {
22
- readonly collapsible: boolean;
23
- readonly collapsed: boolean;
24
- readonly groupPath: string[];
25
- readonly columns: Column<Spec>[];
26
- readonly api: API<Spec>;
27
- }
28
- export interface CellParams<Spec extends GridSpec = GridSpec> {
29
- readonly row: RowNode<Spec["data"]>;
30
- readonly column: Column<Spec>;
31
- readonly api: API<Spec>;
32
- }
33
- export interface CellParamsWithIndex<Spec extends GridSpec = GridSpec> extends CellParams<Spec> {
34
- readonly rowIndex: number;
35
- readonly colIndex: number;
36
- }
37
- export interface CellRendererParams<Spec extends GridSpec = GridSpec> extends CellParamsWithIndex<Spec> {
38
- readonly selected: boolean;
39
- readonly indeterminate: boolean;
40
- readonly detailExpanded: boolean;
41
- readonly editData: unknown;
42
- readonly layout: LayoutCell;
43
- }
44
- export interface EditParams<Spec extends GridSpec = GridSpec> extends CellParamsWithIndex<Spec> {
45
- readonly editValue: unknown;
46
- readonly changeValue: (value: unknown) => boolean | Record<string, unknown>;
47
- readonly editData: unknown;
48
- readonly editValidation: boolean | Record<string, unknown>;
49
- readonly changeData: (data: unknown) => boolean | Record<string, unknown>;
50
- readonly commit: () => boolean | Record<string, unknown>;
51
- readonly cancel: () => void;
52
- readonly layout: LayoutCell;
53
- }
54
- export type Field<T> = string | number | PathField | ((params: {
55
- row: RowNode<T>;
56
- }) => unknown);
57
- interface ColumnUnextended<Spec extends GridSpec = GridSpec> extends ColumnAbstract {
58
- readonly field?: Field<Spec["data"]>;
59
- readonly colSpan?: number | ((params: CellParamsWithIndex<Spec>) => number);
60
- readonly rowSpan?: number | ((params: CellParamsWithIndex<Spec>) => number);
61
- readonly autosizeCellFn?: (params: CellParams<Spec>) => number | null | undefined;
62
- readonly autosizeHeaderFn?: (params: HeaderParams<Spec>) => number | null | undefined;
63
- readonly floatingCellRenderer?: (props: HeaderParams<Spec>) => ReactNode;
64
- readonly headerRenderer?: (props: HeaderParams<Spec>) => ReactNode;
65
- readonly cellRenderer?: (props: CellRendererParams<Spec>) => ReactNode;
66
- readonly editOnPrintable?: boolean;
67
- readonly editRenderer?: (props: EditParams<Spec>) => ReactNode;
68
- readonly editable?: boolean | ((params: CellParamsWithIndex<Spec>) => boolean);
69
- readonly editSetter?: (params: Pick<EditParams<Spec>, "api" | "editValue" | "editData" | "row" | "column">) => unknown;
70
- readonly editMutateCommit?: (params: Pick<EditParams<Spec>, "api" | "editData" | "row" | "column">) => void;
71
- }
72
- export type Column<Spec extends GridSpec = GridSpec> = ColumnUnextended<Spec> & Spec["column"];
73
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,56 +0,0 @@
1
- import type { LayoutCell, LayoutFullWidthRow, LayoutHeaderCell, LayoutHeaderFloating, LayoutHeaderGroup, LayoutRowWithCells, RowNode } from "@1771technologies/lytenyte-shared";
2
- import type { Column } from "./column.js";
3
- import type { GridSpec } from "./grid.js";
4
- import type { JSX } from "react";
5
- import type { API } from "./api.js";
6
- export type Events = {
7
- [key in keyof Required<JSX.IntrinsicElements["div"]> as key extends `on${string}` ? key : never]: JSX.IntrinsicElements["div"][key];
8
- };
9
- type CellEvents<Spec extends GridSpec = GridSpec> = {
10
- [key in keyof Required<JSX.IntrinsicElements["div"]> as key extends `on${infer X}` ? Uncapitalize<X> : never]: (params: {
11
- event: Parameters<JSX.IntrinsicElements["div"][key]>[0];
12
- column: Column<Spec>;
13
- row: RowNode<Spec["data"]>;
14
- layout: LayoutCell;
15
- api: API<Spec>;
16
- }) => void;
17
- };
18
- type RowEvents<Spec extends GridSpec = GridSpec> = {
19
- [key in keyof Required<JSX.IntrinsicElements["div"]> as key extends `on${infer X}` ? Uncapitalize<X> : never]: (params: {
20
- event: Parameters<JSX.IntrinsicElements["div"][key]>[0];
21
- row: RowNode<Spec["data"]>;
22
- layout: LayoutRowWithCells | LayoutFullWidthRow;
23
- api: API<Spec>;
24
- }) => void;
25
- };
26
- type HeaderEvents<Spec extends GridSpec = GridSpec> = {
27
- [key in keyof Required<JSX.IntrinsicElements["div"]> as key extends `on${infer X}` ? Uncapitalize<X> : never]: (params: {
28
- event: Parameters<JSX.IntrinsicElements["div"][key]>[0];
29
- layout: LayoutHeaderCell | LayoutHeaderFloating;
30
- column: Column<Spec>;
31
- api: API<Spec>;
32
- }) => void;
33
- };
34
- type HeaderGroupEvents<Spec extends GridSpec = GridSpec> = {
35
- [key in keyof Required<JSX.IntrinsicElements["div"]> as key extends `on${infer X}` ? Uncapitalize<X> : never]: (params: {
36
- event: Parameters<JSX.IntrinsicElements["div"][key]>[0];
37
- layout: LayoutHeaderGroup;
38
- columns: Column<Spec>[];
39
- api: API<Spec>;
40
- }) => void;
41
- };
42
- type ViewportEvents<Spec extends GridSpec = GridSpec> = {
43
- [key in keyof Required<JSX.IntrinsicElements["div"]> as key extends `on${infer X}` ? Uncapitalize<X> : never]: (params: {
44
- event: Parameters<JSX.IntrinsicElements["div"][key]>[0];
45
- viewport: HTMLElement;
46
- api: API<Spec>;
47
- }) => void;
48
- };
49
- export type GridEvents<Spec extends GridSpec = GridSpec> = {
50
- readonly cell?: Partial<CellEvents<Spec>>;
51
- readonly row?: Partial<RowEvents<Spec>>;
52
- readonly headerCell?: Partial<HeaderEvents<Spec>>;
53
- readonly headerGroup?: Partial<HeaderGroupEvents<Spec>>;
54
- readonly viewport?: Partial<ViewportEvents<Spec>>;
55
- };
56
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,46 +0,0 @@
1
- import type { RowSource } from "@1771technologies/lytenyte-shared";
2
- import type { DataRect } from "./api";
3
- import type { CSSProperties } from "react";
4
- export interface GridSpec<Data = unknown, ColExt extends Record<string, any> = object, S extends RowSource<Data> = RowSource, Ext extends Record<string, any> = object> {
5
- readonly data?: Data;
6
- readonly column?: ColExt;
7
- readonly source?: S;
8
- readonly api?: Ext;
9
- }
10
- export interface VirtualTarget {
11
- readonly getBoundingClientRect: () => Omit<DOMRect, "toJSON">;
12
- readonly getClientRects?: () => Omit<DOMRect, "toJSON">[];
13
- readonly contextElement?: HTMLElement;
14
- }
15
- export interface DataRectSplit extends DataRect {
16
- readonly borderTop?: boolean;
17
- readonly borderBottom?: boolean;
18
- readonly borderStart?: boolean;
19
- readonly borderEnd?: boolean;
20
- }
21
- export type GridStyle = {
22
- readonly viewport?: {
23
- readonly style?: CSSProperties;
24
- readonly className?: string;
25
- };
26
- readonly row?: {
27
- readonly style?: CSSProperties;
28
- readonly className?: string;
29
- };
30
- readonly header?: {
31
- readonly style?: CSSProperties;
32
- readonly className?: string;
33
- };
34
- readonly detail?: {
35
- readonly style?: CSSProperties;
36
- readonly className?: string;
37
- };
38
- readonly headerGroup?: {
39
- readonly style?: CSSProperties;
40
- readonly className?: string;
41
- };
42
- readonly cell?: {
43
- readonly style?: CSSProperties;
44
- readonly className?: string;
45
- };
46
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- export type * from "./api.js";
2
- export type * from "./column.js";
3
- export type * from "./grid.js";
4
- export type * from "./props.js";
5
- export type { HavingFilterFn, PivotField, PivotModel, LabelFilter, } from "../data-source-client/use-client-data-source.js";
6
- export type { PivotState } from "../data-source-client/hooks/use-pivot/use-pivot-columns.js";
7
- export type { SortFn, GroupFn, DimensionSort, DimensionAgg, Dimension, FilterFn, AggregationFn, Aggregator, LeafIdFn, GroupIdFn, RowSelectionState, RowSelectionIsolated, RowSelectionLinked, RowSelectNode, RowNode, RowLeaf, RowGroup, RowAggregated, ColumnPin, LayoutCell, LayoutHeader, LayoutHeaderCell, LayoutHeaderGroup, LayoutHeaderFloating, LayoutFullWidthRow, LayoutRow, LayoutRowWithCells, PositionDetailCell, PositionFloatingCell, PositionFullWidthRow, PositionGridCell, PositionGridCellRoot, PositionHeaderCell, PositionHeaderGroupCell, PositionUnion, } from "@1771technologies/lytenyte-shared";
@@ -1 +0,0 @@
1
- export {};
@@ -1,187 +0,0 @@
1
- import type { RowHeight, RowNode } from "@1771technologies/lytenyte-shared";
2
- import type { ReactNode, Ref } from "react";
3
- import type { Column, EditParams, HeaderGroupParams, HeaderParams, RowFullWidthRendererParams, RowParams } from "./column.js";
4
- import type { GridSpec, GridStyle } from "./grid.js";
5
- import type { API, DataRect } from "./api.js";
6
- import type { ViewportShadowsProps } from "@1771technologies/lytenyte-core/components";
7
- import type { GridEvents } from "./events.js";
8
- export type Props<Spec extends GridSpec = GridSpec> = {
9
- readonly cellSelectionMode?: "range" | "multi-range" | "none";
10
- readonly cellSelections?: DataRect[];
11
- readonly cellSelectionExcludeMarker?: boolean;
12
- readonly cellSelectionMaintainOnNonCellPosition?: boolean;
13
- readonly onCellSelectionChange?: (rects: DataRect[]) => void;
14
- readonly columns?: Column<Spec>[] | null;
15
- readonly columnBase?: Omit<Partial<Column<Spec>>, "id" | "pin" | "field" | "editSetter">;
16
- readonly columnMarker?: Omit<Partial<Column<Spec>>, "id" | "field" | "pin"> & {
17
- on?: boolean;
18
- };
19
- readonly columnGroupDefaultExpansion?: boolean;
20
- readonly columnGroupExpansions?: Record<string, boolean>;
21
- readonly columnGroupJoinDelimiter?: string;
22
- readonly columnSizeToFit?: boolean;
23
- readonly columnDoubleClickToAutosize?: boolean;
24
- readonly columnMoveDragPlaceholder?: {
25
- query: string;
26
- offset?: [number, number];
27
- } | string | ((props: HeaderParams<Spec> & {
28
- readonly x: number;
29
- readonly y: number;
30
- readonly outside: boolean;
31
- }) => ReactNode);
32
- readonly columnGroupMoveDragPlaceholder?: {
33
- query: string;
34
- offset?: [number, number];
35
- } | string | ((props: HeaderGroupParams<Spec> & {
36
- readonly x: number;
37
- readonly y: number;
38
- readonly outside: boolean;
39
- }) => ReactNode);
40
- readonly columnGroupRenderer?: (props: HeaderGroupParams<Spec>) => ReactNode;
41
- readonly gridId?: string;
42
- readonly events?: GridEvents<Spec>;
43
- readonly styles?: GridStyle;
44
- readonly rtl?: boolean;
45
- readonly headerHeight?: number;
46
- readonly headerGroupHeight?: number;
47
- readonly floatingRowHeight?: number;
48
- readonly floatingRowEnabled?: boolean;
49
- readonly rowOverscanTop?: number;
50
- readonly rowOverscanBottom?: number;
51
- readonly colOverscanStart?: number;
52
- readonly colOverscanEnd?: number;
53
- readonly virtualizeCols?: boolean;
54
- readonly virtualizeRows?: boolean;
55
- readonly rowAlternateAttr?: boolean;
56
- readonly rowScanDistance?: number;
57
- readonly rowSource?: Spec["source"];
58
- readonly rowHeight?: RowHeight;
59
- readonly rowGroupColumn?: false | Omit<Partial<Column<Spec>>, "field" | "id">;
60
- readonly rowFullWidthPredicate?: null | ((params: RowParams<Spec>) => boolean);
61
- readonly rowFullWidthRenderer?: (props: RowFullWidthRendererParams<Spec>) => ReactNode | null;
62
- readonly rowSelectionMode?: "single" | "multiple" | "none";
63
- readonly rowSelectionActivator?: "single-click" | "double-click" | "none";
64
- readonly rowDetailExpansions?: Set<string>;
65
- readonly rowDetailHeight?: number | "auto";
66
- readonly rowDetailAutoHeightGuess?: number;
67
- readonly rowDetailRenderer?: (props: RowParams<Spec>) => ReactNode | null;
68
- readonly rowDropAccept?: string[];
69
- readonly ref?: Ref<API<Spec>>;
70
- readonly slotShadows?: (props: ViewportShadowsProps) => ReactNode;
71
- readonly slotViewportOverlay?: ((props: {
72
- api: API<Spec>;
73
- }) => ReactNode) | ReactNode;
74
- readonly slotRowsOverlay?: ((props: {
75
- api: API<Spec>;
76
- }) => ReactNode) | ReactNode;
77
- readonly editRowValidatorFn?: (params: Pick<EditParams<Spec>, "api" | "editData" | "row">) => boolean | Record<string, unknown>;
78
- readonly editClickActivator?: "single-click" | "double-click" | "none";
79
- readonly editMode?: "cell" | "row" | "readonly";
80
- readonly onColumnGroupExpansionChange?: (change: Record<string, boolean>) => void;
81
- readonly onRowDetailExpansionsChange?: (change: Set<string>) => void;
82
- readonly onColumnsChange?: (columns: Column<Spec>[]) => void;
83
- readonly onRowGroupColumnChange?: (column: Omit<Column<Spec>, "field" | "id">) => void;
84
- readonly onColumnMoveOutside?: (params: {
85
- readonly api: API<Spec>;
86
- readonly columns: Column<Spec>[];
87
- }) => void;
88
- readonly onEditBegin?: (params: {
89
- readonly api: API<Spec>;
90
- readonly preventDefault: () => void;
91
- readonly row: RowNode<Spec["data"]>;
92
- readonly column: Column<Spec>;
93
- readonly editData: unknown;
94
- }) => void;
95
- readonly onEditEnd?: (params: {
96
- readonly api: API<Spec>;
97
- readonly preventDefault: () => void;
98
- readonly row: RowNode<Spec["data"]>;
99
- readonly column: Column<Spec>;
100
- readonly editData: unknown;
101
- }) => void;
102
- readonly onEditCancel?: (params: {
103
- readonly api: API<Spec>;
104
- readonly row: RowNode<Spec["data"]>;
105
- readonly column: Column<Spec>;
106
- readonly editData: unknown;
107
- }) => void;
108
- readonly onEditFail?: (params: {
109
- readonly api: API<Spec>;
110
- readonly row: RowNode<Spec["data"]>;
111
- readonly column: Column<Spec>;
112
- readonly editData: unknown;
113
- readonly validation: null | Record<string, unknown> | boolean;
114
- }) => void;
115
- readonly onRowSelect?: (params: {
116
- readonly preventDefault: () => void;
117
- readonly api: API<Spec>;
118
- readonly rows: string[] | "all";
119
- readonly deselect: boolean;
120
- }) => void;
121
- readonly onRowDrop?: (params: {
122
- readonly source: {
123
- id: string;
124
- api: API<GridSpec>;
125
- row: RowNode<any>;
126
- rowIndex: number;
127
- data?: any;
128
- };
129
- readonly over: {
130
- kind: "viewport";
131
- id: string;
132
- element: HTMLElement;
133
- api: API<GridSpec>;
134
- } | {
135
- kind: "row";
136
- id: string;
137
- api: API<GridSpec>;
138
- row: RowNode<any>;
139
- rowIndex: number;
140
- element: HTMLElement;
141
- };
142
- }) => void;
143
- readonly onRowDragEnter?: (params: {
144
- readonly source: {
145
- id: string;
146
- api: API<GridSpec>;
147
- row: RowNode<any>;
148
- rowIndex: number;
149
- data?: any;
150
- };
151
- readonly over: {
152
- kind: "viewport";
153
- id: string;
154
- element: HTMLElement;
155
- api: API<GridSpec>;
156
- } | {
157
- kind: "row";
158
- id: string;
159
- api: API<GridSpec>;
160
- row: RowNode<any>;
161
- rowIndex: number;
162
- element: HTMLElement;
163
- };
164
- }) => void;
165
- readonly onRowDragLeave?: (params: {
166
- readonly source: {
167
- id: string;
168
- api: API<GridSpec>;
169
- row: RowNode<any>;
170
- rowIndex: number | null;
171
- data?: any;
172
- };
173
- readonly over: {
174
- kind: "viewport";
175
- id: string;
176
- element: HTMLElement;
177
- api: API<GridSpec>;
178
- } | {
179
- kind: "row";
180
- id: string;
181
- api: API<GridSpec>;
182
- row: RowNode<any>;
183
- rowIndex: number | null;
184
- element: HTMLElement;
185
- };
186
- }) => void;
187
- };
@@ -1 +0,0 @@
1
- export {};
File without changes