@splunk/visualizations 25.3.1 → 25.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 (70) hide show
  1. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  2. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  3. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  4. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  5. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
  6. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  7. package/Area.config.js +52 -21
  8. package/Area.config.js.map +1 -1
  9. package/Area.js +71 -40
  10. package/Area.js.map +1 -1
  11. package/Bar.config.js +49 -18
  12. package/Bar.config.js.map +1 -1
  13. package/Bar.js +68 -37
  14. package/Bar.js.map +1 -1
  15. package/Bubble.config.js +6 -3
  16. package/Bubble.config.js.map +1 -1
  17. package/Bubble.js +25 -22
  18. package/Bubble.js.map +1 -1
  19. package/ChoroplethSvg.js +22 -22
  20. package/ChoroplethSvg.js.map +1 -1
  21. package/Column.config.js +45 -14
  22. package/Column.config.js.map +1 -1
  23. package/Column.js +64 -33
  24. package/Column.js.map +1 -1
  25. package/Ellipse.js +18 -18
  26. package/Ellipse.js.map +1 -1
  27. package/Events.js +21 -21
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.js +22 -22
  30. package/FillerGauge.js.map +1 -1
  31. package/Image.js +18 -18
  32. package/Image.js.map +1 -1
  33. package/Line.config.js +32 -14
  34. package/Line.config.js.map +1 -1
  35. package/Line.js +51 -33
  36. package/Line.js.map +1 -1
  37. package/LinkGraph.js +191 -191
  38. package/LinkGraph.js.map +1 -1
  39. package/Map.js +38 -30
  40. package/Map.js.map +1 -1
  41. package/Markdown.js +18 -18
  42. package/Markdown.js.map +1 -1
  43. package/MarkerGauge.js +23 -23
  44. package/MarkerGauge.js.map +1 -1
  45. package/ParallelCoordinates.js +20 -20
  46. package/ParallelCoordinates.js.map +1 -1
  47. package/Pie.js +19 -19
  48. package/Pie.js.map +1 -1
  49. package/Punchcard.js +30 -30
  50. package/Punchcard.js.map +1 -1
  51. package/Rectangle.js +18 -18
  52. package/Rectangle.js.map +1 -1
  53. package/Sankey.js +26 -26
  54. package/Sankey.js.map +1 -1
  55. package/Scatter.config.js +6 -3
  56. package/Scatter.config.js.map +1 -1
  57. package/Scatter.js +25 -22
  58. package/Scatter.js.map +1 -1
  59. package/SingleValue.js +46 -26
  60. package/SingleValue.js.map +1 -1
  61. package/SingleValueBasic.js +6 -6
  62. package/SingleValueBasic.js.map +1 -1
  63. package/SingleValueIcon.js +19 -19
  64. package/SingleValueIcon.js.map +1 -1
  65. package/SingleValueRadial.js +22 -22
  66. package/SingleValueRadial.js.map +1 -1
  67. package/Table.js +21 -21
  68. package/Table.js.map +1 -1
  69. package/common/withDashboardViz.js +2 -2
  70. package/package.json +10 -10
package/Area.config.js CHANGED
@@ -515,7 +515,8 @@ var AxesChartDataConfig = {
515
515
  option: 'y',
516
516
  editor: 'editor.columnMultiSelector',
517
517
  editorProps: {
518
- dataSourceKey: 'primary'
518
+ dataSourceKey: 'primary',
519
+ filterByTypes: ['number']
519
520
  }
520
521
  }], [{
521
522
  label: i18n_1._('Result limit'),
@@ -534,7 +535,8 @@ exports.AxesChartDataConfigBar = {
534
535
  option: 'y2',
535
536
  editor: 'editor.columnMultiSelector',
536
537
  editorProps: {
537
- dataSourceKey: 'primary'
538
+ dataSourceKey: 'primary',
539
+ filterByTypes: ['number']
538
540
  }
539
541
  }])
540
542
  };
@@ -552,7 +554,8 @@ exports.AxesChartDataConfigScatter = {
552
554
  option: 'y',
553
555
  editor: 'editor.columnSelector',
554
556
  editorProps: {
555
- dataSourceKey: 'primary'
557
+ dataSourceKey: 'primary',
558
+ filterByTypes: ['number']
556
559
  }
557
560
  }], [{
558
561
  label: i18n_1._('Category'),
@@ -1217,6 +1220,13 @@ exports.AxesChartDataDisplayLine = {
1217
1220
  value: 'minmax'
1218
1221
  }]
1219
1222
  }
