@splunk/visualizations 25.0.0 → 25.0.1

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 (142) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
  7. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  44. package/Area.config.js +26 -1
  45. package/Area.config.js.map +1 -1
  46. package/Area.js +49 -23
  47. package/Area.js.map +1 -1
  48. package/Bar.config.js +26 -1
  49. package/Bar.config.js.map +1 -1
  50. package/Bar.js +49 -23
  51. package/Bar.js.map +1 -1
  52. package/Bubble.config.js +26 -1
  53. package/Bubble.config.js.map +1 -1
  54. package/Bubble.js +49 -23
  55. package/Bubble.js.map +1 -1
  56. package/ChoroplethSvg.config.js +27 -3
  57. package/ChoroplethSvg.config.js.map +1 -1
  58. package/ChoroplethSvg.js +73 -48
  59. package/ChoroplethSvg.js.map +1 -1
  60. package/Column.config.js +26 -1
  61. package/Column.config.js.map +1 -1
  62. package/Column.js +49 -23
  63. package/Column.js.map +1 -1
  64. package/Ellipse.config.js +26 -1
  65. package/Ellipse.config.js.map +1 -1
  66. package/Ellipse.js +58 -32
  67. package/Ellipse.js.map +1 -1
  68. package/FillerGauge.config.js +27 -2
  69. package/FillerGauge.config.js.map +1 -1
  70. package/FillerGauge.js +60 -34
  71. package/FillerGauge.js.map +1 -1
  72. package/Image.config.js +27 -3
  73. package/Image.config.js.map +1 -1
  74. package/Image.js +58 -34
  75. package/Image.js.map +1 -1
  76. package/Line.config.js +26 -1
  77. package/Line.config.js.map +1 -1
  78. package/Line.js +49 -23
  79. package/Line.js.map +1 -1
  80. package/LinkGraph.config.js +26 -1
  81. package/LinkGraph.config.js.map +1 -1
  82. package/LinkGraph.js +87 -61
  83. package/LinkGraph.js.map +1 -1
  84. package/Map.config.js +42 -5
  85. package/Map.config.js.map +1 -1
  86. package/Map.js +100 -60
  87. package/Map.js.map +1 -1
  88. package/Markdown.config.js +28 -5
  89. package/Markdown.config.js.map +1 -1
  90. package/Markdown.js +58 -35
  91. package/Markdown.js.map +1 -1
  92. package/MarkerGauge.config.js +31 -7
  93. package/MarkerGauge.config.js.map +1 -1
  94. package/MarkerGauge.js +2939 -3022
  95. package/MarkerGauge.js.map +1 -1
  96. package/ParallelCoordinates.config.js +35 -10
  97. package/ParallelCoordinates.config.js.map +1 -1
  98. package/ParallelCoordinates.js +61 -35
  99. package/ParallelCoordinates.js.map +1 -1
  100. package/Pie.config.js +32 -8
  101. package/Pie.config.js.map +1 -1
  102. package/Pie.js +2242 -2330
  103. package/Pie.js.map +1 -1
  104. package/Punchcard.config.js +28 -5
  105. package/Punchcard.config.js.map +1 -1
  106. package/Punchcard.js +72 -48
  107. package/Punchcard.js.map +1 -1
  108. package/Rectangle.config.js +28 -3
  109. package/Rectangle.config.js.map +1 -1
  110. package/Rectangle.js +155 -130
  111. package/Rectangle.js.map +1 -1
  112. package/Sankey.config.js +30 -5
  113. package/Sankey.config.js.map +1 -1
  114. package/Sankey.js +107 -82
  115. package/Sankey.js.map +1 -1
  116. package/Scatter.config.js +29 -3
  117. package/Scatter.config.js.map +1 -1
  118. package/Scatter.js +47 -22
  119. package/Scatter.js.map +1 -1
  120. package/SingleValue.config.js +33 -7
  121. package/SingleValue.config.js.map +1 -1
  122. package/SingleValue.js +63 -38
  123. package/SingleValue.js.map +1 -1
  124. package/SingleValueBasic.js +2 -2
  125. package/SingleValueIcon.config.js +31 -5
  126. package/SingleValueIcon.config.js.map +1 -1
  127. package/SingleValueIcon.js +71 -45
  128. package/SingleValueIcon.js.map +1 -1
  129. package/SingleValueRadial.config.js +160 -165
  130. package/SingleValueRadial.config.js.map +1 -1
  131. package/SingleValueRadial.js +112 -87
  132. package/SingleValueRadial.js.map +1 -1
  133. package/Table.config.js +31 -6
  134. package/Table.config.js.map +1 -1
  135. package/Table.js +249 -224
  136. package/Table.js.map +1 -1
  137. package/common/OptionsDoc.js +26 -1
  138. package/common/OptionsDoc.js.map +1 -1
  139. package/common/utils/configUtils.js +26 -1
  140. package/common/utils/configUtils.js.map +1 -1
  141. package/common/withDashboardViz.js +2 -2
  142. package/package.json +10 -10
