@neo4j-ndl/react 3.9.20 → 3.9.22
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/{types/graph-visualization/stories/graph-visualization-barebones.story.d.ts → cjs/_common/index.js} +3 -3
- package/lib/cjs/_common/index.js.map +1 -0
- package/lib/cjs/graph-visualization/graph-visualization.js +0 -1
- package/lib/cjs/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/{types/graph-visualization/stories/graph-visualization-search.story.d.ts → esm/_common/index.js} +2 -2
- package/lib/esm/_common/index.js.map +1 -0
- package/lib/esm/graph-visualization/graph-visualization.js +0 -1
- package/lib/esm/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/types/{graph-visualization/stories/graph-visualization-highlighting.story.d.ts → _common/index.d.ts} +1 -2
- package/lib/types/accordion/stories/accordion.stories.d.ts +2 -2
- package/lib/types/drawer/stories/drawer.stories.d.ts +3 -3
- package/lib/types/graph-visualization/graph-visualization.d.ts +9 -10
- package/lib/types/index.d.ts +1 -0
- package/lib/types/next/breadcrumbs/stories/breadcrumbs.stories.d.ts +7 -7
- package/lib/types/next/side-navigation/stories/side-nav.stories.d.ts +5 -5
- package/package.json +7 -7
- package/lib/cjs/graph-visualization/stories/graph-visualization-barebones.story.js +0 -93
- package/lib/cjs/graph-visualization/stories/graph-visualization-barebones.story.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-custom.story.js +0 -74
- package/lib/cjs/graph-visualization/stories/graph-visualization-custom.story.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-default.story.js +0 -93
- package/lib/cjs/graph-visualization/stories/graph-visualization-default.story.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js +0 -30
- package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-maximalist.story.js +0 -105
- package/lib/cjs/graph-visualization/stories/graph-visualization-maximalist.story.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-search.story.js +0 -36
- package/lib/cjs/graph-visualization/stories/graph-visualization-search.story.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js +0 -112
- package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/index.js +0 -52
- package/lib/cjs/graph-visualization/stories/index.js.map +0 -1
- package/lib/cjs/graph-visualization/stories/story-data.js +0 -89
- package/lib/cjs/graph-visualization/stories/story-data.js.map +0 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-barebones.story.js +0 -90
- package/lib/esm/graph-visualization/stories/graph-visualization-barebones.story.js.map +0 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-custom.story.js +0 -71
- package/lib/esm/graph-visualization/stories/graph-visualization-custom.story.js.map +0 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-default.story.js +0 -90
- package/lib/esm/graph-visualization/stories/graph-visualization-default.story.js.map +0 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js +0 -28
- package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js.map +0 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-maximalist.story.js +0 -102
- package/lib/esm/graph-visualization/stories/graph-visualization-maximalist.story.js.map +0 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-search.story.js +0 -34
- package/lib/esm/graph-visualization/stories/graph-visualization-search.story.js.map +0 -1
- package/lib/esm/graph-visualization/stories/graph-visualization.stories.js +0 -109
- package/lib/esm/graph-visualization/stories/graph-visualization.stories.js.map +0 -1
- package/lib/esm/graph-visualization/stories/index.js +0 -40
- package/lib/esm/graph-visualization/stories/index.js.map +0 -1
- package/lib/esm/graph-visualization/stories/story-data.js +0 -86
- package/lib/esm/graph-visualization/stories/story-data.js.map +0 -1
- package/lib/types/graph-visualization/stories/graph-visualization-custom.story.d.ts +0 -23
- package/lib/types/graph-visualization/stories/graph-visualization-default.story.d.ts +0 -23
- package/lib/types/graph-visualization/stories/graph-visualization-maximalist.story.d.ts +0 -23
- package/lib/types/graph-visualization/stories/graph-visualization.stories.d.ts +0 -39
- package/lib/types/graph-visualization/stories/index.d.ts +0 -32
- package/lib/types/graph-visualization/stories/story-data.d.ts +0 -26
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) "Neo4j"
|
|
5
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
-
*
|
|
7
|
-
* This file is part of Neo4j.
|
|
8
|
-
*
|
|
9
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
-
* it under the terms of the GNU General Public License as published by
|
|
11
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
* (at your option) any later version.
|
|
13
|
-
*
|
|
14
|
-
* This program is distributed in the hope that it will be useful,
|
|
15
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
* GNU General Public License for more details.
|
|
18
|
-
*
|
|
19
|
-
* You should have received a copy of the GNU General Public License
|
|
20
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
-
*/
|
|
22
|
-
import { GraphVisualization } from '../graph-visualization';
|
|
23
|
-
const nodes = [
|
|
24
|
-
{
|
|
25
|
-
id: 'node1',
|
|
26
|
-
labels: ['Pokemon', 'Legendary'],
|
|
27
|
-
properties: {},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'node2',
|
|
31
|
-
labels: ['Type'],
|
|
32
|
-
properties: { name: { stringified: 'Dragon', type: 'String' } },
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: 'node3',
|
|
36
|
-
labels: ['Type'],
|
|
37
|
-
properties: { name: { stringified: 'Flying', type: 'String' } },
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
const rels = [
|
|
41
|
-
{
|
|
42
|
-
from: 'node1',
|
|
43
|
-
id: 'rel1',
|
|
44
|
-
properties: {},
|
|
45
|
-
to: 'node2',
|
|
46
|
-
type: 'HAS_TYPE',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
from: 'node1',
|
|
50
|
-
id: 'rel2',
|
|
51
|
-
properties: {},
|
|
52
|
-
to: 'node3',
|
|
53
|
-
type: 'HAS_TYPE',
|
|
54
|
-
},
|
|
55
|
-
];
|
|
56
|
-
export const containerClasses = 'n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border';
|
|
57
|
-
const Component = () => {
|
|
58
|
-
return (_jsx("div", { style: { height: '600px' }, children: _jsx(GraphVisualization, { bottomLeftIsland: _jsx("div", { children: "\u2199\uFE0F" }), bottomRightIsland: _jsx("div", { children: "\u2198\uFE0F" }), nodes: nodes, rels: rels, sidepanel: {
|
|
59
|
-
children: _jsx("div", { children: "Custom panel contents" }),
|
|
60
|
-
isSidePanelOpen: true,
|
|
61
|
-
onSidePanelResize: () => {
|
|
62
|
-
/* no op */
|
|
63
|
-
},
|
|
64
|
-
setIsSidePanelOpen: () => {
|
|
65
|
-
/* no op */
|
|
66
|
-
},
|
|
67
|
-
sidePanelWidth: 300,
|
|
68
|
-
}, topLeftIsland: _jsx("div", { children: "\u2196\uFE0F" }), topRightIsland: _jsx("div", { children: "\u2197\uFE0F" }), className: containerClasses }) }));
|
|
69
|
-
};
|
|
70
|
-
export default Component;
|
|
71
|
-
//# sourceMappingURL=graph-visualization-custom.story.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization-custom.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-custom.story.tsx"],"names":[],"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G,EAAE;oBACtB,WAAW;gBACb,CAAC;gBACD,kBAAkB,EAAE,GAAG,EAAE;oBACvB,WAAW;gBACb,CAAC;gBACD,cAAc,EAAE,GAAG;aACpB,EACD,aAAa,EAAE,yCAAa,EAC5B,cAAc,EAAE,yCAAa,EAC7B,SAAS,EAAE,gBAAgB,GAC3B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) "Neo4j"
|
|
5
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
-
*
|
|
7
|
-
* This file is part of Neo4j.
|
|
8
|
-
*
|
|
9
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
-
* it under the terms of the GNU General Public License as published by
|
|
11
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
* (at your option) any later version.
|
|
13
|
-
*
|
|
14
|
-
* This program is distributed in the hope that it will be useful,
|
|
15
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
* GNU General Public License for more details.
|
|
18
|
-
*
|
|
19
|
-
* You should have received a copy of the GNU General Public License
|
|
20
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
-
*/
|
|
22
|
-
import { GraphVisualization } from '../graph-visualization';
|
|
23
|
-
const nodes = [
|
|
24
|
-
{
|
|
25
|
-
id: 'node1',
|
|
26
|
-
labels: ['Pokemon', 'Legendary'],
|
|
27
|
-
properties: {
|
|
28
|
-
durationToWinBattle: {
|
|
29
|
-
stringified: 'P0M0DT0.000000001S',
|
|
30
|
-
type: 'duration',
|
|
31
|
-
},
|
|
32
|
-
favoriteColors: {
|
|
33
|
-
stringified: '["red", "blue", "green"]',
|
|
34
|
-
type: 'list',
|
|
35
|
-
},
|
|
36
|
-
getsBeatBy: {
|
|
37
|
-
stringified: 'null',
|
|
38
|
-
type: 'null',
|
|
39
|
-
},
|
|
40
|
-
isAwesome: {
|
|
41
|
-
stringified: 'true',
|
|
42
|
-
type: 'boolean',
|
|
43
|
-
},
|
|
44
|
-
location: {
|
|
45
|
-
stringified: 'point({srid:1, x:100, y:200, z:300})',
|
|
46
|
-
type: 'point',
|
|
47
|
-
},
|
|
48
|
-
name: {
|
|
49
|
-
stringified: '"Rayquaza"',
|
|
50
|
-
type: 'string',
|
|
51
|
-
},
|
|
52
|
-
weight: {
|
|
53
|
-
stringified: '392.0',
|
|
54
|
-
type: 'float',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
id: 'node2',
|
|
60
|
-
labels: ['Type'],
|
|
61
|
-
properties: { name: { stringified: 'Dragon', type: 'String' } },
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: 'node3',
|
|
65
|
-
labels: ['Type'],
|
|
66
|
-
properties: { name: { stringified: 'Flying', type: 'String' } },
|
|
67
|
-
},
|
|
68
|
-
];
|
|
69
|
-
const rels = [
|
|
70
|
-
{
|
|
71
|
-
from: 'node1',
|
|
72
|
-
id: 'rel1',
|
|
73
|
-
properties: {},
|
|
74
|
-
to: 'node2',
|
|
75
|
-
type: 'HAS_TYPE',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
from: 'node1',
|
|
79
|
-
id: 'rel2',
|
|
80
|
-
properties: {},
|
|
81
|
-
to: 'node3',
|
|
82
|
-
type: 'HAS_TYPE',
|
|
83
|
-
},
|
|
84
|
-
];
|
|
85
|
-
export const containerClasses = 'n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border';
|
|
86
|
-
const Component = () => {
|
|
87
|
-
return (_jsx("div", { style: { height: '600px' }, children: _jsx(GraphVisualization, { nodes: nodes, rels: rels, className: containerClasses }) }));
|
|
88
|
-
};
|
|
89
|
-
export default Component;
|
|
90
|
-
//# sourceMappingURL=graph-visualization-default.story.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization-default.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,MAAM,KAAK,GAAc;IACvB;QACE,EAAE,EAAE,OAAO;QACX,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;QAChC,UAAU,EAAE;YACV,mBAAmB,EAAE;gBACnB,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,UAAU;aACjB;YACD,cAAc,EAAE;gBACd,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,MAAM;aACb;YACD,UAAU,EAAE;gBACV,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;aACb;YACD,SAAS,EAAE;gBACT,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE,sCAAsC;gBACnD,IAAI,EAAE,OAAO;aACd;YACD,IAAI,EAAE;gBACJ,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;aACd;SACF;KACF;IACD;QACE,EAAE,EAAE,OAAO;QACX,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAChE;IACD;QACE,EAAE,EAAE,OAAO;QACX,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAChE;CACF,CAAC;AAEF,MAAM,IAAI,GAAG;IACX;QACE,IAAI,EAAE,OAAO;QACb,EAAE,EAAE,MAAM;QACV,UAAU,EAAE,EAAE;QACd,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,UAAU;KACjB;IACD;QACE,IAAI,EAAE,OAAO;QACb,EAAE,EAAE,MAAM;QACV,UAAU,EAAE,EAAE;QACd,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AACF,MAAM,CAAC,MAAM,gBAAgB,GAC3B,4EAA4E,CAAC;AAE/E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAC7B,KAAC,kBAAkB,IACjB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,gBAAgB,GAC3B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) "Neo4j"
|
|
5
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
-
*
|
|
7
|
-
* This file is part of Neo4j.
|
|
8
|
-
*
|
|
9
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
-
* it under the terms of the GNU General Public License as published by
|
|
11
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
* (at your option) any later version.
|
|
13
|
-
*
|
|
14
|
-
* This program is distributed in the hope that it will be useful,
|
|
15
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
* GNU General Public License for more details.
|
|
18
|
-
*
|
|
19
|
-
* You should have received a copy of the GNU General Public License
|
|
20
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
-
*/
|
|
22
|
-
import { GraphVisualization } from '../graph-visualization';
|
|
23
|
-
import { containerClasses, StoryGraph } from './story-data';
|
|
24
|
-
const Component = () => {
|
|
25
|
-
return (_jsx("div", { style: { height: '600px' }, children: _jsx(GraphVisualization, { nodes: StoryGraph.nodes, rels: StoryGraph.rels, className: containerClasses, highlightedNodeIds: ['node1'], highlightedRelationshipIds: [] }) }));
|
|
26
|
-
};
|
|
27
|
-
export default Component;
|
|
28
|
-
//# sourceMappingURL=graph-visualization-highlighting.story.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization-highlighting.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-highlighting.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAC7B,KAAC,kBAAkB,IACjB,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,SAAS,EAAE,gBAAgB,EAC3B,kBAAkB,EAAE,CAAC,OAAO,CAAC,EAC7B,0BAA0B,EAAE,EAAE,GAC9B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) "Neo4j"
|
|
5
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
-
*
|
|
7
|
-
* This file is part of Neo4j.
|
|
8
|
-
*
|
|
9
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
-
* it under the terms of the GNU General Public License as published by
|
|
11
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
* (at your option) any later version.
|
|
13
|
-
*
|
|
14
|
-
* This program is distributed in the hope that it will be useful,
|
|
15
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
* GNU General Public License for more details.
|
|
18
|
-
*
|
|
19
|
-
* You should have received a copy of the GNU General Public License
|
|
20
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
-
*/
|
|
22
|
-
import { IconButtonArray } from '@neo4j-ndl/react';
|
|
23
|
-
import { useState } from 'react';
|
|
24
|
-
import { GraphVisualization } from '../graph-visualization';
|
|
25
|
-
const nodes = [
|
|
26
|
-
{
|
|
27
|
-
id: 'node1',
|
|
28
|
-
labels: ['Pokemon', 'Legendary'],
|
|
29
|
-
properties: {
|
|
30
|
-
durationToWinBattle: {
|
|
31
|
-
stringified: 'P0M0DT0.000000001S',
|
|
32
|
-
type: 'duration',
|
|
33
|
-
},
|
|
34
|
-
favoriteColors: {
|
|
35
|
-
stringified: '["red", "blue", "green"]',
|
|
36
|
-
type: 'list',
|
|
37
|
-
},
|
|
38
|
-
getsBeatBy: {
|
|
39
|
-
stringified: 'null',
|
|
40
|
-
type: 'null',
|
|
41
|
-
},
|
|
42
|
-
isAwesome: {
|
|
43
|
-
stringified: 'true',
|
|
44
|
-
type: 'boolean',
|
|
45
|
-
},
|
|
46
|
-
location: {
|
|
47
|
-
stringified: 'point({srid:1, x:100, y:200, z:300})',
|
|
48
|
-
type: 'point',
|
|
49
|
-
},
|
|
50
|
-
name: {
|
|
51
|
-
stringified: '"Rayquaza"',
|
|
52
|
-
type: 'string',
|
|
53
|
-
},
|
|
54
|
-
weight: {
|
|
55
|
-
stringified: '392.0',
|
|
56
|
-
type: 'float',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: 'node2',
|
|
62
|
-
labels: ['Type'],
|
|
63
|
-
properties: { name: { stringified: 'Dragon', type: 'String' } },
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: 'node3',
|
|
67
|
-
labels: ['Type'],
|
|
68
|
-
properties: { name: { stringified: 'Flying', type: 'String' } },
|
|
69
|
-
},
|
|
70
|
-
];
|
|
71
|
-
const rels = [
|
|
72
|
-
{
|
|
73
|
-
from: 'node1',
|
|
74
|
-
id: 'rel1',
|
|
75
|
-
properties: {},
|
|
76
|
-
to: 'node2',
|
|
77
|
-
type: 'HAS_TYPE',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
from: 'node1',
|
|
81
|
-
id: 'rel2',
|
|
82
|
-
properties: {},
|
|
83
|
-
to: 'node3',
|
|
84
|
-
type: 'HAS_TYPE',
|
|
85
|
-
},
|
|
86
|
-
];
|
|
87
|
-
export const containerClasses = 'n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border';
|
|
88
|
-
const Component = () => {
|
|
89
|
-
const [isOpen, setIsOpen] = useState(true);
|
|
90
|
-
const [gesture, setGesture] = useState('box');
|
|
91
|
-
return (_jsx("div", { style: { height: '600px' }, children: _jsx(GraphVisualization, { gesture: gesture, setGesture: setGesture, bottomLeftIsland: _jsxs(IconButtonArray, { children: [_jsx(GraphVisualization.LassoSelectButton, {}), _jsx(GraphVisualization.SingleSelectButton, {}), _jsx(GraphVisualization.BoxSelectButton, {})] }), bottomRightIsland: _jsxs(IconButtonArray, { children: [_jsx(GraphVisualization.ZoomInButton, {}), _jsx(GraphVisualization.ZoomOutButton, {}), _jsx(GraphVisualization.ZoomToFitButton, {})] }), nodes: nodes, rels: rels, sidepanel: {
|
|
92
|
-
children: _jsx(GraphVisualization.SingleSelectionSidePanelContents, {}),
|
|
93
|
-
isSidePanelOpen: isOpen,
|
|
94
|
-
onSidePanelResize: () => {
|
|
95
|
-
/* no op */
|
|
96
|
-
},
|
|
97
|
-
setIsSidePanelOpen: setIsOpen,
|
|
98
|
-
sidePanelWidth: 300,
|
|
99
|
-
}, topLeftIsland: _jsx(GraphVisualization.DownloadButton, {}), topRightIsland: _jsx(GraphVisualization.ToggleSidePanelButton, {}), className: containerClasses }) }));
|
|
100
|
-
};
|
|
101
|
-
export default Component;
|
|
102
|
-
//# sourceMappingURL=graph-visualization-maximalist.story.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization-maximalist.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-maximalist.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,MAAM,KAAK,GAAc;IACvB;QACE,EAAE,EAAE,OAAO;QACX,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;QAChC,UAAU,EAAE;YACV,mBAAmB,EAAE;gBACnB,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,UAAU;aACjB;YACD,cAAc,EAAE;gBACd,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,MAAM;aACb;YACD,UAAU,EAAE;gBACV,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;aACb;YACD,SAAS,EAAE;gBACT,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE,sCAAsC;gBACnD,IAAI,EAAE,OAAO;aACd;YACD,IAAI,EAAE;gBACJ,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,QAAQ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AAkB,CAAC,eAAe,KAAG,IACtB,EAEpB,iBAAiB,EACf,MAAC,eAAe,eACd,KAAC,kBAAkB,CAAC,YAAY,KAAG,EACnC,KAAC,kBAAkB,CAAC,aAAa,KAAG,EACpC,KAAC,kBAAkB,CAAC,eAAe,KAAG,IACtB,EAEpB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE;gBACT,QAAQ,EAAE,KAAC,kBAAkB,CAAC,gCAAgC,KAAG;gBACjE,eAAe,EAAE,MAAM;gBACvB,iBAAiB,EAAE,GAAG,EAAE;oBACtB,WAAW;gBACb,CAAC;gBACD,kBAAkB,EAAE,SAAS;gBAC7B,cAAc,EAAE,GAAG;aACpB,EACD,aAAa,EAAE,KAAC,kBAAkB,CAAC,cAAc,KAAG,EACpD,cAAc,EAAE,KAAC,kBAAkB,CAAC,qBAAqB,KAAG,EAC5D,SAAS,EAAE,gBAAgB,GAC3B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) "Neo4j"
|
|
5
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
-
*
|
|
7
|
-
* This file is part of Neo4j.
|
|
8
|
-
*
|
|
9
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
-
* it under the terms of the GNU General Public License as published by
|
|
11
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
* (at your option) any later version.
|
|
13
|
-
*
|
|
14
|
-
* This program is distributed in the hope that it will be useful,
|
|
15
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
* GNU General Public License for more details.
|
|
18
|
-
*
|
|
19
|
-
* You should have received a copy of the GNU General Public License
|
|
20
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
-
*/
|
|
22
|
-
import { useState } from 'react';
|
|
23
|
-
import { GraphVisualization } from '../graph-visualization';
|
|
24
|
-
import { containerClasses, StoryGraph } from './story-data';
|
|
25
|
-
const Component = () => {
|
|
26
|
-
const [selectedNodeIds, setSelectedNodeIds] = useState();
|
|
27
|
-
const [selectedRelationshipIds, setSelectedRelationshipIds] = useState();
|
|
28
|
-
return (_jsx("div", { style: { height: '600px' }, children: _jsx(GraphVisualization, { nodes: StoryGraph.nodes, rels: StoryGraph.rels, className: containerClasses, topRightIsland: _jsx(GraphVisualization.SearchButton, { onSearch: (nodeIds, relationshipIds) => {
|
|
29
|
-
setSelectedNodeIds(nodeIds);
|
|
30
|
-
setSelectedRelationshipIds(relationshipIds);
|
|
31
|
-
} }), highlightedNodeIds: selectedNodeIds, highlightedRelationshipIds: selectedRelationshipIds }) }));
|
|
32
|
-
};
|
|
33
|
-
export default Component;
|
|
34
|
-
//# sourceMappingURL=graph-visualization-search.story.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization-search.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-search.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,EAEnD,CAAC;IACJ,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,QAAQ,EAEnE,CAAC;IAEJ,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAC7B,KAAC,kBAAkB,IACjB,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,SAAS,EAAE,gBAAgB,EAC3B,cAAc,EACZ,KAAC,kBAAkB,CAAC,YAAY,IAC9B,QAAQ,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE;oBACrC,kBAAkB,CAAC,OAAO,CAAC,CAAC;oBAC5B,0BAA0B,CAAC,eAAe,CAAC,CAAC;gBAC9C,CAAC,GACD,EAEJ,kBAAkB,EAAE,eAAe,EACnC,0BAA0B,EAAE,uBAAuB,GACnD,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,109 +0,0 @@
|
|
|
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 { GraphVisualizationBarebones, GraphVisualizationBarebonesSrc, GraphVisualizationCustom, GraphVisualizationCustomSrc, GraphVisualizationDefault, GraphVisualizationDefaultSrc, GraphVisualizationHighlighting, GraphVisualizationHighlightingSrc, GraphVisualizationMaximalist, GraphVisualizationMaximalistSrc, GraphVisualizationSearch, GraphVisualizationSearchSrc, } from '.';
|
|
22
|
-
const componentMeta = {
|
|
23
|
-
parameters: {
|
|
24
|
-
controls: { disable: true },
|
|
25
|
-
},
|
|
26
|
-
tags: ['docsPage'],
|
|
27
|
-
title: 'Components/Next/GraphVisualization',
|
|
28
|
-
id: 'components-next-graph-visualization',
|
|
29
|
-
};
|
|
30
|
-
export default componentMeta;
|
|
31
|
-
export const Default = {
|
|
32
|
-
args: {},
|
|
33
|
-
parameters: {
|
|
34
|
-
docs: {
|
|
35
|
-
source: {
|
|
36
|
-
code: GraphVisualizationDefaultSrc,
|
|
37
|
-
language: 'tsx',
|
|
38
|
-
type: 'code',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
render: GraphVisualizationDefault,
|
|
43
|
-
};
|
|
44
|
-
export const Barebones = {
|
|
45
|
-
args: {},
|
|
46
|
-
parameters: {
|
|
47
|
-
docs: {
|
|
48
|
-
source: {
|
|
49
|
-
code: GraphVisualizationBarebonesSrc,
|
|
50
|
-
language: 'tsx',
|
|
51
|
-
type: 'code',
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
render: GraphVisualizationBarebones,
|
|
56
|
-
};
|
|
57
|
-
export const Maximalist = {
|
|
58
|
-
args: {},
|
|
59
|
-
parameters: {
|
|
60
|
-
docs: {
|
|
61
|
-
source: {
|
|
62
|
-
code: GraphVisualizationMaximalistSrc,
|
|
63
|
-
language: 'tsx',
|
|
64
|
-
type: 'code',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
render: GraphVisualizationMaximalist,
|
|
69
|
-
};
|
|
70
|
-
export const CustomIslands = {
|
|
71
|
-
args: {},
|
|
72
|
-
parameters: {
|
|
73
|
-
docs: {
|
|
74
|
-
source: {
|
|
75
|
-
code: GraphVisualizationCustomSrc,
|
|
76
|
-
language: 'tsx',
|
|
77
|
-
type: 'code',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
render: GraphVisualizationCustom,
|
|
82
|
-
};
|
|
83
|
-
export const Highlighting = {
|
|
84
|
-
args: {},
|
|
85
|
-
parameters: {
|
|
86
|
-
docs: {
|
|
87
|
-
source: {
|
|
88
|
-
code: GraphVisualizationHighlightingSrc,
|
|
89
|
-
language: 'tsx',
|
|
90
|
-
type: 'code',
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
render: GraphVisualizationHighlighting,
|
|
95
|
-
};
|
|
96
|
-
export const Search = {
|
|
97
|
-
args: {},
|
|
98
|
-
parameters: {
|
|
99
|
-
docs: {
|
|
100
|
-
source: {
|
|
101
|
-
code: GraphVisualizationSearchSrc,
|
|
102
|
-
language: 'tsx',
|
|
103
|
-
type: 'code',
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
render: GraphVisualizationSearch,
|
|
108
|
-
};
|
|
109
|
-
//# sourceMappingURL=graph-visualization.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization.stories.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,EAC9B,iCAAiC,EACjC,4BAA4B,EAC5B,+BAA+B,EAC/B,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,GAAG,CAAC;AAEX,MAAM,aAAa,GAAG;IACpB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,oCAAoC;IAC3C,EAAE,EAAE,qCAAqC;CAC1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C,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,2BAA2B;gBACjC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,wBAAwB;CACjC,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 { default as GraphVisualizationBarebones } from './graph-visualization-barebones.story';
|
|
22
|
-
export { default as GraphVisualizationCustom } from './graph-visualization-custom.story';
|
|
23
|
-
export { default as GraphVisualizationDefault } from './graph-visualization-default.story';
|
|
24
|
-
export { default as GraphVisualizationHighlighting } from './graph-visualization-highlighting.story';
|
|
25
|
-
export { default as GraphVisualizationSearch } from './graph-visualization-search.story';
|
|
26
|
-
export { default as GraphVisualizationMaximalist } from './graph-visualization-maximalist.story';
|
|
27
|
-
import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
|
|
28
|
-
import GraphVisualizationBarebonesSrcRaw from './graph-visualization-barebones.story?raw';
|
|
29
|
-
import GraphVisualizationCustomSrcRaw from './graph-visualization-custom.story?raw';
|
|
30
|
-
import GraphVisualizationDefaultSrcRaw from './graph-visualization-default.story?raw';
|
|
31
|
-
import GraphVisualizationHighlightingSrcRaw from './graph-visualization-highlighting.story?raw';
|
|
32
|
-
import GraphVisualizationMaximalistSrcRaw from './graph-visualization-maximalist.story?raw';
|
|
33
|
-
import GraphVisualizationSearchSrcRaw from './graph-visualization-search.story?raw';
|
|
34
|
-
export const GraphVisualizationDefaultSrc = removeLicenseHeader(GraphVisualizationDefaultSrcRaw);
|
|
35
|
-
export const GraphVisualizationBarebonesSrc = removeLicenseHeader(GraphVisualizationBarebonesSrcRaw);
|
|
36
|
-
export const GraphVisualizationMaximalistSrc = removeLicenseHeader(GraphVisualizationMaximalistSrcRaw);
|
|
37
|
-
export const GraphVisualizationCustomSrc = removeLicenseHeader(GraphVisualizationCustomSrcRaw);
|
|
38
|
-
export const GraphVisualizationHighlightingSrc = removeLicenseHeader(GraphVisualizationHighlightingSrcRaw);
|
|
39
|
-
export const GraphVisualizationSearchSrc = removeLicenseHeader(GraphVisualizationSearchSrcRaw);
|
|
40
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAEjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,iCAAiC,MAAM,2CAA2C,CAAC;AAC1F,OAAO,8BAA8B,MAAM,wCAAwC,CAAC;AACpF,OAAO,+BAA+B,MAAM,yCAAyC,CAAC;AACtF,OAAO,oCAAoC,MAAM,8CAA8C,CAAC;AAChG,OAAO,kCAAkC,MAAM,4CAA4C,CAAC;AAC5F,OAAO,8BAA8B,MAAM,wCAAwC,CAAC;AAEpF,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAC7D,+BAA+B,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,mBAAmB,CAC/D,iCAAiC,CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAChE,kCAAkC,CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAC5D,8BAA8B,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,mBAAmB,CAClE,oCAAoC,CACrC,CAAC;AACF,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAC5D,8BAA8B,CAC/B,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
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 const StoryGraph = {
|
|
22
|
-
nodes: [
|
|
23
|
-
{
|
|
24
|
-
id: 'node1',
|
|
25
|
-
labels: ['Pokemon', 'Legendary'],
|
|
26
|
-
properties: {
|
|
27
|
-
durationToWinBattle: {
|
|
28
|
-
stringified: 'P0M0DT0.000000001S',
|
|
29
|
-
type: 'duration',
|
|
30
|
-
},
|
|
31
|
-
favoriteColors: {
|
|
32
|
-
stringified: '["red", "blue", "green"]',
|
|
33
|
-
type: 'list',
|
|
34
|
-
},
|
|
35
|
-
getsBeatBy: {
|
|
36
|
-
stringified: 'null',
|
|
37
|
-
type: 'null',
|
|
38
|
-
},
|
|
39
|
-
isAwesome: {
|
|
40
|
-
stringified: 'true',
|
|
41
|
-
type: 'boolean',
|
|
42
|
-
},
|
|
43
|
-
location: {
|
|
44
|
-
stringified: 'point({srid:1, x:100, y:200, z:300})',
|
|
45
|
-
type: 'point',
|
|
46
|
-
},
|
|
47
|
-
name: {
|
|
48
|
-
stringified: '"Rayquaza"',
|
|
49
|
-
type: 'string',
|
|
50
|
-
},
|
|
51
|
-
weight: {
|
|
52
|
-
stringified: '392.0',
|
|
53
|
-
type: 'float',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: 'node2',
|
|
59
|
-
labels: ['Type'],
|
|
60
|
-
properties: { name: { stringified: 'Dragon', type: 'String' } },
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: 'node3',
|
|
64
|
-
labels: ['Type'],
|
|
65
|
-
properties: { name: { stringified: 'Flying', type: 'String' } },
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
rels: [
|
|
69
|
-
{
|
|
70
|
-
from: 'node1',
|
|
71
|
-
id: 'rel1',
|
|
72
|
-
properties: {},
|
|
73
|
-
to: 'node2',
|
|
74
|
-
type: 'HAS_TYPE',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
from: 'node1',
|
|
78
|
-
id: 'rel2',
|
|
79
|
-
properties: {},
|
|
80
|
-
to: 'node3',
|
|
81
|
-
type: 'HAS_TYPE',
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
};
|
|
85
|
-
export const containerClasses = 'n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border';
|
|
86
|
-
//# sourceMappingURL=story-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"story-data.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/story-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,MAAM,CAAC,MAAM,UAAU,GAAyC;IAC9D,KAAK,EAAE;QACL;YACE,EAAE,EAAE,OAAO;YACX,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;YAChC,UAAU,EAAE;gBACV,mBAAmB,EAAE;oBACnB,WAAW,EAAE,oBAAoB;oBACjC,IAAI,EAAE,UAAU;iBACjB;gBACD,cAAc,EAAE;oBACd,WAAW,EAAE,0BAA0B;oBACvC,IAAI,EAAE,MAAM;iBACb;gBACD,UAAU,EAAE;oBACV,WAAW,EAAE,MAAM;oBACnB,IAAI,EAAE,MAAM;iBACb;gBACD,SAAS,EAAE;oBACT,WAAW,EAAE,MAAM;oBACnB,IAAI,EAAE,SAAS;iBAChB;gBACD,QAAQ,EAAE;oBACR,WAAW,EAAE,sCAAsC;oBACnD,IAAI,EAAE,OAAO;iBACd;gBACD,IAAI,EAAE;oBACJ,WAAW,EAAE,YAAY;oBACzB,IAAI,EAAE,QAAQ;iBACf;gBACD,MAAM,EAAE;oBACN,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;iBACd;aACF;SACF;QACD;YACE,EAAE,EAAE,OAAO;YACX,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SAChE;QACD;YACE,EAAE,EAAE,OAAO;YACX,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SAChE;KACF;IACD,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,MAAM;YACV,UAAU,EAAE,EAAE;YACd,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,UAAU;SACjB;QACD;YACE,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,MAAM;YACV,UAAU,EAAE,EAAE;YACd,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,UAAU;SACjB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAC3B,4EAA4E,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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;
|
|
@@ -1,23 +0,0 @@
|
|
|
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;
|