@splunk/visualizations 26.2.1 → 26.4.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.
Files changed (150) hide show
  1. package/Area.config.js +92 -595
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +296 -801
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +93 -562
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +299 -770
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +84 -483
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +286 -687
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +77 -202
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +272 -400
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +93 -600
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +299 -808
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +82 -200
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +233 -356
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +62 -283
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +326 -530
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +91 -220
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -401
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +61 -157
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +217 -327
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +92 -607
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +297 -814
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +75 -257
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +1755 -17415
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +6 -0
  46. package/Map.config.js +128 -1123
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +470 -782
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +62 -189
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +272 -401
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +138 -298
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +309 -470
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +72 -192
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +333 -442
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +77 -241
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +336 -471
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +72 -306
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +356 -583
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +211 -347
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +371 -509
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +72 -214
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +343 -475
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +86 -464
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +1118 -1493
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +124 -411
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +522 -789
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +73 -61
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +123 -380
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +508 -745
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +121 -385
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +1642 -1885
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +39 -39
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +82 -496
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +416 -825
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +37 -57
  103. package/common/Charting.js.map +1 -1
  104. package/common/DocExampleWithVizSandbox.js +21 -21
  105. package/common/DocExampleWithVizSandbox.js.map +1 -1
  106. package/common/EventsDoc.js +18 -18
  107. package/common/EventsDoc.js.map +1 -1
  108. package/common/GaugeMajorTicks.js +4 -4
  109. package/common/GaugeMajorTicks.js.map +1 -1
  110. package/common/GaugeValueMarker.js +2 -2
  111. package/common/GaugeValueMarker.js.map +1 -1
  112. package/common/OptionsDoc.js +4 -4
  113. package/common/OptionsDoc.js.map +1 -1
  114. package/common/OverviewDoc.js +39 -40
  115. package/common/OverviewDoc.js.map +1 -1
  116. package/common/SplunkVisualization.js +2 -2
  117. package/common/SplunkVisualization.js.map +1 -1
  118. package/common/SplunkVisualizationApi.js +2 -2
  119. package/common/SplunkVisualizationApi.js.map +1 -1
  120. package/common/ThemesDoc.js +19 -19
  121. package/common/ThemesDoc.js.map +1 -1
  122. package/common/chartingUtils.js +2 -2
  123. package/common/chartingUtils.js.map +1 -1
  124. package/common/gaugeUtils.js +10 -10
  125. package/common/gaugeUtils.js.map +1 -1
  126. package/common/shapeUtils.js +10 -10
  127. package/common/shapeUtils.js.map +1 -1
  128. package/common/utils/configUtils.js +25 -155
  129. package/common/utils/configUtils.js.map +1 -1
  130. package/common/utils/dataUtils.js +87 -105
  131. package/common/utils/dataUtils.js.map +1 -1
  132. package/common/utils/featureFlagUtils.js +4 -4
  133. package/common/utils/featureFlagUtils.js.map +1 -1
  134. package/common/utils/hocUtils.js +2 -2
  135. package/common/utils/hocUtils.js.map +1 -1
  136. package/common/utils/mapUtils.js +51 -54
  137. package/common/utils/mapUtils.js.map +1 -1
  138. package/common/utils/singleValueUtils.js +30 -18
  139. package/common/utils/singleValueUtils.js.map +1 -1
  140. package/common/utils/testHelper.js +7 -36
  141. package/common/utils/testHelper.js.map +1 -1
  142. package/common/utils/trellisUtils.js +7 -6
  143. package/common/utils/trellisUtils.js.map +1 -1
  144. package/common/utils/urlUtils.js +2 -2
  145. package/common/utils/urlUtils.js.map +1 -1
  146. package/common/withDashboardViz.js +93 -101
  147. package/common/withDashboardViz.js.map +1 -1
  148. package/package.json +48 -50
  149. package/common/utils/layoutUtils.js +0 -115
  150. package/common/utils/layoutUtils.js.map +0 -1
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 70);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 61);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,25 +109,18 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/themes/variables");
113
-
114
- /***/ }),
115
-
116
- /***/ 11:
117
- /***/ (function(module, exports) {
118
-
119
112
  module.exports = require("@splunk/visualization-icons/placeholders");
120
113
 
121
114
  /***/ }),
