@nebula.js/sn-pivot-table 2.0.0-alpha.0 → 2.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/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  [![CircleCI](https://circleci.com/gh/qlik-oss/sn-pivot-table.svg?style=shield)](https://circleci.com/gh/qlik-oss/sn-pivot-table)
2
+ [![Maintainability](https://api.codeclimate.com/v1/badges/3cdd48efedd802f9fccf/maintainability)](https://codeclimate.com/github/qlik-oss/sn-pivot-table/maintainability)
3
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/3cdd48efedd802f9fccf/test_coverage)](https://codeclimate.com/github/qlik-oss/sn-pivot-table/test_coverage)
2
4
 
3
5
  # sn-pivot-table
4
6
 
@@ -1,9 +1,9 @@
1
1
  {
2
- "scriptappy": "1.0.0",
2
+ "scriptappy": "1.1.0",
3
3
  "info": {
4
4
  "name": "@nebula.js/sn-pivot-table:properties",
5
5
  "description": "Pivot Table generic object definition",
6
- "version": "2.0.0-alpha.0",
6
+ "version": "2.0.0",
7
7
  "license": "MIT",
8
8
  "stability": "experimental",
9
9
  "x-qlik-visibility": "public"
@@ -17,41 +17,9 @@
17
17
  ],
18
18
  "kind": "object",
19
19
  "entries": {
20
- "components": {
21
- "description": "Holds general styling",
22
- "nullable": true,
23
- "kind": "array",
24
- "items": {
25
- "type": "#/definitions/Component"
26
- }
27
- },
28
- "footnote": {
29
- "description": "Visualization footnote",
30
- "optional": true,
31
- "defaultValue": "",
32
- "kind": "union",
33
- "items": [
34
- {
35
- "type": "string"
36
- },
37
- {
38
- "type": "StringExpression"
39
- }
40
- ],
41
- "type": "any"
42
- },
43
- "nullValueRepresentation": {
44
- "description": "Null value properties",
45
- "optional": true,
46
- "kind": "object",
47
- "entries": {
48
- "text": {
49
- "description": "Null value text",
50
- "optional": true,
51
- "defaultValue": "-",
52
- "type": "string"
53
- }
54
- }
20
+ "version": {
21
+ "description": "Current version of this generic object definition",
22
+ "type": "string"
55
23
  },
56
24
  "qHyperCubeDef": {
57
25
  "extends": [
@@ -77,10 +45,6 @@
77
45
  "type": "NxMeasure"
78
46
  }
79
47
  },
80
- "qShowTotalsAbove": {
81
- "defaultValue": true,
82
- "type": "boolean"
83
- },
84
48
  "qSuppressMissing": {
85
49
  "defaultValue": true,
86
50
  "type": "boolean"
@@ -88,6 +52,10 @@
88
52
  "qSuppressZero": {
89
53
  "defaultValue": false,
90
54
  "type": "boolean"
55
+ },
56
+ "qShowTotalsAbove": {
57
+ "defaultValue": true,
58
+ "type": "boolean"
91
59
  }
92
60
  }
93
61
  },
@@ -97,6 +65,20 @@
97
65
  "defaultValue": true,
98
66
  "type": "boolean"
99
67
  },
68
+ "title": {
69
+ "description": "Visualization title",
70
+ "optional": true,
71
+ "defaultValue": "",
72
+ "kind": "union",
73
+ "items": [
74
+ {
75
+ "type": "string"
76
+ },
77
+ {
78
+ "type": "StringExpression"
79
+ }
80
+ ]
81
+ },
100
82
  "subtitle": {
101
83
  "description": "Visualization subtitle",
102
84
  "optional": true,
@@ -109,11 +91,10 @@
109
91
  {
110
92
  "type": "StringExpression"
111
93
  }
112
- ],
113
- "type": "any"
94
+ ]
114
95
  },
115
- "title": {
116
- "description": "Visualization title",
96
+ "footnote": {
97
+ "description": "Visualization footnote",
117
98
  "optional": true,
118
99
  "defaultValue": "",
119
100
  "kind": "union",
@@ -124,12 +105,28 @@
124
105
  {
125
106
  "type": "StringExpression"
126
107
  }
127
- ],
128
- "type": "any"
108
+ ]
129
109
  },
130
- "version": {
131
- "description": "Current version of this generic object definition",
132
- "type": "string"
110
+ "nullValueRepresentation": {
111
+ "description": "Null value properties",
112
+ "optional": true,
113
+ "entries": {
114
+ "text": {
115
+ "description": "Null value text",
116
+ "optional": true,
117
+ "defaultValue": "-",
118
+ "type": "string"
119
+ }
120
+ },
121
+ "kind": "object"
122
+ },
123
+ "components": {
124
+ "description": "Holds general styling",
125
+ "nullable": true,
126
+ "kind": "array",
127
+ "items": {
128
+ "type": "#/definitions/Component"
129
+ }
133
130
  }
134
131
  }
135
132
  }