package/Bubble.js CHANGED
@@ -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 = 152);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 153);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -184,7 +184,7 @@ var __rest = this && this.__rest || function (s, e) {
184
184
  Object.defineProperty(exports, "__esModule", {
185
185
  value: true
186
186
  });
187
- exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
187
+ exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
188
188
 
189
189
  var lodash_1 = __webpack_require__(2);
190
190
 
@@ -259,8 +259,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
259
259
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
260
260
  /**
261
261
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
262
+ * this function also collapse all editor panels
262
263
  * @param vizConfig a Visualization Config
263
264
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
265
+ * and containing `open: false` for all editor panels in editorConfig
264
266
  */
265
267
 
266
268
  function enhanceConfig(vizConfig) {
@@ -270,10 +272,33 @@ function enhanceConfig(vizConfig) {
270
272
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
271
273
  }
272
274
 
275
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
276
+ return Object.assign(Object.assign({}, config), {
277
+ open: false
278
+ });
279
+ });
273
280
  return enhancedConfig;
274
281
  }
275
282
 
276
283
  exports.enhanceConfig = enhanceConfig;
284
+ /**
285
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
286
+ * Created for editor unit tests
287
+ * @param vizConfig a Visualization Config
288
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
289
+ */
290
+
291
+ function uncollapseEditorConfig(vizConfig) {
292
+ var editorPanelUncollapsedConfig = vizConfig;
293
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
294
+ return Object.assign(Object.assign({}, config), {
295
+ open: true
296
+ });
297
+ });
298
+ return editorPanelUncollapsedConfig;
299
+ }
300
+
301
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
277
302
 
