powerbi-visuals-tools 3.3.2 → 3.4.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.
Files changed (122) hide show
  1. package/.vscode/launch.json +52 -0
  2. package/Changelog.md +105 -16
  3. package/bin/pbiviz-new.js +3 -12
  4. package/bin/pbiviz-package.js +12 -8
  5. package/bin/pbiviz-start.js +25 -51
  6. package/bin/pbiviz.js +0 -1
  7. package/config.json +1 -1
  8. package/lib/CertificateTools.js +6 -8
  9. package/lib/TemplateFetcher.js +7 -29
  10. package/lib/VisualGenerator.js +5 -94
  11. package/lib/WebPackWrap.js +69 -75
  12. package/lib/utils.js +26 -0
  13. package/lib/webpack.config.js +9 -6
  14. package/package.json +14 -16
  15. package/templates/visuals/default/package.json +2 -2
  16. package/templates/visuals/rhtml/package.json +1 -1
  17. package/templates/visuals/rvisual/package.json +1 -1
  18. package/templates/visuals/slicer/package.json +2 -2
  19. package/templates/visuals/table/package.json +2 -2
  20. package/bin/pbiviz-update.js +0 -128
  21. package/lib/LessCompiler.js +0 -86
  22. package/lib/TypescriptCompiler.js +0 -243
  23. package/templates/visuals/.api/v1.0.0/PowerBI-visuals.d.ts +0 -1139
  24. package/templates/visuals/.api/v1.0.0/schema.capabilities.json +0 -758
  25. package/templates/visuals/.api/v1.0.0/schema.pbiviz.json +0 -95
  26. package/templates/visuals/.api/v1.1.0/PowerBI-visuals.d.ts +0 -1179
  27. package/templates/visuals/.api/v1.1.0/schema.capabilities.json +0 -828
  28. package/templates/visuals/.api/v1.1.0/schema.pbiviz.json +0 -95
  29. package/templates/visuals/.api/v1.10.0/PowerBI-visuals.d.ts +0 -1406
  30. package/templates/visuals/.api/v1.10.0/schema.capabilities.json +0 -1143
  31. package/templates/visuals/.api/v1.10.0/schema.dependencies.json +0 -38
  32. package/templates/visuals/.api/v1.10.0/schema.pbiviz.json +0 -103
  33. package/templates/visuals/.api/v1.10.0/schema.stringResources.json +0 -67
  34. package/templates/visuals/.api/v1.11.0/PowerBI-visuals.d.ts +0 -1406
  35. package/templates/visuals/.api/v1.11.0/schema.capabilities.json +0 -1143
  36. package/templates/visuals/.api/v1.11.0/schema.dependencies.json +0 -38
  37. package/templates/visuals/.api/v1.11.0/schema.pbiviz.json +0 -103
  38. package/templates/visuals/.api/v1.11.0/schema.stringResources.json +0 -67
  39. package/templates/visuals/.api/v1.12.0/PowerBI-visuals.d.ts +0 -1408
  40. package/templates/visuals/.api/v1.12.0/schema.capabilities.json +0 -1173
  41. package/templates/visuals/.api/v1.12.0/schema.dependencies.json +0 -38
  42. package/templates/visuals/.api/v1.12.0/schema.pbiviz.json +0 -103
  43. package/templates/visuals/.api/v1.12.0/schema.stringResources.json +0 -67
  44. package/templates/visuals/.api/v1.13.0/PowerBI-visuals.d.ts +0 -1450
  45. package/templates/visuals/.api/v1.13.0/schema.capabilities.json +0 -1181
  46. package/templates/visuals/.api/v1.13.0/schema.dependencies.json +0 -38
  47. package/templates/visuals/.api/v1.13.0/schema.pbiviz.json +0 -103
  48. package/templates/visuals/.api/v1.13.0/schema.stringResources.json +0 -67
  49. package/templates/visuals/.api/v1.2.0/PowerBI-visuals.d.ts +0 -1188
  50. package/templates/visuals/.api/v1.2.0/schema.capabilities.json +0 -951
  51. package/templates/visuals/.api/v1.2.0/schema.dependencies.json +0 -38
  52. package/templates/visuals/.api/v1.2.0/schema.pbiviz.json +0 -99
  53. package/templates/visuals/.api/v1.3.0/PowerBI-visuals.d.ts +0 -1293
  54. package/templates/visuals/.api/v1.3.0/schema.capabilities.json +0 -951
  55. package/templates/visuals/.api/v1.3.0/schema.dependencies.json +0 -38
  56. package/templates/visuals/.api/v1.3.0/schema.pbiviz.json +0 -95
  57. package/templates/visuals/.api/v1.4.0/PowerBI-visuals.d.ts +0 -1282
  58. package/templates/visuals/.api/v1.4.0/schema.capabilities.json +0 -951
  59. package/templates/visuals/.api/v1.4.0/schema.dependencies.json +0 -38
  60. package/templates/visuals/.api/v1.4.0/schema.pbiviz.json +0 -95
  61. package/templates/visuals/.api/v1.5.0/PowerBI-visuals.d.ts +0 -1205
  62. package/templates/visuals/.api/v1.5.0/schema.capabilities.json +0 -987
  63. package/templates/visuals/.api/v1.5.0/schema.dependencies.json +0 -38
  64. package/templates/visuals/.api/v1.5.0/schema.pbiviz.json +0 -95
  65. package/templates/visuals/.api/v1.6.0/PowerBI-visuals.d.ts +0 -1297
  66. package/templates/visuals/.api/v1.6.0/schema.capabilities.json +0 -1007
  67. package/templates/visuals/.api/v1.6.0/schema.dependencies.json +0 -38
  68. package/templates/visuals/.api/v1.6.0/schema.pbiviz.json +0 -103
  69. package/templates/visuals/.api/v1.6.0/schema.stringResources.json +0 -67
  70. package/templates/visuals/.api/v1.7.0/PowerBI-visuals.d.ts +0 -1381
  71. package/templates/visuals/.api/v1.7.0/schema.capabilities.json +0 -1007
  72. package/templates/visuals/.api/v1.7.0/schema.dependencies.json +0 -38
  73. package/templates/visuals/.api/v1.7.0/schema.pbiviz.json +0 -103
  74. package/templates/visuals/.api/v1.7.0/schema.stringResources.json +0 -67
  75. package/templates/visuals/.api/v1.8.0/PowerBI-visuals.d.ts +0 -1389
  76. package/templates/visuals/.api/v1.8.0/schema.capabilities.json +0 -1131
  77. package/templates/visuals/.api/v1.8.0/schema.dependencies.json +0 -38
  78. package/templates/visuals/.api/v1.8.0/schema.pbiviz.json +0 -103
  79. package/templates/visuals/.api/v1.8.0/schema.stringResources.json +0 -67
  80. package/templates/visuals/.api/v1.9.0/PowerBI-visuals.d.ts +0 -1391
  81. package/templates/visuals/.api/v1.9.0/schema.capabilities.json +0 -1131
  82. package/templates/visuals/.api/v1.9.0/schema.dependencies.json +0 -38
  83. package/templates/visuals/.api/v1.9.0/schema.pbiviz.json +0 -103
  84. package/templates/visuals/.api/v1.9.0/schema.stringResources.json +0 -67
  85. package/templates/visuals/.api/v2.0.0/PowerBI-visuals.d.ts +0 -1417
  86. package/templates/visuals/.api/v2.0.0/schema.capabilities.json +0 -1177
  87. package/templates/visuals/.api/v2.0.0/schema.dependencies.json +0 -38
  88. package/templates/visuals/.api/v2.0.0/schema.pbiviz.json +0 -103
  89. package/templates/visuals/.api/v2.0.0/schema.stringResources.json +0 -67
  90. package/templates/visuals/.api/v2.1.0/PowerBI-visuals.d.ts +0 -1417
  91. package/templates/visuals/.api/v2.1.0/schema.capabilities.json +0 -1177
  92. package/templates/visuals/.api/v2.1.0/schema.dependencies.json +0 -38
  93. package/templates/visuals/.api/v2.1.0/schema.pbiviz.json +0 -103
  94. package/templates/visuals/.api/v2.1.0/schema.stringResources.json +0 -67
  95. package/templates/visuals/.api/v2.2.0/PowerBI-visuals.d.ts +0 -1423
  96. package/templates/visuals/.api/v2.2.0/schema.capabilities.json +0 -1189
  97. package/templates/visuals/.api/v2.2.0/schema.dependencies.json +0 -38
  98. package/templates/visuals/.api/v2.2.0/schema.pbiviz.json +0 -103
  99. package/templates/visuals/.api/v2.2.0/schema.stringResources.json +0 -67
  100. package/templates/visuals/.api/v2.3.0/PowerBI-visuals.d.ts +0 -1480
  101. package/templates/visuals/.api/v2.3.0/schema.capabilities.json +0 -1193
  102. package/templates/visuals/.api/v2.3.0/schema.dependencies.json +0 -38
  103. package/templates/visuals/.api/v2.3.0/schema.pbiviz.json +0 -103
  104. package/templates/visuals/.api/v2.3.0/schema.stringResources.json +0 -67
  105. package/templates/visuals/.api/v2.5.0/PowerBI-visuals.d.ts +0 -1483
  106. package/templates/visuals/.api/v2.5.0/schema.capabilities.json +0 -1197
  107. package/templates/visuals/.api/v2.5.0/schema.dependencies.json +0 -38
  108. package/templates/visuals/.api/v2.5.0/schema.pbiviz.json +0 -103
  109. package/templates/visuals/.api/v2.5.0/schema.stringResources.json +0 -67
  110. package/templates/visuals/.api/v2.6.0/PowerBI-visuals.d.ts +0 -1485
  111. package/templates/visuals/.api/v2.6.0/schema.capabilities.json +0 -1323
  112. package/templates/visuals/.api/v2.6.0/schema.dependencies.json +0 -38
  113. package/templates/visuals/.api/v2.6.0/schema.pbiviz.json +0 -103
  114. package/templates/visuals/.api/v2.6.0/schema.stringResources.json +0 -67
  115. package/templates/visuals/default1/assets/icon.png +0 -0
  116. package/templates/visuals/default1/capabilities.json +0 -84
  117. package/templates/visuals/default1/package.json +0 -6
  118. package/templates/visuals/default1/pbiviz.json +0 -3
  119. package/templates/visuals/default1/src/settings.ts +0 -32
  120. package/templates/visuals/default1/src/visual.ts +0 -71
  121. package/templates/visuals/default1/style/visual.less +0 -9
  122. package/templates/visuals/default1/tsconfig.json +0 -16
