@splunk/visualizations 26.2.1 → 26.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 (150) hide show
  1. package/Area.config.js +92 -595
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +296 -801
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +93 -562
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +299 -770
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +84 -483
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +286 -687
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +77 -202
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +272 -400
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +93 -600
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +299 -808
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +82 -200
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +233 -356
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +62 -283
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +326 -530
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +91 -220
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -401
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +61 -157
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +217 -327
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +92 -607
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +297 -814
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +75 -257
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +1755 -17415
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +6 -0
  46. package/Map.config.js +128 -1123
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +470 -782
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +62 -189
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +272 -401
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +138 -298
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +309 -470
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +72 -192
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +333 -442
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +77 -241
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +336 -471
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +72 -306
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +356 -583
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +211 -347
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +371 -509
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +72 -214
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +343 -475
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +86 -464
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +1118 -1493
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +124 -411
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +522 -789
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +73 -61
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +123 -380
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +508 -745
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +121 -385
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +1642 -1885
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +39 -39
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +82 -496
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +416 -825
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +37 -57
  103. package/common/Charting.js.map +1 -1
  104. package/common/DocExampleWithVizSandbox.js +21 -21
  105. package/common/DocExampleWithVizSandbox.js.map +1 -1
  106. package/common/EventsDoc.js +18 -18
  107. package/common/EventsDoc.js.map +1 -1
  108. package/common/GaugeMajorTicks.js +4 -4
  109. package/common/GaugeMajorTicks.js.map +1 -1
  110. package/common/GaugeValueMarker.js +2 -2
  111. package/common/GaugeValueMarker.js.map +1 -1
  112. package/common/OptionsDoc.js +4 -4
  113. package/common/OptionsDoc.js.map +1 -1
  114. package/common/OverviewDoc.js +39 -40
  115. package/common/OverviewDoc.js.map +1 -1
  116. package/common/SplunkVisualization.js +2 -2
  117. package/common/SplunkVisualization.js.map +1 -1
  118. package/common/SplunkVisualizationApi.js +2 -2
  119. package/common/SplunkVisualizationApi.js.map +1 -1
  120. package/common/ThemesDoc.js +19 -19
  121. package/common/ThemesDoc.js.map +1 -1
  122. package/common/chartingUtils.js +2 -2
  123. package/common/chartingUtils.js.map +1 -1
  124. package/common/gaugeUtils.js +10 -10
  125. package/common/gaugeUtils.js.map +1 -1
  126. package/common/shapeUtils.js +10 -10
  127. package/common/shapeUtils.js.map +1 -1
  128. package/common/utils/configUtils.js +25 -155
  129. package/common/utils/configUtils.js.map +1 -1
  130. package/common/utils/dataUtils.js +87 -105
  131. package/common/utils/dataUtils.js.map +1 -1
  132. package/common/utils/featureFlagUtils.js +4 -4
  133. package/common/utils/featureFlagUtils.js.map +1 -1
  134. package/common/utils/hocUtils.js +2 -2
  135. package/common/utils/hocUtils.js.map +1 -1
  136. package/common/utils/mapUtils.js +51 -54
  137. package/common/utils/mapUtils.js.map +1 -1
  138. package/common/utils/singleValueUtils.js +30 -18
  139. package/common/utils/singleValueUtils.js.map +1 -1
  140. package/common/utils/testHelper.js +7 -36
  141. package/common/utils/testHelper.js.map +1 -1
  142. package/common/utils/trellisUtils.js +7 -6
  143. package/common/utils/trellisUtils.js.map +1 -1
  144. package/common/utils/urlUtils.js +2 -2
  145. package/common/utils/urlUtils.js.map +1 -1
  146. package/common/withDashboardViz.js +93 -101
  147. package/common/withDashboardViz.js.map +1 -1
  148. package/package.json +48 -50
  149. package/common/utils/layoutUtils.js +0 -115
  150. package/common/utils/layoutUtils.js.map +0 -1
package/Map.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 = 432);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 420);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -95,25 +95,25 @@ module.exports =
95
95
  /***/ 0:
96
96
  /***/ (function(module, exports) {
97
97
 
98
- module.exports = require("react");
98
+ module.exports = require("prop-types");
99
99
 
100
100
  /***/ }),
101
101
 
102
102
  /***/ 1:
103
103
  /***/ (function(module, exports) {
104
104
 
105
- module.exports = require("prop-types");
105
+ module.exports = require("react");
106
106
 
107
107
  /***/ }),
108
108
 
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@babel/runtime/helpers/classCallCheck");
112
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
113
113
 
114
114
  /***/ }),
115
115
 
116
- /***/ 106:
116
+ /***/ 103:
117
117
  /***/ (function(module, exports) {
118
118
 
119
119
  module.exports = require("@splunk/visualization-encoding/utils/types");
@@ -123,38 +123,54 @@ module.exports = require("@splunk/visualization-encoding/utils/types");
123
123
  /***/ 11:
124
124
  /***/ (function(module, exports) {
125
125
 
126
- module.exports = require("@splunk/visualizations-shared/numberUtils");
126
+ module.exports = require("@splunk/visualizations-shared/Message");
127
+
128
+ /***/ }),
129
+
130
+ /***/ 112:
131
+ /***/ (function(module, exports) {
132
+
133
+ module.exports = require("d3-scale");
127
134
 
128
135
  /***/ }),
129
136
 
130
- /***/ 115:
137
+ /***/ 117:
138
+ /***/ (function(module, exports) {
139
+
140
+ module.exports = require("@splunk/react-ui/Button");
141
+
142
+ /***/ }),
143
+
144
+ /***/ 119:
131
145
  /***/ (function(module, exports, __webpack_require__) {
132
146
 
133
147
  "use strict";
134
148
 
135
149
 
136
- var _defineProperty = __webpack_require__(9);
150
+ var _defineProperty = __webpack_require__(12);
137
151
 
138
- var _slicedToArray = __webpack_require__(7);
152
+ var _slicedToArray = __webpack_require__(5);
139
153
 
140
- var _toConsumableArray = __webpack_require__(8);
154
+ var _toConsumableArray = __webpack_require__(6);
141
155
 
142
156
  Object.defineProperty(exports, "__esModule", {
143
157
  value: true
144
158
  });
145
- exports.formatMetadata = exports.compareBaseStyles = exports.getScaledOpacities = exports.getGlobalLayerBoundaries = exports.isValidLatLon = exports.bakeBubbleData = exports.sanitizeValues = exports.transposeArray = exports.matchBubbleSize = exports.getStaticColors = exports.getZoomLevelFromGeobin = exports.getZoomConstraintsFromTileConfig = exports.getMapStyle = exports.getTilePreset = exports.LAYER_TYPE = exports.DEFAULT_OPACITY = exports.MAX_BUBBLE_RADIUS = exports.MIN_BUBBLE_RADIUS = exports.MAP_STYLE_VERSION_NUMBER = exports.DEFAULT_SERIES_COLORS = exports.DEFAULT_CLUSTER_COLOR = exports.DEFAULT_RESULT_LIMIT = exports.MIN_LONGITUDE = exports.MAX_LONGITUDE = exports.MIN_LATITUDE = exports.MAX_LATITUDE = void 0;
159
+ exports.formatMetadata = exports.compareBaseStyles = exports.getScaledOpacities = exports.getGlobalLayerBoundaries = exports.isValidLatLon = exports.bakeBubbleData = exports.sanitizeValues = exports.transposeArray = exports.matchBubbleSize = exports.getStaticColors = exports.getZoomLevelFromGeobin = exports.getZoomConstraintsFromTileConfig = exports.getMapStyle = exports.getTilePreset = exports.DEFAULT_OPACITY = exports.MAX_BUBBLE_RADIUS = exports.MIN_BUBBLE_RADIUS = exports.MAP_STYLE_VERSION_NUMBER = exports.DEFAULT_SERIES_COLORS = exports.DEFAULT_CLUSTER_COLOR = exports.DEFAULT_RESULT_LIMIT = exports.MIN_LONGITUDE = exports.MAX_LONGITUDE = exports.MIN_LATITUDE = exports.MAX_LATITUDE = void 0;
146
160
 
147
- var lodash_1 = __webpack_require__(3);
161
+ var lodash_1 = __webpack_require__(2);
148
162
 
149
- var d3_scale_1 = __webpack_require__(116);
163
+ var d3_scale_1 = __webpack_require__(112);
150
164
 
151
- var chroma = __webpack_require__(181);
165
+ var chroma = __webpack_require__(176);
152
166
 
153
167
  var colorUtils_1 = __webpack_require__(15);
154
168
 
155
- var visualization_color_palettes_1 = __webpack_require__(73);
169
+ var visualization_color_palettes_1 = __webpack_require__(74);
170
+
171
+ var types_1 = __webpack_require__(103);
156
172
 
157
- var types_1 = __webpack_require__(106);
173
+ var visualization_schemas_1 = __webpack_require__(9);
158
174
 
159
175
  exports.MAX_LATITUDE = 90;
160
176
  exports.MIN_LATITUDE = -90;
@@ -174,13 +190,6 @@ exports.MAX_BUBBLE_RADIUS = 45.26; // 85px
174
190
  exports.DEFAULT_OPACITY = 0.8;
175
191
  var LONGITUDE = 'longitude';
176
192
  var LATITUDE = 'latitude';
177
- var LAYER_TYPE;
178
-
179
- (function (LAYER_TYPE) {
180
- LAYER_TYPE["Marker"] = "marker";
181
- LAYER_TYPE["Bubble"] = "bubble";
182
- LAYER_TYPE["Choropleth"] = "choropleth";
183
- })(LAYER_TYPE = exports.LAYER_TYPE || (exports.LAYER_TYPE = {}));
184
193
  /**
185
194
  * Construct a tile preset {key: config} by combining the default + custom tile configs
186
195
  * Also returns the default tile config for each theme - light/dark
@@ -190,7 +199,6 @@ var LAYER_TYPE;
190
199
  * @returns {Object} tile preset
191
200
  */
192
201
 
193
-
194
202
  var getTilePreset = function getTilePreset(_ref) {
195
203
  var _ref$defaultTileConfi = _ref.defaultTileConfig,
196
204
  defaultTileConfig = _ref$defaultTileConfi === void 0 ? [] : _ref$defaultTileConfi,
@@ -568,7 +576,7 @@ exports.isValidLatLon = isValidLatLon;
568
576
 
569
577
  var getLatOrLonCoordinates = function getLatOrLonCoordinates(layer, field) {
570
578
  var getClusterValues = function getClusterValues(clusterLayer) {
571
- return (0, lodash_1.get)(clusterLayer, field, []).slice(0, clusterLayer.type === LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
579
+ return (0, lodash_1.get)(clusterLayer, field, []).slice(0, clusterLayer.type === visualization_schemas_1.LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
572
580
  };
573
581
 
574
582
  var getChoroplethValues = function getChoroplethValues(choroplethLayer) {
@@ -581,7 +589,7 @@ var getLatOrLonCoordinates = function getLatOrLonCoordinates(layer, field) {
581
589
  });
582
590
  };
583
591
 
584
- return layer.type === LAYER_TYPE.Choropleth ? getChoroplethValues(layer) : getClusterValues(layer);
592
+ return layer.type === visualization_schemas_1.LAYER_TYPE.Choropleth ? getChoroplethValues(layer) : getClusterValues(layer);
585
593
  };
586
594
  /**
587
595
  * Returns the min and max LongLat pairs to determine the layer boundaries to fit all markers/bubbles
@@ -695,17 +703,10 @@ exports.formatMetadata = formatMetadata;
695
703
 
696
704
  /***/ }),
697
705
 
698
- /***/ 116:
699
- /***/ (function(module, exports) {
700
-
701
- module.exports = require("d3-scale");
702
-
703
- /***/ }),
704
-
705
706
  /***/ 12:
706
707
  /***/ (function(module, exports) {
707
708
 
708
- module.exports = require("@splunk/visualizations-shared/Message");
709
+ module.exports = require("@babel/runtime/helpers/defineProperty");
709
710
 
710
711
  /***/ }),
711
712
 
@@ -727,9 +728,9 @@ Object.defineProperty(exports, "__esModule", {
727
728
  });
728
729
  exports.downsampleDataSources = exports.calculateDownsamplingThreshold = exports.calculateThresholdOnRangeSelect = exports.isDownsamplingEnabledForViz = exports.convertToArrOfObjects = void 0;
729
730
 
730
- var numberUtils_1 = __webpack_require__(11);
731
+ var numberUtils_1 = __webpack_require__(10);
731
732
 
732
- var interfaces_1 = __webpack_require__(40); // TODO: utilize this fn in ParallelCoordinates
733
+ var interfaces_1 = __webpack_require__(39); // TODO: utilize this fn in ParallelCoordinates
733
734
 
734
735
 
735
736
  var convertToArrOfObjects = function convertToArrOfObjects(columns, fields) {
@@ -864,19 +865,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
864
865
  */
865
866
 
866
867
 
867
- var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
868
- // Splunk charting allows for numbers in formats such as negative hex that
868
+ var strictlyCoerceYColumn = function strictlyCoerceYColumn(column, options) {
869
+ var isNullCoercionEnabled = options.nullValueDisplay === 'zero'; // Splunk charting allows for numbers in formats such as negative hex that
869
870
  // Number() does not support and also allows loose coercion of hex numbers (but not other formats)
870
871
  // We want to identify columns which contain at least one value that can be loosely coerced
872
+
871
873
  var canLooselyCoerceSomeValues = column.findIndex(function (value) {
872
- return (0, numberUtils_1.startsWithNumber)("".concat(value));
874
+ return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
873
875
  }) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
874
876
 
875
877
  var coercedColumn = [];
876
878
  var canDownsampleColumn = !column.some(function (value) {
877
- var coercedValue = Number(value); // if it can't be parsed or isn't safe, fail
879
+ var coercedValue = Number(value);
880
+ var coerceValueToZero = isNullCoercionEnabled && value === null; // if it can't be parsed or isn't safe, fail
878
881
 
879
- if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number') {
882
+ if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number' && !coerceValueToZero) {
880
883
  return true;
881
884
  } // save value and continue to next
882
885
 
@@ -957,8 +960,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
957
960
  dataSources = _ref3.dataSources,
958
961
  selectChartEvent = _ref3.selectChartEvent,
959
962
  width = _ref3.width,
960
- xField = _ref3.xField,
961
- y2Fields = _ref3.y2Fields;
963
+ xField = _ref3.xField;
962
964
 
963
965
  var _a, _b, _c;
964
966
 
@@ -995,14 +997,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
995
997
  });
996
998
  var lastIndex = fullSeries.findIndex(function (x) {
997
999
  return downsampledSeries[endXIndex] === x;
998
- }); // For charts with categorical x-axis (charts with an xField that isn't _time), do not support
999
- // re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
1000
- // Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
1001
- // until SPL-259611 is fixed
1002
-
1003
- if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
1004
- return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
1005
- }
1000
+ });
1006
1001
 
1007
1002
  if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
1008
1003
  return (0, exports.calculateThresholdOnRangeSelect)({
@@ -1013,6 +1008,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
1013
1008
  });
1014
1009
  }
1015
1010
  } catch (e) {
1011
+ // eslint-disable-next-line no-console
1016
1012
  console.error('Error occurred while setting downsample threshold on range select event', e);
1017
1013
  }
