@splunk/visualizations 24.5.1 → 24.6.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 (108) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_dynamic_color.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_geostats_by.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color_with_no_seriesColors.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_center_seattle.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
  10. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
  11. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
  14. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
  15. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Additional_Cases.png +0 -0
  16. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
  17. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  18. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  19. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
  20. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
  21. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  22. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  23. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  24. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  25. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_with_geostats_data_No_render.png +0 -0
  26. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
  27. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  28. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_By_Type_Custom.png +0 -0
  29. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Default.png +0 -0
  30. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Kitchen_Sink.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Single_Column.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Color_light_blue.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_No_Stripe.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Stripe.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table_With_No_Click.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Gradient.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Override.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Count_2.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Header_Colors.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Row_Colors.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Stripe.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_No_Stripe.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_Stripe.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Default.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Extra_Small.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Large.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Monospace.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Proportional.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Small.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage.png +0 -0
  58. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_100_no_paginator.png +0 -0
  59. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Invalid_Background_Color.png +0 -0
  60. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Multi_Value_Field.png +0 -0
  61. package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes.png +0 -0
  62. package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes_Row_Numbers.png +0 -0
  63. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_false.png +0 -0
  64. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.png +0 -0
  65. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Row_Numbers_true.png +0 -0
  66. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
  67. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
  68. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Width.png +0 -0
  69. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
  70. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Formatting.png +0 -0
  71. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Gradient.png +0 -0
  72. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
  73. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
  74. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Height.png +0 -0
  75. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Percentage.png +0 -0
  76. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Px.png +0 -0
  77. package/Area.js +2 -2
  78. package/Bar.js +2 -2
  79. package/Bubble.config.js +17 -17
  80. package/Bubble.config.js.map +1 -1
  81. package/Bubble.js +19 -19
  82. package/Bubble.js.map +1 -1
  83. package/ChoroplethSvg.js +2 -2
  84. package/Column.js +2 -2
  85. package/Ellipse.js +2 -2
  86. package/FillerGauge.js +2 -2
  87. package/Image.js +2 -2
  88. package/Line.js +2 -2
  89. package/LinkGraph.js +2 -2
  90. package/Map.js +25 -17
  91. package/Map.js.map +1 -1
  92. package/Markdown.js +2 -2
  93. package/MarkerGauge.js +2 -2
  94. package/ParallelCoordinates.js +2 -2
  95. package/Pie.js +2 -2
  96. package/Punchcard.js +2 -2
  97. package/Rectangle.js +2 -2
  98. package/Sankey.js +2 -2
  99. package/Scatter.js +2 -2
  100. package/SingleValue.js +2 -2
  101. package/SingleValueIcon.js +2 -2
  102. package/SingleValueRadial.js +2 -2
  103. package/Table.config.js +73 -24
  104. package/Table.config.js.map +1 -1
  105. package/Table.js +122 -32
  106. package/Table.js.map +1 -1
  107. package/common/withDashboardViz.js +2 -2
  108. package/package.json +12 -13
package/Table.js CHANGED
@@ -129,12 +129,13 @@ module.exports = require("@splunk/themes/variables");
129
129
  Object.defineProperty(exports, "__esModule", {
130
130
  value: true
131
131
  });
132
- exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
132
+ exports.validFontSizes = exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
133
133
  exports.validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'];
134
134
  exports.validSparklineTypes = ['line', 'area'];
135
135
  exports.validHeaderVisibilities = ['none', 'fixed', 'inline'];
136
136
  exports.validAlignments = ['left', 'center', 'right'];
137
137
  exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
138
+ exports.validFontSizes = ['extraSmall', 'small', 'default', 'large'];
138
139
 
139
140
  /***/ }),
140
141
 
@@ -220,7 +221,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
220
221
 
