synapse-react-client 2.0.53 → 2.0.57

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 (104) hide show
  1. package/dist/assets/icons/Data2.svg +2 -2
  2. package/dist/assets/icons/NoSearchResults.svg +2 -2
  3. package/dist/assets/icons/json-form-tool-no-submissions.svg +4 -4
  4. package/dist/assets/icons/organizations.svg +2 -2
  5. package/dist/assets/icons/subscribe_plus.svg +2 -2
  6. package/dist/assets/skeletons/SkeletonTable.d.ts +2 -0
  7. package/dist/assets/skeletons/SkeletonTable.js +4 -4
  8. package/dist/assets/skeletons/SkeletonTable.js.map +1 -1
  9. package/dist/assets/themed_icons/Database.js +2 -2
  10. package/dist/assets/themed_icons/Database.js.map +1 -1
  11. package/dist/assets/themed_icons/Project.js +2 -2
  12. package/dist/assets/themed_icons/Project.js.map +1 -1
  13. package/dist/assets/themed_icons/Settings.js +2 -2
  14. package/dist/assets/themed_icons/Settings.js.map +1 -1
  15. package/dist/assets/themed_icons/ToolComputational.js +2 -2
  16. package/dist/assets/themed_icons/ToolComputational.js.map +1 -1
  17. package/dist/assets/themed_icons/ToolExperimental.js +6 -6
  18. package/dist/assets/themed_icons/ToolExperimental.js.map +1 -1
  19. package/dist/containers/EntityLink.d.ts +5 -4
  20. package/dist/containers/EntityLink.js +37 -8
  21. package/dist/containers/EntityLink.js.map +1 -1
  22. package/dist/containers/FullWidthAlert.js +3 -3
  23. package/dist/containers/FullWidthAlert.js.map +1 -1
  24. package/dist/containers/GenericCard.d.ts +2 -2
  25. package/dist/containers/GenericCard.js.map +1 -1
  26. package/dist/containers/IconSvg.js +14 -13
  27. package/dist/containers/IconSvg.js.map +1 -1
  28. package/dist/containers/Login.d.ts +4 -1
  29. package/dist/containers/Login.js +8 -4
  30. package/dist/containers/Login.js.map +1 -1
  31. package/dist/containers/LoginPage.d.ts +1 -1
  32. package/dist/containers/LoginPage.js +2 -2
  33. package/dist/containers/LoginPage.js.map +1 -1
  34. package/dist/containers/ModalDownload.js +3 -8
  35. package/dist/containers/ModalDownload.js.map +1 -1
  36. package/dist/containers/PlotlyWrapper.d.ts +2 -0
  37. package/dist/containers/PlotlyWrapper.js +5 -7
  38. package/dist/containers/PlotlyWrapper.js.map +1 -1
  39. package/dist/containers/StackedBarChart.js +1 -1
  40. package/dist/containers/StackedBarChart.js.map +1 -1
  41. package/dist/containers/SubsectionRowRenderer.js +1 -1
  42. package/dist/containers/SubsectionRowRenderer.js.map +1 -1
  43. package/dist/containers/download_list_v2/DownloadListActionsRequired.js +4 -6
  44. package/dist/containers/download_list_v2/DownloadListActionsRequired.js.map +1 -1
  45. package/dist/containers/download_list_v2/MeetAccessRequirementCard.d.ts +1 -0
  46. package/dist/containers/download_list_v2/MeetAccessRequirementCard.js +15 -4
  47. package/dist/containers/download_list_v2/MeetAccessRequirementCard.js.map +1 -1
  48. package/dist/containers/entity/annotations/SchemaDrivenAnnotationEditor.d.ts +2 -2
  49. package/dist/containers/entity/annotations/SchemaDrivenAnnotationEditor.js +22 -19
  50. package/dist/containers/entity/annotations/SchemaDrivenAnnotationEditor.js.map +1 -1
  51. package/dist/containers/entity_finder/EntityFinder.js +4 -2
  52. package/dist/containers/entity_finder/EntityFinder.js.map +1 -1
  53. package/dist/containers/home_page/featured_tools/FeaturedToolsList.js +1 -1
  54. package/dist/containers/home_page/featured_tools/FeaturedToolsList.js.map +1 -1
  55. package/dist/containers/query_wrapper_plot_nav/QueryWrapperPlotNav.d.ts +1 -1
  56. package/dist/containers/query_wrapper_plot_nav/QueryWrapperPlotNav.js +1 -1
  57. package/dist/containers/query_wrapper_plot_nav/QueryWrapperPlotNav.js.map +1 -1
  58. package/dist/containers/synapse_table_functions/SynapseTableCell.d.ts +7 -16
  59. package/dist/containers/synapse_table_functions/SynapseTableCell.js +87 -74
  60. package/dist/containers/synapse_table_functions/SynapseTableCell.js.map +1 -1
  61. package/dist/containers/synapse_table_functions/getColumnIndiciesWithType.d.ts +2 -2
  62. package/dist/containers/synapse_table_functions/getColumnIndiciesWithType.js.map +1 -1
  63. package/dist/containers/table/StandaloneQueryWrapper.d.ts +33 -0
  64. package/dist/containers/table/StandaloneQueryWrapper.js +59 -0
  65. package/dist/containers/table/StandaloneQueryWrapper.js.map +1 -0
  66. package/dist/containers/table/SynapseTable.d.ts +4 -7
  67. package/dist/containers/table/SynapseTable.js +11 -20
  68. package/dist/containers/table/SynapseTable.js.map +1 -1
  69. package/dist/containers/{query_wrapper_plot_nav → table}/TopLevelControls.d.ts +4 -2
  70. package/dist/containers/{query_wrapper_plot_nav → table}/TopLevelControls.js +13 -11
  71. package/dist/containers/table/TopLevelControls.js.map +1 -0
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +2 -0
  74. package/dist/index.js.map +1 -1
  75. package/dist/rollup.index.d.ts +1 -1
  76. package/dist/style/abstracts/_mixins.scss +9 -7
  77. package/dist/style/abstracts/_variables.scss +42 -29
  78. package/dist/style/base/_icons.scss +8 -7
  79. package/dist/style/bootstrap4_backports/_base-import.scss +46 -0
  80. package/dist/style/components/_carousel.scss +4 -3
  81. package/dist/style/components/_global-alert.scss +3 -0
  82. package/dist/style/components/_project-view-card.scss +2 -1
  83. package/dist/style/components/_query-filter.scss +2 -1
  84. package/dist/style/components/_query-wrapper-plot-nav.scss +41 -40
  85. package/dist/style/components/entity_finder/_entity-finder.scss +2 -1
  86. package/dist/style/components/entity_finder/_selection-pane.scss +2 -1
  87. package/dist/style/main.css +649 -203
  88. package/dist/template_style/_form.scss +8 -0
  89. package/dist/umd/synapse-react-client.production.min.js +18 -18
  90. package/dist/umd/synapse-react-client.production.styles.css +649 -203
  91. package/dist/utils/SynapseClient.d.ts +3 -4
  92. package/dist/utils/SynapseClient.js +9 -9
  93. package/dist/utils/SynapseClient.js.map +1 -1
  94. package/dist/utils/hooks/SynapseAPI/useEntity.d.ts +2 -2
  95. package/dist/utils/hooks/SynapseAPI/useEntity.js +11 -5
  96. package/dist/utils/hooks/SynapseAPI/useEntity.js.map +1 -1
  97. package/dist/utils/synapseTypes/Table/ColumnType.d.ts +2 -1
  98. package/dist/utils/synapseTypes/Table/ColumnType.js +1 -0
  99. package/dist/utils/synapseTypes/Table/ColumnType.js.map +1 -1
  100. package/dist/utils/synapseTypes/Table/SelectColumn.d.ts +2 -18
  101. package/dist/utils/synapseTypes/Table/SelectColumn.js +0 -19
  102. package/dist/utils/synapseTypes/Table/SelectColumn.js.map +1 -1
  103. package/package.json +2 -2
  104. package/dist/containers/query_wrapper_plot_nav/TopLevelControls.js.map +0 -1
