@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/Bar.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
  }]]
@@ -1927,6 +1945,19 @@ var themes = {
1927
1945
  var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataDisplay_1.AxesChartDataDisplayBar, {
1928
1946
  label: AxesChartColorAndStyle_1.default.label,
1929
1947
  layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
1948
+ label: i18n_1._('Line width'),
1949
+ option: 'lineWidth',
1950
+ editor: 'editor.slider',
1951
+ editorProps: {
1952
+ min: 0.5,
1953
+ max: 8.0,
1954
+ step: 0.5
1955
+ },
1956
+ showEditor: function showEditor(_ref) {
1957
+ var options = _ref.options;
1958
+ return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
1959
+ }
1960
+ }], [{
1930
1961
  label: i18n_1._('Series spacing'),
1931
1962
  option: 'seriesSpacing',
1932
1963
  editor: 'editor.number'
@@ -1945,8 +1976,8 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
1945
1976
  min: 1,
1946
1977
  max: 3
1947
1978
  },
1948
- showEditor: function showEditor(_ref) {
1949
- var options = _ref.options;
1979
+ showEditor: function showEditor(_ref2) {
1980
+ var options = _ref2.options;
1950
1981
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
1951
1982
  }
1952
1983
  }], [{
@@ -1982,8 +2013,8 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
1982
2013
  max: 10,
1983
2014
  step: 1
1984
2015
  },
1985
- showEditor: function showEditor(_ref2) {
1986
- var options = _ref2.options;
2016
+ showEditor: function showEditor(_ref3) {
2017
+ var options = _ref3.options;
1987
2018
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
1988
2019
  }
1989
2020
  }]])