@splunk/visualizations 25.0.1 → 25.2.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 (200) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_Background_Color_Red.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_Basic.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_Simulated_Instance.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_for_Numeric_Field_Simulated_Instance.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Dark.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Light.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Background_color_cyan.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_after_default.png +0 -0
  10. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_before.png +0 -0
  11. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Background_Color_white_Under_Label_and_Unit_specified.png +0 -0
  12. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Major_Value_is_null.png +0 -0
  13. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_after_default.png +0 -0
  14. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_before.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Events_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  31. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  32. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  33. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  34. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  35. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  36. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  37. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  38. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Background_Color_Light_Blue.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields_with_Highlight.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Show_Placeholder.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Events_Events_With_Options.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_ES.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_after.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_before.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_After.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_Before.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_After.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_Before.png +0 -0
  58. package/Area.config.js +146 -157
  59. package/Area.config.js.map +1 -1
  60. package/Area.js +459 -545
  61. package/Area.js.map +1 -1
  62. package/Bar.config.js +148 -153
  63. package/Bar.config.js.map +1 -1
  64. package/Bar.js +468 -548
  65. package/Bar.js.map +1 -1
  66. package/Bubble.config.js +143 -123
  67. package/Bubble.config.js.map +1 -1
  68. package/Bubble.js +475 -530
  69. package/Bubble.js.map +1 -1
  70. package/ChoroplethSvg.config.js +87 -81
  71. package/ChoroplethSvg.config.js.map +1 -1
  72. package/ChoroplethSvg.js +352 -422
  73. package/ChoroplethSvg.js.map +1 -1
  74. package/Column.config.js +144 -151
  75. package/Column.config.js.map +1 -1
  76. package/Column.js +463 -546
  77. package/Column.js.map +1 -1
  78. package/Ellipse.config.js +86 -80
  79. package/Ellipse.config.js.map +1 -1
  80. package/Ellipse.js +319 -389
  81. package/Ellipse.js.map +1 -1
  82. package/Events.config.js +668 -0
  83. package/Events.config.js.map +1 -0
  84. package/Events.js +3116 -0
  85. package/Events.js.map +1 -0
  86. package/FillerGauge.config.js +94 -87
  87. package/FillerGauge.config.js.map +1 -1
  88. package/FillerGauge.js +352 -415
  89. package/FillerGauge.js.map +1 -1
  90. package/Image.config.js +74 -74
  91. package/Image.config.js.map +1 -1
  92. package/Image.js +713 -801
  93. package/Image.js.map +1 -1
  94. package/Line.config.js +145 -142
  95. package/Line.config.js.map +1 -1
  96. package/Line.js +471 -538
  97. package/Line.js.map +1 -1
  98. package/LinkGraph.config.js +120 -113
  99. package/LinkGraph.config.js.map +1 -1
  100. package/LinkGraph.js +24563 -717
  101. package/LinkGraph.js.map +1 -1
  102. package/Map.config.js +107 -100
  103. package/Map.config.js.map +1 -1
  104. package/Map.js +2358 -2465
  105. package/Map.js.map +1 -1
  106. package/Markdown.config.js +112 -112
  107. package/Markdown.config.js.map +1 -1
  108. package/Markdown.js +844 -918
  109. package/Markdown.js.map +1 -1
  110. package/MarkerGauge.config.js +185 -186
  111. package/MarkerGauge.config.js.map +1 -1
  112. package/MarkerGauge.js +1274 -1363
  113. package/MarkerGauge.js.map +1 -1
  114. package/ParallelCoordinates.config.js +137 -137
  115. package/ParallelCoordinates.config.js.map +1 -1
  116. package/ParallelCoordinates.js +732 -923
  117. package/ParallelCoordinates.js.map +1 -1
  118. package/Pie.config.js +132 -132
  119. package/Pie.config.js.map +1 -1
  120. package/Pie.js +1193 -1281
  121. package/Pie.js.map +1 -1
  122. package/Punchcard.config.js +138 -138
  123. package/Punchcard.config.js.map +1 -1
  124. package/Punchcard.js +2723 -2923
  125. package/Punchcard.js.map +1 -1
  126. package/Rectangle.config.js +267 -260
  127. package/Rectangle.config.js.map +1 -1
  128. package/Rectangle.js +1107 -1188
  129. package/Rectangle.js.map +1 -1
  130. package/Sankey.config.js +149 -142
  131. package/Sankey.config.js.map +1 -1
  132. package/Sankey.js +2613 -2808
  133. package/Sankey.js.map +1 -1
  134. package/Scatter.config.js +144 -123
  135. package/Scatter.config.js.map +1 -1
  136. package/Scatter.js +1820 -1889
  137. package/Scatter.js.map +1 -1
  138. package/SingleValue.config.js +121 -114
  139. package/SingleValue.config.js.map +1 -1
  140. package/SingleValue.js +2554 -2635
  141. package/SingleValue.js.map +1 -1
  142. package/SingleValueBasic.js +34 -34
  143. package/SingleValueBasic.js.map +1 -1
  144. package/SingleValueIcon.config.js +129 -120
  145. package/SingleValueIcon.config.js.map +1 -1
  146. package/SingleValueIcon.js +994 -1212
  147. package/SingleValueIcon.js.map +1 -1
  148. package/SingleValueRadial.config.js +216 -178
  149. package/SingleValueRadial.config.js.map +1 -1
  150. package/SingleValueRadial.js +2235 -2316
  151. package/SingleValueRadial.js.map +1 -1
  152. package/Table.config.js +150 -151
  153. package/Table.config.js.map +1 -1
  154. package/Table.js +2446 -2525
  155. package/Table.js.map +1 -1
  156. package/common/Charting.js +11 -11
  157. package/common/Charting.js.map +1 -1
  158. package/common/ChartingApi.js +2 -2
  159. package/common/ChartingApi.js.map +1 -1
  160. package/common/EventsDoc.js +25 -18
  161. package/common/EventsDoc.js.map +1 -1
  162. package/common/GaugeMajorTicks.js +10 -10
  163. package/common/GaugeMajorTicks.js.map +1 -1
  164. package/common/GaugeValueMarker.js +10 -10
  165. package/common/GaugeValueMarker.js.map +1 -1
  166. package/common/OptionsDoc.js +57 -357
  167. package/common/OptionsDoc.js.map +1 -1
  168. package/common/OverviewDoc.js +22 -22
  169. package/common/OverviewDoc.js.map +1 -1
  170. package/common/SplunkVisualization.js +4 -4
  171. package/common/SplunkVisualization.js.map +1 -1
  172. package/common/SplunkVisualizationApi.js +2 -2
  173. package/common/SplunkVisualizationApi.js.map +1 -1
  174. package/common/ThemesDoc.js +21 -21
  175. package/common/ThemesDoc.js.map +1 -1
  176. package/common/chartingUtils.js +4 -4
  177. package/common/chartingUtils.js.map +1 -1
  178. package/common/docUtils.js +4 -4
  179. package/common/docUtils.js.map +1 -1
  180. package/common/gaugeUtils.js +13 -13
  181. package/common/gaugeUtils.js.map +1 -1
  182. package/common/shapeUtils.js +8 -8
  183. package/common/shapeUtils.js.map +1 -1
  184. package/common/utils/configUtils.js +17 -18
  185. package/common/utils/configUtils.js.map +1 -1
  186. package/common/utils/{JSONSchemaUtils.js → dataUtils.js} +24 -25
  187. package/common/utils/dataUtils.js.map +1 -0
  188. package/common/utils/hocUtils.js +5 -85
  189. package/common/utils/hocUtils.js.map +1 -1
  190. package/common/utils/mapUtils.js +198 -0
  191. package/common/utils/mapUtils.js.map +1 -0
  192. package/common/utils/singleValueUtils.js +15 -12
  193. package/common/utils/singleValueUtils.js.map +1 -1
  194. package/common/utils/testHelper.js +8 -8
  195. package/common/utils/testHelper.js.map +1 -1
  196. package/common/withDashboardViz.js +120 -207
  197. package/common/withDashboardViz.js.map +1 -1
  198. package/package.json +16 -14
  199. package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
  200. package/common/utils/JSONSchemaUtils.js.map +0 -1
