@neo4j-ndl/react-graph 0.0.2

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 (129) hide show
  1. package/LICENSE +674 -0
  2. package/lib/LICENSES.txt +229 -0
  3. package/lib/NOTICE.txt +26 -0
  4. package/lib/cjs/graph-visualization-buttons.js +175 -0
  5. package/lib/cjs/graph-visualization-buttons.js.map +1 -0
  6. package/lib/cjs/graph-visualization-context.js +62 -0
  7. package/lib/cjs/graph-visualization-context.js.map +1 -0
  8. package/lib/cjs/graph-visualization-sidepanel.js +56 -0
  9. package/lib/cjs/graph-visualization-sidepanel.js.map +1 -0
  10. package/lib/cjs/graph-visualization.js +328 -0
  11. package/lib/cjs/graph-visualization.js.map +1 -0
  12. package/lib/cjs/index.js +28 -0
  13. package/lib/cjs/index.js.map +1 -0
  14. package/lib/cjs/map-to-nvl-graph.js +167 -0
  15. package/lib/cjs/map-to-nvl-graph.js.map +1 -0
  16. package/lib/cjs/sidepanel-components/button-group.js +96 -0
  17. package/lib/cjs/sidepanel-components/button-group.js.map +1 -0
  18. package/lib/cjs/sidepanel-components/clickable-urls.js +46 -0
  19. package/lib/cjs/sidepanel-components/clickable-urls.js.map +1 -0
  20. package/lib/cjs/sidepanel-components/details-panel.js +86 -0
  21. package/lib/cjs/sidepanel-components/details-panel.js.map +1 -0
  22. package/lib/cjs/sidepanel-components/overview-panel.js +45 -0
  23. package/lib/cjs/sidepanel-components/overview-panel.js.map +1 -0
  24. package/lib/cjs/sidepanel-components/properties-table.js +49 -0
  25. package/lib/cjs/sidepanel-components/properties-table.js.map +1 -0
  26. package/lib/cjs/sidepanel-components/show-all.js +44 -0
  27. package/lib/cjs/sidepanel-components/show-all.js.map +1 -0
  28. package/lib/cjs/sidepanel-components/single-selection-sidepanel-contents.js +35 -0
  29. package/lib/cjs/sidepanel-components/single-selection-sidepanel-contents.js.map +1 -0
  30. package/lib/cjs/stories/graph-visualization-barebones.story.js +93 -0
  31. package/lib/cjs/stories/graph-visualization-barebones.story.js.map +1 -0
  32. package/lib/cjs/stories/graph-visualization-custom.story.js +74 -0
  33. package/lib/cjs/stories/graph-visualization-custom.story.js.map +1 -0
  34. package/lib/cjs/stories/graph-visualization-default.story.js +93 -0
  35. package/lib/cjs/stories/graph-visualization-default.story.js.map +1 -0
  36. package/lib/cjs/stories/graph-visualization-highlighting.story.js +30 -0
  37. package/lib/cjs/stories/graph-visualization-highlighting.story.js.map +1 -0
  38. package/lib/cjs/stories/graph-visualization-maximalist.story.js +105 -0
  39. package/lib/cjs/stories/graph-visualization-maximalist.story.js.map +1 -0
  40. package/lib/cjs/stories/graph-visualization-search.story.js +36 -0
  41. package/lib/cjs/stories/graph-visualization-search.story.js.map +1 -0
  42. package/lib/cjs/stories/graph-visualization.stories.js +112 -0
  43. package/lib/cjs/stories/graph-visualization.stories.js.map +1 -0
  44. package/lib/cjs/stories/index.js +51 -0
  45. package/lib/cjs/stories/index.js.map +1 -0
  46. package/lib/cjs/stories/story-data.js +89 -0
  47. package/lib/cjs/stories/story-data.js.map +1 -0
  48. package/lib/cjs/use-managed-node-state.js +262 -0
  49. package/lib/cjs/use-managed-node-state.js.map +1 -0
  50. package/lib/cjs/use-semi-controlled-state.js +43 -0
  51. package/lib/cjs/use-semi-controlled-state.js.map +1 -0
  52. package/lib/cjs/utils.js +68 -0
  53. package/lib/cjs/utils.js.map +1 -0
  54. package/lib/esm/graph-visualization-buttons.js +159 -0
  55. package/lib/esm/graph-visualization-buttons.js.map +1 -0
  56. package/lib/esm/graph-visualization-context.js +58 -0
  57. package/lib/esm/graph-visualization-context.js.map +1 -0
  58. package/lib/esm/graph-visualization-sidepanel.js +52 -0
  59. package/lib/esm/graph-visualization-sidepanel.js.map +1 -0
  60. package/lib/esm/graph-visualization.js +298 -0
  61. package/lib/esm/graph-visualization.js.map +1 -0
  62. package/lib/esm/index.js +23 -0
  63. package/lib/esm/index.js.map +1 -0
  64. package/lib/esm/map-to-nvl-graph.js +162 -0
  65. package/lib/esm/map-to-nvl-graph.js.map +1 -0
  66. package/lib/esm/sidepanel-components/button-group.js +69 -0
  67. package/lib/esm/sidepanel-components/button-group.js.map +1 -0
  68. package/lib/esm/sidepanel-components/clickable-urls.js +40 -0
  69. package/lib/esm/sidepanel-components/clickable-urls.js.map +1 -0
  70. package/lib/esm/sidepanel-components/details-panel.js +82 -0
  71. package/lib/esm/sidepanel-components/details-panel.js.map +1 -0
  72. package/lib/esm/sidepanel-components/overview-panel.js +41 -0
  73. package/lib/esm/sidepanel-components/overview-panel.js.map +1 -0
  74. package/lib/esm/sidepanel-components/properties-table.js +45 -0
  75. package/lib/esm/sidepanel-components/properties-table.js.map +1 -0
  76. package/lib/esm/sidepanel-components/show-all.js +41 -0
  77. package/lib/esm/sidepanel-components/show-all.js.map +1 -0
  78. package/lib/esm/sidepanel-components/single-selection-sidepanel-contents.js +31 -0
  79. package/lib/esm/sidepanel-components/single-selection-sidepanel-contents.js.map +1 -0
  80. package/lib/esm/stories/graph-visualization-barebones.story.js +90 -0
  81. package/lib/esm/stories/graph-visualization-barebones.story.js.map +1 -0
  82. package/lib/esm/stories/graph-visualization-custom.story.js +71 -0
  83. package/lib/esm/stories/graph-visualization-custom.story.js.map +1 -0
  84. package/lib/esm/stories/graph-visualization-default.story.js +90 -0
  85. package/lib/esm/stories/graph-visualization-default.story.js.map +1 -0
  86. package/lib/esm/stories/graph-visualization-highlighting.story.js +28 -0
  87. package/lib/esm/stories/graph-visualization-highlighting.story.js.map +1 -0
  88. package/lib/esm/stories/graph-visualization-maximalist.story.js +102 -0
  89. package/lib/esm/stories/graph-visualization-maximalist.story.js.map +1 -0
  90. package/lib/esm/stories/graph-visualization-search.story.js +34 -0
  91. package/lib/esm/stories/graph-visualization-search.story.js.map +1 -0
  92. package/lib/esm/stories/graph-visualization.stories.js +109 -0
  93. package/lib/esm/stories/graph-visualization.stories.js.map +1 -0
  94. package/lib/esm/stories/index.js +39 -0
  95. package/lib/esm/stories/index.js.map +1 -0
  96. package/lib/esm/stories/story-data.js +86 -0
  97. package/lib/esm/stories/story-data.js.map +1 -0
  98. package/lib/esm/use-managed-node-state.js +259 -0
  99. package/lib/esm/use-managed-node-state.js.map +1 -0
  100. package/lib/esm/use-semi-controlled-state.js +40 -0
  101. package/lib/esm/use-semi-controlled-state.js.map +1 -0
  102. package/lib/esm/utils.js +60 -0
  103. package/lib/esm/utils.js.map +1 -0
  104. package/lib/types/graph-visualization-buttons.d.ts +56 -0
  105. package/lib/types/graph-visualization-context.d.ts +122 -0
  106. package/lib/types/graph-visualization-sidepanel.d.ts +32 -0
  107. package/lib/types/graph-visualization.d.ts +178 -0
  108. package/lib/types/index.d.ts +22 -0
  109. package/lib/types/map-to-nvl-graph.d.ts +37 -0
  110. package/lib/types/sidepanel-components/button-group.d.ts +24 -0
  111. package/lib/types/sidepanel-components/clickable-urls.d.ts +26 -0
  112. package/lib/types/sidepanel-components/details-panel.d.ts +25 -0
  113. package/lib/types/sidepanel-components/overview-panel.d.ts +21 -0
  114. package/lib/types/sidepanel-components/properties-table.d.ts +31 -0
  115. package/lib/types/sidepanel-components/show-all.d.ts +29 -0
  116. package/lib/types/sidepanel-components/single-selection-sidepanel-contents.d.ts +21 -0
  117. package/lib/types/stories/graph-visualization-barebones.story.d.ts +23 -0
  118. package/lib/types/stories/graph-visualization-custom.story.d.ts +23 -0
  119. package/lib/types/stories/graph-visualization-default.story.d.ts +23 -0
  120. package/lib/types/stories/graph-visualization-highlighting.story.d.ts +22 -0
  121. package/lib/types/stories/graph-visualization-maximalist.story.d.ts +23 -0
  122. package/lib/types/stories/graph-visualization-search.story.d.ts +22 -0
  123. package/lib/types/stories/graph-visualization.stories.d.ts +39 -0
  124. package/lib/types/stories/index.d.ts +32 -0
  125. package/lib/types/stories/story-data.d.ts +26 -0
  126. package/lib/types/use-managed-node-state.d.ts +116 -0
  127. package/lib/types/use-semi-controlled-state.d.ts +23 -0
  128. package/lib/types/utils.d.ts +29 -0
  129. package/package.json +79 -0
