@splunk/visualizations 24.4.0 → 24.5.2

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 (125) hide show
  1. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  2. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  3. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  4. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  5. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  6. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  7. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Placeholder_If_No_Svg_And_No_Data.png +0 -0
  25. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  26. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  27. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
  28. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  29. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  30. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_empty_columns_and_fields.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_label_data_specified.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_value_data_specified.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_missing_column.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
  49. package/Area.js +246 -218
  50. package/Area.js.map +1 -1
  51. package/Bar.js +238 -210
  52. package/Bar.js.map +1 -1
  53. package/Bubble.js +231 -203
  54. package/Bubble.js.map +1 -1
  55. package/ChoroplethSvg.js +230 -197
  56. package/ChoroplethSvg.js.map +1 -1
  57. package/Column.js +238 -210
  58. package/Column.js.map +1 -1
  59. package/Ellipse.js +203 -170
  60. package/Ellipse.js.map +1 -1
  61. package/FillerGauge.js +222 -189
  62. package/FillerGauge.js.map +1 -1
  63. package/Image.js +199 -164
  64. package/Image.js.map +1 -1
  65. package/Line.js +239 -211
  66. package/Line.js.map +1 -1
  67. package/LinkGraph.js +264 -223
  68. package/LinkGraph.js.map +1 -1
  69. package/Map.config.js +39 -25
  70. package/Map.config.js.map +1 -1
  71. package/Map.js +460 -334
  72. package/Map.js.map +1 -1
  73. package/Markdown.config.js +29 -1
  74. package/Markdown.config.js.map +1 -1
  75. package/Markdown.js +513 -267
  76. package/Markdown.js.map +1 -1
  77. package/MarkerGauge.js +941 -906
  78. package/MarkerGauge.js.map +1 -1
  79. package/ParallelCoordinates.js +230 -196
  80. package/ParallelCoordinates.js.map +1 -1
  81. package/Pie.js +309 -249
  82. package/Pie.js.map +1 -1
  83. package/Punchcard.js +263 -229
  84. package/Punchcard.js.map +1 -1
  85. package/Rectangle.js +217 -182
  86. package/Rectangle.js.map +1 -1
  87. package/Sankey.js +269 -230
  88. package/Sankey.js.map +1 -1
  89. package/Scatter.js +314 -286
  90. package/Scatter.js.map +1 -1
  91. package/SingleValue.js +398 -363
  92. package/SingleValue.js.map +1 -1
  93. package/SingleValueBasic.js +25 -25
  94. package/SingleValueBasic.js.map +1 -1
  95. package/SingleValueIcon.js +2821 -2653
  96. package/SingleValueIcon.js.map +1 -1
  97. package/SingleValueRadial.js +359 -324
  98. package/SingleValueRadial.js.map +1 -1
  99. package/Table.config.js +2 -1
  100. package/Table.config.js.map +1 -1
  101. package/Table.js +629 -347
  102. package/Table.js.map +1 -1
  103. package/common/Charting.js +21 -21
  104. package/common/Charting.js.map +1 -1
  105. package/common/ChartingApi.js +2 -2
  106. package/common/ChartingApi.js.map +1 -1
  107. package/common/EventsDoc.js +18 -18
  108. package/common/EventsDoc.js.map +1 -1
  109. package/common/GaugeMajorTicks.js +10 -10
  110. package/common/GaugeMajorTicks.js.map +1 -1
  111. package/common/GaugeValueMarker.js +10 -10
  112. package/common/GaugeValueMarker.js.map +1 -1
  113. package/common/OptionsDoc.js +217 -174
  114. package/common/OptionsDoc.js.map +1 -1
  115. package/common/SplunkVisualization.js +4 -4
  116. package/common/SplunkVisualization.js.map +1 -1
  117. package/common/ThemesDoc.js +26 -26
  118. package/common/ThemesDoc.js.map +1 -1
  119. package/common/chartingUtils.js +3 -3
  120. package/common/chartingUtils.js.map +1 -1
  121. package/common/gaugeUtils.js +2 -2
  122. package/common/shapeUtils.js +2 -2
  123. package/common/withDashboardViz.js +80 -48
  124. package/common/withDashboardViz.js.map +1 -1
  125. package/package.json +13 -11
package/Bubble.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 = 148);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 150);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -164,7 +164,7 @@ var VizBehavior;
164
164
  "use strict";
165
165
 
166
166
 
167
- var _defineProperty = __webpack_require__(8);
167
+ var _defineProperty = __webpack_require__(7);
168
168
 
169
169
  var __rest = this && this.__rest || function (s, e) {
170
170
  var t = {};
@@ -350,12 +350,18 @@ exports.generatePrecisionValues = generatePrecisionValues;
350
350
 
351
351
  /***/ }),
352
352
  /* 7 */
