@gitkraken/gitkraken-components 10.2.5 → 10.2.7
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/graph/GraphContainer.d.ts +9 -3
- package/dist/components/graph/common/ScrollbarContainer.d.ts +7 -1
- package/dist/components/graph/refzone/Icon.d.ts +2 -1
- package/dist/components/graph/refzone/RefName.d.ts +2 -1
- package/dist/components/graph/refzone/RefNode.d.ts +3 -0
- package/dist/components/graph/refzone/RefNodes.d.ts +4 -1
- package/dist/components/graph/refzone/RefZone.d.ts +3 -0
- package/dist/components/graph/rowRenderers/RefZoneRow.d.ts +2 -1
- package/dist/components/graph/shared/Avatar.d.ts +1 -0
- package/dist/domain/graph/GraphConstants.d.ts +1 -0
- package/dist/domain/graph/GraphHelpers.d.ts +3 -0
- package/dist/domain/ref/RefConstants.d.ts +4 -0
- package/dist/domain/ref/RefTypes.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import type { GraphCommitDescDisplayMode, GraphMarkerType, GraphZone, GraphZoneT
|
|
|
8
8
|
import type { ThrottledFn } from '../../domain/graph/GraphHelpers';
|
|
9
9
|
import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, FormatCommitMessage, FormatRefShorthand, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsRefShorthandValid, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFilterColumnClick, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefShorthandChange, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnSettingsClick, OnToggleRefNodesShown, OnWipMessageBlur, OnWipMessageFocus, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStats, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
|
|
10
10
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
11
|
-
import type { CreateRefFormData } from '../../domain/ref/RefTypes';
|
|
11
|
+
import type { CreateRefFormData, RefIconsPosition } from '../../domain/ref/RefTypes';
|
|
12
12
|
import type { OnBlur, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
|
|
13
13
|
import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
|
|
14
14
|
import type { IGraphContainer } from './IGraphContainer';
|
|
@@ -73,6 +73,7 @@ export interface StateProps {
|
|
|
73
73
|
isLoadingRows?: boolean;
|
|
74
74
|
pendingCommitMessageSummary?: string;
|
|
75
75
|
refMetadataById?: RefMetadataById | null;
|
|
76
|
+
refIconsPosition?: RefIconsPosition | null;
|
|
76
77
|
repoPath?: string;
|
|
77
78
|
columnsSettings?: GraphColumnsSettings;
|
|
78
79
|
themeOpacityFactor?: number;
|
|
@@ -115,7 +116,7 @@ export interface DispatchProps {
|
|
|
115
116
|
onSettingsClick?: OnSettingsClick;
|
|
116
117
|
onSelectGraphRows?: OnSelectGraphRows;
|
|
117
118
|
onScrollForZone?: OnGraphScrollForZone;
|
|
118
|
-
|
|
119
|
+
onScrollToRowCausedUpdateForFirstColumn?: OnGraphScrollForZone;
|
|
119
120
|
onShowMoreCommits?: OnShowMoreCommits;
|
|
120
121
|
onGraphResized?: OnGraphResized;
|
|
121
122
|
onGraphVisibleRowsChanged?: OnGraphVisibleRowsChanged;
|
|
@@ -154,6 +155,7 @@ type ComponentState = {
|
|
|
154
155
|
numGraphColumns: number;
|
|
155
156
|
pendingCommitMessageSummary: string;
|
|
156
157
|
processedRows: ProcessedGraphRow[];
|
|
158
|
+
refIconsPosition: RefIconsPosition;
|
|
157
159
|
refMetadataById?: RefMetadataById | null;
|
|
158
160
|
rowsStats?: Record<string, RowStats>;
|
|
159
161
|
rowsStatsLoading: boolean;
|
|
@@ -179,6 +181,7 @@ type HasMergeNodeChildBySha = {
|
|
|
179
181
|
declare class GraphContainer extends React.Component<Props, ComponentState> implements IGraphContainer {
|
|
180
182
|
graphContainerRef: any;
|
|
181
183
|
resizeObserver: ResizeObserver;
|
|
184
|
+
isMounted: boolean;
|
|
182
185
|
isSelectedBySha: IsSelectedBySha;
|
|
183
186
|
processedGraphRowBySha: ProcessedGraphRowBySha;
|
|
184
187
|
childrenBySha: ChildrenBySha;
|
|
@@ -225,6 +228,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
225
228
|
componentDidMount(): void;
|
|
226
229
|
componentWillReceiveProps(nextProps: Props): void;
|
|
227
230
|
componentWillUnmount(): void;
|
|
231
|
+
getRefIconsPositionOrDefault(refIconsPosition?: RefIconsPosition | null): RefIconsPosition;
|
|
228
232
|
onGraphVisibleRowsUpdatedThrottled: ThrottledFn;
|
|
229
233
|
onBlurWipNodeInput: OnWipMessageBlur;
|
|
230
234
|
onDoubleClickRef: OnDoubleClickRef;
|
|
@@ -264,7 +268,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
264
268
|
onShowMoreCommits: OnShowMoreCommits;
|
|
265
269
|
onScrollForZone: OnScrollForZone;
|
|
266
270
|
loadMoreCommitsIfNecessary(graphHeight: number, hasMoreCommits: boolean): void;
|
|
267
|
-
|
|
271
|
+
onScrollToRowCausedUpdateForFirstColumn: OnScrollForZone;
|
|
268
272
|
onCommitContextMenu: OnCommitContextMenu;
|
|
269
273
|
onRefContextMenu: OnRefZoneContextMenu;
|
|
270
274
|
selectCommits(shas: Sha[], includeToPrevSel: boolean, isAutoOrKeyScroll: boolean): void;
|
|
@@ -340,6 +344,8 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
340
344
|
updateRowStatsConstraints(): void;
|
|
341
345
|
updateTimelines(): void;
|
|
342
346
|
clearTimelines(): void;
|
|
347
|
+
clearTimelinesInterval(): void;
|
|
348
|
+
onTimelinesRefreshInterval: () => void;
|
|
343
349
|
cleanupSelections(): void;
|
|
344
350
|
getColumnColorByColumn(cssVariables: CssVariables): ColumnColorByColumn;
|
|
345
351
|
getNumGraphColumns(cssVariables: CssVariables): number;
|
|
@@ -15,7 +15,8 @@ export type Props = {
|
|
|
15
15
|
displayHorizontalScrollbar?: boolean;
|
|
16
16
|
displayVerticalScrollbar?: boolean;
|
|
17
17
|
forceHorizontalScrollbar?: boolean;
|
|
18
|
-
|
|
18
|
+
forceOnHorizontalWheel?: boolean;
|
|
19
|
+
forceOnVerticalWheel?: boolean;
|
|
19
20
|
forceVerticalScrollbar?: boolean;
|
|
20
21
|
height?: number;
|
|
21
22
|
onScroll?: ((params: ScrollParams) => any) | undefined;
|
|
@@ -24,16 +25,21 @@ export type Props = {
|
|
|
24
25
|
width?: number;
|
|
25
26
|
};
|
|
26
27
|
declare class ScrollbarContainer extends React.PureComponent<Props> {
|
|
28
|
+
resizeObserver: ResizeObserver;
|
|
29
|
+
scrollbarContainerRef: React.RefObject<any>;
|
|
27
30
|
horizontalScrollRef: React.RefObject<any>;
|
|
28
31
|
scrollabbleContentRef: React.RefObject<any>;
|
|
29
32
|
verticalScrollRef: React.RefObject<any>;
|
|
30
33
|
outerHorizontalScrollRef: React.RefObject<any>;
|
|
34
|
+
constructor(props: Props);
|
|
31
35
|
updateScrollbarValues(scrollLeft?: number, scrollTop?: number): void;
|
|
32
36
|
componentDidUpdate(prevProps: Props): void;
|
|
33
37
|
onHorizontalScroll(event: any): void;
|
|
34
38
|
onVerticalScroll(event: any): void;
|
|
35
39
|
onWheel(event: React.WheelEvent): void;
|
|
36
40
|
componentDidMount(): void;
|
|
41
|
+
componentWillUnmount(): void;
|
|
42
|
+
onContainerResized: import("../../../domain/graph/GraphHelpers").DebouncedFn;
|
|
37
43
|
hasHorizontalScroll(): boolean;
|
|
38
44
|
hasVerticalScroll(): boolean;
|
|
39
45
|
getHorizontalScrollbarTickness(): number;
|
|
@@ -14,6 +14,7 @@ type IssueProps = {
|
|
|
14
14
|
getExternalIcon: GetExternalIcon;
|
|
15
15
|
};
|
|
16
16
|
type RefIconProps = {
|
|
17
|
+
avatarClassName?: string;
|
|
17
18
|
avatarUrl?: string;
|
|
18
19
|
context: GraphItemContext | null;
|
|
19
20
|
icon: ReactElement<any>;
|
|
@@ -35,5 +36,5 @@ export declare function Icon({ icon, tooltipClassName, tooltipId, tooltipText }:
|
|
|
35
36
|
export declare function IssueIcon({ id, toolTipText, getExternalIcon, issueTrackerType, }: IssueProps): ReactElement<typeof Icon>;
|
|
36
37
|
export declare function PullRequestIcon({ hostingServiceType, icon, id, toolTipText, }: PullRequestProps): ReactElement<typeof Icon>;
|
|
37
38
|
export declare function UpstreamIndicatorIcon({ icon, type, upstream, tooltipText, }: UpStreamIndicatorProps): ReactElement<typeof Icon>;
|
|
38
|
-
export declare function RefIcon({ avatarUrl, context, icon, tooltipText }: RefIconProps): ReactElement<typeof Icon>;
|
|
39
|
+
export declare function RefIcon({ avatarClassName, avatarUrl, context, icon, tooltipText, }: RefIconProps): ReactElement<typeof Icon>;
|
|
39
40
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
export type RefNameProps = {
|
|
3
|
+
className?: string;
|
|
3
4
|
name: string;
|
|
4
5
|
};
|
|
5
|
-
declare function RefName({ name }: RefNameProps): ReactElement<'span'>;
|
|
6
|
+
declare function RefName({ className, name }: RefNameProps): ReactElement<'span'>;
|
|
6
7
|
export default RefName;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
|
|
4
4
|
import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRef, GraphRefGroup, OnClickRef, OnClickRefMetadata, OnDoubleClickRef, OnDoubleClickRefMetadata, OnHideRefClick, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefZoneContextMenu, RefMetadataById, RefMetadataItem, RefMetadataType } from '../../../domain/graph/GraphTypes';
|
|
5
5
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
6
|
+
import type { RefIconsPosition } from '../../../domain/ref/RefTypes';
|
|
6
7
|
import type { OnClick, OnContextMenu, OnDoubleClick } from '../../../domain/ui/UiTypes';
|
|
7
8
|
type RefNodeProps = {
|
|
8
9
|
enableShowHideRefsOptions: boolean;
|
|
@@ -29,12 +30,14 @@ type RefNodeProps = {
|
|
|
29
30
|
onHideRefClick: OnHideRefClick;
|
|
30
31
|
refGroup: GraphRefGroup;
|
|
31
32
|
refGroupContext: GraphItemContext | null;
|
|
33
|
+
refIconsPosition: RefIconsPosition;
|
|
32
34
|
refMetadata: RefMetadataById | null;
|
|
33
35
|
sha: Sha;
|
|
34
36
|
showRemoteNamesOnRefs: boolean;
|
|
35
37
|
enabledRefMetadataTypes: RefMetadataType[];
|
|
36
38
|
translate: TranslationFn;
|
|
37
39
|
type: CommitType;
|
|
40
|
+
useColumnHeaderIcons: boolean;
|
|
38
41
|
};
|
|
39
42
|
export declare function getRefIconAndTooltipForRef(getExternalIcon: GetExternalIcon, ref: GraphRef, translate: TranslationFn, index?: number): ReactElement<any>;
|
|
40
43
|
export default class RefNode extends React.PureComponent<RefNodeProps> {
|
|
@@ -2,6 +2,7 @@ import type { ReactElement } from 'react';
|
|
|
2
2
|
import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
|
|
3
3
|
import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, IncludeOnlyRefsById, IncludeOnlyRemotesByName, OnClickRef, OnDoubleClickRef, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefZoneContextMenu, OnToggleRefNodesShown, GraphRefGroup as RefGroup, RefGroupContexts, RefMetadataById, RefMetadataType, RefTargetFunc } from '../../../domain/graph/GraphTypes';
|
|
4
4
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
5
|
+
import type { RefIconsPosition } from '../../../domain/ref/RefTypes';
|
|
5
6
|
type RefNodesProps = {
|
|
6
7
|
onDoubleClickRef: OnDoubleClickRef;
|
|
7
8
|
enabledRefMetadataTypes: RefMetadataType[];
|
|
@@ -22,6 +23,7 @@ type RefNodesProps = {
|
|
|
22
23
|
onMissingRefMetadata: GetMissingRefMetadata;
|
|
23
24
|
refGroupContexts: RefGroupContexts | null;
|
|
24
25
|
refGroupsByName: RefGroup[];
|
|
26
|
+
refIconsPosition: RefIconsPosition;
|
|
25
27
|
refMetadata: RefMetadataById | null;
|
|
26
28
|
refNodeHovered: OnRefNodeHovered;
|
|
27
29
|
onToggleRefNodesShown: OnToggleRefNodesShown;
|
|
@@ -37,6 +39,7 @@ type RefNodesProps = {
|
|
|
37
39
|
showContextMenuForGroupedRef: OnRefZoneContextMenu;
|
|
38
40
|
translate: TranslationFn;
|
|
39
41
|
type: CommitType;
|
|
42
|
+
useColumnHeaderIcons: boolean;
|
|
40
43
|
};
|
|
41
|
-
declare function RefNodes({ enabledRefMetadataTypes, column, context, enableShowHideRefsOptions, getTargetRef, hasActive, hasRefs, getExternalIcon, includeOnlyRefsById, includeOnlyRemotesByName, isGhostRef, isHovered, isInUnsupportedRebase, numGraphColumns, onMissingRefMetadata, refGroupContexts, refGroupsByName, refMetadata, refNodeHovered, sha, showRemoteNamesOnRefs, showContextMenuForGroupedRef, onClickRef, onDoubleClickRef, onToggleRefNodesShown, onRefBeginDrag, onRefCanDrag, onRefCanDrop, onRefDragEnter, onRefDragLeave, onRefDrop, onRefEndDrag, translate, type, }: RefNodesProps): ReactElement<'span' | 'div'>;
|
|
44
|
+
declare function RefNodes({ enabledRefMetadataTypes, column, context, enableShowHideRefsOptions, getTargetRef, hasActive, hasRefs, getExternalIcon, includeOnlyRefsById, includeOnlyRemotesByName, isGhostRef, isHovered, isInUnsupportedRebase, numGraphColumns, onMissingRefMetadata, refGroupContexts, refGroupsByName, refIconsPosition, refMetadata, refNodeHovered, sha, showRemoteNamesOnRefs, showContextMenuForGroupedRef, onClickRef, onDoubleClickRef, onToggleRefNodesShown, onRefBeginDrag, onRefCanDrag, onRefCanDrop, onRefDragEnter, onRefDragLeave, onRefDrop, onRefEndDrag, translate, type, useColumnHeaderIcons, }: RefNodesProps): ReactElement<'span' | 'div'>;
|
|
42
45
|
export default RefNodes;
|
|
@@ -4,6 +4,7 @@ import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
|
|
|
4
4
|
import type { Style } from '../../../domain/generic/GenericTypes';
|
|
5
5
|
import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRefGroup, IncludeOnlyRefsById, IncludeOnlyRemotesByName, OnClickRef, OnDoubleClickRef, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefGroupContexts, RefMetadataById, RefMetadataType, RefTargetFunc } from '../../../domain/graph/GraphTypes';
|
|
6
6
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
7
|
+
import type { RefIconsPosition } from '../../../domain/ref/RefTypes';
|
|
7
8
|
type RefZoneDefaultProps = {
|
|
8
9
|
style: Style;
|
|
9
10
|
};
|
|
@@ -37,6 +38,7 @@ type RefZoneProps = {
|
|
|
37
38
|
onRefEndDrag: OnRefEndDrag;
|
|
38
39
|
refGroupContexts: RefGroupContexts | null;
|
|
39
40
|
refGroupsByName: GraphRefGroup[];
|
|
41
|
+
refIconsPosition: RefIconsPosition;
|
|
40
42
|
refMetadata: RefMetadataById | null;
|
|
41
43
|
refNodeHovered: OnRefNodeHovered;
|
|
42
44
|
refNodeUnhovered: OnRefNodeUnhovered;
|
|
@@ -51,6 +53,7 @@ type RefZoneProps = {
|
|
|
51
53
|
style: Style;
|
|
52
54
|
translate: TranslationFn;
|
|
53
55
|
type: CommitType;
|
|
56
|
+
useColumnHeaderIcons: boolean;
|
|
54
57
|
width: number;
|
|
55
58
|
};
|
|
56
59
|
export default class RefZone extends React.PureComponent<RefZoneProps> {
|
|
@@ -2,7 +2,7 @@ import type { GridCellRenderer } from 'react-virtualized';
|
|
|
2
2
|
import type { Sha } from '../../../domain/commit/CommitTypes';
|
|
3
3
|
import type { CommonGraphRowDispatchProps, CommonGraphRowProps, FormatRefShorthand, GetMissingRefMetadata, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsRefShorthandValid, OnClickRef, OnDoubleClickRef, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefShorthandChange, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefMetadataById } from '../../../domain/graph/GraphTypes';
|
|
4
4
|
import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
|
|
5
|
-
import type { CreateRefFormData } from '../../../domain/ref/RefTypes';
|
|
5
|
+
import type { CreateRefFormData, RefIconsPosition } from '../../../domain/ref/RefTypes';
|
|
6
6
|
interface OwnProps {
|
|
7
7
|
height: number;
|
|
8
8
|
includeOnlyRefsById: IncludeOnlyRefsById;
|
|
@@ -15,6 +15,7 @@ interface StateProps {
|
|
|
15
15
|
isInUnsupportedRebase: boolean;
|
|
16
16
|
isRefShorthandValid: IsRefShorthandValid;
|
|
17
17
|
hoveredRefZoneSha?: Sha;
|
|
18
|
+
refIconsPosition: RefIconsPosition;
|
|
18
19
|
refMetadataById?: RefMetadataById | null;
|
|
19
20
|
shouldShowRefLine: boolean;
|
|
20
21
|
}
|
|
@@ -21,6 +21,7 @@ type State = {
|
|
|
21
21
|
declare class Avatar extends React.Component<Props, State> {
|
|
22
22
|
private image;
|
|
23
23
|
constructor(props: Props);
|
|
24
|
+
static getDerivedStateFromProps(props: Props, state: State): State;
|
|
24
25
|
componentDidMount(): void;
|
|
25
26
|
componentDidUpdate(prevProps: Props): void;
|
|
26
27
|
componentWillUnmount(): void;
|
|
@@ -4,6 +4,7 @@ export declare const GRAPH_HEADER_ROW_HEIGHT = 26;
|
|
|
4
4
|
export declare const GRAPH_ROW_HEIGHT = 28;
|
|
5
5
|
export declare const GRAPH_ROW_INNER_HEIGHT = 22;
|
|
6
6
|
export declare const GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET: number;
|
|
7
|
+
export declare const GRAPH_ROW_PADDING: number;
|
|
7
8
|
export declare const COMMIT_NODE_MIN_ALPHA = 0.5;
|
|
8
9
|
export declare const COMMIT_ZONE_MARGIN_BOTTOM = 3;
|
|
9
10
|
export declare const COMMIT_ZONE_MARGIN_TOP = 3;
|
|
@@ -14,6 +14,7 @@ export type ThrottleableFn = (...args: any) => void;
|
|
|
14
14
|
export type ThrottledFn = (...args: any) => void;
|
|
15
15
|
export declare const throttle: (func: ThrottleableFn, time: number, initial?: number) => ThrottledFn;
|
|
16
16
|
export declare function hasScrolledToBottom(htmlElement: HTMLElement): boolean;
|
|
17
|
+
export declare function hasScrolledToRight(htmlElement: HTMLElement): boolean;
|
|
17
18
|
export declare function parseContext(context?: GraphItemContext | null): string | null;
|
|
18
19
|
export declare function getRowStatsConstraints(stats: number[]): RowStatsConstraints;
|
|
19
20
|
export declare function getOrAskForRefMetadata(ref: GraphRef, refMetadata: RefMetadataById | undefined, onMissingRefMetadata: GetMissingRefMetadata, refMetadataType?: RefMetadataType): RefMetadata | BaseMetadata | BaseMetadata[] | null | undefined;
|
|
@@ -38,6 +39,7 @@ export declare function getVerticalScrollWidth(graphZoneType: GraphZoneType, act
|
|
|
38
39
|
export declare const isColumnFollowingGraphColumn: (graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]) => boolean;
|
|
39
40
|
export declare function getClampedZoneWidth(graphZone: GraphZone, activeGraphZones: GraphZone[], width: number): number;
|
|
40
41
|
export declare function getGraphZoneFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): GraphZone | undefined;
|
|
42
|
+
export declare function shouldUseColumnHeaderIcons(graphZone?: GraphZone): boolean;
|
|
41
43
|
export declare function getGraphZoneIndexFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): number;
|
|
42
44
|
export declare function getGraphZoneWidthConstraintsFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[], graphWidth: number): GraphColumnWidthConstraints;
|
|
43
45
|
export declare function getGraphZoneModeConstants(graphZoneMode?: GraphColumnMode): GraphZoneModeConstants;
|
|
@@ -86,6 +88,7 @@ export declare class GraphRowHelper {
|
|
|
86
88
|
getSelectedRefGroupByName(): GraphRefGroup[];
|
|
87
89
|
getHorizontalScrollHeight(graphZoneType: GraphZoneType): number;
|
|
88
90
|
getVerticalScrollWidth(graphZoneType: GraphZoneType): number;
|
|
91
|
+
shouldUseColumnHeaderIcons(graphZoneType: GraphZoneType): boolean;
|
|
89
92
|
isMissingHoveredRefGroup(rowIndex: number): boolean;
|
|
90
93
|
isSelected(rowIndex: number): boolean;
|
|
91
94
|
isSingleSelected(rowIndex: number): boolean;
|