@splunk/visualizations 23.2.0 → 23.5.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 (132) hide show
  1. package/Area.config.js +36 -30
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +243 -203
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +29 -23
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +233 -193
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +36 -23
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +247 -196
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +15 -12
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +201 -148
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +29 -23
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +235 -194
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +23 -20
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +176 -123
  24. package/Ellipse.js.map +1 -1
  25. package/FillerGauge.config.js +803 -0
  26. package/FillerGauge.config.js.map +1 -0
  27. package/FillerGauge.js +3634 -0
  28. package/FillerGauge.js.map +1 -0
  29. package/Image.config.js +13 -6
  30. package/Image.config.js.map +1 -1
  31. package/Image.js +260 -200
  32. package/Image.js.map +1 -1
  33. package/LICENSE.md +14 -0
  34. package/Line.config.js +40 -31
  35. package/Line.config.js.map +1 -1
  36. package/Line.js +248 -202
  37. package/Line.js.map +1 -1
  38. package/LinkGraph.config.js +107 -123
  39. package/LinkGraph.config.js.map +1 -1
  40. package/LinkGraph.js +241 -193
  41. package/LinkGraph.js.map +1 -1
  42. package/Markdown.config.js +95 -3
  43. package/Markdown.config.js.map +1 -1
  44. package/Markdown.js +272 -118
  45. package/Markdown.js.map +1 -1
  46. package/MarkerGauge.config.js +750 -0
  47. package/MarkerGauge.config.js.map +1 -0
  48. package/MarkerGauge.js +3758 -0
  49. package/MarkerGauge.js.map +1 -0
  50. package/ParallelCoordinates.config.js +52 -46
  51. package/ParallelCoordinates.config.js.map +1 -1
  52. package/ParallelCoordinates.js +257 -164
  53. package/ParallelCoordinates.js.map +1 -1
  54. package/Pie.config.js +61 -46
  55. package/Pie.config.js.map +1 -1
  56. package/Pie.js +254 -186
  57. package/Pie.js.map +1 -1
  58. package/Punchcard.config.js +279 -39
  59. package/Punchcard.config.js.map +1 -1
  60. package/Punchcard.js +825 -193
  61. package/Punchcard.js.map +1 -1
  62. package/README.external.md +45 -0
  63. package/README.md +18 -3
  64. package/Rectangle.config.js +89 -107
  65. package/Rectangle.config.js.map +1 -1
  66. package/Rectangle.js +204 -145
  67. package/Rectangle.js.map +1 -1
  68. package/Sankey.config.js +29 -22
  69. package/Sankey.config.js.map +1 -1
  70. package/Sankey.js +250 -186
  71. package/Sankey.js.map +1 -1
  72. package/Scatter.config.js +39 -28
  73. package/Scatter.config.js.map +1 -1
  74. package/Scatter.js +2375 -2434
  75. package/Scatter.js.map +1 -1
  76. package/SingleValue.config.js +37 -29
  77. package/SingleValue.config.js.map +1 -1
  78. package/SingleValue.js +3108 -3174
  79. package/SingleValue.js.map +1 -1
  80. package/SingleValueBasic.js +37 -23
  81. package/SingleValueBasic.js.map +1 -1
  82. package/SingleValueIcon.config.js +36 -28
  83. package/SingleValueIcon.config.js.map +1 -1
  84. package/SingleValueIcon.js +279 -210
  85. package/SingleValueIcon.js.map +1 -1
  86. package/SingleValueRadial.config.js +15 -13
  87. package/SingleValueRadial.config.js.map +1 -1
  88. package/SingleValueRadial.js +299 -253
  89. package/SingleValueRadial.js.map +1 -1
  90. package/Table.config.js +26 -10
  91. package/Table.config.js.map +1 -1
  92. package/Table.js +382 -265
  93. package/Table.js.map +1 -1
  94. package/common/Charting.js +33 -30
  95. package/common/Charting.js.map +1 -1
  96. package/common/ChartingApi.js +4 -4
  97. package/common/ChartingApi.js.map +1 -1
  98. package/common/EventsDoc.js +36 -34
  99. package/common/EventsDoc.js.map +1 -1
  100. package/common/GaugeMajorTicks.js +386 -0
  101. package/common/GaugeMajorTicks.js.map +1 -0
  102. package/common/GaugeValueMarker.js +333 -0
  103. package/common/GaugeValueMarker.js.map +1 -0
  104. package/common/OptionsDoc.js +47 -33
  105. package/common/OptionsDoc.js.map +1 -1
  106. package/common/OverviewDoc.js +376 -0
  107. package/common/OverviewDoc.js.map +1 -0
  108. package/common/SplunkVisualization.js +6 -6
  109. package/common/SplunkVisualization.js.map +1 -1
  110. package/common/SplunkVisualizationApi.js +10 -10
  111. package/common/SplunkVisualizationApi.js.map +1 -1
  112. package/common/ThemesDoc.js +55 -72
  113. package/common/ThemesDoc.js.map +1 -1
  114. package/common/chartingUtils.js +15 -13
  115. package/common/chartingUtils.js.map +1 -1
  116. package/common/docUtils.js +4 -4
  117. package/common/docUtils.js.map +1 -1
  118. package/common/gaugeUtils.js +893 -0
  119. package/common/gaugeUtils.js.map +1 -0
  120. package/common/shapeUtils.js +8 -8
  121. package/common/shapeUtils.js.map +1 -1
  122. package/common/utils/JSONSchemaUtils.js.map +1 -1
  123. package/common/utils/configUtils.js.map +1 -1
  124. package/common/utils/hocUtils.js +57 -3
  125. package/common/utils/hocUtils.js.map +1 -1
  126. package/common/utils/singleValueUtils.js +24 -10
  127. package/common/utils/singleValueUtils.js.map +1 -1
  128. package/common/withDashboardViz.js +158 -95
  129. package/common/withDashboardViz.js.map +1 -1
  130. package/package.json +18 -14
  131. package/common/utils/eventUtils.js +0 -115
  132. package/common/utils/eventUtils.js.map +0 -1