1018
1014
 
@@ -1051,7 +1047,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
1051
1047
  */
1052
1048
 
1053
1049
 
1054
- var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
1050
+ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
1055
1051
  var xColumn = [];
1056
1052
  var yColumns = [];
1057
1053
  var canDownsample = !ds.data.fields.some(function (field, index) {
@@ -1065,7 +1061,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
1065
1061
  if (fieldName === xField) {
1066
1062
  xColumn = strictlyCoerceXColumn(column, fieldType);
1067
1063
  } else if (yFields.has(fieldName)) {
1068
- var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
1064
+ var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
1069
1065
  coercedColumn = _strictlyCoerceYColum.coercedColumn,
1070
1066
  canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
1071
1067
  canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
@@ -1155,7 +1151,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
1155
1151
  return dataSources;
1156
1152
  }
1157
1153
 
1158
- var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
1154
+ var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
1159
1155
  xColumn = _tryToCoerceAllDispla.xColumn,
1160
1156
  yColumns = _tryToCoerceAllDispla.yColumns;
1161
1157
 
@@ -1179,6 +1175,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
1179
1175
  return downsampledIndices.add(downsampleIndex);
1180
1176
  });
1181
1177
  } catch (e) {
1178
+ // eslint-disable-next-line no-console
1182
1179
  console.error("Error occurred while downsampling column ".concat(columnIndex), e);
1183
1180
  }
1184
1181
  }); // update data columns with downsampled columns
@@ -1191,26 +1188,19 @@ exports.downsampleDataSources = downsampleDataSources;
1191
1188
 
1192
1189
  /***/ }),
1193
1190
 
1194
- /***/ 15:
1195
- /***/ (function(module, exports) {
1196
-
1197
- module.exports = require("@splunk/visualizations-shared/colorUtils");
1198
-
1199
- /***/ }),
1200
-
1201
- /***/ 153:
1191
+ /***/ 149:
1202
1192
  /***/ (function(module, exports, __webpack_require__) {
1203
1193
 
1204
1194
  "use strict";
1205
1195
 
1206
1196
 
1207
- var _slicedToArray = __webpack_require__(7);
1197
+ var _slicedToArray = __webpack_require__(5);
1208
1198
 
1209
- var _defineProperty = __webpack_require__(9);
1199
+ var _defineProperty = __webpack_require__(12);
1210
1200
 
1211
- var _toConsumableArray = __webpack_require__(8);
1201
+ var _toConsumableArray = __webpack_require__(6);
1212
1202
 
1213
- var _taggedTemplateLiteral = __webpack_require__(81);
1203
+ var _taggedTemplateLiteral = __webpack_require__(78);
1214
1204
 
1215
1205
  var _templateObject;
1216
1206
 
@@ -1219,17 +1209,17 @@ Object.defineProperty(exports, "__esModule", {
1219
1209
  });
1220
1210
  exports.Bubble = exports.PieSegment = exports.GEO_LAT_AND_LONG_FIELD = exports.GEO_BOUND_PREFIX = void 0;
1221
1211
 
1222
- var React = __webpack_require__(0);
1212
+ var React = __webpack_require__(1);
1223
1213
 
1224
1214
  var styled_components_1 = __webpack_require__(4);
1225
1215
 
1226
- var lodash_1 = __webpack_require__(3);
1216
+ var lodash_1 = __webpack_require__(2);
1227
1217
 
1228
1218
  var colorUtils_1 = __webpack_require__(15);
1229
1219
 
1230
- var MapUtils_1 = __webpack_require__(115);
1220
+ var MapUtils_1 = __webpack_require__(119);
1231
1221
 
1232
- var MarkerWrapper_1 = __webpack_require__(154);
1222
+ var MarkerWrapper_1 = __webpack_require__(150);
1233
1223
 
1234
1224
  exports.GEO_BOUND_PREFIX = '_geo_bounds_';
1235
1225
  exports.GEO_LAT_AND_LONG_FIELD = ['_geo_long_field', '_geo_lat_field'];
@@ -1470,13 +1460,20 @@ exports.default = BubbleLayer;
1470
1460
 
1471
1461
  /***/ }),
1472
1462
 
1473
- /***/ 154:
1463
+ /***/ 15:
1464
+ /***/ (function(module, exports) {
1465
+
1466
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
1467
+
1468
+ /***/ }),
1469
+
1470
+ /***/ 150:
1474
1471
  /***/ (function(module, exports, __webpack_require__) {
1475
1472
 
1476
1473
  "use strict";
1477
1474
 
1478
1475
 
1479
- var _slicedToArray = __webpack_require__(7);
1476
+ var _slicedToArray = __webpack_require__(5);
1480
1477
 
1481
1478
  var __rest = this && this.__rest || function (s, e) {
1482
1479
  var t = {};
@@ -1495,11 +1492,11 @@ Object.defineProperty(exports, "__esModule", {
1495
1492
  value: true
1496
1493
  });
1497
1494
 
1498
- var maplibre_gl_1 = __webpack_require__(182);
1495
+ var maplibre_gl_1 = __webpack_require__(177);
1499
1496
 
1500
- var React = __webpack_require__(0);
1497
+ var React = __webpack_require__(1);
1501
1498
 
1502
- var Tooltip_1 = __webpack_require__(438);
1499
+ var Tooltip_1 = __webpack_require__(426);
1503
1500
 
1504
1501
  var MarkerWrapper = function MarkerWrapper(_a) {
1505
1502
  var longitude = _a.longitude,
@@ -1584,7 +1581,7 @@ exports.default = MarkerWrapper;
1584
1581
 
1585
1582
  /***/ }),
1586
1583
 
1587
- /***/ 155:
1584
+ /***/ 151:
1588
1585
  /***/ (function(module, exports) {
1589
1586
 
1590
1587
  module.exports = require("@splunk/visualization-encoding/utils/dsl");
@@ -1604,13 +1601,13 @@ module.exports = require("@splunk/visualization-encoding/Options");
1604
1601
  "use strict";
1605
1602
 
1606
1603
 
1607
- var _slicedToArray = __webpack_require__(7);
1604
+ var _slicedToArray = __webpack_require__(5);
1608
1605
 
1609
1606
  Object.defineProperty(exports, "__esModule", {
1610
1607
  value: true
1611
1608
  });
1612
1609
 
1613
- var React = __webpack_require__(0);
1610
+ var React = __webpack_require__(1);
1614
1611
 
1615
1612
  var styled_components_1 = __webpack_require__(4);
1616
1613
 
@@ -1618,7 +1615,7 @@ var style_1 = __webpack_require__(18);
1618
1615
 
1619
1616
  var colorUtils_1 = __webpack_require__(15);
1620
1617
 
1621
- var SizeAwareWrapper_1 = __webpack_require__(26);
1618
+ var SizeAwareWrapper_1 = __webpack_require__(25);
1622
1619
 
1623
1620
  var Item = styled_components_1.default.div.attrs(function (_ref) {
1624
1621
  var width = _ref.width;
@@ -1689,7 +1686,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
1689
1686
 
1690
1687
  return React.createElement(FixSizeItem, {
1691
1688
  "data-test": "fix-size-item",
1692
- "data-splunk-visualization-version": "26.2.1 - 714383dbb",
1689
+ "data-splunk-visualization-version": "26.4.0 - 04078274d",
1693
1690
  width: width,
1694
1691
  height: height,
1695
1692
  backgroundColor: backgroundColor
@@ -1711,47 +1708,40 @@ exports.default = withFixedSizeContainer;
1711
1708
 
1712
1709
  /***/ }),
1713
1710
 
1714
- /***/ 18:
1715
- /***/ (function(module, exports) {
1716
-
1717
- module.exports = require("@splunk/visualizations-shared/style");
1718
-
1719
- /***/ }),
1720
-
1721
- /***/ 181:
1711
+ /***/ 176:
1722
1712
  /***/ (function(module, exports) {
1723
1713
 
1724
1714
  module.exports = require("chroma-js");
1725
1715
 
1726
1716
  /***/ }),
1727
1717
 
1728
- /***/ 182:
1718
+ /***/ 177:
1729
1719
  /***/ (function(module, exports) {
1730
1720
 
1731
1721
  module.exports = require("maplibre-gl");
1732
1722
 
1733
1723
  /***/ }),
1734
1724
 
1735
- /***/ 183:
1725
+ /***/ 178:
1736
1726
  /***/ (function(module, exports, __webpack_require__) {
1737
1727
 
1738
1728
  "use strict";
1739
1729
 
1740
1730
 
1741
- var _slicedToArray = __webpack_require__(7);
1731
+ var _slicedToArray = __webpack_require__(5);
1742
1732
 
1743
1733
  Object.defineProperty(exports, "__esModule", {
1744
1734
  value: true
1745
1735
  });
1746
1736
  exports.Choropleth = exports.cleanupChoropleth = exports.compareChoropleth = exports.compareGeom = void 0;
1747
1737
 
1748
- var React = __webpack_require__(0);
1738
+ var React = __webpack_require__(1);
1749
1739
 
1750
- var lodash_1 = __webpack_require__(3);
1740
+ var lodash_1 = __webpack_require__(2);
1751
1741
 
1752
- var MapUtils_1 = __webpack_require__(115);
1742
+ var MapUtils_1 = __webpack_require__(119);
1753
1743
 
1754
- var MarkerWrapper_1 = __webpack_require__(154);
1744
+ var MarkerWrapper_1 = __webpack_require__(150);
1755
1745
 
1756
1746
  var getShapeId = function getShapeId(id) {
1757
1747
  return "shape-".concat(id);
@@ -1871,7 +1861,8 @@ exports.Choropleth = React.memo(function (_ref) {
1871
1861
  'fill-opacity': opacity,
1872
1862
  'fill-color': color
1873
1863
  }
1874
- });
1864
+ }); // needs to add a second layer to adjust the thickness of the line
1865
+ // see https://github.com/mapbox/mapbox-gl-js/issues/3018
1875
1866
 
1876
1867
  if (strokeColor !== 'transparent') {
1877
1868
  map.current.addLayer({
@@ -2005,7 +1996,21 @@ exports.default = ChoroplethLayer;
2005
1996
 
2006
1997
  /***/ }),
2007
1998
 
2008
- /***/ 19:
1999
+ /***/ 18:
2000
+ /***/ (function(module, exports) {
2001
+
2002
+ module.exports = require("@splunk/visualizations-shared/style");
2003
+
2004
+ /***/ }),
2005
+
2006
+ /***/ 2:
2007
+ /***/ (function(module, exports) {
2008
+
2009
+ module.exports = require("lodash");
2010
+
2011
+ /***/ }),
2012
+
2013
+ /***/ 20:
2009
2014
  /***/ (function(module, exports, __webpack_require__) {
2010
2015
 
2011
2016
  "use strict";
@@ -2014,29 +2019,21 @@ exports.default = ChoroplethLayer;
2014
2019
  Object.defineProperty(exports, "__esModule", {
2015
2020
  value: true
2016
2021
  });
2017
- exports.validOutputModes = exports.validSegmentationModes = exports.validSortDirs = void 0;
2022
+ exports.validOutputModes = exports.validSortDirs = void 0;
2018
2023
  exports.validSortDirs = ['asc', 'desc', 'none'];
2019
- exports.validSegmentationModes = ['none', 'inner'];
2020
2024
  exports.validOutputModes = ['json_cols', 'json'];
2021
2025
 
2022
2026
  /***/ }),
2023
2027
 
2024
- /***/ 2:
2025
- /***/ (function(module, exports) {
2026
-
2027
- module.exports = require("@splunk/ui-utils/i18n");
2028
-
2029
- /***/ }),
2030
-
2031
2028
  /***/ 21:
2032
2029
  /***/ (function(module, exports, __webpack_require__) {
2033
2030
 
2034
2031
  "use strict";
2035
2032
 
2036
2033
 
2037
- var _classCallCheck = __webpack_require__(10);
2034
+ var _classCallCheck = __webpack_require__(8);
2038
2035
 
2039
- var _createClass = __webpack_require__(25);
2036
+ var _createClass = __webpack_require__(24);
2040
2037
 
2041
2038
  Object.defineProperty(exports, "__esModule", {
2042
2039
  value: true
@@ -2131,123 +2128,41 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
2131
2128
  /***/ 24:
2132
2129
  /***/ (function(module, exports) {
2133
2130
 
2134
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
2135
-
2136
- /***/ }),
2137
-
2138
- /***/ 25:
2139
- /***/ (function(module, exports) {
2140
-
2141
2131
  module.exports = require("@babel/runtime/helpers/createClass");
2142
2132
 
2143
2133
  /***/ }),
2144
2134
 
2145
- /***/ 26:
2135
+ /***/ 25:
2146
2136
  /***/ (function(module, exports) {
2147
2137
 
2148
2138
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
2149
2139
 
2150
2140
  /***/ }),
2151
2141
 
2152
- /***/ 27:
2142
+ /***/ 26:
2153
2143
  /***/ (function(module, exports, __webpack_require__) {
2154
2144
 
2155
2145
  "use strict";
2156
2146
 
2157
2147
 
2158
- var _toConsumableArray = __webpack_require__(8);
2159
-
2160
- var _defineProperty = __webpack_require__(9);
2161
-
2162
- var __rest = this && this.__rest || function (s, e) {
2163
- var t = {};
2164
-
2165
- for (var p in s) {
2166
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
2167
- }
2168
-
2169
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2170
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
2171
- }
2172
- return t;
2173
- };
2148
+ var _toConsumableArray = __webpack_require__(6);
2174
2149
 
2175
2150
  Object.defineProperty(exports, "__esModule", {
2176
2151
  value: true
2177
2152
  });
2178
- exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
2179
-
2180
- var lodash_1 = __webpack_require__(3);
2181
-
2182
- var schemaUtils_1 = __webpack_require__(24);
2183
-
2184
- var VizBehavior_1 = __webpack_require__(6);
2153
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
2185
2154
 
2186
- var dynamicOptionsDSLType = {
2187
- type: 'string',
2188
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
2189
- };
2190
- /**
2191
- * Helper function to extend an options schema with dynamic options DSL
2192
- * @param optionsSchema a visualization's options schema
2193
- * @returns an updated options schema that additionally allows strings starting with > for each option
2194
- */
2155
+ var lodash_1 = __webpack_require__(2); // included for backwards compatibility
2195
2156
 
2196
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
2197
- var enhancedOptionsSchema = {};
2198
- Object.keys(optionsSchema).forEach(function (key) {
2199
- var _a = optionsSchema[key],
2200
- title = _a.title,
2201
- description = _a.description,
2202
- readOnly = _a.readOnly,
2203
- writeOnly = _a.writeOnly,
2204
- examples = _a.examples,
2205
- defaultValue = _a.default,
2206
- type = _a.type,
2207
- properties = _a.properties,
2208
- patternProperties = _a.patternProperties,
2209
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
2210
-
2211
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
2212
- title: title
2213
- }), description !== undefined && {
2214
- description: description
2215
- }), readOnly !== undefined && {
2216
- readOnly: readOnly
2217
- }), writeOnly !== undefined && {
2218
- writeOnly: writeOnly
2219
- }), examples !== undefined && {
2220
- examples: examples
2221
- }), defaultValue !== undefined && {
2222
- default: defaultValue
2223
- });
2224
2157
 
2225
- if (type === 'object') {
2226
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
2227
- type: type
2228
- }), properties && {
2229
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
2230
- });
2158
+ var visualization_schemas_1 = __webpack_require__(9);
2231
2159
 
2232
- if (patternProperties) {
2233
- var enhancedPatternProperties = {};
2234
- Object.keys(patternProperties).forEach(function (opt) {
2235
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
2236
- });
2237
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
2238
- }
2239
- } else {
2240
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
2241
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
2242
- type: type
2243
- }), remainingSchemaEntry), dynamicOptionsDSLType]
2244
- });
2245
- }
2246
- });
2247
- return enhancedOptionsSchema;
2248
- }
2249
-
2250
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
2160
+ Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
2161
+ enumerable: true,
2162
+ get: function get() {
2163
+ return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
2164
+ }
2165
+ });
2251
2166
  /**
2252
2167
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
2253
2168
  * this function also collapse all editor panels
@@ -2258,11 +2173,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
2258
2173
 
2259
2174
  function enhanceConfig(vizConfig) {
2260
2175
  var enhancedConfig = Object.assign({}, vizConfig);
2261
-
2262
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
2263
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
2264
- }
2265
-
2266
2176
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
2267
2177
  return Object.assign(Object.assign({}, config), {
2268
2178
  open: config.open || false
@@ -2386,7 +2296,7 @@ exports.insertLayout = insertLayout;
2386
2296
 
2387
2297
  /***/ }),
