@splunk/visualizations 26.0.0 → 26.1.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 (150) hide show
  1. package/Area.config.js +102 -18
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +618 -221
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +104 -20
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +624 -219
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +94 -20
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +606 -211
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +65 -14
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +550 -183
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +103 -18
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +637 -221
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +82 -17
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +425 -148
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +100 -18
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +752 -293
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +96 -27
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +759 -374
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +62 -18
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +419 -154
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +106 -22
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +631 -223
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +72 -22
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +632 -219
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +1082 -0
  46. package/Map.config.js +241 -97
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +1195 -595
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +70 -20
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +460 -195
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +79 -21
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +802 -411
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +72 -18
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +853 -484
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +75 -22
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +612 -212
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +81 -29
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +844 -379
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +85 -19
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +432 -152
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +84 -22
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +878 -342
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +96 -22
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +607 -212
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +94 -24
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +1182 -650
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +286 -225
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +92 -22
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +965 -506
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +99 -26
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +1167 -616
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +126 -67
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +73 -20
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +810 -322
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +107 -35
  103. package/common/Charting.js.map +1 -1
  104. package/common/ChartingApi.js +18 -7
  105. package/common/ChartingApi.js.map +1 -1
  106. package/common/EventsDoc.js +76 -22
  107. package/common/EventsDoc.js.map +1 -1
  108. package/common/GaugeMajorTicks.js +68 -58
  109. package/common/GaugeMajorTicks.js.map +1 -1
  110. package/common/GaugeValueMarker.js +43 -34
  111. package/common/GaugeValueMarker.js.map +1 -1
  112. package/common/OptionsDoc.js +156 -65
  113. package/common/OptionsDoc.js.map +1 -1
  114. package/common/OverviewDoc.js +33 -5
  115. package/common/OverviewDoc.js.map +1 -1
  116. package/common/SplunkVisualization.js +31 -4
  117. package/common/SplunkVisualization.js.map +1 -1
  118. package/common/SplunkVisualizationApi.js +8 -2
  119. package/common/SplunkVisualizationApi.js.map +1 -1
  120. package/common/ThemesDoc.js +27 -14
  121. package/common/ThemesDoc.js.map +1 -1
  122. package/common/chartingUtils.js +44 -12
  123. package/common/chartingUtils.js.map +1 -1
  124. package/common/docUtils.js +11 -1
  125. package/common/docUtils.js.map +1 -1
  126. package/common/gaugeUtils.js +173 -90
  127. package/common/gaugeUtils.js.map +1 -1
  128. package/common/shapeUtils.js +14 -2
  129. package/common/shapeUtils.js.map +1 -1
  130. package/common/utils/configUtils.js +49 -14
  131. package/common/utils/configUtils.js.map +1 -1
  132. package/common/utils/dataUtils.js +7 -2
  133. package/common/utils/dataUtils.js.map +1 -1
  134. package/common/utils/hocUtils.js +3 -1
  135. package/common/utils/hocUtils.js.map +1 -1
  136. package/common/utils/layoutUtils.js +1 -0
  137. package/common/utils/layoutUtils.js.map +1 -1
  138. package/common/utils/mapUtils.js +287 -127
  139. package/common/utils/mapUtils.js.map +1 -1
  140. package/common/utils/singleValueUtils.js +241 -196
  141. package/common/utils/singleValueUtils.js.map +1 -1
  142. package/common/utils/testHelper.js +9 -0
  143. package/common/utils/testHelper.js.map +1 -1
  144. package/common/utils/trellisUtils.js +61 -0
  145. package/common/utils/trellisUtils.js.map +1 -1
  146. package/common/utils/urlUtils.js +2 -0
  147. package/common/utils/urlUtils.js.map +1 -1
  148. package/common/withDashboardViz.js +274 -95
  149. package/common/withDashboardViz.js.map +1 -1
  150. package/package.json +16 -18