@@ -1,7 +1,29 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+
1
4
  // -----------------------------------------------------------------------------
2
5
  // This file contains all application-wide Sass variables.
3
6
  // -----------------------------------------------------------------------------
4
7
 
8
+ // Colors defined by design: https://www.figma.com/file/0oPm5lLSUva8kyfVNMS6FA/Synapse-Style-%26-Component-Library?node-id=77%3A1232
9
+ $colors: (
10
+ 'gray-1000': #22252a,
11
+ 'gray-900': #353a3f,
12
+ 'gray-800': #4a5056,
13
+ 'gray-700': #878e95,
14
+ 'gray-600': #aeb5bc,
15
+ 'gray-500': #d0d4d9,
16
+ 'gray-400': #dfe2e6,
17
+ 'gray-300': #eaecee,
18
+ 'gray-200': #f1f3f5,
19
+ 'gray-100': #fbfbfc,
20
+ 'white': #ffffff,
21
+ 'success': #32a330,
22
+ 'info': #017fa5,
23
+ 'warning': #cc9f00,
24
+ 'error': #c13415,
25
+ ) !default;
26
+
5
27
  $gray-dark: #dcdcdc !default;
6
28
  $gray-light: #f9f9f9 !default;
7
29
  $background-color-gray: $gray-light !default;
