@reportportal/ui-kit 0.0.1-alpha.144 → 0.0.1-alpha.146
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/adaptiveTagList.js +69 -69
- package/dist/autocompletes.js +63 -62
- package/dist/components/dropdown/constants.d.ts +1 -1
- package/dist/components/dropdown/dropdown.d.ts +2 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/table/hooks/index.d.ts +1 -0
- package/dist/components/table/hooks/useColumnResize.d.ts +18 -0
- package/dist/components/table/resizeHandle/index.d.ts +1 -0
- package/dist/components/table/resizeHandle/resizeHandle.d.ts +2 -0
- package/dist/components/table/types.d.ts +4 -0
- package/dist/components/table/utils.d.ts +1 -1
- package/dist/{datePicker-f8e0df24.js → datePicker-eaf5d130.js} +1 -1
- package/dist/datePicker.js +3 -3
- package/dist/dropdown-798def53.js +638 -0
- package/dist/dropdown.js +2 -2
- package/dist/icons.js +38 -37
- package/dist/index.js +136 -134
- package/dist/modal.js +1 -1
- package/dist/{chevronDownDropdown-66f5b1af.js → resizeColumn-d4107941.js} +3 -2
- package/dist/style.css +1 -1
- package/dist/table-a67da002.js +586 -0
- package/dist/table.js +3 -2
- package/package.json +4 -2
- package/dist/dropdown-893c692c.js +0 -634
- package/dist/table-c172f35e.js +0 -504
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { ResizeCallbackData } from 'react-resizable';
|
|
3
|
+
|
|
4
|
+
interface UseColumnResizeProps {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
columnWidthsRef?: MutableRefObject<Map<string, number>>;
|
|
9
|
+
onColumnResize?: (columnKey: string, width: number) => void;
|
|
10
|
+
}
|
|
11
|
+
interface UseColumnResizeReturn {
|
|
12
|
+
columnWidths: Record<string, number>;
|
|
13
|
+
handleResize: (columnKey: string) => (e: React.SyntheticEvent, data: ResizeCallbackData) => void;
|
|
14
|
+
handleResizeStop: (columnKey: string) => () => void;
|
|
15
|
+
handleResizeStart: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const useColumnResize: ({ enabled, minWidth, maxWidth, columnWidthsRef, onColumnResize, }: UseColumnResizeProps) => UseColumnResizeReturn;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResizeHandle } from './resizeHandle';
|
|
@@ -60,9 +60,13 @@ export interface TableComponentProps {
|
|
|
60
60
|
setExpandedRowIds?: Dispatch<SetStateAction<Set<string | number>>>;
|
|
61
61
|
isAllExpandedByDefault?: boolean;
|
|
62
62
|
expandAllTooltip?: ReactNode;
|
|
63
|
+
isResizable?: boolean;
|
|
64
|
+
minColumnWidth?: number;
|
|
65
|
+
maxColumnWidth?: number;
|
|
63
66
|
onChangeSorting?: (sortConfig?: SortConfig) => void;
|
|
64
67
|
onToggleRowSelection?: (id: string | number) => void;
|
|
65
68
|
onToggleAllRowsSelection?: () => void;
|
|
66
69
|
onToggleRowExpansion?: (id: string | number) => void;
|
|
67
70
|
onToggleAllRowsExpansion?: () => void;
|
|
71
|
+
onColumnResize?: (columnKey: string, width: number) => void;
|
|
68
72
|
}
|
|
@@ -9,4 +9,4 @@ export declare const isPrimaryColumn: (column: PrimaryColumn | FixedColumn) => b
|
|
|
9
9
|
export declare const getRowSizeClassName: (rowData: RowData) => string;
|
|
10
10
|
export declare const calculatePinnedPosition: (columnIndex: number, columns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean) => number;
|
|
11
11
|
export declare const getCellStyle: (column: FixedColumn | PrimaryColumn, isPinned: boolean, pinnedIndex: number | undefined, pinnedColumns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean) => CSSProperties;
|
|
12
|
-
export declare const getGridTemplateColumns: (pinnedColumns: (PrimaryColumn | FixedColumn)[], scrollableColumns: (PrimaryColumn | FixedColumn)[], isRowsExpandable: boolean, selectable: boolean, renderRowActions: boolean, isHeader?: boolean) => string;
|
|
12
|
+
export declare const getGridTemplateColumns: (pinnedColumns: (PrimaryColumn | FixedColumn)[], scrollableColumns: (PrimaryColumn | FixedColumn)[], isRowsExpandable: boolean, selectable: boolean, renderRowActions: boolean, isHeader?: boolean, columnWidths?: Record<string, number>) => string;
|
|
@@ -3,7 +3,7 @@ import B from "react-datepicker/dist/es/index.js";
|
|
|
3
3
|
import { c as R } from "./bind-06a7ff84.js";
|
|
4
4
|
import { useMemo as P, useRef as D } from "react";
|
|
5
5
|
import { F as I } from "./fieldText-1749da7a.js";
|
|
6
|
-
import { D as E } from "./dropdown-
|
|
6
|
+
import { D as E } from "./dropdown-798def53.js";
|
|
7
7
|
import { S as T } from "./calendarArrow-44c7e60e.js";
|
|
8
8
|
import { registerLocale as j } from "react-datepicker";
|
|
9
9
|
const ie = (n, s) => {
|
package/dist/datePicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as t } from "./datePicker-
|
|
2
|
-
import { r as E } from "./datePicker-
|
|
1
|
+
import { D as t } from "./datePicker-eaf5d130.js";
|
|
2
|
+
import { r as E } from "./datePicker-eaf5d130.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-datepicker/dist/es/index.js";
|
|
5
5
|
import "./bind-06a7ff84.js";
|
|
@@ -11,7 +11,7 @@ import "./baseIconButton-251479f7.js";
|
|
|
11
11
|
import "./spinLoader-c4a53718.js";
|
|
12
12
|
import "./maxValueDisplay-9be01a75.js";
|
|
13
13
|
import "./fieldLabel.js";
|
|
14
|
-
import "./dropdown-
|
|
14
|
+
import "./dropdown-798def53.js";
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import "@floating-ui/react-dom";
|
|
17
17
|
import "downshift";
|