@eeacms/volto-tableau 1.3.0 → 3.0.0
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/.coverage.babel.config.js +1 -1
- package/.i18n.babel.config.js +1 -0
- package/.project.eslintrc.js +47 -0
- package/CHANGELOG.md +35 -1
- package/Jenkinsfile +10 -10
- package/babel.config.js +17 -0
- package/cypress/{integration/block-basics.js → e2e/block-basics.cy.js} +8 -11
- package/cypress/support/commands.js +223 -1
- package/cypress/support/e2e.js +125 -0
- package/cypress.config.js +26 -0
- package/jest-addon.config.js +3 -4
- package/package.json +4 -2
- package/src/Blocks/EmbedEEATableauBlock/Edit.jsx +55 -0
- package/src/Blocks/EmbedEEATableauBlock/View.jsx +55 -0
- package/src/Blocks/EmbedEEATableauBlock/schema.js +31 -0
- package/src/ConnectedTableau/ConnectedTableau.jsx +21 -0
- package/src/Tableau/View.jsx +16 -2
- package/src/TableauBlock/View.jsx +5 -0
- package/src/Views/VisualizationView.jsx +43 -0
- package/src/Views/index.js +3 -0
- package/src/Widgets/VisualizationWidget.jsx +158 -0
- package/src/Widgets/index.js +3 -0
- package/src/Widgets/schema.js +176 -0
- package/src/Widgets/style.less +8 -0
- package/src/helpers.js +11 -4
- package/src/index.js +29 -0
- package/src/less/tableau.less +55 -0
- package/cypress/plugins/index.js +0 -26
- package/cypress/support/index.js +0 -53
- package/cypress.json +0 -17
package/src/less/tableau.less
CHANGED
|
@@ -49,4 +49,59 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
.not_displayed_tableau {
|
|
53
|
+
width: 100%;
|
|
54
|
+
min-width: 633px;
|
|
55
|
+
height: 100%;
|
|
56
|
+
min-height: 200px;
|
|
57
|
+
background-color: #ebebeb;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tableau-block {
|
|
61
|
+
.tableau-info {
|
|
62
|
+
p.tableau-error {
|
|
63
|
+
padding: 10px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.tableau-loader {
|
|
68
|
+
display: flex;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
margin: auto;
|
|
75
|
+
animation: anim 1s linear infinite;
|
|
76
|
+
background-image: linear-gradient(
|
|
77
|
+
-45deg,
|
|
78
|
+
#5ac5f1 25%,
|
|
79
|
+
#96bbde 25%,
|
|
80
|
+
#96bbde 50%,
|
|
81
|
+
#5ac5f1 50%,
|
|
82
|
+
#5ac5f1 75%,
|
|
83
|
+
#96bbde 75%
|
|
84
|
+
);
|
|
85
|
+
background-size: 100px 100px;
|
|
86
|
+
border-radius: 5px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.tableau-loader span {
|
|
91
|
+
margin: 6px auto;
|
|
92
|
+
color: white;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
text-align: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@keyframes anim {
|
|
98
|
+
0% {
|
|
99
|
+
background-position: 0 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
100% {
|
|
103
|
+
background-position: 50px 50px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
52
107
|
.loadAddonOverrides();
|
package/cypress/plugins/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
// ***********************************************************
|
|
3
|
-
// This example plugins/index.js can be used to load plugins
|
|
4
|
-
//
|
|
5
|
-
// You can change the location of this file or turn off loading
|
|
6
|
-
// the plugins file with the 'pluginsFile' configuration option.
|
|
7
|
-
//
|
|
8
|
-
// You can read more here:
|
|
9
|
-
// https://on.cypress.io/plugins-guide
|
|
10
|
-
// ***********************************************************
|
|
11
|
-
|
|
12
|
-
// This function is called when a project is opened or re-opened (e.g. due to
|
|
13
|
-
// the project's config changing)
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @type {Cypress.PluginConfig}
|
|
17
|
-
*/
|
|
18
|
-
module.exports = (on, config) => {
|
|
19
|
-
// `on` is used to hook into various events Cypress emits
|
|
20
|
-
// `config` is the resolved Cypress config
|
|
21
|
-
/* coverage-start
|
|
22
|
-
require('@cypress/code-coverage/task')(on, config)
|
|
23
|
-
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
|
|
24
|
-
return config
|
|
25
|
-
coverage-end */
|
|
26
|
-
};
|
package/cypress/support/index.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// ***********************************************************
|
|
2
|
-
// This example support/index.js is processed and
|
|
3
|
-
// loaded automatically before your test files.
|
|
4
|
-
//
|
|
5
|
-
// This is a great place to put global configuration and
|
|
6
|
-
// behavior that modifies Cypress.
|
|
7
|
-
//
|
|
8
|
-
// You can change the location of this file or turn off
|
|
9
|
-
// automatically serving support files with the
|
|
10
|
-
// 'supportFile' configuration option.
|
|
11
|
-
//
|
|
12
|
-
// You can read more here:
|
|
13
|
-
// https://on.cypress.io/configuration
|
|
14
|
-
// ***********************************************************
|
|
15
|
-
|
|
16
|
-
// Import commands.js using ES2015 syntax:
|
|
17
|
-
import './commands';
|
|
18
|
-
|
|
19
|
-
// Alternatively you can use CommonJS syntax:
|
|
20
|
-
// require('./commands')
|
|
21
|
-
|
|
22
|
-
/* coverage-start
|
|
23
|
-
//Generate code-coverage
|
|
24
|
-
import '@cypress/code-coverage/support';
|
|
25
|
-
coverage-end */
|
|
26
|
-
|
|
27
|
-
export const setupBeforeEach = () => {
|
|
28
|
-
cy.autologin();
|
|
29
|
-
cy.createContent({
|
|
30
|
-
contentType: 'Document',
|
|
31
|
-
contentId: 'cypress',
|
|
32
|
-
contentTitle: 'Cypress',
|
|
33
|
-
});
|
|
34
|
-
cy.createContent({
|
|
35
|
-
contentType: 'Document',
|
|
36
|
-
contentId: 'my-page',
|
|
37
|
-
contentTitle: 'My Page',
|
|
38
|
-
path: 'cypress',
|
|
39
|
-
});
|
|
40
|
-
cy.visit('/cypress/my-page');
|
|
41
|
-
cy.waitForResourceToLoad('@navigation');
|
|
42
|
-
cy.waitForResourceToLoad('@breadcrumbs');
|
|
43
|
-
cy.waitForResourceToLoad('@actions');
|
|
44
|
-
cy.waitForResourceToLoad('@types');
|
|
45
|
-
cy.waitForResourceToLoad('my-page');
|
|
46
|
-
cy.navigate('/cypress/my-page/edit');
|
|
47
|
-
cy.get(`.block.title [data-contents]`);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const tearDownAfterEach = () => {
|
|
51
|
-
cy.autologin();
|
|
52
|
-
cy.removeContent('cypress');
|
|
53
|
-
};
|
package/cypress.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"baseUrl": "http://localhost:3000",
|
|
3
|
-
"viewportWidth": 1280,
|
|
4
|
-
"defaultCommandTimeout": 8888,
|
|
5
|
-
"reporter": "junit",
|
|
6
|
-
"video": true,
|
|
7
|
-
"reporterOptions": {
|
|
8
|
-
"mochaFile": "cypress/reports/cypress-[hash].xml",
|
|
9
|
-
"jenkinsMode": true,
|
|
10
|
-
"toConsole": true
|
|
11
|
-
},
|
|
12
|
-
"chromeWebSecurity": false,
|
|
13
|
-
"retries": {
|
|
14
|
-
"runMode": 8,
|
|
15
|
-
"openMode": 0
|
|
16
|
-
}
|
|
17
|
-
}
|