@@ -51,37 +73,28 @@ $primary-action-color-active: adjust-color(
51
73
  $lightness: 0%
52
74
  ) !default;
53
75
 
54
- $primary-action-color-900: adjust-color(
55
- $primary-action-color,
56
- $saturation: 24%,
57
- $lightness: -18%
58
- ) !default;
59
-
60
- $primary-action-color-700: adjust-color(
61
- $primary-action-color,
62
- $saturation: 11%,
63
- $lightness: -8%
64
- ) !default;
65
-
66
- $primary-action-color-500: adjust-color(
67
- $primary-action-color,
68
- $saturation: 29%,
69
- $lightness: -4%
70
- ) !default;
71
-
72
- $primary-action-color-300: adjust-color(
73
- $primary-action-color,
74
- $saturation: -3%,
75
- $lightness: 10%
76
+ $primary-color-palette: (
77
+ 100: adjust-color($primary-action-color, $saturation: -25%, $lightness: 50%),
78
+ 200: adjust-color($primary-action-color, $saturation: -13%, $lightness: 20%),
79
+ 300: adjust-color($primary-action-color, $saturation: -3%, $lightness: 10%),
80
+ 400: adjust-color($primary-action-color, $saturation: -1%, $lightness: 5%),
81
+ 500: $primary-action-color,
82
+ 600: adjust-color($primary-action-color, $saturation: 5%, $lightness: -4%),
83
+ 700: adjust-color($primary-action-color, $saturation: 11%, $lightness: -8%),
84
+ 800: adjust-color($primary-action-color, $saturation: 18%, $lightness: -10%),
85
+ 900: adjust-color($primary-action-color, $saturation: 24%, $lightness: -18%),
76
86
  ) !default;
77
87
 
78
- $primary-color-palette: (
79
- base: $primary-action-color,
80
- active: $primary-action-color-active,
81
- 300: $primary-action-color-300,
82
- 500: $primary-action-color-500,
83
- 700: $primary-action-color-700,
84
- 900: $primary-action-color-900,
88
+ $secondary-color-palette: (
89
+ 100: adjust-color($secondary-action-color, $saturation: -25%, $lightness: 50%),
90
+ 200: adjust-color($secondary-action-color, $saturation: -13%, $lightness: 20%),
91
+ 300: adjust-color($secondary-action-color, $saturation: -3%, $lightness: 10%),
92
+ 400: adjust-color($secondary-action-color, $saturation: -1%, $lightness: 5%),
93
+ 500: $secondary-action-color,
94
+ 600: adjust-color($secondary-action-color, $saturation: 5%, $lightness: -4%),
95
+ 700: adjust-color($secondary-action-color, $saturation: 11%, $lightness: -8%),
96
+ 800: adjust-color($secondary-action-color, $saturation: 18%, $lightness: -10%),
97
+ 900: adjust-color($secondary-action-color, $saturation: 24%, $lightness: -18%),
85
98
  ) !default;
86
99
 
87
100
  /// Breakpoints map
@@ -1,4 +1,5 @@
1
1
  @use '../abstracts/variables' as SRC;
2
+ @use 'sass:map';
2
3
 
3
4
  .SRC-arrow-icon,
4
5
  .Icon-Plus,
@@ -12,12 +13,12 @@
12
13
  .SRC-r-icon,
13
14
  .SRC-python-icon {
14
15
  path {
15
- fill: SRC.$primary-action-color-500;
16
+ fill: map.get(SRC.$primary-color-palette, 500);
16
17
  }
17
18
  }
18
19
 
19
20
  .SRC-terminal-icon > rect.outer {
20
- fill: SRC.$primary-action-color-500;
21
+ fill: map.get(SRC.$primary-color-palette, 500);
21
22
  }
22
23
 
23
24
  .styled-svg-wrapper {
@@ -52,12 +53,12 @@
52
53
  &.themed {
53
54
  path,
54
55
  circle {
55
- fill: SRC.$primary-action-color-500;
56
+ fill: map.get(SRC.$primary-color-palette, 500);
56
57
  }
57
58
  .icon-kinomics,
58
59
  .icon-proteomics {
59
60
  path {
60
- stroke: SRC.$primary-action-color-500;
61
+ stroke: map.get(SRC.$primary-color-palette, 500);
61
62
  fill: none;
62
63
  }
63
64
  }
@@ -65,7 +66,7 @@
65
66
  .styled-svg-wrapper {
66
67
  display: inline-flex;
67
68
  padding: 2px;
68
- background-color: rgba(SRC.$primary-action-color-500, 0.1);
69
+ background-color: rgba(map.get(SRC.$primary-color-palette, 500), 0.1);
69
70
  border-radius: 50%;
70
71
  margin: 0 2px;
71
72
  }
@@ -75,7 +76,7 @@
75
76
 
76
77
  .SRC-Sort-Icon-Active {
77
78
  padding: 2px;
78
- background-color: SRC.$primary-action-color-500;
79
+ background-color: map.get(SRC.$primary-color-palette, 500);
79
80
  path {
80
81
  fill: white;
81
82
  }
@@ -85,7 +86,7 @@
85
86
  padding: 2px;
86
87
 
87
88
  path {
88
- fill: SRC.$primary-action-color-500;
89
+ fill: map.get(SRC.$primary-color-palette, 500);
89
90
  }
90
91
  }
91
92
 
@@ -1,5 +1,6 @@
1
1
  @use '../abstracts/variables' as SRC;
2
2
  @use 'sass:color';
3
+ @use 'sass:map';
3
4
 
4
5
  .bootstrap-4-backport {
5
6
  //initial bootstrap config based on Synapse design
@@ -158,4 +159,49 @@
158
159
  $active-background: SRC.$gray-light
159
160
  );
160
161
  }
162
+
163
+ // Primary button based on Synapse Design System
164
+ // See https://www.figma.com/file/0oPm5lLSUva8kyfVNMS6FA/Synapse-Style-%26-Component-Library?node-id=53%3A1189
165
+ .btn-sds-primary {
166
+ @include button-variant(
167
+ $background: map.get(SRC.$primary-color-palette, 500),
168
+ $border: map.get(SRC.$primary-color-palette, 500),
169
+ $hover-background: map.get(SRC.$primary-color-palette, 600),
170
+ $hover-border: map.get(SRC.$primary-color-palette, 600),
171
+ $active-background: map.get(SRC.$primary-color-palette, 700),
172
+ $active-border: map.get(SRC.$primary-color-palette, 700)
173
+ );
174
+ border-radius: 0px;
175
+ font-weight: 900;
176
+ &:hover {
177
+ box-shadow: none; // ?
178
+ }
179
+
180
+ &:disabled {
181
+ color: map.get(SRC.$colors, 'gray-600');
182
+ background-color: map.get(SRC.$colors, 'gray-400');
183
+ border-color: map.get(SRC.$colors, 'gray-400');
184
+ }
185
+ }
186
+
187
+ // Secondary button based on Synapse Design System
188
+ // See https://www.figma.com/file/0oPm5lLSUva8kyfVNMS6FA/Synapse-Style-%26-Component-Library?node-id=53%3A1216
189
+ .btn-outline {
190
+ @include button-outline-variant(
191
+ $color: map.get(SRC.$primary-color-palette, 500),
192
+ $color-hover: map.get(SRC.$primary-color-palette, 600),
193
+ $active-background: rgba(255, 255, 255, 0),
194
+ $active-border: map.get(SRC.$primary-color-palette, 700)
195
+ );
196
+ border-radius: 0px;
197
+ font-weight: 900;
198
+ &:hover {
199
+ box-shadow: none; // ?
200
+ }
201
+
202
+ &:disabled {
203
+ color: map.get(SRC.$colors, 'gray-600');
204
+ border-color: map.get(SRC.$colors, 'gray-400');
205
+ }
206
+ }
161
207
  }
@@ -1,4 +1,5 @@
1
1
  @use '../abstracts/variables' as SRC;
2
+ @use 'sass:map';
2
3
 
3
4
  .SRC-Carousel {
4
5
  padding-top: 10px;
@@ -31,14 +32,14 @@
31
32
  width: 16px;
32
33
  height: 16px;
33
34
  background: none;
34
- border: 1px solid SRC.$primary-action-color-500;
35
+ border: 1px solid map.get(SRC.$primary-color-palette, 500);
35
36
  }
36
37
 
37
38
  .BrainhubCarousel__dot--selected::before {
38
39
  width: 16px;
39
40
  height: 16px;
40
- background-color: SRC.$primary-action-color-500;
41
- border: 1px solid SRC.$primary-action-color-500;
41
+ background-color: map.get(SRC.$primary-color-palette, 500);
42
+ border: 1px solid map.get(SRC.$primary-color-palette, 500);
42
43
  }
43
44
  }
44
45
  }