@@ -1,758 +0,0 @@
1
- {
2
- "PBI_API_VERSION": "v1.0.0",
3
- "type": "object",
4
- "properties": {
5
- "dataRoles": {
6
- "type": "array",
7
- "description": "Defines data roles for the visual",
8
- "items": {
9
- "$ref": "#/definitions/dataRole"
10
- }
11
- },
12
- "dataViewMappings": {
13
- "type": "array",
14
- "description": "Defines data mappings for the visual",
15
- "items": {
16
- "$ref": "#/definitions/dataViewMapping"
17
- }
18
- },
19
- "objects": {
20
- "$ref": "#/definitions/objects"
21
- },
22
- "sorting": {
23
- "$ref": "#/definitions/sorting"
24
- },
25
- "drilldown": {
26
- "$ref": "#/definitions/drilldown"
27
- }
28
- },
29
- "additionalProperties": false,
30
- "definitions": {
31
- "dataRole": {
32
- "type": "object",
33
- "description": "dataRole - Defines the name, displayName, and kind of a data role",
34
- "properties": {
35
- "name": {
36
- "type": "string",
37
- "description": "The internal name for this data role used for all references to this role"
38
- },
39
- "displayName": {
40
- "type": "string",
41
- "description": "The name of this data role that is shown to the user"
42
- },
43
- "kind": {
44
- "type": "number",
45
- "description": "The kind of data that can be bound do this role"
46
- },
47
- "description": {
48
- "type": "string",
49
- "description": "A description of this role shown to the user as a tooltip"
50
- }
51
- },
52
- "required": [
53
- "name",
54
- "displayName",
55
- "kind"
56
- ],
57
- "additionalProperties": false
58
- },
59
- "dataViewMapping": {
60
- "type": "object",
61
- "description": "dataMapping - Defines how data is mapped to data roles",
62
- "properties": {
63
- "conditions": {
64
- "type": "array",
65
- "description": "List of conditions that must be met for this data mapping",
66
- "items": {
67
- "type": "object",
68
- "description": "condition - Defines conditions for a data mapping (each key needs to be a valid data role)",
69
- "patternProperties": {
70
- "^\\w+$": {
71
- "description": "Specifies the number of values that can be assigned to this data role in this mapping",
72
- "$ref": "#/definitions/dataViewMapping.numberRange"
73
- }
74
- },
75
- "additionalProperties": false
76
- }
77
- },
78
- "single": {
79
- "$ref": "#/definitions/dataViewMapping.single"
80
- },
81
- "categorical": {
82
- "$ref": "#/definitions/dataViewMapping.categorical"
83
- },
84
- "table": {
85
- "$ref": "#/definitions/dataViewMapping.table"
86
- },
87
- "matrix": {
88
- "$ref": "#/definitions/dataViewMapping.matrix"
89
- }
90
- },
91
- "oneOf": [
92
- {
93
- "required": [
94
- "single"
95
- ]
96
- },
97
- {
98
- "required": [
99
- "categorical"
100
- ]
101
- },
102
- {
103
- "required": [
104
- "table"
105
- ]
106
- },
107
- {
108
- "required": [
109
- "matrix"
110
- ]
111
- }
112
- ],
113
- "additionalProperties": false
114
- },
115
- "dataViewMapping.single": {
116
- "type": "object",
117
- "description": "single - Defines a single data mapping",
118
- "properties": {
119
- "role": {
120
- "type": "string",
121
- "description": "The data role to bind to this mapping"
122
- }
123
- },
124
- "required": [
125
- "role"
126
- ],
127
- "additionalProperties": false
128
- },
129
- "dataViewMapping.categorical": {
130
- "type": "object",
131
- "description": "categorical - Defines a categorical data mapping",
132
- "properties": {
133
- "categories": {
134
- "type": "object",
135
- "description": "Defines data roles to be used as categories",
136
- "properties": {
137
- "bind": {
138
- "$ref": "#/definitions/dataViewMapping.bindTo"
139
- },
140
- "for": {
141
- "$ref": "#/definitions/dataViewMapping.forIn"
142
- },
143
- "select": {
144
- "$ref": "#/definitions/dataViewMapping.select"
145
- },
146
- "dataReductionAlgorithm": {
147
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
148
- }
149
- },
150
- "oneOf": [
151
- {
152
- "required": [
153
- "for"
154
- ]
155
- },
156
- {
157
- "required": [
158
- "bind"
159
- ]
160
- },
161
- {
162
- "required": [
163
- "select"
164
- ]
165
- }
166
- ]
167
- },
168
- "values": {
169
- "type": "object",
170
- "description": "Defines data roles to be used as values",
171
- "properties": {
172
- "bind": {
173
- "$ref": "#/definitions/dataViewMapping.bindTo"
174
- },
175
- "for": {
176
- "$ref": "#/definitions/dataViewMapping.forIn"
177
- },
178
- "select": {
179
- "$ref": "#/definitions/dataViewMapping.select"
180
- },
181
- "group": {
182
- "type": "object",
183
- "description": "Groups on a a specific data role",
184
- "properties": {
185
- "by": {
186
- "description": "Specifies a data role to use for grouping",
187
- "type": "string"
188
- },
189
- "select": {
190
- "$ref": "#/definitions/dataViewMapping.select"
191
- },
192
- "dataReductionAlgorithm": {
193
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
194
- }
195
- },
196
- "required": [
197
- "by",
198
- "select"
199
- ]
200
- }
201
- },
202
- "oneOf": [
203
- {
204
- "required": [
205
- "for"
206
- ]
207
- },
208
- {
209
- "required": [
210
- "bind"
211
- ]
212
- },
213
- {
214
- "required": [
215
- "select"
216
- ]
217
- },
218
- {
219
- "required": [
220
- "group"
221
- ]
222
- }
223
- ]
224
- }
225
- },
226
- "additionalProperties": false
227
- },
228
- "dataViewMapping.table": {
229
- "type": "object",
230
- "description": "table - Defines a table data mapping",
231
- "properties": {
232
- "rows": {
233
- "type": "object",
234
- "description": "Rows to use for the table",
235
- "properties": {
236
- "bind": {
237
- "$ref": "#/definitions/dataViewMapping.bindTo"
238
- },
239
- "for": {
240
- "$ref": "#/definitions/dataViewMapping.forIn"
241
- },
242
- "select": {
243
- "$ref": "#/definitions/dataViewMapping.select"
244
- },
245
- "dataReductionAlgorithm": {
246
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
247
- }
248
- },
249
- "oneOf": [
250
- {
251
- "required": [
252
- "for"
253
- ]
254
- },
255
- {
256
- "required": [
257
- "bind"
258
- ]
259
- },
260
- {
261
- "required": [
262
- "select"
263
- ]
264
- }
265
- ]
266
- },
267
- "rowCount": {
268
- "type": "object",
269
- "description": "Specifies a constraint on the number of data rows supported by the visual",
270
- "properties": {
271
- "preferred": {
272
- "description": "Specifies a preferred range of values for the constraint",
273
- "$ref": "#/definitions/dataViewMapping.numberRange"
274
- },
275
- "supported": {
276
- "description": "Specifies a supported range of values for the constraint. Defaults to preferred if not specified.",
277
- "$ref": "#/definitions/dataViewMapping.numberRange"
278
- }
279
- }
280
- }
281
- },
282
- "requires": [
283
- "rows"
284
- ]
285
- },
286
- "dataViewMapping.matrix": {
287
- "type": "object",
288
- "description": "matrix - Defines a matrix data mapping",
289
- "properties": {
290
- "rows": {
291
- "type": "object",
292
- "description": "Defines the rows used for the matrix",
293
- "properties": {
294
- "for": {
295
- "$ref": "#/definitions/dataViewMapping.forIn"
296
- },
297
- "select": {
298
- "$ref": "#/definitions/dataViewMapping.select"
299
- },
300
- "dataReductionAlgorithm": {
301
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
302
- }
303
- },
304
- "oneOf": [
305
- {
306
- "required": [
307
- "for"
308
- ]
309
- },
310
- {
311
- "required": [
312
- "select"
313
- ]
314
- }
315
- ]
316
- },
317
- "columns": {
318
- "type": "object",
319
- "description": "Defines the columns used for the matrix",
320
- "properties": {
321
- "for": {
322
- "$ref": "#/definitions/dataViewMapping.forIn"
323
- },
324
- "dataReductionAlgorithm": {
325
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
326
- }
327
- },
328
- "required": [
329
- "for"
330
- ]
331
- },
332
- "values": {
333
- "type": "object",
334
- "description": "Defines the values used for the matrix",
335
- "properties": {
336
- "for": {
337
- "$ref": "#/definitions/dataViewMapping.forIn"
338
- },
339
- "select": {
340
- "$ref": "#/definitions/dataViewMapping.select"
341
- }
342
- },
343
- "oneOf": [
344
- {
345
- "required": [
346
- "for"
347
- ]
348
- },
349
- {
350
- "required": [
351
- "select"
352
- ]
353
- }
354
- ]
355
- }
356
- }
357
- },
358
- "dataViewMapping.bindTo": {
359
- "type": "object",
360
- "description": "Binds this data mapping to a single value",
361
- "properties": {
362
- "to": {
363
- "type": "string",
364
- "description": "The name of a data role to bind to"
365
- }
366
- },
367
- "additionalProperties": false,
368
- "required": [
369
- "to"
370
- ]
371
- },
372
- "dataViewMapping.numberRange": {
373
- "type": "object",
374
- "description": "A number range from min to max",
375
- "properties": {
376
- "min": {
377
- "type": "number",
378
- "description": "Minimum value supported"
379
- },
380
- "max": {
381
- "type": "number",
382
- "description": "Maximum value supported"
383
- }
384
- }
385
- },
386
- "dataViewMapping.select": {
387
- "type": "array",
388
- "description": "Defines a list of properties to bind",
389
- "items": {
390
- "type": "object",
391
- "properties": {
392
- "bind": {
393
- "$ref": "#/definitions/dataViewMapping.bindTo"
394
- },
395
- "for": {
396
- "$ref": "#/definitions/dataViewMapping.forIn"
397
- }
398
- },
399
- "oneOf": [
400
- {
401
- "required": [
402
- "for"
403
- ]
404
- },
405
- {
406
- "required": [
407
- "bind"
408
- ]
409
- }
410
- ]
411
- }
412
- },
413
- "dataViewMapping.dataReductionAlgorithm": {
414
- "type": "object",
415
- "description": "Describes how to reduce the amount of data exposed to the visual",
416
- "properties": {
417
- "top": {
418
- "type": "object",
419
- "description": "Reduce the data to the Top count items",
420
- "properties": {
421
- "count": {
422
- "type": "number"
423
- }
424
- }
425
- },
426
- "bottom": {
427
- "type": "object",
428
- "description": "Reduce the data to the Bottom count items",
429
- "properties": {
430
- "count": {
431
- "type": "number"
432
- }
433
- }
434
- },
435
- "sample": {
436
- "type": "object",
437
- "description": "Reduce the data using a simple Sample of count items",
438
- "properties": {
439
- "count": {
440
- "type": "number"
441
- }
442
- }
443
- },
444
- "window": {
445
- "type": "object",
446
- "description": "Allow the data to be loaded one window, containing count items, at a time",
447
- "properties": {
448
- "count": {
449
- "type": "number"
450
- }
451
- }
452
- }
453
- },
454
- "additionalProperties": false,
455
- "oneOf": [
456
- {
457
- "required": [
458
- "top"
459
- ]
460
- },
461
- {
462
- "required": [
463
- "bottom"
464
- ]
465
- },
466
- {
467
- "required": [
468
- "sample"
469
- ]
470
- },
471
- {
472
- "required": [
473
- "window"
474
- ]
475
- }
476
- ]
477
- },
478
- "dataViewMapping.forIn": {
479
- "type": "object",
480
- "description": "Binds this data mapping for all items in a collection",
481
- "properties": {
482
- "in": {
483
- "type": "string",
484
- "description": "The name of a data role to iterate over"
485
- }
486
- },
487
- "additionalProperties": false,
488
- "required": [
489
- "in"
490
- ]
491
- },
492
- "objects": {
493
- "type": "object",
494
- "description": "A list of unique property groups",
495
- "patternProperties": {
496
- "^\\w+$": {
497
- "type": "object",
498
- "description": "Settings for a group of properties",
499
- "properties": {
500
- "displayName": {
501
- "type": "string",
502
- "description": "The name shown to the user to describe this group of properties"
503
- },
504
- "description": {
505
- "type": "string",
506
- "description": "A description of this object shown to the user as a tooltip"
507
- },
508
- "properties": {
509
- "type": "object",
510
- "description": "A list of unique properties contained in this group",
511
- "patternProperties": {
512
- "^\\w+$": {
513
- "$ref": "#/definitions/object.propertySettings"
514
- }
515
- },
516
- "additionalProperties": false
517
- }
518
- },
519
- "additionalProperties": false
520
- }
521
- },
522
- "additionalProperties": false
523
- },
524
- "object.propertySettings": {
525
- "type": "object",
526
- "description": "Settings for a property",
527
- "properties": {
528
- "displayName": {
529
- "type": "string",
530
- "description": "The name shown to the user to describe this property"
531
- },
532
- "description": {
533
- "type": "string",
534
- "description": "A description of this property shown to the user as a tooltip"
535
- },
536
- "placeHolderText": {
537
- "type": "string",
538
- "description": "Text to display if the field is empty"
539
- },
540
- "suppressFormatPainterCopy": {
541
- "type": "boolean",
542
- "description": "Indicates whether the Format Painter should ignore this property"
543
- },
544
- "type": {
545
- "type": "object",
546
- "description": "Describes what type of property this is and how it should be displayed to the user",
547
- "properties": {
548
- "bool": {
549
- "type": "boolean",
550
- "description": "A boolean value that will be displayed to the user as a toggle switch"
551
- },
552
- "enumeration": {
553
- "type": "array",
554
- "description": "A list of values that will be displayed as a drop down list",
555
- "items": {
556
- "type": "object",
557
- "description": "Describes an item in the enumeration list",
558
- "properties": {
559
- "displayName": {
560
- "type": "string",
561
- "description": "The name shown to the user to describe this item"
562
- },
563
- "value": {
564
- "type": "string",
565
- "description": "The internal value of this property when this item is selected"
566
- }
567
- }
568
- }
569
- },
570
- "fill": {
571
- "type": "object",
572
- "description": "A color value that will be displayed to the user as a color picker",
573
- "properties": {
574
- "solid": {
575
- "type": "object",
576
- "description": "A solid color value that will be displayed to the user as a color picker",
577
- "properties": {
578
- "color": {
579
- "oneOf": [
580
- {
581
- "type": "boolean"
582
- },
583
- {
584
- "type": "object",
585
- "properties": {
586
- "nullable": {
587
- "description": "Allows the user to select 'no fill' for the color",
588
- "type": "boolean"
589
- }
590
- }
591
- }
592
- ]
593
- }
594
- }
595
- }
596
- }
597
- },
598
- "formatting": {
599
- "type": "object",
600
- "description": "A numeric value that will be displayed to the user as a text input",
601
- "properties": {
602
- "labelDisplayUnits": {
603
- "type": "boolean",
604
- "description": "Displays a dropdown with common display units (Auto, None, Thousands, Millions, Billions, Trillions)"
605
- },
606
- "alignment": {
607
- "type": "boolean",
608
- "description": "Displays a selector to allow the user to choose left, center, or right alignment"
609
- },
610
- "fontSize": {
611
- "type": "boolean",
612
- "description": "Displays a slider that allows the user to choose a font size in points"
613
- }
614
- },
615
- "additionalProperties": false,
616
- "oneOf": [
617
- {
618
- "required": [
619
- "labelDisplayUnits"
620
- ]
621
- },
622
- {
623
- "required": [
624
- "alignment"
625
- ]
626
- },
627
- {
628
- "required": [
629
- "fontSize"
630
- ]
631
- }
632
- ]
633
- },
634
- "integer": {
635
- "type": "boolean",
636
- "description": "An integer (whole number) value that will be displayed to the user as a text input"
637
- },
638
- "numeric": {
639
- "type": "boolean",
640
- "description": "A numeric value that will be displayed to the user as a text input"
641
- },
642
- "text": {
643
- "type": "boolean",
644
- "description": "A text value that will be displayed to the user as a text input"
645
- }
646
- },
647
- "additionalProperties": false,
648
- "oneOf": [
649
- {
650
- "required": [
651
- "bool"
652
- ]
653
- },
654
- {
655
- "required": [
656
- "enumeration"
657
- ]
658
- },
659
- {
660
- "required": [
661
- "fill"
662
- ]
663
- },
664
- {
665
- "required": [
666
- "formatting"
667
- ]
668
- },
669
- {
670
- "required": [
671
- "integer"
672
- ]
673
- },
674
- {
675
- "required": [
676
- "numeric"
677
- ]
678
- }
679
- ]
680
- }
681
- },
682
- "additionalProperties": false
683
- },
684
- "sorting": {
685
- "type": "object",
686
- "description": "Specifies the default sorting behavior for the visual",
687
- "properties": {
688
- "default": {
689
- "type": "object",
690
- "additionalProperties": false
691
- },
692
- "custom": {
693
- "type": "object",
694
- "additionalProperties": false
695
- },
696
- "implicit": {
697
- "type": "object",
698
- "description": "implicit sort",
699
- "properties": {
700
- "clauses": {
701
- "type": "array",
702
- "items": {
703
- "type": "object",
704
- "properties": {
705
- "role": {
706
- "type": "string"
707
- },
708
- "direction": {
709
- "type": "number",
710
- "description": "Determines sort direction (1 = Ascending, 2 = Descending)",
711
- "enum": [
712
- 1,
713
- 2
714
- ]
715
- }
716
- },
717
- "additionalProperties": false
718
- }
719
- }
720
- },
721
- "additionalProperties": false
722
- }
723
- },
724
- "additionalProperties": false,
725
- "oneOf": [
726
- {
727
- "required": [
728
- "default"
729
- ]
730
- },
731
- {
732
- "required": [
733
- "custom"
734
- ]
735
- },
736
- {
737
- "required": [
738
- "implicit"
739
- ]
740
- }
741
- ]
742
- },
743
- "drilldown": {
744
- "type": "object",
745
- "description": "Defines the visual's drill capability",
746
- "properties": {
747
- "roles": {
748
- "type": "array",
749
- "description": "The drillable role names for this visual",
750
- "items": {
751
- "type": "string",
752
- "description": "The name of the role"
753
- }
754
- }
755
- }
756
- }
757
- }
758
- }