@@ -0,0 +1,229 @@
1
+ This file contains the full license text of the included third party
2
+ libraries. For an overview of the licenses see the NOTICE.txt file.
3
+
4
+
5
+ -----
6
+
7
+ Apache License
8
+ Version 2.0, January 2004
9
+ http://www.apache.org/licenses/
10
+
11
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
12
+
13
+ 1. Definitions.
14
+
15
+ "License" shall mean the terms and conditions for use, reproduction,
16
+ and distribution as defined by Sections 1 through 9 of this document.
17
+
18
+ "Licensor" shall mean the copyright owner or entity authorized by
19
+ the copyright owner that is granting the License.
20
+
21
+ "Legal Entity" shall mean the union of the acting entity and all
22
+ other entities that control, are controlled by, or are under common
23
+ control with that entity. For the purposes of this definition,
24
+ "control" means (i) the power, direct or indirect, to cause the
25
+ direction or management of such entity, whether by contract or
26
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
27
+ outstanding shares, or (iii) beneficial ownership of such entity.
28
+
29
+ "You" (or "Your") shall mean an individual or Legal Entity
30
+ exercising permissions granted by this License.
31
+
32
+ "Source" form shall mean the preferred form for making modifications,
33
+ including but not limited to software source code, documentation
34
+ source, and configuration files.
35
+
36
+ "Object" form shall mean any form resulting from mechanical
37
+ transformation or translation of a Source form, including but
38
+ not limited to compiled object code, generated documentation,
39
+ and conversions to other media types.
40
+
41
+ "Work" shall mean the work of authorship, whether in Source or
42
+ Object form, made available under the License, as indicated by a
43
+ copyright notice that is included in or attached to the work
44
+ (an example is provided in the Appendix below).
45
+
46
+ "Derivative Works" shall mean any work, whether in Source or Object
47
+ form, that is based on (or derived from) the Work and for which the
48
+ editorial revisions, annotations, elaborations, or other modifications
49
+ represent, as a whole, an original work of authorship. For the purposes
50
+ of this License, Derivative Works shall not include works that remain
51
+ separable from, or merely link (or bind by name) to the interfaces of,
52
+ the Work and Derivative Works thereof.
53
+
54
+ "Contribution" shall mean any work of authorship, including
55
+ the original version of the Work and any modifications or additions
56
+ to that Work or Derivative Works thereof, that is intentionally
57
+ submitted to Licensor for inclusion in the Work by the copyright owner
58
+ or by an individual or Legal Entity authorized to submit on behalf of
59
+ the copyright owner. For the purposes of this definition, "submitted"
60
+ means any form of electronic, verbal, or written communication sent
61
+ to the Licensor or its representatives, including but not limited to
62
+ communication on electronic mailing lists, source code control systems,
63
+ and issue tracking systems that are managed by, or on behalf of, the
64
+ Licensor for the purpose of discussing and improving the Work, but
65
+ excluding communication that is conspicuously marked or otherwise
66
+ designated in writing by the copyright owner as "Not a Contribution."
67
+
68
+ "Contributor" shall mean Licensor and any individual or Legal Entity
69
+ on behalf of whom a Contribution has been received by Licensor and
70
+ subsequently incorporated within the Work.
71
+
72
+ 2. Grant of Copyright License. Subject to the terms and conditions of
73
+ this License, each Contributor hereby grants to You a perpetual,
74
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75
+ copyright license to reproduce, prepare Derivative Works of,
76
+ publicly display, publicly perform, sublicense, and distribute the
77
+ Work and such Derivative Works in Source or Object form.
78
+
79
+ 3. Grant of Patent License. Subject to the terms and conditions of
80
+ this License, each Contributor hereby grants to You a perpetual,
81
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
+ (except as stated in this section) patent license to make, have made,
83
+ use, offer to sell, sell, import, and otherwise transfer the Work,
84
+ where such license applies only to those patent claims licensable
85
+ by such Contributor that are necessarily infringed by their
86
+ Contribution(s) alone or by combination of their Contribution(s)
87
+ with the Work to which such Contribution(s) was submitted. If You
88
+ institute patent litigation against any entity (including a
89
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
90
+ or a Contribution incorporated within the Work constitutes direct
91
+ or contributory patent infringement, then any patent licenses
92
+ granted to You under this License for that Work shall terminate
93
+ as of the date such litigation is filed.
94
+
95
+ 4. Redistribution. You may reproduce and distribute copies of the
96
+ Work or Derivative Works thereof in any medium, with or without
97
+ modifications, and in Source or Object form, provided that You
98
+ meet the following conditions:
99
+
100
+ (a) You must give any other recipients of the Work or
101
+ Derivative Works a copy of this License; and
102
+
103
+ (b) You must cause any modified files to carry prominent notices
104
+ stating that You changed the files; and
105
+
106
+ (c) You must retain, in the Source form of any Derivative Works
107
+ that You distribute, all copyright, patent, trademark, and
108
+ attribution notices from the Source form of the Work,
109
+ excluding those notices that do not pertain to any part of
110
+ the Derivative Works; and
111
+
112
+ (d) If the Work includes a "NOTICE" text file as part of its
113
+ distribution, then any Derivative Works that You distribute must
114
+ include a readable copy of the attribution notices contained
115
+ within such NOTICE file, excluding those notices that do not
116
+ pertain to any part of the Derivative Works, in at least one
117
+ of the following places: within a NOTICE text file distributed
118
+ as part of the Derivative Works; within the Source form or
119
+ documentation, if provided along with the Derivative Works; or,
120
+ within a display generated by the Derivative Works, if and
121
+ wherever such third-party notices normally appear. The contents
122
+ of the NOTICE file are for informational purposes only and
123
+ do not modify the License. You may add Your own attribution
124
+ notices within Derivative Works that You distribute, alongside
125
+ or as an addendum to the NOTICE text from the Work, provided
126
+ that such additional attribution notices cannot be construed
127
+ as modifying the License.
128
+
129
+ You may add Your own copyright statement to Your modifications and
130
+ may provide additional or different license terms and conditions
131
+ for use, reproduction, or distribution of Your modifications, or
132
+ for any such Derivative Works as a whole, provided Your use,
133
+ reproduction, and distribution of the Work otherwise complies with
134
+ the conditions stated in this License.
135
+
136
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
137
+ any Contribution intentionally submitted for inclusion in the Work
138
+ by You to the Licensor shall be under the terms and conditions of
139
+ this License, without any additional terms or conditions.
140
+ Notwithstanding the above, nothing herein shall supersede or modify
141
+ the terms of any separate license agreement you may have executed
142
+ with Licensor regarding such Contributions.
143
+
144
+ 6. Trademarks. This License does not grant permission to use the trade
145
+ names, trademarks, service marks, or product names of the Licensor,
146
+ except as required for reasonable and customary use in describing the
147
+ origin of the Work and reproducing the content of the NOTICE file.
148
+
149
+ 7. Disclaimer of Warranty. Unless required by applicable law or
150
+ agreed to in writing, Licensor provides the Work (and each
151
+ Contributor provides its Contributions) on an "AS IS" BASIS,
152
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
153
+ implied, including, without limitation, any warranties or conditions
154
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
155
+ PARTICULAR PURPOSE. You are solely responsible for determining the
156
+ appropriateness of using or redistributing the Work and assume any
157
+ risks associated with Your exercise of permissions under this License.
158
+
159
+ 8. Limitation of Liability. In no event and under no legal theory,
160
+ whether in tort (including negligence), contract, or otherwise,
161
+ unless required by applicable law (such as deliberate and grossly
162
+ negligent acts) or agreed to in writing, shall any Contributor be
163
+ liable to You for damages, including any direct, indirect, special,
164
+ incidental, or consequential damages of any character arising as a
165
+ result of this License or out of the use or inability to use the
166
+ Work (including but not limited to damages for loss of goodwill,
167
+ work stoppage, computer failure or malfunction, or any and all
168
+ other commercial damages or losses), even if such Contributor
169
+ has been advised of the possibility of such damages.
170
+
171
+ 9. Accepting Warranty or Additional Liability. While redistributing
172
+ the Work or Derivative Works thereof, You may choose to offer,
173
+ and charge a fee for, acceptance of support, warranty, indemnity,
174
+ or other liability obligations and/or rights consistent with this
175
+ License. However, in accepting such obligations, You may act only
176
+ on Your own behalf and on Your sole responsibility, not on behalf
177
+ of any other Contributor, and only if You agree to indemnify,
178
+ defend, and hold each Contributor harmless for any liability
179
+ incurred by, or claims asserted against, such Contributor by reason
180
+ of your accepting any such warranty or additional liability.
181
+
182
+ END OF TERMS AND CONDITIONS
183
+
184
+ APPENDIX: How to apply the Apache License to your work.
185
+
186
+ To apply the Apache License to your work, attach the following
187
+ boilerplate notice, with the fields enclosed by brackets "[]"
188
+ replaced with your own identifying information. (Don't include
189
+ the brackets!) The text should be enclosed in the appropriate
190
+ comment syntax for the file format. We also recommend that a
191
+ file or class name and description of purpose be included on the
192
+ same "printed page" as the copyright notice for easier
193
+ identification within third-party archives.
194
+
195
+ Copyright [yyyy] [name of copyright owner]
196
+
197
+ Licensed under the Apache License, Version 2.0 (the "License");
198
+ you may not use this file except in compliance with the License.
199
+ You may obtain a copy of the License at
200
+
201
+ http://www.apache.org/licenses/LICENSE-2.0
202
+
203
+ Unless required by applicable law or agreed to in writing, software
204
+ distributed under the License is distributed on an "AS IS" BASIS,
205
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
206
+ See the License for the specific language governing permissions and
207
+ limitations under the License.
208
+
209
+
210
+
211
+
212
+
213
+ ========================================================================
214
+ Apache ECharts Subcomponents:
215
+
216
+ The Apache ECharts project contains subcomponents with separate copyright
217
+ notices and license terms. Your use of the source code for these
218
+ subcomponents is also subject to the terms and conditions of the following
219
+ licenses.
220
+
221
+ BSD 3-Clause (d3.js):
222
+ The following files embed [d3.js](https://github.com/d3/d3) BSD 3-Clause:
223
+ `/src/chart/treemap/treemapLayout.ts`,
224
+ `/src/chart/tree/layoutHelper.ts`,
225
+ `/src/chart/graph/forceHelper.ts`,
226
+ `/src/util/number.ts`
227
+ See `/licenses/LICENSE-d3` for details of the license.
228
+ /home/runner/work/needle/needle/packages/react-graph:
229
+  ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command failed with exit code 1: pnpm yarn licenses generate-disclaimer --production
package/lib/NOTICE.txt ADDED
@@ -0,0 +1,26 @@
1
+ Copyright (c) "Neo4j,"
2
+ Neo4j Sweden AB [http://neo4j.com]
3
+
4
+ This product includes software ("Software") developed by Neo Technology.
5
+
6
+ The copyright in the bundled Neo4j graph database (including the
7
+ Software) is owned by Neo Technology. The Software developed and owned
8
+ by Neo Technology is licensed under the GNU GENERAL PUBLIC LICENSE
9
+ Version 3 (http://www.fsf.org/licensing/licenses/gpl-3.0.html) ("GPL")
10
+ to all third parties and that license, as required by the GPL, is
11
+ included in the LICENSE.txt file.
12
+
13
+ However, if you have executed an End User Software License and Services
14
+ Agreement or an OEM Software License and Support Services Agreement, or
15
+ another commercial license agreement with Neo Technology or one of its
16
+ affiliates (each, a "Commercial Agreement"), the terms of the license in
17
+ such Commercial Agreement will supersede the GPL and you may use the
18
+ software solely pursuant to the terms of the relevant Commercial
19
+ Agreement.
20
+
21
+ Full license texts are found in LICENSES.txt.
22
+
23
+ Third-party licenses
24
+ --------------------
25
+ /home/runner/work/needle/needle/packages/react-graph:
26
+  ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command failed with exit code 1: pnpm yarn licenses list --production
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DownloadButton = exports.SearchButton = exports.ToggleSidePanelButton = exports.ZoomToFitButton = exports.ZoomOutButton = exports.ZoomInButton = exports.LassoSelectButton = exports.BoxSelectButton = exports.SingleSelectButton = exports.GroupButton = void 0;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ /**
9
+ *
10
+ * Copyright (c) "Neo4j"
11
+ * Neo4j Sweden AB [http://neo4j.com]
12
+ *
13
+ * This file is part of Neo4j.
14
+ *
15
+ * Neo4j is free software: you can redistribute it and/or modify
16
+ * it under the terms of the GNU General Public License as published by
17
+ * the Free Software Foundation, either version 3 of the License, or
18
+ * (at your option) any later version.
19
+ *
20
+ * This program is distributed in the hope that it will be useful,
21
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ * GNU General Public License for more details.
24
+ *
25
+ * You should have received a copy of the GNU General Public License
26
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
27
+ */
28
+ const react_1 = require("@neo4j-ndl/react");
29
+ const icons_1 = require("@neo4j-ndl/react/icons");
30
+ const classnames_1 = __importDefault(require("classnames"));
31
+ const react_2 = require("react");
32
+ const graph_visualization_context_1 = require("./graph-visualization-context");
33
+ const use_semi_controlled_state_1 = require("./use-semi-controlled-state");
34
+ const utils_1 = require("./utils");
35
+ const GroupButton = (props) => {
36
+ const { isActive, ariaLabel, isDisabled, tipContent, onClick, onMouseDown, tooltipPlacement, className, style, htmlAttributes, children, } = props;
37
+ return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", placement: tooltipPlacement, isPortaled: false, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { ariaLabel: ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tipContent, size: "small", className: className, style: style, isClean: true, isGrouped: true, isActive: isActive, isDisabled: isDisabled, onClick: onClick, htmlAttributes: Object.assign({ onMouseDown }, htmlAttributes), children: children }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { style: { whiteSpace: 'nowrap' }, children: tipContent })] }));
38
+ };
39
+ exports.GroupButton = GroupButton;
40
+ const targetIsTextInput = (target) => {
41
+ if (!(target instanceof HTMLElement)) {
42
+ return false;
43
+ }
44
+ return (target.isContentEditable || ['INPUT', 'TEXTAREA'].includes(target.tagName));
45
+ };
46
+ const isEditingText = (e) => {
47
+ return targetIsTextInput(e.target);
48
+ };
49
+ const GESTURE_KEYS = {
50
+ box: 'B',
51
+ lasso: 'L',
52
+ single: 'S',
53
+ };
54
+ const useRegisterKeyboardGestureSwitcher = (gesture) => {
55
+ const { setGesture } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
56
+ const handleKeyDown = (0, react_2.useCallback)((evt) => {
57
+ if (!isEditingText(evt) && setGesture !== undefined) {
58
+ const upperKey = evt.key.toUpperCase();
59
+ if (upperKey === GESTURE_KEYS[gesture]) {
60
+ setGesture(gesture);
61
+ }
62
+ }
63
+ }, [gesture, setGesture]);
64
+ (0, react_2.useEffect)(() => {
65
+ document.addEventListener('keydown', handleKeyDown);
66
+ return () => {
67
+ document.removeEventListener('keydown', handleKeyDown);
68
+ };
69
+ }, [handleKeyDown]);
70
+ };
71
+ const NON_BREAKING_SPACE = '\u00A0';
72
+ const SingleSelectButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
73
+ const { gesture, setGesture, interactionMode } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
74
+ useRegisterKeyboardGestureSwitcher('single');
75
+ return ((0, jsx_runtime_1.jsx)(exports.GroupButton, { isActive: gesture === 'single', isDisabled: interactionMode !== 'select', ariaLabel: "Individual Select Button", tipContent: `Individual Select ${NON_BREAKING_SPACE} ${GESTURE_KEYS.single}`, onClick: () => {
76
+ setGesture === null || setGesture === void 0 ? void 0 : setGesture('single');
77
+ }, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'right', htmlAttributes: Object.assign({ 'data-testid': 'gesture-individual-select' }, htmlAttributes), className: className, style: style, children: (0, jsx_runtime_1.jsx)(icons_1.SelectIcon, { "aria-label": "Individual Select" }) }));
78
+ };
79
+ exports.SingleSelectButton = SingleSelectButton;
80
+ const BoxSelectButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
81
+ const { gesture, setGesture, interactionMode } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
82
+ useRegisterKeyboardGestureSwitcher('box');
83
+ return ((0, jsx_runtime_1.jsx)(exports.GroupButton, { isDisabled: interactionMode !== 'select' || setGesture === undefined, isActive: gesture === 'box', ariaLabel: "Box Select Button", tipContent: `Box Select ${NON_BREAKING_SPACE} ${GESTURE_KEYS.box}`, onClick: () => {
84
+ setGesture === null || setGesture === void 0 ? void 0 : setGesture('box');
85
+ }, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'right', htmlAttributes: Object.assign({ 'data-testid': 'gesture-box-select' }, htmlAttributes), className: className, style: style, children: (0, jsx_runtime_1.jsx)(icons_1.BoxSelectIcon, { "aria-label": "Box select" }) }));
86
+ };
87
+ exports.BoxSelectButton = BoxSelectButton;
88
+ const LassoSelectButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
89
+ const { gesture, setGesture, interactionMode } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
90
+ useRegisterKeyboardGestureSwitcher('lasso');
91
+ return ((0, jsx_runtime_1.jsx)(exports.GroupButton, { isDisabled: interactionMode !== 'select' || setGesture === undefined, isActive: gesture === 'lasso', ariaLabel: "Lasso Select Button", tipContent: `Lasso Select ${NON_BREAKING_SPACE} ${GESTURE_KEYS.lasso}`, onClick: () => {
92
+ setGesture === null || setGesture === void 0 ? void 0 : setGesture('lasso');
93
+ }, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'right', htmlAttributes: Object.assign({ 'data-testid': 'gesture-lasso-select' }, htmlAttributes), className: className, style: style, children: (0, jsx_runtime_1.jsx)(icons_1.LassoIcon, { "aria-label": "Lasso select" }) }));
94
+ };
95
+ exports.LassoSelectButton = LassoSelectButton;
96
+ const ZoomInButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
97
+ const { nvlInstance } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
98
+ const handleZoomIn = (0, react_2.useCallback)(() => {
99
+ var _a, _b;
100
+ (_a = nvlInstance.current) === null || _a === void 0 ? void 0 : _a.setZoom(((_b = nvlInstance.current) === null || _b === void 0 ? void 0 : _b.getScale()) * 1.3);
101
+ }, [nvlInstance]);
102
+ return ((0, jsx_runtime_1.jsx)(exports.GroupButton, { onClick: handleZoomIn, tipContent: "Zoom in", className: className, style: style, htmlAttributes: htmlAttributes, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'left', children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassPlusIconOutline, {}) }));
103
+ };
104
+ exports.ZoomInButton = ZoomInButton;
105
+ const ZoomOutButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
106
+ const { nvlInstance } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
107
+ const handleZoomOut = (0, react_2.useCallback)(() => {
108
+ var _a, _b;
109
+ (_a = nvlInstance.current) === null || _a === void 0 ? void 0 : _a.setZoom(((_b = nvlInstance.current) === null || _b === void 0 ? void 0 : _b.getScale()) * 0.7);
110
+ }, [nvlInstance]);
111
+ return ((0, jsx_runtime_1.jsx)(exports.GroupButton, { onClick: handleZoomOut, tipContent: "Zoom out", className: className, style: style, htmlAttributes: htmlAttributes, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'left', children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassMinusIconOutline, {}) }));
112
+ };
113
+ exports.ZoomOutButton = ZoomOutButton;
114
+ const ZoomToFitButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
115
+ const { nvlInstance } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
116
+ const handleZoomToFit = (0, react_2.useCallback)(() => {
117
+ var _a, _b;
118
+ (_a = nvlInstance.current) === null || _a === void 0 ? void 0 : _a.fit((_b = nvlInstance.current) === null || _b === void 0 ? void 0 : _b.getNodes().map((node) => node.id));
119
+ }, [nvlInstance]);
120
+ return ((0, jsx_runtime_1.jsx)(exports.GroupButton, { onClick: handleZoomToFit, tipContent: "Zoom to fit", className: className, style: style, htmlAttributes: htmlAttributes, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'left', children: (0, jsx_runtime_1.jsx)(icons_1.FitToScreenIcon, {}) }));
121
+ };
122
+ exports.ZoomToFitButton = ZoomToFitButton;
123
+ const ToggleSidePanelButton = ({ className, htmlAttributes, style, tooltipPlacement, }) => {
124
+ const { sidepanel } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
125
+ if (!sidepanel) {
126
+ throw new Error('Using the ToggleSidePanelButton requires having a sidepanel');
127
+ }
128
+ const { isSidePanelOpen, setIsSidePanelOpen } = sidepanel;
129
+ return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { placement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'bottom', type: "simple", isPortaled: false, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { size: "small", onClick: () => setIsSidePanelOpen === null || setIsSidePanelOpen === void 0 ? void 0 : setIsSidePanelOpen(!isSidePanelOpen), isFloating: true, ariaLabel: "Toggle node properties panel", className: (0, classnames_1.default)('ndl-graph-visualization-toggle-sidepanel', className), style: style, htmlAttributes: Object.assign({ 'aria-pressed': isSidePanelOpen }, htmlAttributes), children: (0, jsx_runtime_1.jsx)(icons_1.SidebarLineRightIcon, { className: "ndl-graph-visualization-toggle-icon" }) }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { style: { whiteSpace: 'nowrap' }, children: (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-small", children: isSidePanelOpen ? 'Close panel' : 'Open panel' }) })] }));
130
+ };
131
+ exports.ToggleSidePanelButton = ToggleSidePanelButton;
132
+ const SearchButton = ({ className, style, htmlAttributes, tooltipPlacement, open: rawOpen, setOpen: rawSetOpen, searchTerm: rawSearchTerm, setSearchTerm: rawSetSearchTerm, onSearch = () => {
133
+ // no-op
134
+ }, }) => {
135
+ const inputRef = (0, react_2.useRef)(null);
136
+ const [isOpen, setIsOpen] = (0, use_semi_controlled_state_1.useSemicontrolledState)(rawOpen !== null && rawOpen !== void 0 ? rawOpen : false, rawSetOpen);
137
+ const [searchTerm, setSearchTerm] = (0, use_semi_controlled_state_1.useSemicontrolledState)(rawSearchTerm !== null && rawSearchTerm !== void 0 ? rawSearchTerm : '', rawSetSearchTerm);
138
+ const { nvlGraph } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
139
+ const handleSearchChange = (newValue) => {
140
+ setSearchTerm(newValue);
141
+ if (newValue === '') {
142
+ onSearch(undefined, undefined);
143
+ return;
144
+ }
145
+ const rawNodes = Object.values(nvlGraph.dataLookupTable.nodes);
146
+ const rawRels = Object.values(nvlGraph.dataLookupTable.relationships);
147
+ onSearch((0, utils_1.searchNodes)(rawNodes, newValue), (0, utils_1.searchRels)(rawRels, newValue));
148
+ };
149
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isOpen ? ((0, jsx_runtime_1.jsx)(react_1.TextInput, { ref: inputRef, size: "small", leftElement: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}), rightElement: (0, jsx_runtime_1.jsx)(react_1.IconButton, { onClick: () => {
150
+ var _a;
151
+ handleSearchChange('');
152
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
153
+ }, isClean: true, ariaLabel: "Clear search", children: (0, jsx_runtime_1.jsx)(icons_1.XMarkIconOutline, {}) }), placeholder: "Search...", value: searchTerm, onChange: (e) => handleSearchChange(e.target.value), htmlAttributes: {
154
+ autoFocus: true,
155
+ onBlur: () => {
156
+ if (searchTerm === '') {
157
+ setIsOpen(false);
158
+ }
159
+ },
160
+ } })) : ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", placement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'bottom', children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { size: "small", isFloating: true, onClick: () => setIsOpen((o) => !o), ariaLabel: "Search", className: className, style: style, htmlAttributes: htmlAttributes, children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-small", children: " Search " }) })] })) }));
161
+ };
162
+ exports.SearchButton = SearchButton;
163
+ const DownloadButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
164
+ const { nvlInstance } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
165
+ const [isDownloadMenuOpen, setOpen] = (0, react_2.useState)(false);
166
+ const closeFileMenu = () => setOpen(false);
167
+ const downloadButtonRef = (0, react_2.useRef)(null);
168
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", placement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'bottom', children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { ref: downloadButtonRef, size: "small", isFloating: true, onClick: () => setOpen((o) => !o), ariaLabel: "Download", className: className, style: style, htmlAttributes: htmlAttributes, children: (0, jsx_runtime_1.jsx)(icons_1.ArrowDownTrayIconOutline, {}) }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-small", children: " Download " }) })] }), (0, jsx_runtime_1.jsx)(react_1.Menu, { isOpen: isDownloadMenuOpen, onClose: closeFileMenu, anchorRef: downloadButtonRef, children: (0, jsx_runtime_1.jsx)(react_1.Menu.Items, { children: (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Download as PNG", onClick: () => {
169
+ var _a;
170
+ (_a = nvlInstance.current) === null || _a === void 0 ? void 0 : _a.saveToFile({});
171
+ closeFileMenu();
172
+ } }) }) })] }));
173
+ };
174
+ exports.DownloadButton = DownloadButton;
175
+ //# sourceMappingURL=graph-visualization-buttons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-visualization-buttons.js","sourceRoot":"","sources":["../../src/graph-visualization-buttons.tsx"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAQ0B;AAC1B,kDAWgC;AAChC,4DAA2C;AAC3C,iCAOe;AAEf,+EAGuC;AACvC,2EAAqE;AACrE,mCAAkD;AAqB3C,MAAM,WAAW,GAAG,CAAC,KAAoC,EAAE,EAAE;IAClE,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,cAAc,EACd,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,OAAO,CACL,wBAAC,eAAO,IAAC,IA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,EACZ,cAAc,EAAE,cAAc,YAE9B,uBAAC,gCAAwB,KAAG,GACjB,GACG,EAClB,uBAAC,eAAO,CAAC,OAAO,cACd,uBAAC,kBAAU,IAAC,OAAO,EAAC,YAAY,2BAAwB,GACxC,IACV,EACV,uBAAC,YAAI,IACH,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,iBAAiB,YAE5B,uBAAC,YAAI,CAAC,KAAK,cACT,uBAAC,YAAI,CAAC,IAAI,IACR,KAAK,EAAC,iBAAiB,EACvB,OAAO,EAAE,GAAG,EAAE;;4BACZ,MAAA,WAAW,CAAC,OAAO,0CAAE,UAAU,CAAC,EAAE,CAAC,CAAC;4BACpC,aAAa,EAAE,CAAC;wBAClB,CAAC,GACD,GACS,GACR,IACN,CACJ,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,cAAc,kBAiDzB"}
@@ -0,0 +1,62 @@
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.useGraphVisualizationContext = exports.GraphVisualizationContext = void 0;
24
+ const react_1 = require("react");
25
+ exports.GraphVisualizationContext = (0, react_1.createContext)(undefined);
26
+ /**
27
+ * Hook to access the graph visualization context.
28
+ *
29
+ * This hook is used to implement custom UI components like buttons, panels, and controls
30
+ * that need access to data and functionality from the graph visualization component.
31
+ * @see {@link GraphVisualizationContextData}
32
+ *
33
+ * @returns The graph visualization context containing NVL instance, sidepanel, gestures, and graph data
34
+ * @throws Error if used outside of a GraphVisualizationContext provider
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * const NodeLoggerButton = () => {
39
+ * const { selected } = useGraphVisualizationContext();
40
+ *
41
+ * const handleClick = () => {
42
+ * console.log('Selected nodes:', selected.nodeIds);
43
+ * };
44
+ *
45
+ * return (
46
+ * <button onClick={handleClick}>
47
+ * Log Selected Nodes ({selected.nodeIds.length})
48
+ * </button>
49
+ * );
50
+ * };
51
+ * ```
52
+ * @alpha
53
+ */
54
+ const useGraphVisualizationContext = () => {
55
+ const context = (0, react_1.useContext)(exports.GraphVisualizationContext);
56
+ if (!context) {
57
+ throw new Error('useGraphVisualizationContext must be used within a GraphVisualizationContext');
58
+ }
59
+ return context;
60
+ };
61
+ exports.useGraphVisualizationContext = useGraphVisualizationContext;
62
+ //# sourceMappingURL=graph-visualization-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-visualization-context.js","sourceRoot":"","sources":["../../src/graph-visualization-context.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAIH,iCAAkD;AAuErC,QAAA,yBAAyB,GAAG,IAAA,qBAAa,EAEpD,SAAS,CAAC,CAAC;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACI,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC/C,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,iCAAyB,CAAC,CAAC;IACtD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,8EAA8E,CAC/E,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,4BAA4B,gCAQvC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphVisualizationSidepanel = 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 re_resizable_1 = require("re-resizable");
26
+ const GraphVisualizationSidepanel = ({ sidepanel, }) => {
27
+ const { children, isSidePanelOpen, sidePanelWidth, onSidePanelResize, minWidth = 230, } = sidepanel;
28
+ if (!isSidePanelOpen) {
29
+ return null;
30
+ }
31
+ return ((0, jsx_runtime_1.jsx)(re_resizable_1.Resizable, { defaultSize: {
32
+ height: '100%',
33
+ width: sidePanelWidth !== null && sidePanelWidth !== void 0 ? sidePanelWidth : 400,
34
+ }, className: "ndl-graph-resizable", minWidth: minWidth, maxWidth: "66%", enable: {
35
+ bottom: false,
36
+ bottomLeft: false,
37
+ bottomRight: false,
38
+ left: true,
39
+ right: false,
40
+ top: false,
41
+ topLeft: false,
42
+ topRight: false,
43
+ }, handleClasses: { left: 'ndl-sidepanel-handle' }, onResizeStop: (_e, _dir, ref) => {
44
+ onSidePanelResize(ref.getBoundingClientRect().width);
45
+ }, children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-graph-visualization-sidepanel-content", children: children }) }));
46
+ };
47
+ exports.GraphVisualizationSidepanel = GraphVisualizationSidepanel;
48
+ const Title = ({ children }) => {
49
+ return ((0, jsx_runtime_1.jsx)("div", { className: "ndl-graph-visualization-sidepanel-title ndl-grid-area-title", children: children }));
50
+ };
51
+ exports.GraphVisualizationSidepanel.Title = Title;
52
+ const Content = ({ children }) => {
53
+ return (0, jsx_runtime_1.jsx)("section", { className: "ndl-grid-area-content", children: children });
54
+ };
55
+ exports.GraphVisualizationSidepanel.Content = Content;
56
+ //# sourceMappingURL=graph-visualization-sidepanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-visualization-sidepanel.js","sourceRoot":"","sources":["../../src/graph-visualization-sidepanel.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+CAAyC;AAIlC,MAAM,2BAA2B,GAAG,CAAC,EAC1C,SAAS,GAGV,EAAE,EAAE;IACH,MAAM,EACJ,QAAQ,EACR,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,QAAQ,GAAG,GAAG,GACf,GAAG,SAAS,CAAC;IAEd,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,uBAAC,wBAAS,IACR,WAAW,EAAE;YACX,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,GAAG;SAC7B,EACD,SAAS,EAAC,qBAAqB,EAC/B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAC,KAAK,EACd,MAAM,EAAE;YACN,MAAM,EAAE,KAAK;YACb,UAAU,EAAE,KAAK;YACjB,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,KAAK;YACZ,GAAG,EAAE,KAAK;YACV,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,KAAK;SAChB,EACD,aAAa,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAC/C,YAAY,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;YAC9B,iBAAiB,CAAC,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