@neo4j-ndl/react 3.8.6 → 3.8.8
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/lib/cjs/graph-visualization/graph-viz-buttons.js +142 -0
- package/lib/cjs/graph-visualization/graph-viz-buttons.js.map +1 -0
- package/lib/cjs/graph-visualization/graph-viz-context.js +62 -0
- package/lib/cjs/graph-visualization/graph-viz-context.js.map +1 -0
- package/lib/cjs/graph-visualization/graph-viz-sidepanel.js +56 -0
- package/lib/cjs/graph-visualization/graph-viz-sidepanel.js.map +1 -0
- package/lib/cjs/graph-visualization/graph-viz.js +289 -0
- package/lib/cjs/graph-visualization/graph-viz.js.map +1 -0
- package/lib/cjs/graph-visualization/index.js +44 -0
- package/lib/cjs/graph-visualization/index.js.map +1 -0
- package/lib/cjs/graph-visualization/map-to-nvl-graph.js +167 -0
- package/lib/cjs/graph-visualization/map-to-nvl-graph.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/button-group.js +96 -0
- package/lib/cjs/graph-visualization/sidepanel-components/button-group.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/clickable-urls-test.js +214 -0
- package/lib/cjs/graph-visualization/sidepanel-components/clickable-urls-test.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/clickable-urls.js +46 -0
- package/lib/cjs/graph-visualization/sidepanel-components/clickable-urls.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/details-panel.js +87 -0
- package/lib/cjs/graph-visualization/sidepanel-components/details-panel.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/overview-panel.js +45 -0
- package/lib/cjs/graph-visualization/sidepanel-components/overview-panel.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/properties-table.js +49 -0
- package/lib/cjs/graph-visualization/sidepanel-components/properties-table.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/show-all.js +44 -0
- package/lib/cjs/graph-visualization/sidepanel-components/show-all.js.map +1 -0
- package/lib/cjs/graph-visualization/sidepanel-components/single-selection-sidepanel-contents.js +35 -0
- package/lib/cjs/graph-visualization/sidepanel-components/single-selection-sidepanel-contents.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-barebones.story.js +93 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-barebones.story.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-custom.story.js +74 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-custom.story.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-default.story.js +93 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-default.story.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-maximalist.story.js +106 -0
- package/lib/cjs/graph-visualization/stories/graph-viz-maximalist.story.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/graph-viz.stories.js +85 -0
- package/lib/cjs/graph-visualization/stories/graph-viz.stories.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/index.js +44 -0
- package/lib/cjs/graph-visualization/stories/index.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/story-data.js +89 -0
- package/lib/cjs/graph-visualization/stories/story-data.js.map +1 -0
- package/lib/cjs/graph-visualization/use-managed-selection-state.js +258 -0
- package/lib/cjs/graph-visualization/use-managed-selection-state.js.map +1 -0
- package/lib/cjs/graph-visualization/use-semi-controlled-state.js +38 -0
- package/lib/cjs/graph-visualization/use-semi-controlled-state.js.map +1 -0
- package/lib/cjs/graph-visualization/utils.js +30 -0
- package/lib/cjs/graph-visualization/utils.js.map +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/spotlight/Spotlight.js +6 -1
- package/lib/cjs/spotlight/Spotlight.js.map +1 -1
- package/lib/cjs/spotlight/SpotlightTour.js +11 -2
- package/lib/cjs/spotlight/SpotlightTour.js.map +1 -1
- package/lib/esm/graph-visualization/graph-viz-buttons.js +127 -0
- package/lib/esm/graph-visualization/graph-viz-buttons.js.map +1 -0
- package/lib/esm/graph-visualization/graph-viz-context.js +58 -0
- package/lib/esm/graph-visualization/graph-viz-context.js.map +1 -0
- package/lib/esm/graph-visualization/graph-viz-sidepanel.js +52 -0
- package/lib/esm/graph-visualization/graph-viz-sidepanel.js.map +1 -0
- package/lib/esm/graph-visualization/graph-viz.js +259 -0
- package/lib/esm/graph-visualization/graph-viz.js.map +1 -0
- package/lib/esm/graph-visualization/index.js +25 -0
- package/lib/esm/graph-visualization/index.js.map +1 -0
- package/lib/esm/graph-visualization/map-to-nvl-graph.js +162 -0
- package/lib/esm/graph-visualization/map-to-nvl-graph.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/button-group.js +69 -0
- package/lib/esm/graph-visualization/sidepanel-components/button-group.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/clickable-urls-test.js +212 -0
- package/lib/esm/graph-visualization/sidepanel-components/clickable-urls-test.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/clickable-urls.js +40 -0
- package/lib/esm/graph-visualization/sidepanel-components/clickable-urls.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/details-panel.js +83 -0
- package/lib/esm/graph-visualization/sidepanel-components/details-panel.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/overview-panel.js +41 -0
- package/lib/esm/graph-visualization/sidepanel-components/overview-panel.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/properties-table.js +45 -0
- package/lib/esm/graph-visualization/sidepanel-components/properties-table.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/show-all.js +41 -0
- package/lib/esm/graph-visualization/sidepanel-components/show-all.js.map +1 -0
- package/lib/esm/graph-visualization/sidepanel-components/single-selection-sidepanel-contents.js +31 -0
- package/lib/esm/graph-visualization/sidepanel-components/single-selection-sidepanel-contents.js.map +1 -0
- package/lib/esm/graph-visualization/stories/graph-viz-barebones.story.js +90 -0
- package/lib/esm/graph-visualization/stories/graph-viz-barebones.story.js.map +1 -0
- package/lib/esm/graph-visualization/stories/graph-viz-custom.story.js +71 -0
- package/lib/esm/graph-visualization/stories/graph-viz-custom.story.js.map +1 -0
- package/lib/esm/graph-visualization/stories/graph-viz-default.story.js +90 -0
- package/lib/esm/graph-visualization/stories/graph-viz-default.story.js.map +1 -0
- package/lib/esm/graph-visualization/stories/graph-viz-maximalist.story.js +103 -0
- package/lib/esm/graph-visualization/stories/graph-viz-maximalist.story.js.map +1 -0
- package/lib/esm/graph-visualization/stories/graph-viz.stories.js +82 -0
- package/lib/esm/graph-visualization/stories/graph-viz.stories.js.map +1 -0
- package/lib/esm/graph-visualization/stories/index.js +34 -0
- package/lib/esm/graph-visualization/stories/index.js.map +1 -0
- package/lib/esm/graph-visualization/stories/story-data.js +86 -0
- package/lib/esm/graph-visualization/stories/story-data.js.map +1 -0
- package/lib/esm/graph-visualization/use-managed-selection-state.js +255 -0
- package/lib/esm/graph-visualization/use-managed-selection-state.js.map +1 -0
- package/lib/esm/graph-visualization/use-semi-controlled-state.js +35 -0
- package/lib/esm/graph-visualization/use-semi-controlled-state.js.map +1 -0
- package/lib/esm/graph-visualization/utils.js +25 -0
- package/lib/esm/graph-visualization/utils.js.map +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/spotlight/Spotlight.js +6 -1
- package/lib/esm/spotlight/Spotlight.js.map +1 -1
- package/lib/esm/spotlight/SpotlightTour.js +11 -2
- package/lib/esm/spotlight/SpotlightTour.js.map +1 -1
- package/lib/types/graph-visualization/graph-viz-buttons.d.ts +49 -0
- package/lib/types/graph-visualization/graph-viz-context.d.ts +122 -0
- package/lib/types/graph-visualization/graph-viz-sidepanel.d.ts +32 -0
- package/lib/types/graph-visualization/graph-viz.d.ts +149 -0
- package/lib/types/graph-visualization/index.d.ts +24 -0
- package/lib/types/graph-visualization/map-to-nvl-graph.d.ts +37 -0
- package/lib/types/graph-visualization/sidepanel-components/button-group.d.ts +24 -0
- package/lib/types/graph-visualization/sidepanel-components/clickable-urls-test.d.ts +21 -0
- package/lib/types/graph-visualization/sidepanel-components/clickable-urls.d.ts +26 -0
- package/lib/types/graph-visualization/sidepanel-components/details-panel.d.ts +25 -0
- package/lib/types/graph-visualization/sidepanel-components/overview-panel.d.ts +21 -0
- package/lib/types/graph-visualization/sidepanel-components/properties-table.d.ts +31 -0
- package/lib/types/graph-visualization/sidepanel-components/show-all.d.ts +29 -0
- package/lib/types/graph-visualization/sidepanel-components/single-selection-sidepanel-contents.d.ts +21 -0
- package/lib/types/graph-visualization/stories/graph-viz-barebones.story.d.ts +23 -0
- package/lib/types/graph-visualization/stories/graph-viz-custom.story.d.ts +23 -0
- package/lib/types/graph-visualization/stories/graph-viz-default.story.d.ts +23 -0
- package/lib/types/graph-visualization/stories/graph-viz-maximalist.story.d.ts +23 -0
- package/lib/types/graph-visualization/stories/graph-viz.stories.d.ts +36 -0
- package/lib/types/graph-visualization/stories/index.d.ts +28 -0
- package/lib/types/graph-visualization/stories/story-data.d.ts +26 -0
- package/lib/types/graph-visualization/use-managed-selection-state.d.ts +114 -0
- package/lib/types/graph-visualization/use-semi-controlled-state.d.ts +21 -0
- package/lib/types/graph-visualization/utils.d.ts +23 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/spotlight/Spotlight.d.ts +6 -0
- package/lib/types/spotlight/SpotlightTour.d.ts +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type TooltipProps } from '@neo4j-ndl/react';
|
|
22
|
+
import { type CSSProperties, type PropsWithChildren } from 'react';
|
|
23
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
24
|
+
type GraphVizButtonProps = {
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
htmlAttributes?: HtmlAttributes<'button'>;
|
|
28
|
+
tooltipPlacement?: TooltipProps['placement'];
|
|
29
|
+
};
|
|
30
|
+
type BaseProperties = GraphVizButtonProps & {
|
|
31
|
+
tipContent: string;
|
|
32
|
+
testid?: string;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
isActive?: boolean;
|
|
35
|
+
isDisabled?: boolean;
|
|
36
|
+
onClick?: () => void;
|
|
37
|
+
onMouseDown?: () => void;
|
|
38
|
+
};
|
|
39
|
+
export type GraphVizGroupButton = PropsWithChildren<BaseProperties>;
|
|
40
|
+
export declare const GroupButton: (props: GraphVizGroupButton) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const SingleSelectButton: ({ className, style, htmlAttributes, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const BoxSelectButton: ({ className, style, htmlAttributes, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const LassoSelectButton: ({ className, style, htmlAttributes, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const ZoomInButton: ({ className, style, htmlAttributes, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const ZoomOutButton: ({ className, style, htmlAttributes, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare const ZoomToFitButton: ({ className, style, htmlAttributes, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare const ToggleSidePanelButton: ({ className, htmlAttributes, style, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare const DownloadButton: ({ className, style, htmlAttributes, tooltipPlacement, }: GraphVizButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import type NVL from '@neo4j-nvl/base';
|
|
22
|
+
import { type Node, type Relationship } from '@neo4j-nvl/base';
|
|
23
|
+
export type GraphSelection = {
|
|
24
|
+
nodeIds: string[];
|
|
25
|
+
relationshipIds: string[];
|
|
26
|
+
};
|
|
27
|
+
export type Sidepanel = {
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
isSidePanelOpen: boolean;
|
|
30
|
+
setIsSidePanelOpen?: (isSidePanelOpen: boolean) => void;
|
|
31
|
+
sidePanelWidth?: number;
|
|
32
|
+
onSidePanelResize: (width: number) => void;
|
|
33
|
+
minWidth?: number;
|
|
34
|
+
};
|
|
35
|
+
export type NvlGraph = {
|
|
36
|
+
nodes: Node[];
|
|
37
|
+
rels: Relationship[];
|
|
38
|
+
dataLookupTable: DataLookupTable;
|
|
39
|
+
};
|
|
40
|
+
export type GraphItemMetaData = {
|
|
41
|
+
totalCount: number;
|
|
42
|
+
mostCommonColor: string;
|
|
43
|
+
};
|
|
44
|
+
export type DataLookupTable = {
|
|
45
|
+
nodes: Record<string, NodeData>;
|
|
46
|
+
relationships: Record<string, RelData>;
|
|
47
|
+
labels: string[];
|
|
48
|
+
types: string[];
|
|
49
|
+
labelMetaData: Record<string, GraphItemMetaData>;
|
|
50
|
+
typeMetaData: Record<string, GraphItemMetaData>;
|
|
51
|
+
};
|
|
52
|
+
export type PortableProperty = {
|
|
53
|
+
stringified: string;
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
export type NodeData = {
|
|
57
|
+
labelsSorted: string[];
|
|
58
|
+
properties: Record<string, PortableProperty>;
|
|
59
|
+
color: string;
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
62
|
+
export type RelData = {
|
|
63
|
+
type: string;
|
|
64
|
+
properties: Record<string, PortableProperty>;
|
|
65
|
+
color: string;
|
|
66
|
+
id: string;
|
|
67
|
+
};
|
|
68
|
+
export type NeoNode = Node & {
|
|
69
|
+
properties: Record<string, PortableProperty>;
|
|
70
|
+
labels: string[];
|
|
71
|
+
};
|
|
72
|
+
export type NeoRel = Relationship & {
|
|
73
|
+
properties: Record<string, PortableProperty>;
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Data that is shared across the graph visualization component.
|
|
78
|
+
*
|
|
79
|
+
* @see {@link useGraphVizContext}
|
|
80
|
+
* @alpha
|
|
81
|
+
*/
|
|
82
|
+
export type GraphVizContextData = {
|
|
83
|
+
nvlInstance: React.MutableRefObject<NVL | null>;
|
|
84
|
+
sidepanel: Sidepanel | null;
|
|
85
|
+
gesture: Gesture;
|
|
86
|
+
setGesture?: (gesture: Gesture) => void;
|
|
87
|
+
interactionMode: InteractionMode;
|
|
88
|
+
nvlGraph: NvlGraph;
|
|
89
|
+
selected: GraphSelection;
|
|
90
|
+
};
|
|
91
|
+
export declare const GraphVizContext: import("react").Context<GraphVizContextData | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Hook to access the graph visualization context.
|
|
94
|
+
*
|
|
95
|
+
* This hook is used to implement custom UI components like buttons, panels, and controls
|
|
96
|
+
* that need access to data and functionality from the graph visualization component.
|
|
97
|
+
* @see {@link GraphVizContextData}
|
|
98
|
+
*
|
|
99
|
+
* @returns The graph visualization context containing NVL instance, sidepanel, gestures, and graph data
|
|
100
|
+
* @throws Error if used outside of a GraphVizContext provider
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```tsx
|
|
104
|
+
* const NodeLoggerButton = () => {
|
|
105
|
+
* const { selected } = useGraphVizContext();
|
|
106
|
+
*
|
|
107
|
+
* const handleClick = () => {
|
|
108
|
+
* console.log('Selected nodes:', selected.nodeIds);
|
|
109
|
+
* };
|
|
110
|
+
*
|
|
111
|
+
* return (
|
|
112
|
+
* <button onClick={handleClick}>
|
|
113
|
+
* Log Selected Nodes ({selected.nodeIds.length})
|
|
114
|
+
* </button>
|
|
115
|
+
* );
|
|
116
|
+
* };
|
|
117
|
+
* ```
|
|
118
|
+
* @alpha
|
|
119
|
+
*/
|
|
120
|
+
export declare const useGraphVizContext: () => GraphVizContextData;
|
|
121
|
+
export type Gesture = 'single' | 'box' | 'lasso';
|
|
122
|
+
export type InteractionMode = 'select' | 'draw' | 'edit-text' | 'pan' | 'drag' | 'none';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type Sidepanel } from './graph-viz-context';
|
|
22
|
+
export declare const GraphVizSidepanel: {
|
|
23
|
+
({ sidepanel }: {
|
|
24
|
+
sidepanel: Sidepanel;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
Title: ({ children }: {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
Content: ({ children }: {
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import type NVL from '@neo4j-nvl/base';
|
|
22
|
+
import { type InteractiveNvlWrapperProps } from '@neo4j-nvl/react';
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { type PolymorphicRef } from '../_common/types';
|
|
25
|
+
import { type Gesture, type GraphSelection, type InteractionMode, type NeoNode, type NeoRel, type Sidepanel } from './graph-viz-context';
|
|
26
|
+
export declare const DEFAULT_NVL_OPTIONS: {
|
|
27
|
+
disableTelemetry: boolean;
|
|
28
|
+
disableWebGL: boolean;
|
|
29
|
+
maxZoom: number;
|
|
30
|
+
minZoom: number;
|
|
31
|
+
relationshipThreshold: number;
|
|
32
|
+
useWebGL: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type GraphVizProps<T extends React.ElementType> = {
|
|
35
|
+
nvlRef?: React.RefObject<NVL>;
|
|
36
|
+
sidepanel?: Sidepanel | null;
|
|
37
|
+
topRightIsland?: React.ReactNode;
|
|
38
|
+
bottomLeftIsland?: React.ReactNode;
|
|
39
|
+
bottomRightIsland?: React.ReactNode;
|
|
40
|
+
topLeftIsland?: React.ReactNode;
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
gesture?: Gesture;
|
|
44
|
+
setGesture?: (gesture: Gesture) => void;
|
|
45
|
+
selected?: GraphSelection;
|
|
46
|
+
setSelected?: (newSelection: GraphSelection) => void;
|
|
47
|
+
interactionMode?: InteractionMode;
|
|
48
|
+
setInteractionMode?: (interactionMode: InteractionMode) => void;
|
|
49
|
+
nodes: NeoNode[];
|
|
50
|
+
rels: NeoRel[];
|
|
51
|
+
as?: T;
|
|
52
|
+
ref?: PolymorphicRef<T>;
|
|
53
|
+
htmlAttributes?: React.HTMLAttributes<T>;
|
|
54
|
+
} & InteractiveNvlWrapperProps;
|
|
55
|
+
/**
|
|
56
|
+
* A comprehensive graph visualization component for rendering Neo4j-style graphs with interactive features.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* This component provides a complete graph visualization solution with built-in interaction modes,
|
|
60
|
+
* selection handling, zoom controls, and an optional sidepanel. It wraps the NVL (Neo4j Visualization Library)
|
|
61
|
+
* with additional UI controls and state management.
|
|
62
|
+
*
|
|
63
|
+
* The component supports various interaction modes including single selection, box selection, and lasso selection.
|
|
64
|
+
* It also provides customizable UI islands for placing controls at different corners of the visualization.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* Basic usage:
|
|
68
|
+
* ```tsx
|
|
69
|
+
* <GraphViz
|
|
70
|
+
* nodes={nodes}
|
|
71
|
+
* rels={relationships}
|
|
72
|
+
* selected={selection}
|
|
73
|
+
* setSelected={setSelection}
|
|
74
|
+
* />
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* With custom controls:
|
|
79
|
+
* ```tsx
|
|
80
|
+
* <GraphViz
|
|
81
|
+
* nodes={nodes}
|
|
82
|
+
* rels={relationships}
|
|
83
|
+
* topRightIsland={<CustomControls />}
|
|
84
|
+
* sidepanel={{
|
|
85
|
+
* contents: <CustomSidepanel />,
|
|
86
|
+
* isSidePanelOpen: true,
|
|
87
|
+
* setIsSidePanelOpen: setSidepanelOpen
|
|
88
|
+
* sidePanelWidth: 400,
|
|
89
|
+
* onSidePanelResize: setSidepanelWidth,
|
|
90
|
+
* }}
|
|
91
|
+
* />
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @param props - {@link GraphVizProps}
|
|
95
|
+
* @returns A React component that renders an interactive graph visualization
|
|
96
|
+
*
|
|
97
|
+
* @alpha
|
|
98
|
+
*/
|
|
99
|
+
export declare function GraphViz<T extends React.ElementType = 'div'>({ nvlRef: rawNvlRef, nvlCallbacks, nvlOptions, sidepanel: rawSidepanel, nodes: rawNodes, rels: rawRels, topLeftIsland, topRightIsland, bottomLeftIsland, bottomRightIsland, gesture, setGesture, selected: rawSelected, setSelected: rawSetSelected, interactionMode: rawInteractionMode, setInteractionMode: rawSetInteractionMode, mouseEventCallbacks, className, style, htmlAttributes, ref, as, ...restProps }: GraphVizProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
export declare namespace GraphViz {
|
|
101
|
+
var ZoomInButton: ({ className, style, htmlAttributes, tooltipPlacement, }: {
|
|
102
|
+
className?: string;
|
|
103
|
+
style?: React.CSSProperties;
|
|
104
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
105
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
106
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
var ZoomOutButton: ({ className, style, htmlAttributes, tooltipPlacement, }: {
|
|
108
|
+
className?: string;
|
|
109
|
+
style?: React.CSSProperties;
|
|
110
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
111
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
112
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
var ZoomToFitButton: ({ className, style, htmlAttributes, tooltipPlacement, }: {
|
|
114
|
+
className?: string;
|
|
115
|
+
style?: React.CSSProperties;
|
|
116
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
117
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
118
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
var ToggleSidePanelButton: ({ className, htmlAttributes, style, tooltipPlacement, }: {
|
|
120
|
+
className?: string;
|
|
121
|
+
style?: React.CSSProperties;
|
|
122
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
123
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
124
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
var DownloadButton: ({ className, style, htmlAttributes, tooltipPlacement, }: {
|
|
126
|
+
className?: string;
|
|
127
|
+
style?: React.CSSProperties;
|
|
128
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
129
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
130
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
var BoxSelectButton: ({ className, style, htmlAttributes, tooltipPlacement, }: {
|
|
132
|
+
className?: string;
|
|
133
|
+
style?: React.CSSProperties;
|
|
134
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
135
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
136
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
var LassoSelectButton: ({ className, style, htmlAttributes, tooltipPlacement, }: {
|
|
138
|
+
className?: string;
|
|
139
|
+
style?: React.CSSProperties;
|
|
140
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
141
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
142
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
143
|
+
var SingleSelectButton: ({ className, style, htmlAttributes, tooltipPlacement, }: {
|
|
144
|
+
className?: string;
|
|
145
|
+
style?: React.CSSProperties;
|
|
146
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<"button">;
|
|
147
|
+
tooltipPlacement?: import("@neo4j-ndl/react").TooltipProps["placement"];
|
|
148
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
149
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export * from '@neo4j-nvl/base';
|
|
22
|
+
export * from '@neo4j-nvl/react';
|
|
23
|
+
export { GraphViz } from './graph-viz';
|
|
24
|
+
export { useGraphVizContext, type DataLookupTable, type Gesture, type GraphItemMetaData, type GraphSelection, type GraphVizContextData, type InteractionMode, type NeoNode, type NeoRel, type NodeData, type NvlGraph, type PortableProperty, type RelData, type Sidepanel, } from './graph-viz-context';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type NeoNode, type NeoRel, type NvlGraph } from './graph-viz-context';
|
|
22
|
+
export type CaptionOption = {
|
|
23
|
+
type: 'id';
|
|
24
|
+
captionSize?: number;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'type';
|
|
27
|
+
captionSize?: number;
|
|
28
|
+
} | {
|
|
29
|
+
type: 'property';
|
|
30
|
+
captionKey: string;
|
|
31
|
+
captionSize?: number;
|
|
32
|
+
};
|
|
33
|
+
export declare const DEFAULT_REL_COLOR: string;
|
|
34
|
+
export declare const NO_LABEL_FALLBACK_COLOR: string;
|
|
35
|
+
export declare const captionPriorityOrder: RegExp[];
|
|
36
|
+
export declare function getDefaultCaptionKey(options: CaptionOption[]): CaptionOption | undefined;
|
|
37
|
+
export declare function mapToNvlGraph(rawNodes: NeoNode[], rawRels: NeoRel[]): NvlGraph;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import React from 'react';
|
|
22
|
+
export declare const ButtonGroup: ({ children }: {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import React from 'react';
|
|
22
|
+
interface ClickableUrlsProps {
|
|
23
|
+
text?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export declare const ClickableUrls: React.MemoExoticComponent<({ text }: ClickableUrlsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
type DetailPanelProps = {
|
|
22
|
+
paneWidth?: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const DetailsPanel: ({ paneWidth }: DetailPanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export declare const OverviewPanel: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type PortableProperty } from '../graph-viz-context';
|
|
22
|
+
export declare const ELLIPSIS = "\u2026";
|
|
23
|
+
export declare const WIDE_VIEW_THRESHOLD = 900;
|
|
24
|
+
export declare const MAX_LENGTH_NARROW = 150;
|
|
25
|
+
export declare const MAX_LENGTH_WIDE = 300;
|
|
26
|
+
type PropertiesTableProps = {
|
|
27
|
+
properties: Record<string, PortableProperty>;
|
|
28
|
+
paneWidth: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const PropertiesTable: ({ properties, paneWidth, }: PropertiesTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type ReactNode } from 'react';
|
|
22
|
+
type ShowAllProps = {
|
|
23
|
+
initiallyShown: number;
|
|
24
|
+
children: ((() => ReactNode) | ReactNode)[];
|
|
25
|
+
isButtonGroup?: boolean;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function ShowAll({ initiallyShown, children, isButtonGroup, }: ShowAllProps): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
export {};
|
package/lib/types/graph-visualization/sidepanel-components/single-selection-sidepanel-contents.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export declare const SingleSelectionSidepanelContents: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export declare const containerClasses = "n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border";
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|