@@ -137,85 +134,97 @@
137
134
  "definitions": {
138
135
  "Component": {
139
136
  "description": "General styling for all columns.\nSplit up into header and content (body) styling.\nIf any property is not set, default values specific for each property is used.",
140
- "kind": "object",
141
- "entries": {
142
- "key": {
143
- "description": "This should be set to `theme`",
144
- "type": "string"
145
- },
146
- "content": {
147
- "optional": true,
148
- "type": "#/definitions/ContentStyling"
149
- },
150
- "header": {
151
- "optional": true,
152
- "type": "#/definitions/HeaderStyling"
137
+ "kind": "alias",
138
+ "items": {
139
+ "kind": "object",
140
+ "entries": {
141
+ "key": {
142
+ "description": "This should be set to `theme`",
143
+ "type": "string"
144
+ },
145
+ "content": {
146
+ "optional": true,
147
+ "type": "#/definitions/ContentStyling"
148
+ },
149
+ "header": {
150
+ "optional": true,
151
+ "type": "#/definitions/HeaderStyling"
152
+ }
153
153
  }
154
154
  }
155
155
  },
156
156
  "ContentStyling": {
157
157
  "description": "Holds properties for font size, font color and hover styling.",
158
- "kind": "object",
159
- "entries": {
160
- "fontSize": {
161
- "description": "Defaults to `14`",
162
- "optional": true,
163
- "type": "number"
164
- },
165
- "fontColor": {
166
- "description": "Defaults to `#404040`",
167
- "optional": true,
168
- "type": "#/definitions/PaletteColor"
169
- },
170
- "hoverEffect": {
171
- "description": "Toggles hover effect",
172
- "optional": true,
173
- "type": "boolean"
174
- },
175
- "hoverColor": {
176
- "description": "Background hover color. Uses `#f4f4f4` if no hover colors are set, is transparent if only `hoverFontColor` is set",
177
- "optional": true,
178
- "type": "#/definitions/PaletteColor"
179
- },
180
- "hoverFontColor": {
181
- "description": "When only `hoverColor` is set, this is adjusted to either `#f4f4f4` or `#ffffff` for optimal contrast",
182
- "optional": true,
183
- "type": "#/definitions/PaletteColor"
184
- },
185
- "padding": {
186
- "description": "Css setting for the cell padding, defaults to `4px 12px`",
187
- "optional": true,
188
- "type": "string"
158
+ "kind": "alias",
159
+ "items": {
160
+ "kind": "object",
161
+ "entries": {
162
+ "fontSize": {
163
+ "description": "Defaults to `14`",
164
+ "optional": true,
165
+ "type": "number"
166
+ },
167
+ "fontColor": {
168
+ "description": "Defaults to `#404040`",
169
+ "optional": true,
170
+ "type": "#/definitions/PaletteColor"
171
+ },
172
+ "hoverEffect": {
173
+ "description": "Toggles hover effect",
174
+ "optional": true,
175
+ "type": "boolean"
176
+ },
177
+ "hoverColor": {
178
+ "description": "Background hover color. Uses `#f4f4f4` if no hover colors are set, is transparent if only `hoverFontColor` is set",
179
+ "optional": true,
180
+ "type": "#/definitions/PaletteColor"
181
+ },
182
+ "hoverFontColor": {
183
+ "description": "When only `hoverColor` is set, this is adjusted to either `#f4f4f4` or `#ffffff` for optimal contrast",
184
+ "optional": true,
185
+ "type": "#/definitions/PaletteColor"
186
+ },
187
+ "padding": {
188
+ "description": "Css setting for the cell padding, defaults to `4px 12px`",
189
+ "optional": true,
190
+ "type": "string"
191
+ }
189
192
  }
190
193
  }
191
194
  },
192
195
  "HeaderStyling": {
193
196
  "description": "Holds properties for font size and color.",
194
- "kind": "object",
195
- "entries": {
196
- "fontSize": {
197
- "description": "Defaults to `14`",
198
- "optional": true,
199
- "type": "number"
200
- },
201
- "fontColor": {
202
- "description": "Defaults to `#404040`",
203
- "optional": true,
204
- "type": "#/definitions/PaletteColor"
197
+ "kind": "alias",
198
+ "items": {
199
+ "kind": "object",
200
+ "entries": {
201
+ "fontSize": {
202
+ "description": "Defaults to `14`",
203
+ "optional": true,
204
+ "type": "number"
205
+ },
206
+ "fontColor": {
207
+ "description": "Defaults to `#404040`",
208
+ "optional": true,
209
+ "type": "#/definitions/PaletteColor"
210
+ }
205
211
  }
206
212
  }
207
213
  },
208
214
  "PaletteColor": {
209
215
  "description": "Color information structure. Holds the actual color and index in palette",
210
- "kind": "object",
211
- "entries": {
212
- "color": {
213
- "description": "Color as hex string (mandatory if index: -1)",
214
- "type": "string"
215
- },
216
- "index": {
217
- "description": "Index in palette",
218
- "type": "number"
216
+ "kind": "alias",
217
+ "items": {
218
+ "kind": "object",
219
+ "entries": {
220
+ "color": {
221
+ "description": "Color as hex string (mandatory if index: -1)",
222
+ "type": "string"
223
+ },
224
+ "index": {
225
+ "description": "Index in palette",
226
+ "type": "number"
227
+ }
219
228
  }
220
229
  }
221
230
  }