package/Rectangle.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 = 202);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 217);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,11 +109,18 @@ module.exports = require("react");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/visualizations-shared/colorUtils");
112
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
113
113
 
114
114
  /***/ }),
115
115
 
116
116
  /***/ 11:
117
+ /***/ (function(module, exports) {
118
+
119
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
120
+
121
+ /***/ }),
122
+
123
+ /***/ 12:
117
124
  /***/ (function(module, exports, __webpack_require__) {
118
125
 
119
126
  "use strict";
@@ -127,11 +134,11 @@ var React = __webpack_require__(1);
127
134
 
128
135
  var styled_components_1 = __webpack_require__(4);
129
136
 
130
- var SizeAwareWrapper_1 = __webpack_require__(18);
137
+ var SizeAwareWrapper_1 = __webpack_require__(17);
131
138
 
132
139
  var style_1 = __webpack_require__(13);
133
140
 
134
- var colorUtils_1 = __webpack_require__(10);
141
+ var colorUtils_1 = __webpack_require__(11);
135
142
 
136
143
  var Item = styled_components_1.default.div.attrs(function (_ref) {
137
144
  var width = _ref.width;
@@ -209,39 +216,7 @@ exports.default = withFixedSizeContainer;
209
216
 
210
217
  /***/ }),
211
218
 
212
- /***/ 12:
213
- /***/ (function(module, exports, __webpack_require__) {
214
-
215
- "use strict";
216
-
217
-
218
- Object.defineProperty(exports, "__esModule", {
219
- value: true
220
- });
221
- exports.extendStaticWrapperProps = void 0;
222
- /**
223
- * @method extendStaticWrapperProps
224
- * @param {Object} props
225
- * @param {DashboardVizType} props.Wrapper
226
- * @param {DashboardVizType} props.Visualization
227
- */
228
-
229
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
230
- var Wrapper = _ref.Wrapper,
231
- Visualization = _ref.Visualization;
232
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
233
- extendProperties.forEach(function (prop) {
234
- if (Visualization[prop]) {
235
- Wrapper[prop] = Visualization[prop];
236
- }
237
- });
238
- };
239
-
240
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
241
-
242
- /***/ }),
243
-
244
- /***/ 121:
219
+ /***/ 125:
245
220
  /***/ (function(module, exports, __webpack_require__) {
246
221
 
247
222
  "use strict";
@@ -273,13 +248,13 @@ var lodash_1 = __webpack_require__(2);
273
248
 
274
249
  var T = __webpack_require__(0);
275
250
 
276
- var withDashboardViz_1 = __webpack_require__(25);
251
+ var withDashboardViz_1 = __webpack_require__(27);
277
252
 
278
- var config_1 = __webpack_require__(203);
253
+ var config_1 = __webpack_require__(218);
279
254
 
280
255
  exports.config = config_1.default;
281
256
 
282
- var shapeUtils_1 = __webpack_require__(88);
257
+ var shapeUtils_1 = __webpack_require__(89);
283
258
 
284
259
  var SVGContainer = styled_components_1.default.svg.withConfig({
285
260
  displayName: "Rectangle__SVGContainer",
@@ -301,17 +276,25 @@ var RectangleShape = shapeUtils_1.getStyledShape('rect');
301
276
  var RectangleViz = function RectangleViz(props) {
302
277
  var width = props.width,
303
278
  height = props.height,
279
+ options = props.options,
304
280
  onRectangleClick = props.onRectangleClick;
305
- var options = props.options;
281
+ var strokeWidth = options.strokeWidth;
282
+ var rx = options.rx,
283
+ ry = options.ry; // If either radius value is NaN/undefined, sets value to 0.
284
+
285
+ rx = rx || 0;
286
+ ry = ry || 0;
306
287
  return React.createElement(SVGContainer, {
307
288
  width: width,
308
289
  height: height
309
290
  }, React.createElement(RectangleShape, Object.assign({}, options, {
310
- x: "".concat(options.strokeWidth / 2, "px"),
311
- y: "".concat(options.strokeWidth / 2, "px"),
291
+ rx: rx,
292
+ ry: ry,
293
+ x: "".concat(strokeWidth / 2, "px"),
294
+ y: "".concat(strokeWidth / 2, "px"),
312
295
  vectorEffect: "non-scaling-stroke",
313
- width: "".concat(width - options.strokeWidth, "px"),
314
- height: "".concat(height - options.strokeWidth, "px"),
296
+ width: "".concat(width - strokeWidth, "px"),
297
+ height: "".concat(height - strokeWidth, "px"),
315
298
  onClick: onRectangleClick
316
299
  })));
317
300
  };
@@ -362,21 +345,21 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
362
345
  /***/ 16:
363
346
  /***/ (function(module, exports) {
364
347
 
365
- module.exports = require("@splunk/visualizations-shared/propUtils");
348
+ module.exports = require("@babel/runtime/helpers/createClass");
366
349
 
367
350
  /***/ }),
368
351
 
369
352
  /***/ 17:
370
353
  /***/ (function(module, exports) {
371
354
 
372
- module.exports = require("@babel/runtime/helpers/createClass");
355
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
373
356
 
374
357
  /***/ }),
375
358
 
376
359
  /***/ 18:
377
360
  /***/ (function(module, exports) {
378
361
 
379
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
362
+ module.exports = require("@splunk/visualizations-shared/propUtils");
380
363
 
381
364
  /***/ }),
382
365
 
@@ -394,14 +377,14 @@ module.exports = require("lodash");
394
377
 
395
378
  /***/ }),
396
379
 
397
- /***/ 20:
380
+ /***/ 21:
398
381
  /***/ (function(module, exports) {
399
382
 
400
383
  module.exports = require("@splunk/themes/pick");
401
384
 
402
385
  /***/ }),
403
386
 
404
- /***/ 202:
387
+ /***/ 217:
405
388
  /***/ (function(module, exports, __webpack_require__) {
406
389
 
407
390
  "use strict";
@@ -431,9 +414,9 @@ Object.defineProperty(exports, "__esModule", {
431
414
  });
432
415
  exports.default = void 0;
433
416
 
434
- __exportStar(__webpack_require__(121), exports);
417
+ __exportStar(__webpack_require__(125), exports);
435
418
 
436
- var Rectangle_1 = __webpack_require__(121);
419
+ var Rectangle_1 = __webpack_require__(125);
437
420
 
438
421
  Object.defineProperty(exports, "default", {
439
422
  enumerable: true,
@@ -444,7 +427,7 @@ Object.defineProperty(exports, "default", {
444
427
 
445
428
  /***/ }),
446
429
 
447
- /***/ 203:
430
+ /***/ 218:
448
431
  /***/ (function(module, exports, __webpack_require__) {
449
432
 
450
433
  "use strict";
@@ -455,29 +438,29 @@ Object.defineProperty(exports, "__esModule", {
455
438
  });
456
439
  exports.optionsSchema = void 0;
457
440
 
458
- var visualization_icons_1 = __webpack_require__(39);
441
+ var visualization_icons_1 = __webpack_require__(42);
459
442
 
460
443
  var schemaUtils_1 = __webpack_require__(14);
461
444
 
462
445
  var i18n_1 = __webpack_require__(3);
463
446
 
464
- var PresetPalettes_1 = __webpack_require__(59);
447
+ var PresetPalettes_1 = __webpack_require__(56);
465
448
 
466
- var themes_1 = __webpack_require__(91);
449
+ var themes_1 = __webpack_require__(72);
467
450
 
468
451
  var VizBehavior_1 = __webpack_require__(5);
469
452
 
470
- var VizCategory_1 = __webpack_require__(24);
453
+ var VizCategory_1 = __webpack_require__(26);
471
454
 
472
- var configUtils_1 = __webpack_require__(7);
455
+ var configUtils_1 = __webpack_require__(8);
473
456
 
474
- var DynamicFillColorEditor_1 = __webpack_require__(84);
457
+ var DynamicFillColorEditor_1 = __webpack_require__(85);
475
458
 
476
- var DynamicStrokeColorEditor_1 = __webpack_require__(85);
459
+ var DynamicStrokeColorEditor_1 = __webpack_require__(86);
477
460
 
478
- var StaticFillColorEditor_1 = __webpack_require__(86);
461
+ var StaticFillColorEditor_1 = __webpack_require__(87);
479
462
 
480
- var StaticStrokeColorEditor_1 = __webpack_require__(87);
463
+ var StaticStrokeColorEditor_1 = __webpack_require__(88);
481
464
 
482
465
  var dataContract = {
483
466
  requiredDataSources: [],
@@ -575,7 +558,7 @@ exports.optionsSchema = {
575
558
  ry: {
576
559
  description: 'Specify the curvature of the vertical corner (or border) radius with an integer or a percent greater than or equal to zero.',
577
560
  type: 'number',
578
- default: 0
561
+ default: '> rx'
579
562
  },
580
563
  strokeColor: {
581
564
  default: '> themes.defaultStrokeColor',
@@ -789,7 +772,14 @@ exports.default = configUtils_1.enhanceConfig(config);
789
772
 
790
773
  /***/ }),
791
774
 
792
- /***/ 21:
775
+ /***/ 22:
776
+ /***/ (function(module, exports) {
777
+
778
+ module.exports = require("@babel/runtime/helpers/typeof");
779
+
780
+ /***/ }),
781
+
782
+ /***/ 23:
793
783
  /***/ (function(module, exports, __webpack_require__) {
794
784
 
795
785
  "use strict";
@@ -806,7 +796,7 @@ var T = __webpack_require__(0);
806
796
 
807
797
  var lodash_1 = __webpack_require__(2);
808
798
 
809
- var DataSource_1 = __webpack_require__(31);
799
+ var DataSource_1 = __webpack_require__(33);
810
800
 
811
801
  exports.SortParamsPropTypes = T.shape({
812
802
  currentSortKey: T.string,
@@ -860,7 +850,7 @@ exports.getSortingParams = getSortingParams;
860
850
 
861
851
  /***/ }),
862
852
 
863
- /***/ 22:
853
+ /***/ 24:
864
854
  /***/ (function(module, exports, __webpack_require__) {
865
855
 
866
856
  "use strict";
@@ -925,7 +915,7 @@ exports.getPaginationParams = getPaginationParams;
925
915
 
926
916
  /***/ }),
927
917
 
928
- /***/ 23:
918
+ /***/ 25:
929
919
  /***/ (function(module, exports, __webpack_require__) {
930
920
 
931
921
  "use strict";
@@ -944,9 +934,9 @@ var lodash_1 = __webpack_require__(2);
944
934
 
945
935
  var i18n_1 = __webpack_require__(3);
946
936
 
947
- var Message_1 = __webpack_require__(8);
937
+ var Message_1 = __webpack_require__(9);
948
938
 
949
- var FixedSizeContainer_1 = __webpack_require__(11);
939
+ var FixedSizeContainer_1 = __webpack_require__(12);
950
940
  /**
951
941
  * @method shouldShowIconPlaceholder
952
942
  * @param {object} dataSources
@@ -1013,7 +1003,7 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1013
1003
 
1014
1004
  /***/ }),
1015
1005
 
1016
- /***/ 24:
1006
+ /***/ 26:
1017
1007
  /***/ (function(module, exports, __webpack_require__) {
1018
1008
 
1019
1009
  "use strict";
@@ -1036,11 +1026,13 @@ var VizCategory;
1036
1026
  VizCategory["SHAPES"] = "Shapes";
1037
1027
  VizCategory["MISC"] = "misc";
1038
1028
  VizCategory["FLOW"] = "Flow";
1029
+ VizCategory["CORRELATION"] = "Correlation";
1030
+ VizCategory["SPATIAL"] = "Spatial";
1039
1031
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
1040
1032
 
1041
1033
  /***/ }),
1042
1034
 
1043
- /***/ 25:
1035
+ /***/ 27:
1044
1036
  /***/ (function(module, exports, __webpack_require__) {
1045
1037
 
1046
1038
  "use strict";
@@ -1054,31 +1046,33 @@ var React = __webpack_require__(1);
1054
1046
 
1055
1047
  var lodash_1 = __webpack_require__(2);
1056
1048
 
1057
- var getSettingsFromThemedProps_1 = __webpack_require__(26);
1049
+ var getSettingsFromThemedProps_1 = __webpack_require__(28);
1058
1050
 
1059
- var Options_1 = __webpack_require__(27);
1051
+ var Options_1 = __webpack_require__(29);
1060
1052
 
1061
- var SanitizeProps_1 = __webpack_require__(28);
1062
-
1063
- var SplunkVisualization_1 = __webpack_require__(29);
1053
+ var SanitizeProps_1 = __webpack_require__(30);
1064
1054
 
1065
1055
  var styled_components_1 = __webpack_require__(4);
1066
1056
 
1057
+ var SplunkVisualization_1 = __webpack_require__(31);
1058
+
1067
1059
  var VizBehavior_1 = __webpack_require__(5);
1068
1060
 
1069
- var getSorting_1 = __webpack_require__(21);
1061
+ var getSorting_1 = __webpack_require__(23);
1062
+
1063
+ var getPagination_1 = __webpack_require__(24);
1070
1064
 
1071
- var getPagination_1 = __webpack_require__(22);
1065
+ var useDeepMemo_1 = __webpack_require__(34);
1072
1066
 
1073
- var useDeepMemo_1 = __webpack_require__(32);
1067
+ var JSONSchemaUtils_1 = __webpack_require__(35);
1074
1068
 
1075
- var JSONSchemaUtils_1 = __webpack_require__(33);
1069
+ var MissingPropsMessage_1 = __webpack_require__(36);
1076
1070
 
1077
- var MissingPropsMessage_1 = __webpack_require__(34);
1071
+ var withEditModeCover_1 = __webpack_require__(37);
1078
1072
 
1079
- var withEditModeCover_1 = __webpack_require__(35);
1073
+ var withPlaceholder_1 = __webpack_require__(38);
1080
1074
 
1081
- var withPlaceholder_1 = __webpack_require__(36);
1075
+ var hocUtils_1 = __webpack_require__(7);
1082
1076
  /**
1083
1077
  * hoc that wraps a pure react visualization in a Dashboard visualization
1084
1078
  * @param {DashboardVizOpts} opts
@@ -1131,7 +1125,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1131
1125
  try {
1132
1126
  return Options_1.Options.evaluate({
1133
1127
  context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1134
- options: lodash_1.defaultsDeep({}, options, defaultOptions)
1128
+ options: hocUtils_1.deepMergeWithArrayOverrides({}, options, defaultOptions)
1135
1129
  }, dataSources, themeFunc);
1136
1130
  } catch (e) {
1137
1131
  console.error("unexpected error evaluating options: + ".concat(e.message));
@@ -1142,7 +1136,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1142
1136
 
1143
1137
  React.useEffect(function () {
1144
1138
  onComputedProps(evaluatedOptions);
1145
- }); //present warning message if any required props are missing
1139
+ }); // present warning message if any required props are missing
1146
1140
 
1147
1141
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1148
1142
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
@@ -1165,7 +1159,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1165
1159
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
1166
1160
  var supportedEvents = vizConfig.events;
1167
1161
  Object.keys(supportedEvents).forEach(function (eventName) {
1168
- var eventCallbackPropName = lodash_1.camelCase('on.' + eventName);
1162
+ var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
1169
1163
  eventCallbackProps[eventCallbackPropName] = null; // todo: refactor single value and single value icon to send payload from viz
1170
1164
  // then remove these lines
1171
1165
 
@@ -1261,34 +1255,41 @@ exports.default = withDashboardViz;
1261
1255
 
1262
1256
  /***/ }),
1263
1257
 
1264
- /***/ 26:
1258
+ /***/ 28:
1265
1259
  /***/ (function(module, exports) {
1266
1260
 
1267
1261
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1268
1262
 
1269
1263
  /***/ }),
1270
1264
 
1271
- /***/ 27:
1265
+ /***/ 29:
1272
1266
  /***/ (function(module, exports) {
1273
1267
 
1274
1268
  module.exports = require("@splunk/visualization-encoding/Options");
1275
1269
 
1276
1270
  /***/ }),
1277
1271
 
1278
- /***/ 28:
1272
+ /***/ 3:
1273
+ /***/ (function(module, exports) {
1274
+
1275
+ module.exports = require("@splunk/ui-utils/i18n");
1276
+
1277
+ /***/ }),
1278
+
1279
+ /***/ 30:
1279
1280
  /***/ (function(module, exports) {
1280
1281
 
1281
1282
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1282
1283
 
1283
1284
  /***/ }),
1284
1285
 
1285
- /***/ 29:
1286
+ /***/ 31:
1286
1287
  /***/ (function(module, exports, __webpack_require__) {
1287
1288
 
1288
1289
  "use strict";
1289
1290
 
1290
1291
 
1291
- var _classCallCheck = __webpack_require__(9);
1292
+ var _classCallCheck = __webpack_require__(10);
1292
1293
 
1293
1294
  Object.defineProperty(exports, "__esModule", {
1294
1295
  value: true
@@ -1300,7 +1301,7 @@ var T = __webpack_require__(0);
1300
1301
 
1301
1302
  var lodash_1 = __webpack_require__(2);
1302
1303
 
1303
- var VizActionHandler_1 = __webpack_require__(30); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1304
+ var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1304
1305
 
1305
1306
 
1306
1307
  exports.INITIAL_WIDTH = 250;
@@ -1434,22 +1435,15 @@ exports.default = SplunkVisualization;
1434
1435
 
1435
1436
  /***/ }),
1436
1437
 
1437
- /***/ 3:
1438
- /***/ (function(module, exports) {
1439
-
1440
- module.exports = require("@splunk/ui-utils/i18n");
1441
-
1442
- /***/ }),
1443
-
1444
- /***/ 30:
1438
+ /***/ 32:
1445
1439
  /***/ (function(module, exports, __webpack_require__) {
1446
1440
 
1447
1441
  "use strict";
1448
1442
 
1449
1443
 
1450
- var _classCallCheck = __webpack_require__(9);
1444
+ var _classCallCheck = __webpack_require__(10);
1451
1445
 
1452
- var _createClass = __webpack_require__(17);
1446
+ var _createClass = __webpack_require__(16);
1453
1447
 
1454
1448
  Object.defineProperty(exports, "__esModule", {
1455
1449
  value: true
@@ -1479,7 +1473,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1479
1473
 
1480
1474
  /***/ }),
1481
1475
 
1482
- /***/ 31:
1476
+ /***/ 33:
1483
1477
  /***/ (function(module, exports, __webpack_require__) {
1484
1478
 
1485
1479
  "use strict";
@@ -1493,7 +1487,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1493
1487
 
1494
1488
  /***/ }),
1495
1489
 
1496
- /***/ 32:
1490
+ /***/ 34:
1497
1491
  /***/ (function(module, exports, __webpack_require__) {
1498
1492
 
1499
1493
  "use strict";
@@ -1539,7 +1533,7 @@ exports.useDeepMemo = useDeepMemo;
1539
1533
 
1540
1534
  /***/ }),
1541
1535
 
1542
- /***/ 33:
1536
+ /***/ 35:
1543
1537
  /***/ (function(module, exports, __webpack_require__) {
1544
1538
 
1545
1539
  "use strict";
@@ -1573,7 +1567,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1573
1567
 
1574
1568
  /***/ }),
1575
1569
 
1576
- /***/ 34:
1570
+ /***/ 36:
1577
1571
  /***/ (function(module, exports, __webpack_require__) {
1578
1572
 
1579
1573
  "use strict";
@@ -1590,9 +1584,9 @@ var T = __webpack_require__(0);
1590
1584
 
1591
1585
  var i18n_1 = __webpack_require__(3);
1592
1586
 
1593
- var Message_1 = __webpack_require__(8);
1587
+ var Message_1 = __webpack_require__(9);
1594
1588
 
1595
- var FixedSizeContainer_1 = __webpack_require__(11);
1589
+ var FixedSizeContainer_1 = __webpack_require__(12);
1596
1590
  /**
1597
1591
  * @method isMissing
1598
1592
  * @param {any} v
@@ -1653,7 +1647,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1653
1647
 
1654
1648
  /***/ }),
1655
1649
 
1656
- /***/ 35:
1650
+ /***/ 37:
1657
1651
  /***/ (function(module, exports, __webpack_require__) {
1658
1652
 
1659
1653
  "use strict";
@@ -1667,7 +1661,7 @@ var React = __webpack_require__(1);
1667
1661
 
1668
1662
  var styled_components_1 = __webpack_require__(4);
1669
1663
 
1670
- var hocUtils_1 = __webpack_require__(12);
1664
+ var hocUtils_1 = __webpack_require__(7);
1671
1665
 
1672
1666
  var Cover = styled_components_1.default.div.withConfig({
1673
1667
  displayName: "withEditModeCover__Cover",
@@ -1703,7 +1697,7 @@ exports.default = withEditModeCover;
1703
1697
 
1704
1698
  /***/ }),
1705
1699
 
1706
- /***/ 36:
1700
+ /***/ 38:
1707
1701
  /***/ (function(module, exports, __webpack_require__) {
1708
1702
 
1709
1703
  "use strict";
@@ -1715,13 +1709,13 @@ Object.defineProperty(exports, "__esModule", {
1715
1709
 
1716
1710
  var React = __webpack_require__(1);
1717
1711
 
1718
- var colorUtils_1 = __webpack_require__(10);
1712
+ var colorUtils_1 = __webpack_require__(11);
1719
1713
 
1720
- var IconPlaceholder_1 = __webpack_require__(23);
1714
+ var IconPlaceholder_1 = __webpack_require__(25);
1721
1715
 
1722
1716
  var VizBehavior_1 = __webpack_require__(5);
1723
1717
 
1724
- var hocUtils_1 = __webpack_require__(12);
1718
+ var hocUtils_1 = __webpack_require__(7);
1725
1719
 
1726
1720
  var withPlaceholder = function withPlaceholder(Visualization) {
1727
1721
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -1763,17 +1757,17 @@ exports.default = withPlaceholder;
1763
1757
 
1764
1758
  /***/ }),
1765
1759
 
1766
- /***/ 39:
1760
+ /***/ 4:
1767
1761
  /***/ (function(module, exports) {
1768
1762
 
1769
- module.exports = require("@splunk/visualization-icons");
1763
+ module.exports = require("styled-components");
1770
1764
 
1771
1765
  /***/ }),
1772
1766
 
1773
- /***/ 4:
1767
+ /***/ 42:
1774
1768
  /***/ (function(module, exports) {
1775
1769
 
1776
- module.exports = require("styled-components");
1770
+ module.exports = require("@splunk/visualization-icons");
1777
1771
 
1778
1772
  /***/ }),
1779
1773
 
@@ -1815,7 +1809,7 @@ var VizBehavior;
1815
1809
 
1816
1810
  /***/ }),
1817
1811
 
1818
- /***/ 59:
1812
+ /***/ 56:
1819
1813
  /***/ (function(module, exports) {
1820
1814
 
1821
1815
  module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
@@ -1835,6 +1829,85 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
1835
1829
  "use strict";
1836
1830
 
1837
1831
 
1832
+ var _typeof = __webpack_require__(22);
1833
+
1834
+ Object.defineProperty(exports, "__esModule", {
1835
+ value: true
1836
+ });
1837
+ exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
1838
+
1839
+ var lodash_1 = __webpack_require__(2);
1840
+ /**
1841
+ * @method extendStaticWrapperProps
1842
+ * @param {Object} props
1843
+ * @param {DashboardVizType} props.Wrapper
1844
+ * @param {DashboardVizType} props.Visualization
1845
+ */
1846
+
1847
+
1848
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
1849
+ var Wrapper = _ref.Wrapper,
1850
+ Visualization = _ref.Visualization;
1851
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
1852
+ extendProperties.forEach(function (prop) {
1853
+ if (Visualization[prop]) {
1854
+ Wrapper[prop] = Visualization[prop];
1855
+ }
1856
+ });
1857
+ };
1858
+
1859
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
1860
+ /**
1861
+ * helper to deeply merge objects while preserving arrays in earlier source objects
1862
+ * deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
1863
+ * this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
1864
+ *
1865
+ * @method deepMergeWithArrayOverrides
1866
+ * @param {Object} initial - target object to merge values into
1867
+ * @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
1868
+ *
1869
+ * @returns {Object}
1870
+ */
1871
+
1872
+ var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
1873
+ var clone = lodash_1.cloneDeep(initial);
1874
+
1875
+ for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1876
+ sources[_key - 1] = arguments[_key];
1877
+ }
1878
+
1879
+ sources.forEach(function (sourceToApply) {
1880
+ Object.keys(sourceToApply).forEach(function (sourceKey) {
1881
+ if (!clone.hasOwnProperty(sourceKey)) {
1882
+ clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
1883
+ } // object merging excluding arrays
1884
+
1885
+
1886
+ if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
1887
+ clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
1888
+ }
1889
+ });
1890
+ });
1891
+ return clone;
1892
+ };
1893
+
1894
+ exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
1895
+
1896
+ /***/ }),
1897
+
1898
+ /***/ 72:
1899
+ /***/ (function(module, exports) {
1900
+
1901
+ module.exports = require("@splunk/themes");
1902
+
1903
+ /***/ }),
1904
+
1905
+ /***/ 8:
1906
+ /***/ (function(module, exports, __webpack_require__) {
1907
+
1908
+ "use strict";
1909
+
1910
+
1838
1911
  var _defineProperty = __webpack_require__(6);
1839
1912
 
1840
1913
  var __rest = this && this.__rest || function (s, e) {
@@ -2021,14 +2094,7 @@ exports.generatePrecisionValues = generatePrecisionValues;
2021
2094
 
2022
2095
  /***/ }),
2023
2096
 
2024
- /***/ 8:
2025
- /***/ (function(module, exports) {
2026
-
2027
- module.exports = require("@splunk/visualizations-shared/Message");
2028
-
2029
- /***/ }),
2030
-
2031
- /***/ 84:
2097
+ /***/ 85:
2032
2098
  /***/ (function(module, exports, __webpack_require__) {
2033
2099
 
2034
2100
  "use strict";
@@ -2041,7 +2107,7 @@ exports.getDynamicFillColorEditor = void 0;
2041
2107
 
2042
2108
  var i18n_1 = __webpack_require__(3);
2043
2109
 
2044
- var configUtils_1 = __webpack_require__(7);
2110
+ var configUtils_1 = __webpack_require__(8);
2045
2111
 
2046
2112
  var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
2047
2113
  var defaultContext = _ref.defaultContext,
@@ -2078,7 +2144,7 @@ exports.getDynamicFillColorEditor = getDynamicFillColorEditor;
2078
2144
 
2079
2145
  /***/ }),
2080
2146
 
2081
- /***/ 85:
2147
+ /***/ 86:
2082
2148
  /***/ (function(module, exports, __webpack_require__) {
2083
2149
 
2084
2150
  "use strict";
@@ -2091,7 +2157,7 @@ exports.getDynamicStrokeColorEditor = void 0;
2091
2157
 
2092
2158
  var i18n_1 = __webpack_require__(3);
2093
2159
 
2094
- var configUtils_1 = __webpack_require__(7);
2160
+ var configUtils_1 = __webpack_require__(8);
2095
2161
 
2096
2162
  var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
2097
2163
  var defaultContext = _ref.defaultContext,
@@ -2128,7 +2194,7 @@ exports.getDynamicStrokeColorEditor = getDynamicStrokeColorEditor;
2128
2194
 
2129
2195
  /***/ }),
2130
2196
 
2131
- /***/ 86:
2197
+ /***/ 87:
2132
2198
  /***/ (function(module, exports, __webpack_require__) {
2133
2199
 
2134
2200
  "use strict";
@@ -2140,7 +2206,7 @@ Object.defineProperty(exports, "__esModule", {
2140
2206
 
2141
2207
  var i18n_1 = __webpack_require__(3);
2142
2208
 
2143
- var configUtils_1 = __webpack_require__(7);
2209
+ var configUtils_1 = __webpack_require__(8);
2144
2210
 
2145
2211
  var StaticFillColorEditor = {
2146
2212
  label: i18n_1._('Static Fill'),
@@ -2155,7 +2221,7 @@ exports.default = StaticFillColorEditor;
2155
2221
 
2156
2222
  /***/ }),
2157
2223
 
2158
- /***/ 87:
2224
+ /***/ 88:
2159
2225
  /***/ (function(module, exports, __webpack_require__) {
2160
2226
 
2161
2227
  "use strict";
@@ -2167,7 +2233,7 @@ Object.defineProperty(exports, "__esModule", {
2167
2233
 
2168
2234
  var i18n_1 = __webpack_require__(3);
2169
2235
 
2170
- var configUtils_1 = __webpack_require__(7);
2236
+ var configUtils_1 = __webpack_require__(8);
2171
2237
 
2172
2238
  var StaticStrokeColorEditor = {
2173
2239
  label: i18n_1._('Static Stroke'),
@@ -2182,7 +2248,7 @@ exports.default = StaticStrokeColorEditor;
2182
2248
 
2183
2249
  /***/ }),
2184
2250
 
2185
- /***/ 88:
2251
+ /***/ 89:
2186
2252
  /***/ (function(module, exports, __webpack_require__) {
2187
2253
 
2188
2254
  "use strict";
@@ -2197,11 +2263,11 @@ var lodash_1 = __webpack_require__(2);
2197
2263
 
2198
2264
  var styled_components_1 = __webpack_require__(4);
2199
2265
 
2200
- var pick_1 = __webpack_require__(20);
2266
+ var pick_1 = __webpack_require__(21);
2201
2267
 
2202
2268
  var variables_1 = __webpack_require__(19);
2203
2269
 
2204
- var propUtils_1 = __webpack_require__(16); // map for new options names to old option names
2270
+ var propUtils_1 = __webpack_require__(18); // map for new options names to old option names
2205
2271
 
2206
2272
 
2207
2273
  var shapeOptionsMapping = {
@@ -2262,14 +2328,7 @@ exports.getStyledShape = getStyledShape;
2262
2328
  /***/ 9:
2263
2329
  /***/ (function(module, exports) {
2264
2330
 
2265
- module.exports = require("@babel/runtime/helpers/classCallCheck");
2266
-
2267
- /***/ }),
2268
-
2269
- /***/ 91:
2270
- /***/ (function(module, exports) {
2271
-
2272
- module.exports = require("@splunk/themes");
2331
+ module.exports = require("@splunk/visualizations-shared/Message");
2273
2332
 
2274
2333
  /***/ })
2275
2334