1223
+ }], [{
1224
+ label: i18n_1._('Overlay fields'),
1225
+ option: 'overlayFields',
1226
+ editor: 'editor.columnMultiSelectionByFieldNameEditor',
1227
+ editorProps: {
1228
+ filterByTypes: ['number']
1229
+ }
1220
1230
  }], [{
1221
1231
  label: i18n_1._('Split series'),
1222
1232
  option: 'showSplitSeries',
@@ -1314,13 +1324,21 @@ var axesChartY2GridAndLabels = {
1314
1324
  option: 'y2AxisTitleVisibility',
1315
1325
  editor: 'editor.toggle'
1316
1326
  }], [{
1317
- label: i18n_1._('Axis title text'),
1327
+ label: i18n_1._('Axis title'),
1318
1328
  option: 'y2AxisTitleText',
1319
1329
  editor: 'editor.text',
1320
1330
  showEditor: function showEditor(_ref) {
1321
1331
  var options = _ref.options;
1322
1332
  return options.y2AxisTitleVisibility === 'show' || options.y2AxisTitleVisibility === undefined;
1323
1333
  }
1334
+ }], [{
1335
+ label: i18n_1._('Show overlays on the y2-axis'),
1336
+ option: 'showOverlayY2Axis',
1337
+ editor: 'editor.checkbox',
1338
+ showEditor: function showEditor(_ref2) {
1339
+ var options = _ref2.options;
1340
+ return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
1341
+ }
1324
1342
  }], [{
1325
1343
  label: i18n_1._('Scale'),
1326
1344
  option: 'y2AxisScale',
@@ -1354,16 +1372,16 @@ var axesChartY2GridAndLabels = {
1354
1372
  label: i18n_1._('Round axis labels'),
1355
1373
  option: 'showRoundedY2AxisLabels',
1356
1374
  editor: 'editor.checkbox',
1357
- showEditor: function showEditor(_ref2) {
1358
- var options = _ref2.options;
1375
+ showEditor: function showEditor(_ref3) {
1376
+ var options = _ref3.options;
1359
1377
  return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
1360
1378
  }
1361
1379
  }], [{
1362
1380
  label: i18n_1._('SI prefix abbreviation for labels'),
1363
1381
  option: 'y2AxisAbbreviation',
1364
1382
  editor: 'editor.checkbox',
1365
- showEditor: function showEditor(_ref3) {
1366
- var options = _ref3.options;
1383
+ showEditor: function showEditor(_ref4) {
1384
+ var options = _ref4.options;
1367
1385
  return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
1368
1386
  }
1369
1387
  }], [{
@@ -1411,16 +1429,16 @@ var axesChartY2GridAndLabels = {
1411
1429
  max: 10,
1412
1430
  step: 1
1413
1431
  },
1414
- showEditor: function showEditor(_ref4) {
1415
- var options = _ref4.options;
1432
+ showEditor: function showEditor(_ref5) {
1433
+ var options = _ref5.options;
1416
1434
  return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
1417
1435
  }
1418
1436
  }], [{
1419
1437
  label: i18n_1._('Major tick interval spacing'),
1420
1438
  option: 'y2AxisMajorTickInterval',
1421
1439
  editor: 'editor.number',
1422
- showEditor: function showEditor(_ref5) {
1423
- var options = _ref5.options;
1440
+ showEditor: function showEditor(_ref6) {
1441
+ var options = _ref6.options;
1424
1442
  return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
1425
1443
  }
1426
1444
  }], [{
@@ -1452,8 +1470,8 @@ var axesChartY2GridAndLabels = {
1452
1470
  max: 10,
1453
1471
  step: 1
1454
1472
  },
1455
- showEditor: function showEditor(_ref6) {
1456
- var options = _ref6.options;
1473
+ showEditor: function showEditor(_ref7) {
1474
+ var options = _ref7.options;
1457
1475
  return options.y2AxisMinorTickVisibility === 'show' || options.y2AxisMinorTickVisibility === 'auto' || options.y2AxisMinorTickVisibility === undefined;
1458
1476
  }
1459
1477
  }]]
@@ -1977,9 +1995,22 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
1977
1995
  step: 0.01
1978
1996
  }
1979
1997
  }], [{
1980
- label: i18n_1._('Show lines'),
1998
+ label: i18n_1._('Show area outlines'),
1981
1999
  option: 'showLines',
1982
2000
  editor: 'editor.checkbox'
2001
+ }], [{
2002
+ label: i18n_1._('Line width'),
2003
+ option: 'lineWidth',
2004
+ editor: 'editor.slider',
2005
+ editorProps: {
2006
+ min: 0.5,
2007
+ max: 8.0,
2008
+ step: 0.5
2009
+ },
2010
+ showEditor: function showEditor(_ref) {
2011
+ var options = _ref.options;
2012
+ return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
2013
+ }
1983
2014
  }], [{
1984
2015
  label: i18n_1._('Annotation colors'),
1985
2016
  option: 'annotationColor',
@@ -2013,8 +2044,8 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
2013
2044
  }],
2014
2045
  tooltip: i18n_1._('Legend mode must be "Standard" to configure legend display')
2015
2046
  },
2016
- isDisabled: function isDisabled(_ref) {
2017
- var options = _ref.options;
2047
+ isDisabled: function isDisabled(_ref2) {
2048
+ var options = _ref2.options;
2018
2049
  return options.legendMode === 'seriesCompare';
2019
2050
  }
2020
2051
  }], [{
@@ -2036,8 +2067,8 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
2036
2067
  value: 'ellipsisOff'
2037
2068
  }]
2038
2069
  },
2039
- showEditor: function showEditor(_ref2) {
2040
- var options = _ref2.options;
2070
+ showEditor: function showEditor(_ref3) {
2071
+ var options = _ref3.options;
2041
2072
  return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
2042
2073
  }
2043
2074
  }], [{
@@ -2053,8 +2084,8 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
2053
2084
  value: 'seriesCompare'
2054
2085
  }]
2055
2086
  },
2056
- showEditor: function showEditor(_ref3) {
2057
- var options = _ref3.options;
2087
+ showEditor: function showEditor(_ref4) {
2088
+ var options = _ref4.options;
2058
2089
  return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
2059
2090
  }
2060
2091
  }]]