@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/Pie.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 = 188);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 202);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -170,6 +170,77 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
170
170
  "use strict";
171
171
 
172
172
 
173
+ var _typeof = __webpack_require__(22);
174
+
175
+ Object.defineProperty(exports, "__esModule", {
176
+ value: true
177
+ });
178
+ exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
179
+
180
+ var lodash_1 = __webpack_require__(2);
181
+ /**
182
+ * @method extendStaticWrapperProps
183
+ * @param {Object} props
184
+ * @param {DashboardVizType} props.Wrapper
185
+ * @param {DashboardVizType} props.Visualization
186
+ */
187
+
188
+
189
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
190
+ var Wrapper = _ref.Wrapper,
191
+ Visualization = _ref.Visualization;
192
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
193
+ extendProperties.forEach(function (prop) {
194
+ if (Visualization[prop]) {
195
+ Wrapper[prop] = Visualization[prop];
196
+ }
197
+ });
198
+ };
199
+
200
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
201
+ /**
202
+ * helper to deeply merge objects while preserving arrays in earlier source objects
203
+ * 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
204
+ * this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
205
+ *
206
+ * @method deepMergeWithArrayOverrides
207
+ * @param {Object} initial - target object to merge values into
208
+ * @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
209
+ *
210
+ * @returns {Object}
211
+ */
212
+
213
+ var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
214
+ var clone = lodash_1.cloneDeep(initial);
215
+
216
+ for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
217
+ sources[_key - 1] = arguments[_key];
218
+ }
219
+
220
+ sources.forEach(function (sourceToApply) {
221
+ Object.keys(sourceToApply).forEach(function (sourceKey) {
222
+ if (!clone.hasOwnProperty(sourceKey)) {
223
+ clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
224
+ } // object merging excluding arrays
225
+
226
+
227
+ if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
228
+ clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
229
+ }
230
+ });
231
+ });
232
+ return clone;
233
+ };
234
+
235
+ exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
236
+
237
+ /***/ }),
238
+ /* 8 */
239
+ /***/ (function(module, exports, __webpack_require__) {
240
+
241
+ "use strict";
242
+
243
+
173
244
  var _defineProperty = __webpack_require__(6);
174
245
 
175
246
  var __rest = this && this.__rest || function (s, e) {
@@ -355,25 +426,25 @@ function generatePrecisionValues(numPrecisionValues) {
355
426
  exports.generatePrecisionValues = generatePrecisionValues;
356
427
 
357
428
  /***/ }),
358
- /* 8 */
429
+ /* 9 */
359
430
  /***/ (function(module, exports) {
360
431
 
361
432
  module.exports = require("@splunk/visualizations-shared/Message");
362
433
 
363
434
  /***/ }),
364
- /* 9 */
435
+ /* 10 */
365
436
  /***/ (function(module, exports) {
366
437
 
367
438
  module.exports = require("@babel/runtime/helpers/classCallCheck");
368
439
 
369
440
  /***/ }),
370
- /* 10 */
441
+ /* 11 */
371
442
  /***/ (function(module, exports) {
372
443
 
373
444
  module.exports = require("@splunk/visualizations-shared/colorUtils");
374
445
 
375
446
  /***/ }),
376
- /* 11 */
447
+ /* 12 */
377
448
  /***/ (function(module, exports, __webpack_require__) {
378
449
 
379
450
  "use strict";
@@ -387,11 +458,11 @@ var React = __webpack_require__(1);
387
458
 
388
459
  var styled_components_1 = __webpack_require__(4);
389
460
 
390
- var SizeAwareWrapper_1 = __webpack_require__(18);
461
+ var SizeAwareWrapper_1 = __webpack_require__(17);
391
462
 
392
463
  var style_1 = __webpack_require__(13);
393
464
 
394
- var colorUtils_1 = __webpack_require__(10);
465
+ var colorUtils_1 = __webpack_require__(11);
395
466
 
396
467
  var Item = styled_components_1.default.div.attrs(function (_ref) {
397
468
  var width = _ref.width;
@@ -467,37 +538,6 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
467
538
 
468
539
  exports.default = withFixedSizeContainer;
469
540
 
470
- /***/ }),
471
- /* 12 */
472
- /***/ (function(module, exports, __webpack_require__) {
473
-
474
- "use strict";
475
-
476
-
477
- Object.defineProperty(exports, "__esModule", {
478
- value: true
479
- });
480
- exports.extendStaticWrapperProps = void 0;
481
- /**
482
- * @method extendStaticWrapperProps
483
- * @param {Object} props
484
- * @param {DashboardVizType} props.Wrapper
485
- * @param {DashboardVizType} props.Visualization
486
- */
487
-
488
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
489
- var Wrapper = _ref.Wrapper,
490
- Visualization = _ref.Visualization;
491
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
492
- extendProperties.forEach(function (prop) {
493
- if (Visualization[prop]) {
494
- Wrapper[prop] = Visualization[prop];
495
- }
496
- });
497
- };
498
-
499
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
500
-
501
541
  /***/ }),
502
542
  /* 13 */
503
543
  /***/ (function(module, exports) {
@@ -515,19 +555,19 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
515
555
  /* 16 */
516
556
  /***/ (function(module, exports) {
517
557
 
518
- module.exports = require("@splunk/visualizations-shared/propUtils");
558
+ module.exports = require("@babel/runtime/helpers/createClass");
519
559
 
520
560
  /***/ }),
521
561
  /* 17 */
522
562
  /***/ (function(module, exports) {
523
563
 
524
- module.exports = require("@babel/runtime/helpers/createClass");
564
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
525
565
 
526
566
  /***/ }),
527
567
  /* 18 */
528
568
  /***/ (function(module, exports) {
529
569
 
530
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
570
+ module.exports = require("@splunk/visualizations-shared/propUtils");
531
571
 
532
572
  /***/ }),
533
573
  /* 19 */
@@ -536,13 +576,20 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
536
576
  module.exports = require("@splunk/themes/variables");
537
577
 
538
578
  /***/ }),
539
- /* 20 */
579
+ /* 20 */,
580
+ /* 21 */
540
581
  /***/ (function(module, exports) {
541
582
 
542
583
  module.exports = require("@splunk/themes/pick");
543
584
 
544
585
  /***/ }),
545
- /* 21 */
586
+ /* 22 */
587
+ /***/ (function(module, exports) {
588
+
589
+ module.exports = require("@babel/runtime/helpers/typeof");
590
+
591
+ /***/ }),
592
+ /* 23 */
546
593
  /***/ (function(module, exports, __webpack_require__) {
547
594
 
548
595
  "use strict";
@@ -559,7 +606,7 @@ var T = __webpack_require__(0);
559
606
 
560
607
  var lodash_1 = __webpack_require__(2);
561
608
 
562
- var DataSource_1 = __webpack_require__(31);
609
+ var DataSource_1 = __webpack_require__(33);
563
610
 
564
611
  exports.SortParamsPropTypes = T.shape({
565
612
  currentSortKey: T.string,
@@ -612,7 +659,7 @@ var getSortingParams = function getSortingParams(_ref) {
612
659
  exports.getSortingParams = getSortingParams;
613
660
 
614
661
  /***/ }),
615
- /* 22 */
662
+ /* 24 */
616
663
  /***/ (function(module, exports, __webpack_require__) {
617
664
 
618
665
  "use strict";
@@ -676,7 +723,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
676
723
  exports.getPaginationParams = getPaginationParams;
677
724
 
678
725
  /***/ }),
679
- /* 23 */
726
+ /* 25 */
680
727
  /***/ (function(module, exports, __webpack_require__) {
681
728
 
682
729
  "use strict";
@@ -695,9 +742,9 @@ var lodash_1 = __webpack_require__(2);
695
742
 
696
743
  var i18n_1 = __webpack_require__(3);
697
744
 
698
- var Message_1 = __webpack_require__(8);
745
+ var Message_1 = __webpack_require__(9);
699
746
 
700
- var FixedSizeContainer_1 = __webpack_require__(11);
747
+ var FixedSizeContainer_1 = __webpack_require__(12);
701
748
  /**
702
749
  * @method shouldShowIconPlaceholder
703
750
  * @param {object} dataSources
@@ -763,7 +810,7 @@ IconPlaceholder.defaultProps = {
763
810
  exports.default = FixedSizeContainer_1.default(IconPlaceholder);
764
811
 
765
812
  /***/ }),
766
- /* 24 */
813
+ /* 26 */
767
814
  /***/ (function(module, exports, __webpack_require__) {
768
815
 
769
816
  "use strict";
@@ -786,10 +833,12 @@ var VizCategory;
786
833
  VizCategory["SHAPES"] = "Shapes";
787
834
  VizCategory["MISC"] = "misc";
788
835
  VizCategory["FLOW"] = "Flow";
836
+ VizCategory["CORRELATION"] = "Correlation";
837
+ VizCategory["SPATIAL"] = "Spatial";
789
838
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
790
839
 
791
840
  /***/ }),
792
- /* 25 */
841
+ /* 27 */
793
842
  /***/ (function(module, exports, __webpack_require__) {
794
843
 
795
844
  "use strict";
@@ -803,31 +852,33 @@ var React = __webpack_require__(1);
803
852
 
804
853
  var lodash_1 = __webpack_require__(2);
805
854
 
806
- var getSettingsFromThemedProps_1 = __webpack_require__(26);
807
-
808
- var Options_1 = __webpack_require__(27);
855
+ var getSettingsFromThemedProps_1 = __webpack_require__(28);
809
856
 
810
- var SanitizeProps_1 = __webpack_require__(28);
857
+ var Options_1 = __webpack_require__(29);
811
858
 
812
- var SplunkVisualization_1 = __webpack_require__(29);
859
+ var SanitizeProps_1 = __webpack_require__(30);
813
860
 
814
861
  var styled_components_1 = __webpack_require__(4);
815
862
 
863
+ var SplunkVisualization_1 = __webpack_require__(31);
864
+
816
865
  var VizBehavior_1 = __webpack_require__(5);
817
866
 
818
- var getSorting_1 = __webpack_require__(21);
867
+ var getSorting_1 = __webpack_require__(23);
819
868
 
820
- var getPagination_1 = __webpack_require__(22);
869
+ var getPagination_1 = __webpack_require__(24);
821
870
 
822
- var useDeepMemo_1 = __webpack_require__(32);
871
+ var useDeepMemo_1 = __webpack_require__(34);
823
872
 
824
- var JSONSchemaUtils_1 = __webpack_require__(33);
873
+ var JSONSchemaUtils_1 = __webpack_require__(35);
825
874
 
826
- var MissingPropsMessage_1 = __webpack_require__(34);
875
+ var MissingPropsMessage_1 = __webpack_require__(36);
827
876
 
828
- var withEditModeCover_1 = __webpack_require__(35);
877
+ var withEditModeCover_1 = __webpack_require__(37);
829
878
 
830
- var withPlaceholder_1 = __webpack_require__(36);
879
+ var withPlaceholder_1 = __webpack_require__(38);
880
+
881
+ var hocUtils_1 = __webpack_require__(7);
831
882
  /**
832
883
  * hoc that wraps a pure react visualization in a Dashboard visualization
833
884
  * @param {DashboardVizOpts} opts
@@ -880,7 +931,7 @@ var withDashboardViz = function withDashboardViz(opts) {
880
931
  try {
881
932
  return Options_1.Options.evaluate({
882
933
  context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
883
- options: lodash_1.defaultsDeep({}, options, defaultOptions)
934
+ options: hocUtils_1.deepMergeWithArrayOverrides({}, options, defaultOptions)
884
935
  }, dataSources, themeFunc);
885
936
  } catch (e) {
886
937
  console.error("unexpected error evaluating options: + ".concat(e.message));
@@ -891,7 +942,7 @@ var withDashboardViz = function withDashboardViz(opts) {
891
942
 
892
943
  React.useEffect(function () {
893
944
  onComputedProps(evaluatedOptions);
894
- }); //present warning message if any required props are missing
945
+ }); // present warning message if any required props are missing
895
946
 
896
947
  var _vizConfig$requiredPr = vizConfig.requiredProps,
897
948
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
@@ -914,7 +965,7 @@ var withDashboardViz = function withDashboardViz(opts) {
914
965
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
915
966
  var supportedEvents = vizConfig.events;
916
967
  Object.keys(supportedEvents).forEach(function (eventName) {
917
- var eventCallbackPropName = lodash_1.camelCase('on.' + eventName);
968
+ var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
918
969
  eventCallbackProps[eventCallbackPropName] = null; // todo: refactor single value and single value icon to send payload from viz
919
970
  // then remove these lines
920
971
 
@@ -1009,31 +1060,31 @@ var withDashboardViz = function withDashboardViz(opts) {
1009
1060
  exports.default = withDashboardViz;
1010
1061
 
1011
1062
  /***/ }),
1012
- /* 26 */
1063
+ /* 28 */
1013
1064
  /***/ (function(module, exports) {
1014
1065
 
1015
1066
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1016
1067
 
1017
1068
  /***/ }),
1018
- /* 27 */
1069
+ /* 29 */
1019
1070
  /***/ (function(module, exports) {
1020
1071
 
1021
1072
  module.exports = require("@splunk/visualization-encoding/Options");
1022
1073
 
1023
1074
  /***/ }),
1024
- /* 28 */
1075
+ /* 30 */
1025
1076
  /***/ (function(module, exports) {
1026
1077
 
1027
1078
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1028
1079
 
1029
1080
  /***/ }),
1030
- /* 29 */
1081
+ /* 31 */
1031
1082
  /***/ (function(module, exports, __webpack_require__) {
1032
1083
 
1033
1084
  "use strict";
1034
1085
 
1035
1086
 
1036
- var _classCallCheck = __webpack_require__(9);
1087
+ var _classCallCheck = __webpack_require__(10);
1037
1088
 
1038
1089
  Object.defineProperty(exports, "__esModule", {
1039
1090
  value: true
@@ -1045,7 +1096,7 @@ var T = __webpack_require__(0);
1045
1096
 
1046
1097
  var lodash_1 = __webpack_require__(2);
1047
1098
 
1048
- var VizActionHandler_1 = __webpack_require__(30); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1099
+ var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1049
1100
 
1050
1101
 
1051
1102
  exports.INITIAL_WIDTH = 250;
@@ -1178,15 +1229,15 @@ SplunkVisualization.defaultProps = {
1178
1229
  exports.default = SplunkVisualization;
1179
1230
 
1180
1231
  /***/ }),
1181
- /* 30 */
1232
+ /* 32 */
1182
1233
  /***/ (function(module, exports, __webpack_require__) {
1183
1234
 
1184
1235
  "use strict";
1185
1236
 
1186
1237
 
1187
- var _classCallCheck = __webpack_require__(9);
1238
+ var _classCallCheck = __webpack_require__(10);
1188
1239
 
1189
- var _createClass = __webpack_require__(17);
1240
+ var _createClass = __webpack_require__(16);
1190
1241
 
1191
1242
  Object.defineProperty(exports, "__esModule", {
1192
1243
  value: true
@@ -1215,7 +1266,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
1215
1266
  exports.DefaultVizActionHandler = DefaultVizActionHandler;
1216
1267
 
1217
1268
  /***/ }),
1218
- /* 31 */
1269
+ /* 33 */
1219
1270
  /***/ (function(module, exports, __webpack_require__) {
1220
1271
 
1221
1272
  "use strict";
@@ -1228,7 +1279,7 @@ exports.validSortDirs = void 0;
1228
1279
  exports.validSortDirs = ['asc', 'desc', 'none'];
1229
1280
 
1230
1281
  /***/ }),
1231
- /* 32 */
1282
+ /* 34 */
1232
1283
  /***/ (function(module, exports, __webpack_require__) {
1233
1284
 
1234
1285
  "use strict";
@@ -1273,7 +1324,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
1273
1324
  exports.useDeepMemo = useDeepMemo;
1274
1325
 
1275
1326
  /***/ }),
1276
- /* 33 */
1327
+ /* 35 */
1277
1328
  /***/ (function(module, exports, __webpack_require__) {
1278
1329
 
1279
1330
  "use strict";
@@ -1306,7 +1357,7 @@ var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
1306
1357
  exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1307
1358
 
1308
1359
  /***/ }),
1309
- /* 34 */
1360
+ /* 36 */
1310
1361
  /***/ (function(module, exports, __webpack_require__) {
1311
1362
 
1312
1363
  "use strict";
@@ -1323,9 +1374,9 @@ var T = __webpack_require__(0);
1323
1374
 
1324
1375
  var i18n_1 = __webpack_require__(3);
1325
1376
 
1326
- var Message_1 = __webpack_require__(8);
1377
+ var Message_1 = __webpack_require__(9);
1327
1378
 
1328
- var FixedSizeContainer_1 = __webpack_require__(11);
1379
+ var FixedSizeContainer_1 = __webpack_require__(12);
1329
1380
  /**
1330
1381
  * @method isMissing
1331
1382
  * @param {any} v
@@ -1385,7 +1436,7 @@ exports.MissingPropsMessage.defaultProps = {
1385
1436
  exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1386
1437
 
1387
1438
  /***/ }),
1388
- /* 35 */
1439
+ /* 37 */
1389
1440
  /***/ (function(module, exports, __webpack_require__) {
1390
1441
 
1391
1442
  "use strict";
@@ -1399,7 +1450,7 @@ var React = __webpack_require__(1);
1399
1450
 
1400
1451
  var styled_components_1 = __webpack_require__(4);
1401
1452
 
1402
- var hocUtils_1 = __webpack_require__(12);
1453
+ var hocUtils_1 = __webpack_require__(7);
1403
1454
 
1404
1455
  var Cover = styled_components_1.default.div.withConfig({
1405
1456
  displayName: "withEditModeCover__Cover",
@@ -1434,7 +1485,7 @@ var withEditModeCover = function withEditModeCover(Visualization) {
1434
1485
  exports.default = withEditModeCover;
1435
1486
 
1436
1487
  /***/ }),
1437
- /* 36 */
1488
+ /* 38 */
1438
1489
  /***/ (function(module, exports, __webpack_require__) {
1439
1490
 
1440
1491
  "use strict";
@@ -1446,13 +1497,13 @@ Object.defineProperty(exports, "__esModule", {
1446
1497
 
1447
1498
  var React = __webpack_require__(1);
1448
1499
 
1449
- var colorUtils_1 = __webpack_require__(10);
1500
+ var colorUtils_1 = __webpack_require__(11);
1450
1501
 
1451
- var IconPlaceholder_1 = __webpack_require__(23);
1502
+ var IconPlaceholder_1 = __webpack_require__(25);
1452
1503
 
1453
1504
  var VizBehavior_1 = __webpack_require__(5);
1454
1505
 
1455
- var hocUtils_1 = __webpack_require__(12);
1506
+ var hocUtils_1 = __webpack_require__(7);
1456
1507
 
1457
1508
  var withPlaceholder = function withPlaceholder(Visualization) {
1458
1509
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -1493,15 +1544,13 @@ var withPlaceholder = function withPlaceholder(Visualization) {
1493
1544
  exports.default = withPlaceholder;
1494
1545
 
1495
1546
  /***/ }),
1496
- /* 37 */,
1497
- /* 38 */,
1498
- /* 39 */,
1499
- /* 40 */
1547
+ /* 39 */
1500
1548
  /***/ (function(module, exports) {
1501
1549
 
1502
1550
  module.exports = require("@babel/runtime/helpers/toConsumableArray");
1503
1551
 
1504
1552
  /***/ }),
1553
+ /* 40 */,
1505
1554
  /* 41 */
1506
1555
  /***/ (function(module, exports) {
1507
1556
 
@@ -1509,19 +1558,44 @@ module.exports = require("@splunk/visualization-color-palettes");
1509
1558
 
1510
1559
  /***/ }),
1511
1560
  /* 42 */,
1512
- /* 43 */
1513
- /***/ (function(module, exports) {
1561
+ /* 43 */,
1562
+ /* 44 */
1563
+ /***/ (function(module, exports, __webpack_require__) {
1514
1564
 
1515
- module.exports = require("@splunk/charting-bundle");
1565
+ "use strict";
1566
+
1567
+
1568
+ Object.defineProperty(exports, "__esModule", {
1569
+ value: true
1570
+ });
1571
+
1572
+ var i18n_1 = __webpack_require__(3);
1573
+
1574
+ var background = function background(_ref) {
1575
+ var label = _ref.label,
1576
+ themes = _ref.themes,
1577
+ labelPosition = _ref.labelPosition;
1578
+ return [{
1579
+ label: i18n_1._(label || 'Background'),
1580
+ option: 'backgroundColor',
1581
+ editor: 'editor.color',
1582
+ editorProps: {
1583
+ labelPosition: labelPosition || 'top',
1584
+ themes: themes
1585
+ }
1586
+ }];
1587
+ };
1588
+
1589
+ exports.default = background;
1516
1590
 
1517
1591
  /***/ }),
1518
- /* 44 */
1592
+ /* 45 */
1519
1593
  /***/ (function(module, exports, __webpack_require__) {
1520
1594
 
1521
1595
  "use strict";
1522
1596
 
1523
1597
 
1524
- var _toConsumableArray = __webpack_require__(40);
1598
+ var _toConsumableArray = __webpack_require__(39);
1525
1599
 
1526
1600
  var __rest = this && this.__rest || function (s, e) {
1527
1601
  var t = {};
@@ -1608,7 +1682,7 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
1608
1682
  if (lodash_1.has(options, key)) {
1609
1683
  var updatedValue = optionValuesSCMapping[key][options[key]];
1610
1684
 
1611
- if (updatedValue) {
1685
+ if (!lodash_1.isUndefined(updatedValue)) {
1612
1686
  convertedOptions[key] = updatedValue;
1613
1687
  }
1614
1688
  }
@@ -1690,8 +1764,10 @@ var toArrayForSeries = function toArrayForSeries(data, value) {
1690
1764
  exports.toArrayForSeries = toArrayForSeries;
1691
1765
 
1692
1766
  var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
1693
- var x = _ref2.x,
1694
- y = _ref2.y,
1767
+ var _ref2$x = _ref2.x,
1768
+ x = _ref2$x === void 0 ? [] : _ref2$x,
1769
+ _ref2$y = _ref2.y,
1770
+ y = _ref2$y === void 0 ? [] : _ref2$y,
1695
1771
  xField = _ref2.xField,
1696
1772
  yFields = _ref2.yFields,
1697
1773
  y2 = _ref2.y2,
@@ -1734,36 +1810,15 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
1734
1810
  exports.constructFieldsAndColumns = constructFieldsAndColumns;
1735
1811
 
1736
1812
  /***/ }),
1737
- /* 45 */
1738
- /***/ (function(module, exports, __webpack_require__) {
1739
-
1740
- "use strict";
1741
-
1742
-
1743
- Object.defineProperty(exports, "__esModule", {
1744
- value: true
1745
- });
1746
-
1747
- var i18n_1 = __webpack_require__(3);
1748
-
1749
- var background = function background(_ref) {
1750
- var themes = _ref.themes;
1751
- return [{
1752
- label: i18n_1._('Background'),
1753
- option: 'backgroundColor',
1754
- editor: 'editor.color',
1755
- editorProps: {
1756
- themes: themes
1757
- }
1758
- }];
1759
- };
1813
+ /* 46 */
1814
+ /***/ (function(module, exports) {
1760
1815
 
1761
- exports.default = background;
1816
+ module.exports = require("@splunk/charting-bundle");
1762
1817
 
1763
1818
  /***/ }),
1764
- /* 46 */,
1765
1819
  /* 47 */,
1766
- /* 48 */
1820
+ /* 48 */,
1821
+ /* 49 */
1767
1822
  /***/ (function(module, exports, __webpack_require__) {
1768
1823
 
1769
1824
  "use strict";
@@ -1789,24 +1844,24 @@ var React = __webpack_require__(1);
1789
1844
 
1790
1845
  var T = __webpack_require__(0);
1791
1846
 
1792
- var react_event_listener_1 = __webpack_require__(49);
1847
+ var react_event_listener_1 = __webpack_require__(50);
1793
1848
 
1794
- __webpack_require__(50); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
1849
+ __webpack_require__(51); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
1795
1850
 
1796
1851
 
1797
- var charting_bundle_1 = __webpack_require__(43);
1852
+ var charting_bundle_1 = __webpack_require__(46);
1798
1853
 
1799
1854
  var style_1 = __webpack_require__(13);
1800
1855
 
1801
1856
  var styled_components_1 = __webpack_require__(4);
1802
1857
 
1803
- var Message_1 = __webpack_require__(8);
1858
+ var Message_1 = __webpack_require__(9);
1804
1859
 
1805
- var useSplunkTheme_1 = __webpack_require__(51);
1860
+ var useSplunkTheme_1 = __webpack_require__(52);
1806
1861
 
1807
- var themeUtils_1 = __webpack_require__(52);
1862
+ var themeUtils_1 = __webpack_require__(53);
1808
1863
 
1809
- var ChartingApi_1 = __webpack_require__(53);
1864
+ var ChartingApi_1 = __webpack_require__(54);
1810
1865
 
1811
1866
  exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
1812
1867
 
@@ -2088,6 +2143,7 @@ var Charting = function Charting(props) {
2088
2143
 
2089
2144
  var prevOptions = usePrevious(options);
2090
2145
  var prevTheme = usePrevious(themeKey);
2146
+ var prevOnClick = usePrevious(onClick);
2091
2147
  react_1.useEffect(function () {
2092
2148
  debouncedDrawChart();
2093
2149
  props.visualizationApiRef(api.current);
@@ -2099,7 +2155,7 @@ var Charting = function Charting(props) {
2099
2155
  react_1.useEffect(function () {
2100
2156
  // TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
2101
2157
  // seems like redraw doesn't suffice to update the background colors
2102
- if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) || !props.themeKey && prevTheme !== themeKey) {
2158
+ if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
2103
2159
  needsInit.current = true;
2104
2160
  }
2105
2161
 
@@ -2107,7 +2163,7 @@ var Charting = function Charting(props) {
2107
2163
  // otherwise a noop would occur if the onContainerMount drawChart is re-invoked when dimensions change
2108
2164
 
2109
2165
  drawChart();
2110
- }, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), themeKey]);
2166
+ }, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), themeKey, onClick]);
2111
2167
  return React.createElement(ChartingContainer, {
2112
2168
  style: style,
2113
2169
  ref: onContainerMount,
@@ -2169,39 +2225,39 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
2169
2225
  exports.default = withEmptyChartMessage(Charting);
2170
2226
 
2171
2227
  /***/ }),
2172
- /* 49 */
2228
+ /* 50 */
2173
2229
  /***/ (function(module, exports) {
2174
2230
 
2175
2231
  module.exports = require("react-event-listener");
2176
2232
 
2177
2233
  /***/ }),
2178
- /* 50 */
2234
+ /* 51 */
2179
2235
  /***/ (function(module, exports) {
2180
2236
 
2181
2237
  module.exports = require("@splunk/visualizations-shared/i18n");
2182
2238
 
2183
2239
  /***/ }),
2184
- /* 51 */
2240
+ /* 52 */
2185
2241
  /***/ (function(module, exports) {
2186
2242
 
2187
2243
  module.exports = require("@splunk/themes/useSplunkTheme");
2188
2244
 
2189
2245
  /***/ }),
2190
- /* 52 */
2246
+ /* 53 */
2191
2247
  /***/ (function(module, exports) {
2192
2248
 
2193
2249
  module.exports = require("@splunk/visualizations-shared/themeUtils");
2194
2250
 
2195
2251
  /***/ }),
2196
- /* 53 */
2252
+ /* 54 */
2197
2253
  /***/ (function(module, exports, __webpack_require__) {
2198
2254
 
2199
2255
  "use strict";
2200
2256
 
2201
2257
 
2202
- var _classCallCheck = __webpack_require__(9);
2258
+ var _classCallCheck = __webpack_require__(10);
2203
2259
 
2204
- var _createClass = __webpack_require__(17);
2260
+ var _createClass = __webpack_require__(16);
2205
2261
 
2206
2262
  Object.defineProperty(exports, "__esModule", {
2207
2263
  value: true
@@ -2260,29 +2316,11 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
2260
2316
  exports.ChartingApiFunctional = ChartingApiFunctional;
2261
2317
 
2262
2318
  /***/ }),
2263
- /* 54 */
2319
+ /* 55 */
2264
2320
  /***/ (function(module, exports) {
2265
2321
 
2266
2322
  module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2267
2323
 
2268
- /***/ }),
2269
- /* 55 */
2270
- /***/ (function(module, exports, __webpack_require__) {
2271
-
2272
- "use strict";
2273
-
2274
-
2275
- Object.defineProperty(exports, "__esModule", {
2276
- value: true
2277
- });
2278
- exports.enableClickHandler = void 0;
2279
-
2280
- var enableClickHandler = function enableClickHandler(hasEventHandlers, mode) {
2281
- return !!hasEventHandlers && mode === 'view';
2282
- };
2283
-
2284
- exports.enableClickHandler = enableClickHandler;
2285
-
2286
2324
  /***/ }),
2287
2325
  /* 56 */,
2288
2326
  /* 57 */,
@@ -2348,7 +2386,11 @@ exports.enableClickHandler = enableClickHandler;
2348
2386
  /* 117 */,
2349
2387
  /* 118 */,
2350
2388
  /* 119 */,
2351
- /* 120 */
2389
+ /* 120 */,
2390
+ /* 121 */,
2391
+ /* 122 */,
2392
+ /* 123 */,
2393
+ /* 124 */
2352
2394
  /***/ (function(module, exports, __webpack_require__) {
2353
2395
 
2354
2396
  "use strict";
@@ -2374,23 +2416,21 @@ exports.config = exports.themes = exports.computeVizProps = exports.PieInnerSize
2374
2416
 
2375
2417
  var lodash_1 = __webpack_require__(2);
2376
2418
 
2377
- var Charting_1 = __webpack_require__(48);
2419
+ var Charting_1 = __webpack_require__(49);
2378
2420
 
2379
- var charting_bundle_1 = __webpack_require__(43);
2421
+ var charting_bundle_1 = __webpack_require__(46);
2380
2422
 
2381
- var simpleXMLOptions_1 = __webpack_require__(54);
2423
+ var simpleXMLOptions_1 = __webpack_require__(55);
2382
2424
 
2383
- var config_1 = __webpack_require__(189);
2425
+ var config_1 = __webpack_require__(203);
2384
2426
 
2385
2427
  exports.config = config_1.default;
2386
2428
 
2387
- var withDashboardViz_1 = __webpack_require__(25);
2388
-
2389
- var pieUtils_1 = __webpack_require__(191);
2429
+ var withDashboardViz_1 = __webpack_require__(27);
2390
2430
 
2391
- var chartingUtils_1 = __webpack_require__(44);
2431
+ var pieUtils_1 = __webpack_require__(205);
2392
2432
 
2393
- var eventUtils_1 = __webpack_require__(55);
2433
+ var chartingUtils_1 = __webpack_require__(45);
2394
2434
 
2395
2435
  var validOptions = Object.keys(config_1.default.optionsSchema);
2396
2436
  exports.PieInnerSize = 0.7;
@@ -2408,6 +2448,9 @@ var computeVizProps = function computeVizProps(_a) {
2408
2448
  var computedProps = {
2409
2449
  visualizationApiRef: visualizationApiRef
2410
2450
  };
2451
+ var labelField = otherOptions.labelField,
2452
+ valueField = otherOptions.valueField,
2453
+ hasEventHandlers = otherOptions.hasEventHandlers;
2411
2454
  computedProps.options = lodash_1.chain(otherOptions).pick(validOptions).thru(pieUtils_1.convertToPieSCProperties).thru(function (options) {
2412
2455
  return Object.assign(Object.assign({}, simpleXMLOptions_1.getSimpleXMLOptionsForProps(options)), {
2413
2456
  chart: 'pie'
@@ -2417,6 +2460,11 @@ var computeVizProps = function computeVizProps(_a) {
2417
2460
  var primaryData = Object.assign(Object.assign({}, dataSources.primary.data), {
2418
2461
  columns: [label, value]
2419
2462
  });
2463
+ primaryData.fields = [{
2464
+ name: labelField
2465
+ }, {
2466
+ name: valueField
2467
+ }];
2420
2468
  primaryData.columns.forEach(function (column, index) {
2421
2469
  if (column) {
2422
2470
  primaryData.columns[index] = column.map(String);
@@ -2435,7 +2483,7 @@ var computeVizProps = function computeVizProps(_a) {
2435
2483
  computedProps.options['chart.pieInnerSize'] = 0;
2436
2484
  }
2437
2485
 
2438
- if (eventUtils_1.enableClickHandler(otherOptions.hasEventHandlers, otherOptions.mode)) {
2486
+ if (hasEventHandlers) {
2439
2487
  computedProps.onClick = onEventTrigger;
2440
2488
  }
2441
2489
 
@@ -2453,10 +2501,6 @@ exports.themes = themes;
2453
2501
  exports.default = Pie;
2454
2502
 
2455
2503
  /***/ }),
2456
- /* 121 */,
2457
- /* 122 */,
2458
- /* 123 */,
2459
- /* 124 */,
2460
2504
  /* 125 */,
2461
2505
  /* 126 */,
2462
2506
  /* 127 */,
@@ -2520,7 +2564,21 @@ exports.default = Pie;
2520
2564
  /* 185 */,
2521
2565
  /* 186 */,
2522
2566
  /* 187 */,
2523
- /* 188 */
2567
+ /* 188 */,
2568
+ /* 189 */,
2569
+ /* 190 */,
2570
+ /* 191 */,
2571
+ /* 192 */,
2572
+ /* 193 */,
2573
+ /* 194 */,
2574
+ /* 195 */,
2575
+ /* 196 */,
2576
+ /* 197 */,
2577
+ /* 198 */,
2578
+ /* 199 */,
2579
+ /* 200 */,
2580
+ /* 201 */,
2581
+ /* 202 */
2524
2582
  /***/ (function(module, exports, __webpack_require__) {
2525
2583
 
2526
2584
  "use strict";
@@ -2550,9 +2608,9 @@ Object.defineProperty(exports, "__esModule", {
2550
2608
  });
2551
2609
  exports.default = void 0;
2552
2610
 
2553
- __exportStar(__webpack_require__(120), exports);
2611
+ __exportStar(__webpack_require__(124), exports);
2554
2612
 
2555
- var Pie_1 = __webpack_require__(120);
2613
+ var Pie_1 = __webpack_require__(124);
2556
2614
 
2557
2615
  Object.defineProperty(exports, "default", {
2558
2616
  enumerable: true,
@@ -2562,7 +2620,7 @@ Object.defineProperty(exports, "default", {
2562
2620
  });
2563
2621
 
2564
2622
  /***/ }),
2565
- /* 189 */
2623
+ /* 203 */
2566
2624
  /***/ (function(module, exports, __webpack_require__) {
2567
2625
 
2568
2626
  "use strict";
@@ -2572,7 +2630,7 @@ Object.defineProperty(exports, "__esModule", {
2572
2630
  value: true
2573
2631
  });
2574
2632
 
2575
- var ChartPie_1 = __webpack_require__(190);
2633
+ var ChartPie_1 = __webpack_require__(204);
2576
2634
 
2577
2635
  var i18n_1 = __webpack_require__(3);
2578
2636
 
@@ -2580,17 +2638,17 @@ var schemaUtils_1 = __webpack_require__(14);
2580
2638
 
2581
2639
  var visualization_color_palettes_1 = __webpack_require__(41);
2582
2640
 
2583
- var pick_1 = __webpack_require__(20);
2641
+ var pick_1 = __webpack_require__(21);
2584
2642
 
2585
2643
  var variables_1 = __webpack_require__(19);
2586
2644
 
2587
2645
  var VizBehavior_1 = __webpack_require__(5);
2588
2646
 
2589
- var VizCategory_1 = __webpack_require__(24);
2647
+ var VizCategory_1 = __webpack_require__(26);
2590
2648
 
2591
- var configUtils_1 = __webpack_require__(7);
2649
+ var configUtils_1 = __webpack_require__(8);
2592
2650
 
2593
- var BackgroundColor_1 = __webpack_require__(45);
2651
+ var BackgroundColor_1 = __webpack_require__(44);
2594
2652
 
2595
2653
  var dataContract = {
2596
2654
  requiredDataSources: [{
@@ -2636,6 +2694,16 @@ var optionsSchema = {
2636
2694
  },
2637
2695
  default: '> primary | seriesByIndex(1)'
2638
2696
  },
2697
+ labelField: {
2698
+ default: '> label | getField()',
2699
+ description: 'Specify the field that corresponds to the labels.',
2700
+ type: 'string'
2701
+ },
2702
+ valueField: {
2703
+ default: '> value | getField()',
2704
+ description: 'Specify the field that corresponds to the data powering values.',
2705
+ type: 'string'
2706
+ },
2639
2707
  backgroundColor: {
2640
2708
  default: '> themes.defaultBackgroundColor',
2641
2709
  description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
@@ -2786,13 +2854,13 @@ var config = {
2786
2854
  exports.default = configUtils_1.enhanceConfig(config);
2787
2855
 
2788
2856
  /***/ }),
2789
- /* 190 */
2857
+ /* 204 */
2790
2858
  /***/ (function(module, exports) {
2791
2859
 
2792
2860
  module.exports = require("@splunk/react-icons/ChartPie");
2793
2861
 
2794
2862
  /***/ }),
2795
- /* 191 */
2863
+ /* 205 */
2796
2864
  /***/ (function(module, exports, __webpack_require__) {
2797
2865
 
2798
2866
  "use strict";
@@ -2818,7 +2886,7 @@ exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay
2818
2886
 
2819
2887
  var lodash_1 = __webpack_require__(2);
2820
2888
 
2821
- var propUtils_1 = __webpack_require__(16); // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
2889
+ var propUtils_1 = __webpack_require__(18); // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
2822
2890
  // map for key names which are either new or not present in SimpleXML options mapping
2823
2891
 
2824
2892