@nebula.js/sn-pivot-table 0.2.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/LICENSE +21 -0
- package/README.md +95 -0
- package/api-specifications/properties.json +130 -0
- package/core/esm/index.js +40 -0
- package/core/package.json +8 -0
- package/dist/sn-pivot-table.js +40 -0
- package/package.json +104 -0
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +40 -0
- package/sn-pivot-table-ext/sn-pivot-table.js +1 -0
- package/sn-pivot-table-ext/sn-pivot-table.qext +9 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Qlik - Open Source Software
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
[](https://circleci.com/gh/qlik-oss/sn-pivot-table)
|
|
2
|
+
|
|
3
|
+
# sn-pivot-table
|
|
4
|
+
|
|
5
|
+
Pivot Table supernova for [nebula.js]
|
|
6
|
+
|
|
7
|
+
More specifics and information about the sn-pivot-table can be found in [the Qlik developer portal](https://qlik.dev/libraries-and-tools/visualizations/pivot-table).
|
|
8
|
+
|
|
9
|
+
## Mashup Usage
|
|
10
|
+
|
|
11
|
+
### Installing
|
|
12
|
+
|
|
13
|
+
If you use npm:
|
|
14
|
+
|
|
15
|
+
`npm install @nebula.js/sn-pivot-table`
|
|
16
|
+
|
|
17
|
+
Or without build tool, You can also load the sn-pivot-table through the script tag from [unpkg](https://unpkg.com/@nebula.js/sn-pivot-table).
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<script src="https://unpkg.com/@nebula.js/sn-pivot-table"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Usage
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
import { embed } from '@nebula.js/stardust';
|
|
27
|
+
import pivotTable from '@nebula.js/sn-pivot-table';
|
|
28
|
+
|
|
29
|
+
// 'app' is an enigma app model
|
|
30
|
+
const nuked = embed(app, {
|
|
31
|
+
types: [{ // register the pivot table object
|
|
32
|
+
name: 'pivot-table',
|
|
33
|
+
load: () => Promise.resolve(pivotTable);
|
|
34
|
+
}]
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
nuked.render({
|
|
38
|
+
element,
|
|
39
|
+
type: 'pivot-table',
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Tutorial & Examples
|
|
44
|
+
|
|
45
|
+
Look into [Build a simple mashup using nebula.js](https://qlik.dev/tutorials/build-a-simple-mashup-using-nebulajs) and [Embed a visualization](https://qlik.dev/libraries-and-tools/nebulajs/rendering) to learn more.
|
|
46
|
+
|
|
47
|
+
[Check full examples](./mashup-example) of the mashup usage.
|
|
48
|
+
|
|
49
|
+
## Visualization Extension Usage
|
|
50
|
+
|
|
51
|
+
### Building and adding the sn-pivot-table extension to Qlik Sense
|
|
52
|
+
|
|
53
|
+
Install all dependencies:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
yarn
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Build a nebula.js visualization as a Qlik Sense extension:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
yarn build
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Compress the generated 'sn-pivot-table-ext' folder into the 'application/zip' file format
|
|
66
|
+
|
|
67
|
+
| [Saas Edition of Qlik Sense] | [Qlik Sense Enterprise] | [Qlik Sense Desktop] |
|
|
68
|
+
| :--------------------------------------------------------------------------------------: | :--------------------------------------------------------------------: | :------------------------------------------------------------------------------: |
|
|
69
|
+
| Copy sn-pivot-table-ext into https://your-tenant-id.us.qlikcloud.com/console/extensions/ | Copy sn-pivot-table-ext into Qlik Management Console (QMC)->Extensions | Copy sn-pivot-table-ext into ..\Users\<UserName>\Documents\Qlik\Sense\Extensions |
|
|
70
|
+
|
|
71
|
+
## API
|
|
72
|
+
|
|
73
|
+
The API can also be found in [the Qlik developer portal](https://qlik.dev/apis/javascript/nebula-pivot-table)
|
|
74
|
+
|
|
75
|
+
## Contribution
|
|
76
|
+
|
|
77
|
+
To learn how to run a sn-pivot-table extension using nebula development server and develop, see our [contributing guide](./.github/CONTRIBUTION.md).
|
|
78
|
+
|
|
79
|
+
## Package
|
|
80
|
+
|
|
81
|
+
| name | status | description |
|
|
82
|
+
| ---------------- | ---------------------------------------------- | ----------------------------------- |
|
|
83
|
+
| [sn-pivot-table] | [![sn-pivot-table-status]][sn-pivot-table-npm] | pivot-table supernova for nebula.js |
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
`@nebula.js/sn-pivot-table` is [MIT licensed](./LICENSE).
|
|
88
|
+
|
|
89
|
+
[nebula.js]: https://qlik.dev/libraries-and-tools/nebulajs
|
|
90
|
+
[sn-pivot-table]: https://github.com/qlik-oss/sn-pivot-table
|
|
91
|
+
[sn-pivot-table-status]: https://img.shields.io/npm/v/@nebula.js/sn-pivot-table.svg
|
|
92
|
+
[sn-pivot-table-npm]: https://www.npmjs.com/package/@nebula.js/sn-pivot-table
|
|
93
|
+
[saas edition of qlik sense]: https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-extensions.htm
|
|
94
|
+
[qlik sense enterprise]: https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/Howtos/deploy-extensions.htm
|
|
95
|
+
[qlik sense desktop]: https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/Howtos/deploy-extensions.htm
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scriptappy": "1.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"name": "@nebula.js/sn-pivot-table:properties",
|
|
5
|
+
"description": "Pivot Table generic object definition",
|
|
6
|
+
"version": "0.2.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"stability": "experimental",
|
|
9
|
+
"x-qlik-visibility": "public"
|
|
10
|
+
},
|
|
11
|
+
"entries": {
|
|
12
|
+
"properties": {
|
|
13
|
+
"extends": [
|
|
14
|
+
{
|
|
15
|
+
"type": "GenericObjectProperties"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"kind": "object",
|
|
19
|
+
"entries": {
|
|
20
|
+
"footnote": {
|
|
21
|
+
"description": "Visualization footnote",
|
|
22
|
+
"optional": true,
|
|
23
|
+
"defaultValue": "",
|
|
24
|
+
"kind": "union",
|
|
25
|
+
"items": [
|
|
26
|
+
{
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "StringExpression"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"type": "any"
|
|
34
|
+
},
|
|
35
|
+
"nullValueRepresentation": {
|
|
36
|
+
"description": "Null value properties",
|
|
37
|
+
"optional": true,
|
|
38
|
+
"kind": "object",
|
|
39
|
+
"entries": {
|
|
40
|
+
"text": {
|
|
41
|
+
"description": "Null value text",
|
|
42
|
+
"optional": true,
|
|
43
|
+
"defaultValue": "-",
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"qHyperCubeDef": {
|
|
49
|
+
"extends": [
|
|
50
|
+
{
|
|
51
|
+
"type": "HyperCubeDef"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"kind": "object",
|
|
55
|
+
"entries": {
|
|
56
|
+
"qAlwaysFullyExpanded": {
|
|
57
|
+
"defaultValue": false,
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"qDimensions": {
|
|
61
|
+
"kind": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "NxDimension"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"qMeasures": {
|
|
67
|
+
"kind": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "NxMeasure"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"qShowTotalsAbove": {
|
|
73
|
+
"defaultValue": true,
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
},
|
|
76
|
+
"qSuppressMissing": {
|
|
77
|
+
"defaultValue": true,
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"qSuppressZero": {
|
|
81
|
+
"defaultValue": false,
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"showTitles": {
|
|
87
|
+
"description": "Show title for the visualization",
|
|
88
|
+
"optional": true,
|
|
89
|
+
"defaultValue": true,
|
|
90
|
+
"type": "boolean"
|
|
91
|
+
},
|
|
92
|
+
"subtitle": {
|
|
93
|
+
"description": "Visualization subtitle",
|
|
94
|
+
"optional": true,
|
|
95
|
+
"defaultValue": "",
|
|
96
|
+
"kind": "union",
|
|
97
|
+
"items": [
|
|
98
|
+
{
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "StringExpression"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"type": "any"
|
|
106
|
+
},
|
|
107
|
+
"title": {
|
|
108
|
+
"description": "Visualization title",
|
|
109
|
+
"optional": true,
|
|
110
|
+
"defaultValue": "",
|
|
111
|
+
"kind": "union",
|
|
112
|
+
"items": [
|
|
113
|
+
{
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "StringExpression"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"type": "any"
|
|
121
|
+
},
|
|
122
|
+
"version": {
|
|
123
|
+
"description": "Current version of this generic object definition",
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"definitions": {}
|
|
130
|
+
}
|