package/Scatter.config.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 = 73);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 74);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -136,11 +136,13 @@ module.exports = require("@splunk/visualization-icons");
136
136
  Object.defineProperty(exports, "__esModule", {
137
137
  value: true
138
138
  });
139
+
139
140
  var i18n_1 = __webpack_require__(0);
141
+
140
142
  var background = function background(_ref) {
141
143
  var label = _ref.label,
142
- themes = _ref.themes,
143
- labelPosition = _ref.labelPosition;
144
+ themes = _ref.themes,
145
+ labelPosition = _ref.labelPosition;
144
146
  return [{
145
147
  label: (0, i18n_1._)(label || 'Background'),
146
148
  option: 'backgroundColor',
@@ -151,6 +153,7 @@ var background = function background(_ref) {
151
153
  }
152
154
  }];
153
155
  };
156
+
154
157
  exports.default = background;
155
158
 
156
159
  /***/ }),
@@ -169,12 +172,16 @@ module.exports = require("@splunk/visualization-color-palettes");
169
172
 
170
173
 
171
174
  var _toConsumableArray = __webpack_require__(1);
175
+
172
176
  Object.defineProperty(exports, "__esModule", {
173
177
  value: true
174
178
  });
175
179
  exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
180
+
176
181
  var i18n_1 = __webpack_require__(0);
182
+
177
183
  var configUtils_1 = __webpack_require__(4);
