@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.
Files changed (62) hide show
  1. package/lib/{types/graph-visualization/stories/graph-visualization-barebones.story.d.ts → cjs/_common/index.js} +3 -3
  2. package/lib/cjs/_common/index.js.map +1 -0
  3. package/lib/cjs/graph-visualization/graph-visualization.js +0 -1
  4. package/lib/cjs/graph-visualization/graph-visualization.js.map +1 -1
  5. package/lib/cjs/index.js +1 -0
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/{types/graph-visualization/stories/graph-visualization-search.story.d.ts → esm/_common/index.js} +2 -2
  8. package/lib/esm/_common/index.js.map +1 -0
  9. package/lib/esm/graph-visualization/graph-visualization.js +0 -1
  10. package/lib/esm/graph-visualization/graph-visualization.js.map +1 -1
  11. package/lib/esm/index.js +1 -0
  12. package/lib/esm/index.js.map +1 -1
  13. package/lib/types/{graph-visualization/stories/graph-visualization-highlighting.story.d.ts → _common/index.d.ts} +1 -2
  14. package/lib/types/accordion/stories/accordion.stories.d.ts +2 -2
  15. package/lib/types/drawer/stories/drawer.stories.d.ts +3 -3
  16. package/lib/types/graph-visualization/graph-visualization.d.ts +9 -10
  17. package/lib/types/index.d.ts +1 -0
  18. package/lib/types/next/breadcrumbs/stories/breadcrumbs.stories.d.ts +7 -7
  19. package/lib/types/next/side-navigation/stories/side-nav.stories.d.ts +5 -5
  20. package/package.json +7 -7
  21. package/lib/cjs/graph-visualization/stories/graph-visualization-barebones.story.js +0 -93
  22. package/lib/cjs/graph-visualization/stories/graph-visualization-barebones.story.js.map +0 -1
  23. package/lib/cjs/graph-visualization/stories/graph-visualization-custom.story.js +0 -74
  24. package/lib/cjs/graph-visualization/stories/graph-visualization-custom.story.js.map +0 -1
  25. package/lib/cjs/graph-visualization/stories/graph-visualization-default.story.js +0 -93
  26. package/lib/cjs/graph-visualization/stories/graph-visualization-default.story.js.map +0 -1
  27. package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js +0 -30
  28. package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js.map +0 -1
  29. package/lib/cjs/graph-visualization/stories/graph-visualization-maximalist.story.js +0 -105
  30. package/lib/cjs/graph-visualization/stories/graph-visualization-maximalist.story.js.map +0 -1
  31. package/lib/cjs/graph-visualization/stories/graph-visualization-search.story.js +0 -36
  32. package/lib/cjs/graph-visualization/stories/graph-visualization-search.story.js.map +0 -1
  33. package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js +0 -112
  34. package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js.map +0 -1
  35. package/lib/cjs/graph-visualization/stories/index.js +0 -52
  36. package/lib/cjs/graph-visualization/stories/index.js.map +0 -1
  37. package/lib/cjs/graph-visualization/stories/story-data.js +0 -89
  38. package/lib/cjs/graph-visualization/stories/story-data.js.map +0 -1
  39. package/lib/esm/graph-visualization/stories/graph-visualization-barebones.story.js +0 -90
  40. package/lib/esm/graph-visualization/stories/graph-visualization-barebones.story.js.map +0 -1
  41. package/lib/esm/graph-visualization/stories/graph-visualization-custom.story.js +0 -71
  42. package/lib/esm/graph-visualization/stories/graph-visualization-custom.story.js.map +0 -1
  43. package/lib/esm/graph-visualization/stories/graph-visualization-default.story.js +0 -90
  44. package/lib/esm/graph-visualization/stories/graph-visualization-default.story.js.map +0 -1
  45. package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js +0 -28
  46. package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js.map +0 -1
  47. package/lib/esm/graph-visualization/stories/graph-visualization-maximalist.story.js +0 -102
  48. package/lib/esm/graph-visualization/stories/graph-visualization-maximalist.story.js.map +0 -1
  49. package/lib/esm/graph-visualization/stories/graph-visualization-search.story.js +0 -34
  50. package/lib/esm/graph-visualization/stories/graph-visualization-search.story.js.map +0 -1
  51. package/lib/esm/graph-visualization/stories/graph-visualization.stories.js +0 -109
  52. package/lib/esm/graph-visualization/stories/graph-visualization.stories.js.map +0 -1
  53. package/lib/esm/graph-visualization/stories/index.js +0 -40
  54. package/lib/esm/graph-visualization/stories/index.js.map +0 -1
  55. package/lib/esm/graph-visualization/stories/story-data.js +0 -86
  56. package/lib/esm/graph-visualization/stories/story-data.js.map +0 -1
  57. package/lib/types/graph-visualization/stories/graph-visualization-custom.story.d.ts +0 -23
  58. package/lib/types/graph-visualization/stories/graph-visualization-default.story.d.ts +0 -23
  59. package/lib/types/graph-visualization/stories/graph-visualization-maximalist.story.d.ts +0 -23
  60. package/lib/types/graph-visualization/stories/graph-visualization.stories.d.ts +0 -39
  61. package/lib/types/graph-visualization/stories/index.d.ts +0 -32
  62. package/lib/types/graph-visualization/stories/story-data.d.ts +0 -26
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.containerClasses = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- /**
6
- *
7
- * Copyright (c) "Neo4j"
8
- * Neo4j Sweden AB [http://neo4j.com]
9
- *
10
- * This file is part of Neo4j.
11
- *
12
- * Neo4j is free software: you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation, either version 3 of the License, or
15
- * (at your option) any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
24
- */
25
- const graph_visualization_1 = require("../graph-visualization");
26
- const nodes = [
27
- {
28
- id: 'node1',
29
- labels: ['Pokemon', 'Legendary'],
30
- properties: {
31
- durationToWinBattle: {
32
- stringified: 'P0M0DT0.000000001S',
33
- type: 'duration',
34
- },
35
- favoriteColors: {
36
- stringified: '["red", "blue", "green"]',
37
- type: 'list',
38
- },
39
- getsBeatBy: {
40
- stringified: 'null',
41
- type: 'null',
42
- },
43
- isAwesome: {
44
- stringified: 'true',
45
- type: 'boolean',
46
- },
47
- location: {
48
- stringified: 'point({srid:1, x:100, y:200, z:300})',
49
- type: 'point',
50
- },
51
- name: {
52
- stringified: '"Rayquaza"',
53
- type: 'string',
54
- },
55
- weight: {
56
- stringified: '392.0',
57
- type: 'float',
58
- },
59
- },
60
- },
61
- {
62
- id: 'node2',
63
- labels: ['Type'],
64
- properties: { name: { stringified: 'Dragon', type: 'String' } },
65
- },
66
- {
67
- id: 'node3',
68
- labels: ['Type'],
69
- properties: { name: { stringified: 'Flying', type: 'String' } },
70
- },
71
- ];
72
- const rels = [
73
- {
74
- from: 'node1',
75
- id: 'rel1',
76
- properties: {},
77
- to: 'node2',
78
- type: 'HAS_TYPE',
79
- },
80
- {
81
- from: 'node1',
82
- id: 'rel2',
83
- properties: {},
84
- to: 'node3',
85
- type: 'HAS_TYPE',
86
- },
87
- ];
88
- exports.containerClasses = 'n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border';
89
- const Component = () => {
90
- return ((0, jsx_runtime_1.jsx)("div", { style: { height: '600px' }, children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization, { nodes: nodes, rels: rels, className: exports.containerClasses }) }));
91
- };
92
- exports.default = Component;
93
- //# 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,gEAA4D;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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,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,wBAAgB,GAC3B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- /**
5
- *
6
- * Copyright (c) "Neo4j"
7
- * Neo4j Sweden AB [http://neo4j.com]
8
- *
9
- * This file is part of Neo4j.
10
- *
11
- * Neo4j is free software: you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation, either version 3 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
- */
24
- const graph_visualization_1 = require("../graph-visualization");
25
- const story_data_1 = require("./story-data");
26
- const Component = () => {
27
- return ((0, jsx_runtime_1.jsx)("div", { style: { height: '600px' }, children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization, { nodes: story_data_1.StoryGraph.nodes, rels: story_data_1.StoryGraph.rels, className: story_data_1.containerClasses, highlightedNodeIds: ['node1'], highlightedRelationshipIds: [] }) }));
28
- };
29
- exports.default = Component;
30
- //# 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,gEAA4D;AAC5D,6CAA4D;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,gCAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAC7B,uBAAC,wCAAkB,IACjB,KAAK,EAAE,uBAAU,CAAC,KAAK,EACvB,IAAI,EAAE,uBAAU,CAAC,IAAI,EACrB,SAAS,EAAE,6BAAgB,EAC3B,kBAAkB,EAAE,CAAC,OAAO,CAAC,EAC7B,0BAA0B,EAAE,EAAE,GAC9B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -1,105 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.containerClasses = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- /**
6
- *
7
- * Copyright (c) "Neo4j"
8
- * Neo4j Sweden AB [http://neo4j.com]
9
- *
10
- * This file is part of Neo4j.
11
- *
12
- * Neo4j is free software: you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation, either version 3 of the License, or
15
- * (at your option) any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
24
- */
25
- const react_1 = require("@neo4j-ndl/react");
26
- const react_2 = require("react");
27
- const graph_visualization_1 = require("../graph-visualization");
28
- const nodes = [
29
- {
30
- id: 'node1',
31
- labels: ['Pokemon', 'Legendary'],
32
- properties: {
33
- durationToWinBattle: {
34
- stringified: 'P0M0DT0.000000001S',
35
- type: 'duration',
36
- },
37
- favoriteColors: {
38
- stringified: '["red", "blue", "green"]',
39
- type: 'list',
40
- },
41
- getsBeatBy: {
42
- stringified: 'null',
43
- type: 'null',
44
- },
45
- isAwesome: {
46
- stringified: 'true',
47
- type: 'boolean',
48
- },
49
- location: {
50
- stringified: 'point({srid:1, x:100, y:200, z:300})',
51
- type: 'point',
52
- },
53
- name: {
54
- stringified: '"Rayquaza"',
55
- type: 'string',
56
- },
57
- weight: {
58
- stringified: '392.0',
59
- type: 'float',
60
- },
61
- },
62
- },
63
- {
64
- id: 'node2',
65
- labels: ['Type'],
66
- properties: { name: { stringified: 'Dragon', type: 'String' } },
67
- },
68
- {
69
- id: 'node3',
70
- labels: ['Type'],
71
- properties: { name: { stringified: 'Flying', type: 'String' } },
72
- },
73
- ];
74
- const rels = [
75
- {
76
- from: 'node1',
77
- id: 'rel1',
78
- properties: {},
79
- to: 'node2',
80
- type: 'HAS_TYPE',
81
- },
82
- {
83
- from: 'node1',
84
- id: 'rel2',
85
- properties: {},
86
- to: 'node3',
87
- type: 'HAS_TYPE',
88
- },
89
- ];
90
- exports.containerClasses = 'n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border';
91
- const Component = () => {
92
- const [isOpen, setIsOpen] = (0, react_2.useState)(true);
93
- const [gesture, setGesture] = (0, react_2.useState)('box');
94
- return ((0, jsx_runtime_1.jsx)("div", { style: { height: '600px' }, children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization, { gesture: gesture, setGesture: setGesture, bottomLeftIsland: (0, jsx_runtime_1.jsxs)(react_1.IconButtonArray, { children: [(0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.LassoSelectButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.SingleSelectButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.BoxSelectButton, {})] }), bottomRightIsland: (0, jsx_runtime_1.jsxs)(react_1.IconButtonArray, { children: [(0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.ZoomInButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.ZoomOutButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.ZoomToFitButton, {})] }), nodes: nodes, rels: rels, sidepanel: {
95
- children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.SingleSelectionSidePanelContents, {}),
96
- isSidePanelOpen: isOpen,
97
- onSidePanelResize: () => {
98
- /* no op */
99
- },
100
- setIsSidePanelOpen: setIsOpen,
101
- sidePanelWidth: 300,
102
- }, topLeftIsland: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.DownloadButton, {}), topRightIsland: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.ToggleSidePanelButton, {}), className: exports.containerClasses }) }));
103
- };
104
- exports.default = Component;
105
- //# 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,4CAAmD;AACnD,iCAAiC;AAEjC,gEAA4D;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,OAA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,EACnC,uBAAC,wCAAkB,CAAC,aAAa,KAAG,EACpC,uBAAC,wCAAkB,CAAC,eAAe,KAAG,IACtB,EAEpB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE;gBACT,QAAQ,EAAE,uBAAC,wCAAkB,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,uBAAC,wCAAkB,CAAC,cAAc,KAAG,EACpD,cAAc,EAAE,uBAAC,wCAAkB,CAAC,qBAAqB,KAAG,EAC5D,SAAS,EAAE,wBAAgB,GAC3B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- /**
5
- *
6
- * Copyright (c) "Neo4j"
7
- * Neo4j Sweden AB [http://neo4j.com]
8
- *
9
- * This file is part of Neo4j.
10
- *
11
- * Neo4j is free software: you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation, either version 3 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
- */
24
- const react_1 = require("react");
25
- const graph_visualization_1 = require("../graph-visualization");
26
- const story_data_1 = require("./story-data");
27
- const Component = () => {
28
- const [selectedNodeIds, setSelectedNodeIds] = (0, react_1.useState)();
29
- const [selectedRelationshipIds, setSelectedRelationshipIds] = (0, react_1.useState)();
30
- return ((0, jsx_runtime_1.jsx)("div", { style: { height: '600px' }, children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization, { nodes: story_data_1.StoryGraph.nodes, rels: story_data_1.StoryGraph.rels, className: story_data_1.containerClasses, topRightIsland: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.SearchButton, { onSearch: (nodeIds, relationshipIds) => {
31
- setSelectedNodeIds(nodeIds);
32
- setSelectedRelationshipIds(relationshipIds);
33
- } }), highlightedNodeIds: selectedNodeIds, highlightedRelationshipIds: selectedRelationshipIds }) }));
34
- };
35
- exports.default = Component;
36
- //# 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,iCAAiC;AAEjC,gEAA4D;AAC5D,6CAA4D;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,GAEnD,CAAC;IACJ,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,IAAA,gBAAQ,GAEnE,CAAC;IAEJ,OAAO,CACL,gCAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAC7B,uBAAC,wCAAkB,IACjB,KAAK,EAAE,uBAAU,CAAC,KAAK,EACvB,IAAI,EAAE,uBAAU,CAAC,IAAI,EACrB,SAAS,EAAE,6BAAgB,EAC3B,cAAc,EACZ,uBAAC,wCAAkB,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,kBAAe,SAAS,CAAC"}
@@ -1,112 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.Search = exports.Highlighting = exports.CustomIslands = exports.Maximalist = exports.Barebones = exports.Default = void 0;
24
- const _1 = require(".");
25
- const componentMeta = {
26
- parameters: {
27
- controls: { disable: true },
28
- },
29
- tags: ['docsPage'],
30
- title: 'Components/Next/GraphVisualization',
31
- id: 'components-next-graph-visualization',
32
- };
33
- exports.default = componentMeta;
34
- exports.Default = {
35
- args: {},
36
- parameters: {
37
- docs: {
38
- source: {
39
- code: _1.GraphVisualizationDefaultSrc,
40
- language: 'tsx',
41
- type: 'code',
42
- },
43
- },
44
- },
45
- render: _1.GraphVisualizationDefault,
46
- };
47
- exports.Barebones = {
48
- args: {},
49
- parameters: {
50
- docs: {
51
- source: {
52
- code: _1.GraphVisualizationBarebonesSrc,
53
- language: 'tsx',
54
- type: 'code',
55
- },
56
- },
57
- },
58
- render: _1.GraphVisualizationBarebones,
59
- };
60
- exports.Maximalist = {
61
- args: {},
62
- parameters: {
63
- docs: {
64
- source: {
65
- code: _1.GraphVisualizationMaximalistSrc,
66
- language: 'tsx',
67
- type: 'code',
68
- },
69
- },
70
- },
71
- render: _1.GraphVisualizationMaximalist,
72
- };
73
- exports.CustomIslands = {
74
- args: {},
75
- parameters: {
76
- docs: {
77
- source: {
78
- code: _1.GraphVisualizationCustomSrc,
79
- language: 'tsx',
80
- type: 'code',
81
- },
82
- },
83
- },
84
- render: _1.GraphVisualizationCustom,
85
- };
86
- exports.Highlighting = {
87
- args: {},
88
- parameters: {
89
- docs: {
90
- source: {
91
- code: _1.GraphVisualizationHighlightingSrc,
92
- language: 'tsx',
93
- type: 'code',
94
- },
95
- },
96
- },
97
- render: _1.GraphVisualizationHighlighting,
98
- };
99
- exports.Search = {
100
- args: {},
101
- parameters: {
102
- docs: {
103
- source: {
104
- code: _1.GraphVisualizationSearchSrc,
105
- language: 'tsx',
106
- type: 'code',
107
- },
108
- },
109
- },
110
- render: _1.GraphVisualizationSearch,
111
- };
112
- //# 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,wBAaW;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;CAC1C,CAAC;AAEF,kBAAe,aAAa,CAAC;AAGhB,QAAA,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,+BAA4B;gBAClC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,4BAAyB;CAClC,CAAC;AAEW,QAAA,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,iCAA8B;gBACpC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,8BAA2B;CACpC,CAAC;AAEW,QAAA,UAAU,GAAU;IAC/B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,kCAA+B;gBACrC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,+BAA4B;CACrC,CAAC;AAEW,QAAA,aAAa,GAAU;IAClC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,8BAA2B;gBACjC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,2BAAwB;CACjC,CAAC;AAEW,QAAA,YAAY,GAAU;IACjC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,oCAAiC;gBACvC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,iCAA8B;CACvC,CAAC;AAEW,QAAA,MAAM,GAAU;IAC3B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,8BAA2B;gBACjC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,2BAAwB;CACjC,CAAC"}
@@ -1,52 +0,0 @@
1
- "use strict";
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
23
- return (mod && mod.__esModule) ? mod : { "default": mod };
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.GraphVisualizationSearchSrc = exports.GraphVisualizationHighlightingSrc = exports.GraphVisualizationCustomSrc = exports.GraphVisualizationMaximalistSrc = exports.GraphVisualizationBarebonesSrc = exports.GraphVisualizationDefaultSrc = exports.GraphVisualizationMaximalist = exports.GraphVisualizationSearch = exports.GraphVisualizationHighlighting = exports.GraphVisualizationDefault = exports.GraphVisualizationCustom = exports.GraphVisualizationBarebones = void 0;
27
- var graph_visualization_barebones_story_1 = require("./graph-visualization-barebones.story");
28
- Object.defineProperty(exports, "GraphVisualizationBarebones", { enumerable: true, get: function () { return __importDefault(graph_visualization_barebones_story_1).default; } });
29
- var graph_visualization_custom_story_1 = require("./graph-visualization-custom.story");
30
- Object.defineProperty(exports, "GraphVisualizationCustom", { enumerable: true, get: function () { return __importDefault(graph_visualization_custom_story_1).default; } });
31
- var graph_visualization_default_story_1 = require("./graph-visualization-default.story");
32
- Object.defineProperty(exports, "GraphVisualizationDefault", { enumerable: true, get: function () { return __importDefault(graph_visualization_default_story_1).default; } });
33
- var graph_visualization_highlighting_story_1 = require("./graph-visualization-highlighting.story");
34
- Object.defineProperty(exports, "GraphVisualizationHighlighting", { enumerable: true, get: function () { return __importDefault(graph_visualization_highlighting_story_1).default; } });
35
- var graph_visualization_search_story_1 = require("./graph-visualization-search.story");
36
- Object.defineProperty(exports, "GraphVisualizationSearch", { enumerable: true, get: function () { return __importDefault(graph_visualization_search_story_1).default; } });
37
- var graph_visualization_maximalist_story_1 = require("./graph-visualization-maximalist.story");
38
- Object.defineProperty(exports, "GraphVisualizationMaximalist", { enumerable: true, get: function () { return __importDefault(graph_visualization_maximalist_story_1).default; } });
39
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
40
- const graph_visualization_barebones_story_raw_1 = __importDefault(require("./graph-visualization-barebones.story?raw"));
41
- const graph_visualization_custom_story_raw_1 = __importDefault(require("./graph-visualization-custom.story?raw"));
42
- const graph_visualization_default_story_raw_1 = __importDefault(require("./graph-visualization-default.story?raw"));
43
- const graph_visualization_highlighting_story_raw_1 = __importDefault(require("./graph-visualization-highlighting.story?raw"));
44
- const graph_visualization_maximalist_story_raw_1 = __importDefault(require("./graph-visualization-maximalist.story?raw"));
45
- const graph_visualization_search_story_raw_1 = __importDefault(require("./graph-visualization-search.story?raw"));
46
- exports.GraphVisualizationDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(graph_visualization_default_story_raw_1.default);
47
- exports.GraphVisualizationBarebonesSrc = (0, export_stories_utils_1.removeLicenseHeader)(graph_visualization_barebones_story_raw_1.default);
48
- exports.GraphVisualizationMaximalistSrc = (0, export_stories_utils_1.removeLicenseHeader)(graph_visualization_maximalist_story_raw_1.default);
49
- exports.GraphVisualizationCustomSrc = (0, export_stories_utils_1.removeLicenseHeader)(graph_visualization_custom_story_raw_1.default);
50
- exports.GraphVisualizationHighlightingSrc = (0, export_stories_utils_1.removeLicenseHeader)(graph_visualization_highlighting_story_raw_1.default);
51
- exports.GraphVisualizationSearchSrc = (0, export_stories_utils_1.removeLicenseHeader)(graph_visualization_search_story_raw_1.default);
52
- //# 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,6FAA+F;AAAtF,mKAAA,OAAO,OAA+B;AAC/C,uFAAyF;AAAhF,6JAAA,OAAO,OAA4B;AAC5C,yFAA2F;AAAlF,+JAAA,OAAO,OAA6B;AAC7C,mGAAqG;AAA5F,yKAAA,OAAO,OAAkC;AAClD,uFAAyF;AAAhF,6JAAA,OAAO,OAA4B;AAC5C,+FAAiG;AAAxF,qKAAA,OAAO,OAAgC;AAEhD,wFAAoF;AAEpF,wHAA0F;AAC1F,kHAAoF;AACpF,oHAAsF;AACtF,8HAAgG;AAChG,0HAA4F;AAC5F,kHAAoF;AAEvE,QAAA,4BAA4B,GAAG,IAAA,0CAAmB,EAC7D,+CAA+B,CAChC,CAAC;AAEW,QAAA,8BAA8B,GAAG,IAAA,0CAAmB,EAC/D,iDAAiC,CAClC,CAAC;AAEW,QAAA,+BAA+B,GAAG,IAAA,0CAAmB,EAChE,kDAAkC,CACnC,CAAC;AAEW,QAAA,2BAA2B,GAAG,IAAA,0CAAmB,EAC5D,8CAA8B,CAC/B,CAAC;AAEW,QAAA,iCAAiC,GAAG,IAAA,0CAAmB,EAClE,oDAAoC,CACrC,CAAC;AACW,QAAA,2BAA2B,GAAG,IAAA,0CAAmB,EAC5D,8CAA8B,CAC/B,CAAC"}
@@ -1,89 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.containerClasses = exports.StoryGraph = void 0;
24
- exports.StoryGraph = {
25
- 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
- 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
- };
88
- exports.containerClasses = 'n-w-full n-border-palette-neutral-border-weak n-mx-2 n-rounded-lg n-border';
89
- //# 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;;;AAIU,QAAA,UAAU,GAAyC;IAC9D,KAAK,EAAE;QACL;YACE,EAAE,EAAE,OAAO;YACX,MAAM,EAAE,CAAC,SAAS,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4E,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, { bottomLeftIsland: null, bottomRightIsland: null, nodes: nodes, rels: rels, sidepanel: null, topLeftIsland: null, topRightIsland: null, className: containerClasses }) }));
88
- };
89
- export default Component;
90
- //# sourceMappingURL=graph-visualization-barebones.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph-visualization-barebones.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-barebones.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,MA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