@nebula.js/cli-create 3.1.1 → 3.1.3
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/package.json +2 -2
- package/templates/sn/none/_package.json +1 -1
- package/templates/sn/none/src/ext.js +11 -9
- package/templates/sn/none/src/index.js +11 -2
- package/templates/sn/picasso/barchart/src/ext.js +11 -9
- package/templates/sn/picasso/common/src/index.js +11 -1
- package/templates/sn/picasso/minimal/src/ext.js +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/cli-create",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "QlikTech International AB",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"fs-extra": "11.1.0",
|
|
28
28
|
"inquirer": "8.2.5"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "700123db15623eb31d863204d454b3100cc749a5"
|
|
31
31
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "nebula build",
|
|
19
19
|
"lint": "eslint src",
|
|
20
20
|
"start": "nebula serve",
|
|
21
|
-
"sense": "nebula sense --
|
|
21
|
+
"sense": "nebula sense --meta src/meta.json",
|
|
22
22
|
"test:e2e": "playwright test",
|
|
23
23
|
"test:e2e:report": "playwright show-report test/integration/test-report"
|
|
24
24
|
},
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
export default function ext(/* galaxy */) {
|
|
2
|
+
return {
|
|
3
|
+
support: {
|
|
4
|
+
snapshot: false,
|
|
5
|
+
export: true,
|
|
6
|
+
sharing: false,
|
|
7
|
+
exportData: true,
|
|
8
|
+
viewData: true,
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { useElement } from '@nebula.js/stardust';
|
|
2
2
|
import properties from './object-properties';
|
|
3
3
|
import data from './data';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import ext from './ext';
|
|
5
|
+
/**
|
|
6
|
+
* Entrypoint for your sense visualization
|
|
7
|
+
* @param {object} galaxy Contains global settings from the environment.
|
|
8
|
+
* Useful for cases when stardust hooks are unavailable (ie: outside the component function)
|
|
9
|
+
* @param {object} galaxy.anything Extra environment dependent options
|
|
10
|
+
* @param {object=} galaxy.anything.sense Optional object only present within Sense,
|
|
11
|
+
* see: https://qlik.dev/libraries-and-tools/nebulajs/in-qlik-sense
|
|
12
|
+
*/
|
|
13
|
+
export default function supernova(galaxy) {
|
|
6
14
|
return {
|
|
7
15
|
qae: {
|
|
8
16
|
properties,
|
|
9
17
|
data,
|
|
10
18
|
},
|
|
19
|
+
ext: ext(galaxy),
|
|
11
20
|
component() {
|
|
12
21
|
const element = useElement();
|
|
13
22
|
element.innerHTML = '<div>Hello!</div>'; // eslint-disable-line
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
export default function ext(/* galaxy */) {
|
|
2
|
+
return {
|
|
3
|
+
support: {
|
|
4
|
+
snapshot: false,
|
|
5
|
+
export: true,
|
|
6
|
+
sharing: false,
|
|
7
|
+
exportData: true,
|
|
8
|
+
viewData: true,
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -14,8 +14,17 @@ import properties from './object-properties';
|
|
|
14
14
|
import data from './data';
|
|
15
15
|
import picSelections from './pic-selections';
|
|
16
16
|
import definition from './pic-definition';
|
|
17
|
+
import ext from './ext';
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Entrypoint for your sense visualization
|
|
21
|
+
* @param {object} galaxy Contains global settings from the environment.
|
|
22
|
+
* Useful for cases when stardust hooks are unavailable (ie: outside the component function)
|
|
23
|
+
* @param {object} galaxy.anything Extra environment dependent options
|
|
24
|
+
* @param {object=} galaxy.anything.sense Optional object only present within Sense,
|
|
25
|
+
* see: https://qlik.dev/libraries-and-tools/nebulajs/in-qlik-sense
|
|
26
|
+
*/
|
|
27
|
+
export default function supernova(galaxy) {
|
|
19
28
|
const picasso = picassojs();
|
|
20
29
|
picasso.use(picassoQ);
|
|
21
30
|
|
|
@@ -24,6 +33,7 @@ export default function supernova(/* env */) {
|
|
|
24
33
|
properties,
|
|
25
34
|
data,
|
|
26
35
|
},
|
|
36
|
+
ext: ext(galaxy),
|
|
27
37
|
component() {
|
|
28
38
|
const element = useElement();
|
|
29
39
|
const selections = useSelections();
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
export default function ext(/* galaxy */) {
|
|
2
|
+
return {
|
|
3
|
+
support: {
|
|
4
|
+
snapshot: false,
|
|
5
|
+
export: true,
|
|
6
|
+
sharing: false,
|
|
7
|
+
exportData: true,
|
|
8
|
+
viewData: true,
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
}
|