184
+
178
185
  var AxesChartDataConfig = {
179
186
  label: (0, i18n_1._)('Data configurations'),
180
187
  layout: [[{
@@ -308,10 +315,15 @@ exports.default = AxesChartDataConfig;
308
315
  Object.defineProperty(exports, "__esModule", {
309
316
  value: true
310
317
  });
318
+
311
319
  var i18n_1 = __webpack_require__(0);
320
+
312
321
  var pick_1 = __webpack_require__(9);
322
+
313
323
  var variables_1 = __webpack_require__(10);
324
+
314
325
  var BackgroundColor_1 = __webpack_require__(13);
326
+
315
327
  var themes = {
316
328
  defaultBackgroundColor: function defaultBackgroundColor(props) {
317
329
  return (0, pick_1.default)({
@@ -350,7 +362,9 @@ exports.default = AxesChartColorAndStyle;
350
362
  Object.defineProperty(exports, "__esModule", {
351
363
  value: true
352
364
  });
365
+
353
366
  var i18n_1 = __webpack_require__(0);
367
+
354
368
  var AxesChartLegend = {
355
369
  label: (0, i18n_1._)('Legend'),
356
370
  layout: [[{
@@ -411,12 +425,16 @@ exports.default = AxesChartLegend;
411
425
 
412
426
 
413
427
  var _toConsumableArray = __webpack_require__(1);
428
+
414
429
  Object.defineProperty(exports, "__esModule", {
415
430
  value: true
416
431
  });
417
432
  exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
433
+
418
434
  var i18n_1 = __webpack_require__(0);
435
+
419
436
  var configUtils_1 = __webpack_require__(4);
437
+
420
438
  exports.AxesChartXGridAndLabelsCommon = {
421
439
  label: (0, i18n_1._)('X-axis grid and labels'),
422
440
  layout: [[{
@@ -605,8 +623,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
605
623
  label: (0, i18n_1._)('Axis line visibility'),
606
624
  option: 'xAxisLineVisibility',
607
625
  editor: 'editor.checkbox'
608
- }],
609
- // this option is disabled for bubble and scatter
626
+ }], // this option is disabled for bubble and scatter
610
627
  // [
611
628
  // {
612
629
  // label: _('Major gridlines'),
@@ -701,6 +718,7 @@ Object.defineProperty(exports, "__esModule", {
701
718
  });
702
719
  exports.VizBehavior = void 0;
703
720
  var VizBehavior;
721
+
704
722
  (function (VizBehavior) {
705
723
  /**
706
724
  * Dynamic Options Behavior.
@@ -720,6 +738,7 @@ var VizBehavior;
720
738
  * missing.
721
739
  * @type {string}
722
740
  */
741
+
723
742
  VizBehavior["PLACEHOLDER"] = "placeholder";
724
743
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
725
744
  VizBehavior["TRELLIS"] = "trellis";
@@ -736,7 +755,9 @@ var VizBehavior;
736
755
  Object.defineProperty(exports, "__esModule", {
737
756
  value: true
738
757
  });
758
+
739
759
  var i18n_1 = __webpack_require__(0);
760
+
740
761
  var AxesChartYGridAndLabels = {
741
762
  label: (0, i18n_1._)('Y-axis grid and labels'),
742
763
  layout: [[{
@@ -902,24 +923,33 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
902
923
 
903
924
 
904
925
  var _toConsumableArray = __webpack_require__(1);
926
+
905
927
  var _defineProperty = __webpack_require__(7);
928
+
906
929
  var __rest = this && this.__rest || function (s, e) {
907
930
  var t = {};
931
+
908
932
  for (var p in s) {
909
933
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
910
934
  }
935
+
911
936
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
912
937
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
913
938
  }
914
939
  return t;
915
940
  };
941
+
916
942
  Object.defineProperty(exports, "__esModule", {
917
943
  value: true
918
944
  });
919
945
  exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
946
+
920
947
  var lodash_1 = __webpack_require__(6);
948
+
921
949
  var schemaUtils_1 = __webpack_require__(3);
950
+
922
951
  var VizBehavior_1 = __webpack_require__(2);
952
+
923
953
  var dynamicOptionsDSLType = {
924
954
  type: 'string',
925
955
  pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
@@ -929,20 +959,22 @@ var dynamicOptionsDSLType = {
929
959
  * @param optionsSchema a visualization's options schema
930
960
  * @returns an updated options schema that additionally allows strings starting with > for each option
931
961
  */
962
+
932
963
  function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
933
964
  var enhancedOptionsSchema = {};
934
965
  Object.keys(optionsSchema).forEach(function (key) {
935
966
  var _a = optionsSchema[key],
936
- title = _a.title,
937
- description = _a.description,
938
- readOnly = _a.readOnly,
939
- writeOnly = _a.writeOnly,
940
- examples = _a.examples,
941
- defaultValue = _a.default,
942
- type = _a.type,
943
- properties = _a.properties,
944
- patternProperties = _a.patternProperties,
945
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
967
+ title = _a.title,
968
+ description = _a.description,
969
+ readOnly = _a.readOnly,
970
+ writeOnly = _a.writeOnly,
971
+ examples = _a.examples,
972
+ defaultValue = _a.default,
973
+ type = _a.type,
974
+ properties = _a.properties,
975
+ patternProperties = _a.patternProperties,
976
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
977
+
946
978
  var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
947
979
  title: title
948
980
  }), description !== undefined && {
@@ -956,12 +988,14 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
956
988
  }), defaultValue !== undefined && {
957
989
  default: defaultValue
958
990
  });
991
+
959
992
  if (type === 'object') {
960
993
  enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
961
994
  type: type
962
995
  }), properties && {
963
996
  properties: enhanceOptionsSchemaWithDynamicOptions(properties)
964
997
  });
998
+
965
999
  if (patternProperties) {
966
1000
  var enhancedPatternProperties = {};
967
1001
  Object.keys(patternProperties).forEach(function (opt) {
@@ -979,6 +1013,7 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
979
1013
  });
980
1014
  return enhancedOptionsSchema;
981
1015
  }
1016
+
982
1017
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
983
1018
  /**
984
1019
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
@@ -987,11 +1022,14 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
987
1022
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
988
1023
  * and containing `open: false` for all editor panels in editorConfig
989
1024
  */
1025
+
990
1026
  function enhanceConfig(vizConfig) {
991
1027
  var enhancedConfig = Object.assign({}, vizConfig);
1028
+
992
1029
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
993
1030
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
994
1031
  }
1032
+
995
1033
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
996
1034
  return Object.assign(Object.assign({}, config), {
997
1035
  open: config.open || false
@@ -999,6 +1037,7 @@ function enhanceConfig(vizConfig) {
999
1037
  });
1000
1038
  return enhancedConfig;
1001
1039
  }
1040
+
1002
1041
  exports.enhanceConfig = enhanceConfig;
1003
1042
  /**
1004
1043
  * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
@@ -1006,6 +1045,7 @@ exports.enhanceConfig = enhanceConfig;
1006
1045
  * @param vizConfig a Visualization Config
1007
1046
  * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
1008
1047
  */
1048
+
1009
1049
  function uncollapseEditorConfig(vizConfig) {
1010
1050
  var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
1011
1051
  editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
@@ -1015,13 +1055,16 @@ function uncollapseEditorConfig(vizConfig) {
1015
1055
  });
1016
1056
  return editorPanelUncollapsedConfig;
1017
1057
  }
1058
+
1018
1059
  exports.uncollapseEditorConfig = uncollapseEditorConfig;
1060
+
1019
1061
  function isDynamicOption(option) {
1020
1062
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
1021
1063
  }
1022
- exports.isDynamicOption = isDynamicOption;
1023
- // private helpers to improve readability of getInitialPreset
1064
+
1065
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
1024
1066
  // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
1067
+
1025
1068
  /**
1026
1069
  * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
1027
1070
  * if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
@@ -1030,6 +1073,7 @@ exports.isDynamicOption = isDynamicOption;
1030
1073
  *
1031
1074
  * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
1032
1075
  */
1076
+
1033
1077
  function hasCompatibleContexts(vizContext, presetContext) {
1034
1078
  var presetContextKeys = Object.keys(presetContext);
1035
1079
  return presetContextKeys.every(function (contextKey) {
@@ -1039,6 +1083,8 @@ function hasCompatibleContexts(vizContext, presetContext) {
1039
1083
  /**
1040
1084
  * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
1041
1085
  */
1086
+
1087
+
1042
1088
  function hasCompatibleOptions(vizOptions, presetOptions) {
1043
1089
  var presetOptionKeys = Object.keys(presetOptions);
1044
1090
  return presetOptionKeys.every(function (optionKey) {
@@ -1053,18 +1099,21 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
1053
1099
  * @param {Object} vizOptions - the current vizOptions definition
1054
1100
  * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
1055
1101
  */
1102
+
1103
+
1056
1104
  function getInitialPreset(vizContext, vizOptions, presets) {
1057
1105
  return presets.find(function (preset) {
1058
1106
  var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
1059
1107
  var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
1060
1108
  var presetContextKeys = Object.keys(presetContext);
1061
- var presetOptionKeys = Object.keys(presetOptions);
1062
- // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
1109
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
1063
1110
  // if not, then the preset is invalid in config.ts
1111
+
1064
1112
  if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
1065
1113
  return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
1066
1114
  });
1067
1115
  }
1116
+
1068
1117
  exports.getInitialPreset = getInitialPreset;
1069
1118
  /**
1070
1119
  * generates number precision values for a Select editor
@@ -1072,6 +1121,7 @@ exports.getInitialPreset = getInitialPreset;
1072
1121
  * @param {Number} numPrecisionValues - number of integer precision values to generate
1073
1122
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
1074
1123
  */
1124
+
1075
1125
  function generatePrecisionValues(numPrecisionValues) {
1076
1126
  return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
1077
1127
  return {
@@ -1080,6 +1130,7 @@ function generatePrecisionValues(numPrecisionValues) {
1080
1130
  };
1081
1131
  });
1082
1132
  }
1133
+
1083
1134
  exports.generatePrecisionValues = generatePrecisionValues;
1084
1135
  /**
1085
1136
  * insert layout in layout array, return a new layout array instead of updating the original
@@ -1089,12 +1140,15 @@ exports.generatePrecisionValues = generatePrecisionValues;
1089
1140
  * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
1090
1141
  * @returns {EditorLayoutConfig[][]} new editor layout with insertion
1091
1142
  */
1143
+
1092
1144
  var insertLayout = function insertLayout(layout, index) {
1093
1145
  for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1094
1146
  layoutItems[_key - 2] = arguments[_key];
1095
1147
  }
1148
+
1096
1149
  return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
1097
1150
  };
1151
+
1098
1152
  exports.insertLayout = insertLayout;
1099
1153
 
1100
1154
  /***/ }),
@@ -1113,39 +1167,55 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
1113
1167
 
1114
1168
  /***/ }),
1115
1169
 
1116
- /***/ 73:
1170
+ /***/ 74:
1117
1171
  /***/ (function(module, exports, __webpack_require__) {
1118
1172
 
1119
1173
  "use strict";
1120
1174
 
1121
1175
 
1122
1176
  var _toConsumableArray = __webpack_require__(1);
1177
+
1123
1178
  Object.defineProperty(exports, "__esModule", {
1124
1179
  value: true
1125
1180
  });
1126
1181
  exports.optionsSchema = void 0;
1182
+
1127
1183
  var visualization_icons_1 = __webpack_require__(12);
1184
+
1128
1185
  var placeholders_1 = __webpack_require__(11);
1186
+
1129
1187
  var pick_1 = __webpack_require__(9);
1188
+
1130
1189
  var variables_1 = __webpack_require__(10);
1190
+
1131
1191
  var schemaUtils_1 = __webpack_require__(3);
1192
+
1132
1193
  var visualization_color_palettes_1 = __webpack_require__(14);
1194
+
1133
1195
  var i18n_1 = __webpack_require__(0);
1196
+
1134
1197
  var VizBehavior_1 = __webpack_require__(2);
1198
+
1135
1199
  var VizCategory_1 = __webpack_require__(8);
1200
+
1136
1201
  var configUtils_1 = __webpack_require__(4);
1202
+
1137
1203
  var AxesChartDataConfig_1 = __webpack_require__(16);
1204
+
1138
1205
  var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1206
+
1139
1207
  var AxesChartColorAndStyle_1 = __webpack_require__(17);
1208
+
1140
1209
  var AxesChartLegend_1 = __webpack_require__(18);
1210
+
1141
1211
  var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1212
+
1142
1213
  var dataContract = {
1143
1214
  requiredDataSources: [{
1144
1215
  name: 'primary',
1145
1216
  description: 'DataSource that powers the visualization'
1146
1217
  }],
1147
- optionalDataSources: [
1148
- // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1218
+ optionalDataSources: [// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1149
1219
  // {
1150
1220
  // name: 'annotation',
1151
1221
  // description: 'DataSource that populates event annotations',
@@ -1482,16 +1552,19 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigScatter, {
1482
1552
  /**
1483
1553
  * visualization configuration
1484
1554
  */
1555
+
1485
1556
  var config = {
1486
1557
  /**
1487
1558
  * unique viz key
1488
1559
  */
1489
1560
  key: 'splunk.scatter',
1561
+
1490
1562
  /**
1491
1563
  * viz name
1492
1564
  */
1493
1565
  name: (0, i18n_1._)('Scatter'),
1494
1566
  category: VizCategory_1.VizCategory.CORRELATION,
1567
+
1495
1568
  /**
1496
1569
  * viz icon
1497
1570
  */
@@ -1528,6 +1601,7 @@ Object.defineProperty(exports, "__esModule", {
1528
1601
  });
1529
1602
  exports.VizCategory = void 0;
1530
1603
  var VizCategory;
1604
+
1531
1605
  (function (VizCategory) {
1532
1606
  VizCategory["SINGLE_VALUE"] = "Single Value";
1533
1607
  VizCategory["TRENDS"] = "Trends";