@nebula.js/sn-pivot-table 2.1.0 → 2.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/api-specifications/properties.json +163 -79
- package/core/esm/index.js +92 -3
- package/core/package.json +1 -1
- package/dist/sn-pivot-table.js +94 -5
- package/dist/sn-pivot-table.systemjs.js +92 -3
- package/package.json +55 -51
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +94 -5
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"name": "@nebula.js/sn-pivot-table:properties",
|
|
5
5
|
"description": "Pivot Table generic object definition",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.2.0",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"stability": "experimental",
|
|
9
9
|
"x-qlik-visibility": "public"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"qDimensions": {
|
|
37
37
|
"kind": "array",
|
|
38
38
|
"items": {
|
|
39
|
-
"type": "
|
|
39
|
+
"type": "#/definitions/DimensionProperties"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"qMeasures": {
|
|
43
43
|
"kind": "array",
|
|
44
44
|
"items": {
|
|
45
|
-
"type": "
|
|
45
|
+
"type": "#/definitions/MeasureProperties"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"qSuppressMissing": {
|
|
@@ -132,99 +132,183 @@
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
"definitions": {
|
|
135
|
+
"DimensionProperties": {
|
|
136
|
+
"description": "Extends `NxDimension`, see Engine API: `NxDimension`",
|
|
137
|
+
"extends": [
|
|
138
|
+
{
|
|
139
|
+
"type": "NxDimension"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"kind": "object",
|
|
143
|
+
"entries": {
|
|
144
|
+
"qDef": {
|
|
145
|
+
"type": "#/definitions/InlineDimensionDef"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"MeasureProperties": {
|
|
150
|
+
"description": "Extends `NxMeasure`, see Engine API: `NxMeasure`",
|
|
151
|
+
"extends": [
|
|
152
|
+
{
|
|
153
|
+
"type": "NxMeasure"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"kind": "object",
|
|
157
|
+
"entries": {
|
|
158
|
+
"qDefs": {
|
|
159
|
+
"type": "#/definitions/InlineMeasureDef"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"InlineDimensionDef": {
|
|
164
|
+
"description": "Extends `NxInlineDimensionDef`, see Engine API: `NxInlineDimensionDef`.",
|
|
165
|
+
"extends": [
|
|
166
|
+
{
|
|
167
|
+
"type": "NxInlineDimensionDef"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"kind": "object",
|
|
171
|
+
"entries": {
|
|
172
|
+
"columnWidth": {
|
|
173
|
+
"optional": true,
|
|
174
|
+
"type": "#/definitions/ColumnWidth"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"InlineMeasureDef": {
|
|
179
|
+
"description": "Extends `NxInlineMeasureDef`, see Engine API: `NxInlineMeasureDef`.",
|
|
180
|
+
"extends": [
|
|
181
|
+
{
|
|
182
|
+
"type": "NxInlineMeasureDef"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"kind": "object",
|
|
186
|
+
"entries": {
|
|
187
|
+
"columnWidth": {
|
|
188
|
+
"optional": true,
|
|
189
|
+
"type": "#/definitions/ColumnWidth"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"ColumnWidth": {
|
|
194
|
+
"description": "Column width info. For the left grid, the properties are always applied.\nFor the right grid, only the leaf nodes will listen to the properties, and the columns above will get the width of the leaves accumulated",
|
|
195
|
+
"kind": "object",
|
|
196
|
+
"entries": {
|
|
197
|
+
"type": {
|
|
198
|
+
"description": "Defines how the column width is set. For the right grid, `auto` calculates the width(s) so the total width of the columns equals the right grid width. If the width reaches a minimum value, the columns will overflow. For the left grid, `auto` is N/A and defaults to `fitToContent`. `fitToContent` calculates a width based on the column's content. `pixels` uses a specified pixel value. `percentage` sets the column width to specified percentage of the chart/grid width",
|
|
199
|
+
"kind": "union",
|
|
200
|
+
"items": [
|
|
201
|
+
{
|
|
202
|
+
"kind": "literal",
|
|
203
|
+
"value": "'auto'"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"kind": "literal",
|
|
207
|
+
"value": "'FitToContent'"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"kind": "literal",
|
|
211
|
+
"value": "'pixels'"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"kind": "literal",
|
|
215
|
+
"value": "'percentage'"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"pixels": {
|
|
220
|
+
"description": "Pixel value used if type is `pixels`",
|
|
221
|
+
"optional": true,
|
|
222
|
+
"type": "number"
|
|
223
|
+
},
|
|
224
|
+
"percentage": {
|
|
225
|
+
"description": "Percentage value used if type is `percentage`. Note that for the left grid columns, this is a percentage of the whole chart width. For the right grid columns, it is a percentage of the right grid width",
|
|
226
|
+
"optional": true,
|
|
227
|
+
"type": "number"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
135
231
|
"Component": {
|
|
136
232
|
"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.",
|
|
137
|
-
"kind": "
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
"optional": true,
|
|
151
|
-
"type": "#/definitions/HeaderStyling"
|
|
152
|
-
}
|
|
233
|
+
"kind": "object",
|
|
234
|
+
"entries": {
|
|
235
|
+
"key": {
|
|
236
|
+
"description": "This should be set to `theme`",
|
|
237
|
+
"type": "string"
|
|
238
|
+
},
|
|
239
|
+
"content": {
|
|
240
|
+
"optional": true,
|
|
241
|
+
"type": "#/definitions/ContentStyling"
|
|
242
|
+
},
|
|
243
|
+
"header": {
|
|
244
|
+
"optional": true,
|
|
245
|
+
"type": "#/definitions/HeaderStyling"
|
|
153
246
|
}
|
|
154
247
|
}
|
|
155
248
|
},
|
|
156
249
|
"ContentStyling": {
|
|
157
250
|
"description": "Holds properties for font size, font color and hover styling.",
|
|
158
|
-
"kind": "
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
"optional": true,
|
|
190
|
-
"type": "string"
|
|
191
|
-
}
|
|
251
|
+
"kind": "object",
|
|
252
|
+
"entries": {
|
|
253
|
+
"fontSize": {
|
|
254
|
+
"description": "Defaults to `14`",
|
|
255
|
+
"optional": true,
|
|
256
|
+
"type": "number"
|
|
257
|
+
},
|
|
258
|
+
"fontColor": {
|
|
259
|
+
"description": "Defaults to `#404040`",
|
|
260
|
+
"optional": true,
|
|
261
|
+
"type": "#/definitions/PaletteColor"
|
|
262
|
+
},
|
|
263
|
+
"hoverEffect": {
|
|
264
|
+
"description": "Toggles hover effect",
|
|
265
|
+
"optional": true,
|
|
266
|
+
"type": "boolean"
|
|
267
|
+
},
|
|
268
|
+
"hoverColor": {
|
|
269
|
+
"description": "Background hover color. Uses `#f4f4f4` if no hover colors are set, is transparent if only `hoverFontColor` is set",
|
|
270
|
+
"optional": true,
|
|
271
|
+
"type": "#/definitions/PaletteColor"
|
|
272
|
+
},
|
|
273
|
+
"hoverFontColor": {
|
|
274
|
+
"description": "When only `hoverColor` is set, this is adjusted to either `#f4f4f4` or `#ffffff` for optimal contrast",
|
|
275
|
+
"optional": true,
|
|
276
|
+
"type": "#/definitions/PaletteColor"
|
|
277
|
+
},
|
|
278
|
+
"padding": {
|
|
279
|
+
"description": "Css setting for the cell padding, defaults to `4px 12px`",
|
|
280
|
+
"optional": true,
|
|
281
|
+
"type": "string"
|
|
192
282
|
}
|
|
193
283
|
}
|
|
194
284
|
},
|
|
195
285
|
"HeaderStyling": {
|
|
196
286
|
"description": "Holds properties for font size and color.",
|
|
197
|
-
"kind": "
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
"optional": true,
|
|
209
|
-
"type": "#/definitions/PaletteColor"
|
|
210
|
-
}
|
|
287
|
+
"kind": "object",
|
|
288
|
+
"entries": {
|
|
289
|
+
"fontSize": {
|
|
290
|
+
"description": "Defaults to `14`",
|
|
291
|
+
"optional": true,
|
|
292
|
+
"type": "number"
|
|
293
|
+
},
|
|
294
|
+
"fontColor": {
|
|
295
|
+
"description": "Defaults to `#404040`",
|
|
296
|
+
"optional": true,
|
|
297
|
+
"type": "#/definitions/PaletteColor"
|
|
211
298
|
}
|
|
212
299
|
}
|
|
213
300
|
},
|
|
214
301
|
"PaletteColor": {
|
|
215
302
|
"description": "Color information structure. Holds the actual color and index in palette",
|
|
216
|
-
"kind": "
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
"description": "Index in palette",
|
|
226
|
-
"type": "number"
|
|
227
|
-
}
|
|
303
|
+
"kind": "object",
|
|
304
|
+
"entries": {
|
|
305
|
+
"color": {
|
|
306
|
+
"description": "Color as hex string (mandatory if index: -1)",
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
"index": {
|
|
310
|
+
"description": "Index in palette",
|
|
311
|
+
"type": "number"
|
|
228
312
|
}
|
|
229
313
|
}
|
|
230
314
|
}
|