@splunk/visualizations 25.1.0 → 25.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_Background_Color_Red.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_Basic.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_Simulated_Instance.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_for_Numeric_Field_Simulated_Instance.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Dark.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Light.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Background_color_cyan.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_after_default.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_before.png +0 -0
  10. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Background_Color_white_Under_Label_and_Unit_specified.png +0 -0
  11. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Major_Value_is_null.png +0 -0
  12. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_after_default.png +0 -0
  13. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_before.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Events_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  31. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  32. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  33. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  34. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  35. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  36. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  37. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Background_Color_Light_Blue.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields_with_Highlight.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Show_Placeholder.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Value_Highlighting.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Events_Events_With_Options.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_ES.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_custom.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
  58. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Markdown_with_number_as_DSL.png +0 -0
  59. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_after.png +0 -0
  60. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_before.png +0 -0
  61. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_After.png +0 -0
  62. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_Before.png +0 -0
  63. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_After.png +0 -0
  64. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_Before.png +0 -0
  65. package/Area.config.js +72 -22
  66. package/Area.config.js.map +1 -1
  67. package/Area.js +246 -185
  68. package/Area.js.map +1 -1
  69. package/Bar.config.js +17 -17
  70. package/Bar.config.js.map +1 -1
  71. package/Bar.js +191 -180
  72. package/Bar.js.map +1 -1
  73. package/Bubble.config.js +21 -14
  74. package/Bubble.config.js.map +1 -1
  75. package/Bubble.js +193 -175
  76. package/Bubble.js.map +1 -1
  77. package/ChoroplethSvg.config.js +6 -6
  78. package/ChoroplethSvg.config.js.map +1 -1
  79. package/ChoroplethSvg.js +180 -170
  80. package/ChoroplethSvg.js.map +1 -1
  81. package/Column.config.js +17 -17
  82. package/Column.config.js.map +1 -1
  83. package/Column.js +190 -180
  84. package/Column.js.map +1 -1
  85. package/Ellipse.config.js +3 -3
  86. package/Ellipse.config.js.map +1 -1
  87. package/Ellipse.js +144 -134
  88. package/Ellipse.js.map +1 -1
  89. package/Events.config.js +664 -0
  90. package/Events.config.js.map +1 -0
  91. package/Events.js +3114 -0
  92. package/Events.js.map +1 -0
  93. package/FillerGauge.config.js +20 -19
  94. package/FillerGauge.config.js.map +1 -1
  95. package/FillerGauge.js +183 -166
  96. package/FillerGauge.js.map +1 -1
  97. package/Image.config.js +5 -5
  98. package/Image.config.js.map +1 -1
  99. package/Image.js +128 -128
  100. package/Image.js.map +1 -1
  101. package/Line.config.js +73 -22
  102. package/Line.config.js.map +1 -1
  103. package/Line.js +253 -186
  104. package/Line.js.map +1 -1
  105. package/LinkGraph.config.js +15 -8
  106. package/LinkGraph.config.js.map +1 -1
  107. package/LinkGraph.js +25270 -434
  108. package/LinkGraph.js.map +1 -1
  109. package/Map.config.js +30 -29
  110. package/Map.config.js.map +1 -1
  111. package/Map.js +3064 -3125
  112. package/Map.js.map +1 -1
  113. package/Markdown.config.js +32 -10
  114. package/Markdown.config.js.map +1 -1
  115. package/Markdown.js +576 -529
  116. package/Markdown.js.map +1 -1
  117. package/MarkerGauge.config.js +16 -16
  118. package/MarkerGauge.config.js.map +1 -1
  119. package/MarkerGauge.js +1287 -1287
  120. package/MarkerGauge.js.map +1 -1
  121. package/ParallelCoordinates.config.js +14 -14
  122. package/ParallelCoordinates.config.js.map +1 -1
  123. package/ParallelCoordinates.js +532 -639
  124. package/ParallelCoordinates.js.map +1 -1
  125. package/Pie.config.js +16 -16
  126. package/Pie.config.js.map +1 -1
  127. package/Pie.js +1205 -1205
  128. package/Pie.js.map +1 -1
  129. package/Punchcard.config.js +14 -14
  130. package/Punchcard.config.js.map +1 -1
  131. package/Punchcard.js +2584 -2700
  132. package/Punchcard.js.map +1 -1
  133. package/Rectangle.config.js +7 -7
  134. package/Rectangle.config.js.map +1 -1
  135. package/Rectangle.js +726 -726
  136. package/Rectangle.js.map +1 -1
  137. package/Sankey.config.js +18 -18
  138. package/Sankey.config.js.map +1 -1
  139. package/Sankey.js +3132 -3253
  140. package/Sankey.js.map +1 -1
  141. package/Scatter.config.js +24 -16
  142. package/Scatter.config.js.map +1 -1
  143. package/Scatter.js +1402 -1395
  144. package/Scatter.js.map +1 -1
  145. package/SingleValue.config.js +11 -10
  146. package/SingleValue.config.js.map +1 -1
  147. package/SingleValue.js +2208 -2208
  148. package/SingleValue.js.map +1 -1
  149. package/SingleValueBasic.js +32 -32
  150. package/SingleValueBasic.js.map +1 -1
  151. package/SingleValueIcon.config.js +11 -10
  152. package/SingleValueIcon.config.js.map +1 -1
  153. package/SingleValueIcon.js +825 -966
  154. package/SingleValueIcon.js.map +1 -1
  155. package/SingleValueRadial.config.js +11 -10
  156. package/SingleValueRadial.config.js.map +1 -1
  157. package/SingleValueRadial.js +1897 -1897
  158. package/SingleValueRadial.js.map +1 -1
  159. package/Table.config.js +7 -7
  160. package/Table.config.js.map +1 -1
  161. package/Table.js +2158 -2155
  162. package/Table.js.map +1 -1
  163. package/common/EventsDoc.js +15 -8
  164. package/common/EventsDoc.js.map +1 -1
  165. package/common/GaugeMajorTicks.js +2 -2
  166. package/common/GaugeValueMarker.js +2 -2
  167. package/common/OptionsDoc.js +8 -8
  168. package/common/OptionsDoc.js.map +1 -1
  169. package/common/ThemesDoc.js +2 -2
  170. package/common/utils/configUtils.js +3 -3
  171. package/common/utils/configUtils.js.map +1 -1
  172. package/common/utils/dataUtils.js +136 -0
  173. package/common/utils/dataUtils.js.map +1 -0
  174. package/common/utils/hocUtils.js +2 -2
  175. package/common/utils/hocUtils.js.map +1 -1
  176. package/common/utils/mapUtils.js +11 -10
  177. package/common/utils/mapUtils.js.map +1 -1
  178. package/common/utils/singleValueUtils.js +3 -2
  179. package/common/utils/singleValueUtils.js.map +1 -1
  180. package/common/utils/testHelper.js +8 -8
  181. package/common/utils/testHelper.js.map +1 -1
  182. package/common/withDashboardViz.js +2 -2
  183. package/common/withDashboardViz.js.map +1 -1
  184. package/package.json +15 -13