package/Map.config.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 50);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 52);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -98,14 +98,63 @@ module.exports = require("@splunk/ui-utils/i18n");
98
98
 
99
99
  /***/ }),
100
100
  /* 1 */
101
+ /***/ (function(module, exports) {
102
+
103
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
104
+
105
+ /***/ }),
106
+ /* 2 */
101
107
  /***/ (function(module, exports, __webpack_require__) {
102
108
 
103
109
  "use strict";
104
110
 
105
111
 
106
- var _toConsumableArray = __webpack_require__(2);
112
+ Object.defineProperty(exports, "__esModule", {
113
+ value: true
114
+ });
115
+ exports.VizBehavior = void 0;
116
+ var VizBehavior;
107
117
 
108
- var _defineProperty = __webpack_require__(6);
118
+ (function (VizBehavior) {
119
+ /**
120
+ * Dynamic Options Behavior.
121
+ * This allows visualization options to be powered by data
122
+ *
123
+ * **Example**
124
+ *
125
+ * sparklineValues: ">primary|seriesByIndex(0)"
126
+ * would configure sparklineValues with an array of data points
127
+ * coming from the first series in the primary datasource
128
+ *
129
+ */
130
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
131
+ VizBehavior["EVENTS"] = "events";
132
+ /**
133
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
134
+ * missing.
135
+ * @type {string}
136
+ */
137
+
138
+ VizBehavior["PLACEHOLDER"] = "placeholder";
139
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
140
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
141
+
142
+ /***/ }),
143
+ /* 3 */
144
+ /***/ (function(module, exports) {
145
+
146
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
147
+
148
+ /***/ }),
149
+ /* 4 */
150
+ /***/ (function(module, exports, __webpack_require__) {
151
+
152
+ "use strict";
153
+
154
+
155
+ var _toConsumableArray = __webpack_require__(1);
156
+
157
+ var _defineProperty = __webpack_require__(7);
109
158
 
110
159
  var __rest = this && this.__rest || function (s, e) {
111
160
  var t = {};
@@ -123,13 +172,13 @@ var __rest = this && this.__rest || function (s, e) {
123
172
  Object.defineProperty(exports, "__esModule", {
124
173
  value: true
125
174
  });
126
- exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
175
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
127
176
 
128
- var lodash_1 = __webpack_require__(5);
177
+ var lodash_1 = __webpack_require__(6);
129
178
 
130
- var schemaUtils_1 = __webpack_require__(4);
179
+ var schemaUtils_1 = __webpack_require__(3);
131
180
 
132
- var VizBehavior_1 = __webpack_require__(3);
181
+ var VizBehavior_1 = __webpack_require__(2);
133
182
 
134
183
  var dynamicOptionsDSLType = {
135
184
  type: 'string',
@@ -333,68 +382,20 @@ var insertLayout = function insertLayout(layout, index) {
333
382
  exports.insertLayout = insertLayout;
334
383
 
335
384
  /***/ }),
336
- /* 2 */
337
- /***/ (function(module, exports) {
338
-
339
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
340
-
341
- /***/ }),
342
- /* 3 */
343
- /***/ (function(module, exports, __webpack_require__) {
344
-
345
- "use strict";
346
-
347
-
348
- Object.defineProperty(exports, "__esModule", {
349
- value: true
350
- });
351
- exports.VizBehavior = void 0;
352
- var VizBehavior;
353
-
354
- (function (VizBehavior) {
355
- /**
356
- * Dynamic Options Behavior.
357
- * This allows visualization options to be powered by data
358
- *
359
- * **Example**
360
- *
361
- * sparklineValues: ">primary|seriesByIndex(0)"
362
- * would configure sparklineValues with an array of data points
363
- * coming from the first series in the primary datasource
364
- *
365
- */
366
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
367
- VizBehavior["EVENTS"] = "events";
368
- /**
369
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
370
- * missing.
371
- * @type {string}
372
- */
373
-
374
- VizBehavior["PLACEHOLDER"] = "placeholder";
375
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
376
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
377
-
378
- /***/ }),
379
- /* 4 */
380
- /***/ (function(module, exports) {
381
-
382
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
383
-
384
- /***/ }),
385
- /* 5 */
385
+ /* 5 */,
386
+ /* 6 */
386
387
  /***/ (function(module, exports) {
387
388
 
388
389
  module.exports = require("lodash");
389
390
 
390
391
  /***/ }),
391
- /* 6 */
392
+ /* 7 */
392
393
  /***/ (function(module, exports) {
393
394
 
394
395
  module.exports = require("@babel/runtime/helpers/defineProperty");
395
396
 
396
397
  /***/ }),
397
- /* 7 */
398
+ /* 8 */
398
399
  /***/ (function(module, exports, __webpack_require__) {
399
400
 
400
401
  "use strict";
@@ -422,42 +423,41 @@ var VizCategory;
422
423
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
423
424
 
424
425
  /***/ }),
425
- /* 8 */,
426
426
  /* 9 */,
427
- /* 10 */
427
+ /* 10 */,
428
+ /* 11 */
428
429
  /***/ (function(module, exports) {
429
430
 
430
431
  module.exports = require("@splunk/visualization-icons/placeholders");
431
432
 
432
433
  /***/ }),
433
- /* 11 */
434
+ /* 12 */
434
435
  /***/ (function(module, exports) {
435
436
 
436
437
  module.exports = require("@splunk/visualization-icons");
437
438
 
438
439
  /***/ }),
439
- /* 12 */
440
+ /* 13 */,
441
+ /* 14 */
440
442
  /***/ (function(module, exports) {
441
443
 
442
444
  module.exports = require("@splunk/visualization-color-palettes");
443
445
 
444
446
  /***/ }),
445
- /* 13 */,
446
- /* 14 */,
447
447
  /* 15 */,
448
448
  /* 16 */,
449
449
  /* 17 */,
450
450
  /* 18 */,
451
451
  /* 19 */,
452
452
  /* 20 */,
453
- /* 21 */,
454
- /* 22 */,
455
- /* 23 */
453
+ /* 21 */
456
454
  /***/ (function(module, exports) {
457
455
 
458
456
  module.exports = require("@splunk/themes");
459
457
 
460
458
  /***/ }),
459
+ /* 22 */,
460
+ /* 23 */,
461
461
  /* 24 */,
462
462
  /* 25 */,
463
463
  /* 26 */,
@@ -484,7 +484,9 @@ module.exports = require("@splunk/themes");
484
484
  /* 47 */,
485
485
  /* 48 */,
486
486
  /* 49 */,
487
- /* 50 */
487
+ /* 50 */,
488
+ /* 51 */,
489
+ /* 52 */
488
490
  /***/ (function(module, exports, __webpack_require__) {
489
491
 
490
492
  "use strict";
@@ -494,25 +496,25 @@ Object.defineProperty(exports, "__esModule", {
494
496
  value: true
495
497
  });
496
498
 
497
- var visualization_icons_1 = __webpack_require__(11);
499
+ var visualization_icons_1 = __webpack_require__(12);
498
500
 
499
- var placeholders_1 = __webpack_require__(10);
501
+ var placeholders_1 = __webpack_require__(11);
500
502
 
501
- var schemaUtils_1 = __webpack_require__(4);
503
+ var schemaUtils_1 = __webpack_require__(3);
502
504
 
503
- var visualization_color_palettes_1 = __webpack_require__(12);
505
+ var visualization_color_palettes_1 = __webpack_require__(14);
504
506
 
505
- var themes_1 = __webpack_require__(23);
507
+ var themes_1 = __webpack_require__(21);
506
508
 
507
509
  var i18n_1 = __webpack_require__(0);
508
510
 
509
- var VizBehavior_1 = __webpack_require__(3);
511
+ var VizBehavior_1 = __webpack_require__(2);
510
512
 
511
- var VizCategory_1 = __webpack_require__(7);
513
+ var VizCategory_1 = __webpack_require__(8);
512
514
 
513
- var configUtils_1 = __webpack_require__(1);
515
+ var configUtils_1 = __webpack_require__(4);
514
516
 
515
- var MapUtils_1 = __webpack_require__(51);
517
+ var MapUtils_1 = __webpack_require__(53);
516
518
 
517
519
  var defaultContext = {
518
520
  colorRangeConfig: [{
@@ -950,34 +952,34 @@ var config = {
950
952
  exports.default = configUtils_1.enhanceConfig(config);
951
953
 
952
954
  /***/ }),
953
- /* 51 */
955
+ /* 53 */
954
956
  /***/ (function(module, exports, __webpack_require__) {
955
957
 
956
958
  "use strict";
957
959
 
958
960
 
959
- var _defineProperty = __webpack_require__(6);
961
+ var _defineProperty = __webpack_require__(7);
960
962
 
961
- var _slicedToArray = __webpack_require__(52);
963
+ var _slicedToArray = __webpack_require__(54);
962
964
 
963
- var _toConsumableArray = __webpack_require__(2);
965
+ var _toConsumableArray = __webpack_require__(1);
964
966
 
965
967
  Object.defineProperty(exports, "__esModule", {
966
968
  value: true
967
969
  });
968
970
  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;
969
971
 
970
- var lodash_1 = __webpack_require__(5);
972
+ var lodash_1 = __webpack_require__(6);
971
973
 
972
- var d3_scale_1 = __webpack_require__(53);
974
+ var d3_scale_1 = __webpack_require__(55);
973
975
 
974
- var chroma = __webpack_require__(54);
976
+ var chroma = __webpack_require__(56);
975
977
 
976
- var colorUtils_1 = __webpack_require__(55);
978
+ var colorUtils_1 = __webpack_require__(57);
977
979
 
978
- var visualization_color_palettes_1 = __webpack_require__(12);
980
+ var visualization_color_palettes_1 = __webpack_require__(14);
979
981
 
980
- var types_1 = __webpack_require__(56);
982
+ var types_1 = __webpack_require__(58);
981
983
 
982
984
  exports.MAX_LATITUDE = 90;
983
985
  exports.MIN_LATITUDE = -90;
@@ -1136,9 +1138,10 @@ var getMapStyle = function getMapStyle(_ref2) {
1136
1138
 
1137
1139
  exports.getMapStyle = getMapStyle;
1138
1140
 
1139
- var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig(tileConfig) {
1141
+ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig(tileConfig, baseLayerTileServer) {
1140
1142
  var sources = tileConfig.sources,
1141
- layers = tileConfig.layers; // check sources for minzoom maxzoom first
1143
+ layers = tileConfig.layers;
1144
+ var matchedBaseLayerTileServer = false; // check sources for minzoom maxzoom first
1142
1145
 
1143
1146
  var sourceKeys = Object.keys(sources);
1144
1147
 
@@ -1147,7 +1150,11 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
1147
1150
  minzoom = _sources$sourceKeys$i.minzoom,
1148
1151
  maxzoom = _sources$sourceKeys$i.maxzoom;
1149
1152
 
1150
- if (lodash_1.isNumber(minzoom) && lodash_1.isNumber(maxzoom)) {
1153
+ if (baseLayerTileServer && sources[sourceKeys[i]].tiles.indexOf(baseLayerTileServer) !== -1) {
1154
+ matchedBaseLayerTileServer = true;
1155
+ }
1156
+
1157
+ if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(minzoom) && lodash_1.isNumber(maxzoom)) {
1151
1158
  return {
1152
1159
  minZoom: minzoom,
1153
1160
  maxZoom: maxzoom
@@ -1161,7 +1168,7 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
1161
1168
  _minzoom = _layers$_i.minzoom,
1162
1169
  _maxzoom = _layers$_i.maxzoom;
1163
1170
 
1164
- if (lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
1171
+ if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
1165
1172
  return {
1166
1173
  minZoom: _minzoom,
1167
1174
  maxZoom: _maxzoom
@@ -1452,7 +1459,7 @@ var getScaledOpacities = function getScaledOpacities(colors) {
1452
1459
  exports.getScaledOpacities = getScaledOpacities;
1453
1460
 
1454
1461
  var compareBaseStyles = function compareBaseStyles(curr, next) {
1455
- var _a, _b, _c, _d, _e, _f;
1462
+ var _a, _b, _c, _d;
1456
1463
 
1457
1464
  var currBaseLayer = (_a = curr === null || curr === void 0 ? void 0 : curr.layers) === null || _a === void 0 ? void 0 : _a.find(function (layer) {
1458
1465
  return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
@@ -1460,8 +1467,8 @@ var compareBaseStyles = function compareBaseStyles(curr, next) {
1460
1467
  var nextBaseLayer = (_b = next === null || next === void 0 ? void 0 : next.layers) === null || _b === void 0 ? void 0 : _b.find(function (layer) {
1461
1468
  return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
1462
1469
  });
1463
- var currBaseSource = lodash_1.get(curr === null || curr === void 0 ? void 0 : curr.sources, (_d = (_c = currBaseLayer) === null || _c === void 0 ? void 0 : _c.source) !== null && _d !== void 0 ? _d : '');
1464
- var nextBaseSource = lodash_1.get(next === null || next === void 0 ? void 0 : next.sources, (_f = (_e = nextBaseLayer) === null || _e === void 0 ? void 0 : _e.source) !== null && _f !== void 0 ? _f : '');
1470
+ var currBaseSource = lodash_1.get(curr === null || curr === void 0 ? void 0 : curr.sources, (_c = currBaseLayer === null || currBaseLayer === void 0 ? void 0 : currBaseLayer.source) !== null && _c !== void 0 ? _c : '');
1471
+ var nextBaseSource = lodash_1.get(next === null || next === void 0 ? void 0 : next.sources, (_d = nextBaseLayer === null || nextBaseLayer === void 0 ? void 0 : nextBaseLayer.source) !== null && _d !== void 0 ? _d : '');
1465
1472
 
1466
1473
  if (!currBaseLayer || !nextBaseLayer || !currBaseSource || !nextBaseSource) {
1467
1474
  return false;
@@ -1492,31 +1499,31 @@ var formatMetadata = function formatMetadata(choroplethLayer, i) {
1492
1499
  exports.formatMetadata = formatMetadata;
1493
1500
 
1494
1501
  /***/ }),
1495
- /* 52 */
1502
+ /* 54 */
1496
1503
  /***/ (function(module, exports) {
1497
1504
 
1498
1505
  module.exports = require("@babel/runtime/helpers/slicedToArray");
1499
1506
 
1500
1507
  /***/ }),
1501
- /* 53 */
1508
+ /* 55 */
1502
1509
  /***/ (function(module, exports) {
1503
1510
 
1504
1511
  module.exports = require("d3-scale");
1505
1512
 
1506
1513
  /***/ }),
1507
- /* 54 */
1514
+ /* 56 */
1508
1515
  /***/ (function(module, exports) {
1509
1516
 
1510
1517
  module.exports = require("chroma-js");
1511
1518
 
1512
1519
  /***/ }),
1513
- /* 55 */
1520
+ /* 57 */
1514
1521
  /***/ (function(module, exports) {
1515
1522
 
1516
1523
  module.exports = require("@splunk/visualizations-shared/colorUtils");
1517
1524
 
1518
1525
  /***/ }),
1519
- /* 56 */
1526
+ /* 58 */
1520
1527
  /***/ (function(module, exports) {
1521
1528
 
1522
1529
  module.exports = require("@splunk/visualization-encoding/utils/types");