@neo4j-ndl/react-graph 1.2.44 → 1.3.1

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 (96) hide show
  1. package/lib/cjs/graph-visualization-buttons.js +1 -3
  2. package/lib/cjs/graph-visualization-buttons.js.map +1 -1
  3. package/lib/cjs/graph-visualization-context.js.map +1 -1
  4. package/lib/cjs/graph-visualization.js +7 -5
  5. package/lib/cjs/graph-visualization.js.map +1 -1
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/cjs/sidepanel-components/details-panel.js +5 -11
  8. package/lib/cjs/sidepanel-components/details-panel.js.map +1 -1
  9. package/lib/cjs/sidepanel-components/graph-label-wrapper.js +40 -0
  10. package/lib/cjs/sidepanel-components/graph-label-wrapper.js.map +1 -0
  11. package/lib/cjs/sidepanel-components/overview-panel.js +3 -12
  12. package/lib/cjs/sidepanel-components/overview-panel.js.map +1 -1
  13. package/lib/cjs/stories/graph-visualization-rule-based-styling-advanced.story.js +247 -0
  14. package/lib/cjs/stories/graph-visualization-rule-based-styling-advanced.story.js.map +1 -0
  15. package/lib/cjs/stories/graph-visualization-rule-based-styling.story.js +79 -0
  16. package/lib/cjs/stories/graph-visualization-rule-based-styling.story.js.map +1 -0
  17. package/lib/cjs/stories/graph-visualization-simple-styling.story.js +57 -0
  18. package/lib/cjs/stories/graph-visualization-simple-styling.story.js.map +1 -0
  19. package/lib/cjs/stories/index.js +23 -10
  20. package/lib/cjs/stories/index.js.map +1 -1
  21. package/lib/cjs/stories/story-data.js +906 -3
  22. package/lib/cjs/stories/story-data.js.map +1 -1
  23. package/lib/cjs/styling/compile-graph-styles.js +22 -21
  24. package/lib/cjs/styling/compile-graph-styles.js.map +1 -1
  25. package/lib/cjs/styling/create-vis-data-structures.js +126 -0
  26. package/lib/cjs/styling/create-vis-data-structures.js.map +1 -0
  27. package/lib/cjs/styling/use-graph-data.js +35 -0
  28. package/lib/cjs/styling/use-graph-data.js.map +1 -0
  29. package/lib/cjs/utils.js +23 -9
  30. package/lib/cjs/utils.js.map +1 -1
  31. package/lib/esm/graph-visualization-buttons.js +1 -3
  32. package/lib/esm/graph-visualization-buttons.js.map +1 -1
  33. package/lib/esm/graph-visualization-context.js.map +1 -1
  34. package/lib/esm/graph-visualization.js +7 -5
  35. package/lib/esm/graph-visualization.js.map +1 -1
  36. package/lib/esm/index.js.map +1 -1
  37. package/lib/esm/sidepanel-components/details-panel.js +6 -12
  38. package/lib/esm/sidepanel-components/details-panel.js.map +1 -1
  39. package/lib/esm/sidepanel-components/graph-label-wrapper.js +33 -0
  40. package/lib/esm/sidepanel-components/graph-label-wrapper.js.map +1 -0
  41. package/lib/esm/sidepanel-components/overview-panel.js +4 -13
  42. package/lib/esm/sidepanel-components/overview-panel.js.map +1 -1
  43. package/lib/esm/stories/graph-visualization-rule-based-styling-advanced.story.js +244 -0
  44. package/lib/esm/stories/graph-visualization-rule-based-styling-advanced.story.js.map +1 -0
  45. package/lib/esm/stories/graph-visualization-rule-based-styling.story.js +76 -0
  46. package/lib/esm/stories/graph-visualization-rule-based-styling.story.js.map +1 -0
  47. package/lib/esm/stories/graph-visualization-simple-styling.story.js +54 -0
  48. package/lib/esm/stories/graph-visualization-simple-styling.story.js.map +1 -0
  49. package/lib/esm/stories/index.js +18 -8
  50. package/lib/esm/stories/index.js.map +1 -1
  51. package/lib/esm/stories/story-data.js +905 -2
  52. package/lib/esm/stories/story-data.js.map +1 -1
  53. package/lib/esm/styling/compile-graph-styles.js +22 -21
  54. package/lib/esm/styling/compile-graph-styles.js.map +1 -1
  55. package/lib/esm/styling/create-vis-data-structures.js +122 -0
  56. package/lib/esm/styling/create-vis-data-structures.js.map +1 -0
  57. package/lib/esm/styling/use-graph-data.js +32 -0
  58. package/lib/esm/styling/use-graph-data.js.map +1 -0
  59. package/lib/esm/utils.js +20 -8
  60. package/lib/esm/utils.js.map +1 -1
  61. package/lib/types/graph-visualization-buttons.d.ts.map +1 -1
  62. package/lib/types/graph-visualization-context.d.ts +15 -9
  63. package/lib/types/graph-visualization-context.d.ts.map +1 -1
  64. package/lib/types/graph-visualization.d.ts +8 -1
  65. package/lib/types/graph-visualization.d.ts.map +1 -1
  66. package/lib/types/index.d.ts +2 -1
  67. package/lib/types/index.d.ts.map +1 -1
  68. package/lib/types/sidepanel-components/details-panel.d.ts.map +1 -1
  69. package/lib/types/{map-to-nvl-graph.d.ts → sidepanel-components/graph-label-wrapper.d.ts} +10 -17
  70. package/lib/types/sidepanel-components/graph-label-wrapper.d.ts.map +1 -0
  71. package/lib/types/sidepanel-components/overview-panel.d.ts.map +1 -1
  72. package/lib/types/stories/graph-visualization-rule-based-styling-advanced.story.d.ts +33 -0
  73. package/lib/types/stories/graph-visualization-rule-based-styling-advanced.story.d.ts.map +1 -0
  74. package/lib/types/stories/graph-visualization-rule-based-styling.story.d.ts +25 -0
  75. package/lib/types/stories/graph-visualization-rule-based-styling.story.d.ts.map +1 -0
  76. package/lib/types/stories/graph-visualization-simple-styling.story.d.ts +25 -0
  77. package/lib/types/stories/graph-visualization-simple-styling.story.d.ts.map +1 -0
  78. package/lib/types/stories/index.d.ts +7 -1
  79. package/lib/types/stories/index.d.ts.map +1 -1
  80. package/lib/types/stories/story-data.d.ts +4 -0
  81. package/lib/types/stories/story-data.d.ts.map +1 -1
  82. package/lib/types/styling/compile-graph-styles.d.ts +2 -5
  83. package/lib/types/styling/compile-graph-styles.d.ts.map +1 -1
  84. package/lib/types/styling/create-vis-data-structures.d.ts +28 -0
  85. package/lib/types/styling/create-vis-data-structures.d.ts.map +1 -0
  86. package/lib/types/styling/style-types.d.ts +2 -2
  87. package/lib/types/styling/use-graph-data.d.ts +28 -0
  88. package/lib/types/styling/use-graph-data.d.ts.map +1 -0
  89. package/lib/types/utils.d.ts +5 -3
  90. package/lib/types/utils.d.ts.map +1 -1
  91. package/package.json +3 -3
  92. package/lib/cjs/map-to-nvl-graph.js +0 -167
  93. package/lib/cjs/map-to-nvl-graph.js.map +0 -1
  94. package/lib/esm/map-to-nvl-graph.js +0 -162
  95. package/lib/esm/map-to-nvl-graph.js.map +0 -1
  96. package/lib/types/map-to-nvl-graph.d.ts.map +0 -1