2388
2298
 
2389
- /***/ 28:
2299
+ /***/ 27:
2390
2300
  /***/ (function(module, exports) {
2391
2301
 
2392
2302
  module.exports = require("@splunk/visualization-context/FeatureFlagContext");
@@ -2396,25 +2306,25 @@ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
2396
2306
  /***/ 3:
2397
2307
  /***/ (function(module, exports) {
2398
2308
 
2399
- module.exports = require("lodash");
2309
+ module.exports = require("@splunk/ui-utils/i18n");
2400
2310
 
2401
2311
  /***/ }),
2402
2312
 
2403
- /***/ 31:
2313
+ /***/ 30:
2404
2314
  /***/ (function(module, exports) {
2405
2315
 
2406
2316
  module.exports = require("@splunk/ui-utils/id");
2407
2317
 
2408
2318
  /***/ }),
2409
2319
 
2410
- /***/ 32:
2320
+ /***/ 31:
2411
2321
  /***/ (function(module, exports) {
2412
2322
 
2413
2323
  module.exports = require("@splunk/visualization-context/TimezoneContext");
2414
2324
 
2415
2325
  /***/ }),
2416
2326
 
2417
- /***/ 33:
2327
+ /***/ 32:
2418
2328
  /***/ (function(module, exports, __webpack_require__) {
2419
2329
 
2420
2330
  "use strict";
@@ -2424,7 +2334,7 @@ Object.defineProperty(exports, "__esModule", {
2424
2334
  value: true
2425
2335
  });
2426
2336
 
2427
- var react_1 = __webpack_require__(0);
2337
+ var react_1 = __webpack_require__(1);
2428
2338
 
2429
2339
  function usePrevious(value) {
2430
2340
  var ref = (0, react_1.useRef)();
@@ -2438,21 +2348,21 @@ exports.default = usePrevious;
2438
2348
 
2439
2349
  /***/ }),
2440
2350
 
2441
- /***/ 34:
2351
+ /***/ 33:
2442
2352
  /***/ (function(module, exports) {
2443
2353
 
2444
2354
  module.exports = require("@splunk/visualizations-shared/hocUtils");
2445
2355
 
2446
2356
  /***/ }),
2447
2357
 
2448
- /***/ 35:
2358
+ /***/ 34:
2449
2359
  /***/ (function(module, exports) {
2450
2360
 
2451
2361
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
2452
2362
 
2453
2363
  /***/ }),
2454
2364
 
2455
- /***/ 37:
2365
+ /***/ 36:
2456
2366
  /***/ (function(module, exports, __webpack_require__) {
2457
2367
 
2458
2368
  "use strict";
@@ -2463,15 +2373,15 @@ Object.defineProperty(exports, "__esModule", {
2463
2373
  });
2464
2374
  exports.shouldShowIconPlaceholder = void 0;
2465
2375
 
2466
- var React = __webpack_require__(0);
2376
+ var React = __webpack_require__(1);
2467
2377
 
2468
- var T = __webpack_require__(1);
2378
+ var T = __webpack_require__(0);
2469
2379
 
2470
- var lodash_1 = __webpack_require__(3);
2380
+ var lodash_1 = __webpack_require__(2);
2471
2381
 
2472
- var i18n_1 = __webpack_require__(2);
2382
+ var i18n_1 = __webpack_require__(3);
2473
2383
 
2474
- var Message_1 = __webpack_require__(12);
2384
+ var Message_1 = __webpack_require__(11);
2475
2385
 
2476
2386
  var FixedSizeContainer_1 = __webpack_require__(17);
2477
2387
  /**
@@ -2545,24 +2455,24 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
2545
2455
 
2546
2456
  /***/ }),
2547
2457
 
2548
- /***/ 38:
2458
+ /***/ 37:
2549
2459
  /***/ (function(module, exports, __webpack_require__) {
2550
2460
 
2551
2461
  "use strict";
2552
2462
 
2553
2463
 
2554
- var _defineProperty = __webpack_require__(9);
2464
+ var _defineProperty = __webpack_require__(12);
2555
2465
 
2556
2466
  Object.defineProperty(exports, "__esModule", {
2557
2467
  value: true
2558
2468
  });
2559
2469
  exports.getSortingParams = exports.SortParamsPropTypes = void 0;
2560
2470
 
2561
- var T = __webpack_require__(1);
2471
+ var T = __webpack_require__(0);
2562
2472
 
2563
- var lodash_1 = __webpack_require__(3);
2473
+ var lodash_1 = __webpack_require__(2);
2564
2474
 
2565
- var DataSource_1 = __webpack_require__(19);
2475
+ var DataSource_1 = __webpack_require__(20);
2566
2476
 
2567
2477
  exports.SortParamsPropTypes = T.shape({
2568
2478
  currentSortKey: T.string,
@@ -2616,7 +2526,7 @@ exports.getSortingParams = getSortingParams;
2616
2526
 
2617
2527
  /***/ }),
2618
2528
 
2619
- /***/ 39:
2529
+ /***/ 38:
2620
2530
  /***/ (function(module, exports, __webpack_require__) {
2621
2531
 
2622
2532
  "use strict";
@@ -2627,9 +2537,9 @@ Object.defineProperty(exports, "__esModule", {
2627
2537
  });
2628
2538
  exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
2629
2539
 
2630
- var T = __webpack_require__(1);
2540
+ var T = __webpack_require__(0);
2631
2541
 
2632
- var lodash_1 = __webpack_require__(3);
2542
+ var lodash_1 = __webpack_require__(2);
2633
2543
 
2634
2544
  exports.PaginatorParamsPropTypes = T.shape({
2635
2545
  isPaging: T.bool,
@@ -2681,14 +2591,7 @@ exports.getPaginationParams = getPaginationParams;
2681
2591
 
2682
2592
  /***/ }),
2683
2593
 
2684
- /***/ 4:
2685
- /***/ (function(module, exports) {
2686
-
2687
- module.exports = require("styled-components");
2688
-
2689
- /***/ }),
2690
-
2691
- /***/ 40:
2594
+ /***/ 39:
2692
2595
  /***/ (function(module, exports, __webpack_require__) {
2693
2596
 
2694
2597
  "use strict";
@@ -2723,11 +2626,13 @@ Object.defineProperty(exports, "__esModule", {
2723
2626
  value: true
2724
2627
  });
2725
2628
 
2629
+ __exportStar(__webpack_require__(40), exports);
2630
+
2726
2631
  __exportStar(__webpack_require__(41), exports);
2727
2632
 
2728
- __exportStar(__webpack_require__(42), exports);
2633
+ __exportStar(__webpack_require__(20), exports);
2729
2634
 
2730
- __exportStar(__webpack_require__(19), exports);
2635
+ __exportStar(__webpack_require__(42), exports);
2731
2636
 
2732
2637
  __exportStar(__webpack_require__(43), exports);
2733
2638
 
@@ -2739,16 +2644,16 @@ __exportStar(__webpack_require__(46), exports);
2739
2644
 
2740
2645
  __exportStar(__webpack_require__(47), exports);
2741
2646
 
2742
- __exportStar(__webpack_require__(48), exports);
2743
-
2744
- __exportStar(__webpack_require__(49), exports);
2745
-
2746
2647
  __exportStar(__webpack_require__(21), exports);
2747
2648
 
2748
- __exportStar(__webpack_require__(6), exports);
2649
+ __exportStar(__webpack_require__(7), exports);
2749
2650
 
2750
2651
  __exportStar(__webpack_require__(22), exports);
2751
2652
 
2653
+ __exportStar(__webpack_require__(48), exports);
2654
+
2655
+ __exportStar(__webpack_require__(49), exports);
2656
+
2752
2657
  __exportStar(__webpack_require__(50), exports);
2753
2658
 
2754
2659
  __exportStar(__webpack_require__(51), exports);
@@ -2757,13 +2662,16 @@ __exportStar(__webpack_require__(52), exports);
2757
2662
 
2758
2663
  __exportStar(__webpack_require__(53), exports);
2759
2664
 
2760
- __exportStar(__webpack_require__(54), exports);
2665
+ /***/ }),
2666
+
2667
+ /***/ 4:
2668
+ /***/ (function(module, exports) {
2761
2669
 
2762
- __exportStar(__webpack_require__(55), exports);
2670
+ module.exports = require("styled-components");
2763
2671
 
2764
2672
  /***/ }),
2765
2673
 
2766
- /***/ 41:
2674
+ /***/ 40:
2767
2675
  /***/ (function(module, exports, __webpack_require__) {
2768
2676
 
2769
2677
  "use strict";
@@ -2775,7 +2683,7 @@ Object.defineProperty(exports, "__esModule", {
2775
2683
 
2776
2684
  /***/ }),
2777
2685
 
2778
- /***/ 42:
2686
+ /***/ 41:
2779
2687
  /***/ (function(module, exports, __webpack_require__) {
2780
2688
 
2781
2689
  "use strict";
@@ -2790,7 +2698,7 @@ Object.defineProperty(exports, "__esModule", {
2790
2698
 
2791
2699
  /***/ }),
2792
2700
 
2793
- /***/ 43:
2701
+ /***/ 42:
2794
2702
  /***/ (function(module, exports, __webpack_require__) {
2795
2703
 
2796
2704
  "use strict";
@@ -2802,7 +2710,7 @@ Object.defineProperty(exports, "__esModule", {
2802
2710
 
2803
2711
  /***/ }),
2804
2712
 
2805
- /***/ 432:
2713
+ /***/ 420:
2806
2714
  /***/ (function(module, exports, __webpack_require__) {
2807
2715
 
2808
2716
  "use strict";
@@ -2827,27 +2735,27 @@ Object.defineProperty(exports, "__esModule", {
2827
2735
  exports.PureMap = exports.config = exports.themes = exports.useIconPlaceholder = exports.computeVizProps = void 0;
2828
2736
  /* eslint-disable no-sequences */
2829
2737
 
2830
- var React = __webpack_require__(0);
2738
+ var React = __webpack_require__(1);
2831
2739
 
2832
2740
  var colorUtils_1 = __webpack_require__(15);
2833
2741
 
2834
- var hocUtils_1 = __webpack_require__(34);
2742
+ var hocUtils_1 = __webpack_require__(33);
2835
2743
 
2836
- var JSONSchemaUtils_1 = __webpack_require__(35);
2744
+ var JSONSchemaUtils_1 = __webpack_require__(34);
2837
2745
 
2838
- var PureMap_1 = __webpack_require__(433);
2746
+ var PureMap_1 = __webpack_require__(421);
2839
2747
 
2840
2748
  exports.PureMap = PureMap_1.default;
2841
2749
 
2842
- var config_1 = __webpack_require__(443);
2750
+ var config_1 = __webpack_require__(431);
2843
2751
 
2844
2752
  exports.config = config_1.default;
2845
2753
 
2846
- var withDashboardViz_1 = __webpack_require__(56);
2754
+ var withDashboardViz_1 = __webpack_require__(54);
2847
2755
 
2848
- var mapUtils_1 = __webpack_require__(444);
2756
+ var mapUtils_1 = __webpack_require__(432);
2849
2757
 
2850
- var BubbleLayer_1 = __webpack_require__(153);
2758
+ var BubbleLayer_1 = __webpack_require__(149);
2851
2759
 
2852
2760
  var dataUtils_1 = __webpack_require__(14);
2853
2761
 
@@ -3069,44 +2977,54 @@ exports.default = Map;
3069
2977
 
3070
2978
  /***/ }),
3071
2979
 
3072
- /***/ 433:
2980
+ /***/ 421:
3073
2981
  /***/ (function(module, exports, __webpack_require__) {
3074
2982
 
3075
2983
  "use strict";
3076
2984
 
3077
2985
 
3078
- var _slicedToArray = __webpack_require__(7);
2986
+ var _slicedToArray = __webpack_require__(5);
2987
+
2988
+ var _taggedTemplateLiteral = __webpack_require__(78);
2989
+
2990
+ var _templateObject;
3079
2991
 
3080
2992
  Object.defineProperty(exports, "__esModule", {
3081
2993
  value: true
3082
2994
  });
3083
2995
  exports.isLatLng = exports.formatColor = exports.DEFAULT_ZOOM = exports.DEFAULT_SHOW_BASELAYER = exports.DEFAULT_SHOW_ZOOM_CONTROLS = exports.DEFAULT_SHOW_SCALE = exports.DEFAULT_SCALE_UNIT = exports.DEFAULT_CONTROL_FOREGROUND_COLOR = exports.DEFAULT_CONTROL_BACKGROUND_COLOR = exports.DEFAULT_CENTER = void 0;
3084
2996
 
3085
- var React = __webpack_require__(0);
2997
+ var React = __webpack_require__(1);
2998
+
2999
+ var styled_components_1 = __webpack_require__(4);
3000
+
3001
+ var lodash_1 = __webpack_require__(2);
3086
3002
 
3087
- var lodash_1 = __webpack_require__(3);
3003
+ var react_1 = __webpack_require__(1);
3088
3004
 
3089
- var react_1 = __webpack_require__(0);
3005
+ var T = __webpack_require__(0);
3090
3006
 
3091
- var T = __webpack_require__(1);
3007
+ var chroma = __webpack_require__(176);
3092
3008
 
3093
- var chroma = __webpack_require__(181);
3009
+ var maplibre_gl_1 = __webpack_require__(177);
3094
3010
 
3095
- var maplibre_gl_1 = __webpack_require__(182);
3011
+ var i18n_1 = __webpack_require__(3);
3096
3012
 
3097
- var i18n_1 = __webpack_require__(2);
3013
+ var Button_1 = __webpack_require__(117);
3098
3014
 
3099
- var MapContext_1 = __webpack_require__(434);
3015
+ var MapContext_1 = __webpack_require__(422);
3100
3016
 
3101
- var PureMapContainer_1 = __webpack_require__(435);
3017
+ var visualization_schemas_1 = __webpack_require__(9);
3102
3018
 
3103
- var MapUtils_1 = __webpack_require__(115);
3019
+ var PureMapContainer_1 = __webpack_require__(423);
3104
3020
 
3105
- var ClusterLayer_1 = __webpack_require__(437);
3021
+ var MapUtils_1 = __webpack_require__(119);
3106
3022
 
3107
- var ChoroplethLayer_1 = __webpack_require__(183);
3023
+ var ClusterLayer_1 = __webpack_require__(425);
3108
3024
 
3109
- var LocalChoroplethLayer_1 = __webpack_require__(440);
3025
+ var ChoroplethLayer_1 = __webpack_require__(178);
3026
+
3027
+ var LocalChoroplethLayer_1 = __webpack_require__(428);
3110
3028
 
3111
3029
  exports.DEFAULT_CENTER = [0, 0];
3112
3030
  exports.DEFAULT_CONTROL_BACKGROUND_COLOR = '#2b3033';
@@ -3126,6 +3044,15 @@ var formatColor = function formatColor(color) {
3126
3044
  };
3127
3045
 
3128
3046
  exports.formatColor = formatColor;
3047
+ var StyledFitToDataButton = (0, styled_components_1.default)(Button_1.default).attrs({
3048
+ 'data-test': 'fit-to-data-button'
3049
+ })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: 115px;\n left: 16px;\n z-index: 3;\n width: 40px !important;\n height: 40px;\n border-radius: 4px;\n border: none;\n box-shadow: 0px 26px 103px rgba(0, 0, 0, 0.64), 0px 11px 18px rgba(0, 0, 0, 0.32),\n 0px 3px 6px rgba(0, 0, 0, 0.3) !important;\n background-color: ", " !important;\n background-repeat: no-repeat;\n background-position: center;\n background-image: url('data:image/svg+xml;charset=UTF-8,<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"12\" cy=\"12\" r=\"9\" stroke=\"", "\" stroke-width=\"2\" stroke-linecap=\"round\"/><path d=\"M12 3.5V6.5M12 20.5V17.5M3.5 12H6.5M20.5 12H17.5\" stroke=\"", "\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>');\n"])), function (props) {
3050
+ return props.controlBackgroundColor;
3051
+ }, function (props) {
3052
+ return props.controlIconColorEncoded.color;
3053
+ }, function (props) {
3054
+ return props.controlIconColorEncoded.color;
3055
+ });
3129
3056
  PureMapContainer_1.default.displayName = 'PureMapContainer';
3130
3057
 
3131
3058
  var PureMap = function PureMap(props) {
@@ -3148,7 +3075,6 @@ var PureMap = function PureMap(props) {
3148
3075
  onMapLoad = props.onMapLoad,
3149
3076
  onMapClick = props.onMapClick,
3150
3077
  onOptionsChange = props.onOptionsChange,
3151
- mode = props.mode,
3152
3078
  title = props.title;
3153
3079
 
3154
3080
  var _ref = (0, react_1.useContext)(MapContext_1.default),
@@ -3159,6 +3085,7 @@ var PureMap = function PureMap(props) {
3159
3085
  var map = (0, react_1.useRef)(null);
3160
3086
  var scaleControl = (0, react_1.useRef)(null);
3161
3087
  var zoomControl = (0, react_1.useRef)(null);
3088
+ var fitToDataButtonClickedRef = (0, react_1.useRef)(false);
3162
3089
 
3163
3090
  var _ref2 = (0, react_1.useMemo)(function () {
3164
3091
  return (0, MapUtils_1.getTilePreset)({
@@ -3234,31 +3161,35 @@ var PureMap = function PureMap(props) {
3234
3161
  };
3235
3162
 
3236
3163
  var onOptionsChangeProxy = (0, react_1.useCallback)(function (e) {
3237
- if (mode === 'edit') {
3238
- onOptionsChange(e);
3239
- }
3240
- }, [onOptionsChange, mode]);
3164
+ onOptionsChange(e);
3165
+ }, [onOptionsChange]);
3241
3166
  var fitMapToContent = (0, react_1.useCallback)(function () {
3242
3167
  var lngLatBounds = (0, MapUtils_1.getGlobalLayerBoundaries)([layers[0]]);
3243
3168
  map.current.fitBounds(lngLatBounds, {
3244
3169
  padding: MapUtils_1.MAX_BUBBLE_RADIUS + 5,
3245
3170
  animate: false
3171
+ }, {
3172
+ triggeredFromFitBounds: true
3246
3173
  });
3247
3174
  }, [layers]);
3248
- var initializeMap = (0, react_1.useCallback)(function (mapStyle) {
3249
- var addZoomEndEventListener = function addZoomEndEventListener() {
3250
- // register event listener - zoom
3251
- map.current.on('zoomend', function () {
3252
- var mapZoomLevel = map.current.getZoom();
3175
+ var addZoomEndEventListener = (0, react_1.useCallback)(function () {
3176
+ // register event listener - zoom
3177
+ map.current.on('zoomend', function (event) {
3178
+ var mapZoomLevel = map.current.getZoom();
3253
3179
 
3254
- if (mapZoomLevel < mapMinZoomRef.current) {
3255
- setMapMinZoom(mapZoomLevel);
3256
- }
3180
+ if (mapZoomLevel < mapMinZoomRef.current) {
3181
+ setMapMinZoom(mapZoomLevel);
3182
+ } // @ts-ignore
3257
3183
 
3258
- setCurrentZoomLevel(mapZoomLevel);
3259
- });
3260
- };
3261
3184
 
3185
+ if (event === null || event === void 0 ? void 0 : event.triggeredFromFitBounds) {
3186
+ return;
3187
+ }
3188
+
3189
+ setCurrentZoomLevel(mapZoomLevel);
3190
+ });
3191
+ }, []);
3192
+ var initializeMap = (0, react_1.useCallback)(function (mapStyle) {
3262
3193
  map.current = new maplibre_gl_1.Map(Object.assign({
3263
3194
  container: basemapContainer.current,
3264
3195
  preserveDrawingBuffer: true,
@@ -3401,6 +3332,10 @@ var PureMap = function PureMap(props) {
3401
3332
  }, [showBaseLayer, tilePreset, initializeMap, initializeScale, updateScale, defaultTileLight, defaultTileDark, baseLayerTileServer, baseLayerTileServerType, themeColorScheme]);
3402
3333
  (0, react_1.useEffect)(function () {
3403
3334
  if (map.current) {
3335
+ if (fitToDataButtonClickedRef.current) {
3336
+ return;
3337
+ }
3338
+
3404
3339
  map.current.flyTo({
3405
3340
  center: lngLatCenter,
3406
3341
  // Make sure we are not flying to a zoom value smaller than the mapMinZoom
@@ -3418,9 +3353,26 @@ var PureMap = function PureMap(props) {
3418
3353
  }, []);
3419
3354
 
3420
3355
  var _layers = _slicedToArray(layers, 1),
3421
- layer = _layers[0];
3356
+ layer = _layers[0]; // when datasource changes or fit to data button clicked, we want to auto zoom if zoom is undefined
3422
3357
 
3423
- return React.createElement(React.Fragment, null, React.createElement(PureMapContainer_1.default, {
3358
+
3359
+ (0, react_1.useEffect)(function () {
3360
+ if (isMapLoaded && layer && zoom === undefined && center === undefined) {
3361
+ fitMapToContent();
3362
+ fitToDataButtonClickedRef.current = false;
3363
+ }
3364
+ }, [layer === null || layer === void 0 ? void 0 : layer.resultLimit, layer === null || layer === void 0 ? void 0 : layer.latitude, layer === null || layer === void 0 ? void 0 : layer.longitude, layer === null || layer === void 0 ? void 0 : layer.areaIds, zoom, center]);
3365
+ var showResetButton = (0, react_1.useCallback)(function () {
3366
+ return center !== undefined || zoom !== undefined;
3367
+ }, [center, zoom]);
3368
+ var handleResetClick = (0, react_1.useCallback)(function () {
3369
+ fitToDataButtonClickedRef.current = true;
3370
+ onOptionsChangeProxy({
3371
+ center: undefined,
3372
+ zoom: undefined
3373
+ });
3374
+ }, [onOptionsChangeProxy]);
3375
+ return React.createElement(PureMapContainer_1.default, {
3424
3376
  "aria-label": title || (0, i18n_1._)('Map'),
3425
3377
  className: "puremap",
3426
3378
  width: width,
@@ -3432,13 +3384,19 @@ var PureMap = function PureMap(props) {
3432
3384
  ref: basemapContainer,
3433
3385
  showScale: showScale,
3434
3386
  showZoomControls: showZoomControls
3435
- }, isMapLoaded && layer && (layer.type === MapUtils_1.LAYER_TYPE.Bubble || layer.type === MapUtils_1.LAYER_TYPE.Marker) && React.createElement(ClusterLayer_1.default, {
3387
+ }, showResetButton() && React.createElement(StyledFitToDataButton, {
3388
+ onClick: handleResetClick,
3389
+ title: (0, i18n_1._)('Fit to data'),
3390
+ controlBackgroundColor: controlBackgroundColor,
3391
+ controlForegroundColor: controlForegroundColor,
3392
+ controlIconColorEncoded: (0, exports.formatColor)(controlForegroundColor)
3393
+ }), isMapLoaded && layer && (layer.type === visualization_schemas_1.LAYER_TYPE.Bubble || layer.type === visualization_schemas_1.LAYER_TYPE.Marker) && React.createElement(ClusterLayer_1.default, {
3436
3394
  clusterLayer: layer,
3437
3395
  themeColorScheme: themeColorScheme,
3438
3396
  map: map,
3439
3397
  zoom: currentZoomLevel,
3440
3398
  onMapClick: onMapClick
3441
- }), isMapLoaded && layer && layer.type === MapUtils_1.LAYER_TYPE.Choropleth && layer.source && React.createElement(LocalChoroplethLayer_1.default, {
3399
+ }), isMapLoaded && layer && layer.type === visualization_schemas_1.LAYER_TYPE.Choropleth && layer.source && React.createElement(LocalChoroplethLayer_1.default, {
3442
3400
  width: width,
3443
3401
  height: height,
3444
3402
  map: map,
@@ -3446,13 +3404,13 @@ var PureMap = function PureMap(props) {
3446
3404
  isThemeChanged: isThemeChanged,
3447
3405
  setIsThemeChanged: setIsThemeChangedCallback,
3448
3406
  onMapClick: onMapClick
3449
- }), isMapLoaded && layer && layer.type === MapUtils_1.LAYER_TYPE.Choropleth && !layer.source && React.createElement(ChoroplethLayer_1.default, {
3407
+ }), isMapLoaded && layer && layer.type === visualization_schemas_1.LAYER_TYPE.Choropleth && !layer.source && React.createElement(ChoroplethLayer_1.default, {
3450
3408
  map: map,
3451
3409
  choroplethLayer: layer,
3452
3410
  isThemeChanged: isThemeChanged,
3453
3411
  setIsThemeChanged: setIsThemeChangedCallback,
3454
3412
  onMapClick: onMapClick
3455
- })));
3413
+ }));
3456
3414
  };
3457
3415
 
3458
3416
  var isLatLng = function isLatLng(props, propName, componentName) {
@@ -3533,14 +3491,14 @@ exports.default = PureMap;
3533
3491
 
3534
3492
  /***/ }),
3535
3493
 
3536
- /***/ 434:
3494
+ /***/ 422:
3537
3495
  /***/ (function(module, exports) {
3538
3496
 
3539
3497
  module.exports = require("@splunk/visualization-context/MapContext");
3540
3498
 
3541
3499
  /***/ }),
3542
3500
 
3543
- /***/ 435:
3501
+ /***/ 423:
3544
3502
  /***/ (function(module, exports, __webpack_require__) {
3545
3503
 
3546
3504
  "use strict";
@@ -3552,14 +3510,14 @@ Object.defineProperty(exports, "__esModule", {
3552
3510
 
3553
3511
  var styled_components_1 = __webpack_require__(4);
3554
3512
 
3555
- var lodash_1 = __webpack_require__(3);
3513
+ var lodash_1 = __webpack_require__(2);
3556
3514
 
3557
3515
  var style_1 = __webpack_require__(18);
3558
3516
 
3559
- var maplibre_gl_css_1 = __webpack_require__(436);
3517
+ var maplibre_gl_css_1 = __webpack_require__(424);
3560
3518
 
3561
3519
  var PureMapContainer = styled_components_1.default.div.attrs({
3562
- 'data-testid': 'puremap-container'
3520
+ 'data-test': 'puremap-container'
3563
3521
  }).withConfig({
3564
3522
  displayName: "PureMapContainer",
3565
3523
  componentId: "sc-1gjwxfv-0"
@@ -3594,7 +3552,7 @@ exports.default = PureMapContainer;
3594
3552
 
3595
3553
  /***/ }),
3596
3554
 
3597
- /***/ 436:
3555
+ /***/ 424:
3598
3556
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3599
3557
 
3600
3558
  "use strict";
@@ -3603,7 +3561,7 @@ __webpack_require__.r(__webpack_exports__);
3603
3561
 
3604
3562
  /***/ }),
3605
3563
 
3606
- /***/ 437:
3564
+ /***/ 425:
3607
3565
  /***/ (function(module, exports, __webpack_require__) {
3608
3566
 
3609
3567
  "use strict";
@@ -3613,13 +3571,13 @@ Object.defineProperty(exports, "__esModule", {
3613
3571
  value: true
3614
3572
  });
3615
3573
 
3616
- var React = __webpack_require__(0);
3574
+ var React = __webpack_require__(1);
3617
3575
 
3618
- var BubbleLayer_1 = __webpack_require__(153);
3576
+ var visualization_schemas_1 = __webpack_require__(9);
3619
3577
 
3620
- var MarkerLayer_1 = __webpack_require__(439);
3578
+ var BubbleLayer_1 = __webpack_require__(149);
3621
3579
 
3622
- var MapUtils_1 = __webpack_require__(115);
3580
+ var MarkerLayer_1 = __webpack_require__(427);
3623
3581
 
3624
3582
  var ClusterLayer = function ClusterLayer(_ref) {
3625
3583
  var clusterLayer = _ref.clusterLayer,
@@ -3631,7 +3589,7 @@ var ClusterLayer = function ClusterLayer(_ref) {
3631
3589
  var _a;
3632
3590
 
3633
3591
  if (((_a = map === null || map === void 0 ? void 0 : map.current) === null || _a === void 0 ? void 0 : _a.isStyleLoaded) && [clusterLayer.longitude, clusterLayer.latitude].every(Array.isArray)) {
3634
- if ((clusterLayer === null || clusterLayer === void 0 ? void 0 : clusterLayer.type) === MapUtils_1.LAYER_TYPE.Marker && !('geobin' in clusterLayer)) {
3592
+ if ((clusterLayer === null || clusterLayer === void 0 ? void 0 : clusterLayer.type) === visualization_schemas_1.LAYER_TYPE.Marker && !('geobin' in clusterLayer)) {
3635
3593
  return React.createElement(MarkerLayer_1.default, {
3636
3594
  markerLayer: clusterLayer,
3637
3595
  themeColorScheme: themeColorScheme,
@@ -3640,7 +3598,7 @@ var ClusterLayer = function ClusterLayer(_ref) {
3640
3598
  });
3641
3599
  }
3642
3600
 
3643
- if ((clusterLayer === null || clusterLayer === void 0 ? void 0 : clusterLayer.type) === MapUtils_1.LAYER_TYPE.Bubble && 'geobin' in clusterLayer && 'bubbleSize' in clusterLayer) {
3601
+ if ((clusterLayer === null || clusterLayer === void 0 ? void 0 : clusterLayer.type) === visualization_schemas_1.LAYER_TYPE.Bubble && 'geobin' in clusterLayer && 'bubbleSize' in clusterLayer) {
3644
3602
  return React.createElement(BubbleLayer_1.default, {
3645
3603
  bubbleLayer: clusterLayer,
3646
3604
  themeColorScheme: themeColorScheme,
@@ -3658,13 +3616,13 @@ exports.default = ClusterLayer;
3658
3616
 
3659
3617
  /***/ }),
3660
3618
 
3661
- /***/ 438:
3619
+ /***/ 426:
3662
3620
  /***/ (function(module, exports, __webpack_require__) {
3663
3621
 
3664
3622
  "use strict";
3665
3623
 
3666
3624
 
3667
- var _taggedTemplateLiteral = __webpack_require__(81);
3625
+ var _taggedTemplateLiteral = __webpack_require__(78);
3668
3626
 
3669
3627
  var _templateObject;
3670
3628
 
@@ -3673,30 +3631,30 @@ Object.defineProperty(exports, "__esModule", {
3673
3631
  });
3674
3632
  exports.convertDegToDMS = void 0;
3675
3633
 
3676
- var React = __webpack_require__(0);
3634
+ var React = __webpack_require__(1);
3677
3635
 
3678
3636
  var styled_components_1 = __webpack_require__(4);
3679
3637
 
3680
- var Popover_1 = __webpack_require__(84);
3638
+ var Popover_1 = __webpack_require__(81);
3681
3639
 
3682
- var i18n_1 = __webpack_require__(2);
3640
+ var i18n_1 = __webpack_require__(3);
3683
3641
 
3684
3642
  var StyledPopover = (0, styled_components_1.default)(Popover_1.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 250px;\n font-size: 12px;\n"])));
3685
3643
  var StyledTable = styled_components_1.default.table.withConfig({
3686
3644
  displayName: "Tooltip__StyledTable",
3687
- componentId: "xwewsa-0"
3645
+ componentId: "sc-xwewsa-0"
3688
3646
  })(["margin:2px 6px 2px 6px;width:calc(100% - 12px);"]);
3689
3647
  var StyledTitleColumn = styled_components_1.default.td.withConfig({
3690
3648
  displayName: "Tooltip__StyledTitleColumn",
3691
- componentId: "xwewsa-1"
3649
+ componentId: "sc-xwewsa-1"
3692
3650
  })(["opacity:0.85;"]);
3693
3651
  var StyledValueColumn = styled_components_1.default.td.withConfig({
3694
3652
  displayName: "Tooltip__StyledValueColumn",
3695
- componentId: "xwewsa-2"
3653
+ componentId: "sc-xwewsa-2"
3696
3654
  })(["text-align:right;"]);
3697
3655
  var StyledColorBlock = styled_components_1.default.div.withConfig({
3698
3656
  displayName: "Tooltip__StyledColorBlock",
3699
- componentId: "xwewsa-3"
3657
+ componentId: "sc-xwewsa-3"
3700
3658
  })(["background-color:", ";display:inline-block;margin-right:4px;border-radius:2px;width:6px;height:11px;transform:translateY(1px);"], function (props) {
3701
3659
  return props.color;
3702
3660
  });
@@ -3782,15 +3740,15 @@ exports.default = Tooltip;
3782
3740
 
3783
3741
  /***/ }),
3784
3742
 
3785
- /***/ 439:
3743
+ /***/ 427:
3786
3744
  /***/ (function(module, exports, __webpack_require__) {
3787
3745
 
3788
3746
  "use strict";
3789
3747
 
3790
3748
 
3791
- var _defineProperty = __webpack_require__(9);
3749
+ var _defineProperty = __webpack_require__(12);
3792
3750
 
3793
- var _taggedTemplateLiteral = __webpack_require__(81);
3751
+ var _taggedTemplateLiteral = __webpack_require__(78);
3794
3752
 
3795
3753
  var _templateObject;
3796
3754
 
@@ -3814,15 +3772,15 @@ exports.generateMarkerWrapperProps = exports.MarkerIcon = void 0;
3814
3772
 
3815
3773
  var styled_components_1 = __webpack_require__(4);
3816
3774
 
3817
- var React = __webpack_require__(0);
3775
+ var React = __webpack_require__(1);
3818
3776
 
3819
3777
  var colorUtils_1 = __webpack_require__(15);
3820
3778
 
3821
- var lodash_1 = __webpack_require__(3);
3779
+ var lodash_1 = __webpack_require__(2);
3822
3780
 
3823
- var MapUtils_1 = __webpack_require__(115);
3781
+ var MapUtils_1 = __webpack_require__(119);
3824
3782
 
3825
- var MarkerWrapper_1 = __webpack_require__(154);
3783
+ var MarkerWrapper_1 = __webpack_require__(150);
3826
3784
 
3827
3785
  var MarkerIcon = function MarkerIcon(_a) {
3828
3786
  var theme = _a.theme,
@@ -3948,41 +3906,29 @@ exports.default = MarkerLayer;
3948
3906
 
3949
3907
  /***/ }),
3950
3908
 
3951
- /***/ 44:
3909
+ /***/ 428:
3952
3910
  /***/ (function(module, exports, __webpack_require__) {
3953
3911
 
3954
3912
  "use strict";
3955
3913
 
3956
3914
 
3957
- Object.defineProperty(exports, "__esModule", {
3958
- value: true
3959
- });
3960
-
3961
- /***/ }),
3962
-
3963
- /***/ 440:
3964
- /***/ (function(module, exports, __webpack_require__) {
3965
-
3966
- "use strict";
3967
-
3968
-
3969
- var _slicedToArray = __webpack_require__(7);
3915
+ var _slicedToArray = __webpack_require__(5);
3970
3916
 
3971
3917
  Object.defineProperty(exports, "__esModule", {
3972
3918
  value: true
3973
3919
  });
3974
3920
 
3975
- var React = __webpack_require__(0);
3921
+ var React = __webpack_require__(1);
3976
3922
 
3977
- var Message_1 = __webpack_require__(12);
3923
+ var Message_1 = __webpack_require__(11);
3978
3924
 
3979
- var GeoRegistry_1 = __webpack_require__(441);
3925
+ var GeoRegistry_1 = __webpack_require__(429);
3980
3926
 
3981
- var GeoJsonProvider_1 = __webpack_require__(442);
3927
+ var GeoJsonProvider_1 = __webpack_require__(430);
3982
3928
 
3983
- var MapUtils_1 = __webpack_require__(115);
3929
+ var MapUtils_1 = __webpack_require__(119);
3984
3930
 
3985
- var ChoroplethLayer_1 = __webpack_require__(183);
3931
+ var ChoroplethLayer_1 = __webpack_require__(178);
3986
3932
 
3987
3933
  var LocalChoroplethLayer = function LocalChoroplethLayer(props) {
3988
3934
  var _a, _b;
@@ -4172,21 +4118,33 @@ exports.default = LocalChoroplethLayer;
4172
4118
 
4173
4119
  /***/ }),
4174
4120
 
4175
- /***/ 441:
4121
+ /***/ 429:
4176
4122
  /***/ (function(module, exports) {
4177
4123
 
4178
4124
  module.exports = require("@splunk/visualization-context/GeoRegistry");
4179
4125
 
4180
4126
  /***/ }),
4181
4127
 
4182
- /***/ 442:
4128
+ /***/ 43:
4129
+ /***/ (function(module, exports, __webpack_require__) {
4130
+
4131
+ "use strict";
4132
+
4133
+
4134
+ Object.defineProperty(exports, "__esModule", {
4135
+ value: true
4136
+ });
4137
+
4138
+ /***/ }),
4139
+
4140
+ /***/ 430:
4183
4141
  /***/ (function(module, exports) {
4184
4142
 
4185
4143
  module.exports = require("@splunk/visualization-context/GeoJsonProvider");
4186
4144
 
4187
4145
  /***/ }),
4188
4146
 
4189
- /***/ 443:
4147
+ /***/ 431:
4190
4148
  /***/ (function(module, exports, __webpack_require__) {
4191
4149
 
4192
4150
  "use strict";
@@ -4196,27 +4154,23 @@ Object.defineProperty(exports, "__esModule", {
4196
4154
  value: true
4197
4155
  });
4198
4156
 
4199
- var visualization_icons_1 = __webpack_require__(74);
4157
+ var visualization_icons_1 = __webpack_require__(71);
4200
4158
 
4201
- var placeholders_1 = __webpack_require__(72);
4159
+ var placeholders_1 = __webpack_require__(70);
4202
4160
 
4203
- var schemaUtils_1 = __webpack_require__(24);
4161
+ var visualization_schemas_1 = __webpack_require__(9);
4204
4162
 
4205
- var visualization_color_palettes_1 = __webpack_require__(73);
4163
+ var themes_1 = __webpack_require__(79);
4206
4164
 
4207
- var themes_1 = __webpack_require__(82);
4165
+ var i18n_1 = __webpack_require__(3);
4208
4166
 
4209
- var i18n_1 = __webpack_require__(2);
4210
-
4211
- var VizBehavior_1 = __webpack_require__(6);
4167
+ var VizBehavior_1 = __webpack_require__(7);
4212
4168
 
4213
4169
  var VizCategory_1 = __webpack_require__(22);
4214
4170
 
4215
- var configUtils_1 = __webpack_require__(27);
4216
-
4217
- var MapUtils_1 = __webpack_require__(115);
4171
+ var configUtils_1 = __webpack_require__(26);
4218
4172
 
4219
- var BackgroundColor_1 = __webpack_require__(75);
4173
+ var BackgroundColor_1 = __webpack_require__(72);
4220
4174
 
4221
4175
  var defaultContext = {
4222
4176
  colorRangeConfig: [{
@@ -4256,277 +4210,6 @@ var size = {
4256
4210
  initialWidth: 800,
4257
4211
  initialHeight: 600
4258
4212
  };
4259
- var optionsSchema = {
4260
- backgroundColor: {
4261
- default: '> themes.defaultBackgroundColor',
4262
- description: 'Specify a color for the background. You might 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".',
4263
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
4264
- type: 'string'
4265
- },
4266
- baseLayerTileServer: {
4267
- type: 'string',
4268
- description: 'Specify the URL for the set of tiles that make up the base map.'
4269
- },
4270
- baseLayerTileServerType: {
4271
- type: 'string',
4272
- description: 'Specify the type of tile set for the base map.',
4273
- pattern: (0, schemaUtils_1.getPattern)(['vector', 'raster'])
4274
- },
4275
- center: {
4276
- type: 'array',
4277
- description: 'Specify the center of the map in coordinates, in the form of [latitude, longitude]. If you don’t provide coordinates, the map automatically centers, based on available location data. If there is no available location data, the center of the map defaults to [37.7749, -122.4194].',
4278
- items: {
4279
- type: 'number'
4280
- }
4281
- },
4282
- layers: {
4283
- // The option merging of defaults and data binding with editing UI happens with the default defined below.
4284
- // The inner defaults for properties within anyOf objects is used only for code intellisense in UDF to populate options.
4285
- default: [{
4286
- type: MapUtils_1.LAYER_TYPE.Bubble,
4287
- latitude: '> primary | seriesByName("latitude")',
4288
- longitude: '> primary | seriesByName("longitude")',
4289
- seriesColors: visualization_color_palettes_1.VIZ_CATEGORICAL,
4290
- bubbleSize: '> primary | frameWithoutSeriesNames("geobin", "latitude", "longitude") | frameBySeriesTypes("number")',
4291
- additionalTooltipFields: [],
4292
- resultLimit: 1000
4293
- }, {
4294
- type: MapUtils_1.LAYER_TYPE.Marker,
4295
- latitude: '> primary | seriesByName("latitude")',
4296
- longitude: '> primary | seriesByName("longitude")',
4297
- seriesColors: visualization_color_palettes_1.VIZ_CATEGORICAL,
4298
- additionalTooltipFields: [],
4299
- resultLimit: 1000
4300
- }, {
4301
- type: MapUtils_1.LAYER_TYPE.Choropleth,
4302
- areaIds: '> primary | seriesByType("string")',
4303
- areaValues: '> primary | seriesByType("number")',
4304
- dataColors: '> areaValues | gradient()',
4305
- additionalTooltipFields: [],
4306
- resultLimit: 1000,
4307
- choroplethEmptyAreaColor: '> themes.defaultChoroplethEmptyAreaColor',
4308
- choroplethStrokeColor: 'transparent',
4309
- choroplethOpacity: 0.8
4310
- }],
4311
- type: 'array',
4312
- description: 'Specify the optional data visualization layers over the base map. If empty, only the base map appears.',
4313
- items: {
4314
- anyOf: [{
4315
- type: 'object',
4316
- properties: {
4317
- type: {
4318
- description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
4319
- type: 'string',
4320
- pattern: (0, schemaUtils_1.getPattern)([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
4321
- default: MapUtils_1.LAYER_TYPE.Marker
4322
- },
4323
- latitude: {
4324
- description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
4325
- type: ['string', 'array'],
4326
- items: {
4327
- type: 'number'
4328
- },
4329
- default: '> primary | seriesByName("latitude")'
4330
- },
4331
- longitude: {
4332
- description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
4333
- type: ['string', 'array'],
4334
- items: {
4335
- type: 'number'
4336
- },
4337
- default: '> primary | seriesByName("longitude")'
4338
- },
4339
- seriesColors: {
4340
- description: 'Specify the colors to use for data points. If the dataColors option is specified, the seriesColors option is ignored. The seriesColors option applies to layers where type: "bubble" or type: "marker".',
4341
- type: 'array',
4342
- items: {
4343
- type: 'string',
4344
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
4345
- },
4346
- default: visualization_color_palettes_1.VIZ_CATEGORICAL
4347
- },
4348
- dataColors: {
4349
- description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker". If type: "bubble", dataColors requires bubbleSize to have only a single series configured.',
4350
- type: ['string', 'array'],
4351
- items: {
4352
- type: 'string'
4353
- }
4354
- },
4355
- additionalTooltipFields: {
4356
- description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
4357
- type: 'array',
4358
- items: {
4359
- type: 'string'
4360
- },
4361
- default: []
4362
- },
4363
- resultLimit: {
4364
- description: 'Specify the maximum number of data points to render on the map. Adjust the value to improve performance.',
4365
- type: 'number',
4366
- default: 1000
4367
- }
4368
- }
4369
- }, {
4370
- type: 'object',
4371
- properties: {
4372
- type: {
4373
- description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
4374
- type: 'string',
4375
- pattern: (0, schemaUtils_1.getPattern)([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
4376
- default: MapUtils_1.LAYER_TYPE.Choropleth
4377
- },
4378
- areaIds: {
4379
- description: 'Specify a dataSource series to identify each area in the choropleth map layer. This applies to layers where type: "choropleth".',
4380
- type: 'array',
4381
- items: {
4382
- type: 'string'
4383
- },
4384
- default: '> primary | seriesByType("string")'
4385
- },
4386
- areaValues: {
4387
- description: 'Specify a dataSource series that indicates the values for the choropleth map areas. This applies to layers where type: "choropleth".',
4388
- type: 'array',
4389
- items: {
4390
- type: 'number'
4391
- },
4392
- default: '> primary | seriesByType("number")'
4393
- },
4394
- dataColors: {
4395
- description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default. By default, the dataColors option is not defined for type "bubble" or "marker".',
4396
- type: ['string', 'array'],
4397
- items: {
4398
- type: 'string'
4399
- },
4400
- default: '> areaValues | gradient()'
4401
- },
4402
- additionalTooltipFields: {
4403
- description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
4404
- type: 'array',
4405
- items: {
4406
- type: 'string'
4407
- },
4408
- default: []
4409
- },
4410
- resultLimit: {
4411
- description: 'Specify the maximum number of data points to render on the map. Adjust the value to improve performance.',
4412
- type: 'number',
4413
- default: 1000
4414
- },
4415
- source: {
4416
- description: 'Source for the geodata for choropleth layer: "us" or "world", and will override data specified in the SPL geom command.',
4417
- pattern: (0, schemaUtils_1.getPattern)(['geo://default/us', 'geo://default/world']),
4418
- type: 'string'
4419
- },
4420
- choroplethEmptyAreaColor: {
4421
- description: 'Specify the color used for empty choropleth areas when "type": "choropleth", and will only work when "source" option is correctly configured.',
4422
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
4423
- type: 'string',
4424
- default: '> themes.defaultChoroplethEmptyAreaColor'
4425
- },
4426
- choroplethStrokeColor: {
4427
- description: 'Specify the stroke color for choropleth area outlines. The hex value format should be "#FFFFFF".',
4428
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
4429
- type: 'string',
4430
- default: 'transparent'
4431
- },
4432
- choroplethOpacity: {
4433
- description: 'Specify the opacity of choropleth areas. Choose a number in the range of 0 - 1 (inclusive). You can also express the value as a percentage. For example, "0.8" in code or "80%" in UI.',
4434
- type: 'number',
4435
- default: 0.8
4436
- }
4437
- }
4438
- }, {
4439
- type: 'object',
4440
- properties: {
4441
- type: {
4442
- description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
4443
- type: 'string',
4444
- pattern: (0, schemaUtils_1.getPattern)([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
4445
- default: MapUtils_1.LAYER_TYPE.Bubble
4446
- },
4447
- bubbleSize: {
4448
- description: 'Specify the data column to encode bubble size. This applies to layers where type: "bubble".',
4449
- type: ['string', 'array'],
4450
- items: {
4451
- type: 'number'
4452
- },
4453
- default: '> primary | frameWithoutSeriesNames("geobin", "latitude", "longitude") | frameBySeriesTypes("number")'
4454
- },
4455
- latitude: {
4456
- description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
4457
- type: ['string', 'array'],
4458
- items: {
4459
- type: 'number'
4460
- },
4461
- default: '> primary | seriesByName("latitude")'
4462
- },
4463
- longitude: {
4464
- description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
4465
- type: ['string', 'array'],
4466
- items: {
4467
- type: 'number'
4468
- },
4469
- default: '> primary | seriesByName("longitude")'
4470
- },
4471
- seriesColors: {
4472
- description: 'Specify the colors to use for data points. If the dataColors option is specified, the seriesColors option is ignored. The seriesColors option applies to layers where type: "bubble" or type: "marker".',
4473
- type: 'array',
4474
- items: {
4475
- type: 'string',
4476
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
4477
- },
4478
- default: visualization_color_palettes_1.VIZ_CATEGORICAL
4479
- },
4480
- dataColors: {
4481
- description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker". If type: "bubble", dataColors requires bubbleSize to have only a single series configured.',
4482
- type: ['string', 'array'],
4483
- items: {
4484
- type: 'string'
4485
- }
4486
- },
4487
- additionalTooltipFields: {
4488
- description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
4489
- type: 'array',
4490
- items: {
4491
- type: 'string'
4492
- },
4493
- default: []
4494
- },
4495
- resultLimit: {
4496
- description: 'Specify the maximum number of data points to render on the map. Adjust the value to improve performance.',
4497
- type: 'number',
4498
- default: 1000
4499
- }
4500
- }
4501
- }]
4502
- }
4503
- },
4504
- scaleUnit: {
4505
- default: 'metric',
4506
- type: 'string',
4507
- description: 'Specify the scale unit to use.',
4508
- pattern: (0, schemaUtils_1.getPattern)(['metric', 'imperial'])
4509
- },
4510
- showBaseLayer: {
4511
- default: true,
4512
- type: 'boolean',
4513
- description: 'Specify if showing the base map.'
4514
- },
4515
- showScale: {
4516
- default: true,
4517
- type: 'boolean',
4518
- description: 'Specify whether to display the scale on the bottom left.'
4519
- },
4520
- showZoomControls: {
4521
- default: true,
4522
- type: 'boolean',
4523
- description: 'Specify whether to display the control panel of zoom on the top left.'
4524
- },
4525
- zoom: {
4526
- description: 'Specify the zoom level of the map.',
4527
- type: 'number'
4528
- }
4529
- };
4530
4213
  var themes = {
4531
4214
  defaultBackgroundColor: function defaultBackgroundColor(props) {
4532
4215
  return (0, themes_1.pick)({
@@ -4579,11 +4262,11 @@ var themes = {
4579
4262
  };
4580
4263
 
4581
4264
  var checkTypeIsChoropleth = function checkTypeIsChoropleth(options) {
4582
- return options.layers && options.layers.length && options.layers[0].type === MapUtils_1.LAYER_TYPE.Choropleth;
4265
+ return options.layers && options.layers.length && options.layers[0].type === visualization_schemas_1.LAYER_TYPE.Choropleth;
4583
4266
  };
4584
4267
 
4585
4268
  var checkTypeIsLocalChoropleth = function checkTypeIsLocalChoropleth(options) {
4586
- return options.layers && options.layers.length && options.layers[0].type === MapUtils_1.LAYER_TYPE.Choropleth && (options.layers[0].source === 'geo://default/us' || options.layers[0].source === 'geo://default/world');
4269
+ return options.layers && options.layers.length && options.layers[0].type === visualization_schemas_1.LAYER_TYPE.Choropleth && (options.layers[0].source === 'geo://default/us' || options.layers[0].source === 'geo://default/world');
4587
4270
  };
4588
4271
 
4589
4272
  var EDITOR_LABEL_WIDTH = 140;
@@ -4596,13 +4279,13 @@ var editorConfig = [{
4596
4279
  editorProps: {
4597
4280
  values: [{
4598
4281
  label: (0, i18n_1._)('Bubble'),
4599
- value: MapUtils_1.LAYER_TYPE.Bubble
4282
+ value: visualization_schemas_1.LAYER_TYPE.Bubble
4600
4283
  }, {
4601
4284
  label: (0, i18n_1._)('Marker'),
4602
- value: MapUtils_1.LAYER_TYPE.Marker
4285
+ value: visualization_schemas_1.LAYER_TYPE.Marker
4603
4286
  }, {
4604
4287
  label: (0, i18n_1._)('Choropleth'),
4605
- value: MapUtils_1.LAYER_TYPE.Choropleth
4288
+ value: visualization_schemas_1.LAYER_TYPE.Choropleth
4606
4289
  }]
4607
4290
  }
4608
4291
  }], [{
@@ -4887,7 +4570,7 @@ var config = {
4887
4570
  dataContract: dataContract,
4888
4571
  size: size,
4889
4572
  defaultContext: defaultContext,
4890
- optionsSchema: optionsSchema,
4573
+ optionsSchema: visualization_schemas_1.mapOptionsSchema,
4891
4574
  editorConfig: editorConfig,
4892
4575
  events: {
4893
4576
  'map.load': {
@@ -4906,7 +4589,7 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
4906
4589
 
4907
4590
  /***/ }),
4908
4591
 
4909
- /***/ 444:
4592
+ /***/ 432:
4910
4593
  /***/ (function(module, exports, __webpack_require__) {
4911
4594
 
4912
4595
  "use strict";
@@ -4917,15 +4600,15 @@ Object.defineProperty(exports, "__esModule", {
4917
4600
  });
4918
4601
  exports.columnsNullToZeros = void 0;
4919
4602
 
4920
- var types_1 = __webpack_require__(106);
4603
+ var types_1 = __webpack_require__(103);
4921
4604
 
4922
- var dsl_1 = __webpack_require__(155);
4605
+ var dsl_1 = __webpack_require__(151);
4923
4606
 
4924
- var hocUtils_1 = __webpack_require__(34);
4607
+ var hocUtils_1 = __webpack_require__(33);
4925
4608
 
4926
- var JSONSchemaUtils_1 = __webpack_require__(35);
4609
+ var JSONSchemaUtils_1 = __webpack_require__(34);
4927
4610
 
4928
- var BubbleLayer_1 = __webpack_require__(153);
4611
+ var BubbleLayer_1 = __webpack_require__(149);
4929
4612
 
4930
4613
  var columnsNullToZeros = function columnsNullToZeros(config, dataSources, options) {
4931
4614
  var _a, _b;
@@ -4976,7 +4659,7 @@ exports.columnsNullToZeros = columnsNullToZeros;
4976
4659
 
4977
4660
  /***/ }),
4978
4661
 
4979
- /***/ 45:
4662
+ /***/ 44:
4980
4663
  /***/ (function(module, exports, __webpack_require__) {
4981
4664
 
4982
4665
  "use strict";
@@ -4988,7 +4671,7 @@ Object.defineProperty(exports, "__esModule", {
4988
4671
 
4989
4672
  /***/ }),
4990
4673
 
4991
- /***/ 46:
4674
+ /***/ 45:
4992
4675
  /***/ (function(module, exports, __webpack_require__) {
4993
4676
 
4994
4677
  "use strict";
@@ -5000,7 +4683,7 @@ Object.defineProperty(exports, "__esModule", {
5000
4683
 
5001
4684
  /***/ }),
5002
4685
 
5003
- /***/ 47:
4686
+ /***/ 46:
5004
4687
  /***/ (function(module, exports, __webpack_require__) {
5005
4688
 
5006
4689
  "use strict";
@@ -5012,7 +4695,7 @@ Object.defineProperty(exports, "__esModule", {
5012
4695
 
5013
4696
  /***/ }),
5014
4697
 
5015
- /***/ 48:
4698
+ /***/ 47:
5016
4699
  /***/ (function(module, exports, __webpack_require__) {
5017
4700
 
5018
4701
  "use strict";
@@ -5024,7 +4707,7 @@ Object.defineProperty(exports, "__esModule", {
5024
4707
 
5025
4708
  /***/ }),
5026
4709
 
5027
- /***/ 49:
4710
+ /***/ 48:
5028
4711
  /***/ (function(module, exports, __webpack_require__) {
5029
4712
 
5030
4713
  "use strict";
@@ -5036,7 +4719,7 @@ Object.defineProperty(exports, "__esModule", {
5036
4719
 
5037
4720
  /***/ }),
5038
4721
 
5039
- /***/ 50:
4722
+ /***/ 49:
5040
4723
  /***/ (function(module, exports, __webpack_require__) {
5041
4724
 
5042
4725
  "use strict";
@@ -5048,19 +4731,14 @@ Object.defineProperty(exports, "__esModule", {
5048
4731
 
5049
4732
  /***/ }),
5050
4733
 
5051
- /***/ 51:
5052
- /***/ (function(module, exports, __webpack_require__) {
5053
-
5054
- "use strict";
5055
-
4734
+ /***/ 5:
4735
+ /***/ (function(module, exports) {
5056
4736
 
5057
- Object.defineProperty(exports, "__esModule", {
5058
- value: true
5059
- });
4737
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
5060
4738
 
5061
4739
  /***/ }),
5062
4740
 
5063
- /***/ 52:
4741
+ /***/ 50:
5064
4742
  /***/ (function(module, exports, __webpack_require__) {
5065
4743
 
5066
4744
  "use strict";
@@ -5072,7 +4750,7 @@ Object.defineProperty(exports, "__esModule", {
5072
4750
 
5073
4751
  /***/ }),
5074
4752
 
5075
- /***/ 53:
4753
+ /***/ 51:
5076
4754
  /***/ (function(module, exports, __webpack_require__) {
5077
4755
 
5078
4756
  "use strict";
@@ -5084,7 +4762,7 @@ Object.defineProperty(exports, "__esModule", {
5084
4762
 
5085
4763
  /***/ }),
5086
4764
 
5087
- /***/ 54:
4765
+ /***/ 52:
5088
4766
  /***/ (function(module, exports, __webpack_require__) {
5089
4767
 
5090
4768
  "use strict";
@@ -5096,7 +4774,7 @@ Object.defineProperty(exports, "__esModule", {
5096
4774
 
5097
4775
  /***/ }),
5098
4776
 
5099
- /***/ 55:
4777
+ /***/ 53:
5100
4778
  /***/ (function(module, exports, __webpack_require__) {
5101
4779
 
5102
4780
  "use strict";
@@ -5108,65 +4786,65 @@ Object.defineProperty(exports, "__esModule", {
5108
4786
 
5109
4787
  /***/ }),
5110
4788
 
5111
- /***/ 56:
4789
+ /***/ 54:
5112
4790
  /***/ (function(module, exports, __webpack_require__) {
5113
4791
 
5114
4792
  "use strict";
5115
4793
 
5116
4794
 
5117
- var _slicedToArray = __webpack_require__(7);
4795
+ var _slicedToArray = __webpack_require__(5);
5118
4796
 
5119
4797
  Object.defineProperty(exports, "__esModule", {
5120
4798
  value: true
5121
4799
  });
5122
4800
 
5123
- var React = __webpack_require__(0);
4801
+ var React = __webpack_require__(1);
5124
4802
 
5125
- var lodash_1 = __webpack_require__(3);
4803
+ var lodash_1 = __webpack_require__(2);
5126
4804
 
5127
- var getSettingsFromThemedProps_1 = __webpack_require__(57);
4805
+ var getSettingsFromThemedProps_1 = __webpack_require__(55);
5128
4806
 
5129
4807
  var Options_1 = __webpack_require__(16);
5130
4808
 
5131
- var SanitizeProps_1 = __webpack_require__(58);
4809
+ var SanitizeProps_1 = __webpack_require__(56);
5132
4810
 
5133
- var TimezoneContext_1 = __webpack_require__(32);
4811
+ var TimezoneContext_1 = __webpack_require__(31);
5134
4812
 
5135
- var moment_1 = __webpack_require__(59);
4813
+ var moment_1 = __webpack_require__(57);
5136
4814
 
5137
- var FeatureFlagContext_1 = __webpack_require__(28);
4815
+ var FeatureFlagContext_1 = __webpack_require__(27);
5138
4816
 
5139
4817
  var styled_components_1 = __webpack_require__(4);
5140
4818
 
5141
- var hocUtils_1 = __webpack_require__(34);
4819
+ var hocUtils_1 = __webpack_require__(33);
5142
4820
 
5143
- var JSONSchemaUtils_1 = __webpack_require__(35);
4821
+ var JSONSchemaUtils_1 = __webpack_require__(34);
5144
4822
 
5145
- var async_dynamic_options_evaluator_1 = __webpack_require__(60);
4823
+ var async_dynamic_options_evaluator_1 = __webpack_require__(58);
5146
4824
 
5147
- var id_1 = __webpack_require__(31);
4825
+ var id_1 = __webpack_require__(30);
5148
4826
 
5149
- var SplunkVisualization_1 = __webpack_require__(61);
4827
+ var SplunkVisualization_1 = __webpack_require__(59);
5150
4828
 
5151
- var VizBehavior_1 = __webpack_require__(6);
4829
+ var VizBehavior_1 = __webpack_require__(7);
5152
4830
 
5153
- var getSorting_1 = __webpack_require__(38);
4831
+ var getSorting_1 = __webpack_require__(37);
5154
4832
 
5155
- var getPagination_1 = __webpack_require__(39);
4833
+ var getPagination_1 = __webpack_require__(38);
5156
4834
 
5157
- var useDeepMemo_1 = __webpack_require__(62);
4835
+ var useDeepMemo_1 = __webpack_require__(60);
5158
4836
 
5159
- var MissingPropsMessage_1 = __webpack_require__(63);
4837
+ var MissingPropsMessage_1 = __webpack_require__(61);
5160
4838
 
5161
- var withEditModeCover_1 = __webpack_require__(64);
4839
+ var withEditModeCover_1 = __webpack_require__(62);
5162
4840
 
5163
- var withPlaceholder_1 = __webpack_require__(65);
4841
+ var withPlaceholder_1 = __webpack_require__(63);
5164
4842
 
5165
- var useDownsampleDataSources_1 = __webpack_require__(66);
4843
+ var useDownsampleDataSources_1 = __webpack_require__(64);
5166
4844
 
5167
4845
  var dataUtils_1 = __webpack_require__(14);
5168
4846
 
5169
- var featureFlagUtils_1 = __webpack_require__(68);
4847
+ var featureFlagUtils_1 = __webpack_require__(66);
5170
4848
  /**
5171
4849
  * hoc that wraps a pure react visualization in a Dashboard visualization
5172
4850
  * @param {DashboardVizOpts} opts
@@ -5499,81 +5177,41 @@ exports.default = withDashboardViz;
5499
5177
 
5500
5178
  /***/ }),
5501
5179
 
5502
- /***/ 57:
5180
+ /***/ 55:
5503
5181
  /***/ (function(module, exports) {
5504
5182
 
5505
5183
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
5506
5184
 
5507
5185
  /***/ }),
5508
5186
 
5509
- /***/ 58:
5187
+ /***/ 56:
5510
5188
  /***/ (function(module, exports) {
5511
5189
 
5512
5190
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
5513
5191
 
5514
5192
  /***/ }),
5515
5193
 
5516
- /***/ 59:
5194
+ /***/ 57:
5517
5195
  /***/ (function(module, exports) {
5518
5196
 
5519
5197
  module.exports = require("@splunk/moment");
5520
5198
 
5521
5199
  /***/ }),
5522
5200
 
5523
- /***/ 6:
5524
- /***/ (function(module, exports, __webpack_require__) {
5525
-
5526
- "use strict";
5527
-
5528
-
5529
- Object.defineProperty(exports, "__esModule", {
5530
- value: true
5531
- });
5532
- exports.VizBehavior = void 0;
5533
- var VizBehavior;
5534
-
5535
- (function (VizBehavior) {
5536
- /**
5537
- * Dynamic Options Behavior.
5538
- * This allows visualization options to be powered by data
5539
- *
5540
- * **Example**
5541
- *
5542
- * sparklineValues: ">primary|seriesByIndex(0)"
5543
- * would configure sparklineValues with an array of data points
5544
- * coming from the first series in the primary datasource
5545
- *
5546
- */
5547
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
5548
- VizBehavior["EVENTS"] = "events";
5549
- VizBehavior["DOWNSAMPLING"] = "downsampling";
5550
- /**
5551
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
5552
- * missing.
5553
- * @type {string}
5554
- */
5555
-
5556
- VizBehavior["PLACEHOLDER"] = "placeholder";
5557
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
5558
- VizBehavior["TRELLIS"] = "trellis";
5559
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
5560
-
5561
- /***/ }),
5562
-
5563
- /***/ 60:
5201
+ /***/ 58:
5564
5202
  /***/ (function(module, exports) {
5565
5203
 
5566
5204
  module.exports = require("@splunk/async-dynamic-options-evaluator");
5567
5205
 
5568
5206
  /***/ }),
5569
5207
 
5570
- /***/ 61:
5208
+ /***/ 59:
5571
5209
  /***/ (function(module, exports, __webpack_require__) {
5572
5210
 
5573
5211
  "use strict";
5574
5212
 
5575
5213
 
5576
- var _classCallCheck = __webpack_require__(10);
5214
+ var _classCallCheck = __webpack_require__(8);
5577
5215
 
5578
5216
  Object.defineProperty(exports, "__esModule", {
5579
5217
  value: true
@@ -5581,9 +5219,9 @@ Object.defineProperty(exports, "__esModule", {
5581
5219
  exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
5582
5220
  /* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
5583
5221
 
5584
- var T = __webpack_require__(1);
5222
+ var T = __webpack_require__(0);
5585
5223
 
5586
- var lodash_1 = __webpack_require__(3);
5224
+ var lodash_1 = __webpack_require__(2);
5587
5225
 
5588
5226
  var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
5589
5227
 
@@ -5719,7 +5357,14 @@ exports.default = SplunkVisualization;
5719
5357
 
5720
5358
  /***/ }),
5721
5359
 
5722
- /***/ 62:
5360
+ /***/ 6:
5361
+ /***/ (function(module, exports) {
5362
+
5363
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
5364
+
5365
+ /***/ }),
5366
+
5367
+ /***/ 60:
5723
5368
  /***/ (function(module, exports, __webpack_require__) {
5724
5369
 
5725
5370
  "use strict";
@@ -5730,9 +5375,9 @@ Object.defineProperty(exports, "__esModule", {
5730
5375
  });
5731
5376
  exports.useDeepMemo = void 0;
5732
5377
 
5733
- var react_1 = __webpack_require__(0);
5378
+ var react_1 = __webpack_require__(1);
5734
5379
 
5735
- var lodash_1 = __webpack_require__(3);
5380
+ var lodash_1 = __webpack_require__(2);
5736
5381
  /**
5737
5382
  * This hook evaluates and stores the result of a passed function and only
5738
5383
  * re-evaluates the function when passed dependencies change.
@@ -5765,7 +5410,7 @@ exports.useDeepMemo = useDeepMemo;
5765
5410
 
5766
5411
  /***/ }),
5767
5412
 
5768
- /***/ 63:
5413
+ /***/ 61:
5769
5414
  /***/ (function(module, exports, __webpack_require__) {
5770
5415
 
5771
5416
  "use strict";
@@ -5776,13 +5421,13 @@ Object.defineProperty(exports, "__esModule", {
5776
5421
  });
5777
5422
  exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
5778
5423
 
5779
- var React = __webpack_require__(0);
5424
+ var React = __webpack_require__(1);
5780
5425
 
5781
- var T = __webpack_require__(1);
5426
+ var T = __webpack_require__(0);
5782
5427
 
5783
- var i18n_1 = __webpack_require__(2);
5428
+ var i18n_1 = __webpack_require__(3);
5784
5429
 
5785
- var Message_1 = __webpack_require__(12);
5430
+ var Message_1 = __webpack_require__(11);
5786
5431
 
5787
5432
  var FixedSizeContainer_1 = __webpack_require__(17);
5788
5433
  /**
@@ -5846,7 +5491,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
5846
5491
 
5847
5492
  /***/ }),
5848
5493
 
5849
- /***/ 64:
5494
+ /***/ 62:
5850
5495
  /***/ (function(module, exports, __webpack_require__) {
5851
5496
 
5852
5497
  "use strict";
@@ -5856,7 +5501,7 @@ Object.defineProperty(exports, "__esModule", {
5856
5501
  value: true
5857
5502
  });
5858
5503
 
5859
- var React = __webpack_require__(0);
5504
+ var React = __webpack_require__(1);
5860
5505
 
5861
5506
  var styled_components_1 = __webpack_require__(4);
5862
5507
 
@@ -5867,7 +5512,7 @@ var Cover = styled_components_1.default.div.withConfig({
5867
5512
  componentId: "sc-1gsbnxb-0"
5868
5513
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
5869
5514
  var Blocker = styled_components_1.default.div.attrs({
5870
- 'data-splunk-visualization-version': "26.2.1 - 714383dbb"
5515
+ 'data-splunk-visualization-version': "26.4.0 - 04078274d"
5871
5516
  }).withConfig({
5872
5517
  displayName: "withEditModeCover__Blocker",
5873
5518
  componentId: "sc-1gsbnxb-1"
@@ -5899,7 +5544,7 @@ exports.default = withEditModeCover;
5899
5544
 
5900
5545
  /***/ }),
5901
5546
 
5902
- /***/ 65:
5547
+ /***/ 63:
5903
5548
  /***/ (function(module, exports, __webpack_require__) {
5904
5549
 
5905
5550
  "use strict";
@@ -5909,15 +5554,15 @@ Object.defineProperty(exports, "__esModule", {
5909
5554
  value: true
5910
5555
  });
5911
5556
 
5912
- var React = __webpack_require__(0);
5557
+ var React = __webpack_require__(1);
5913
5558
 
5914
5559
  var colorUtils_1 = __webpack_require__(15);
5915
5560
 
5916
5561
  var variables_1 = __webpack_require__(13);
5917
5562
 
5918
- var IconPlaceholder_1 = __webpack_require__(37);
5563
+ var IconPlaceholder_1 = __webpack_require__(36);
5919
5564
 
5920
- var VizBehavior_1 = __webpack_require__(6);
5565
+ var VizBehavior_1 = __webpack_require__(7);
5921
5566
 
5922
5567
  var hocUtils_1 = __webpack_require__(23);
5923
5568
 
@@ -5964,27 +5609,30 @@ exports.default = withPlaceholder;
5964
5609
 
5965
5610
  /***/ }),
5966
5611
 
5967
- /***/ 66:
5612
+ /***/ 64:
5968
5613
  /***/ (function(module, exports, __webpack_require__) {
5969
5614
 
5970
5615
  "use strict";
5971
5616
 
5972
5617
 
5973
- var _slicedToArray = __webpack_require__(7);
5618
+ var _slicedToArray = __webpack_require__(5);
5974
5619
 
5975
5620
  Object.defineProperty(exports, "__esModule", {
5976
5621
  value: true
5977
5622
  });
5978
5623
 
5979
- var react_1 = __webpack_require__(0);
5624
+ var react_1 = __webpack_require__(1);
5980
5625
 
5981
- var lodash_1 = __webpack_require__(3);
5626
+ var lodash_1 = __webpack_require__(2);
5982
5627
 
5983
5628
  var dataUtils_1 = __webpack_require__(14);
5984
5629
 
5985
- var usePrevious_1 = __webpack_require__(33);
5630
+ var usePrevious_1 = __webpack_require__(32);
5631
+
5632
+ var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
5986
5633
 
5987
- var useGetXAndYFields_1 = __webpack_require__(67);
5634
+
5635
+ var downsampleVizOptionProperties = ['nullValueDisplay'];
5988
5636
 
5989
5637
  var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
5990
5638
  var dataSources = _ref.dataSources,
@@ -5998,8 +5646,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
5998
5646
  options: options,
5999
5647
  context: context,
6000
5648
  dataSources: dataSources
6001
- });
6002
- var previousXAndYFieldsWithTypes = (0, usePrevious_1.default)(xAndYFieldsWithTypes);
5649
+ }); // Extract viz options that impact downsampling.
5650
+
5651
+ var downsampleVizOptions = (0, react_1.useMemo)(function () {
5652
+ return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
5653
+ }, [options]);
5654
+ var downsampleDSOptions = (0, react_1.useMemo)(function () {
5655
+ return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
5656
+ }, [xAndYFieldsWithTypes, downsampleVizOptions]);
5657
+ var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
6003
5658
  var previousDataSources = (0, usePrevious_1.default)(dataSources);
6004
5659
  var previousThreshold = (0, usePrevious_1.default)(threshold);
6005
5660
 
@@ -6007,7 +5662,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
6007
5662
  return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
6008
5663
  dataSources: dataSources,
6009
5664
  threshold: threshold,
6010
- options: xAndYFieldsWithTypes
5665
+ options: downsampleDSOptions
6011
5666
  }) : dataSources;
6012
5667
  }),
6013
5668
  _ref3 = _slicedToArray(_ref2, 2),
@@ -6035,7 +5690,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
6035
5690
  return;
6036
5691
  }
6037
5692
 
6038
- if ((0, lodash_1.isEqual)(previousXAndYFieldsWithTypes, xAndYFieldsWithTypes) && previousDataSources === dataSources && previousThreshold === threshold) {
5693
+ if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
6039
5694
  return;
6040
5695
  } // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
6041
5696
  // while the viz is being resized
@@ -6043,10 +5698,10 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
6043
5698
 
6044
5699
  debouncedDownsampleDataSources({
6045
5700
  dataSources: dataSources,
6046
- options: xAndYFieldsWithTypes,
5701
+ options: downsampleDSOptions,
6047
5702
  threshold: threshold
6048
5703
  }); // need to detect if this runs as part of the initial render
6049
- }, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousXAndYFieldsWithTypes, previousDataSources, previousThreshold]);
5704
+ }, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
6050
5705
  return downsampledDataSources;
6051
5706
  };
6052
5707
 
@@ -6054,19 +5709,19 @@ exports.default = useDownsampleDataSources;
6054
5709
 
6055
5710
  /***/ }),
6056
5711
 
6057
- /***/ 67:
5712
+ /***/ 65:
6058
5713
  /***/ (function(module, exports, __webpack_require__) {
6059
5714
 
6060
5715
  "use strict";
6061
5716
 
6062
5717
 
6063
- var _toConsumableArray = __webpack_require__(8);
5718
+ var _toConsumableArray = __webpack_require__(6);
6064
5719
 
6065
5720
  Object.defineProperty(exports, "__esModule", {
6066
5721
  value: true
6067
5722
  });
6068
5723
 
6069
- var react_1 = __webpack_require__(0);
5724
+ var react_1 = __webpack_require__(1);
6070
5725
 
6071
5726
  var Options_1 = __webpack_require__(16);
6072
5727
  /**
@@ -6169,7 +5824,7 @@ exports.default = useGetXAndYFields;
6169
5824
 
6170
5825
  /***/ }),
6171
5826
 
6172
- /***/ 68:
5827
+ /***/ 66:
6173
5828
  /***/ (function(module, exports, __webpack_require__) {
6174
5829
 
6175
5830
  "use strict";
@@ -6180,7 +5835,7 @@ Object.defineProperty(exports, "__esModule", {
6180
5835
  });
6181
5836
  exports.getFeatureFlag = void 0;
6182
5837
 
6183
- var FeatureFlags_1 = __webpack_require__(69);
5838
+ var FeatureFlags_1 = __webpack_require__(67);
6184
5839
 
6185
5840
  var getFeatureFlag = function getFeatureFlag(context, flagName) {
6186
5841
  // look for feature flag in context first
@@ -6205,7 +5860,7 @@ exports.getFeatureFlag = getFeatureFlag;
6205
5860
 
6206
5861
  /***/ }),
6207
5862
 
6208
- /***/ 69:
5863
+ /***/ 67:
6209
5864
  /***/ (function(module, exports) {
6210
5865
 
6211
5866
  module.exports = require("@splunk/visualization-context/FeatureFlags");
@@ -6213,34 +5868,60 @@ module.exports = require("@splunk/visualization-context/FeatureFlags");
6213
5868
  /***/ }),
6214
5869
 
6215
5870
  /***/ 7:
6216
- /***/ (function(module, exports) {
5871
+ /***/ (function(module, exports, __webpack_require__) {
6217
5872
 
6218
- module.exports = require("@babel/runtime/helpers/slicedToArray");
5873
+ "use strict";
6219
5874
 
6220
- /***/ }),
6221
5875
 
6222
- /***/ 72:
6223
- /***/ (function(module, exports) {
5876
+ Object.defineProperty(exports, "__esModule", {
5877
+ value: true
5878
+ });
5879
+ exports.VizBehavior = void 0;
5880
+ var VizBehavior;
6224
5881
 
6225
- module.exports = require("@splunk/visualization-icons/placeholders");
5882
+ (function (VizBehavior) {
5883
+ /**
5884
+ * Dynamic Options Behavior.
5885
+ * This allows visualization options to be powered by data
5886
+ *
5887
+ * **Example**
5888
+ *
5889
+ * sparklineValues: ">primary|seriesByIndex(0)"
5890
+ * would configure sparklineValues with an array of data points
5891
+ * coming from the first series in the primary datasource
5892
+ *
5893
+ */
5894
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
5895
+ VizBehavior["EVENTS"] = "events";
5896
+ VizBehavior["DOWNSAMPLING"] = "downsampling";
5897
+ /**
5898
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
5899
+ * missing.
5900
+ * @type {string}
5901
+ */
5902
+
5903
+ VizBehavior["PLACEHOLDER"] = "placeholder";
5904
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
5905
+ VizBehavior["TRELLIS"] = "trellis";
5906
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
6226
5907
 
6227
5908
  /***/ }),
6228
5909
 
6229
- /***/ 73:
5910
+ /***/ 70:
6230
5911
  /***/ (function(module, exports) {
6231
5912
 
6232
- module.exports = require("@splunk/visualization-color-palettes");
5913
+ module.exports = require("@splunk/visualization-icons/placeholders");
6233
5914
 
6234
5915
  /***/ }),
6235
5916
 
6236
- /***/ 74:
5917
+ /***/ 71:
6237
5918
  /***/ (function(module, exports) {
6238
5919
 
6239
5920
  module.exports = require("@splunk/visualization-icons");
6240
5921
 
6241
5922
  /***/ }),
6242
5923
 
6243
- /***/ 75:
5924
+ /***/ 72:
6244
5925
  /***/ (function(module, exports, __webpack_require__) {
6245
5926
 
6246
5927
  "use strict";
@@ -6250,14 +5931,14 @@ Object.defineProperty(exports, "__esModule", {
6250
5931
  value: true
6251
5932
  });
6252
5933
 
6253
- var i18n_1 = __webpack_require__(2);
5934
+ var i18n_1 = __webpack_require__(3);
6254
5935
 
6255
5936
  var background = function background(_ref) {
6256
5937
  var label = _ref.label,
6257
5938
  themes = _ref.themes,
6258
5939
  labelPosition = _ref.labelPosition;
6259
5940
  return [{
6260
- label: (0, i18n_1._)(label || 'Background'),
5941
+ label: (0, i18n_1._)(label || 'Background color'),
6261
5942
  option: 'backgroundColor',
6262
5943
  editor: 'editor.color',
6263
5944
  editorProps: {
@@ -6271,28 +5952,35 @@ exports.default = background;
6271
5952
 
6272
5953
  /***/ }),
6273
5954
 
6274
- /***/ 8:
5955
+ /***/ 74:
6275
5956
  /***/ (function(module, exports) {
6276
5957
 
6277
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
5958
+ module.exports = require("@splunk/visualization-color-palettes");
6278
5959
 
6279
5960
  /***/ }),
6280
5961
 
6281
- /***/ 81:
5962
+ /***/ 78:
6282
5963
  /***/ (function(module, exports) {
6283
5964
 
6284
5965
  module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
6285
5966
 
6286
5967
  /***/ }),
6287
5968
 
6288
- /***/ 82:
5969
+ /***/ 79:
6289
5970
  /***/ (function(module, exports) {
6290
5971
 
6291
5972
  module.exports = require("@splunk/themes");
6292
5973
 
6293
5974
  /***/ }),
6294
5975
 
6295
- /***/ 84:
5976
+ /***/ 8:
5977
+ /***/ (function(module, exports) {
5978
+
5979
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
5980
+
5981
+ /***/ }),
5982
+
5983
+ /***/ 81:
6296
5984
  /***/ (function(module, exports) {
6297
5985
 
6298
5986
  module.exports = require("@splunk/react-ui/Popover");
@@ -6302,7 +5990,7 @@ module.exports = require("@splunk/react-ui/Popover");
6302
5990
  /***/ 9:
6303
5991
  /***/ (function(module, exports) {
6304
5992
 
6305
- module.exports = require("@babel/runtime/helpers/defineProperty");
5993
+ module.exports = require("@splunk/visualization-schemas");
6306
5994
 
6307
5995
  /***/ })
6308
5996