gantri-components 2.80.0-beta.2 → 2.80.0-beta.3
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/components/table/components/cell-reorder-wrapper/cell-reorder-wrapper.types.d.ts +2 -1
- package/dist/components/table/hooks/use-drag-and-drop-rows/use-drag-and-drop-rows.d.ts +7 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/components/table/components/cell-reorder-wrapper/cell-reorder-wrapper.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { RowData } from '@tanstack/react-table';
|
|
2
|
+
import { Row, RowData } from '@tanstack/react-table';
|
|
3
3
|
import { RowReorderingProps } from '../../table.types';
|
|
4
4
|
export type CellReorderWrapperProps<TData extends RowData> = PropsWithChildren<{
|
|
5
5
|
FirstColumnContent: JSX.Element | ReactNode;
|
|
@@ -7,4 +7,5 @@ export type CellReorderWrapperProps<TData extends RowData> = PropsWithChildren<{
|
|
|
7
7
|
FirstColumnFallback: JSX.Element | ReactNode;
|
|
8
8
|
index: number;
|
|
9
9
|
reordering: RowReorderingProps<TData> | undefined;
|
|
10
|
+
row?: Row<TData>;
|
|
10
11
|
}>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
2
|
-
import { RowData } from '@tanstack/react-table';
|
|
2
|
+
import { Row, RowData } from '@tanstack/react-table';
|
|
3
3
|
import { UseDragAndDropRowsProps } from './use-drag-and-drop-rows.types';
|
|
4
4
|
export declare const useDragAndDropRows: <TData extends RowData<import("../..").CustomTData>>(props: UseDragAndDropRowsProps<TData>) => {
|
|
5
|
-
|
|
5
|
+
draggingRowId: string | undefined;
|
|
6
|
+
draggingRowIndex: number;
|
|
6
7
|
handleDragEnd: (event: DragEndEvent) => void;
|
|
7
8
|
handleDragStart: (event: DragStartEvent) => void;
|
|
8
9
|
isDragging: boolean;
|
|
9
10
|
sensors: import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
|
|
10
11
|
};
|
|
12
|
+
export declare const flattenTableRows: <TData extends RowData<import("../..").CustomTData>>({ draggingRowId, rows, }: {
|
|
13
|
+
draggingRowId: string | undefined;
|
|
14
|
+
rows: Row<TData>[];
|
|
15
|
+
}) => Row<TData>[];
|