package/Area.config.js CHANGED
@@ -254,7 +254,7 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
254
254
  */
255
255
 
256
256
  function enhanceConfig(vizConfig) {
257
- var enhancedConfig = vizConfig;
257
+ var enhancedConfig = Object.assign({}, vizConfig);
258
258
 
259
259
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
260
260
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
@@ -262,7 +262,7 @@ function enhanceConfig(vizConfig) {
262
262
 
263
263
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
264
264
  return Object.assign(Object.assign({}, config), {
265
- open: false
265
+ open: config.open || false
266
266
  });
267
267
  });
268
268
  return enhancedConfig;
@@ -277,7 +277,7 @@ exports.enhanceConfig = enhanceConfig;
277
277
  */
278
278
 
279
279
  function uncollapseEditorConfig(vizConfig) {
280
- var editorPanelUncollapsedConfig = vizConfig;
280
+ var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
281
281
  editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
282
282
  return Object.assign(Object.assign({}, config), {
283
283
  open: true
@@ -448,12 +448,6 @@ module.exports = require("@splunk/visualization-icons");
448
448
 
449
449
  /***/ }),
450
450
  /* 13 */
451
- /***/ (function(module, exports) {
452
-
453
- module.exports = require("@splunk/visualization-color-palettes");
454
-
455
- /***/ }),
456
- /* 14 */
457
451
  /***/ (function(module, exports, __webpack_require__) {
458
452
 
459
453
  "use strict";
@@ -482,6 +476,12 @@ var background = function background(_ref) {
482
476
 
483
477
  exports.default = background;
484
478
 
479
+ /***/ }),
480
+ /* 14 */
481
+ /***/ (function(module, exports) {
482
+
483
+ module.exports = require("@splunk/visualization-color-palettes");
484
+
485
485
  /***/ }),
486
486
  /* 15 */,
487
487
  /* 16 */
@@ -619,7 +619,7 @@ var pick_1 = __webpack_require__(9);
619
619
 
620
620
  var variables_1 = __webpack_require__(10);
621
621
 
622
- var BackgroundColor_1 = __webpack_require__(14);
622
+ var BackgroundColor_1 = __webpack_require__(13);
623
623
 
624
624
  var themes = {
625
625
  defaultBackgroundColor: function defaultBackgroundColor(props) {
@@ -859,7 +859,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
859
859
  }])), [[{
860
860
  label: i18n_1._('Label rotation'),
861
861
  option: 'xAxisLabelRotation',
862
- editor: 'editor.radioBar',
862
+ editor: 'editor.select',
863
863
  editorProps: {
864
864
  values: [{
865
865
  label: i18n_1._('-90'),
@@ -1163,7 +1163,8 @@ var AxesChartYGridAndLabels = {
1163
1163
  exports.default = AxesChartYGridAndLabels;
1164
1164
 
1165
1165
  /***/ }),
1166
- /* 21 */
1166
+ /* 21 */,
1167
+ /* 22 */
1167
1168
  /***/ (function(module, exports, __webpack_require__) {
1168
1169
 
1169
1170
  "use strict";
@@ -1294,7 +1295,7 @@ exports.AxesChartDataDisplayColumn = {
1294
1295
  exports.default = AxesChartDataDisplay;
1295
1296
 
1296
1297
  /***/ }),
1297
- /* 22 */
1298
+ /* 23 */
1298
1299
  /***/ (function(module, exports, __webpack_require__) {
1299
1300
 
1300
1301
  "use strict";
@@ -1460,7 +1461,6 @@ var axesChartY2GridAndLabels = {
1460
1461
  exports.default = axesChartY2GridAndLabels;
1461
1462
 
1462
1463
  /***/ }),
1463
- /* 23 */,
1464
1464
  /* 24 */,
1465
1465
  /* 25 */,
1466
1466
  /* 26 */,
@@ -1493,7 +1493,7 @@ var placeholders_1 = __webpack_require__(11);
1493
1493
 
1494
1494
  var schemaUtils_1 = __webpack_require__(3);
1495
1495
 
1496
- var visualization_color_palettes_1 = __webpack_require__(13);
1496
+ var visualization_color_palettes_1 = __webpack_require__(14);
1497
1497
 
1498
1498
  var i18n_1 = __webpack_require__(0);
1499
1499
 
@@ -1509,7 +1509,7 @@ var configUtils_1 = __webpack_require__(4);
1509
1509
 
1510
1510
  var AxesChartDataConfig_1 = __webpack_require__(16);
1511
1511
 
1512
- var AxesChartDataDisplay_1 = __webpack_require__(21);
1512
+ var AxesChartDataDisplay_1 = __webpack_require__(22);
1513
1513
 
1514
1514
  var AxesChartColorAndStyle_1 = __webpack_require__(17);
1515
1515
 
@@ -1519,7 +1519,7 @@ var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1519
1519
 
1520
1520
  var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1521
1521
 
1522
- var AxesChartY2GridAndLabels_1 = __webpack_require__(22);
1522
+ var AxesChartY2GridAndLabels_1 = __webpack_require__(23);
1523
1523
 
1524
1524
  var dataContract = {
1525
1525
  requiredDataSources: [{
@@ -1620,7 +1620,7 @@ var optionsSchema = {
1620
1620
  },
1621
1621
  legendDisplay: {
1622
1622
  default: 'right',
1623
- description: 'Specify the location of the legend on the panel.',
1623
+ description: 'Specify the location of the legend on the panel. You must select the Standard legend mode to make this change.',
1624
1624
  pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
1625
1625
  type: 'string'
1626
1626
  },
@@ -1990,7 +1990,57 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
1990
1990
  }]])
1991
1991
  }, {
1992
1992
  label: AxesChartLegend_1.default.label,
1993
- layout: [].concat(_toConsumableArray(AxesChartLegend_1.default.layout), [[{
1993
+ layout: [[{
1994
+ label: i18n_1._('Legend display'),
1995
+ option: 'legendDisplay',
1996
+ editor: 'editor.select',
1997
+ editorProps: {
1998
+ values: [{
1999
+ label: i18n_1._('Right'),
2000
+ value: 'right'
2001
+ }, {
2002
+ label: i18n_1._('Left'),
2003
+ value: 'left'
2004
+ }, {
2005
+ label: i18n_1._('Top'),
2006
+ value: 'top'
2007
+ }, {
2008
+ label: i18n_1._('Bottom'),
2009
+ value: 'bottom'
2010
+ }, {
2011
+ label: i18n_1._('Off'),
2012
+ value: 'off'
2013
+ }],
2014
+ tooltip: i18n_1._('Legend mode must be "Standard" to configure legend display')
2015
+ },
2016
+ isDisabled: function isDisabled(_ref) {
2017
+ var options = _ref.options;
2018
+ return options.legendMode === 'seriesCompare';
2019
+ }
2020
+ }], [{
2021
+ label: i18n_1._('Legend truncation'),
2022
+ option: 'legendTruncation',
2023
+ editor: 'editor.radioBar',
2024
+ editorProps: {
2025
+ values: [{
2026
+ label: i18n_1._('A...'),
2027
+ value: 'ellipsisEnd'
2028
+ }, {
2029
+ label: i18n_1._('A...Z'),
2030
+ value: 'ellipsisMiddle'
2031
+ }, {
2032
+ label: i18n_1._('...Z'),
2033
+ value: 'ellipsisStart'
2034
+ }, {
2035
+ label: i18n_1._('Off'),
2036
+ value: 'ellipsisOff'
2037
+ }]
2038
+ },
2039
+ showEditor: function showEditor(_ref2) {
2040
+ var options = _ref2.options;
2041
+ return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
2042
+ }
2043
+ }], [{
1994
2044
  label: i18n_1._('Legend mode'),
1995
2045
  option: 'legendMode',
1996
2046
  editor: 'editor.radioBar',
@@ -2003,11 +2053,11 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
2003
2053
  value: 'seriesCompare'
2004
2054
  }]
2005
2055
  },
2006
- showEditor: function showEditor(_ref) {
2007
- var options = _ref.options;
2056
+ showEditor: function showEditor(_ref3) {
2057
+ var options = _ref3.options;
2008
2058
  return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
2009
2059
  }
2010
- }]])
2060
+ }]]
2011
2061
  }, AxesChartXGridAndLabels_1.default, AxesChartYGridAndLabels_1.default, AxesChartY2GridAndLabels_1.default];
2012
2062
  /**
2013
2063
  * visualization configuration