Commit 105ea6e
committed
perspective-select API change+enhancement
Add removeConfigs support to perspective-select for off-candidates filter removal
The workspace's global filter propagation could not remove filters applied to
columns outside the master viewer's group_by/split_by/filter candidates set.
Once such a filter was applied it was permanently stuck on slave viewers.
Introduces removeConfigs: ViewConfigUpdate[] on the perspective-select event
detail, which explicitly removes filters from slave viewers by column regardless
of the candidates set. Also replaces the untyped event detail object with a
typed PerspectiveSelectDetail class exported from @perspective-dev/viewer.
Breaking change: the config field on perspective-select event details is
replaced by insertConfigs and removeConfigs. viewer-datagrid and viewer-d3fc
are updated accordingly.
Signed-off-by: Davis Silverman <davis@thedav.is>1 parent bfc12d8 commit 105ea6e
File tree
9 files changed
+305
-37
lines changed- packages
- react/src
- viewer-d3fc/src/ts/tooltip
- viewer-datagrid/src/ts
- event_handlers
- workspace
- src/ts/workspace
- test/js
- rust/perspective-viewer/src/ts
9 files changed
+305
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
Lines changed: 19 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | | - | |
70 | | - | |
| 64 | + | |
| 65 | + | |
71 | 66 | | |
72 | | - | |
73 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
74 | 71 | | |
75 | 72 | | |
76 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
247 | | - | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 258 | + | |
| 259 | + | |
263 | 260 | | |
264 | 261 | | |
265 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
| 686 | + | |
| 687 | + | |
687 | 688 | | |
688 | 689 | | |
689 | 690 | | |
690 | 691 | | |
691 | 692 | | |
692 | 693 | | |
693 | | - | |
| 694 | + | |
694 | 695 | | |
695 | 696 | | |
696 | | - | |
| 697 | + | |
| 698 | + | |
697 | 699 | | |
698 | 700 | | |
699 | | - | |
| 701 | + | |
| 702 | + | |
700 | 703 | | |
701 | 704 | | |
702 | 705 | | |
| |||
712 | 715 | | |
713 | 716 | | |
714 | 717 | | |
715 | | - | |
| 718 | + | |
716 | 719 | | |
717 | 720 | | |
718 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
719 | 728 | | |
720 | 729 | | |
721 | 730 | | |
722 | | - | |
| 731 | + | |
| 732 | + | |
723 | 733 | | |
724 | 734 | | |
725 | 735 | | |
| |||
0 commit comments