@reltio/graph 1.4.1387 → 1.4.1389

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.
@@ -43,3 +43,12 @@ and limitations under the License.
43
43
  *
44
44
  * @license MIT
45
45
  */
46
+
47
+ /** @license React v16.8.6
48
+ * react-is.production.min.js
49
+ *
50
+ * Copyright (c) Facebook, Inc. and its affiliates.
51
+ *
52
+ * This source code is licensed under the MIT license found in the
53
+ * LICENSE file in the root directory of this source tree.
54
+ */
package/main.css CHANGED
@@ -1 +1,634 @@
1
1
  :root{--sigma-background-color:#fff;--sigma-controls-background-color:#fff;--sigma-controls-background-color-hover:rgba(0,0,0,0.2);--sigma-controls-border-color:rgba(0,0,0,0.2);--sigma-controls-color:#000;--sigma-controls-zindex:100;--sigma-controls-margin:5px;--sigma-controls-size:30px;}div.react-sigma{height:100%;width:100%;position:relative;background:var(--sigma-background-color);}div.sigma-container{height:100%;width:100%;}.react-sigma-controls{position:absolute;z-index:var(--sigma-controls-zindex);border:2px solid var(--sigma-controls-border-color);border-radius:4px;color:var(--sigma-controls-color);background-color:var(--sigma-controls-background-color);}.react-sigma-controls.bottom-right{bottom:var(--sigma-controls-margin);right:var(--sigma-controls-margin);}.react-sigma-controls.bottom-left{bottom:var(--sigma-controls-margin);left:var(--sigma-controls-margin);}.react-sigma-controls.top-right{top:var(--sigma-controls-margin);right:var(--sigma-controls-margin);}.react-sigma-controls.top-left{top:var(--sigma-controls-margin);left:var(--sigma-controls-margin);}.react-sigma-controls:first-child{border-top-left-radius:2px;border-top-right-radius:2px;}.react-sigma-controls:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px;}.react-sigma-control{width:var(--sigma-controls-size);height:var(--sigma-controls-size);line-height:var(--sigma-controls-size);background-color:var(--sigma-controls-background-color);border-bottom:1px solid var(--sigma-controls-border-color);}.react-sigma-control > button{display:block;border:none;margin:0;padding:0;width:var(--sigma-controls-size);height:var(--sigma-controls-size);line-height:var(--sigma-controls-size);background-position:center;background-size:50%;background-repeat:no-repeat;background-color:var(--sigma-controls-background-color);clip:rect(0,0,0,0);}.react-sigma-control > button:hover{background-color:var(--sigma-controls-background-color-hover);}.react-sigma-search{background-color:var(--sigma-controls-background-color);}.react-sigma-search label{visibility:hidden;}.react-sigma-search input{color:var(--sigma-controls-color);background-color:var(--sigma-controls-background-color);font-size:1em;width:100%;border:none;}
2
+ .rst__rowWrapper {
3
+ height: 100%;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ .rst__rtl.rst__rowWrapper {
8
+ }
9
+
10
+ .rst__row {
11
+ height: 100%;
12
+ display: flex;
13
+ }
14
+ .rst__row > * {
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ /**
19
+ * The outline of where the element will go if dropped, displayed while dragging
20
+ */
21
+ .rst__rowLandingPad,
22
+ .rst__rowCancelPad {
23
+ border: none !important;
24
+ box-shadow: none !important;
25
+ outline: none !important;
26
+ }
27
+ .rst__rowLandingPad > *,
28
+ .rst__rowCancelPad > * {
29
+ opacity: 0 !important;
30
+ }
31
+ .rst__rowLandingPad::before,
32
+ .rst__rowCancelPad::before {
33
+ background-color: rgba(0,114,207,0.12);
34
+ border: 1px dashed #2184D4;
35
+ content: '';
36
+ position: absolute;
37
+ top: 0;
38
+ right: 23px;
39
+ bottom: 0;
40
+ left: 18px;
41
+ z-index: 1;
42
+ }
43
+
44
+ /**
45
+ * Alternate appearance of the landing pad when the dragged location is invalid
46
+ */
47
+ .rst__rowCancelPad::before {
48
+ background-color: rgba(255,102,115,0.12);
49
+ border: 1px dashed #FF6673;
50
+ }
51
+
52
+ /**
53
+ * Nodes matching the search conditions are highlighted
54
+ */
55
+ .rst__rowSearchMatch {
56
+ outline: solid 3px #0080ff;
57
+ }
58
+
59
+ /**
60
+ * The node that matches the search conditions and is currently focused
61
+ */
62
+ .rst__rowSearchFocus {
63
+ outline: solid 3px #fc6421;
64
+ }
65
+
66
+ .rst__rowContents,
67
+ .rst__rowLabel,
68
+ .rst__rowToolbar,
69
+ .rst__moveHandle,
70
+ .rst__toolbarButton {
71
+ display: inline-block;
72
+ vertical-align: middle;
73
+ }
74
+
75
+ .rst__rowContents {
76
+ position: relative;
77
+ border-left: none;
78
+ padding-left: 4px;
79
+ flex: 1 1 auto;
80
+ width: 0;
81
+ display: flex;
82
+ }
83
+
84
+ .rst__rtl.rst__rowContents {
85
+ border-right: none;
86
+ border-left: solid #bbb 1px;
87
+ padding: 0 10px 0 5px;
88
+ }
89
+
90
+ .rst__rowContentsDragDisabled {
91
+ }
92
+
93
+ .rst__rtl.rst__rowContentsDragDisabled {
94
+ border-right: solid #bbb 1px;
95
+ border-left: solid #bbb 1px;
96
+ }
97
+
98
+ .rst__rowLabel {
99
+ flex: 1 1 auto;
100
+ width: 0;
101
+ padding-right: 11px;
102
+ }
103
+ .rst__rtl.rst__rowLabel {
104
+ padding-left: 20px;
105
+ padding-right: inherit;
106
+ }
107
+
108
+ .rst__rowToolbar {
109
+ flex: 0 1 auto;
110
+ display: flex;
111
+ }
112
+
113
+ .rst__moveHandle {
114
+ display: flex;
115
+ align-items: start;
116
+ padding-top: 3px;
117
+ cursor: move;
118
+ color: rgba(0,0,0,0.54);
119
+ visibility: hidden;
120
+ width: 17px;
121
+ margin-left: -13px;
122
+ }
123
+ .rst__moveHandle svg {
124
+ margin-left: 0px;
125
+ }
126
+ .rst__moveHandle + .rst__rowContents .rst__buttonWrapper{
127
+ margin-left: -4px;
128
+ }
129
+
130
+ .rst__node:hover .rst__moveHandle {
131
+ visibility: visible;
132
+ }
133
+ .rst_node_hover_disabled:hover .rst__moveHandle{
134
+ visibility: hidden;
135
+ }
136
+ .rst__loadingHandle {
137
+ height: 100%;
138
+ width: 44px;
139
+ background: #d9d9d9
140
+ url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MiIgaGVpZ2h0PSI0MiI+PGcgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuOSIgPjxwYXRoIGQ9Ik0xNCAxNS43aDE0LjQiLz48cGF0aCBkPSJNMTQgMjEuNGgxNC40Ii8+PHBhdGggZD0iTTE0IDI3LjFoMTQuNCIvPjwvZz4KPC9zdmc+)
141
+ no-repeat center;
142
+ border: solid #aaa 1px;
143
+ box-shadow: 0 2px 2px -2px;
144
+ cursor: move;
145
+ border-radius: 1px;
146
+ z-index: 1;
147
+ }
148
+
149
+ .rst__loadingHandle {
150
+ cursor: default;
151
+ background: #d9d9d9;
152
+ }
153
+
154
+ @keyframes pointFade {
155
+ 0%,
156
+ 19.999%,
157
+ 100% {
158
+ opacity: 0;
159
+ }
160
+ 20% {
161
+ opacity: 1;
162
+ }
163
+ }
164
+
165
+ .rst__loadingCircle {
166
+ width: 80%;
167
+ height: 80%;
168
+ margin: 10%;
169
+ position: relative;
170
+ }
171
+
172
+ .rst__loadingCirclePoint {
173
+ width: 100%;
174
+ height: 100%;
175
+ position: absolute;
176
+ left: 0;
177
+ top: 0;
178
+ }
179
+
180
+ .rst__rtl.rst__loadingCirclePoint {
181
+ right: 0;
182
+ left: initial;
183
+ }
184
+
185
+ .rst__loadingCirclePoint::before {
186
+ content: '';
187
+ display: block;
188
+ margin: 0 auto;
189
+ width: 11%;
190
+ height: 30%;
191
+ background-color: #fff;
192
+ border-radius: 30%;
193
+ animation: pointFade 800ms infinite ease-in-out both;
194
+ }
195
+ .rst__loadingCirclePoint:nth-of-type(1) {
196
+ transform: rotate(0deg);
197
+ }
198
+ .rst__loadingCirclePoint:nth-of-type(7) {
199
+ transform: rotate(180deg);
200
+ }
201
+ .rst__loadingCirclePoint:nth-of-type(1)::before,
202
+ .rst__loadingCirclePoint:nth-of-type(7)::before {
203
+ animation-delay: -800ms;
204
+ }
205
+ .rst__loadingCirclePoint:nth-of-type(2) {
206
+ transform: rotate(30deg);
207
+ }
208
+ .rst__loadingCirclePoint:nth-of-type(8) {
209
+ transform: rotate(210deg);
210
+ }
211
+ .rst__loadingCirclePoint:nth-of-type(2)::before,
212
+ .rst__loadingCirclePoint:nth-of-type(8)::before {
213
+ animation-delay: -666ms;
214
+ }
215
+ .rst__loadingCirclePoint:nth-of-type(3) {
216
+ transform: rotate(60deg);
217
+ }
218
+ .rst__loadingCirclePoint:nth-of-type(9) {
219
+ transform: rotate(240deg);
220
+ }
221
+ .rst__loadingCirclePoint:nth-of-type(3)::before,
222
+ .rst__loadingCirclePoint:nth-of-type(9)::before {
223
+ animation-delay: -533ms;
224
+ }
225
+ .rst__loadingCirclePoint:nth-of-type(4) {
226
+ transform: rotate(90deg);
227
+ }
228
+ .rst__loadingCirclePoint:nth-of-type(10) {
229
+ transform: rotate(270deg);
230
+ }
231
+ .rst__loadingCirclePoint:nth-of-type(4)::before,
232
+ .rst__loadingCirclePoint:nth-of-type(10)::before {
233
+ animation-delay: -400ms;
234
+ }
235
+ .rst__loadingCirclePoint:nth-of-type(5) {
236
+ transform: rotate(120deg);
237
+ }
238
+ .rst__loadingCirclePoint:nth-of-type(11) {
239
+ transform: rotate(300deg);
240
+ }
241
+ .rst__loadingCirclePoint:nth-of-type(5)::before,
242
+ .rst__loadingCirclePoint:nth-of-type(11)::before {
243
+ animation-delay: -266ms;
244
+ }
245
+ .rst__loadingCirclePoint:nth-of-type(6) {
246
+ transform: rotate(150deg);
247
+ }
248
+ .rst__loadingCirclePoint:nth-of-type(12) {
249
+ transform: rotate(330deg);
250
+ }
251
+ .rst__loadingCirclePoint:nth-of-type(6)::before,
252
+ .rst__loadingCirclePoint:nth-of-type(12)::before {
253
+ animation-delay: -133ms;
254
+ }
255
+ .rst__loadingCirclePoint:nth-of-type(7) {
256
+ transform: rotate(180deg);
257
+ }
258
+ .rst__loadingCirclePoint:nth-of-type(13) {
259
+ transform: rotate(360deg);
260
+ }
261
+ .rst__loadingCirclePoint:nth-of-type(7)::before,
262
+ .rst__loadingCirclePoint:nth-of-type(13)::before {
263
+ animation-delay: 0ms;
264
+ }
265
+
266
+ .rst__rowTitle {
267
+ }
268
+
269
+ .rst__rowTitleWithSubtitle {
270
+ font-size: 85%;
271
+ display: block;
272
+ height: 0.8rem;
273
+ }
274
+
275
+ .rst__rowSubtitle {
276
+ font-size: 70%;
277
+ line-height: 1;
278
+ }
279
+
280
+ .rst__buttonWrapper {
281
+ display: flex;
282
+ padding-top: 13px;
283
+ width: 12px;
284
+ cursor: pointer;
285
+ }
286
+
287
+ .rst__buttonWrapper.rst__noButton {
288
+ cursor: inherit;
289
+ }
290
+
291
+ .rst__root .rst__buttonWrapper {
292
+ display: none;
293
+ }
294
+
295
+ .rst__collapseButton,
296
+ .rst__expandButton {
297
+ transition: transform .15s ease;
298
+ width: 0;
299
+ height: 0;
300
+ border-left: 4px solid transparent;
301
+ border-right: 4px solid transparent;
302
+ border-top: 4px solid rgba(0, 0, 0, 0.54);
303
+ }
304
+
305
+ .rst__collapseButton {
306
+ transform: rotate(0deg);
307
+ }
308
+
309
+ .rst__expandButton {
310
+ transform: rotate(-90deg);
311
+ }
312
+
313
+
314
+ /**
315
+ * Extra class applied to VirtualScroll through className prop
316
+ */
317
+ .rst__virtualScrollOverride {
318
+ overflow: auto !important;
319
+ }
320
+
321
+ .ReactVirtualized__Grid__innerScrollContainer {
322
+ overflow: visible !important;
323
+ max-width: none !important;
324
+ }
325
+
326
+ .rst__rtl .ReactVirtualized__Grid__innerScrollContainer {
327
+ direction: rtl;
328
+ }
329
+
330
+ .ReactVirtualized__Grid {
331
+ outline: none;
332
+ }
333
+
334
+ .rst__node {
335
+ min-width: 100%;
336
+ position: relative;
337
+ text-align: left;
338
+ padding: 0 24px 0 18px;
339
+ box-sizing: border-box;
340
+ white-space: normal;
341
+ }
342
+ .rst__node:hover {
343
+ background-color: rgba(0,0,0,0.06);
344
+ }
345
+ .rst_node_hover_disabled:hover {
346
+ background-color: transparent;
347
+ }
348
+ .rst__node.rst__root .rst__absoluteLineBlock,
349
+ .rst__node.rst__root .rst__lineBlock {
350
+ display: none;
351
+ }
352
+ .rst__node.rst__root .rst__nodeContent {
353
+ width: 100% !important;
354
+ left: 0 !important;
355
+ }
356
+
357
+ .rst__node.rst__rtl {
358
+ text-align: right;
359
+ }
360
+
361
+ .rst__nodeContent {
362
+ position: absolute;
363
+ top: 0;
364
+ bottom: 0;
365
+ padding-left: 19px;
366
+ box-sizing: border-box;
367
+ }
368
+
369
+ /* ==========================================================================
370
+ Scaffold
371
+ Line-overlaid blocks used for showing the tree structure
372
+ ========================================================================== */
373
+ .rst__lineBlock,
374
+ .rst__absoluteLineBlock {
375
+ height: 100%;
376
+ position: relative;
377
+ display: inline-block;
378
+ }
379
+
380
+ .rst__absoluteLineBlock {
381
+ position: absolute;
382
+ top: 0;
383
+ margin-left: 18px;
384
+ }
385
+
386
+ .rst__lineHalfHorizontalRight::before,
387
+ .rst__lineFullVertical::after,
388
+ .rst__lineHalfVerticalTop::after,
389
+ .rst__lineHalfVerticalBottom::after {
390
+ position: absolute;
391
+ content: '';
392
+ background-color: rgba(0,122,193,0.3);
393
+ }
394
+
395
+ /**
396
+ * +-----+
397
+ * | |
398
+ * | +--+
399
+ * | |
400
+ * +-----+
401
+ */
402
+ .rst__lineHalfHorizontalRight::before {
403
+ height: 1px;
404
+ top: 14px;
405
+ right: 19%; /*0*/
406
+ width: 24%; /*50*/
407
+ }
408
+
409
+ .rst__rtl.rst__lineHalfHorizontalRight::before {
410
+ left: 0;
411
+ right: initial;
412
+ }
413
+
414
+ /**
415
+ * +--+--+
416
+ * | | |
417
+ * | | |
418
+ * | | |
419
+ * +--+--+
420
+ */
421
+ .rst__lineFullVertical::after,
422
+ .rst__lineHalfVerticalTop::after,
423
+ .rst__lineHalfVerticalBottom::after {
424
+ width: 1px;
425
+ left: 50%;
426
+ top: 0;
427
+ height: 100%;
428
+ }
429
+
430
+ /**
431
+ * +--+--+
432
+ * | | |
433
+ * | | |
434
+ * | | |
435
+ * +--+--+
436
+ */
437
+ .rst__rtl.rst__lineFullVertical::after,
438
+ .rst__rtl.rst__lineHalfVerticalTop::after,
439
+ .rst__rtl.rst__lineHalfVerticalBottom::after {
440
+ right: 50%;
441
+ left: initial;
442
+ }
443
+
444
+ /**
445
+ * +-----+
446
+ * | | |
447
+ * | + |
448
+ * | |
449
+ * +-----+
450
+ */
451
+ .rst__lineHalfVerticalTop::after {
452
+ height: 15px;
453
+ }
454
+
455
+ /**
456
+ * +-----+
457
+ * | |
458
+ * | + |
459
+ * | | |
460
+ * +-----+
461
+ */
462
+ .rst__lineHalfVerticalBottom::after {
463
+ top: auto;
464
+ bottom: 0;
465
+ height: 50%;
466
+ }
467
+
468
+ /* Highlight line for pointing to dragged row destination
469
+ ========================================================================== */
470
+ /**
471
+ * +--+--+
472
+ * | | |
473
+ * | | |
474
+ * | | |
475
+ * +--+--+
476
+ */
477
+ .rst__highlightLineVertical {
478
+ z-index: 3;
479
+ }
480
+ .rst__highlightLineVertical::before {
481
+ position: absolute;
482
+ content: '';
483
+ background-color: #36c2f6;
484
+ width: 6px;
485
+ margin-left: -3px;
486
+ left: 50%;
487
+ top: 0;
488
+ height: 100%;
489
+ }
490
+
491
+ .rst__rtl.rst__highlightLineVertical::before {
492
+ margin-left: initial;
493
+ margin-right: -4px;
494
+ left: initial;
495
+ right: 50%;
496
+ }
497
+
498
+ @keyframes arrow-pulse {
499
+ 0% {
500
+ transform: translate(0, 0);
501
+ opacity: 0;
502
+ }
503
+ 30% {
504
+ transform: translate(0, 300%);
505
+ opacity: 1;
506
+ }
507
+ 70% {
508
+ transform: translate(0, 700%);
509
+ opacity: 1;
510
+ }
511
+ 100% {
512
+ transform: translate(0, 1000%);
513
+ opacity: 0;
514
+ }
515
+ }
516
+ .rst__highlightLineVertical::after {
517
+ content: '';
518
+ position: absolute;
519
+ height: 0;
520
+ margin-left: -4px;
521
+ left: 50%;
522
+ top: 0;
523
+ border-left: 4px solid transparent;
524
+ border-right: 4px solid transparent;
525
+ border-top: 4px solid white;
526
+ animation: arrow-pulse 1s infinite linear both;
527
+ }
528
+
529
+ .rst__rtl.rst__highlightLineVertical::after {
530
+ margin-left: initial;
531
+ margin-right: -4px;
532
+ right: 50%;
533
+ left: initial;
534
+ }
535
+
536
+ /**
537
+ * +-----+
538
+ * | |
539
+ * | +--+
540
+ * | | |
541
+ * +--+--+
542
+ */
543
+ .rst__highlightTopLeftCorner::before {
544
+ z-index: 3;
545
+ content: '';
546
+ position: absolute;
547
+ border-top: solid 6px #36c2f6;
548
+ border-left: solid 6px #36c2f6;
549
+ box-sizing: border-box;
550
+ height: calc(50% + 4px);
551
+ top: 50%;
552
+ margin-top: -4px;
553
+ right: 0;
554
+ width: calc(50% + 3px);
555
+ }
556
+
557
+ .rst__rtl.rst__highlightTopLeftCorner::before {
558
+ border-right: solid 8px #36c2f6;
559
+ border-left: none;
560
+ left: 0;
561
+ right: initial;
562
+ }
563
+
564
+ /**
565
+ * +--+--+
566
+ * | | |
567
+ * | | |
568
+ * | +->|
569
+ * +-----+
570
+ */
571
+ .rst__highlightBottomLeftCorner {
572
+ z-index: 3;
573
+ }
574
+ .rst__highlightBottomLeftCorner::before {
575
+ content: '';
576
+ position: absolute;
577
+ border-bottom: solid 6px #36c2f6;
578
+ border-left: solid 6px #36c2f6;
579
+ box-sizing: border-box;
580
+ height: calc(100% + 4px);
581
+ top: 0;
582
+ right: 2px;
583
+ width: calc(50% + 1px);
584
+ }
585
+
586
+ .rst__rtl.rst__highlightBottomLeftCorner::before {
587
+ border-right: solid 8px #36c2f6;
588
+ border-left: none;
589
+ left: 12px;
590
+ right: initial;
591
+ }
592
+
593
+ .rst__highlightBottomLeftCorner::after {
594
+ content: '';
595
+ position: absolute;
596
+ height: 0;
597
+ right: -7px;
598
+ top: 100%;
599
+ margin-top: -8px;
600
+ border-top: 9px solid transparent;
601
+ border-bottom: 9px solid transparent;
602
+ border-left: 9px solid #36c2f6;
603
+ }
604
+
605
+ .rst__rtl.rst__highlightBottomLeftCorner::after {
606
+ left: 0;
607
+ right: initial;
608
+ border-right: 12px solid #36c2f6;
609
+ border-left: none;
610
+ }
611
+
612
+ /**
613
+ * Line for under a node with children
614
+ */
615
+ .rst__lineChildren {
616
+ height: 100%;
617
+ display: inline-block;
618
+ position: absolute;
619
+ }
620
+ .rst__lineChildren::after {
621
+ content: '';
622
+ position: absolute;
623
+ background-color: rgba(0,122,193,0.3);
624
+ width: 1px;
625
+ left: 50%;
626
+ bottom: 0;
627
+ height: calc(100% - 28px);
628
+ }
629
+
630
+ .rst__rtl.rst__lineChildren::after {
631
+ right: 50%;
632
+ left: initial;
633
+ }
634
+
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/graph",
3
- "version": "1.4.1387",
3
+ "version": "1.4.1389",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "bundle.js",
6
6
  "dependencies": {
7
7
  "@date-io/moment": "^1.3.13",
8
8
  "@react-sigma/core": "^2.0.2",
9
- "@reltio/mdm-module": "^1.4.1387",
10
- "@reltio/mdm-sdk": "^1.4.1387",
9
+ "@reltio/hierarchy-tree": "^1.4.1389",
10
+ "@reltio/mdm-module": "^1.4.1389",
11
+ "@reltio/mdm-sdk": "^1.4.1389",
11
12
  "classnames": "^2.2.5",
12
13
  "graphology": "^0.24.1",
13
14
  "graphology-layout": "^0.5.0",