@eeacms/volto-tableau 6.0.4 → 6.0.5
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.
- package/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/src/Blocks/EmbedTableauVisualization/View.jsx +2 -0
- package/src/Blocks/EmbedTableauVisualization/schema.js +6 -0
- package/src/Blocks/TableauBlock/View.jsx +8 -1
- package/src/Blocks/TableauBlock/schema.js +6 -0
- package/src/Tableau/Tableau.jsx +18 -0
- package/src/Views/VisualizationView.jsx +1 -0
- package/src/Widgets/VisualizationViewWidget.jsx +2 -1
- package/src/Widgets/VisualizationWidget.jsx +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [6.0.5](https://github.com/eea/volto-tableau/compare/6.0.4...6.0.5) - 15 November 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: add enlarge option for tableau [kreafox - [`4af7c29`](https://github.com/eea/volto-tableau/commit/4af7c29462302b318a5d24118288ef982cc1cd1c)]
|
|
12
|
+
|
|
7
13
|
### [6.0.4](https://github.com/eea/volto-tableau/compare/6.0.3...6.0.4) - 15 November 2023
|
|
8
14
|
|
|
9
15
|
#### :bug: Bug Fixes
|
|
@@ -23,6 +29,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
23
29
|
|
|
24
30
|
#### :house: Internal changes
|
|
25
31
|
|
|
32
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`903b90a`](https://github.com/eea/volto-tableau/commit/903b90a2df0abc183aa68d99a89bb688de3a0c73)]
|
|
26
33
|
|
|
27
34
|
#### :hammer_and_wrench: Others
|
|
28
35
|
|
|
@@ -32,6 +39,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
32
39
|
- tests: increase coverage [kreafox - [`ecb9262`](https://github.com/eea/volto-tableau/commit/ecb92625a44365faf4c39f0ff3f02ccc4ca21656)]
|
|
33
40
|
- Fix tableau height [kreafox - [`6194c24`](https://github.com/eea/volto-tableau/commit/6194c2405e2bd93aba9865caed76292cd55193d3)]
|
|
34
41
|
- Show share & download button on widget view [kreafox - [`a66e253`](https://github.com/eea/volto-tableau/commit/a66e2537d08dc7129e249c28e1daa27246c88815)]
|
|
42
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`9d2189d`](https://github.com/eea/volto-tableau/commit/9d2189d4edb13dd449d75cd6dd9052bbed67304d)]
|
|
43
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`f2fa3f9`](https://github.com/eea/volto-tableau/commit/f2fa3f9ccabab918586179ac16ead44e2eba8498)]
|
|
44
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`5748183`](https://github.com/eea/volto-tableau/commit/5748183c27dae18a4ebbc067d659cbc24cad8f71)]
|
|
35
45
|
- use toolbar from volto-embed [Miu Razvan - [`1a232a1`](https://github.com/eea/volto-tableau/commit/1a232a15f2bbe05da75307800590d0a0a1c4996b)]
|
|
36
46
|
## [6.0.0](https://github.com/eea/volto-tableau/compare/5.0.2...6.0.0) - 30 October 2023
|
|
37
47
|
|
|
@@ -89,6 +99,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
89
99
|
- test: change volto version in Jenkinsfile [ana-oprea - [`347aceb`](https://github.com/eea/volto-tableau/commit/347aceb07d152fddeebbf3a7e7a6ac9c55dc21ba)]
|
|
90
100
|
- test: increase cypress timeout [ana-oprea - [`bdf4408`](https://github.com/eea/volto-tableau/commit/bdf44083cd84c96b4914d3f8a3bb17c5187f191c)]
|
|
91
101
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`caff974`](https://github.com/eea/volto-tableau/commit/caff9742a703b224133a8dd2a969629e70c9fd33)]
|
|
102
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`b8be7fb`](https://github.com/eea/volto-tableau/commit/b8be7fb9ab10faed0a1be8ce7e3d4e7c78ebe020)]
|
|
92
103
|
- i18n: Add en [Alin Voinea - [`c5e20dd`](https://github.com/eea/volto-tableau/commit/c5e20ddea25c830ac80665ee9a71e557e8cd117d)]
|
|
93
104
|
- test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`2116ff9`](https://github.com/eea/volto-tableau/commit/2116ff95c6454e813bdca44e6c3aa81fa0a916b8)]
|
|
94
105
|
## [5.0.0](https://github.com/eea/volto-tableau/compare/4.1.1...5.0.0) - 25 July 2023
|
|
@@ -100,17 +111,21 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
100
111
|
#### :hammer_and_wrench: Others
|
|
101
112
|
|
|
102
113
|
- Release 5.0.0 [Alin Voinea - [`97c98e9`](https://github.com/eea/volto-tableau/commit/97c98e98b1295a4ad45756326dc20cd59517515f)]
|
|
114
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`2acb3a5`](https://github.com/eea/volto-tableau/commit/2acb3a5490f62ce0a95ebbd03c32874ac3a42603)]
|
|
103
115
|
### [4.1.1](https://github.com/eea/volto-tableau/compare/4.1.0...4.1.1) - 21 July 2023
|
|
104
116
|
|
|
105
117
|
#### :hammer_and_wrench: Others
|
|
106
118
|
|
|
107
119
|
- Add VisualizationViewWidget [Tiberiu Ichim - [`fa881cb`](https://github.com/eea/volto-tableau/commit/fa881cbc3643a46697fb16d1c86ada1d4121a46a)]
|
|
120
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`cbcbad2`](https://github.com/eea/volto-tableau/commit/cbcbad26f7aa3683122199c8d5cbd142903df93b)]
|
|
121
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`51abe6d`](https://github.com/eea/volto-tableau/commit/51abe6d4db80825fe2e396e04c7003c6ad79b480)]
|
|
108
122
|
### [4.1.0](https://github.com/eea/volto-tableau/compare/4.0.0...4.1.0) - 15 June 2023
|
|
109
123
|
|
|
110
124
|
## [4.0.0](https://github.com/eea/volto-tableau/compare/3.0.8...4.0.0) - 13 June 2023
|
|
111
125
|
|
|
112
126
|
#### :house: Internal changes
|
|
113
127
|
|
|
128
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`e33bb21`](https://github.com/eea/volto-tableau/commit/e33bb21eb429c33e3a15d771487a1c9af8ccb0d5)]
|
|
114
129
|
|
|
115
130
|
#### :hammer_and_wrench: Others
|
|
116
131
|
|
|
@@ -142,6 +157,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
142
157
|
|
|
143
158
|
#### :hammer_and_wrench: Others
|
|
144
159
|
|
|
160
|
+
- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`f5deccd`](https://github.com/eea/volto-tableau/commit/f5deccd84372752908b300c5cfd78134818e5ce4)]
|
|
145
161
|
### [3.0.6](https://github.com/eea/volto-tableau/compare/3.0.5...3.0.6) - 30 January 2023
|
|
146
162
|
|
|
147
163
|
### [3.0.5](https://github.com/eea/volto-tableau/compare/3.0.4...3.0.5) - 26 January 2023
|
|
@@ -213,6 +229,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
213
229
|
- Update commands.js [Nilesh - [`7c48437`](https://github.com/eea/volto-tableau/commit/7c4843780efb9b85a4728de73c00d831c1d8fdcf)]
|
|
214
230
|
- Update e2e.js [Nilesh - [`f67b45c`](https://github.com/eea/volto-tableau/commit/f67b45c170f58f8d0301192994226f173e4cb00a)]
|
|
215
231
|
- latest volto compatibility refs #154757 [nileshgulia1 - [`881ba48`](https://github.com/eea/volto-tableau/commit/881ba482dc9b82e7fdac16549d41e80a6d26b3de)]
|
|
232
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`58e25df`](https://github.com/eea/volto-tableau/commit/58e25df2291add09670143bee54cde103ee835b9)]
|
|
216
233
|
### [1.3.0](https://github.com/eea/volto-tableau/compare/1.2.5...1.3.0) - 28 September 2022
|
|
217
234
|
|
|
218
235
|
#### :hammer_and_wrench: Others
|
|
@@ -226,11 +243,15 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
226
243
|
- Use volto 16 alpha 14 [Miu Razvan - [`93641be`](https://github.com/eea/volto-tableau/commit/93641be4c2393f49008aff789400cf7c947949fd)]
|
|
227
244
|
- Revert volto-tableau group to common [Andrei Grigore - [`9d24c6d`](https://github.com/eea/volto-tableau/commit/9d24c6d2767fed6a840cddaee55dbd5cecb544b5)]
|
|
228
245
|
- Tableaugroup typo fix [Andrei Grigore - [`b0b5378`](https://github.com/eea/volto-tableau/commit/b0b5378a437043120a96c9e5e8802584145daa22)]
|
|
246
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`3234347`](https://github.com/eea/volto-tableau/commit/3234347e524cc0ed4918242f503fe9e7dba266b2)]
|
|
229
247
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`d237e1c`](https://github.com/eea/volto-tableau/commit/d237e1c72817d7e68a3eb698563674d1514db24f)]
|
|
230
248
|
### [1.2.4](https://github.com/eea/volto-tableau/compare/1.2.3...1.2.4) - 25 October 2021
|
|
231
249
|
|
|
232
250
|
#### :hammer_and_wrench: Others
|
|
233
251
|
|
|
252
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`2b19679`](https://github.com/eea/volto-tableau/commit/2b19679e2c7bcdc83082d1c73a595eea8b86d14f)]
|
|
253
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`384ccae`](https://github.com/eea/volto-tableau/commit/384ccaebed8c414a5c90eb96c6ce0a2b091f249c)]
|
|
254
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`589258e`](https://github.com/eea/volto-tableau/commit/589258e9b3cbba9cee37c57bb85ca5b707bc65d7)]
|
|
234
255
|
### [1.2.3](https://github.com/eea/volto-tableau/compare/1.2.2...1.2.3) - 14 June 2021
|
|
235
256
|
|
|
236
257
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ const View = (props) => {
|
|
|
14
14
|
with_more_info = true,
|
|
15
15
|
with_download = true,
|
|
16
16
|
with_share = true,
|
|
17
|
+
with_enlarge = true,
|
|
17
18
|
tableau_height = 700,
|
|
18
19
|
} = data;
|
|
19
20
|
const { figure_note = [], data_provenance = {}, tableau_visualization } =
|
|
@@ -51,6 +52,7 @@ const View = (props) => {
|
|
|
51
52
|
with_more_info,
|
|
52
53
|
with_download,
|
|
53
54
|
with_share,
|
|
55
|
+
with_enlarge,
|
|
54
56
|
tableau_height,
|
|
55
57
|
tableau_vis_url,
|
|
56
58
|
}}
|
|
@@ -58,6 +58,7 @@ export default () => {
|
|
|
58
58
|
'with_more_info',
|
|
59
59
|
'with_download',
|
|
60
60
|
'with_share',
|
|
61
|
+
'with_enlarge',
|
|
61
62
|
],
|
|
62
63
|
},
|
|
63
64
|
{
|
|
@@ -87,6 +88,11 @@ export default () => {
|
|
|
87
88
|
type: 'boolean',
|
|
88
89
|
defaultValue: true,
|
|
89
90
|
},
|
|
91
|
+
with_enlarge: {
|
|
92
|
+
title: 'Show enlarge button',
|
|
93
|
+
type: 'boolean',
|
|
94
|
+
defaultValue: true,
|
|
95
|
+
},
|
|
90
96
|
with_download: {
|
|
91
97
|
title: 'Show download button',
|
|
92
98
|
type: 'boolean',
|
|
@@ -22,6 +22,7 @@ const View = React.forwardRef((props, ref) => {
|
|
|
22
22
|
with_sources = true,
|
|
23
23
|
with_download = true,
|
|
24
24
|
with_share = true,
|
|
25
|
+
with_enlarge = true,
|
|
25
26
|
sources,
|
|
26
27
|
} = data;
|
|
27
28
|
|
|
@@ -75,7 +76,13 @@ const View = React.forwardRef((props, ref) => {
|
|
|
75
76
|
ref={viz}
|
|
76
77
|
mode={mode}
|
|
77
78
|
block={block}
|
|
78
|
-
data={{
|
|
79
|
+
data={{
|
|
80
|
+
...data,
|
|
81
|
+
with_sources,
|
|
82
|
+
with_download,
|
|
83
|
+
with_share,
|
|
84
|
+
with_enlarge,
|
|
85
|
+
}}
|
|
79
86
|
sources={sources}
|
|
80
87
|
extraFilters={extraFilters}
|
|
81
88
|
extraOptions={extraOptions}
|
|
@@ -100,6 +100,7 @@ export default (config, viz, vizState) => {
|
|
|
100
100
|
'with_sources',
|
|
101
101
|
'with_download',
|
|
102
102
|
'with_share',
|
|
103
|
+
'with_enlarge',
|
|
103
104
|
],
|
|
104
105
|
},
|
|
105
106
|
{
|
|
@@ -147,6 +148,11 @@ export default (config, viz, vizState) => {
|
|
|
147
148
|
type: 'boolean',
|
|
148
149
|
defaultValue: true,
|
|
149
150
|
},
|
|
151
|
+
with_enlarge: {
|
|
152
|
+
title: 'Show enlarge button',
|
|
153
|
+
type: 'boolean',
|
|
154
|
+
defaultValue: true,
|
|
155
|
+
},
|
|
150
156
|
with_sources: {
|
|
151
157
|
title: 'Show sources',
|
|
152
158
|
type: 'boolean',
|
package/src/Tableau/Tableau.jsx
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
Sources,
|
|
20
20
|
MoreInfo,
|
|
21
21
|
Share,
|
|
22
|
+
Enlarge,
|
|
22
23
|
} from '@eeacms/volto-embed/Toolbar';
|
|
23
24
|
import { useTableau } from '@eeacms/volto-tableau/hooks';
|
|
24
25
|
import { JsonCodeSnippet, Download } from '@eeacms/volto-tableau/Utils';
|
|
@@ -107,6 +108,7 @@ const Tableau = forwardRef((props, ref) => {
|
|
|
107
108
|
with_more_info = true,
|
|
108
109
|
with_download = true,
|
|
109
110
|
with_share = true,
|
|
111
|
+
with_enlarge = true,
|
|
110
112
|
tableau_height = 700,
|
|
111
113
|
} = data;
|
|
112
114
|
const device = useMemo(
|
|
@@ -444,6 +446,22 @@ const Tableau = forwardRef((props, ref) => {
|
|
|
444
446
|
{with_more_info && <MoreInfo href={tableau_vis_url || data.url} />}
|
|
445
447
|
</div>
|
|
446
448
|
<div className="right-col">
|
|
449
|
+
{with_enlarge && loaded && (
|
|
450
|
+
<Enlarge>
|
|
451
|
+
<Tableau
|
|
452
|
+
{...props}
|
|
453
|
+
data={{
|
|
454
|
+
...props.data,
|
|
455
|
+
with_notes: false,
|
|
456
|
+
with_sources: false,
|
|
457
|
+
with_more_info: false,
|
|
458
|
+
with_enlarge: false,
|
|
459
|
+
with_share: false,
|
|
460
|
+
with_download: false,
|
|
461
|
+
}}
|
|
462
|
+
/>
|
|
463
|
+
</Enlarge>
|
|
464
|
+
)}
|
|
447
465
|
{with_download && loaded && <Download viz={viz.current} />}
|
|
448
466
|
{with_share && loaded && (
|
|
449
467
|
<Share href={tableau_vis_url || data.url} />
|
|
@@ -10,8 +10,9 @@ export default function VisualizationViewWidget(props) {
|
|
|
10
10
|
...value,
|
|
11
11
|
with_notes: false,
|
|
12
12
|
with_sources: false,
|
|
13
|
-
with_more_info:
|
|
13
|
+
with_more_info: false,
|
|
14
14
|
with_share: true,
|
|
15
|
+
with_enlarge: true,
|
|
15
16
|
with_download: true,
|
|
16
17
|
}}
|
|
17
18
|
breakpoints={
|
|
@@ -78,6 +78,7 @@ const VisualizationWidget = (props) => {
|
|
|
78
78
|
with_sources: false,
|
|
79
79
|
with_more_info: false,
|
|
80
80
|
with_share: false,
|
|
81
|
+
with_enlarge: false,
|
|
81
82
|
with_download: false,
|
|
82
83
|
}}
|
|
83
84
|
mode="edit"
|
|
@@ -127,6 +128,7 @@ const VisualizationWidget = (props) => {
|
|
|
127
128
|
with_sources: false,
|
|
128
129
|
with_more_info: false,
|
|
129
130
|
with_share: false,
|
|
131
|
+
with_enlarge: false,
|
|
130
132
|
with_download: false,
|
|
131
133
|
}}
|
|
132
134
|
breakpoints={
|