@reportportal/ui-kit 0.0.1-alpha.148 → 0.0.1-alpha.149

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,3 +1,3 @@
1
1
  import { UseSortableOptions, UseSortableReturn } from '../types';
2
2
 
3
- export declare const useSortable: ({ id, index, type, isDisabled, onDrop, hideDefaultPreview, }: UseSortableOptions) => UseSortableReturn;
3
+ export declare const useSortable: ({ id, index, type, isDisabled, isLast, onDrop, hideDefaultPreview, dropDetectionMode, }: UseSortableOptions) => UseSortableReturn;
@@ -8,19 +8,32 @@ export interface SortableItemData {
8
8
  export interface DragItem extends SortableItemData {
9
9
  type: string;
10
10
  }
11
+ export declare const DROP_POSITIONS: {
12
+ readonly TOP: "top";
13
+ readonly BOTTOM: "bottom";
14
+ };
15
+ export type DropPositionValue = (typeof DROP_POSITIONS)[keyof typeof DROP_POSITIONS];
16
+ export type DropPosition = DropPositionValue | null;
17
+ export declare const DROP_DETECTION_MODE: {
18
+ readonly INDEX_BASED: "indexBased";
19
+ readonly HOVER: "hover";
20
+ };
21
+ export type DropDetectionMode = (typeof DROP_DETECTION_MODE)[keyof typeof DROP_DETECTION_MODE];
11
22
  export interface UseSortableOptions {
12
23
  id: string | number;
13
24
  index: number;
14
25
  type?: string;
15
26
  isDisabled?: boolean;
27
+ isLast?: boolean;
16
28
  onDrop?: (fromIndex: number, toIndex: number) => void;
17
29
  hideDefaultPreview?: boolean;
30
+ dropDetectionMode?: DropDetectionMode;
18
31
  }
19
32
  export interface UseSortableReturn {
20
33
  isDragging: boolean;
21
34
  isOver: boolean;
22
35
  draggedItemIndex: number | null;
23
- dropPosition: 'top' | 'bottom' | null;
36
+ dropPosition: DropPosition;
24
37
  dragRef: ConnectDragSource;
25
38
  dropRef: ConnectDropTarget;
26
39
  previewRef: ConnectDragPreview;
@@ -35,11 +48,13 @@ export interface SortableItemProps {
35
48
  index: number;
36
49
  type?: string;
37
50
  isDisabled?: boolean;
51
+ isLast?: boolean;
38
52
  className?: string;
39
53
  draggingClassName?: string;
40
54
  dropTargetClassName?: string;
41
55
  onDrop?: (fromIndex: number, toIndex: number) => void;
42
56
  hideDefaultPreview?: boolean;
57
+ dropDetectionMode?: DropDetectionMode;
43
58
  children: ReactNode | ((props: SortableItemRenderProps) => ReactNode);
44
59
  }
45
60
  export interface SortableListProps<T extends {
package/dist/common.js ADDED
@@ -0,0 +1,11 @@
1
+ const O = {
2
+ TOP: "top",
3
+ BOTTOM: "bottom"
4
+ }, o = {
5
+ INDEX_BASED: "indexBased",
6
+ HOVER: "hover"
7
+ };
8
+ export {
9
+ o as DROP_DETECTION_MODE,
10
+ O as DROP_POSITIONS
11
+ };
@@ -1,4 +1,11 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { XYCoord } from 'react-dnd';
3
+ import { DropPosition } from '../../common/types';
3
4
 
4
5
  export declare const getPreviewStyles: (clientOffset: XYCoord | null) => CSSProperties;
6
+ export declare const calculateCursorBasedDropIndex: ({ fromIndex, targetIndex, isTopZone, }: {
7
+ fromIndex: number;
8
+ targetIndex: number;
9
+ isTopZone: boolean;
10
+ }) => number;
11
+ export declare const getDropZone: (cursorY: number, elementHeight: number) => DropPosition;
@@ -1,3 +1,3 @@
1
1
  import { SortableItemProps } from '../../../common/types';
2
2
 
3
- export declare const SortableItem: ({ id, index, type, isDisabled, className, draggingClassName, dropTargetClassName, onDrop, hideDefaultPreview, children, }: SortableItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const SortableItem: ({ id, index, type, isDisabled, className, draggingClassName, dropTargetClassName, onDrop, hideDefaultPreview, dropDetectionMode, isLast, children, }: SortableItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -57,6 +57,7 @@ export interface TableComponentProps {
57
57
  pinnedColumnKeys?: string[];
58
58
  isRowsExpandable?: boolean;
59
59
  expandedRowIds?: (string | number)[];
60
+ isSelectAllCheckboxAlwaysVisible?: boolean;
60
61
  setExpandedRowIds?: Dispatch<SetStateAction<Set<string | number>>>;
61
62
  isAllExpandedByDefault?: boolean;
62
63
  expandAllTooltip?: ReactNode;
package/dist/index.js CHANGED
@@ -1,48 +1,48 @@
1
- import { AdaptiveTagList as F } from "./adaptiveTagList.js";
2
- import { A as b } from "./index-1a874a8b.js";
3
- import { B as T } from "./baseIconButton-251479f7.js";
4
- import { B } from "./breadcrumbs-8e5ca8d7.js";
5
- import { B as v } from "./bubblesLoader-f3ffa240.js";
6
- import { B as w } from "./button-97d9e587.js";
7
- import { C as R } from "./checkbox-ed6cc375.js";
8
- import { D as E } from "./datePicker-eaf5d130.js";
1
+ import { AdaptiveTagList as D } from "./adaptiveTagList.js";
2
+ import { A as y } from "./index-1a874a8b.js";
3
+ import { B as A } from "./baseIconButton-251479f7.js";
4
+ import { B as h } from "./breadcrumbs-8e5ca8d7.js";
5
+ import { B as M } from "./bubblesLoader-f3ffa240.js";
6
+ import { B as L } from "./button-97d9e587.js";
7
+ import { C as k } from "./checkbox-ed6cc375.js";
8
+ import { D as O } from "./datePicker-eaf5d130.js";
9
9
  import "react-datepicker";
10
- import { D as U } from "./dropdown-798def53.js";
11
- import { FieldLabel as H } from "./fieldLabel.js";
12
- import { F as N } from "./fieldNumber-d1b5a7a1.js";
13
- import { F as W } from "./fieldText-1749da7a.js";
14
- import { F as j } from "./fieldTextFlex-2f51c173.js";
15
- import { FileDropArea as K } from "./fileDropArea.js";
16
- import { FiltersButton as V } from "./filtersButton.js";
17
- import { Modal as Z } from "./modal.js";
18
- import { MultipleAutocomplete as $, SingleAutocomplete as oo } from "./autocompletes.js";
19
- import { P as eo } from "./pagination-a3dee614.js";
20
- import { Popover as ao } from "./popover.js";
21
- import { R as co } from "./radio-62546efa.js";
22
- import { S as io } from "./selection-9124d029.js";
23
- import { S as so } from "./spinLoader-c4a53718.js";
24
- import { SystemAlert as lo } from "./systemAlert.js";
25
- import { S as fo } from "./systemMessage-924fdaa6.js";
26
- import { DragLayer as So, SortableItem as Po, SortableList as Co } from "./sortable.js";
27
- import { T as Fo } from "./table-f1461100.js";
28
- import { T as bo } from "./themeProvider-46c2be7b.js";
29
- import { T as To } from "./toggle-304107fa.js";
30
- import { Tooltip as Bo } from "./tooltip.js";
31
- import { SidePanel as vo } from "./sidePanel.js";
32
- import { AddCsvIcon as wo, AddImageIcon as Lo, AddJarIcon as Ro, BreadcrumbsTreeIcon as ko, CalendarIcon as Eo, CheckmarkIcon as Oo, ChevronRightBreadcrumbsIcon as Uo, ConfigurationIcon as zo, CopyIcon as Ho, CoverageFullIcon as Jo, CoveragePartialIcon as No, CoveredManuallyIcon as Go, DeleteIcon as Wo, DragAndDropIcon as Xo, DragNDropIcon as jo, DurationIcon as qo, EditIcon as Ko, ExportIcon as Qo, FlagIcon as Vo, GroupByIcon as Yo, HideIcon as Zo, LaunchTypeIcon as _o, MaximizeIcon as $o, MoveToFolderIcon as or, PinFilledIcon as rr, PinOutlineIcon as er, PriorityBlockerIcon as tr, PriorityCriticalIcon as ar, PriorityHighIcon as nr, PriorityLowIcon as cr, PriorityMediumIcon as pr, PriorityUnspecifiedIcon as ir, RefreshIcon as mr, RerunIcon as sr, RunManualIcon as Ir, SearchIcon as lr, SortIcon as xr, StatusSuccessIcon as fr, TestPlanIcon as dr, UserIcon as ur, WarningIcon as Sr } from "./icons.js";
33
- import { S as Cr, a as gr, b as Fr, c as Dr } from "./resizeColumn-d4107941.js";
34
- import { S as yr } from "./calendarArrow-44c7e60e.js";
35
- import { S as Ar } from "./clear-53660571.js";
36
- import { S as hr, a as vr } from "./openEye-950159cb.js";
37
- import { S as wr } from "./close-4d480ef7.js";
38
- import { S as Rr, a as kr, b as Er, c as Or, d as Ur, e as zr, f as Hr } from "./xls-995781cc.js";
39
- import { S as Nr } from "./dropdown-0260bb66.js";
40
- import { S as Wr, a as Xr, b as jr } from "./success-8fd8bd2c.js";
41
- import { S as Kr, a as Qr } from "./filterOutline-819b4b0d.js";
42
- import { S as Yr, a as Zr } from "./tree-c3dd3d45.js";
43
- import { S as $r } from "./minus-2857540f.js";
44
- import { S as re } from "./plus-199fb2a8.js";
45
- import { S as te, a as ae } from "./prevPage-87faf576.js";
10
+ import { D as z } from "./dropdown-798def53.js";
11
+ import { FieldLabel as J } from "./fieldLabel.js";
12
+ import { F as G } from "./fieldNumber-d1b5a7a1.js";
13
+ import { F as X } from "./fieldText-1749da7a.js";
14
+ import { F as q } from "./fieldTextFlex-2f51c173.js";
15
+ import { FileDropArea as Q } from "./fileDropArea.js";
16
+ import { FiltersButton as Y } from "./filtersButton.js";
17
+ import { Modal as _ } from "./modal.js";
18
+ import { MultipleAutocomplete as oo, SingleAutocomplete as ro } from "./autocompletes.js";
19
+ import { P as to } from "./pagination-a3dee614.js";
20
+ import { Popover as no } from "./popover.js";
21
+ import { R as po } from "./radio-62546efa.js";
22
+ import { S as mo } from "./selection-9124d029.js";
23
+ import { S as Io } from "./spinLoader-c4a53718.js";
24
+ import { SystemAlert as xo } from "./systemAlert.js";
25
+ import { S as uo } from "./systemMessage-924fdaa6.js";
26
+ import { DragLayer as Po, SortableItem as Co, SortableList as go } from "./sortable.js";
27
+ import { T as Do } from "./table-82d5455c.js";
28
+ import { T as yo } from "./themeProvider-46c2be7b.js";
29
+ import { T as Ao } from "./toggle-304107fa.js";
30
+ import { Tooltip as ho } from "./tooltip.js";
31
+ import { SidePanel as Mo } from "./sidePanel.js";
32
+ import { AddCsvIcon as Lo, AddImageIcon as Ro, AddJarIcon as ko, BreadcrumbsTreeIcon as Eo, CalendarIcon as Oo, CheckmarkIcon as Uo, ChevronRightBreadcrumbsIcon as zo, ConfigurationIcon as Ho, CopyIcon as Jo, CoverageFullIcon as No, CoveragePartialIcon as Go, CoveredManuallyIcon as Wo, DeleteIcon as Xo, DragAndDropIcon as jo, DragNDropIcon as qo, DurationIcon as Ko, EditIcon as Qo, ExportIcon as Vo, FlagIcon as Yo, GroupByIcon as Zo, HideIcon as _o, LaunchTypeIcon as $o, MaximizeIcon as or, MoveToFolderIcon as rr, PinFilledIcon as er, PinOutlineIcon as tr, PriorityBlockerIcon as ar, PriorityCriticalIcon as nr, PriorityHighIcon as cr, PriorityLowIcon as pr, PriorityMediumIcon as ir, PriorityUnspecifiedIcon as mr, RefreshIcon as sr, RerunIcon as Ir, RunManualIcon as lr, SearchIcon as xr, SortIcon as fr, StatusSuccessIcon as dr, TestPlanIcon as ur, UserIcon as Sr, WarningIcon as Pr } from "./icons.js";
33
+ import { S as gr, a as Fr, b as Dr, c as br } from "./resizeColumn-d4107941.js";
34
+ import { S as Tr } from "./calendarArrow-44c7e60e.js";
35
+ import { S as Br } from "./clear-53660571.js";
36
+ import { S as vr, a as Mr } from "./openEye-950159cb.js";
37
+ import { S as Lr } from "./close-4d480ef7.js";
38
+ import { S as kr, a as Er, b as Or, c as Ur, d as zr, e as Hr, f as Jr } from "./xls-995781cc.js";
39
+ import { S as Gr } from "./dropdown-0260bb66.js";
40
+ import { S as Xr, a as jr, b as qr } from "./success-8fd8bd2c.js";
41
+ import { S as Qr, a as Vr } from "./filterOutline-819b4b0d.js";
42
+ import { S as Zr, a as _r } from "./tree-c3dd3d45.js";
43
+ import { S as oe } from "./minus-2857540f.js";
44
+ import { S as ee } from "./plus-199fb2a8.js";
45
+ import { S as ae, a as ne } from "./prevPage-87faf576.js";
46
46
  import "react/jsx-runtime";
47
47
  import "react";
48
48
  import "./bind-06a7ff84.js";
@@ -60,108 +60,109 @@ import "react-dnd";
60
60
  import "react-dnd-html5-backend";
61
61
  import "@floating-ui/react";
62
62
  import "./floatingUi-41f8c7b5.js";
63
+ import "./common.js";
63
64
  import "react-resizable";
64
65
  export {
65
- F as AdaptiveTagList,
66
- wo as AddCsvIcon,
67
- Lo as AddImageIcon,
68
- Ro as AddJarIcon,
69
- Cr as ArrowDownIcon,
70
- gr as ArrowUpIcon,
71
- b as AttachedFile,
72
- T as BaseIconButton,
73
- B as Breadcrumbs,
74
- ko as BreadcrumbsTreeIcon,
75
- v as BubblesLoader,
76
- w as Button,
77
- yr as CalendarArrowIcon,
78
- Eo as CalendarIcon,
79
- R as Checkbox,
80
- Oo as CheckmarkIcon,
81
- Fr as ChevronDownDropdownIcon,
82
- Uo as ChevronRightBreadcrumbsIcon,
83
- Ar as ClearIcon,
84
- hr as CloseEyeIcon,
85
- wr as CloseIcon,
86
- zo as ConfigurationIcon,
87
- Ho as CopyIcon,
88
- Jo as CoverageFullIcon,
89
- No as CoveragePartialIcon,
90
- Go as CoveredManuallyIcon,
91
- Rr as CsvIcon,
92
- E as DatePicker,
93
- Wo as DeleteIcon,
94
- Xo as DragAndDropIcon,
95
- So as DragLayer,
96
- jo as DragNDropIcon,
97
- U as Dropdown,
98
- Nr as DropdownIcon,
99
- qo as DurationIcon,
100
- Ko as EditIcon,
101
- Wr as ErrorIcon,
102
- Qo as ExportIcon,
103
- kr as ExternalLinkIcon,
104
- H as FieldLabel,
105
- N as FieldNumber,
106
- W as FieldText,
107
- j as FieldTextFlex,
108
- K as FileDropArea,
109
- Er as FileOtherIcon,
110
- Kr as FilterFilledIcon,
111
- Qr as FilterOutlineIcon,
112
- V as FiltersButton,
113
- Vo as FlagIcon,
114
- Yo as GroupByIcon,
115
- Zo as HideIcon,
116
- Or as ImageIcon,
117
- Xr as InfoIcon,
118
- Ur as JarIcon,
119
- _o as LaunchTypeIcon,
120
- $o as MaximizeIcon,
121
- Yr as MeatballMenuIcon,
122
- $r as MinusIcon,
123
- Z as Modal,
124
- or as MoveToFolderIcon,
125
- $ as MultipleAutocomplete,
126
- vr as OpenEyeIcon,
127
- eo as Pagination,
128
- zr as PdfIcon,
129
- rr as PinFilledIcon,
130
- er as PinOutlineIcon,
131
- re as PlusIcon,
132
- ao as Popover,
133
- te as PrevChapterIcon,
134
- ae as PrevPageIcon,
135
- tr as PriorityBlockerIcon,
136
- ar as PriorityCriticalIcon,
137
- nr as PriorityHighIcon,
138
- cr as PriorityLowIcon,
139
- pr as PriorityMediumIcon,
140
- ir as PriorityUnspecifiedIcon,
141
- co as Radio,
142
- mr as RefreshIcon,
143
- sr as RerunIcon,
144
- Dr as ResizeColumnIcon,
145
- Ir as RunManualIcon,
146
- lr as SearchIcon,
147
- io as Selection,
148
- vo as SidePanel,
149
- oo as SingleAutocomplete,
150
- xr as SortIcon,
151
- Po as SortableItem,
152
- Co as SortableList,
153
- so as SpinLoader,
154
- fr as StatusSuccessIcon,
155
- jr as SuccessIcon,
156
- lo as SystemAlert,
157
- fo as SystemMessage,
158
- Fo as Table,
159
- dr as TestPlanIcon,
160
- bo as ThemeProvider,
161
- To as Toggle,
162
- Bo as Tooltip,
163
- Zr as TreeIcon,
164
- ur as UserIcon,
165
- Sr as WarningIcon,
166
- Hr as XlsIcon
66
+ D as AdaptiveTagList,
67
+ Lo as AddCsvIcon,
68
+ Ro as AddImageIcon,
69
+ ko as AddJarIcon,
70
+ gr as ArrowDownIcon,
71
+ Fr as ArrowUpIcon,
72
+ y as AttachedFile,
73
+ A as BaseIconButton,
74
+ h as Breadcrumbs,
75
+ Eo as BreadcrumbsTreeIcon,
76
+ M as BubblesLoader,
77
+ L as Button,
78
+ Tr as CalendarArrowIcon,
79
+ Oo as CalendarIcon,
80
+ k as Checkbox,
81
+ Uo as CheckmarkIcon,
82
+ Dr as ChevronDownDropdownIcon,
83
+ zo as ChevronRightBreadcrumbsIcon,
84
+ Br as ClearIcon,
85
+ vr as CloseEyeIcon,
86
+ Lr as CloseIcon,
87
+ Ho as ConfigurationIcon,
88
+ Jo as CopyIcon,
89
+ No as CoverageFullIcon,
90
+ Go as CoveragePartialIcon,
91
+ Wo as CoveredManuallyIcon,
92
+ kr as CsvIcon,
93
+ O as DatePicker,
94
+ Xo as DeleteIcon,
95
+ jo as DragAndDropIcon,
96
+ Po as DragLayer,
97
+ qo as DragNDropIcon,
98
+ z as Dropdown,
99
+ Gr as DropdownIcon,
100
+ Ko as DurationIcon,
101
+ Qo as EditIcon,
102
+ Xr as ErrorIcon,
103
+ Vo as ExportIcon,
104
+ Er as ExternalLinkIcon,
105
+ J as FieldLabel,
106
+ G as FieldNumber,
107
+ X as FieldText,
108
+ q as FieldTextFlex,
109
+ Q as FileDropArea,
110
+ Or as FileOtherIcon,
111
+ Qr as FilterFilledIcon,
112
+ Vr as FilterOutlineIcon,
113
+ Y as FiltersButton,
114
+ Yo as FlagIcon,
115
+ Zo as GroupByIcon,
116
+ _o as HideIcon,
117
+ Ur as ImageIcon,
118
+ jr as InfoIcon,
119
+ zr as JarIcon,
120
+ $o as LaunchTypeIcon,
121
+ or as MaximizeIcon,
122
+ Zr as MeatballMenuIcon,
123
+ oe as MinusIcon,
124
+ _ as Modal,
125
+ rr as MoveToFolderIcon,
126
+ oo as MultipleAutocomplete,
127
+ Mr as OpenEyeIcon,
128
+ to as Pagination,
129
+ Hr as PdfIcon,
130
+ er as PinFilledIcon,
131
+ tr as PinOutlineIcon,
132
+ ee as PlusIcon,
133
+ no as Popover,
134
+ ae as PrevChapterIcon,
135
+ ne as PrevPageIcon,
136
+ ar as PriorityBlockerIcon,
137
+ nr as PriorityCriticalIcon,
138
+ cr as PriorityHighIcon,
139
+ pr as PriorityLowIcon,
140
+ ir as PriorityMediumIcon,
141
+ mr as PriorityUnspecifiedIcon,
142
+ po as Radio,
143
+ sr as RefreshIcon,
144
+ Ir as RerunIcon,
145
+ br as ResizeColumnIcon,
146
+ lr as RunManualIcon,
147
+ xr as SearchIcon,
148
+ mo as Selection,
149
+ Mo as SidePanel,
150
+ ro as SingleAutocomplete,
151
+ fr as SortIcon,
152
+ Co as SortableItem,
153
+ go as SortableList,
154
+ Io as SpinLoader,
155
+ dr as StatusSuccessIcon,
156
+ qr as SuccessIcon,
157
+ xo as SystemAlert,
158
+ uo as SystemMessage,
159
+ Do as Table,
160
+ ur as TestPlanIcon,
161
+ yo as ThemeProvider,
162
+ Ao as Toggle,
163
+ ho as Tooltip,
164
+ _r as TreeIcon,
165
+ Sr as UserIcon,
166
+ Pr as WarningIcon,
167
+ Jr as XlsIcon
167
168
  };