@nebula.js/sn-pivot-table 2.1.0 → 2.3.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 +383 -83
- 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 +56 -52
- 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.3.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": {
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"kind": "object"
|
|
122
122
|
},
|
|
123
123
|
"components": {
|
|
124
|
-
"description": "
|
|
125
|
-
"
|
|
124
|
+
"description": "General and chart specific styling",
|
|
125
|
+
"optional": true,
|
|
126
126
|
"kind": "array",
|
|
127
127
|
"items": {
|
|
128
128
|
"type": "#/definitions/Component"
|
|
@@ -132,99 +132,399 @@
|
|
|
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
|
+
"qAttributeExpressions": {
|
|
148
|
+
"kind": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "#/definitions/AttributeExpressionDef"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"MeasureProperties": {
|
|
156
|
+
"description": "Extends `NxMeasure`, see Engine API: `NxMeasure`",
|
|
157
|
+
"extends": [
|
|
158
|
+
{
|
|
159
|
+
"type": "NxMeasure"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"kind": "object",
|
|
163
|
+
"entries": {
|
|
164
|
+
"qDefs": {
|
|
165
|
+
"type": "#/definitions/InlineMeasureDef"
|
|
166
|
+
},
|
|
167
|
+
"qAttributeExpressions": {
|
|
168
|
+
"kind": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "#/definitions/AttributeExpressionDef"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"AttributeExpressionDef": {
|
|
176
|
+
"kind": "union",
|
|
177
|
+
"items": [
|
|
178
|
+
{
|
|
179
|
+
"type": "#/definitions/ColorByExpressionDef"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "NxAttrExprDef"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"ColorByExpressionId": {
|
|
187
|
+
"description": "Color by expression identifier",
|
|
188
|
+
"kind": "union",
|
|
189
|
+
"items": [
|
|
190
|
+
{
|
|
191
|
+
"kind": "literal",
|
|
192
|
+
"value": "\"cellBackgroundColor\""
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "literal",
|
|
196
|
+
"value": "\"cellForegroundColor\""
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"ColorByExpressionDef": {
|
|
201
|
+
"kind": "object",
|
|
202
|
+
"entries": {
|
|
203
|
+
"qExpression": {
|
|
204
|
+
"type": "StringExpression"
|
|
205
|
+
},
|
|
206
|
+
"id": {
|
|
207
|
+
"type": "#/definitions/ColorByExpressionId"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"examples": [
|
|
211
|
+
"{ qExpression: \"=if(Sum([Sales Quantity]) > 500, green(), blue())\", id: \"cellBackgroundColor\" }"
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"InlineDimensionDef": {
|
|
215
|
+
"description": "Extends `NxInlineDimensionDef`, see Engine API: `NxInlineDimensionDef`.",
|
|
216
|
+
"extends": [
|
|
217
|
+
{
|
|
218
|
+
"type": "NxInlineDimensionDef"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"kind": "object",
|
|
222
|
+
"entries": {
|
|
223
|
+
"columnWidth": {
|
|
224
|
+
"optional": true,
|
|
225
|
+
"type": "#/definitions/ColumnWidth"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"InlineMeasureDef": {
|
|
230
|
+
"description": "Extends `NxInlineMeasureDef`, see Engine API: `NxInlineMeasureDef`.",
|
|
231
|
+
"extends": [
|
|
232
|
+
{
|
|
233
|
+
"type": "NxInlineMeasureDef"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"kind": "object",
|
|
237
|
+
"entries": {
|
|
238
|
+
"columnWidth": {
|
|
239
|
+
"optional": true,
|
|
240
|
+
"type": "#/definitions/ColumnWidth"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"ColumnWidth": {
|
|
245
|
+
"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",
|
|
246
|
+
"kind": "object",
|
|
247
|
+
"entries": {
|
|
248
|
+
"type": {
|
|
249
|
+
"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",
|
|
250
|
+
"kind": "union",
|
|
251
|
+
"items": [
|
|
252
|
+
{
|
|
253
|
+
"kind": "literal",
|
|
254
|
+
"value": "'auto'"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"kind": "literal",
|
|
258
|
+
"value": "'FitToContent'"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "literal",
|
|
262
|
+
"value": "'pixels'"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"kind": "literal",
|
|
266
|
+
"value": "'percentage'"
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
"pixels": {
|
|
271
|
+
"description": "Pixel value used if type is `pixels`",
|
|
272
|
+
"optional": true,
|
|
273
|
+
"type": "number"
|
|
274
|
+
},
|
|
275
|
+
"percentage": {
|
|
276
|
+
"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",
|
|
277
|
+
"optional": true,
|
|
278
|
+
"type": "number"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
135
282
|
"Component": {
|
|
136
|
-
"description": "
|
|
137
|
-
"kind": "
|
|
138
|
-
"items":
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
283
|
+
"description": "Styling defintions",
|
|
284
|
+
"kind": "union",
|
|
285
|
+
"items": [
|
|
286
|
+
{
|
|
287
|
+
"type": "#/definitions/ChartStyling"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "#/definitions/GeneralStyling"
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
"GeneralStylingKey": {
|
|
295
|
+
"description": "Mandatory key for general styling",
|
|
296
|
+
"kind": "literal",
|
|
297
|
+
"value": "\"general\""
|
|
298
|
+
},
|
|
299
|
+
"FontStyleValues": {
|
|
300
|
+
"description": "Font styling values",
|
|
301
|
+
"kind": "union",
|
|
302
|
+
"items": [
|
|
303
|
+
{
|
|
304
|
+
"kind": "literal",
|
|
305
|
+
"value": "\"bold\""
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"kind": "literal",
|
|
309
|
+
"value": "\"italic\""
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "literal",
|
|
313
|
+
"value": "\"underline\""
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"GeneralStyling": {
|
|
318
|
+
"description": "General chart styling",
|
|
319
|
+
"kind": "object",
|
|
320
|
+
"entries": {
|
|
321
|
+
"key": {
|
|
322
|
+
"type": "#/definitions/GeneralStylingKey"
|
|
323
|
+
},
|
|
324
|
+
"title": {
|
|
325
|
+
"type": "#/definitions/TitleStyling"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"examples": [
|
|
329
|
+
"{\n key: \"general\",\n title: {\n main: {\n fontSize: \"18px\",\n fontFamily: \"Arial\",\n fontStyle: [\"bold\", \"italic\"],\n color: { color: \"orangered\" },\n }\n }\n}"
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"TitleOptions": {
|
|
333
|
+
"description": "Title styling options",
|
|
334
|
+
"kind": "object",
|
|
335
|
+
"entries": {
|
|
336
|
+
"fontSize": {
|
|
337
|
+
"description": "Font size in pixel value",
|
|
338
|
+
"optional": true,
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
"fontFamily": {
|
|
342
|
+
"description": "Font family",
|
|
343
|
+
"optional": true,
|
|
344
|
+
"type": "string"
|
|
345
|
+
},
|
|
346
|
+
"fontStyle": {
|
|
347
|
+
"description": "Font style",
|
|
348
|
+
"optional": true,
|
|
349
|
+
"kind": "array",
|
|
350
|
+
"items": {
|
|
351
|
+
"type": "#/definitions/FontStyleValues"
|
|
152
352
|
}
|
|
353
|
+
},
|
|
354
|
+
"color": {
|
|
355
|
+
"description": "Font color palette",
|
|
356
|
+
"optional": true,
|
|
357
|
+
"type": "#/definitions/PaletteColor"
|
|
153
358
|
}
|
|
154
359
|
}
|
|
155
360
|
},
|
|
156
|
-
"
|
|
157
|
-
"description": "
|
|
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
|
-
|
|
190
|
-
|
|
361
|
+
"TitleStyling": {
|
|
362
|
+
"description": "Title styling",
|
|
363
|
+
"kind": "object",
|
|
364
|
+
"entries": {
|
|
365
|
+
"main": {
|
|
366
|
+
"description": "Styling for chart title",
|
|
367
|
+
"optional": true,
|
|
368
|
+
"type": "#/definitions/TitleOptions"
|
|
369
|
+
},
|
|
370
|
+
"subTitle": {
|
|
371
|
+
"description": "Styling for chart sub title",
|
|
372
|
+
"optional": true,
|
|
373
|
+
"type": "#/definitions/TitleOptions"
|
|
374
|
+
},
|
|
375
|
+
"footer": {
|
|
376
|
+
"description": "Styling for chart footer",
|
|
377
|
+
"optional": true,
|
|
378
|
+
"type": "#/definitions/TitleOptions"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"ChartStylingKey": {
|
|
383
|
+
"description": "Mandatory key for chart styling",
|
|
384
|
+
"kind": "literal",
|
|
385
|
+
"value": "\"theme\""
|
|
386
|
+
},
|
|
387
|
+
"ChartStyling": {
|
|
388
|
+
"description": "Custom styling of cells",
|
|
389
|
+
"kind": "object",
|
|
390
|
+
"entries": {
|
|
391
|
+
"key": {
|
|
392
|
+
"type": "#/definitions/ChartStylingKey"
|
|
393
|
+
},
|
|
394
|
+
"header": {
|
|
395
|
+
"description": "Styling for header cells",
|
|
396
|
+
"optional": true,
|
|
397
|
+
"type": "#/definitions/CellStyling"
|
|
398
|
+
},
|
|
399
|
+
"dimensionValues": {
|
|
400
|
+
"description": "Styling for dimension value cells",
|
|
401
|
+
"optional": true,
|
|
402
|
+
"type": "#/definitions/CellStyling"
|
|
403
|
+
},
|
|
404
|
+
"measureValues": {
|
|
405
|
+
"description": "Styling for measure value cells",
|
|
406
|
+
"optional": true,
|
|
407
|
+
"type": "#/definitions/CellStyling"
|
|
408
|
+
},
|
|
409
|
+
"measureLabels": {
|
|
410
|
+
"description": "Styling for measure label cells",
|
|
411
|
+
"optional": true,
|
|
412
|
+
"type": "#/definitions/PartialCellStyling"
|
|
413
|
+
},
|
|
414
|
+
"totalValues": {
|
|
415
|
+
"description": "Styling for total value cells",
|
|
416
|
+
"optional": true,
|
|
417
|
+
"type": "#/definitions/PartialCellStyling"
|
|
418
|
+
},
|
|
419
|
+
"nullValues": {
|
|
420
|
+
"description": "Styling for null values cells",
|
|
421
|
+
"optional": true,
|
|
422
|
+
"type": "#/definitions/PartialCellStyling"
|
|
423
|
+
},
|
|
424
|
+
"grid": {
|
|
425
|
+
"description": "General grid styling",
|
|
426
|
+
"optional": true,
|
|
427
|
+
"type": "#/definitions/GridStyling"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"examples": [
|
|
431
|
+
"{\n key: \"theme\",\n dimensionValues: {\n fontSize: \"18px\",\n fontFamily: \"Arial\",\n fontStyle: [\"bold\", \"italic\"],\n fontColor: { color: \"orangered\" },\n background: { index: 2 }\n }\n}"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
"CellStyling": {
|
|
435
|
+
"description": "Properties for styling a cell",
|
|
436
|
+
"kind": "object",
|
|
437
|
+
"entries": {
|
|
438
|
+
"fontSize": {
|
|
439
|
+
"description": "Font size in pixel value",
|
|
440
|
+
"optional": true,
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
"fontFamily": {
|
|
444
|
+
"description": "Font family",
|
|
445
|
+
"optional": true,
|
|
446
|
+
"type": "string"
|
|
447
|
+
},
|
|
448
|
+
"fontStyle": {
|
|
449
|
+
"description": "Font style",
|
|
450
|
+
"optional": true,
|
|
451
|
+
"kind": "array",
|
|
452
|
+
"items": {
|
|
453
|
+
"type": "#/definitions/FontStyleValues"
|
|
191
454
|
}
|
|
455
|
+
},
|
|
456
|
+
"fontColor": {
|
|
457
|
+
"description": "Font color palette",
|
|
458
|
+
"optional": true,
|
|
459
|
+
"type": "#/definitions/PaletteColor"
|
|
460
|
+
},
|
|
461
|
+
"background": {
|
|
462
|
+
"description": "Cell background color palette",
|
|
463
|
+
"optional": true,
|
|
464
|
+
"type": "#/definitions/PaletteColor"
|
|
192
465
|
}
|
|
193
466
|
}
|
|
194
467
|
},
|
|
195
|
-
"
|
|
196
|
-
"description": "
|
|
197
|
-
"kind": "
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
"type": "
|
|
205
|
-
},
|
|
206
|
-
"fontColor": {
|
|
207
|
-
"description": "Defaults to `#404040`",
|
|
208
|
-
"optional": true,
|
|
209
|
-
"type": "#/definitions/PaletteColor"
|
|
468
|
+
"PartialCellStyling": {
|
|
469
|
+
"description": "Properties for styling a cell",
|
|
470
|
+
"kind": "object",
|
|
471
|
+
"entries": {
|
|
472
|
+
"fontStyle": {
|
|
473
|
+
"description": "Font style",
|
|
474
|
+
"optional": true,
|
|
475
|
+
"kind": "array",
|
|
476
|
+
"items": {
|
|
477
|
+
"type": "#/definitions/FontStyleValues"
|
|
210
478
|
}
|
|
479
|
+
},
|
|
480
|
+
"fontColor": {
|
|
481
|
+
"description": "Font color palette",
|
|
482
|
+
"optional": true,
|
|
483
|
+
"type": "#/definitions/PaletteColor"
|
|
484
|
+
},
|
|
485
|
+
"background": {
|
|
486
|
+
"description": "Cell background color palette",
|
|
487
|
+
"optional": true,
|
|
488
|
+
"type": "#/definitions/PaletteColor"
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"GridStyling": {
|
|
493
|
+
"description": "General grid styling",
|
|
494
|
+
"kind": "object",
|
|
495
|
+
"entries": {
|
|
496
|
+
"lineClamp": {
|
|
497
|
+
"description": "A numerical value that represents the number of lines a text at most can be splitt into",
|
|
498
|
+
"optional": true,
|
|
499
|
+
"type": "number"
|
|
500
|
+
},
|
|
501
|
+
"border": {
|
|
502
|
+
"description": "Border color between cells",
|
|
503
|
+
"optional": true,
|
|
504
|
+
"type": "#/definitions/PaletteColor"
|
|
505
|
+
},
|
|
506
|
+
"divider": {
|
|
507
|
+
"description": "Border color between row and column dimensions sections",
|
|
508
|
+
"optional": true,
|
|
509
|
+
"type": "#/definitions/PaletteColor"
|
|
510
|
+
},
|
|
511
|
+
"background": {
|
|
512
|
+
"optional": true,
|
|
513
|
+
"type": "#/definitions/PaletteColor"
|
|
211
514
|
}
|
|
212
515
|
}
|
|
213
516
|
},
|
|
214
517
|
"PaletteColor": {
|
|
215
518
|
"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
|
-
}
|
|
519
|
+
"kind": "object",
|
|
520
|
+
"entries": {
|
|
521
|
+
"color": {
|
|
522
|
+
"description": "Color as hex string (mandatory if index: -1)",
|
|
523
|
+
"type": "string"
|
|
524
|
+
},
|
|
525
|
+
"index": {
|
|
526
|
+
"description": "Index in palette",
|
|
527
|
+
"type": "number"
|
|
228
528
|
}
|
|
229
529
|
}
|
|
230
530
|
}
|