@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.
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Placeholder_If_No_Svg_And_No_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_empty_columns_and_fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_label_data_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_value_data_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_missing_column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
- package/Area.js +246 -218
- package/Area.js.map +1 -1
- package/Bar.js +238 -210
- package/Bar.js.map +1 -1
- package/Bubble.js +231 -203
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +230 -197
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +238 -210
- package/Column.js.map +1 -1
- package/Ellipse.js +203 -170
- package/Ellipse.js.map +1 -1
- package/FillerGauge.js +222 -189
- package/FillerGauge.js.map +1 -1
- package/Image.js +199 -164
- package/Image.js.map +1 -1
- package/Line.js +239 -211
- package/Line.js.map +1 -1
- package/LinkGraph.js +264 -223
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +39 -25
- package/Map.config.js.map +1 -1
- package/Map.js +460 -334
- package/Map.js.map +1 -1
- package/Markdown.config.js +29 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +513 -267
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +941 -906
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +230 -196
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +309 -249
- package/Pie.js.map +1 -1
- package/Punchcard.js +263 -229
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +217 -182
- package/Rectangle.js.map +1 -1
- package/Sankey.js +269 -230
- package/Sankey.js.map +1 -1
- package/Scatter.js +314 -286
- package/Scatter.js.map +1 -1
- package/SingleValue.js +398 -363
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +25 -25
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.js +2821 -2653
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.js +359 -324
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +2 -1
- package/Table.config.js.map +1 -1
- package/Table.js +629 -347
- package/Table.js.map +1 -1
- package/common/Charting.js +21 -21
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +10 -10
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +10 -10
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +217 -174
- package/common/OptionsDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/ThemesDoc.js +26 -26
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +3 -3
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +2 -2
- package/common/shapeUtils.js +2 -2
- package/common/withDashboardViz.js +80 -48
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +13 -11
package/Image.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 =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 175);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -127,7 +127,7 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
127
127
|
|
|
128
128
|
/***/ }),
|
|
129
129
|
|
|
130
|
-
/***/
|
|
130
|
+
/***/ 122:
|
|
131
131
|
/***/ (function(module, exports, __webpack_require__) {
|
|
132
132
|
|
|
133
133
|
"use strict";
|
|
@@ -159,19 +159,19 @@ var i18n_1 = __webpack_require__(3);
|
|
|
159
159
|
|
|
160
160
|
var style_1 = __webpack_require__(14);
|
|
161
161
|
|
|
162
|
-
var RemoteImage_1 = __webpack_require__(
|
|
162
|
+
var RemoteImage_1 = __webpack_require__(123);
|
|
163
163
|
|
|
164
164
|
var styled_components_1 = __webpack_require__(4);
|
|
165
165
|
|
|
166
166
|
var T = __webpack_require__(0);
|
|
167
167
|
|
|
168
|
-
var config_1 = __webpack_require__(
|
|
168
|
+
var config_1 = __webpack_require__(176);
|
|
169
169
|
|
|
170
170
|
exports.config = config_1.default;
|
|
171
171
|
|
|
172
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
172
|
+
var withDashboardViz_1 = __webpack_require__(29);
|
|
173
173
|
|
|
174
|
-
var ImageApi_1 = __webpack_require__(
|
|
174
|
+
var ImageApi_1 = __webpack_require__(177);
|
|
175
175
|
|
|
176
176
|
var useEffect = React.useEffect,
|
|
177
177
|
useRef = React.useRef;
|
|
@@ -308,7 +308,7 @@ exports.default = Image;
|
|
|
308
308
|
|
|
309
309
|
/***/ }),
|
|
310
310
|
|
|
311
|
-
/***/
|
|
311
|
+
/***/ 123:
|
|
312
312
|
/***/ (function(module, exports) {
|
|
313
313
|
|
|
314
314
|
module.exports = require("@splunk/visualizations-shared/RemoteImage");
|
|
@@ -390,7 +390,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
390
390
|
|
|
391
391
|
return React.createElement(FixSizeItem, {
|
|
392
392
|
"data-test": "fix-size-item",
|
|
393
|
-
"data-splunk-visualization-version": "24.
|
|
393
|
+
"data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
|
|
394
394
|
width: width,
|
|
395
395
|
height: height,
|
|
396
396
|
backgroundColor: backgroundColor
|
|
@@ -440,7 +440,7 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
|
440
440
|
|
|
441
441
|
/***/ }),
|
|
442
442
|
|
|
443
|
-
/***/
|
|
443
|
+
/***/ 175:
|
|
444
444
|
/***/ (function(module, exports, __webpack_require__) {
|
|
445
445
|
|
|
446
446
|
"use strict";
|
|
@@ -470,9 +470,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
470
470
|
});
|
|
471
471
|
exports.default = void 0;
|
|
472
472
|
|
|
473
|
-
__exportStar(__webpack_require__(
|
|
473
|
+
__exportStar(__webpack_require__(122), exports);
|
|
474
474
|
|
|
475
|
-
var Image_1 = __webpack_require__(
|
|
475
|
+
var Image_1 = __webpack_require__(122);
|
|
476
476
|
|
|
477
477
|
Object.defineProperty(exports, "default", {
|
|
478
478
|
enumerable: true,
|
|
@@ -483,7 +483,7 @@ Object.defineProperty(exports, "default", {
|
|
|
483
483
|
|
|
484
484
|
/***/ }),
|
|
485
485
|
|
|
486
|
-
/***/
|
|
486
|
+
/***/ 176:
|
|
487
487
|
/***/ (function(module, exports, __webpack_require__) {
|
|
488
488
|
|
|
489
489
|
"use strict";
|
|
@@ -495,11 +495,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
495
495
|
|
|
496
496
|
var i18n_1 = __webpack_require__(3);
|
|
497
497
|
|
|
498
|
-
var visualization_icons_1 = __webpack_require__(
|
|
498
|
+
var visualization_icons_1 = __webpack_require__(45);
|
|
499
499
|
|
|
500
500
|
var VizBehavior_1 = __webpack_require__(5);
|
|
501
501
|
|
|
502
|
-
var VizCategory_1 = __webpack_require__(
|
|
502
|
+
var VizCategory_1 = __webpack_require__(28);
|
|
503
503
|
|
|
504
504
|
var configUtils_1 = __webpack_require__(6);
|
|
505
505
|
|
|
@@ -585,7 +585,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
585
585
|
|
|
586
586
|
/***/ }),
|
|
587
587
|
|
|
588
|
-
/***/
|
|
588
|
+
/***/ 177:
|
|
589
589
|
/***/ (function(module, exports, __webpack_require__) {
|
|
590
590
|
|
|
591
591
|
"use strict";
|
|
@@ -601,7 +601,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
601
601
|
|
|
602
602
|
var lodash_1 = __webpack_require__(2);
|
|
603
603
|
|
|
604
|
-
var RemoteImage_1 = __webpack_require__(
|
|
604
|
+
var RemoteImage_1 = __webpack_require__(123);
|
|
605
605
|
/**
|
|
606
606
|
* Image Api
|
|
607
607
|
*/
|
|
@@ -646,6 +646,13 @@ exports.default = ImageApi;
|
|
|
646
646
|
|
|
647
647
|
/***/ }),
|
|
648
648
|
|
|
649
|
+
/***/ 19:
|
|
650
|
+
/***/ (function(module, exports) {
|
|
651
|
+
|
|
652
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
653
|
+
|
|
654
|
+
/***/ }),
|
|
655
|
+
|
|
649
656
|
/***/ 2:
|
|
650
657
|
/***/ (function(module, exports) {
|
|
651
658
|
|
|
@@ -653,14 +660,14 @@ module.exports = require("lodash");
|
|
|
653
660
|
|
|
654
661
|
/***/ }),
|
|
655
662
|
|
|
656
|
-
/***/
|
|
663
|
+
/***/ 21:
|
|
657
664
|
/***/ (function(module, exports) {
|
|
658
665
|
|
|
659
666
|
module.exports = require("@babel/runtime/helpers/typeof");
|
|
660
667
|
|
|
661
668
|
/***/ }),
|
|
662
669
|
|
|
663
|
-
/***/
|
|
670
|
+
/***/ 24:
|
|
664
671
|
/***/ (function(module, exports, __webpack_require__) {
|
|
665
672
|
|
|
666
673
|
"use strict";
|
|
@@ -694,13 +701,105 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
|
694
701
|
|
|
695
702
|
/***/ }),
|
|
696
703
|
|
|
697
|
-
/***/
|
|
704
|
+
/***/ 25:
|
|
705
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
706
|
+
|
|
707
|
+
"use strict";
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
Object.defineProperty(exports, "__esModule", {
|
|
711
|
+
value: true
|
|
712
|
+
});
|
|
713
|
+
exports.shouldShowIconPlaceholder = void 0;
|
|
714
|
+
|
|
715
|
+
var React = __webpack_require__(1);
|
|
716
|
+
|
|
717
|
+
var T = __webpack_require__(0);
|
|
718
|
+
|
|
719
|
+
var lodash_1 = __webpack_require__(2);
|
|
720
|
+
|
|
721
|
+
var i18n_1 = __webpack_require__(3);
|
|
722
|
+
|
|
723
|
+
var Message_1 = __webpack_require__(9);
|
|
724
|
+
|
|
725
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
726
|
+
/**
|
|
727
|
+
* @method shouldShowIconPlaceholder
|
|
728
|
+
* @param {object} dataSources
|
|
729
|
+
* @param {boolean} loading
|
|
730
|
+
* @returns {boolean}
|
|
731
|
+
*/
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
735
|
+
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
736
|
+
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
737
|
+
var noData = data === undefined;
|
|
738
|
+
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
739
|
+
var noFields = fields === undefined;
|
|
740
|
+
return loading || noData || noFields;
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
744
|
+
var propTypes = {
|
|
745
|
+
icon: T.func,
|
|
746
|
+
width: T.oneOfType([T.string, T.number]),
|
|
747
|
+
height: T.oneOfType([T.string, T.number]),
|
|
748
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
749
|
+
backgroundColor: T.string,
|
|
750
|
+
iconColor: T.string
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* @method IconPlaceholder
|
|
754
|
+
* @param {IconPlaceholderProps} props
|
|
755
|
+
* @returns {React.ReactElement}
|
|
756
|
+
*/
|
|
757
|
+
|
|
758
|
+
var IconPlaceholder = function IconPlaceholder(props) {
|
|
759
|
+
var width = props.width,
|
|
760
|
+
height = props.height,
|
|
761
|
+
icon = props.icon,
|
|
762
|
+
iconColor = props.iconColor;
|
|
763
|
+
|
|
764
|
+
if (icon) {
|
|
765
|
+
return React.createElement(icon, {
|
|
766
|
+
style: {
|
|
767
|
+
left: '50%',
|
|
768
|
+
top: '50%',
|
|
769
|
+
color: iconColor,
|
|
770
|
+
opacity: 0.15,
|
|
771
|
+
position: 'absolute',
|
|
772
|
+
transform: 'translate(-50%, -50%)'
|
|
773
|
+
},
|
|
774
|
+
width: '50%',
|
|
775
|
+
height: '50%'
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
return React.createElement(Message_1.default, {
|
|
780
|
+
width: width,
|
|
781
|
+
height: height,
|
|
782
|
+
level: "warning",
|
|
783
|
+
message: i18n_1._('No DataSource Connected')
|
|
784
|
+
});
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
IconPlaceholder.propTypes = propTypes;
|
|
788
|
+
IconPlaceholder.defaultProps = {
|
|
789
|
+
width: '100%',
|
|
790
|
+
height: 250
|
|
791
|
+
};
|
|
792
|
+
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
793
|
+
|
|
794
|
+
/***/ }),
|
|
795
|
+
|
|
796
|
+
/***/ 26:
|
|
698
797
|
/***/ (function(module, exports, __webpack_require__) {
|
|
699
798
|
|
|
700
799
|
"use strict";
|
|
701
800
|
|
|
702
801
|
|
|
703
|
-
var _defineProperty = __webpack_require__(
|
|
802
|
+
var _defineProperty = __webpack_require__(7);
|
|
704
803
|
|
|
705
804
|
Object.defineProperty(exports, "__esModule", {
|
|
706
805
|
value: true
|
|
@@ -711,7 +810,7 @@ var T = __webpack_require__(0);
|
|
|
711
810
|
|
|
712
811
|
var lodash_1 = __webpack_require__(2);
|
|
713
812
|
|
|
714
|
-
var DataSource_1 = __webpack_require__(
|
|
813
|
+
var DataSource_1 = __webpack_require__(36);
|
|
715
814
|
|
|
716
815
|
exports.SortParamsPropTypes = T.shape({
|
|
717
816
|
currentSortKey: T.string,
|
|
@@ -765,7 +864,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
765
864
|
|
|
766
865
|
/***/ }),
|
|
767
866
|
|
|
768
|
-
/***/
|
|
867
|
+
/***/ 27:
|
|
769
868
|
/***/ (function(module, exports, __webpack_require__) {
|
|
770
869
|
|
|
771
870
|
"use strict";
|
|
@@ -830,99 +929,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
830
929
|
|
|
831
930
|
/***/ }),
|
|
832
931
|
|
|
833
|
-
/***/
|
|
834
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
835
|
-
|
|
836
|
-
"use strict";
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
Object.defineProperty(exports, "__esModule", {
|
|
840
|
-
value: true
|
|
841
|
-
});
|
|
842
|
-
exports.shouldShowIconPlaceholder = void 0;
|
|
843
|
-
|
|
844
|
-
var React = __webpack_require__(1);
|
|
845
|
-
|
|
846
|
-
var T = __webpack_require__(0);
|
|
847
|
-
|
|
848
|
-
var lodash_1 = __webpack_require__(2);
|
|
849
|
-
|
|
850
|
-
var i18n_1 = __webpack_require__(3);
|
|
851
|
-
|
|
852
|
-
var Message_1 = __webpack_require__(9);
|
|
853
|
-
|
|
854
|
-
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
855
|
-
/**
|
|
856
|
-
* @method shouldShowIconPlaceholder
|
|
857
|
-
* @param {object} dataSources
|
|
858
|
-
* @param {boolean} loading
|
|
859
|
-
* @returns {boolean}
|
|
860
|
-
*/
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
864
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
865
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
866
|
-
var noData = data === undefined;
|
|
867
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
868
|
-
var noFields = fields === undefined;
|
|
869
|
-
return loading || noData || noFields;
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
873
|
-
var propTypes = {
|
|
874
|
-
icon: T.func,
|
|
875
|
-
width: T.oneOfType([T.string, T.number]),
|
|
876
|
-
height: T.oneOfType([T.string, T.number]),
|
|
877
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
878
|
-
backgroundColor: T.string,
|
|
879
|
-
iconColor: T.string
|
|
880
|
-
};
|
|
881
|
-
/**
|
|
882
|
-
* @method IconPlaceholder
|
|
883
|
-
* @param {IconPlaceholderProps} props
|
|
884
|
-
* @returns {React.ReactElement}
|
|
885
|
-
*/
|
|
886
|
-
|
|
887
|
-
var IconPlaceholder = function IconPlaceholder(props) {
|
|
888
|
-
var width = props.width,
|
|
889
|
-
height = props.height,
|
|
890
|
-
icon = props.icon,
|
|
891
|
-
iconColor = props.iconColor;
|
|
892
|
-
|
|
893
|
-
if (icon) {
|
|
894
|
-
return React.createElement(icon, {
|
|
895
|
-
style: {
|
|
896
|
-
left: '50%',
|
|
897
|
-
top: '50%',
|
|
898
|
-
color: iconColor,
|
|
899
|
-
opacity: 0.15,
|
|
900
|
-
position: 'absolute',
|
|
901
|
-
transform: 'translate(-50%, -50%)'
|
|
902
|
-
},
|
|
903
|
-
width: '50%',
|
|
904
|
-
height: '50%'
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
return React.createElement(Message_1.default, {
|
|
909
|
-
width: width,
|
|
910
|
-
height: height,
|
|
911
|
-
level: "warning",
|
|
912
|
-
message: i18n_1._('No DataSource Connected')
|
|
913
|
-
});
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
IconPlaceholder.propTypes = propTypes;
|
|
917
|
-
IconPlaceholder.defaultProps = {
|
|
918
|
-
width: '100%',
|
|
919
|
-
height: 250
|
|
920
|
-
};
|
|
921
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
922
|
-
|
|
923
|
-
/***/ }),
|
|
924
|
-
|
|
925
|
-
/***/ 27:
|
|
932
|
+
/***/ 28:
|
|
926
933
|
/***/ (function(module, exports, __webpack_require__) {
|
|
927
934
|
|
|
928
935
|
"use strict";
|
|
@@ -951,7 +958,7 @@ var VizCategory;
|
|
|
951
958
|
|
|
952
959
|
/***/ }),
|
|
953
960
|
|
|
954
|
-
/***/
|
|
961
|
+
/***/ 29:
|
|
955
962
|
/***/ (function(module, exports, __webpack_require__) {
|
|
956
963
|
|
|
957
964
|
"use strict";
|
|
@@ -965,33 +972,37 @@ var React = __webpack_require__(1);
|
|
|
965
972
|
|
|
966
973
|
var lodash_1 = __webpack_require__(2);
|
|
967
974
|
|
|
968
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
975
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(30);
|
|
976
|
+
|
|
977
|
+
var Options_1 = __webpack_require__(31);
|
|
969
978
|
|
|
970
|
-
var
|
|
979
|
+
var SanitizeProps_1 = __webpack_require__(32);
|
|
971
980
|
|
|
972
|
-
var
|
|
981
|
+
var TimezoneContext_1 = __webpack_require__(19);
|
|
982
|
+
|
|
983
|
+
var moment_1 = __webpack_require__(33);
|
|
973
984
|
|
|
974
985
|
var styled_components_1 = __webpack_require__(4);
|
|
975
986
|
|
|
976
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
987
|
+
var SplunkVisualization_1 = __webpack_require__(34);
|
|
977
988
|
|
|
978
989
|
var VizBehavior_1 = __webpack_require__(5);
|
|
979
990
|
|
|
980
|
-
var getSorting_1 = __webpack_require__(
|
|
991
|
+
var getSorting_1 = __webpack_require__(26);
|
|
981
992
|
|
|
982
|
-
var getPagination_1 = __webpack_require__(
|
|
993
|
+
var getPagination_1 = __webpack_require__(27);
|
|
983
994
|
|
|
984
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
995
|
+
var useDeepMemo_1 = __webpack_require__(37);
|
|
985
996
|
|
|
986
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
997
|
+
var JSONSchemaUtils_1 = __webpack_require__(24);
|
|
987
998
|
|
|
988
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
999
|
+
var MissingPropsMessage_1 = __webpack_require__(38);
|
|
989
1000
|
|
|
990
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1001
|
+
var withEditModeCover_1 = __webpack_require__(39);
|
|
991
1002
|
|
|
992
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1003
|
+
var withPlaceholder_1 = __webpack_require__(40);
|
|
993
1004
|
|
|
994
|
-
var hocUtils_1 = __webpack_require__(
|
|
1005
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
995
1006
|
/**
|
|
996
1007
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
997
1008
|
* @param {DashboardVizOpts} opts
|
|
@@ -1024,6 +1035,23 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1024
1035
|
theme = props.theme,
|
|
1025
1036
|
onRequestParamsChange = props.onRequestParamsChange;
|
|
1026
1037
|
|
|
1038
|
+
var _React$useContext = React.useContext(TimezoneContext_1.default),
|
|
1039
|
+
serializedTimezone = _React$useContext.serializedTimezone;
|
|
1040
|
+
|
|
1041
|
+
if (serializedTimezone) {
|
|
1042
|
+
/*
|
|
1043
|
+
@splunk/moment currently does not allow us to customize the timezone on a per visualization basis.
|
|
1044
|
+
This ensures that if a timezone was provided via TimezoneContext @splunk/moment time formatting
|
|
1045
|
+
will use it.
|
|
1046
|
+
@TODO(pwied):
|
|
1047
|
+
- remove when we moved away from @splunk/moment
|
|
1048
|
+
- provide timezone context to dynamic option evaluation phase
|
|
1049
|
+
*/
|
|
1050
|
+
if (!moment_1.default.getDefaultSplunkTimezone()) {
|
|
1051
|
+
moment_1.default.setDefaultSplunkTimezone(serializedTimezone);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1027
1055
|
var themeFunc = function themeFunc(themeVar) {
|
|
1028
1056
|
var _a, _b;
|
|
1029
1057
|
|
|
@@ -1052,7 +1080,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1052
1080
|
console.error("unexpected error evaluating options: + ".concat(e.message));
|
|
1053
1081
|
return {};
|
|
1054
1082
|
}
|
|
1055
|
-
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources]); // useEffect hook needs to be initialized before any early returns
|
|
1083
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
|
|
1056
1084
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1057
1085
|
|
|
1058
1086
|
React.useEffect(function () {
|
|
@@ -1176,35 +1204,42 @@ exports.default = withDashboardViz;
|
|
|
1176
1204
|
|
|
1177
1205
|
/***/ }),
|
|
1178
1206
|
|
|
1179
|
-
/***/
|
|
1207
|
+
/***/ 3:
|
|
1180
1208
|
/***/ (function(module, exports) {
|
|
1181
1209
|
|
|
1182
|
-
module.exports = require("@splunk/
|
|
1210
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
1183
1211
|
|
|
1184
1212
|
/***/ }),
|
|
1185
1213
|
|
|
1186
|
-
/***/
|
|
1214
|
+
/***/ 30:
|
|
1187
1215
|
/***/ (function(module, exports) {
|
|
1188
1216
|
|
|
1189
|
-
module.exports = require("@splunk/
|
|
1217
|
+
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1190
1218
|
|
|
1191
1219
|
/***/ }),
|
|
1192
1220
|
|
|
1193
|
-
/***/
|
|
1221
|
+
/***/ 31:
|
|
1194
1222
|
/***/ (function(module, exports) {
|
|
1195
1223
|
|
|
1196
1224
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1197
1225
|
|
|
1198
1226
|
/***/ }),
|
|
1199
1227
|
|
|
1200
|
-
/***/
|
|
1228
|
+
/***/ 32:
|
|
1201
1229
|
/***/ (function(module, exports) {
|
|
1202
1230
|
|
|
1203
1231
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1204
1232
|
|
|
1205
1233
|
/***/ }),
|
|
1206
1234
|
|
|
1207
|
-
/***/
|
|
1235
|
+
/***/ 33:
|
|
1236
|
+
/***/ (function(module, exports) {
|
|
1237
|
+
|
|
1238
|
+
module.exports = require("@splunk/moment");
|
|
1239
|
+
|
|
1240
|
+
/***/ }),
|
|
1241
|
+
|
|
1242
|
+
/***/ 34:
|
|
1208
1243
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1209
1244
|
|
|
1210
1245
|
"use strict";
|
|
@@ -1222,7 +1257,7 @@ var T = __webpack_require__(0);
|
|
|
1222
1257
|
|
|
1223
1258
|
var lodash_1 = __webpack_require__(2);
|
|
1224
1259
|
|
|
1225
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1260
|
+
var VizActionHandler_1 = __webpack_require__(35); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1226
1261
|
|
|
1227
1262
|
|
|
1228
1263
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1356,7 +1391,7 @@ exports.default = SplunkVisualization;
|
|
|
1356
1391
|
|
|
1357
1392
|
/***/ }),
|
|
1358
1393
|
|
|
1359
|
-
/***/
|
|
1394
|
+
/***/ 35:
|
|
1360
1395
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1361
1396
|
|
|
1362
1397
|
"use strict";
|
|
@@ -1394,7 +1429,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1394
1429
|
|
|
1395
1430
|
/***/ }),
|
|
1396
1431
|
|
|
1397
|
-
/***/
|
|
1432
|
+
/***/ 36:
|
|
1398
1433
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1399
1434
|
|
|
1400
1435
|
"use strict";
|
|
@@ -1408,7 +1443,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1408
1443
|
|
|
1409
1444
|
/***/ }),
|
|
1410
1445
|
|
|
1411
|
-
/***/
|
|
1446
|
+
/***/ 37:
|
|
1412
1447
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1413
1448
|
|
|
1414
1449
|
"use strict";
|
|
@@ -1454,7 +1489,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1454
1489
|
|
|
1455
1490
|
/***/ }),
|
|
1456
1491
|
|
|
1457
|
-
/***/
|
|
1492
|
+
/***/ 38:
|
|
1458
1493
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1459
1494
|
|
|
1460
1495
|
"use strict";
|
|
@@ -1535,7 +1570,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
1535
1570
|
|
|
1536
1571
|
/***/ }),
|
|
1537
1572
|
|
|
1538
|
-
/***/
|
|
1573
|
+
/***/ 39:
|
|
1539
1574
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1540
1575
|
|
|
1541
1576
|
"use strict";
|
|
@@ -1549,14 +1584,14 @@ var React = __webpack_require__(1);
|
|
|
1549
1584
|
|
|
1550
1585
|
var styled_components_1 = __webpack_require__(4);
|
|
1551
1586
|
|
|
1552
|
-
var hocUtils_1 = __webpack_require__(
|
|
1587
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
1553
1588
|
|
|
1554
1589
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1555
1590
|
displayName: "withEditModeCover__Cover",
|
|
1556
1591
|
componentId: "sc-1gsbnxb-0"
|
|
1557
1592
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1558
1593
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1559
|
-
'data-splunk-visualization-version': "24.
|
|
1594
|
+
'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
|
|
1560
1595
|
}).withConfig({
|
|
1561
1596
|
displayName: "withEditModeCover__Blocker",
|
|
1562
1597
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1588,7 +1623,14 @@ exports.default = withEditModeCover;
|
|
|
1588
1623
|
|
|
1589
1624
|
/***/ }),
|
|
1590
1625
|
|
|
1591
|
-
/***/
|
|
1626
|
+
/***/ 4:
|
|
1627
|
+
/***/ (function(module, exports) {
|
|
1628
|
+
|
|
1629
|
+
module.exports = require("styled-components");
|
|
1630
|
+
|
|
1631
|
+
/***/ }),
|
|
1632
|
+
|
|
1633
|
+
/***/ 40:
|
|
1592
1634
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1593
1635
|
|
|
1594
1636
|
"use strict";
|
|
@@ -1604,11 +1646,11 @@ var colorUtils_1 = __webpack_require__(12);
|
|
|
1604
1646
|
|
|
1605
1647
|
var variables_1 = __webpack_require__(11);
|
|
1606
1648
|
|
|
1607
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1649
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
1608
1650
|
|
|
1609
1651
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1610
1652
|
|
|
1611
|
-
var hocUtils_1 = __webpack_require__(
|
|
1653
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
1612
1654
|
|
|
1613
1655
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1614
1656
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1653,14 +1695,7 @@ exports.default = withPlaceholder;
|
|
|
1653
1695
|
|
|
1654
1696
|
/***/ }),
|
|
1655
1697
|
|
|
1656
|
-
/***/
|
|
1657
|
-
/***/ (function(module, exports) {
|
|
1658
|
-
|
|
1659
|
-
module.exports = require("styled-components");
|
|
1660
|
-
|
|
1661
|
-
/***/ }),
|
|
1662
|
-
|
|
1663
|
-
/***/ 43:
|
|
1698
|
+
/***/ 45:
|
|
1664
1699
|
/***/ (function(module, exports) {
|
|
1665
1700
|
|
|
1666
1701
|
module.exports = require("@splunk/visualization-icons");
|
|
@@ -1711,7 +1746,7 @@ var VizBehavior;
|
|
|
1711
1746
|
"use strict";
|
|
1712
1747
|
|
|
1713
1748
|
|
|
1714
|
-
var _defineProperty = __webpack_require__(
|
|
1749
|
+
var _defineProperty = __webpack_require__(7);
|
|
1715
1750
|
|
|
1716
1751
|
var __rest = this && this.__rest || function (s, e) {
|
|
1717
1752
|
var t = {};
|
|
@@ -1898,12 +1933,19 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
1898
1933
|
/***/ }),
|
|
1899
1934
|
|
|
1900
1935
|
/***/ 7:
|
|
1936
|
+
/***/ (function(module, exports) {
|
|
1937
|
+
|
|
1938
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
1939
|
+
|
|
1940
|
+
/***/ }),
|
|
1941
|
+
|
|
1942
|
+
/***/ 8:
|
|
1901
1943
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1902
1944
|
|
|
1903
1945
|
"use strict";
|
|
1904
1946
|
|
|
1905
1947
|
|
|
1906
|
-
var _typeof = __webpack_require__(
|
|
1948
|
+
var _typeof = __webpack_require__(21);
|
|
1907
1949
|
|
|
1908
1950
|
Object.defineProperty(exports, "__esModule", {
|
|
1909
1951
|
value: true
|
|
@@ -2026,13 +2068,6 @@ exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
|
|
|
2026
2068
|
|
|
2027
2069
|
/***/ }),
|
|
2028
2070
|
|
|
2029
|
-
/***/ 8:
|
|
2030
|
-
/***/ (function(module, exports) {
|
|
2031
|
-
|
|
2032
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
2033
|
-
|
|
2034
|
-
/***/ }),
|
|
2035
|
-
|
|
2036
2071
|
/***/ 9:
|
|
2037
2072
|
/***/ (function(module, exports) {
|
|
2038
2073
|
|