353
+ /***/ (function(module, exports) {
354
+
355
+ module.exports = require("@babel/runtime/helpers/defineProperty");
356
+
357
+ /***/ }),
358
+ /* 8 */
353
359
  /***/ (function(module, exports, __webpack_require__) {
354
360
 
355
361
  "use strict";
356
362
 
357
363
 
358
- var _typeof = __webpack_require__(20);
364
+ var _typeof = __webpack_require__(21);
359
365
 
360
366
  Object.defineProperty(exports, "__esModule", {
361
367
  value: true
@@ -476,12 +482,6 @@ var findClosestMatchFromDefaultList = function findClosestMatchFromDefaultList(s
476
482
 
477
483
  exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
478
484
 
479
- /***/ }),
480
- /* 8 */
481
- /***/ (function(module, exports) {
482
-
483
- module.exports = require("@babel/runtime/helpers/defineProperty");
484
-
485
485
  /***/ }),
486
486
  /* 9 */
487
487
  /***/ (function(module, exports) {
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
582
582
 
583
583
  return React.createElement(FixSizeItem, {
584
584
  "data-test": "fix-size-item",
585
- "data-splunk-visualization-version": "24.4.0 - 98920928c",
585
+ "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
586
586
  width: width,
587
587
  height: height,
588
588
  backgroundColor: backgroundColor
@@ -631,23 +631,29 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
631
631
  /* 19 */
632
632
  /***/ (function(module, exports) {
633
633
 
634
- module.exports = require("@splunk/visualizations-shared/propUtils");
634
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
635
635
 
636
636
  /***/ }),
637
637
  /* 20 */
638
638
  /***/ (function(module, exports) {
639
639
 
640
- module.exports = require("@babel/runtime/helpers/typeof");
640
+ module.exports = require("@splunk/visualizations-shared/propUtils");
641
641
 
642
642
  /***/ }),
643
643
  /* 21 */
644
644
  /***/ (function(module, exports) {
645
645
 
646
+ module.exports = require("@babel/runtime/helpers/typeof");
647
+
648
+ /***/ }),
649
+ /* 22 */
650
+ /***/ (function(module, exports) {
651
+
646
652
  module.exports = require("@splunk/themes/pick");
647
653
 
648
654
  /***/ }),
649
- /* 22 */,
650
- /* 23 */
655
+ /* 23 */,
656
+ /* 24 */
651
657
  /***/ (function(module, exports, __webpack_require__) {
652
658
 
653
659
  "use strict";
@@ -680,13 +686,104 @@ var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
680
686
  exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
681
687
 
682
688
  /***/ }),
683
- /* 24 */
689
+ /* 25 */
690
+ /***/ (function(module, exports, __webpack_require__) {
691
+
692
+ "use strict";
693
+
694
+
695
+ Object.defineProperty(exports, "__esModule", {
696
+ value: true
697
+ });
698
+ exports.shouldShowIconPlaceholder = void 0;
699
+
700
+ var React = __webpack_require__(1);
701
+
702
+ var T = __webpack_require__(0);
703
+
704
+ var lodash_1 = __webpack_require__(2);
705
+
706
+ var i18n_1 = __webpack_require__(3);
707
+
708
+ var Message_1 = __webpack_require__(9);
709
+
710
+ var FixedSizeContainer_1 = __webpack_require__(13);
711
+ /**
712
+ * @method shouldShowIconPlaceholder
713
+ * @param {object} dataSources
714
+ * @param {boolean} loading
715
+ * @returns {boolean}
716
+ */
717
+
718
+
719
+ var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
720
+ var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
721
+ var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
722
+ var noData = data === undefined;
723
+ var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
724
+ var noFields = fields === undefined;
725
+ return loading || noData || noFields;
726
+ };
727
+
728
+ exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
729
+ var propTypes = {
730
+ icon: T.func,
731
+ width: T.oneOfType([T.string, T.number]),
732
+ height: T.oneOfType([T.string, T.number]),
733
+ // eslint-disable-next-line react/no-unused-prop-types
734
+ backgroundColor: T.string,
735
+ iconColor: T.string
736
+ };
737
+ /**
738
+ * @method IconPlaceholder
739
+ * @param {IconPlaceholderProps} props
740
+ * @returns {React.ReactElement}
741
+ */
742
+
743
+ var IconPlaceholder = function IconPlaceholder(props) {
744
+ var width = props.width,
745
+ height = props.height,
746
+ icon = props.icon,
747
+ iconColor = props.iconColor;
748
+
749
+ if (icon) {
750
+ return React.createElement(icon, {
751
+ style: {
752
+ left: '50%',
753
+ top: '50%',
754
+ color: iconColor,
755
+ opacity: 0.15,
756
+ position: 'absolute',
757
+ transform: 'translate(-50%, -50%)'
758
+ },
759
+ width: '50%',
760
+ height: '50%'
761
+ });
762
+ }
763
+
764
+ return React.createElement(Message_1.default, {
765
+ width: width,
766
+ height: height,
767
+ level: "warning",
768
+ message: i18n_1._('No DataSource Connected')
769
+ });
770
+ };
771
+
772
+ IconPlaceholder.propTypes = propTypes;
773
+ IconPlaceholder.defaultProps = {
774
+ width: '100%',
775
+ height: 250
776
+ };
777
+ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
778
+
779
+ /***/ }),
780
+ /* 26 */
684
781
  /***/ (function(module, exports, __webpack_require__) {
685
782
 
686
783
  "use strict";
687
784
 
688
785
 
689
- var _defineProperty = __webpack_require__(8);
786
+ var _defineProperty = __webpack_require__(7);
690
787
 
691
788
  Object.defineProperty(exports, "__esModule", {
692
789
  value: true
@@ -697,7 +794,7 @@ var T = __webpack_require__(0);
697
794
 
698
795
  var lodash_1 = __webpack_require__(2);
699
796
 
700
- var DataSource_1 = __webpack_require__(34);
797
+ var DataSource_1 = __webpack_require__(36);
701
798
 
702
799
  exports.SortParamsPropTypes = T.shape({
703
800
  currentSortKey: T.string,
@@ -750,7 +847,7 @@ var getSortingParams = function getSortingParams(_ref) {
750
847
  exports.getSortingParams = getSortingParams;
751
848
 
752
849
  /***/ }),
753
- /* 25 */
850
+ /* 27 */
754
851
  /***/ (function(module, exports, __webpack_require__) {
755
852
 
756
853
  "use strict";
@@ -814,98 +911,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
814
911
  exports.getPaginationParams = getPaginationParams;
815
912
 
816
913
  /***/ }),
817
- /* 26 */
818
- /***/ (function(module, exports, __webpack_require__) {
819
-
820
- "use strict";
821
-
822
-
823
- Object.defineProperty(exports, "__esModule", {
824
- value: true
825
- });
826
- exports.shouldShowIconPlaceholder = void 0;
827
-
828
- var React = __webpack_require__(1);
829
-
830
- var T = __webpack_require__(0);
831
-
832
- var lodash_1 = __webpack_require__(2);
833
-
834
- var i18n_1 = __webpack_require__(3);
835
-
836
- var Message_1 = __webpack_require__(9);
837
-
838
- var FixedSizeContainer_1 = __webpack_require__(13);
839
- /**
840
- * @method shouldShowIconPlaceholder
841
- * @param {object} dataSources
842
- * @param {boolean} loading
843
- * @returns {boolean}
844
- */
845
-
846
-
847
- var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
848
- var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
849
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
850
- var noData = data === undefined;
851
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
852
- var noFields = fields === undefined;
853
- return loading || noData || noFields;
854
- };
855
-
856
- exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
857
- var propTypes = {
858
- icon: T.func,
859
- width: T.oneOfType([T.string, T.number]),
860
- height: T.oneOfType([T.string, T.number]),
861
- // eslint-disable-next-line react/no-unused-prop-types
862
- backgroundColor: T.string,
863
- iconColor: T.string
864
- };
865
- /**
866
- * @method IconPlaceholder
867
- * @param {IconPlaceholderProps} props
868
- * @returns {React.ReactElement}
869
- */
870
-
871
- var IconPlaceholder = function IconPlaceholder(props) {
872
- var width = props.width,
873
- height = props.height,
874
- icon = props.icon,
875
- iconColor = props.iconColor;
876
-
877
- if (icon) {
878
- return React.createElement(icon, {
879
- style: {
880
- left: '50%',
881
- top: '50%',
882
- color: iconColor,
883
- opacity: 0.15,
884
- position: 'absolute',
885
- transform: 'translate(-50%, -50%)'
886
- },
887
- width: '50%',
888
- height: '50%'
889
- });
890
- }
891
-
892
- return React.createElement(Message_1.default, {
893
- width: width,
894
- height: height,
895
- level: "warning",
896
- message: i18n_1._('No DataSource Connected')
897
- });
898
- };
899
-
900
- IconPlaceholder.propTypes = propTypes;
901
- IconPlaceholder.defaultProps = {
902
- width: '100%',
903
- height: 250
904
- };
905
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
906
-
907
- /***/ }),
908
- /* 27 */
914
+ /* 28 */
909
915
  /***/ (function(module, exports, __webpack_require__) {
910
916
 
911
917
  "use strict";
@@ -933,7 +939,7 @@ var VizCategory;
933
939
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
934
940
 
935
941
  /***/ }),
936
- /* 28 */
942
+ /* 29 */
937
943
  /***/ (function(module, exports, __webpack_require__) {
938
944
 
939
945
  "use strict";
@@ -947,33 +953,37 @@ var React = __webpack_require__(1);
947
953
 
948
954
  var lodash_1 = __webpack_require__(2);
949
955
 
950
- var getSettingsFromThemedProps_1 = __webpack_require__(29);
956
+ var getSettingsFromThemedProps_1 = __webpack_require__(30);
957
+
958
+ var Options_1 = __webpack_require__(31);
951
959
 
952
- var Options_1 = __webpack_require__(30);
960
+ var SanitizeProps_1 = __webpack_require__(32);
953
961
 
954
- var SanitizeProps_1 = __webpack_require__(31);
962
+ var TimezoneContext_1 = __webpack_require__(19);
963
+
964
+ var moment_1 = __webpack_require__(33);
955
965
 
956
966
  var styled_components_1 = __webpack_require__(4);
957
967
 
958
- var SplunkVisualization_1 = __webpack_require__(32);
968
+ var SplunkVisualization_1 = __webpack_require__(34);
959
969
 
960
970
  var VizBehavior_1 = __webpack_require__(5);
961
971
 
962
- var getSorting_1 = __webpack_require__(24);
972
+ var getSorting_1 = __webpack_require__(26);
963
973
 
964
- var getPagination_1 = __webpack_require__(25);
974
+ var getPagination_1 = __webpack_require__(27);
965
975
 
966
- var useDeepMemo_1 = __webpack_require__(35);
976
+ var useDeepMemo_1 = __webpack_require__(37);
967
977
 
968
- var JSONSchemaUtils_1 = __webpack_require__(23);
978
+ var JSONSchemaUtils_1 = __webpack_require__(24);
969
979
 
970
- var MissingPropsMessage_1 = __webpack_require__(36);
980
+ var MissingPropsMessage_1 = __webpack_require__(38);
971
981
 
972
- var withEditModeCover_1 = __webpack_require__(37);
982
+ var withEditModeCover_1 = __webpack_require__(39);
973
983
 
974
- var withPlaceholder_1 = __webpack_require__(38);
984
+ var withPlaceholder_1 = __webpack_require__(40);
975
985
 
976
- var hocUtils_1 = __webpack_require__(7);
986
+ var hocUtils_1 = __webpack_require__(8);
977
987
  /**
978
988
  * hoc that wraps a pure react visualization in a Dashboard visualization
979
989
  * @param {DashboardVizOpts} opts
@@ -1006,6 +1016,23 @@ var withDashboardViz = function withDashboardViz(opts) {
1006
1016
  theme = props.theme,
1007
1017
  onRequestParamsChange = props.onRequestParamsChange;
1008
1018
 
1019
+ var _React$useContext = React.useContext(TimezoneContext_1.default),
1020
+ serializedTimezone = _React$useContext.serializedTimezone;
1021
+
1022
+ if (serializedTimezone) {
1023
+ /*
1024
+ @splunk/moment currently does not allow us to customize the timezone on a per visualization basis.
1025
+ This ensures that if a timezone was provided via TimezoneContext @splunk/moment time formatting
1026
+ will use it.
1027
+ @TODO(pwied):
1028
+ - remove when we moved away from @splunk/moment
1029
+ - provide timezone context to dynamic option evaluation phase
1030
+ */
1031
+ if (!moment_1.default.getDefaultSplunkTimezone()) {
1032
+ moment_1.default.setDefaultSplunkTimezone(serializedTimezone);
1033
+ }
1034
+ }
1035
+
1009
1036
  var themeFunc = function themeFunc(themeVar) {
1010
1037
  var _a, _b;
1011
1038
 
@@ -1034,7 +1061,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1034
1061
  console.error("unexpected error evaluating options: + ".concat(e.message));
1035
1062
  return {};
1036
1063
  }
1037
- }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources]); // useEffect hook needs to be initialized before any early returns
1064
+ }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
1038
1065
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
1039
1066
 
1040
1067
  React.useEffect(function () {
@@ -1157,25 +1184,31 @@ var withDashboardViz = function withDashboardViz(opts) {
1157
1184
  exports.default = withDashboardViz;
1158
1185
 
1159
1186
  /***/ }),
1160
- /* 29 */
1187
+ /* 30 */
1161
1188
  /***/ (function(module, exports) {
1162
1189
 
1163
1190
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1164
1191
 
1165
1192
  /***/ }),
1166
- /* 30 */
1193
+ /* 31 */
1167
1194
  /***/ (function(module, exports) {
1168
1195
 
1169
1196
  module.exports = require("@splunk/visualization-encoding/Options");
1170
1197
 
1171
1198
  /***/ }),
1172
- /* 31 */
1199
+ /* 32 */
1173
1200
  /***/ (function(module, exports) {
1174
1201
 
1175
1202
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1176
1203
 
1177
1204
  /***/ }),
1178
- /* 32 */
1205
+ /* 33 */
1206
+ /***/ (function(module, exports) {
1207
+
1208
+ module.exports = require("@splunk/moment");
1209
+
1210
+ /***/ }),
1211
+ /* 34 */
1179
1212
  /***/ (function(module, exports, __webpack_require__) {
1180
1213
 
1181
1214
  "use strict";
@@ -1193,7 +1226,7 @@ var T = __webpack_require__(0);
1193
1226
 
1194
1227
  var lodash_1 = __webpack_require__(2);
1195
1228
 
1196
- var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1229
+ var VizActionHandler_1 = __webpack_require__(35); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1197
1230
 
1198
1231
 
1199
1232
  exports.INITIAL_WIDTH = 250;
@@ -1326,7 +1359,7 @@ SplunkVisualization.defaultProps = {
1326
1359
  exports.default = SplunkVisualization;
1327
1360
 
1328
1361
  /***/ }),
1329
- /* 33 */
1362
+ /* 35 */
1330
1363
  /***/ (function(module, exports, __webpack_require__) {
1331
1364
 
1332
1365
  "use strict";
@@ -1363,7 +1396,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
1363
1396
  exports.DefaultVizActionHandler = DefaultVizActionHandler;
1364
1397
 
1365
1398
  /***/ }),
1366
- /* 34 */
1399
+ /* 36 */
1367
1400
  /***/ (function(module, exports, __webpack_require__) {
1368
1401
 
1369
1402
  "use strict";
@@ -1376,7 +1409,7 @@ exports.validSortDirs = void 0;
1376
1409
  exports.validSortDirs = ['asc', 'desc', 'none'];
1377
1410
 
1378
1411
  /***/ }),
1379
- /* 35 */
1412
+ /* 37 */
1380
1413
  /***/ (function(module, exports, __webpack_require__) {
1381
1414
 
1382
1415
  "use strict";
@@ -1421,7 +1454,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
1421
1454
  exports.useDeepMemo = useDeepMemo;
1422
1455
 
1423
1456
  /***/ }),
1424
- /* 36 */
1457
+ /* 38 */
1425
1458
  /***/ (function(module, exports, __webpack_require__) {
1426
1459
 
1427
1460
  "use strict";
@@ -1501,7 +1534,7 @@ exports.MissingPropsMessage.defaultProps = {
1501
1534
  exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1502
1535
 
1503
1536
  /***/ }),
1504
- /* 37 */
1537
+ /* 39 */
1505
1538
  /***/ (function(module, exports, __webpack_require__) {
1506
1539
 
1507
1540
  "use strict";
@@ -1515,14 +1548,14 @@ var React = __webpack_require__(1);
1515
1548
 
1516
1549
  var styled_components_1 = __webpack_require__(4);
1517
1550
 
1518
- var hocUtils_1 = __webpack_require__(7);
1551
+ var hocUtils_1 = __webpack_require__(8);
1519
1552
 
1520
1553
  var Cover = styled_components_1.default.div.withConfig({
1521
1554
  displayName: "withEditModeCover__Cover",
1522
1555
  componentId: "sc-1gsbnxb-0"
1523
1556
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1524
1557
  var Blocker = styled_components_1.default.div.attrs({
1525
- 'data-splunk-visualization-version': "24.4.0 - 98920928c"
1558
+ 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
1526
1559
  }).withConfig({
1527
1560
  displayName: "withEditModeCover__Blocker",
1528
1561
  componentId: "sc-1gsbnxb-1"
@@ -1553,7 +1586,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
1553
1586
  exports.default = withEditModeCover;
1554
1587
 
1555
1588
  /***/ }),
1556
- /* 38 */
1589
+ /* 40 */
1557
1590
  /***/ (function(module, exports, __webpack_require__) {
1558
1591
 
1559
1592
  "use strict";
@@ -1569,11 +1602,11 @@ var colorUtils_1 = __webpack_require__(12);
1569
1602
 
1570
1603
  var variables_1 = __webpack_require__(11);
1571
1604
 
1572
- var IconPlaceholder_1 = __webpack_require__(26);
1605
+ var IconPlaceholder_1 = __webpack_require__(25);
1573
1606
 
1574
1607
  var VizBehavior_1 = __webpack_require__(5);
1575
1608
 
1576
- var hocUtils_1 = __webpack_require__(7);
1609
+ var hocUtils_1 = __webpack_require__(8);
1577
1610
 
1578
1611
  var withPlaceholder = function withPlaceholder(Visualization) {
1579
1612
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -1617,34 +1650,34 @@ var withPlaceholder = function withPlaceholder(Visualization) {
1617
1650
  exports.default = withPlaceholder;
1618
1651
 
1619
1652
  /***/ }),
1620
- /* 39 */
1653
+ /* 41 */
1621
1654
  /***/ (function(module, exports) {
1622
1655
 
1623
1656
  module.exports = require("@babel/runtime/helpers/toConsumableArray");
1624
1657
 
1625
1658
  /***/ }),
1626
- /* 40 */,
1627
- /* 41 */
1659
+ /* 42 */,
1660
+ /* 43 */
1628
1661
  /***/ (function(module, exports) {
1629
1662
 
1630
1663
  module.exports = require("@splunk/visualization-color-palettes");
1631
1664
 
1632
1665
  /***/ }),
1633
- /* 42 */
1666
+ /* 44 */
1634
1667
  /***/ (function(module, exports) {
1635
1668
 
1636
1669
  module.exports = require("@splunk/visualization-icons/placeholders");
1637
1670
 
1638
1671
  /***/ }),
1639
- /* 43 */
1672
+ /* 45 */
1640
1673
  /***/ (function(module, exports) {
1641
1674
 
1642
1675
  module.exports = require("@splunk/visualization-icons");
1643
1676
 
1644
1677
  /***/ }),
1645
- /* 44 */,
1646
- /* 45 */,
1647
- /* 46 */
1678
+ /* 46 */,
1679
+ /* 47 */,
1680
+ /* 48 */
1648
1681
  /***/ (function(module, exports, __webpack_require__) {
1649
1682
 
1650
1683
  "use strict";
@@ -1674,13 +1707,13 @@ var background = function background(_ref) {
1674
1707
  exports.default = background;
1675
1708
 
1676
1709
  /***/ }),
1677
- /* 47 */
1710
+ /* 49 */
1678
1711
  /***/ (function(module, exports, __webpack_require__) {
1679
1712
 
1680
1713
  "use strict";
1681
1714
 
1682
1715
 
1683
- var _toConsumableArray = __webpack_require__(39);
1716
+ var _toConsumableArray = __webpack_require__(41);
1684
1717
 
1685
1718
  var __rest = this && this.__rest || function (s, e) {
1686
1719
  var t = {};
@@ -1747,7 +1780,7 @@ var truncateData = function truncateData(dataSet, truncationLimit) {
1747
1780
 
1748
1781
  var truncatedData = Object.assign({}, dataSet);
1749
1782
  truncatedData.columns = truncatedData.columns.map(function (columnData) {
1750
- return columnData.slice(0, limit);
1783
+ return columnData && Array.isArray(columnData) ? columnData.slice(0, limit) : columnData;
1751
1784
  });
1752
1785
  return truncatedData;
1753
1786
  };
@@ -1895,16 +1928,16 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
1895
1928
  exports.constructFieldsAndColumns = constructFieldsAndColumns;
1896
1929
 
1897
1930
  /***/ }),
1898
- /* 48 */
1931
+ /* 50 */
1899
1932
  /***/ (function(module, exports) {
1900
1933
 
1901
1934
  module.exports = require("@splunk/charting-bundle");
1902
1935
 
1903
1936
  /***/ }),
1904
- /* 49 */,
1905
- /* 50 */,
1906
1937
  /* 51 */,
1907
- /* 52 */
1938
+ /* 52 */,
1939
+ /* 53 */,
1940
+ /* 54 */
1908
1941
  /***/ (function(module, exports, __webpack_require__) {
1909
1942
 
1910
1943
  "use strict";
@@ -1920,7 +1953,7 @@ var lodash_1 = __webpack_require__(2);
1920
1953
 
1921
1954
  var i18n_1 = __webpack_require__(3);
1922
1955
 
1923
- var visualization_color_palettes_1 = __webpack_require__(41);
1956
+ var visualization_color_palettes_1 = __webpack_require__(43);
1924
1957
 
1925
1958
  var react_1 = __webpack_require__(1);
1926
1959
 
@@ -1928,14 +1961,14 @@ var React = __webpack_require__(1);
1928
1961
 
1929
1962
  var T = __webpack_require__(0);
1930
1963
 
1931
- var react_event_listener_1 = __webpack_require__(53);
1964
+ var react_event_listener_1 = __webpack_require__(55);
1932
1965
 
1933
- __webpack_require__(54); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
1966
+ __webpack_require__(56); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
1934
1967
 
1935
1968
 
1936
- var charting_bundle_1 = __webpack_require__(48);
1969
+ var charting_bundle_1 = __webpack_require__(50);
1937
1970
 
1938
- var TimezoneContext_1 = __webpack_require__(55);
1971
+ var TimezoneContext_1 = __webpack_require__(19);
1939
1972
 
1940
1973
  var style_1 = __webpack_require__(14);
1941
1974
 
@@ -1943,11 +1976,11 @@ var styled_components_1 = __webpack_require__(4);
1943
1976
 
1944
1977
  var Message_1 = __webpack_require__(9);
1945
1978
 
1946
- var useSplunkTheme_1 = __webpack_require__(56);
1979
+ var useSplunkTheme_1 = __webpack_require__(57);
1947
1980
 
1948
- var themeUtils_1 = __webpack_require__(57);
1981
+ var themeUtils_1 = __webpack_require__(58);
1949
1982
 
1950
- var ChartingApi_1 = __webpack_require__(58);
1983
+ var ChartingApi_1 = __webpack_require__(59);
1951
1984
 
1952
1985
  exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
1953
1986
 
@@ -2326,37 +2359,31 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
2326
2359
  exports.default = withEmptyChartMessage(Charting);
2327
2360
 
2328
2361
  /***/ }),
2329
- /* 53 */
2362
+ /* 55 */
2330
2363
  /***/ (function(module, exports) {
2331
2364
 
2332
2365
  module.exports = require("react-event-listener");
2333
2366
 
2334
2367
  /***/ }),
2335
- /* 54 */
2368
+ /* 56 */
2336
2369
  /***/ (function(module, exports) {
2337
2370
 
2338
2371
  module.exports = require("@splunk/visualizations-shared/i18n");
2339
2372
 
2340
2373
  /***/ }),
2341
- /* 55 */
2342
- /***/ (function(module, exports) {
2343
-
2344
- module.exports = require("@splunk/visualization-context/TimezoneContext");
2345
-
2346
- /***/ }),
2347
- /* 56 */
2374
+ /* 57 */
2348
2375
  /***/ (function(module, exports) {
2349
2376
 
2350
2377
  module.exports = require("@splunk/themes/useSplunkTheme");
2351
2378
 
2352
2379
  /***/ }),
2353
- /* 57 */
2380
+ /* 58 */
2354
2381
  /***/ (function(module, exports) {
2355
2382
 
2356
2383
  module.exports = require("@splunk/visualizations-shared/themeUtils");
2357
2384
 
2358
2385
  /***/ }),
2359
- /* 58 */
2386
+ /* 59 */
2360
2387
  /***/ (function(module, exports, __webpack_require__) {
2361
2388
 
2362
2389
  "use strict";
@@ -2424,14 +2451,14 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
2424
2451
  exports.ChartingApiFunctional = ChartingApiFunctional;
2425
2452
 
2426
2453
  /***/ }),
2427
- /* 59 */
2454
+ /* 60 */
2428
2455
  /***/ (function(module, exports) {
2429
2456
 
2430
2457
  module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2431
2458
 
2432
2459
  /***/ }),
2433
- /* 60 */,
2434
- /* 61 */
2460
+ /* 61 */,
2461
+ /* 62 */
2435
2462
  /***/ (function(module, exports, __webpack_require__) {
2436
2463
 
2437
2464
  "use strict";
@@ -2458,7 +2485,7 @@ var axes = {
2458
2485
  exports.default = axes;
2459
2486
 
2460
2487
  /***/ }),
2461
- /* 62 */
2488
+ /* 63 */
2462
2489
  /***/ (function(module, exports, __webpack_require__) {
2463
2490
 
2464
2491
  "use strict";
@@ -2518,7 +2545,6 @@ var legend = {
2518
2545
  exports.default = legend;
2519
2546
 
2520
2547
  /***/ }),
2521
- /* 63 */,
2522
2548
  /* 64 */,
2523
2549
  /* 65 */,
2524
2550
  /* 66 */,
@@ -2571,7 +2597,9 @@ exports.default = legend;
2571
2597
  /* 113 */,
2572
2598
  /* 114 */,
2573
2599
  /* 115 */,
2574
- /* 116 */
2600
+ /* 116 */,
2601
+ /* 117 */,
2602
+ /* 118 */
2575
2603
  /***/ (function(module, exports, __webpack_require__) {
2576
2604
 
2577
2605
  "use strict";
@@ -2599,21 +2627,21 @@ var lodash_1 = __webpack_require__(2); // Charting imports i18n which needs to b
2599
2627
  // eslint-disable-next-line import/order
2600
2628
 
2601
2629
 
2602
- var Charting_1 = __webpack_require__(52);
2630
+ var Charting_1 = __webpack_require__(54);
2603
2631
 
2604
- var charting_bundle_1 = __webpack_require__(48);
2632
+ var charting_bundle_1 = __webpack_require__(50);
2605
2633
 
2606
- var simpleXMLOptions_1 = __webpack_require__(59);
2634
+ var simpleXMLOptions_1 = __webpack_require__(60);
2607
2635
 
2608
- var config_1 = __webpack_require__(149);
2636
+ var config_1 = __webpack_require__(151);
2609
2637
 
2610
2638
  exports.config = config_1.default;
2611
2639
 
2612
- var withDashboardViz_1 = __webpack_require__(28);
2640
+ var withDashboardViz_1 = __webpack_require__(29);
2613
2641
 
2614
- var bubbleUtils_1 = __webpack_require__(150);
2642
+ var bubbleUtils_1 = __webpack_require__(152);
2615
2643
 
2616
- var chartingUtils_1 = __webpack_require__(47);
2644
+ var chartingUtils_1 = __webpack_require__(49);
2617
2645
 
2618
2646
  var validOptions = Object.keys(config_1.default.optionsSchema);
2619
2647
 
@@ -2695,8 +2723,6 @@ exports.themes = themes;
2695
2723
  exports.default = Bubble;
2696
2724
 
2697
2725
  /***/ }),
2698
- /* 117 */,
2699
- /* 118 */,
2700
2726
  /* 119 */,
2701
2727
  /* 120 */,
2702
2728
  /* 121 */,
@@ -2726,7 +2752,9 @@ exports.default = Bubble;
2726
2752
  /* 145 */,
2727
2753
  /* 146 */,
2728
2754
  /* 147 */,
2729
- /* 148 */
2755
+ /* 148 */,
2756
+ /* 149 */,
2757
+ /* 150 */
2730
2758
  /***/ (function(module, exports, __webpack_require__) {
2731
2759
 
2732
2760
  "use strict";
@@ -2756,9 +2784,9 @@ Object.defineProperty(exports, "__esModule", {
2756
2784
  });
2757
2785
  exports.default = void 0;
2758
2786
 
2759
- __exportStar(__webpack_require__(116), exports);
2787
+ __exportStar(__webpack_require__(118), exports);
2760
2788
 
2761
- var Bubble_1 = __webpack_require__(116);
2789
+ var Bubble_1 = __webpack_require__(118);
2762
2790
 
2763
2791
  Object.defineProperty(exports, "default", {
2764
2792
  enumerable: true,
@@ -2768,7 +2796,7 @@ Object.defineProperty(exports, "default", {
2768
2796
  });
2769
2797
 
2770
2798
  /***/ }),
2771
- /* 149 */
2799
+ /* 151 */
2772
2800
  /***/ (function(module, exports, __webpack_require__) {
2773
2801
 
2774
2802
  "use strict";
@@ -2778,29 +2806,29 @@ Object.defineProperty(exports, "__esModule", {
2778
2806
  value: true
2779
2807
  });
2780
2808
 
2781
- var visualization_icons_1 = __webpack_require__(43);
2809
+ var visualization_icons_1 = __webpack_require__(45);
2782
2810
 
2783
- var placeholders_1 = __webpack_require__(42);
2811
+ var placeholders_1 = __webpack_require__(44);
2784
2812
 
2785
2813
  var schemaUtils_1 = __webpack_require__(15);
2786
2814
 
2787
- var visualization_color_palettes_1 = __webpack_require__(41);
2815
+ var visualization_color_palettes_1 = __webpack_require__(43);
2788
2816
 
2789
- var pick_1 = __webpack_require__(21);
2817
+ var pick_1 = __webpack_require__(22);
2790
2818
 
2791
2819
  var variables_1 = __webpack_require__(11);
2792
2820
 
2793
2821
  var i18n_1 = __webpack_require__(3);
2794
2822
 
2795
- var Axes_1 = __webpack_require__(61);
2823
+ var Axes_1 = __webpack_require__(62);
2796
2824
 
2797
- var Legend_1 = __webpack_require__(62);
2825
+ var Legend_1 = __webpack_require__(63);
2798
2826
 
2799
- var BackgroundColor_1 = __webpack_require__(46);
2827
+ var BackgroundColor_1 = __webpack_require__(48);
2800
2828
 
2801
2829
  var VizBehavior_1 = __webpack_require__(5);
2802
2830
 
2803
- var VizCategory_1 = __webpack_require__(27);
2831
+ var VizCategory_1 = __webpack_require__(28);
2804
2832
 
2805
2833
  var configUtils_1 = __webpack_require__(6);
2806
2834
 
@@ -3182,7 +3210,7 @@ var config = {
3182
3210
  exports.default = configUtils_1.enhanceConfig(config);
3183
3211
 
3184
3212
  /***/ }),
3185
- /* 150 */
3213
+ /* 152 */
3186
3214
  /***/ (function(module, exports, __webpack_require__) {
3187
3215
 
3188
3216
  "use strict";
@@ -3195,9 +3223,9 @@ exports.convertToBubbleSCProperties = exports.mapToOldKey = exports.convertToStr
3195
3223
 
3196
3224
  var lodash_1 = __webpack_require__(2);
3197
3225
 
3198
- var propUtils_1 = __webpack_require__(19);
3226
+ var propUtils_1 = __webpack_require__(20);
3199
3227
 
3200
- var chartingUtils_1 = __webpack_require__(47); // map for key names which are either new or not present in SimpleXML options mapping
3228
+ var chartingUtils_1 = __webpack_require__(49); // map for key names which are either new or not present in SimpleXML options mapping
3201
3229
 
3202
3230
 
3203
3231
  var bubbleOptionsSCMapping = {