122
115
 
123
- /***/ 12:
116
+ /***/ 11:
124
117
  /***/ (function(module, exports) {
125
118
 
126
119
  module.exports = require("@splunk/visualization-icons");
127
120
 
128
121
  /***/ }),
129
122
 
130
- /***/ 13:
123
+ /***/ 12:
131
124
  /***/ (function(module, exports, __webpack_require__) {
132
125
 
133
126
  "use strict";
@@ -144,7 +137,7 @@ var background = function background(_ref) {
144
137
  themes = _ref.themes,
145
138
  labelPosition = _ref.labelPosition;
146
139
  return [{
147
- label: (0, i18n_1._)(label || 'Background'),
140
+ label: (0, i18n_1._)(label || 'Background color'),
148
141
  option: 'backgroundColor',
149
142
  editor: 'editor.color',
150
143
  editorProps: {
@@ -158,61 +151,14 @@ exports.default = background;
158
151
 
159
152
  /***/ }),
160
153
 
161
- /***/ 14:
162
- /***/ (function(module, exports) {
163
-
164
- module.exports = require("@splunk/visualization-color-palettes");
165
-
166
- /***/ }),
167
-
168
154
  /***/ 2:
169
- /***/ (function(module, exports, __webpack_require__) {
170
-
171
- "use strict";
172
-
173
-
174
- Object.defineProperty(exports, "__esModule", {
175
- value: true
176
- });
177
- exports.VizBehavior = void 0;
178
- var VizBehavior;
179
-
180
- (function (VizBehavior) {
181
- /**
182
- * Dynamic Options Behavior.
183
- * This allows visualization options to be powered by data
184
- *
185
- * **Example**
186
- *
187
- * sparklineValues: ">primary|seriesByIndex(0)"
188
- * would configure sparklineValues with an array of data points
189
- * coming from the first series in the primary datasource
190
- *
191
- */
192
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
193
- VizBehavior["EVENTS"] = "events";
194
- VizBehavior["DOWNSAMPLING"] = "downsampling";
195
- /**
196
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
197
- * missing.
198
- * @type {string}
199
- */
200
-
201
- VizBehavior["PLACEHOLDER"] = "placeholder";
202
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
203
- VizBehavior["TRELLIS"] = "trellis";
204
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
205
-
206
- /***/ }),
207
-
208
- /***/ 3:
209
155
  /***/ (function(module, exports) {
210
156
 
211
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
157
+ module.exports = require("@splunk/visualization-schemas");
212
158
 
213
159
  /***/ }),
214
160
 
215
- /***/ 4:
161
+ /***/ 3:
216
162
  /***/ (function(module, exports, __webpack_require__) {
217
163
 
218
164
  "use strict";
@@ -220,97 +166,22 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
220
166
 
221
167
  var _toConsumableArray = __webpack_require__(1);
222
168
 
223
- var _defineProperty = __webpack_require__(7);
224
-
225
- var __rest = this && this.__rest || function (s, e) {
226
- var t = {};
227
-
228
- for (var p in s) {
229
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
230
- }
231
-
232
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
233
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
234
- }
235
- return t;
236
- };
237
-
238
169
  Object.defineProperty(exports, "__esModule", {
239
170
  value: true
240
171
  });
241
- exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
242
-
243
- var lodash_1 = __webpack_require__(6);
244
-
245
- var schemaUtils_1 = __webpack_require__(3);
172
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
246
173
 
247
- var VizBehavior_1 = __webpack_require__(2);
174
+ var lodash_1 = __webpack_require__(5); // included for backwards compatibility
248
175
 
249
- var dynamicOptionsDSLType = {
250
- type: 'string',
251
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
252
- };
253
- /**
254
- * Helper function to extend an options schema with dynamic options DSL
255
- * @param optionsSchema a visualization's options schema
256
- * @returns an updated options schema that additionally allows strings starting with > for each option
257
- */
258
-
259
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
260
- var enhancedOptionsSchema = {};
261
- Object.keys(optionsSchema).forEach(function (key) {
262
- var _a = optionsSchema[key],
263
- title = _a.title,
264
- description = _a.description,
265
- readOnly = _a.readOnly,
266
- writeOnly = _a.writeOnly,
267
- examples = _a.examples,
268
- defaultValue = _a.default,
269
- type = _a.type,
270
- properties = _a.properties,
271
- patternProperties = _a.patternProperties,
272
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
273
-
274
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
275
- title: title
276
- }), description !== undefined && {
277
- description: description
278
- }), readOnly !== undefined && {
279
- readOnly: readOnly
280
- }), writeOnly !== undefined && {
281
- writeOnly: writeOnly
282
- }), examples !== undefined && {
283
- examples: examples
284
- }), defaultValue !== undefined && {
285
- default: defaultValue
286
- });
287
176
 
288
- if (type === 'object') {
289
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
290
- type: type
291
- }), properties && {
292
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
293
- });
294
-
295
- if (patternProperties) {
296
- var enhancedPatternProperties = {};
297
- Object.keys(patternProperties).forEach(function (opt) {
298
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
299
- });
300
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
301
- }
302
- } else {
303
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
304
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
305
- type: type
306
- }), remainingSchemaEntry), dynamicOptionsDSLType]
307
- });
308
- }
309
- });
310
- return enhancedOptionsSchema;
311
- }
177
+ var visualization_schemas_1 = __webpack_require__(2);
312
178
 
