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,1131 +0,0 @@
1
- {
2
- "PBI_API_VERSION": "v1.8.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
- "suppressDefaultTitle": {
29
- "type": "boolean",
30
- "description": "Indicates whether the visual should show a default title"
31
- },
32
- "supportsHighlight": {
33
- "type": "boolean",
34
- "description": "Tells the host to include highlight data"
35
- },
36
- "advancedEditModeSupport": {
37
- "type": "number",
38
- "description": "Indicates the action requested from the host when this visual enters Advanced Edit mode."
39
- }
40
- },
41
- "additionalProperties": false,
42
- "definitions": {
43
- "dataRole": {
44
- "type": "object",
45
- "description": "dataRole - Defines the name, displayName, and kind of a data role",
46
- "properties": {
47
- "name": {
48
- "type": "string",
49
- "description": "The internal name for this data role used for all references to this role"
50
- },
51
- "displayName": {
52
- "type": "string",
53
- "description": "The name of this data role that is shown to the user"
54
- },
55
- "displayNameKey": {
56
- "type": "string",
57
- "description": "The localization key for the displayed name in the stringResourced file"
58
- },
59
- "kind": {
60
- "description": "The kind of data that can be bound do this role",
61
- "$ref": "#/definitions/dataRole.kind"
62
- },
63
- "description": {
64
- "type": "string",
65
- "description": "A description of this role shown to the user as a tooltip"
66
- },
67
- "preferredTypes": {
68
- "type": "array",
69
- "description": "Defines the preferred type of data for this data role",
70
- "items": {
71
- "$ref": "#/definitions/valueType"
72
- }
73
- },
74
- "requiredTypes": {
75
- "type": "array",
76
- "description": "Defines the required type of data for this data role. Any values that do not match will be set to null",
77
- "items": {
78
- "$ref": "#/definitions/valueType"
79
- }
80
- }
81
- },
82
- "required": [
83
- "name",
84
- "displayName",
85
- "kind"
86
- ],
87
- "additionalProperties": false
88
- },
89
- "dataViewMapping": {
90
- "type": "object",
91
- "description": "dataMapping - Defines how data is mapped to data roles",
92
- "properties": {
93
- "conditions": {
94
- "type": "array",
95
- "description": "List of conditions that must be met for this data mapping",
96
- "items": {
97
- "type": "object",
98
- "description": "condition - Defines conditions for a data mapping (each key needs to be a valid data role)",
99
- "patternProperties": {
100
- "^[\\w\\s-]+$": {
101
- "description": "Specifies the number of values that can be assigned to this data role in this mapping",
102
- "$ref": "#/definitions/dataViewMapping.numberRangeWithKind"
103
- }
104
- },
105
- "additionalProperties": false
106
- }
107
- },
108
- "single": {
109
- "$ref": "#/definitions/dataViewMapping.single"
110
- },
111
- "categorical": {
112
- "$ref": "#/definitions/dataViewMapping.categorical"
113
- },
114
- "table": {
115
- "$ref": "#/definitions/dataViewMapping.table"
116
- },
117
- "matrix": {
118
- "$ref": "#/definitions/dataViewMapping.matrix"
119
- },
120
- "scriptResult": {
121
- "$ref": "#/definitions/dataViewMapping.scriptResult"
122
- }
123
- },
124
- "oneOf": [
125
- {
126
- "required": [
127
- "single"
128
- ]
129
- },
130
- {
131
- "required": [
132
- "categorical"
133
- ]
134
- },
135
- {
136
- "required": [
137
- "table"
138
- ]
139
- },
140
- {
141
- "required": [
142
- "matrix"
143
- ]
144
- },
145
- {
146
- "required": [
147
- "scriptResult"
148
- ]
149
- }
150
- ],
151
- "additionalProperties": false
152
- },
153
- "dataViewMapping.single": {
154
- "type": "object",
155
- "description": "single - Defines a single data mapping",
156
- "properties": {
157
- "role": {
158
- "type": "string",
159
- "description": "The data role to bind to this mapping"
160
- }
161
- },
162
- "required": [
163
- "role"
164
- ],
165
- "additionalProperties": false
166
- },
167
- "dataViewMapping.categorical": {
168
- "type": "object",
169
- "description": "categorical - Defines a categorical data mapping",
170
- "properties": {
171
- "categories": {
172
- "type": "object",
173
- "description": "Defines data roles to be used as categories",
174
- "properties": {
175
- "bind": {
176
- "$ref": "#/definitions/dataViewMapping.bindTo"
177
- },
178
- "for": {
179
- "$ref": "#/definitions/dataViewMapping.forIn"
180
- },
181
- "select": {
182
- "$ref": "#/definitions/dataViewMapping.select"
183
- },
184
- "dataReductionAlgorithm": {
185
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
186
- }
187
- },
188
- "oneOf": [
189
- {
190
- "required": [
191
- "for"
192
- ]
193
- },
194
- {
195
- "required": [
196
- "bind"
197
- ]
198
- },
199
- {
200
- "required": [
201
- "select"
202
- ]
203
- }
204
- ]
205
- },
206
- "values": {
207
- "type": "object",
208
- "description": "Defines data roles to be used as values",
209
- "properties": {
210
- "bind": {
211
- "$ref": "#/definitions/dataViewMapping.bindTo"
212
- },
213
- "for": {
214
- "$ref": "#/definitions/dataViewMapping.forIn"
215
- },
216
- "select": {
217
- "$ref": "#/definitions/dataViewMapping.select"
218
- },
219
- "group": {
220
- "type": "object",
221
- "description": "Groups on a a specific data role",
222
- "properties": {
223
- "by": {
224
- "description": "Specifies a data role to use for grouping",
225
- "type": "string"
226
- },
227
- "select": {
228
- "$ref": "#/definitions/dataViewMapping.select"
229
- },
230
- "dataReductionAlgorithm": {
231
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
232
- }
233
- },
234
- "required": [
235
- "by",
236
- "select"
237
- ]
238
- }
239
- },
240
- "oneOf": [
241
- {
242
- "required": [
243
- "for"
244
- ]
245
- },
246
- {
247
- "required": [
248
- "bind"
249
- ]
250
- },
251
- {
252
- "required": [
253
- "select"
254
- ]
255
- },
256
- {
257
- "required": [
258
- "group"
259
- ]
260
- }
261
- ]
262
- },
263
- "dataVolume": {
264
- "$ref": "#/definitions/dataViewMapping.dataVolume"
265
- }
266
- },
267
- "additionalProperties": false
268
- },
269
- "dataViewMapping.table": {
270
- "type": "object",
271
- "description": "table - Defines a table data mapping",
272
- "properties": {
273
- "rows": {
274
- "type": "object",
275
- "description": "Rows to use for the table",
276
- "properties": {
277
- "bind": {
278
- "$ref": "#/definitions/dataViewMapping.bindTo"
279
- },
280
- "for": {
281
- "$ref": "#/definitions/dataViewMapping.forIn"
282
- },
283
- "select": {
284
- "$ref": "#/definitions/dataViewMapping.select"
285
- },
286
- "dataReductionAlgorithm": {
287
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
288
- }
289
- },
290
- "oneOf": [
291
- {
292
- "required": [
293
- "for"
294
- ]
295
- },
296
- {
297
- "required": [
298
- "bind"
299
- ]
300
- },
301
- {
302
- "required": [
303
- "select"
304
- ]
305
- }
306
- ]
307
- },
308
- "rowCount": {
309
- "type": "object",
310
- "description": "Specifies a constraint on the number of data rows supported by the visual",
311
- "properties": {
312
- "preferred": {
313
- "description": "Specifies a preferred range of values for the constraint",
314
- "$ref": "#/definitions/dataViewMapping.numberRange"
315
- },
316
- "supported": {
317
- "description": "Specifies a supported range of values for the constraint. Defaults to preferred if not specified.",
318
- "$ref": "#/definitions/dataViewMapping.numberRange"
319
- }
320
- }
321
- },
322
- "dataVolume": {
323
- "$ref": "#/definitions/dataViewMapping.dataVolume"
324
- }
325
- },
326
- "requires": [
327
- "rows"
328
- ]
329
- },
330
- "dataViewMapping.matrix": {
331
- "type": "object",
332
- "description": "matrix - Defines a matrix data mapping",
333
- "properties": {
334
- "rows": {
335
- "type": "object",
336
- "description": "Defines the rows used for the matrix",
337
- "properties": {
338
- "for": {
339
- "$ref": "#/definitions/dataViewMapping.forIn"
340
- },
341
- "select": {
342
- "$ref": "#/definitions/dataViewMapping.select"
343
- },
344
- "dataReductionAlgorithm": {
345
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
346
- }
347
- },
348
- "oneOf": [
349
- {
350
- "required": [
351
- "for"
352
- ]
353
- },
354
- {
355
- "required": [
356
- "select"
357
- ]
358
- }
359
- ]
360
- },
361
- "columns": {
362
- "type": "object",
363
- "description": "Defines the columns used for the matrix",
364
- "properties": {
365
- "for": {
366
- "$ref": "#/definitions/dataViewMapping.forIn"
367
- },
368
- "dataReductionAlgorithm": {
369
- "$ref": "#/definitions/dataViewMapping.dataReductionAlgorithm"
370
- }
371
- },
372
- "required": [
373
- "for"
374
- ]
375
- },
376
- "values": {
377
- "type": "object",
378
- "description": "Defines the values used for the matrix",
379
- "properties": {
380
- "for": {
381
- "$ref": "#/definitions/dataViewMapping.forIn"
382
- },
383
- "select": {
384
- "$ref": "#/definitions/dataViewMapping.select"
385
- }
386
- },
387
- "oneOf": [
388
- {
389
- "required": [
390
- "for"
391
- ]
392
- },
393
- {
394
- "required": [
395
- "select"
396
- ]
397
- }
398
- ]
399
- },
400
- "dataVolume": {
401
- "$ref": "#/definitions/dataViewMapping.dataVolume"
402
- }
403
- }
404
- },
405
- "dataViewMapping.scriptResult": {
406
- "type": "object",
407
- "description": "scriptResult - Defines a scriptResult data mapping",
408
- "properties": {
409
- "dataInput": {
410
- "type": "object",
411
- "description": "dataInput - Defines how data is mapped to data roles",
412
- "properties": {
413
- "table": {
414
- "$ref": "#/definitions/dataViewMapping.table"
415
- }
416
- }
417
- },
418
- "script": {
419
- "type": "object",
420
- "description": "script - Defines where the script text and provider are stored",
421
- "properties": {
422
- "scriptSourceDefault": {
423
- "type": "string",
424
- "description": "scriptSourceDefault - Defines the default script source value to be used when no script object is defined"
425
- },
426
- "scriptProviderDefault": {
427
- "type": "string",
428
- "description": "scriptProviderDefault - Defines the default script provider value to be used when no provider object is defined"
429
- },
430
- "scriptOutputType": {
431
- "type": "string",
432
- "description": "scriptOutputType - Defines the output type that the R script will generate"
433
- },
434
- "source": {
435
- "$ref": "#/definitions/dataViewObjectPropertyIdentifier"
436
- },
437
- "provider": {
438
- "$ref": "#/definitions/dataViewObjectPropertyIdentifier"
439
- }
440
- }
441
- }
442
- }
443
- },
444
- "dataViewObjectPropertyIdentifier": {
445
- "type": "object",
446
- "description": "Points to an object property",
447
- "properties": {
448
- "objectName": {
449
- "type": "string",
450
- "description": "The name of a object"
451
- },
452
- "propertyName": {
453
- "type": "string",
454
- "description": "The name of a property inside the object"
455
- }
456
- }
457
- },
458
- "dataViewMapping.bindTo": {
459
- "type": "object",
460
- "description": "Binds this data mapping to a single value",
461
- "properties": {
462
- "to": {
463
- "type": "string",
464
- "description": "The name of a data role to bind to"
465
- }
466
- },
467
- "additionalProperties": false,
468
- "required": [
469
- "to"
470
- ]
471
- },
472
- "dataViewMapping.numberRange": {
473
- "type": "object",
474
- "description": "A number range from min to max",
475
- "properties": {
476
- "min": {
477
- "type": "number",
478
- "description": "Minimum value supported"
479
- },
480
- "max": {
481
- "type": "number",
482
- "description": "Maximum value supported"
483
- }
484
- }
485
- },
486
- "dataViewMapping.numberRangeWithKind": {
487
- "allOf": [
488
- {
489
- "$ref": "#/definitions/dataViewMapping.numberRange"
490
- },
491
- {
492
- "properties": {
493
- "kind": {
494
- "$ref": "#/definitions/dataRole.kind"
495
- }
496
- }
497
- }
498
- ]
499
- },
500
- "dataRole.kind": {
501
- "type": "string",
502
- "enum": [
503
- "Grouping",
504
- "Measure",
505
- "GroupingOrMeasure"
506
- ]
507
- },
508
- "dataViewMapping.select": {
509
- "type": "array",
510
- "description": "Defines a list of properties to bind",
511
- "items": {
512
- "type": "object",
513
- "properties": {
514
- "bind": {
515
- "$ref": "#/definitions/dataViewMapping.bindTo"
516
- },
517
- "for": {
518
- "$ref": "#/definitions/dataViewMapping.forIn"
519
- }
520
- },
521
- "oneOf": [
522
- {
523
- "required": [
524
- "for"
525
- ]
526
- },
527
- {
528
- "required": [
529
- "bind"
530
- ]
531
- }
532
- ]
533
- }
534
- },
535
- "dataViewMapping.dataReductionAlgorithm": {
536
- "type": "object",
537
- "description": "Describes how to reduce the amount of data exposed to the visual",
538
- "properties": {
539
- "top": {
540
- "type": "object",
541
- "description": "Reduce the data to the Top count items",
542
- "properties": {
543
- "count": {
544
- "type": "number"
545
- }
546
- }
547
- },
548
- "bottom": {
549
- "type": "object",
550
- "description": "Reduce the data to the Bottom count items",
551
- "properties": {
552
- "count": {
553
- "type": "number"
554
- }
555
- }
556
- },
557
- "sample": {
558
- "type": "object",
559
- "description": "Reduce the data using a simple Sample of count items",
560
- "properties": {
561
- "count": {
562
- "type": "number"
563
- }
564
- }
565
- },
566
- "window": {
567
- "type": "object",
568
- "description": "Allow the data to be loaded one window, containing count items, at a time",
569
- "properties": {
570
- "count": {
571
- "type": "number"
572
- }
573
- }
574
- }
575
- },
576
- "additionalProperties": false,
577
- "oneOf": [
578
- {
579
- "required": [
580
- "top"
581
- ]
582
- },
583
- {
584
- "required": [
585
- "bottom"
586
- ]
587
- },
588
- {
589
- "required": [
590
- "sample"
591
- ]
592
- },
593
- {
594
- "required": [
595
- "window"
596
- ]
597
- }
598
- ]
599
- },
600
- "dataViewMapping.dataVolume": {
601
- "description": "Specifies the volume of data the query should return (1-6)",
602
- "type": "number",
603
- "enum": [
604
- 1,
605
- 2,
606
- 3,
607
- 4,
608
- 5,
609
- 6
610
- ]
611
- },
612
- "dataViewMapping.forIn": {
613
- "type": "object",
614
- "description": "Binds this data mapping for all items in a collection",
615
- "properties": {
616
- "in": {
617
- "type": "string",
618
- "description": "The name of a data role to iterate over"
619
- }
620
- },
621
- "additionalProperties": false,
622
- "required": [
623
- "in"
624
- ]
625
- },
626
- "objects": {
627
- "type": "object",
628
- "description": "A list of unique property groups",
629
- "patternProperties": {
630
- "^[\\w\\s-]+$": {
631
- "type": "object",
632
- "description": "Settings for a group of properties",
633
- "properties": {
634
- "displayName": {
635
- "type": "string",
636
- "description": "The name shown to the user to describe this group of properties"
637
- },
638
- "displayNameKey": {
639
- "type": "string",
640
- "description": "The localization key for the displayed name in the stringResourced file"
641
- },
642
- "description": {
643
- "type": "string",
644
- "description": "A description of this object shown to the user as a tooltip"
645
- },
646
- "properties": {
647
- "type": "object",
648
- "description": "A list of unique properties contained in this group",
649
- "patternProperties": {
650
- "^[\\w\\s-]+$": {
651
- "$ref": "#/definitions/object.propertySettings"
652
- }
653
- },
654
- "additionalProperties": false
655
- }
656
- },
657
- "additionalProperties": false
658
- }
659
- },
660
- "additionalProperties": false
661
- },
662
- "object.propertySettings": {
663
- "type": "object",
664
- "description": "Settings for a property",
665
- "properties": {
666
- "displayName": {
667
- "type": "string",
668
- "description": "The name shown to the user to describe this property"
669
- },
670
- "displayNameKey": {
671
- "type": "string",
672
- "description": "The localization key for the displayed name in the stringResourced file"
673
- },
674
- "description": {
675
- "type": "string",
676
- "description": "A description of this property shown to the user as a tooltip"
677
- },
678
- "placeHolderText": {
679
- "type": "string",
680
- "description": "Text to display if the field is empty"
681
- },
682
- "suppressFormatPainterCopy": {
683
- "type": "boolean",
684
- "description": "Indicates whether the Format Painter should ignore this property"
685
- },
686
- "type": {
687
- "description": "Describes what type of property this is and how it should be displayed to the user",
688
- "$ref": "#/definitions/valueType"
689
- },
690
- "rule": {
691
- "type": "object",
692
- "description": "Describes substitution rule that replaces property object, described inside the rule, to current property object that contains this rule",
693
- "$ref": "#/definitions/substitutionRule"
694
- }
695
- },
696
- "additionalProperties": false
697
- },
698
- "substitutionRule": {
699
- "type": "object",
700
- "description": "Describes substitution rule that replaces property object, described inside the rule, to current property object that contains this rule",
701
- "properties": {
702
- "inputRole": {
703
- "type": "string",
704
- "description": "The name of role. If this role is set, the substitution will be applied"
705
- },
706
- "output": {
707
- "type": "object",
708
- "description": "Describes what exactly is necessary to replace",
709
- "properties": {
710
- "property": {
711
- "type": "string",
712
- "description": "The name of property object that will be replaced"
713
- },
714
- "selector": {
715
- "type": "array",
716
- "description": "The array of selector names. Usually, it contains only one selector -- 'Category'",
717
- "items": {
718
- "type": "string",
719
- "description": "The name of selector"
720
- }
721
- }
722
- }
723
- }
724
- }
725
- },
726
- "sorting": {
727
- "type": "object",
728
- "description": "Specifies the default sorting behavior for the visual",
729
- "properties": {
730
- "default": {
731
- "type": "object",
732
- "additionalProperties": false
733
- },
734
- "custom": {
735
- "type": "object",
736
- "additionalProperties": false
737
- },
738
- "implicit": {
739
- "type": "object",
740
- "description": "implicit sort",
741
- "properties": {
742
- "clauses": {
743
- "type": "array",
744
- "items": {
745
- "type": "object",
746
- "properties": {
747
- "role": {
748
- "type": "string"
749
- },
750
- "direction": {
751
- "type": "number",
752
- "description": "Determines sort direction (1 = Ascending, 2 = Descending)",
753
- "enum": [
754
- 1,
755
- 2
756
- ]
757
- }
758
- },
759
- "additionalProperties": false
760
- }
761
- }
762
- },
763
- "additionalProperties": false
764
- }
765
- },
766
- "additionalProperties": false,
767
- "oneOf": [
768
- {
769
- "required": [
770
- "default"
771
- ]
772
- },
773
- {
774
- "required": [
775
- "custom"
776
- ]
777
- },
778
- {
779
- "required": [
780
- "implicit"
781
- ]
782
- }
783
- ]
784
- },
785
- "drilldown": {
786
- "type": "object",
787
- "description": "Defines the visual's drill capability",
788
- "properties": {
789
- "roles": {
790
- "type": "array",
791
- "description": "The drillable role names for this visual",
792
- "items": {
793
- "type": "string",
794
- "description": "The name of the role"
795
- }
796
- }
797
- }
798
- },
799
- "valueType": {
800
- "type": "object",
801
- "properties": {
802
- "bool": {
803
- "type": "boolean",
804
- "description": "A boolean value that will be displayed to the user as a toggle switch"
805
- },
806
- "enumeration": {
807
- "type": "array",
808
- "description": "A list of values that will be displayed as a drop down list",
809
- "items": {
810
- "type": "object",
811
- "description": "Describes an item in the enumeration list",
812
- "properties": {
813
- "displayName": {
814
- "type": "string",
815
- "description": "The name shown to the user to describe this item"
816
- },
817
- "displayNameKey": {
818
- "type": "string",
819
- "description": "The localization key for the displayed name in the stringResourced file"
820
- },
821
- "value": {
822
- "type": "string",
823
- "description": "The internal value of this property when this item is selected"
824
- }
825
- }
826
- }
827
- },
828
- "fill": {
829
- "type": "object",
830
- "description": "A color value that will be displayed to the user as a color picker",
831
- "properties": {
832
- "solid": {
833
- "type": "object",
834
- "description": "A solid color value that will be displayed to the user as a color picker",
835
- "properties": {
836
- "color": {
837
- "oneOf": [
838
- {
839
- "type": "boolean"
840
- },
841
- {
842
- "type": "object",
843
- "properties": {
844
- "nullable": {
845
- "description": "Allows the user to select 'no fill' for the color",
846
- "type": "boolean"
847
- }
848
- }
849
- }
850
- ]
851
- }
852
- }
853
- }
854
- }
855
- },
856
- "fillRule" : {
857
- "type": "object",
858
- "description": "A color gradient that will be dispalyed to the user as a minimum (,medium) and maximum color pickers",
859
- "properties": {
860
- "linearGradient2": {
861
- "type": "object",
862
- "description": "Two color gradient",
863
- "properties": {
864
- "max": {
865
- "type": "object",
866
- "description": "Maximum color for gradient",
867
- "properties": {
868
- "color": {
869
- "type": "string"
870
- },
871
- "value": {
872
- "type": "number"
873
- }
874
- }
875
- },
876
- "min": {
877
- "type": "object",
878
- "description": "Minimum color for gradient",
879
- "properties": {
880
- "color": {
881
- "type": "string"
882
- },
883
- "value": {
884
- "type": "number"
885
- }
886
- }
887
- },
888
- "nullColoringStrategy": {
889
- "type": "object",
890
- "description": "Null color strategy"
891
- }
892
- }
893
- },
894
- "linearGradient3": {
895
- "type": "object",
896
- "description": "Three color gradient",
897
- "properties": {
898
- "max": {
899
- "type": "object",
900
- "description": "Maximum color for gradient",
901
- "properties": {
902
- "color": {
903
- "type": "string"
904
- },
905
- "value": {
906
- "type": "number"
907
- }
908
- }
909
- },
910
- "min": {
911
- "type": "object",
912
- "description": "Minimum color for gradient",
913
- "properties": {
914
- "color": {
915
- "type": "string"
916
- },
917
- "value": {
918
- "type": "number"
919
- }
920
- }
921
- },
922
- "mid": {
923
- "type": "object",
924
- "description": "Middle color for gradient",
925
- "properties": {
926
- "color": {
927
- "type": "string"
928
- },
929
- "value": {
930
- "type": "number"
931
- }
932
- }
933
- },
934
- "nullColoringStrategy": {
935
- "type": "object",
936
- "description": "Null color strategy"
937
- }
938
- }
939
- }
940
- }
941
- },
942
- "formatting": {
943
- "type": "object",
944
- "description": "A numeric value that will be displayed to the user as a text input",
945
- "properties": {
946
- "labelDisplayUnits": {
947
- "type": "boolean",
948
- "description": "Displays a dropdown with common display units (Auto, None, Thousands, Millions, Billions, Trillions)"
949
- },
950
- "alignment": {
951
- "type": "boolean",
952
- "description": "Displays a selector to allow the user to choose left, center, or right alignment"
953
- },
954
- "fontSize": {
955
- "type": "boolean",
956
- "description": "Displays a slider that allows the user to choose a font size in points"
957
- }
958
- },
959
- "additionalProperties": false,
960
- "oneOf": [
961
- {
962
- "required": [
963
- "labelDisplayUnits"
964
- ]
965
- },
966
- {
967
- "required": [
968
- "alignment"
969
- ]
970
- },
971
- {
972
- "required": [
973
- "fontSize"
974
- ]
975
- }
976
- ]
977
- },
978
- "integer": {
979
- "type": "boolean",
980
- "description": "An integer (whole number) value that will be displayed to the user as a text input"
981
- },
982
- "numeric": {
983
- "type": "boolean",
984
- "description": "A numeric value that will be displayed to the user as a text input"
985
- },
986
- "filter": {
987
- "oneOf": [
988
- {
989
- "type": "boolean"
990
- },
991
- {
992
- "type": "object",
993
- "properties": {
994
- "selfFilter": {
995
- "type": "boolean"
996
- }
997
- }
998
- }
999
- ],
1000
- "description": "A filter"
1001
- },
1002
- "operations": {
1003
- "type": "object",
1004
- "description": "A visual operation",
1005
- "properties": {
1006
- "searchEnabled": {
1007
- "type": "boolean",
1008
- "description": "Turns search ability on"
1009
- }
1010
- }
1011
- },
1012
- "text": {
1013
- "type": "boolean",
1014
- "description": "A text value that will be displayed to the user as a text input"
1015
- },
1016
- "scripting": {
1017
- "type": "object",
1018
- "description": "A text value that will be displayed to the user as a script",
1019
- "properties": {
1020
- "source": {
1021
- "type": "boolean",
1022
- "description": "A source code"
1023
- }
1024
- }
1025
- },
1026
- "geography": {
1027
- "type": "object",
1028
- "description": "Geographical data",
1029
- "properties": {
1030
- "address": {
1031
- "type": "boolean"
1032
- },
1033
- "city": {
1034
- "type": "boolean"
1035
- },
1036
- "continent": {
1037
- "type": "boolean"
1038
- },
1039
- "country": {
1040
- "type": "boolean"
1041
- },
1042
- "county": {
1043
- "type": "boolean"
1044
- },
1045
- "region": {
1046
- "type": "boolean"
1047
- },
1048
- "postalCode": {
1049
- "type": "boolean"
1050
- },
1051
- "stateOrProvince": {
1052
- "type": "boolean"
1053
- },
1054
- "place": {
1055
- "type": "boolean"
1056
- },
1057
- "latitude": {
1058
- "type": "boolean"
1059
- },
1060
- "longitude": {
1061
- "type": "boolean"
1062
- }
1063
- }
1064
- }
1065
- },
1066
- "additionalProperties": false,
1067
- "oneOf": [
1068
- {
1069
- "required": [
1070
- "bool"
1071
- ]
1072
- },
1073
- {
1074
- "required": [
1075
- "enumeration"
1076
- ]
1077
- },
1078
- {
1079
- "required": [
1080
- "fill"
1081
- ]
1082
- },
1083
- {
1084
- "required": [
1085
- "fillRule"
1086
- ]
1087
- },
1088
- {
1089
- "required": [
1090
- "formatting"
1091
- ]
1092
- },
1093
- {
1094
- "required": [
1095
- "integer"
1096
- ]
1097
- },
1098
- {
1099
- "required": [
1100
- "numeric"
1101
- ]
1102
- },
1103
- {
1104
- "required": [
1105
- "text"
1106
- ]
1107
- },
1108
- {
1109
- "required": [
1110
- "geography"
1111
- ]
1112
- },
1113
- {
1114
- "required": [
1115
- "scripting"
1116
- ]
1117
- },
1118
- {
1119
- "required": [
1120
- "filter"
1121
- ]
1122
- },
1123
- {
1124
- "required": [
1125
- "operations"
1126
- ]
1127
- }
1128
- ]
1129
- }
1130
- }
1131
- }