@reportportal/ui-kit 0.0.1-alpha.161 → 0.0.1-alpha.162
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.
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { ResizeCallbackData } from 'react-resizable';
|
|
3
|
+
import { PrimaryColumn, FixedColumn } from '../types';
|
|
3
4
|
|
|
4
5
|
interface UseColumnResizeProps {
|
|
5
6
|
enabled?: boolean;
|
|
6
7
|
minWidth?: number;
|
|
7
8
|
maxWidth?: number;
|
|
9
|
+
columns?: (PrimaryColumn | FixedColumn)[];
|
|
8
10
|
columnWidthsRef?: MutableRefObject<Map<string, number>>;
|
|
9
11
|
onColumnResize?: (columnKey: string, width: number) => void;
|
|
10
12
|
}
|
|
@@ -14,5 +16,5 @@ interface UseColumnResizeReturn {
|
|
|
14
16
|
handleResizeStop: (columnKey: string) => () => void;
|
|
15
17
|
handleResizeStart: () => void;
|
|
16
18
|
}
|
|
17
|
-
export declare const useColumnResize: ({ enabled, minWidth, maxWidth, columnWidthsRef, onColumnResize, }: UseColumnResizeProps) => UseColumnResizeReturn;
|
|
19
|
+
export declare const useColumnResize: ({ enabled, minWidth, maxWidth, columns, columnWidthsRef, onColumnResize, }: UseColumnResizeProps) => UseColumnResizeReturn;
|
|
18
20
|
export {};
|
|
@@ -8,10 +8,14 @@ export interface Column {
|
|
|
8
8
|
export interface PrimaryColumn extends Column {
|
|
9
9
|
primary: boolean;
|
|
10
10
|
width?: string | number;
|
|
11
|
+
minWidth?: number;
|
|
12
|
+
maxWidth?: number;
|
|
11
13
|
}
|
|
12
14
|
export interface FixedColumn extends Column {
|
|
13
15
|
width: string | number;
|
|
14
16
|
align?: 'left' | 'center' | 'right';
|
|
17
|
+
minWidth?: number;
|
|
18
|
+
maxWidth?: number;
|
|
15
19
|
}
|
|
16
20
|
export interface PinnedColumn extends FixedColumn {
|
|
17
21
|
pinned: boolean;
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { S as Co } from "./spinLoader-c4a53718.js";
|
|
|
27
27
|
import { SystemAlert as Fo } from "./systemAlert.js";
|
|
28
28
|
import { S as bo } from "./systemMessage-924fdaa6.js";
|
|
29
29
|
import { DragLayer as Bo, SortableItem as To, SortableList as ho } from "./sortable.js";
|
|
30
|
-
import { T as vo } from "./table-
|
|
30
|
+
import { T as vo } from "./table-5267699a.js";
|
|
31
31
|
import { T as Lo } from "./themeProvider-46c2be7b.js";
|
|
32
32
|
import { T as ko } from "./toggle-304107fa.js";
|
|
33
33
|
import { Tooltip as Eo } from "./tooltip.js";
|