@@ -26,6 +26,9 @@
26
26
  .messageArea {
27
27
  max-width: 700px;
28
28
  grid-row: 1 / span 1;
29
+ p {
30
+ margin-bottom: 0px;
31
+ }
29
32
  }
30
33
  .iconForeground {
31
34
  color: white;
@@ -1,4 +1,5 @@
1
1
  @use '../abstracts/variables' as SRC;
2
+ @use 'sass:map';
2
3
 
3
4
  .ProjectViewCard {
4
5
  word-wrap: break-word;
@@ -24,7 +25,7 @@
24
25
  &__ImagePlaceholder {
25
26
  width: 100%;
26
27
  height: 25%;
27
- background: SRC.$primary-action-color-300;
28
+ background: map.get(SRC.$primary-color-palette, 300);
28
29
  }
29
30
 
30
31
  &__ProjectName {
@@ -1,11 +1,12 @@
1
1
  @use '../abstracts/variables' as SRC;
2
+ @use 'sass:map';
2
3
 
3
4
  .QueryFilter {
4
5
  &__title {
5
6
  font-weight: bold;
6
7
  }
7
8
  padding: 2rem;
8
- background-color: rgba(SRC.$primary-action-color-500, 0.05);
9
+ background-color: rgba(map.get(SRC.$primary-color-palette, 500), 0.05);
9
10
  &__facet {
10
11
  margin: 2rem 0;
11
12
  &:first-child {
@@ -122,46 +122,6 @@
122
122
  margin-bottom: 10px;
123
123
  }
124
124
 
125
- .TopLevelControls {
126
- h3 {
127
- display: flex;
128
- justify-content: space-between;
129
- font-weight: bold;
130
- margin-top: 0px;
131
- }
132
- padding-top: 20px;
133
- padding-bottom: 10px;
134
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
135
- margin-bottom: 15px;
136
- &__showhidefacetfilters {
137
- display: none;
138
- }
139
- .QueryWrapperPlotNav__querycount {
140
- display: inline-flex;
141
- align-items: center;
142
- }
143
- .QueryWrapperPlotNav__actions {
144
- display: inline-flex;
145
- align-items: center;
146
- .ElementWithTooltip {
147
- padding: 5px;
148
- margin: 0 1px;
149
- border: 0;
150
- border-radius: 0;
151
-
152
- &:active:focus,
153
- &:focus {
154
- outline: none;
155
- }
156
-
157
- // icons on the top level control bar should have total area 36x36 (26px dim + 10px padding)
158
- svg {
159
- width: 26px;
160
- height: 26px;
161
- }
162
- }
163
- }
164
- }
165
125
  .SRC-portalCard:first-child {
166
126
  margin-top: 0px;
167
127
  }
@@ -175,3 +135,44 @@
175
135
  }
176
136
  }
177
137
  }
138
+
139
+ .TopLevelControls {
140
+ h3 {
141
+ display: flex;
142
+ justify-content: space-between;
143
+ font-weight: bold;
144
+ margin-top: 0px;
145
+ }
146
+ padding-top: 20px;
147
+ padding-bottom: 10px;
148
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
149
+ margin-bottom: 15px;
150
+ &__showhidefacetfilters {
151
+ display: none;
152
+ }
153
+ &__querycount {
154
+ display: inline-flex;
155
+ align-items: center;
156
+ }
157
+ &__actions {
158
+ display: inline-flex;
159
+ align-items: center;
160
+ .ElementWithTooltip {
161
+ padding: 5px;
162
+ margin: 0 1px;
163
+ border: 0;
164
+ border-radius: 0;
165
+
166
+ &:active:focus,
167
+ &:focus {
168
+ outline: none;
169
+ }
170
+
171
+ // icons on the top level control bar should have total area 36x36 (26px dim + 10px padding)
172
+ svg {
173
+ width: 26px;
174
+ height: 26px;
175
+ }
176
+ }
177
+ }
178
+ }
@@ -1,5 +1,6 @@
1
1
  @use '../../abstracts/variables' as SRC;
2
2
  @use 'sass:color';
3
+ @use 'sass:map';
3
4
 
4
5
  $-border-size: 1px;
5
6
  $-header-height: 45px;
@@ -51,7 +52,7 @@ $-splitter-width: 12px;
51
52
  top: 1px;
52
53
  }
53
54
  .ClearSearchIcon {
54
- color: SRC.$primary-action-color-500;
55
+ color: map.get(SRC.$primary-color-palette, 500);
55
56
  cursor: pointer;
56
57
  position: relative;
57
58
  left: -20px;
@@ -1,5 +1,6 @@
1
1
  @use '../../abstracts/variables' as SRC;
2
2
  @use 'sass:color';
3
+ @use 'sass:map';
3
4
 
4
5
  .EntityFinderSelectionPane {
5
6
  width: 100%;
@@ -28,7 +29,7 @@
28
29
  }
29
30
 
30
31
  &__DeselectButton {
31
- color: SRC.$primary-action-color-500;
32
+ color: map.get(SRC.$primary-color-palette, 500);
32
33
  cursor: pointer;
33
34
  }
34
35
  }