@@ -20,7 +20,7 @@
20
20
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
21
  */
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.containerClasses = exports.StoryGraph = void 0;
23
+ exports.containerClasses = exports.advancedStoryGraph = exports.StoryGraph = void 0;
24
24
  exports.StoryGraph = {
25
25
  nodes: [
26
26
  {
@@ -60,12 +60,17 @@ exports.StoryGraph = {
60
60
  {
61
61
  id: 'node2',
62
62
  labels: ['Type'],
63
- properties: { name: { stringified: 'Dragon', type: 'String' } },
63
+ properties: { name: { stringified: '"Dragon"', type: 'string' } },
64
64
  },
65
65
  {
66
66
  id: 'node3',
67
67
  labels: ['Type'],
68
- properties: { name: { stringified: 'Flying', type: 'String' } },
68
+ properties: { name: { stringified: '"Flying"', type: 'string' } },
69
+ },
70
+ {
71
+ id: 'node4',
72
+ labels: ['Pokemon'],
73
+ properties: { name: { stringified: '"Pidgey"', type: 'string' } },
69
74
  },
70
75
  ],
71
76
  rels: [
@@ -83,6 +88,904 @@ exports.StoryGraph = {
83
88
  to: 'node3',
84
89
  type: 'HAS_TYPE',
85
90
  },
91
+ {
92
+ from: 'node4',
93
+ id: 'rel3',
94
+ properties: {},
95
+ to: 'node3',
96
+ type: 'HAS_TYPE',
97
+ },
98
+ ],
99
+ };
100
+ exports.advancedStoryGraph = {
101
+ nodes: [
102
+ // Trainers
103
+ {
104
+ id: 'trainer1',
105
+ labels: ['Trainer'],
106
+ properties: {
107
+ name: { stringified: '"Ash"', type: 'string' },
108
+ level: { stringified: '85', type: 'integer' },
109
+ badges: { stringified: '8', type: 'integer' },
110
+ reputation: { stringified: '"Champion"', type: 'string' },
111
+ },
112
+ },
113
+ {
114
+ id: 'trainer2',
115
+ labels: ['Trainer'],
116
+ properties: {
117
+ name: { stringified: '"Misty"', type: 'string' },
118
+ level: { stringified: '72', type: 'integer' },
119
+ badges: { stringified: '8', type: 'integer' },
120
+ reputation: { stringified: '"Gym Leader"', type: 'string' },
121
+ },
122
+ },
123
+ {
124
+ id: 'trainer3',
125
+ labels: ['Trainer'],
126
+ properties: {
127
+ name: { stringified: '"Gary"', type: 'string' },
128
+ level: { stringified: '80', type: 'integer' },
129
+ badges: { stringified: '8', type: 'integer' },
130
+ reputation: { stringified: '"Rival"', type: 'string' },
131
+ },
132
+ },
133
+ {
134
+ id: 'trainer4',
135
+ labels: ['Trainer'],
136
+ properties: {
137
+ name: { stringified: '"Brock"', type: 'string' },
138
+ level: { stringified: '68', type: 'integer' },
139
+ badges: { stringified: '2', type: 'integer' },
140
+ reputation: { stringified: '"Breeder"', type: 'string' },
141
+ },
142
+ },
143
+ // Gyms
144
+ {
145
+ id: 'gym1',
146
+ labels: ['Gym'],
147
+ properties: {
148
+ name: { stringified: '"Cerulean Gym"', type: 'string' },
149
+ city: { stringified: '"Cerulean City"', type: 'string' },
150
+ type: { stringified: '"Water"', type: 'string' },
151
+ badge: { stringified: '"Cascade Badge"', type: 'string' },
152
+ },
153
+ },
154
+ // Ash's Pokemon
155
+ {
156
+ id: 'pokemon1',
157
+ labels: ['Pokemon'],
158
+ properties: {
159
+ name: { stringified: '"Pikachu"', type: 'string' },
160
+ level: { stringified: '88', type: 'integer' },
161
+ is_starter: { stringified: 'true', type: 'boolean' },
162
+ catch_rate: { stringified: '190.0', type: 'float' },
163
+ },
164
+ },
165
+ {
166
+ id: 'pokemon2',
167
+ labels: ['Pokemon'],
168
+ properties: {
169
+ name: { stringified: '"Charizard"', type: 'string' },
170
+ level: { stringified: '82', type: 'integer' },
171
+ is_starter: { stringified: 'false', type: 'boolean' },
172
+ catch_rate: { stringified: '45.0', type: 'float' },
173
+ },
174
+ },
175
+ {
176
+ id: 'pokemon3',
177
+ labels: ['Pokemon'],
178
+ properties: {
179
+ name: { stringified: '"Greninja"', type: 'string' },
180
+ level: { stringified: '80', type: 'integer' },
181
+ is_starter: { stringified: 'false', type: 'boolean' },
182
+ catch_rate: { stringified: '45.0', type: 'float' },
183
+ },
184
+ },
185
+ // Misty's Pokemon
186
+ {
187
+ id: 'pokemon4',
188
+ labels: ['Pokemon'],
189
+ properties: {
190
+ name: { stringified: '"Starmie"', type: 'string' },
191
+ level: { stringified: '75', type: 'integer' },
192
+ is_starter: { stringified: 'false', type: 'boolean' },
193
+ catch_rate: { stringified: '60.0', type: 'float' },
194
+ },
195
+ },
196
+ {
197
+ id: 'pokemon5',
198
+ labels: ['Pokemon'],
199
+ properties: {
200
+ name: { stringified: '"Psyduck"', type: 'string' },
201
+ level: { stringified: '65', type: 'integer' },
202
+ is_starter: { stringified: 'false', type: 'boolean' },
203
+ catch_rate: { stringified: '190.0', type: 'float' },
204
+ },
205
+ },
206
+ {
207
+ id: 'pokemon6',
208
+ labels: ['Pokemon'],
209
+ properties: {
210
+ name: { stringified: '"Gyarados"', type: 'string' },
211
+ level: { stringified: '78', type: 'integer' },
212
+ is_starter: { stringified: 'false', type: 'boolean' },
213
+ catch_rate: { stringified: '45.0', type: 'float' },
214
+ },
215
+ },
216
+ // Gary's Pokemon
217
+ {
218
+ id: 'pokemon7',
219
+ labels: ['Pokemon'],
220
+ properties: {
221
+ name: { stringified: '"Blastoise"', type: 'string' },
222
+ level: { stringified: '83', type: 'integer' },
223
+ is_starter: { stringified: 'false', type: 'boolean' },
224
+ catch_rate: { stringified: '45.0', type: 'float' },
225
+ },
226
+ },
227
+ {
228
+ id: 'pokemon8',
229
+ labels: ['Pokemon'],
230
+ properties: {
231
+ name: { stringified: '"Umbreon"', type: 'string' },
232
+ level: { stringified: '79', type: 'integer' },
233
+ is_starter: { stringified: 'false', type: 'boolean' },
234
+ catch_rate: { stringified: '45.0', type: 'float' },
235
+ },
236
+ },
237
+ {
238
+ id: 'pokemon9',
239
+ labels: ['Pokemon'],
240
+ properties: {
241
+ name: { stringified: '"Electivire"', type: 'string' },
242
+ level: { stringified: '81', type: 'integer' },
243
+ is_starter: { stringified: 'false', type: 'boolean' },
244
+ catch_rate: { stringified: '30.0', type: 'float' },
245
+ },
246
+ },
247
+ // Brock's Pokemon
248
+ {
249
+ id: 'pokemon10',
250
+ labels: ['Pokemon'],
251
+ properties: {
252
+ name: { stringified: '"Onix"', type: 'string' },
253
+ level: { stringified: '70', type: 'integer' },
254
+ is_starter: { stringified: 'true', type: 'boolean' },
255
+ catch_rate: { stringified: '45.0', type: 'float' },
256
+ },
257
+ },
258
+ // Evolution Pokemon (pre-evolutions and uncaught)
259
+ {
260
+ id: 'pokemon11',
261
+ labels: ['Pokemon'],
262
+ properties: {
263
+ name: { stringified: '"Pichu"', type: 'string' },
264
+ level: { stringified: '1', type: 'integer' },
265
+ is_starter: { stringified: 'false', type: 'boolean' },
266
+ catch_rate: { stringified: '190.0', type: 'float' },
267
+ },
268
+ },
269
+ {
270
+ id: 'pokemon12',
271
+ labels: ['Pokemon'],
272
+ properties: {
273
+ name: { stringified: '"Raichu"', type: 'string' },
274
+ level: { stringified: '1', type: 'integer' },
275
+ is_starter: { stringified: 'false', type: 'boolean' },
276
+ catch_rate: { stringified: '75.0', type: 'float' },
277
+ },
278
+ },
279
+ {
280
+ id: 'pokemon13',
281
+ labels: ['Pokemon'],
282
+ properties: {
283
+ name: { stringified: '"Charmander"', type: 'string' },
284
+ level: { stringified: '1', type: 'integer' },
285
+ is_starter: { stringified: 'true', type: 'boolean' },
286
+ catch_rate: { stringified: '45.0', type: 'float' },
287
+ },
288
+ },
289
+ {
290
+ id: 'pokemon14',
291
+ labels: ['Pokemon'],
292
+ properties: {
293
+ name: { stringified: '"Charmeleon"', type: 'string' },
294
+ level: { stringified: '1', type: 'integer' },
295
+ is_starter: { stringified: 'false', type: 'boolean' },
296
+ catch_rate: { stringified: '45.0', type: 'float' },
297
+ },
298
+ },
299
+ {
300
+ id: 'pokemon15',
301
+ labels: ['Pokemon'],
302
+ properties: {
303
+ name: { stringified: '"Staryu"', type: 'string' },
304
+ level: { stringified: '1', type: 'integer' },
305
+ is_starter: { stringified: 'false', type: 'boolean' },
306
+ catch_rate: { stringified: '225.0', type: 'float' },
307
+ },
308
+ },
309
+ {
310
+ id: 'pokemon16',
311
+ labels: ['Pokemon'],
312
+ properties: {
313
+ name: { stringified: '"Golduck"', type: 'string' },
314
+ level: { stringified: '1', type: 'integer' },
315
+ is_starter: { stringified: 'false', type: 'boolean' },
316
+ catch_rate: { stringified: '75.0', type: 'float' },
317
+ },
318
+ },
319
+ {
320
+ id: 'pokemon17',
321
+ labels: ['Pokemon'],
322
+ properties: {
323
+ name: { stringified: '"Magikarp"', type: 'string' },
324
+ level: { stringified: '1', type: 'integer' },
325
+ is_starter: { stringified: 'false', type: 'boolean' },
326
+ catch_rate: { stringified: '255.0', type: 'float' },
327
+ },
328
+ },
329
+ {
330
+ id: 'pokemon18',
331
+ labels: ['Pokemon'],
332
+ properties: {
333
+ name: { stringified: '"Eevee"', type: 'string' },
334
+ level: { stringified: '1', type: 'integer' },
335
+ is_starter: { stringified: 'true', type: 'boolean' },
336
+ catch_rate: { stringified: '45.0', type: 'float' },
337
+ },
338
+ },
339
+ {
340
+ id: 'pokemon19',
341
+ labels: ['Pokemon'],
342
+ properties: {
343
+ name: { stringified: '"Steelix"', type: 'string' },
344
+ level: { stringified: '1', type: 'integer' },
345
+ is_starter: { stringified: 'false', type: 'boolean' },
346
+ catch_rate: { stringified: '25.0', type: 'float' },
347
+ },
348
+ },
349
+ // Uncaught evolution line: Bulbasaur line
350
+ {
351
+ id: 'pokemon20',
352
+ labels: ['Pokemon'],
353
+ properties: {
354
+ name: { stringified: '"Bulbasaur"', type: 'string' },
355
+ level: { stringified: '1', type: 'integer' },
356
+ is_starter: { stringified: 'true', type: 'boolean' },
357
+ catch_rate: { stringified: '45.0', type: 'float' },
358
+ },
359
+ },
360
+ {
361
+ id: 'pokemon21',
362
+ labels: ['Pokemon'],
363
+ properties: {
364
+ name: { stringified: '"Ivysaur"', type: 'string' },
365
+ level: { stringified: '1', type: 'integer' },
366
+ is_starter: { stringified: 'false', type: 'boolean' },
367
+ catch_rate: { stringified: '45.0', type: 'float' },
368
+ },
369
+ },
370
+ {
371
+ id: 'pokemon22',
372
+ labels: ['Pokemon'],
373
+ properties: {
374
+ name: { stringified: '"Venusaur"', type: 'string' },
375
+ level: { stringified: '1', type: 'integer' },
376
+ is_starter: { stringified: 'false', type: 'boolean' },
377
+ catch_rate: { stringified: '45.0', type: 'float' },
378
+ },
379
+ },
380
+ // Types
381
+ {
382
+ id: 'type1',
383
+ labels: ['Type'],
384
+ properties: {
385
+ name: { stringified: '"Electric"', type: 'string' },
386
+ },
387
+ },
388
+ {
389
+ id: 'type2',
390
+ labels: ['Type'],
391
+ properties: {
392
+ name: { stringified: '"Fire"', type: 'string' },
393
+ },
394
+ },
395
+ {
396
+ id: 'type3',
397
+ labels: ['Type'],
398
+ properties: {
399
+ name: { stringified: '"Flying"', type: 'string' },
400
+ },
401
+ },
402
+ {
403
+ id: 'type4',
404
+ labels: ['Type'],
405
+ properties: {
406
+ name: { stringified: '"Water"', type: 'string' },
407
+ },
408
+ },
409
+ {
410
+ id: 'type5',
411
+ labels: ['Type'],
412
+ properties: {
413
+ name: { stringified: '"Dark"', type: 'string' },
414
+ },
415
+ },
416
+ {
417
+ id: 'type6',
418
+ labels: ['Type'],
419
+ properties: {
420
+ name: { stringified: '"Psychic"', type: 'string' },
421
+ },
422
+ },
423
+ {
424
+ id: 'type7',
425
+ labels: ['Type'],
426
+ properties: {
427
+ name: { stringified: '"Rock"', type: 'string' },
428
+ },
429
+ },
430
+ {
431
+ id: 'type8',
432
+ labels: ['Type'],
433
+ properties: {
434
+ name: { stringified: '"Ground"', type: 'string' },
435
+ },
436
+ },
437
+ {
438
+ id: 'type9',
439
+ labels: ['Type'],
440
+ properties: {
441
+ name: { stringified: '"Grass"', type: 'string' },
442
+ },
443
+ },
444
+ {
445
+ id: 'type10',
446
+ labels: ['Type'],
447
+ properties: {
448
+ name: { stringified: '"Poison"', type: 'string' },
449
+ },
450
+ },
451
+ {
452
+ id: 'type11',
453
+ labels: ['Type'],
454
+ properties: {
455
+ name: { stringified: '"Steel"', type: 'string' },
456
+ },
457
+ },
458
+ {
459
+ id: 'type12',
460
+ labels: ['Type'],
461
+ properties: {
462
+ name: { stringified: '"Normal"', type: 'string' },
463
+ },
464
+ },
465
+ ],
466
+ rels: [
467
+ // Trainer -> Pokemon relationships (CAUGHT)
468
+ // Ash's Pokemon
469
+ {
470
+ id: 'rel_p1',
471
+ from: 'trainer1',
472
+ to: 'pokemon1',
473
+ type: 'CAUGHT',
474
+ properties: {
475
+ at: { stringified: '"1997-04-01"', type: 'string' },
476
+ level: { stringified: '5', type: 'integer' },
477
+ },
478
+ },
479
+ {
480
+ id: 'rel_p2',
481
+ from: 'trainer1',
482
+ to: 'pokemon2',
483
+ type: 'CAUGHT',
484
+ properties: {
485
+ at: { stringified: '"1997-06-15"', type: 'string' },
486
+ level: { stringified: '7', type: 'integer' },
487
+ },
488
+ },
489
+ {
490
+ id: 'rel_p3',
491
+ from: 'trainer1',
492
+ to: 'pokemon3',
493
+ type: 'CAUGHT',
494
+ properties: {
495
+ at: { stringified: '"2015-10-22"', type: 'string' },
496
+ level: { stringified: '5', type: 'integer' },
497
+ },
498
+ },
499
+ // Misty's Pokemon
500
+ {
501
+ id: 'rel_p4',
502
+ from: 'trainer2',
503
+ to: 'pokemon4',
504
+ type: 'CAUGHT',
505
+ properties: {
506
+ at: { stringified: '"1996-08-10"', type: 'string' },
507
+ level: { stringified: '20', type: 'integer' },
508
+ },
509
+ },
510
+ {
511
+ id: 'rel_p5',
512
+ from: 'trainer2',
513
+ to: 'pokemon5',
514
+ type: 'CAUGHT',
515
+ properties: {
516
+ at: { stringified: '"1997-09-12"', type: 'string' },
517
+ level: { stringified: '15', type: 'integer' },
518
+ },
519
+ },
520
+ {
521
+ id: 'rel_p6',
522
+ from: 'trainer2',
523
+ to: 'pokemon6',
524
+ type: 'CAUGHT',
525
+ properties: {
526
+ at: { stringified: '"1998-02-18"', type: 'string' },
527
+ level: { stringified: '10', type: 'integer' },
528
+ },
529
+ },
530
+ // Gary's Pokemon
531
+ {
532
+ id: 'rel_p7',
533
+ from: 'trainer3',
534
+ to: 'pokemon7',
535
+ type: 'CAUGHT',
536
+ properties: {
537
+ at: { stringified: '"1997-04-01"', type: 'string' },
538
+ level: { stringified: '5', type: 'integer' },
539
+ },
540
+ },
541
+ {
542
+ id: 'rel_p8',
543
+ from: 'trainer3',
544
+ to: 'pokemon8',
545
+ type: 'CAUGHT',
546
+ properties: {
547
+ at: { stringified: '"1999-12-14"', type: 'string' },
548
+ level: { stringified: '12', type: 'integer' },
549
+ },
550
+ },
551
+ {
552
+ id: 'rel_p9',
553
+ from: 'trainer3',
554
+ to: 'pokemon9',
555
+ type: 'CAUGHT',
556
+ properties: {
557
+ at: { stringified: '"2008-05-29"', type: 'string' },
558
+ level: { stringified: '30', type: 'integer' },
559
+ },
560
+ },
561
+ // Brock's Pokemon
562
+ {
563
+ id: 'rel_p10',
564
+ from: 'trainer4',
565
+ to: 'pokemon10',
566
+ type: 'CAUGHT',
567
+ properties: {
568
+ at: { stringified: '"1995-03-20"', type: 'string' },
569
+ level: { stringified: '8', type: 'integer' },
570
+ },
571
+ },
572
+ // Gym leadership
573
+ {
574
+ id: 'rel1',
575
+ from: 'trainer2',
576
+ to: 'gym1',
577
+ type: 'LEADS',
578
+ properties: {
579
+ since: { stringified: '"1998-03-15"', type: 'string' },
580
+ },
581
+ },
582
+ // Gym -> Type specialization
583
+ {
584
+ id: 'rel_gym_type',
585
+ from: 'gym1',
586
+ to: 'type4',
587
+ type: 'SPECIALIZES_IN',
588
+ properties: {},
589
+ },
590
+ // Ash's gym battle
591
+ {
592
+ id: 'rel2',
593
+ from: 'trainer1',
594
+ to: 'gym1',
595
+ type: 'BATTLED',
596
+ properties: {
597
+ date: { stringified: '"2024-05-10"', type: 'string' },
598
+ won: { stringified: 'true', type: 'boolean' },
599
+ attempt: { stringified: '1', type: 'integer' },
600
+ },
601
+ },
602
+ // Gary's first gym battle (lost)
603
+ {
604
+ id: 'rel3',
605
+ from: 'trainer3',
606
+ to: 'gym1',
607
+ type: 'BATTLED',
608
+ properties: {
609
+ date: { stringified: '"2024-04-15"', type: 'string' },
610
+ won: { stringified: 'false', type: 'boolean' },
611
+ attempt: { stringified: '1', type: 'integer' },
612
+ },
613
+ },
614
+ // Gary's second gym battle (won)
615
+ {
616
+ id: 'rel4',
617
+ from: 'trainer3',
618
+ to: 'gym1',
619
+ type: 'BATTLED',
620
+ properties: {
621
+ date: { stringified: '"2024-06-20"', type: 'string' },
622
+ won: { stringified: 'true', type: 'boolean' },
623
+ attempt: { stringified: '2', type: 'integer' },
624
+ },
625
+ },
626
+ // Rival battles between Ash and Gary
627
+ {
628
+ id: 'rel5',
629
+ from: 'trainer1',
630
+ to: 'trainer3',
631
+ type: 'BATTLED',
632
+ properties: {
633
+ date: { stringified: '"2024-03-10"', type: 'string' },
634
+ won: { stringified: 'false', type: 'boolean' },
635
+ location: { stringified: '"Pallet Town"', type: 'string' },
636
+ },
637
+ },
638
+ {
639
+ id: 'rel6',
640
+ from: 'trainer1',
641
+ to: 'trainer3',
642
+ type: 'BATTLED',
643
+ properties: {
644
+ date: { stringified: '"2024-05-22"', type: 'string' },
645
+ won: { stringified: 'true', type: 'boolean' },
646
+ location: { stringified: '"Viridian City"', type: 'string' },
647
+ },
648
+ },
649
+ {
650
+ id: 'rel7',
651
+ from: 'trainer1',
652
+ to: 'trainer3',
653
+ type: 'BATTLED',
654
+ properties: {
655
+ date: { stringified: '"2024-07-15"', type: 'string' },
656
+ won: { stringified: 'true', type: 'boolean' },
657
+ location: { stringified: '"Indigo Plateau"', type: 'string' },
658
+ },
659
+ },
660
+ // Pokemon -> Type relationships (OF_TYPE)
661
+ {
662
+ id: 'rel_t1',
663
+ from: 'pokemon1',
664
+ to: 'type1',
665
+ type: 'OF_TYPE',
666
+ properties: {},
667
+ },
668
+ {
669
+ id: 'rel_t2',
670
+ from: 'pokemon2',
671
+ to: 'type2',
672
+ type: 'OF_TYPE',
673
+ properties: {},
674
+ },
675
+ {
676
+ id: 'rel_t3',
677
+ from: 'pokemon2',
678
+ to: 'type3',
679
+ type: 'OF_TYPE',
680
+ properties: {},
681
+ },
682
+ {
683
+ id: 'rel_t4',
684
+ from: 'pokemon3',
685
+ to: 'type4',
686
+ type: 'OF_TYPE',
687
+ properties: {},
688
+ },
689
+ {
690
+ id: 'rel_t5',
691
+ from: 'pokemon3',
692
+ to: 'type5',
693
+ type: 'OF_TYPE',
694
+ properties: {},
695
+ },
696
+ {
697
+ id: 'rel_t6',
698
+ from: 'pokemon4',
699
+ to: 'type4',
700
+ type: 'OF_TYPE',
701
+ properties: {},
702
+ },
703
+ {
704
+ id: 'rel_t7',
705
+ from: 'pokemon4',
706
+ to: 'type6',
707
+ type: 'OF_TYPE',
708
+ properties: {},
709
+ },
710
+ {
711
+ id: 'rel_t8',
712
+ from: 'pokemon5',
713
+ to: 'type4',
714
+ type: 'OF_TYPE',
715
+ properties: {},
716
+ },
717
+ {
718
+ id: 'rel_t9',
719
+ from: 'pokemon6',
720
+ to: 'type4',
721
+ type: 'OF_TYPE',
722
+ properties: {},
723
+ },
724
+ {
725
+ id: 'rel_t10',
726
+ from: 'pokemon6',
727
+ to: 'type3',
728
+ type: 'OF_TYPE',
729
+ properties: {},
730
+ },
731
+ {
732
+ id: 'rel_t11',
733
+ from: 'pokemon7',
734
+ to: 'type4',
735
+ type: 'OF_TYPE',
736
+ properties: {},
737
+ },
738
+ {
739
+ id: 'rel_t12',
740
+ from: 'pokemon8',
741
+ to: 'type5',
742
+ type: 'OF_TYPE',
743
+ properties: {},
744
+ },
745
+ {
746
+ id: 'rel_t13',
747
+ from: 'pokemon9',
748
+ to: 'type1',
749
+ type: 'OF_TYPE',
750
+ properties: {},
751
+ },
752
+ {
753
+ id: 'rel_t14',
754
+ from: 'pokemon10',
755
+ to: 'type7',
756
+ type: 'OF_TYPE',
757
+ properties: {},
758
+ },
759
+ {
760
+ id: 'rel_t15',
761
+ from: 'pokemon10',
762
+ to: 'type8',
763
+ type: 'OF_TYPE',
764
+ properties: {},
765
+ },
766
+ {
767
+ id: 'rel_t16',
768
+ from: 'pokemon11',
769
+ to: 'type1',
770
+ type: 'OF_TYPE',
771
+ properties: {},
772
+ },
773
+ {
774
+ id: 'rel_t17',
775
+ from: 'pokemon12',
776
+ to: 'type1',
777
+ type: 'OF_TYPE',
778
+ properties: {},
779
+ },
780
+ {
781
+ id: 'rel_t18',
782
+ from: 'pokemon13',
783
+ to: 'type2',
784
+ type: 'OF_TYPE',
785
+ properties: {},
786
+ },
787
+ {
788
+ id: 'rel_t19',
789
+ from: 'pokemon14',
790
+ to: 'type2',
791
+ type: 'OF_TYPE',
792
+ properties: {},
793
+ },
794
+ {
795
+ id: 'rel_t20',
796
+ from: 'pokemon15',
797
+ to: 'type4',
798
+ type: 'OF_TYPE',
799
+ properties: {},
800
+ },
801
+ {
802
+ id: 'rel_t21',
803
+ from: 'pokemon16',
804
+ to: 'type4',
805
+ type: 'OF_TYPE',
806
+ properties: {},
807
+ },
808
+ {
809
+ id: 'rel_t22',
810
+ from: 'pokemon17',
811
+ to: 'type4',
812
+ type: 'OF_TYPE',
813
+ properties: {},
814
+ },
815
+ {
816
+ id: 'rel_t23',
817
+ from: 'pokemon18',
818
+ to: 'type12',
819
+ type: 'OF_TYPE',
820
+ properties: {},
821
+ },
822
+ {
823
+ id: 'rel_t24',
824
+ from: 'pokemon19',
825
+ to: 'type11',
826
+ type: 'OF_TYPE',
827
+ properties: {},
828
+ },
829
+ {
830
+ id: 'rel_t25',
831
+ from: 'pokemon19',
832
+ to: 'type8',
833
+ type: 'OF_TYPE',
834
+ properties: {},
835
+ },
836
+ {
837
+ id: 'rel_t26',
838
+ from: 'pokemon20',
839
+ to: 'type9',
840
+ type: 'OF_TYPE',
841
+ properties: {},
842
+ },
843
+ {
844
+ id: 'rel_t27',
845
+ from: 'pokemon20',
846
+ to: 'type10',
847
+ type: 'OF_TYPE',
848
+ properties: {},
849
+ },
850
+ {
851
+ id: 'rel_t28',
852
+ from: 'pokemon21',
853
+ to: 'type9',
854
+ type: 'OF_TYPE',
855
+ properties: {},
856
+ },
857
+ {
858
+ id: 'rel_t29',
859
+ from: 'pokemon21',
860
+ to: 'type10',
861
+ type: 'OF_TYPE',
862
+ properties: {},
863
+ },
864
+ {
865
+ id: 'rel_t30',
866
+ from: 'pokemon22',
867
+ to: 'type9',
868
+ type: 'OF_TYPE',
869
+ properties: {},
870
+ },
871
+ {
872
+ id: 'rel_t31',
873
+ from: 'pokemon22',
874
+ to: 'type10',
875
+ type: 'OF_TYPE',
876
+ properties: {},
877
+ },
878
+ // Evolution relationships (EVOLVES_TO)
879
+ {
880
+ id: 'rel_e1',
881
+ from: 'pokemon11',
882
+ to: 'pokemon1',
883
+ type: 'EVOLVES_TO',
884
+ properties: {
885
+ level: { stringified: '0', type: 'integer' },
886
+ method: { stringified: '"Friendship"', type: 'string' },
887
+ },
888
+ },
889
+ {
890
+ id: 'rel_e2',
891
+ from: 'pokemon1',
892
+ to: 'pokemon12',
893
+ type: 'EVOLVES_TO',
894
+ properties: {
895
+ level: { stringified: '0', type: 'integer' },
896
+ method: { stringified: '"Thunder Stone"', type: 'string' },
897
+ },
898
+ },
899
+ {
900
+ id: 'rel_e3',
901
+ from: 'pokemon13',
902
+ to: 'pokemon14',
903
+ type: 'EVOLVES_TO',
904
+ properties: {
905
+ level: { stringified: '16', type: 'integer' },
906
+ method: { stringified: '"Level"', type: 'string' },
907
+ },
908
+ },
909
+ {
910
+ id: 'rel_e4',
911
+ from: 'pokemon14',
912
+ to: 'pokemon2',
913
+ type: 'EVOLVES_TO',
914
+ properties: {
915
+ level: { stringified: '36', type: 'integer' },
916
+ method: { stringified: '"Level"', type: 'string' },
917
+ },
918
+ },
919
+ {
920
+ id: 'rel_e5',
921
+ from: 'pokemon15',
922
+ to: 'pokemon4',
923
+ type: 'EVOLVES_TO',
924
+ properties: {
925
+ level: { stringified: '0', type: 'integer' },
926
+ method: { stringified: '"Water Stone"', type: 'string' },
927
+ },
928
+ },
929
+ {
930
+ id: 'rel_e6',
931
+ from: 'pokemon5',
932
+ to: 'pokemon16',
933
+ type: 'EVOLVES_TO',
934
+ properties: {
935
+ level: { stringified: '33', type: 'integer' },
936
+ method: { stringified: '"Level"', type: 'string' },
937
+ },
938
+ },
939
+ {
940
+ id: 'rel_e7',
941
+ from: 'pokemon17',
942
+ to: 'pokemon6',
943
+ type: 'EVOLVES_TO',
944
+ properties: {
945
+ level: { stringified: '20', type: 'integer' },
946
+ method: { stringified: '"Level"', type: 'string' },
947
+ },
948
+ },
949
+ {
950
+ id: 'rel_e8',
951
+ from: 'pokemon18',
952
+ to: 'pokemon8',
953
+ type: 'EVOLVES_TO',
954
+ properties: {
955
+ level: { stringified: '0', type: 'integer' },
956
+ method: { stringified: '"Friendship (Night)"', type: 'string' },
957
+ },
958
+ },
959
+ {
960
+ id: 'rel_e9',
961
+ from: 'pokemon10',
962
+ to: 'pokemon19',
963
+ type: 'EVOLVES_TO',
964
+ properties: {
965
+ level: { stringified: '0', type: 'integer' },
966
+ method: { stringified: '"Trade with Metal Coat"', type: 'string' },
967
+ },
968
+ },
969
+ {
970
+ id: 'rel_e10',
971
+ from: 'pokemon20',
972
+ to: 'pokemon21',
973
+ type: 'EVOLVES_TO',
974
+ properties: {
975
+ level: { stringified: '16', type: 'integer' },
976
+ method: { stringified: '"Level"', type: 'string' },
977
+ },
978
+ },
979
+ {
980
+ id: 'rel_e11',
981
+ from: 'pokemon21',
982
+ to: 'pokemon22',
983
+ type: 'EVOLVES_TO',
984
+ properties: {
985
+ level: { stringified: '32', type: 'integer' },
986
+ method: { stringified: '"Level"', type: 'string' },
987
+ },
988
+ },
86
989
  ],
87
990
  };
88
991
  exports.containerClasses = 'n-w-full n-border-neutral-border-weak n-mx-2 n-rounded-lg n-border';