278
303
  function isDynamicOption(option) {
279
304
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
@@ -381,7 +406,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
381
406
  "use strict";
382
407
 
383
408
 
384
- var _typeof = __webpack_require__(23);
409
+ var _typeof = __webpack_require__(25);
385
410
 
386
411
  Object.defineProperty(exports, "__esModule", {
387
412
  value: true
@@ -566,7 +591,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
566
591
 
567
592
  return React.createElement(FixSizeItem, {
568
593
  "data-test": "fix-size-item",
569
- "data-splunk-visualization-version": "25.0.0 - 5e0f30e5a",
594
+ "data-splunk-visualization-version": "25.0.1 - de10ad954",
570
595
  width: width,
571
596
  height: height,
572
597
  backgroundColor: backgroundColor
@@ -630,14 +655,8 @@ module.exports = require("@splunk/visualization-context/TimezoneContext");
630
655
  module.exports = require("@splunk/visualizations-shared/propUtils");
631
656
 
632
657
  /***/ }),
633
- /* 23 */
634
- /***/ (function(module, exports) {
635
-
636
- module.exports = require("@babel/runtime/helpers/typeof");
637
-
638
- /***/ }),
639
- /* 24 */,
640
- /* 25 */
658
+ /* 23 */,
659
+ /* 24 */
641
660
  /***/ (function(module, exports, __webpack_require__) {
642
661
 
643
662
  "use strict";
@@ -669,6 +688,12 @@ var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
669
688
 
670
689
  exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
671
690
 
691
+ /***/ }),
692
+ /* 25 */
693
+ /***/ (function(module, exports) {
694
+
695
+ module.exports = require("@babel/runtime/helpers/typeof");
696
+
672
697
  /***/ }),
673
698
  /* 26 */
674
699
  /***/ (function(module, exports, __webpack_require__) {
@@ -959,7 +984,7 @@ var getPagination_1 = __webpack_require__(28);
959
984
 
960
985
  var useDeepMemo_1 = __webpack_require__(38);
961
986
 
962
- var JSONSchemaUtils_1 = __webpack_require__(25);
987
+ var JSONSchemaUtils_1 = __webpack_require__(24);
963
988
 
964
989
  var MissingPropsMessage_1 = __webpack_require__(39);
965
990
 
@@ -1539,7 +1564,7 @@ var Cover = styled_components_1.default.div.withConfig({
1539
1564
  componentId: "sc-1gsbnxb-0"
1540
1565
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1541
1566
  var Blocker = styled_components_1.default.div.attrs({
1542
- 'data-splunk-visualization-version': "25.0.0 - 5e0f30e5a"
1567
+ 'data-splunk-visualization-version': "25.0.1 - de10ad954"
1543
1568
  }).withConfig({
1544
1569
  displayName: "withEditModeCover__Blocker",
1545
1570
  componentId: "sc-1gsbnxb-1"
@@ -3160,7 +3185,8 @@ exports.default = AxesChartYGridAndLabels;
3160
3185
  /* 116 */,
3161
3186
  /* 117 */,
3162
3187
  /* 118 */,
3163
- /* 119 */
3188
+ /* 119 */,
3189
+ /* 120 */
3164
3190
  /***/ (function(module, exports, __webpack_require__) {
3165
3191
 
3166
3192
  "use strict";
@@ -3194,13 +3220,13 @@ var charting_bundle_1 = __webpack_require__(51);
3194
3220
 
3195
3221
  var simpleXMLOptions_1 = __webpack_require__(61);
3196
3222
 
3197
- var config_1 = __webpack_require__(153);
3223
+ var config_1 = __webpack_require__(154);
3198
3224
 
3199
3225
  exports.config = config_1.default;
3200
3226
 
3201
3227
  var withDashboardViz_1 = __webpack_require__(30);
3202
3228
 
3203
- var bubbleUtils_1 = __webpack_require__(154);
3229
+ var bubbleUtils_1 = __webpack_require__(155);
3204
3230
 
3205
3231
  var chartingUtils_1 = __webpack_require__(50);
3206
3232
 
@@ -3284,7 +3310,6 @@ exports.themes = themes;
3284
3310
  exports.default = Bubble;
3285
3311
 
3286
3312
  /***/ }),
3287
- /* 120 */,
3288
3313
  /* 121 */,
3289
3314
  /* 122 */,
3290
3315
  /* 123 */,
@@ -3316,7 +3341,8 @@ exports.default = Bubble;
3316
3341
  /* 149 */,
3317
3342
  /* 150 */,
3318
3343
  /* 151 */,
3319
- /* 152 */
3344
+ /* 152 */,
3345
+ /* 153 */
3320
3346
  /***/ (function(module, exports, __webpack_require__) {
3321
3347
 
3322
3348
  "use strict";
@@ -3346,9 +3372,9 @@ Object.defineProperty(exports, "__esModule", {
3346
3372
  });
3347
3373
  exports.default = void 0;
3348
3374
 
3349
- __exportStar(__webpack_require__(119), exports);
3375
+ __exportStar(__webpack_require__(120), exports);
3350
3376
 
3351
- var Bubble_1 = __webpack_require__(119);
3377
+ var Bubble_1 = __webpack_require__(120);
3352
3378
 
3353
3379
  Object.defineProperty(exports, "default", {
3354
3380
  enumerable: true,
@@ -3358,7 +3384,7 @@ Object.defineProperty(exports, "default", {
3358
3384
  });
3359
3385
 
3360
3386
  /***/ }),
3361
- /* 153 */
3387
+ /* 154 */
3362
3388
  /***/ (function(module, exports, __webpack_require__) {
3363
3389
 
3364
3390
  "use strict";
@@ -3813,7 +3839,7 @@ var config = {
3813
3839
  exports.default = configUtils_1.enhanceConfig(config);
3814
3840
 
3815
3841
  /***/ }),
3816
- /* 154 */
3842
+ /* 155 */
3817
3843
  /***/ (function(module, exports, __webpack_require__) {
3818
3844
 
3819
3845
  "use strict";