313
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
179
+ Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
180
+ enumerable: true,
181
+ get: function get() {
182
+ return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
183
+ }
184
+ });
314
185
  /**
315
186
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
316
187
  * this function also collapse all editor panels
@@ -321,11 +192,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
321
192
 
322
193
  function enhanceConfig(vizConfig) {
323
194
  var enhancedConfig = Object.assign({}, vizConfig);
324
-
325
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
326
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
327
- }
328
-
329
195
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
330
196
  return Object.assign(Object.assign({}, config), {
331
197
  open: config.open || false
@@ -449,21 +315,54 @@ exports.insertLayout = insertLayout;
449
315
 
450
316
  /***/ }),
451
317
 
452
- /***/ 6:
318
+ /***/ 5:
453
319
  /***/ (function(module, exports) {
454
320
 
455
321
  module.exports = require("lodash");
456
322
 
457
323
  /***/ }),
458
324
 
459
- /***/ 7:
460
- /***/ (function(module, exports) {
325
+ /***/ 6:
326
+ /***/ (function(module, exports, __webpack_require__) {
327
+
328
+ "use strict";
329
+
330
+
331
+ Object.defineProperty(exports, "__esModule", {
332
+ value: true
333
+ });
334
+ exports.VizBehavior = void 0;
335
+ var VizBehavior;
336
+
337
+ (function (VizBehavior) {
338
+ /**
339
+ * Dynamic Options Behavior.
340
+ * This allows visualization options to be powered by data
341
+ *
342
+ * **Example**
343
+ *
344
+ * sparklineValues: ">primary|seriesByIndex(0)"
345
+ * would configure sparklineValues with an array of data points
346
+ * coming from the first series in the primary datasource
347
+ *
348
+ */
349
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
350
+ VizBehavior["EVENTS"] = "events";
351
+ VizBehavior["DOWNSAMPLING"] = "downsampling";
352
+ /**
353
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
354
+ * missing.
355
+ * @type {string}
356
+ */
461
357
 
462
- module.exports = require("@babel/runtime/helpers/defineProperty");
358
+ VizBehavior["PLACEHOLDER"] = "placeholder";
359
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
360
+ VizBehavior["TRELLIS"] = "trellis";
361
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
463
362
 
464
363
  /***/ }),
465
364
 
466
- /***/ 70:
365
+ /***/ 61:
467
366
  /***/ (function(module, exports, __webpack_require__) {
468
367
 
469
368
  "use strict";
@@ -475,25 +374,23 @@ Object.defineProperty(exports, "__esModule", {
475
374
 
476
375
  var i18n_1 = __webpack_require__(0);
477
376
 
478
- var schemaUtils_1 = __webpack_require__(3);
377
+ var visualization_schemas_1 = __webpack_require__(2);
479
378
 
480
- var visualization_icons_1 = __webpack_require__(12);
379
+ var visualization_icons_1 = __webpack_require__(11);
481
380
 
482
- var placeholders_1 = __webpack_require__(11);
381
+ var placeholders_1 = __webpack_require__(10);
483
382
 
484
- var visualization_color_palettes_1 = __webpack_require__(14);
383
+ var pick_1 = __webpack_require__(8);
485
384
 
486
- var pick_1 = __webpack_require__(9);
385
+ var variables_1 = __webpack_require__(9);
487
386
 
488
- var variables_1 = __webpack_require__(10);
387
+ var VizBehavior_1 = __webpack_require__(6);
489
388
 
490
- var VizBehavior_1 = __webpack_require__(2);
389
+ var VizCategory_1 = __webpack_require__(7);
491
390
 
492
- var VizCategory_1 = __webpack_require__(8);
391
+ var configUtils_1 = __webpack_require__(3);
493
392
 
494
- var configUtils_1 = __webpack_require__(4);
495
-
496
- var BackgroundColor_1 = __webpack_require__(13);
393
+ var BackgroundColor_1 = __webpack_require__(12);
497
394
 
498
395
  var dataContract = {
499
396
  requiredDataSources: [{
@@ -522,144 +419,6 @@ var defaultContext = {
522
419
  colors: ['rgba(123,86,219,0.4)', 'rgba(123,86,219,1)']
523
420
  }
524
421
  };
525
- var optionsSchema = {
526
- x: {
527
- default: '> primary | seriesByIndex(0)',
528
- description: 'Specify the dataSource applied to the x-axis.',
529
- type: 'array',
530
- items: {
531
- type: ['string', 'number']
532
- }
533
- },
534
- y: {
535
- default: '> primary | seriesByIndex(1)',
536
- description: 'Specify the dataSource applied to the y-axis.',
537
- type: 'array',
538
- items: {
539
- type: ['string', 'number']
540
- }
541
- },
542
- category: {
543
- default: '> primary | seriesByIndex(3)',
544
- description: 'Specify the dataSource to apply series categories.',
545
- type: 'array',
546
- items: {
547
- type: ['string', 'number']
548
- }
549
- },
550
- size: {
551
- default: '> primary | seriesByIndex(2)',
552
- description: 'Specify the dataSource to apply bubble size in the chart.',
553
- type: 'array',
554
- items: {
555
- type: 'number'
556
- }
557
- },
558
- xField: {
559
- default: '> x | getField()',
560
- description: 'Specify the field that should be mapped to the x-axis.',
561
- type: 'string'
562
- },
563
- yField: {
564
- default: '> y | getField()',
565
- description: 'Specify the field that should be mapped to the y-axis.',
566
- type: 'string'
567
- },
568
- categoryField: {
569
- default: '> category | getField()',
570
- description: 'Specify the field that should be mapped to the series categories.',
571
- type: 'string'
572
- },
573
- sizeField: {
574
- default: '> size | getField()',
575
- description: 'Specify the field that should be mapped to the bubble size in the chart.',
576
- type: 'string'
577
- },
578
- backgroundColor: {
579
- default: '> themes.defaultBackgroundColor',
580
- description: 'Specify the color used for the background. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
581
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
582
- type: 'string'
583
- },
584
- bubbleColor: {
585
- default: '> size | gradient(bubbleColorConfig)',
586
- description: 'Specify the coloring method used for the bubbles when the colorMode “dynamic” is specified. For example “> size | gradient(bubbleColorConfig)".',
587
- type: ['string', 'array']
588
- },
589
- bubbleLabelDisplay: {
590
- default: 'all',
591
- description: 'Specify whether all bubble labels, the max value bubble labels, or none of the bubble labels should be displayed.',
592
- pattern: (0, schemaUtils_1.getPattern)(['all', 'max', 'off']),
593
- type: 'string'
594
- },
595
- bubbleRadiusMax: {
596
- default: 15,
597
- description: 'Specify the max radius (in pixels) of the bubbles when showDynamicBubbleSize option is false. Greater than 0.',
598
- type: 'number'
599
- },
600
- bubbleRadiusMin: {
601
- default: 1,
602
- description: 'Specify the min radius (in pixels) of the bubbles when showDynamicBubbleSize option is false. Greater than 0.',
603
- type: 'number'
604
- },
605
- bubbleRowScale: {
606
- default: 'global',
607
- description: 'Specify how bubbles are scaled relative to other rows.',
608
- pattern: (0, schemaUtils_1.getPattern)(['global', 'row']),
609
- type: 'string'
610
- },
611
- bubbleSizeMax: {
612
- default: 1,
613
- description: 'Specify the max percentage (in decimal format) of space a bubble should take up within a cell when showDynamicBubbleSize option is true. The number specified must be between 0 and 1.',
614
- type: 'number'
615
- },
616
- bubbleSizeMin: {
617
- default: 0.25,
618
- description: 'Specify the min percentage (in decimal format) of space a bubble should take up within a cell when showDynamicBubbleSize option is true. The number specified must be between 0 and 1.',
619
- type: 'number'
620
- },
621
- bubbleSizeMethod: {
622
- default: 'area',
623
- description: 'Specify whether bubble area or diameter corresponds to the size value.',
624
- pattern: (0, schemaUtils_1.getPattern)(['radius', 'area']),
625
- type: 'string'
626
- },
627
- colorMode: {
628
- default: 'dynamic',
629
- description: 'Specify the coloring method used for the bubbles.',
630
- pattern: (0, schemaUtils_1.getPattern)(['categorical', 'dynamic']),
631
- type: 'string'
632
- },
633
- legendDisplay: {
634
- default: 'right',
635
- description: 'Specify the location of the legend on the panel.',
636
- pattern: (0, schemaUtils_1.getPattern)(['right', 'off']),
637
- type: 'string'
638
- },
639
- seriesColors: {
640
- default: visualization_color_palettes_1.VIZ_CATEGORICAL,
641
- description: 'Specify the colors used for a series. For example, "#FF0000", "#0000FF", "#008000".',
642
- type: 'array',
643
- items: {
644
- type: 'string'
645
- }
646
- },
647
- showDefaultSort: {
648
- default: false,
649
- description: 'Specify whether axes should be sorted based on order of time, digits and strings.',
650
- type: 'boolean'
651
- },
652
- showDynamicBubbleSize: {
653
- default: true,
654
- description: 'Specify whether the bubble size should be dynamic or fixed.',
655
- type: 'boolean'
656
- },
657
- showMaxValuePulsation: {
658
- default: true,
659
- description: 'Specify whether the max value bubble should pulsate.',
660
- type: 'boolean'
661
- }
662
- };
663
422
  var themes = {
664
423
  defaultBackgroundColor: function defaultBackgroundColor(props) {
665
424
  return (0, pick_1.default)({
@@ -802,7 +561,7 @@ var config = {
802
561
  dataContract: dataContract,
803
562
  size: size,
804
563
  defaultContext: defaultContext,
805
- optionsSchema: optionsSchema,
564
+ optionsSchema: visualization_schemas_1.punchcardOptionsSchema,
806
565
  editorConfig: editorConfig,
807
566
  events: {
808
567
  'legend.click': {
@@ -820,7 +579,7 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
820
579
 
821
580
  /***/ }),
822
581
 
823
- /***/ 8:
582
+ /***/ 7:
824
583
  /***/ (function(module, exports, __webpack_require__) {
825
584
 
826
585
  "use strict";
@@ -849,11 +608,18 @@ var VizCategory;
849
608
 
850
609
  /***/ }),
851
610
 
852
- /***/ 9:
611
+ /***/ 8:
853
612
  /***/ (function(module, exports) {
854
613
 
855
614
  module.exports = require("@splunk/themes/pick");
856
615
 
616
+ /***/ }),
617
+
618
+ /***/ 9:
619
+ /***/ (function(module, exports) {
620
+
621
+ module.exports = require("@splunk/themes/variables");
622
+
857
623
  /***/ })
858
624
 
859
625
  /******/ });