221
222
  return React.createElement(FixSizeItem, {
222
223
  "data-test": "fix-size-item",
223
- "data-splunk-visualization-version": "24.5.1 - edc4c958c",
224
+ "data-splunk-visualization-version": "24.6.0 - 539dff0ca",
224
225
  width: width,
225
226
  height: height,
226
227
  backgroundColor: backgroundColor
@@ -326,8 +327,14 @@ var computeVizProps = function computeVizProps(_a) {
326
327
 
327
328
  if (vizProps.onOptionsChange) {
328
329
  var handleColumnFormatChange = function handleColumnFormatChange(updatedColumnFormat) {
330
+ var cloneOfExistingColumnFormat = lodash_1.get(vizProps, 'options.columnFormat', {});
331
+ var keys = Object.keys(updatedColumnFormat);
332
+ var values = Object.values(updatedColumnFormat);
333
+ keys.forEach(function (key, index) {
334
+ lodash_1.set(cloneOfExistingColumnFormat, "".concat(key, ".width"), lodash_1.get(values[index], 'width'));
335
+ });
329
336
  vizProps.onOptionsChange({
330
- columnFormat: updatedColumnFormat
337
+ columnFormat: cloneOfExistingColumnFormat
331
338
  });
332
339
  };
333
340
 
@@ -823,12 +830,12 @@ var matchColorConfig = [{
823
830
  var optionsSchema = {
824
831
  backgroundColor: {
825
832
  default: '> themes.defaultBackgroundColor',
826
- description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
833
+ description: 'Specify the color for the background. You might use a data source to apply the color. The default for enterprise light is "#FFFFFF". The default for enterprise dark is "#000000". The default for prisma dark is "#0B0C0E".',
827
834
  pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
828
835
  type: 'string'
829
836
  },
830
837
  columnFormat: {
831
- description: 'Allows users to set column formatting for individual columns.',
838
+ description: 'Allows column formatting for individual columns.',
832
839
  type: 'object',
833
840
  patternProperties: {
834
841
  '.*': {
@@ -836,7 +843,7 @@ var optionsSchema = {
836
843
  type: 'object',
837
844
  properties: {
838
845
  align: {
839
- description: 'Alignment for each cell in the column. Valid alignments include "left", "center", and "right".',
846
+ description: 'Specify the alignment for each cell in a column. Valid alignments include "left", "center", and "right".',
840
847
  type: 'array',
841
848
  items: {
842
849
  type: 'string',
@@ -844,7 +851,7 @@ var optionsSchema = {
844
851
  }
845
852
  },
846
853
  cellTypes: {
847
- description: 'Cell renderer for each cell in the column. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
854
+ description: 'Specify how to render data in cells. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
848
855
  type: 'array',
849
856
  items: {
850
857
  type: 'string',
@@ -852,7 +859,7 @@ var optionsSchema = {
852
859
  }
853
860
  },
854
861
  data: {
855
- description: 'Array of datapoint to be displayed in the column rows.',
862
+ description: 'Specify data points to be displayed in the cells of a column.',
856
863
  type: 'array',
857
864
  items: {
858
865
  oneOf: [{
@@ -868,7 +875,7 @@ var optionsSchema = {
868
875
  }
869
876
  },
870
877
  rowBackgroundColors: {
871
- description: 'Array of colors for background color of each row of the column of the table.',
878
+ description: 'Specify a list of colors, in hexadecimal code, for the background color of each column of the table. For example, ["#2C333B", "32373D"].',
872
879
  type: 'array',
873
880
  items: {
874
881
  type: 'string',
@@ -876,7 +883,7 @@ var optionsSchema = {
876
883
  }
877
884
  },
878
885
  rowColors: {
879
- description: 'Array of colors for text color of each row of the column of the table.',
886
+ description: 'Specify a list of colors, in hexadecimal code, for the text color of the cells of a column. For example, ["#2C333B", "32373D"].',
880
887
  type: 'array',
881
888
  items: {
882
889
  type: 'string',
@@ -884,7 +891,7 @@ var optionsSchema = {
884
891
  }
885
892
  },
886
893
  sparklineAreaColors: {
887
- description: 'Array of colors for sparkline area color of each row of the column of the table.',
894
+ description: 'Specify a list of colors, in hexadecimal code, for the sparkline area of each column. For example, ["#2C333B", "32373D"].',
888
895
  type: 'array',
889
896
  items: {
890
897
  type: 'string',
@@ -892,7 +899,7 @@ var optionsSchema = {
892
899
  }
893
900
  },
894
901
  sparklineColors: {
895
- description: 'Array of colors for sparkline line color of each row of the column of the table.',
902
+ description: 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each column. For example, ["#2C333B", "32373D"].',
896
903
  type: 'array',
897
904
  items: {
898
905
  type: 'string',
@@ -900,7 +907,7 @@ var optionsSchema = {
900
907
  }
901
908
  },
902
909
  sparklineTypes: {
903
- description: 'Area or Line Sparkline. Valid sparkline types include "line", "area".',
910
+ description: 'Choose either area or line formatting for the Sparkline. Valid sparkline types include "line" and "area".',
904
911
  type: 'array',
905
912
  items: {
906
913
  type: 'string',
@@ -914,7 +921,7 @@ var optionsSchema = {
914
921
  enum: consts_1.validTextOverflows.concat()
915
922
  },
916
923
  width: {
917
- description: 'Controls how wide in pixels (where 1px = 1/96th of 1in) the column should be displayed.',
924
+ description: 'Controls how wide in pixels (where 1 px = 1/96th of 1 in) the column should be displayed.',
918
925
  type: 'number',
919
926
  minimum: 30
920
927
  }
@@ -927,9 +934,21 @@ var optionsSchema = {
927
934
  type: 'number',
928
935
  default: 10
929
936
  },
937
+ font: {
938
+ default: 'proportional',
939
+ description: 'Specify the font style to use for table content.',
940
+ type: 'string',
941
+ pattern: schemaUtils_1.getPattern(['proportional', 'monospace'])
942
+ },
943
+ fontSize: {
944
+ default: 'default',
945
+ description: 'Specify the font size to use for table content. Font sizes range from extra small (10px) to large (16px) with the default being 14px.',
946
+ type: 'string',
947
+ pattern: schemaUtils_1.getPattern(consts_1.validFontSizes)
948
+ },
930
949
  headers: {
931
950
  default: '> table | getField()',
932
- description: 'Array of headers to display on the table.',
951
+ description: "Specify an array of headers to display on the table. Though these can be statically listed, it's best to use the dynamic default, as it will return the fields of your search.",
933
952
  type: 'array',
934
953
  items: {
935
954
  type: 'string'
@@ -937,14 +956,14 @@ var optionsSchema = {
937
956
  },
938
957
  headerVisibility: {
939
958
  default: 'inline',
940
- description: 'Header visibility can be none, fixed (docked) or inline.',
959
+ description: 'Specify how to display the table header row.',
941
960
  pattern: schemaUtils_1.getPattern(consts_1.validHeaderVisibilities),
942
961
  enum: consts_1.validHeaderVisibilities.concat(),
943
962
  type: 'string'
944
963
  },
945
964
  paginateDataSourceKey: {
946
965
  default: 'primary',
947
- description: 'Use the specified datasource key for pagination and sorting.',
966
+ description: 'Specify the data source key for pagination and sorting.',
948
967
  type: 'string'
949
968
  },
950
969
  showInternalFields: {
@@ -983,7 +1002,7 @@ var optionsSchema = {
983
1002
  properties: {
984
1003
  align: {
985
1004
  default: '> table | type() | matchValue(tableAlignByType)',
986
- description: 'Alignment for each cell in the table. Valid alignments include "left", "center", and "right".',
1005
+ description: 'Specify alignment for each cell in the table. Valid alignments include "left", "center", and "right".',
987
1006
  type: 'array',
988
1007
  items: {
989
1008
  type: 'array',
@@ -995,7 +1014,7 @@ var optionsSchema = {
995
1014
  },
996
1015
  cellTypes: {
997
1016
  default: '> table | type() | matchValue(tableCellTypeByType)',
998
- description: 'Render the data in one of the supported cell type. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
1017
+ description: 'Specify how to render data in cells. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
999
1018
  type: 'array',
1000
1019
  items: {
1001
1020
  type: 'array',
@@ -1026,18 +1045,18 @@ var optionsSchema = {
1026
1045
  },
1027
1046
  headerBackgroundColor: {
1028
1047
  default: '> themes.defaultHeaderBackgroundColor',
1029
- description: 'Background color of table header.',
1048
+ description: 'Specify the table header background color using a hexadecimal code. For example, "#FFFFFF".',
1030
1049
  pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1031
1050
  type: 'string'
1032
1051
  },
1033
1052
  headerColor: {
1034
- description: 'Text color of the table header.',
1053
+ description: 'Specify the table header text color using a hexadecimal code. For example, "#FFFFFF".',
1035
1054
  pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1036
1055
  type: 'string'
1037
1056
  },
1038
1057
  rowBackgroundColors: {
1039
1058
  default: '> table | seriesByIndex(0) | pick(tableAltRowBackgroundColorsByTheme)',
1040
- description: 'Array of colors for background color of each row of the table.',
1059
+ description: 'Specify a list of colors, in hexadecimal code, for the background color of each row of the table. For example, ["#2C333B", "32373D"].',
1041
1060
  type: 'array',
1042
1061
  items: {
1043
1062
  type: 'array',
@@ -1048,7 +1067,7 @@ var optionsSchema = {
1048
1067
  }
1049
1068
  },
1050
1069
  rowColors: {
1051
- description: 'Array of colors for text color of each row of the table.',
1070
+ description: 'Specify a list of colors, in hexadecimal code, for the text color of each row of the table. For example, ["#2C333B", "32373D"].',
1052
1071
  type: 'array',
1053
1072
  items: {
1054
1073
  type: 'array',
@@ -1059,7 +1078,7 @@ var optionsSchema = {
1059
1078
  }
1060
1079
  },
1061
1080
  sparklineAreaColors: {
1062
- description: 'Array of colors for sparkline area of each row of the table.',
1081
+ description: 'Specify a list of colors, in hexadecimal code, for the sparkline area of each row of the table. For example, ["#2C333B", "32373D"].',
1063
1082
  type: 'array',
1064
1083
  items: {
1065
1084
  type: 'array',
@@ -1070,7 +1089,7 @@ var optionsSchema = {
1070
1089
  }
1071
1090
  },
1072
1091
  sparklineColors: {
1073
- description: 'Array of colors for sparkline line of each row of the table.',
1092
+ description: 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each row of the table. For example, ["#2C333B", "32373D"].',
1074
1093
  type: 'array',
1075
1094
  items: {
1076
1095
  type: 'array',
@@ -1081,7 +1100,7 @@ var optionsSchema = {
1081
1100
  }
1082
1101
  },
1083
1102
  sparklineTypes: {
1084
- description: 'Area or Line Sparkline. Valid sparkline types include "line", "area".',
1103
+ description: 'Choose either area or line formatting for the Sparkline.',
1085
1104
  type: 'array',
1086
1105
  items: {
1087
1106
  type: 'array',
@@ -1206,6 +1225,42 @@ var editorConfig = [{
1206
1225
  labelWidth: EDITOR_LABEL_WIDTH,
1207
1226
  palette: _toConsumableArray(backgroundColorPaletteSet)
1208
1227
  }
1228
+ }], [{
1229
+ option: 'font',
1230
+ label: i18n_1._('Font'),
1231
+ editor: 'editor.select',
1232
+ editorProps: {
1233
+ values: [{
1234
+ label: i18n_1._('Proportional (Default)'),
1235
+ value: 'proportional'
1236
+ }, {
1237
+ label: i18n_1._('Monospace'),
1238
+ value: 'monospace'
1239
+ }],
1240
+ labelPosition: 'top',
1241
+ labelWidth: EDITOR_LABEL_WIDTH
1242
+ }
1243
+ }], [{
1244
+ option: 'fontSize',
1245
+ label: i18n_1._('Font Size'),
1246
+ editor: 'editor.select',
1247
+ editorProps: {
1248
+ values: [{
1249
+ label: i18n_1._('Extra Small (font 10px, row 24px)'),
1250
+ value: 'extraSmall'
1251
+ }, {
1252
+ label: i18n_1._('Small (font 12px, row 24px)'),
1253
+ value: 'small'
1254
+ }, {
1255
+ label: i18n_1._('Default (font 14px, row 32px)'),
1256
+ value: 'default'
1257
+ }, {
1258
+ label: i18n_1._('Large (font 16px, row 36px)'),
1259
+ value: 'large'
1260
+ }],
1261
+ labelPosition: 'top',
1262
+ labelWidth: EDITOR_LABEL_WIDTH
1263
+ }
1209
1264
  }]]
1210
1265
  }, {
1211
1266
  label: i18n_1._('Column Formatting'),
@@ -1424,7 +1479,13 @@ var PAGINATOR_SPACING = 5;
1424
1479
  var SUITableContainer = styled_components_1.default.div.withConfig({
1425
1480
  displayName: "PureTable__SUITableContainer",
1426
1481
  componentId: "tovzjg-3"
1427
- })(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " & [data-fixed-column='true']{table-layout:", ";width:", ";}"], function (_ref) {
1482
+ })(["& *{font-family:", ";font-size:", ";line-height:", ";}box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " & [data-fixed-column='true']{table-layout:", ";width:", ";}"], function (props) {
1483
+ return props.font;
1484
+ }, function (props) {
1485
+ return props.fontSize;
1486
+ }, function (props) {
1487
+ return props.lineHeight;
1488
+ }, function (_ref) {
1428
1489
  var width = _ref.width,
1429
1490
  height = _ref.height,
1430
1491
  isPaging = _ref.isPaging,
@@ -1550,6 +1611,23 @@ var HeadCell = function HeadCell(_a) {
1550
1611
  }, props), value);
1551
1612
  };
1552
1613
 
1614
+ var fontMap = {
1615
+ proportional: 'Splunk Platform Sans',
1616
+ monospace: 'Splunk Platform Mono'
1617
+ };
1618
+ var fontSizeMap = {
1619
+ extraSmall: '10px',
1620
+ small: '12px',
1621
+ default: '14px',
1622
+ large: '16px'
1623
+ };
1624
+ var rowHeightMap = {
1625
+ extraSmall: '12px',
1626
+ small: '12px',
1627
+ default: '20px',
1628
+ large: '24px'
1629
+ };
1630
+
1553
1631
  var PureTable = function PureTable(props) {
1554
1632
  var count = props.count,
1555
1633
  width = props.width,
@@ -1570,7 +1648,9 @@ var PureTable = function PureTable(props) {
1570
1648
  onColumnFormatChange = props.onColumnFormatChange,
1571
1649
  columnFormat = props.columnFormat,
1572
1650
  mode = props.mode,
1573
- headerVisibility = props.headerVisibility;
1651
+ headerVisibility = props.headerVisibility,
1652
+ font = props.font,
1653
+ fontSize = props.fontSize;
1574
1654
 
1575
1655
  var _React$useState = React.useState(columnFormat),
1576
1656
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -1717,6 +1797,9 @@ var PureTable = function PureTable(props) {
1717
1797
  };
1718
1798
  };
1719
1799
 
1800
+ var fontMapped = fontMap[font] || fontMap.proportional;
1801
+ var fontSizeMapped = fontSizeMap[fontSize] || fontSizeMap.default;
1802
+ var rowHeightMapped = rowHeightMap[fontSize] || rowHeightMap.default;
1720
1803
  return React.createElement(VizTableContainer, {
1721
1804
  backgroundColor: backgroundColor,
1722
1805
  ref: containerRef
@@ -1725,7 +1808,10 @@ var PureTable = function PureTable(props) {
1725
1808
  height: height,
1726
1809
  isPaging: isPaging,
1727
1810
  headerStyle: tableHeader.style,
1728
- widthSet: widthSet
1811
+ widthSet: widthSet,
1812
+ font: fontMapped,
1813
+ fontSize: fontSizeMapped,
1814
+ lineHeight: rowHeightMapped
1729
1815
  }, React.createElement(Table_1.default, {
1730
1816
  headType: headerVisibility !== 'none' ? 'inline' : undefined,
1731
1817
  innerStyle: {
@@ -1849,7 +1935,9 @@ PureTable.propTypes = {
1849
1935
  }),
1850
1936
  theme: T.any,
1851
1937
  width: T.oneOfType([T.number]),
1852
- onColumnFormatChange: T.func
1938
+ onColumnFormatChange: T.func,
1939
+ font: T.string,
1940
+ fontSize: T.string
1853
1941
  };
1854
1942
  PureTable.defaultProps = {
1855
1943
  columnFormat: {},
@@ -1870,7 +1958,9 @@ PureTable.defaultProps = {
1870
1958
  tableFormat: {},
1871
1959
  theme: {},
1872
1960
  width: 300,
1873
- onColumnFormatChange: lodash_1.noop
1961
+ onColumnFormatChange: lodash_1.noop,
1962
+ font: fontMap.proportional,
1963
+ fontSize: fontSizeMap.default
1874
1964
  };
1875
1965
  PureTable.displayName = 'VizTable';
1876
1966
  exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable));
@@ -3327,7 +3417,7 @@ var Cover = styled_components_1.default.div.withConfig({
3327
3417
  componentId: "sc-1gsbnxb-0"
3328
3418
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3329
3419
  var Blocker = styled_components_1.default.div.attrs({
3330
- 'data-splunk-visualization-version': "24.5.1 - edc4c958c"
3420
+ 'data-splunk-visualization-version': "24.6.0 - 539dff0ca"
3331
3421
  }).withConfig({
3332
3422
  displayName: "withEditModeCover__Blocker",
3333
3423
  componentId: "sc-1gsbnxb-1"