@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/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 =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 225);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -113,7 +113,7 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 104:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
119
|
module.exports = require("@splunk/visualization-encoding/utils/dsl");
|
|
@@ -209,7 +209,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
209
209
|
|
|
210
210
|
return React.createElement(FixSizeItem, {
|
|
211
211
|
"data-test": "fix-size-item",
|
|
212
|
-
"data-splunk-visualization-version": "24.
|
|
212
|
+
"data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
|
|
213
213
|
width: width,
|
|
214
214
|
height: height,
|
|
215
215
|
backgroundColor: backgroundColor
|
|
@@ -231,7 +231,7 @@ exports.default = withFixedSizeContainer;
|
|
|
231
231
|
|
|
232
232
|
/***/ }),
|
|
233
233
|
|
|
234
|
-
/***/
|
|
234
|
+
/***/ 133:
|
|
235
235
|
/***/ (function(module, exports, __webpack_require__) {
|
|
236
236
|
|
|
237
237
|
"use strict";
|
|
@@ -259,21 +259,23 @@ var lodash_1 = __webpack_require__(2); // Charting imports i18n which needs to b
|
|
|
259
259
|
// eslint-disable-next-line import/order
|
|
260
260
|
|
|
261
261
|
|
|
262
|
-
var Charting_1 = __webpack_require__(
|
|
262
|
+
var Charting_1 = __webpack_require__(54);
|
|
263
263
|
|
|
264
|
-
var charting_bundle_1 = __webpack_require__(
|
|
264
|
+
var charting_bundle_1 = __webpack_require__(50);
|
|
265
265
|
|
|
266
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
266
|
+
var simpleXMLOptions_1 = __webpack_require__(60);
|
|
267
267
|
|
|
268
|
-
var config_1 = __webpack_require__(
|
|
268
|
+
var config_1 = __webpack_require__(226);
|
|
269
269
|
|
|
270
270
|
exports.config = config_1.default;
|
|
271
271
|
|
|
272
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
272
|
+
var withDashboardViz_1 = __webpack_require__(29);
|
|
273
273
|
|
|
274
|
-
var pieUtils_1 = __webpack_require__(
|
|
274
|
+
var pieUtils_1 = __webpack_require__(228);
|
|
275
275
|
|
|
276
|
-
var chartingUtils_1 = __webpack_require__(
|
|
276
|
+
var chartingUtils_1 = __webpack_require__(49);
|
|
277
|
+
|
|
278
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
277
279
|
|
|
278
280
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
279
281
|
exports.PieInnerSize = 0.7;
|
|
@@ -338,22 +340,10 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
338
340
|
return computedProps;
|
|
339
341
|
};
|
|
340
342
|
|
|
341
|
-
exports.computeVizProps = computeVizProps; //
|
|
343
|
+
exports.computeVizProps = computeVizProps; // Returns true to display the placeholder icon, if invalid datasource condition or invalid data value/labels condition is met
|
|
342
344
|
|
|
343
345
|
var showPlaceHolderIcon = function showPlaceHolderIcon(dataSources, loading, options) {
|
|
344
|
-
|
|
345
|
-
return true;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
if (pieUtils_1.allInvalidValues(dataSources, options, config_1.default)) {
|
|
349
|
-
// TODO: update error handling in SCP-52311
|
|
350
|
-
// console.error(
|
|
351
|
-
// 'Pie charts are used to compare values that are part of a whole. To render the visualization, please configure a data source with a list of categories and associated values, at least one of which is greater than 0.'
|
|
352
|
-
// );
|
|
353
|
-
return true;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
return false;
|
|
346
|
+
return IconPlaceholder_1.shouldShowIconPlaceholder(dataSources, loading) || pieUtils_1.invalidOptionField('value', dataSources, options, config_1.default) || pieUtils_1.invalidOptionField('label', dataSources, options, config_1.default) || pieUtils_1.allInvalidDataValues(dataSources, options, config_1.default);
|
|
357
347
|
};
|
|
358
348
|
|
|
359
349
|
exports.showPlaceHolderIcon = showPlaceHolderIcon;
|
|
@@ -402,7 +392,7 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
|
402
392
|
/***/ 19:
|
|
403
393
|
/***/ (function(module, exports) {
|
|
404
394
|
|
|
405
|
-
module.exports = require("@splunk/
|
|
395
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
406
396
|
|
|
407
397
|
/***/ }),
|
|
408
398
|
|
|
@@ -416,18 +406,25 @@ module.exports = require("lodash");
|
|
|
416
406
|
/***/ 20:
|
|
417
407
|
/***/ (function(module, exports) {
|
|
418
408
|
|
|
419
|
-
module.exports = require("@
|
|
409
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
420
410
|
|
|
421
411
|
/***/ }),
|
|
422
412
|
|
|
423
413
|
/***/ 21:
|
|
424
414
|
/***/ (function(module, exports) {
|
|
425
415
|
|
|
416
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
417
|
+
|
|
418
|
+
/***/ }),
|
|
419
|
+
|
|
420
|
+
/***/ 22:
|
|
421
|
+
/***/ (function(module, exports) {
|
|
422
|
+
|
|
426
423
|
module.exports = require("@splunk/themes/pick");
|
|
427
424
|
|
|
428
425
|
/***/ }),
|
|
429
426
|
|
|
430
|
-
/***/
|
|
427
|
+
/***/ 225:
|
|
431
428
|
/***/ (function(module, exports, __webpack_require__) {
|
|
432
429
|
|
|
433
430
|
"use strict";
|
|
@@ -457,9 +454,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
457
454
|
});
|
|
458
455
|
exports.default = void 0;
|
|
459
456
|
|
|
460
|
-
__exportStar(__webpack_require__(
|
|
457
|
+
__exportStar(__webpack_require__(133), exports);
|
|
461
458
|
|
|
462
|
-
var Pie_1 = __webpack_require__(
|
|
459
|
+
var Pie_1 = __webpack_require__(133);
|
|
463
460
|
|
|
464
461
|
Object.defineProperty(exports, "default", {
|
|
465
462
|
enumerable: true,
|
|
@@ -470,7 +467,7 @@ Object.defineProperty(exports, "default", {
|
|
|
470
467
|
|
|
471
468
|
/***/ }),
|
|
472
469
|
|
|
473
|
-
/***/
|
|
470
|
+
/***/ 226:
|
|
474
471
|
/***/ (function(module, exports, __webpack_require__) {
|
|
475
472
|
|
|
476
473
|
"use strict";
|
|
@@ -480,27 +477,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
480
477
|
value: true
|
|
481
478
|
});
|
|
482
479
|
|
|
483
|
-
var ChartPie_1 = __webpack_require__(
|
|
480
|
+
var ChartPie_1 = __webpack_require__(227);
|
|
484
481
|
|
|
485
|
-
var placeholders_1 = __webpack_require__(
|
|
482
|
+
var placeholders_1 = __webpack_require__(44);
|
|
486
483
|
|
|
487
484
|
var i18n_1 = __webpack_require__(3);
|
|
488
485
|
|
|
489
486
|
var schemaUtils_1 = __webpack_require__(15);
|
|
490
487
|
|
|
491
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
488
|
+
var visualization_color_palettes_1 = __webpack_require__(43);
|
|
492
489
|
|
|
493
|
-
var pick_1 = __webpack_require__(
|
|
490
|
+
var pick_1 = __webpack_require__(22);
|
|
494
491
|
|
|
495
492
|
var variables_1 = __webpack_require__(11);
|
|
496
493
|
|
|
497
494
|
var VizBehavior_1 = __webpack_require__(5);
|
|
498
495
|
|
|
499
|
-
var VizCategory_1 = __webpack_require__(
|
|
496
|
+
var VizCategory_1 = __webpack_require__(28);
|
|
500
497
|
|
|
501
498
|
var configUtils_1 = __webpack_require__(6);
|
|
502
499
|
|
|
503
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
500
|
+
var BackgroundColor_1 = __webpack_require__(48);
|
|
504
501
|
|
|
505
502
|
var dataContract = {
|
|
506
503
|
requiredDataSources: [{
|
|
@@ -704,14 +701,14 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
704
701
|
|
|
705
702
|
/***/ }),
|
|
706
703
|
|
|
707
|
-
/***/
|
|
704
|
+
/***/ 227:
|
|
708
705
|
/***/ (function(module, exports) {
|
|
709
706
|
|
|
710
707
|
module.exports = require("@splunk/react-icons/ChartPie");
|
|
711
708
|
|
|
712
709
|
/***/ }),
|
|
713
710
|
|
|
714
|
-
/***/
|
|
711
|
+
/***/ 228:
|
|
715
712
|
/***/ (function(module, exports, __webpack_require__) {
|
|
716
713
|
|
|
717
714
|
"use strict";
|
|
@@ -733,17 +730,17 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
733
730
|
Object.defineProperty(exports, "__esModule", {
|
|
734
731
|
value: true
|
|
735
732
|
});
|
|
736
|
-
exports.
|
|
733
|
+
exports.allInvalidDataValues = exports.invalidOptionField = exports.getPieOptionFieldIndex = exports.getPieMergedOptions = exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay = exports.convertToStringValues = void 0;
|
|
737
734
|
|
|
738
735
|
var lodash_1 = __webpack_require__(2);
|
|
739
736
|
|
|
740
|
-
var propUtils_1 = __webpack_require__(
|
|
737
|
+
var propUtils_1 = __webpack_require__(20);
|
|
741
738
|
|
|
742
|
-
var dsl_1 = __webpack_require__(
|
|
739
|
+
var dsl_1 = __webpack_require__(104);
|
|
743
740
|
|
|
744
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
741
|
+
var JSONSchemaUtils_1 = __webpack_require__(24);
|
|
745
742
|
|
|
746
|
-
var hocUtils_1 = __webpack_require__(
|
|
743
|
+
var hocUtils_1 = __webpack_require__(8); // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
|
|
747
744
|
// map for key names which are either new or not present in SimpleXML options mapping
|
|
748
745
|
|
|
749
746
|
|
|
@@ -827,26 +824,68 @@ var convertToPieSCProperties = function convertToPieSCProperties(originalOptions
|
|
|
827
824
|
|
|
828
825
|
exports.convertToPieSCProperties = convertToPieSCProperties;
|
|
829
826
|
/**
|
|
830
|
-
*
|
|
831
|
-
* @
|
|
832
|
-
* @param
|
|
833
|
-
* @
|
|
834
|
-
* @param {Object} config
|
|
835
|
-
* @returns {Object}
|
|
827
|
+
* Return all merged options (default + config) using vizConfig and options
|
|
828
|
+
* @param options
|
|
829
|
+
* @param vizConfig
|
|
830
|
+
* @returns
|
|
836
831
|
*/
|
|
837
832
|
|
|
838
|
-
var
|
|
839
|
-
|
|
840
|
-
|
|
833
|
+
var getPieMergedOptions = function getPieMergedOptions(options, vizConfig) {
|
|
834
|
+
return hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default'));
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
exports.getPieMergedOptions = getPieMergedOptions;
|
|
838
|
+
/**
|
|
839
|
+
* Returns option's field index. If not found returns -1
|
|
840
|
+
* @param optionName
|
|
841
|
+
* @param dataSources
|
|
842
|
+
* @param options
|
|
843
|
+
* @param vizConfig
|
|
844
|
+
* @returns
|
|
845
|
+
*/
|
|
846
|
+
|
|
847
|
+
var getPieOptionFieldIndex = function getPieOptionFieldIndex(optionName, dataSources, options, vizConfig) {
|
|
848
|
+
var mergedOptions = exports.getPieMergedOptions(options, vizConfig); // find the field name configured for pie "value"
|
|
849
|
+
|
|
850
|
+
var fieldName = dsl_1.getFieldsFromDSL(mergedOptions[optionName], dataSources)[0];
|
|
851
|
+
var fields = dataSources.primary.data.fields; // find the field index configured for pie "value"
|
|
852
|
+
|
|
853
|
+
var fieldIndex = fields.findIndex(function (field) {
|
|
854
|
+
return (typeof field === 'string' ? field : field.name.toString()) === fieldName;
|
|
855
|
+
});
|
|
856
|
+
return fieldIndex;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
exports.getPieOptionFieldIndex = getPieOptionFieldIndex;
|
|
860
|
+
/**
|
|
861
|
+
* Returns true if columns data has invalid data format for specified option (label or value)
|
|
862
|
+
* @param optionName
|
|
863
|
+
* @param dataSources
|
|
864
|
+
* @param options
|
|
865
|
+
* @param vizConfig
|
|
866
|
+
* @returns
|
|
867
|
+
*/
|
|
868
|
+
|
|
869
|
+
var invalidOptionField = function invalidOptionField(optionName, dataSources, options, vizConfig) {
|
|
870
|
+
var columns = dataSources.primary.data.columns;
|
|
871
|
+
var fieldIndex = exports.getPieOptionFieldIndex(optionName, dataSources, options, vizConfig);
|
|
872
|
+
|
|
873
|
+
if (fieldIndex === -1 || !columns[fieldIndex] || !Array.isArray(columns[fieldIndex]) || Array.isArray(columns[fieldIndex]) && !columns[fieldIndex].length) {
|
|
874
|
+
return true;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
return false;
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
exports.invalidOptionField = invalidOptionField;
|
|
881
|
+
/**
|
|
882
|
+
* Helper function to evaluate if all data values are invalid (zero or negative)
|
|
883
|
+
*/
|
|
841
884
|
|
|
842
|
-
|
|
843
|
-
var
|
|
844
|
-
columns = _dataSources$primary$.columns,
|
|
845
|
-
fields = _dataSources$primary$.fields; // find the field index configured for pie "value"
|
|
885
|
+
var allInvalidDataValues = function allInvalidDataValues(dataSources, options, vizConfig) {
|
|
886
|
+
var columns = dataSources.primary.data.columns; // find the field index configured for pie "value"
|
|
846
887
|
|
|
847
|
-
var valueFieldIndex =
|
|
848
|
-
return (typeof field === 'string' ? field : field.name.toString()) === valueFieldName;
|
|
849
|
-
}); // check if all values are invalid
|
|
888
|
+
var valueFieldIndex = exports.getPieOptionFieldIndex('value', dataSources, options, vizConfig); // check if all values are invalid
|
|
850
889
|
|
|
851
890
|
if (Array.isArray(columns) && columns[valueFieldIndex] && Array.isArray(columns[valueFieldIndex])) {
|
|
852
891
|
return !columns[valueFieldIndex].some(function (value) {
|
|
@@ -857,11 +896,11 @@ var allInvalidValues = function allInvalidValues(dataSources, options, vizConfig
|
|
|
857
896
|
return false;
|
|
858
897
|
};
|
|
859
898
|
|
|
860
|
-
exports.
|
|
899
|
+
exports.allInvalidDataValues = allInvalidDataValues;
|
|
861
900
|
|
|
862
901
|
/***/ }),
|
|
863
902
|
|
|
864
|
-
/***/
|
|
903
|
+
/***/ 24:
|
|
865
904
|
/***/ (function(module, exports, __webpack_require__) {
|
|
866
905
|
|
|
867
906
|
"use strict";
|
|
@@ -895,13 +934,105 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
|
895
934
|
|
|
896
935
|
/***/ }),
|
|
897
936
|
|
|
898
|
-
/***/
|
|
937
|
+
/***/ 25:
|
|
938
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
939
|
+
|
|
940
|
+
"use strict";
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
Object.defineProperty(exports, "__esModule", {
|
|
944
|
+
value: true
|
|
945
|
+
});
|
|
946
|
+
exports.shouldShowIconPlaceholder = void 0;
|
|
947
|
+
|
|
948
|
+
var React = __webpack_require__(1);
|
|
949
|
+
|
|
950
|
+
var T = __webpack_require__(0);
|
|
951
|
+
|
|
952
|
+
var lodash_1 = __webpack_require__(2);
|
|
953
|
+
|
|
954
|
+
var i18n_1 = __webpack_require__(3);
|
|
955
|
+
|
|
956
|
+
var Message_1 = __webpack_require__(9);
|
|
957
|
+
|
|
958
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
959
|
+
/**
|
|
960
|
+
* @method shouldShowIconPlaceholder
|
|
961
|
+
* @param {object} dataSources
|
|
962
|
+
* @param {boolean} loading
|
|
963
|
+
* @returns {boolean}
|
|
964
|
+
*/
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
968
|
+
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
969
|
+
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
970
|
+
var noData = data === undefined;
|
|
971
|
+
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
972
|
+
var noFields = fields === undefined;
|
|
973
|
+
return loading || noData || noFields;
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
977
|
+
var propTypes = {
|
|
978
|
+
icon: T.func,
|
|
979
|
+
width: T.oneOfType([T.string, T.number]),
|
|
980
|
+
height: T.oneOfType([T.string, T.number]),
|
|
981
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
982
|
+
backgroundColor: T.string,
|
|
983
|
+
iconColor: T.string
|
|
984
|
+
};
|
|
985
|
+
/**
|
|
986
|
+
* @method IconPlaceholder
|
|
987
|
+
* @param {IconPlaceholderProps} props
|
|
988
|
+
* @returns {React.ReactElement}
|
|
989
|
+
*/
|
|
990
|
+
|
|
991
|
+
var IconPlaceholder = function IconPlaceholder(props) {
|
|
992
|
+
var width = props.width,
|
|
993
|
+
height = props.height,
|
|
994
|
+
icon = props.icon,
|
|
995
|
+
iconColor = props.iconColor;
|
|
996
|
+
|
|
997
|
+
if (icon) {
|
|
998
|
+
return React.createElement(icon, {
|
|
999
|
+
style: {
|
|
1000
|
+
left: '50%',
|
|
1001
|
+
top: '50%',
|
|
1002
|
+
color: iconColor,
|
|
1003
|
+
opacity: 0.15,
|
|
1004
|
+
position: 'absolute',
|
|
1005
|
+
transform: 'translate(-50%, -50%)'
|
|
1006
|
+
},
|
|
1007
|
+
width: '50%',
|
|
1008
|
+
height: '50%'
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
return React.createElement(Message_1.default, {
|
|
1013
|
+
width: width,
|
|
1014
|
+
height: height,
|
|
1015
|
+
level: "warning",
|
|
1016
|
+
message: i18n_1._('No DataSource Connected')
|
|
1017
|
+
});
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
IconPlaceholder.propTypes = propTypes;
|
|
1021
|
+
IconPlaceholder.defaultProps = {
|
|
1022
|
+
width: '100%',
|
|
1023
|
+
height: 250
|
|
1024
|
+
};
|
|
1025
|
+
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
1026
|
+
|
|
1027
|
+
/***/ }),
|
|
1028
|
+
|
|
1029
|
+
/***/ 26:
|
|
899
1030
|
/***/ (function(module, exports, __webpack_require__) {
|
|
900
1031
|
|
|
901
1032
|
"use strict";
|
|
902
1033
|
|
|
903
1034
|
|
|
904
|
-
var _defineProperty = __webpack_require__(
|
|
1035
|
+
var _defineProperty = __webpack_require__(7);
|
|
905
1036
|
|
|
906
1037
|
Object.defineProperty(exports, "__esModule", {
|
|
907
1038
|
value: true
|
|
@@ -912,7 +1043,7 @@ var T = __webpack_require__(0);
|
|
|
912
1043
|
|
|
913
1044
|
var lodash_1 = __webpack_require__(2);
|
|
914
1045
|
|
|
915
|
-
var DataSource_1 = __webpack_require__(
|
|
1046
|
+
var DataSource_1 = __webpack_require__(36);
|
|
916
1047
|
|
|
917
1048
|
exports.SortParamsPropTypes = T.shape({
|
|
918
1049
|
currentSortKey: T.string,
|
|
@@ -966,7 +1097,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
966
1097
|
|
|
967
1098
|
/***/ }),
|
|
968
1099
|
|
|
969
|
-
/***/
|
|
1100
|
+
/***/ 27:
|
|
970
1101
|
/***/ (function(module, exports, __webpack_require__) {
|
|
971
1102
|
|
|
972
1103
|
"use strict";
|
|
@@ -1031,99 +1162,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1031
1162
|
|
|
1032
1163
|
/***/ }),
|
|
1033
1164
|
|
|
1034
|
-
/***/
|
|
1035
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1036
|
-
|
|
1037
|
-
"use strict";
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1041
|
-
value: true
|
|
1042
|
-
});
|
|
1043
|
-
exports.shouldShowIconPlaceholder = void 0;
|
|
1044
|
-
|
|
1045
|
-
var React = __webpack_require__(1);
|
|
1046
|
-
|
|
1047
|
-
var T = __webpack_require__(0);
|
|
1048
|
-
|
|
1049
|
-
var lodash_1 = __webpack_require__(2);
|
|
1050
|
-
|
|
1051
|
-
var i18n_1 = __webpack_require__(3);
|
|
1052
|
-
|
|
1053
|
-
var Message_1 = __webpack_require__(9);
|
|
1054
|
-
|
|
1055
|
-
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1056
|
-
/**
|
|
1057
|
-
* @method shouldShowIconPlaceholder
|
|
1058
|
-
* @param {object} dataSources
|
|
1059
|
-
* @param {boolean} loading
|
|
1060
|
-
* @returns {boolean}
|
|
1061
|
-
*/
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
1065
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1066
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
1067
|
-
var noData = data === undefined;
|
|
1068
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
1069
|
-
var noFields = fields === undefined;
|
|
1070
|
-
return loading || noData || noFields;
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
1074
|
-
var propTypes = {
|
|
1075
|
-
icon: T.func,
|
|
1076
|
-
width: T.oneOfType([T.string, T.number]),
|
|
1077
|
-
height: T.oneOfType([T.string, T.number]),
|
|
1078
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
1079
|
-
backgroundColor: T.string,
|
|
1080
|
-
iconColor: T.string
|
|
1081
|
-
};
|
|
1082
|
-
/**
|
|
1083
|
-
* @method IconPlaceholder
|
|
1084
|
-
* @param {IconPlaceholderProps} props
|
|
1085
|
-
* @returns {React.ReactElement}
|
|
1086
|
-
*/
|
|
1087
|
-
|
|
1088
|
-
var IconPlaceholder = function IconPlaceholder(props) {
|
|
1089
|
-
var width = props.width,
|
|
1090
|
-
height = props.height,
|
|
1091
|
-
icon = props.icon,
|
|
1092
|
-
iconColor = props.iconColor;
|
|
1093
|
-
|
|
1094
|
-
if (icon) {
|
|
1095
|
-
return React.createElement(icon, {
|
|
1096
|
-
style: {
|
|
1097
|
-
left: '50%',
|
|
1098
|
-
top: '50%',
|
|
1099
|
-
color: iconColor,
|
|
1100
|
-
opacity: 0.15,
|
|
1101
|
-
position: 'absolute',
|
|
1102
|
-
transform: 'translate(-50%, -50%)'
|
|
1103
|
-
},
|
|
1104
|
-
width: '50%',
|
|
1105
|
-
height: '50%'
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
return React.createElement(Message_1.default, {
|
|
1110
|
-
width: width,
|
|
1111
|
-
height: height,
|
|
1112
|
-
level: "warning",
|
|
1113
|
-
message: i18n_1._('No DataSource Connected')
|
|
1114
|
-
});
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
|
-
IconPlaceholder.propTypes = propTypes;
|
|
1118
|
-
IconPlaceholder.defaultProps = {
|
|
1119
|
-
width: '100%',
|
|
1120
|
-
height: 250
|
|
1121
|
-
};
|
|
1122
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
1123
|
-
|
|
1124
|
-
/***/ }),
|
|
1125
|
-
|
|
1126
|
-
/***/ 27:
|
|
1165
|
+
/***/ 28:
|
|
1127
1166
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1128
1167
|
|
|
1129
1168
|
"use strict";
|
|
@@ -1152,7 +1191,7 @@ var VizCategory;
|
|
|
1152
1191
|
|
|
1153
1192
|
/***/ }),
|
|
1154
1193
|
|
|
1155
|
-
/***/
|
|
1194
|
+
/***/ 29:
|
|
1156
1195
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1157
1196
|
|
|
1158
1197
|
"use strict";
|
|
@@ -1166,33 +1205,37 @@ var React = __webpack_require__(1);
|
|
|
1166
1205
|
|
|
1167
1206
|
var lodash_1 = __webpack_require__(2);
|
|
1168
1207
|
|
|
1169
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1208
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(30);
|
|
1209
|
+
|
|
1210
|
+
var Options_1 = __webpack_require__(31);
|
|
1170
1211
|
|
|
1171
|
-
var
|
|
1212
|
+
var SanitizeProps_1 = __webpack_require__(32);
|
|
1172
1213
|
|
|
1173
|
-
var
|
|
1214
|
+
var TimezoneContext_1 = __webpack_require__(19);
|
|
1215
|
+
|
|
1216
|
+
var moment_1 = __webpack_require__(33);
|
|
1174
1217
|
|
|
1175
1218
|
var styled_components_1 = __webpack_require__(4);
|
|
1176
1219
|
|
|
1177
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1220
|
+
var SplunkVisualization_1 = __webpack_require__(34);
|
|
1178
1221
|
|
|
1179
1222
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1180
1223
|
|
|
1181
|
-
var getSorting_1 = __webpack_require__(
|
|
1224
|
+
var getSorting_1 = __webpack_require__(26);
|
|
1182
1225
|
|
|
1183
|
-
var getPagination_1 = __webpack_require__(
|
|
1226
|
+
var getPagination_1 = __webpack_require__(27);
|
|
1184
1227
|
|
|
1185
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1228
|
+
var useDeepMemo_1 = __webpack_require__(37);
|
|
1186
1229
|
|
|
1187
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1230
|
+
var JSONSchemaUtils_1 = __webpack_require__(24);
|
|
1188
1231
|
|
|
1189
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1232
|
+
var MissingPropsMessage_1 = __webpack_require__(38);
|
|
1190
1233
|
|
|
1191
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1234
|
+
var withEditModeCover_1 = __webpack_require__(39);
|
|
1192
1235
|
|
|
1193
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1236
|
+
var withPlaceholder_1 = __webpack_require__(40);
|
|
1194
1237
|
|
|
1195
|
-
var hocUtils_1 = __webpack_require__(
|
|
1238
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
1196
1239
|
/**
|
|
1197
1240
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1198
1241
|
* @param {DashboardVizOpts} opts
|
|
@@ -1225,6 +1268,23 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1225
1268
|
theme = props.theme,
|
|
1226
1269
|
onRequestParamsChange = props.onRequestParamsChange;
|
|
1227
1270
|
|
|
1271
|
+
var _React$useContext = React.useContext(TimezoneContext_1.default),
|
|
1272
|
+
serializedTimezone = _React$useContext.serializedTimezone;
|
|
1273
|
+
|
|
1274
|
+
if (serializedTimezone) {
|
|
1275
|
+
/*
|
|
1276
|
+
@splunk/moment currently does not allow us to customize the timezone on a per visualization basis.
|
|
1277
|
+
This ensures that if a timezone was provided via TimezoneContext @splunk/moment time formatting
|
|
1278
|
+
will use it.
|
|
1279
|
+
@TODO(pwied):
|
|
1280
|
+
- remove when we moved away from @splunk/moment
|
|
1281
|
+
- provide timezone context to dynamic option evaluation phase
|
|
1282
|
+
*/
|
|
1283
|
+
if (!moment_1.default.getDefaultSplunkTimezone()) {
|
|
1284
|
+
moment_1.default.setDefaultSplunkTimezone(serializedTimezone);
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1228
1288
|
var themeFunc = function themeFunc(themeVar) {
|
|
1229
1289
|
var _a, _b;
|
|
1230
1290
|
|
|
@@ -1253,7 +1313,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1253
1313
|
console.error("unexpected error evaluating options: + ".concat(e.message));
|
|
1254
1314
|
return {};
|
|
1255
1315
|
}
|
|
1256
|
-
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources]); // useEffect hook needs to be initialized before any early returns
|
|
1316
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
|
|
1257
1317
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1258
1318
|
|
|
1259
1319
|
React.useEffect(function () {
|
|
@@ -1377,35 +1437,42 @@ exports.default = withDashboardViz;
|
|
|
1377
1437
|
|
|
1378
1438
|
/***/ }),
|
|
1379
1439
|
|
|
1380
|
-
/***/
|
|
1440
|
+
/***/ 3:
|
|
1381
1441
|
/***/ (function(module, exports) {
|
|
1382
1442
|
|
|
1383
|
-
module.exports = require("@splunk/
|
|
1443
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
1384
1444
|
|
|
1385
1445
|
/***/ }),
|
|
1386
1446
|
|
|
1387
|
-
/***/
|
|
1447
|
+
/***/ 30:
|
|
1388
1448
|
/***/ (function(module, exports) {
|
|
1389
1449
|
|
|
1390
|
-
module.exports = require("@splunk/
|
|
1450
|
+
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1391
1451
|
|
|
1392
1452
|
/***/ }),
|
|
1393
1453
|
|
|
1394
|
-
/***/
|
|
1454
|
+
/***/ 31:
|
|
1395
1455
|
/***/ (function(module, exports) {
|
|
1396
1456
|
|
|
1397
1457
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1398
1458
|
|
|
1399
1459
|
/***/ }),
|
|
1400
1460
|
|
|
1401
|
-
/***/
|
|
1461
|
+
/***/ 32:
|
|
1402
1462
|
/***/ (function(module, exports) {
|
|
1403
1463
|
|
|
1404
1464
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1405
1465
|
|
|
1406
1466
|
/***/ }),
|
|
1407
1467
|
|
|
1408
|
-
/***/
|
|
1468
|
+
/***/ 33:
|
|
1469
|
+
/***/ (function(module, exports) {
|
|
1470
|
+
|
|
1471
|
+
module.exports = require("@splunk/moment");
|
|
1472
|
+
|
|
1473
|
+
/***/ }),
|
|
1474
|
+
|
|
1475
|
+
/***/ 34:
|
|
1409
1476
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1410
1477
|
|
|
1411
1478
|
"use strict";
|
|
@@ -1423,7 +1490,7 @@ var T = __webpack_require__(0);
|
|
|
1423
1490
|
|
|
1424
1491
|
var lodash_1 = __webpack_require__(2);
|
|
1425
1492
|
|
|
1426
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1493
|
+
var VizActionHandler_1 = __webpack_require__(35); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1427
1494
|
|
|
1428
1495
|
|
|
1429
1496
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1557,7 +1624,7 @@ exports.default = SplunkVisualization;
|
|
|
1557
1624
|
|
|
1558
1625
|
/***/ }),
|
|
1559
1626
|
|
|
1560
|
-
/***/
|
|
1627
|
+
/***/ 35:
|
|
1561
1628
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1562
1629
|
|
|
1563
1630
|
"use strict";
|
|
@@ -1595,7 +1662,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1595
1662
|
|
|
1596
1663
|
/***/ }),
|
|
1597
1664
|
|
|
1598
|
-
/***/
|
|
1665
|
+
/***/ 36:
|
|
1599
1666
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1600
1667
|
|
|
1601
1668
|
"use strict";
|
|
@@ -1609,7 +1676,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1609
1676
|
|
|
1610
1677
|
/***/ }),
|
|
1611
1678
|
|
|
1612
|
-
/***/
|
|
1679
|
+
/***/ 37:
|
|
1613
1680
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1614
1681
|
|
|
1615
1682
|
"use strict";
|
|
@@ -1655,7 +1722,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1655
1722
|
|
|
1656
1723
|
/***/ }),
|
|
1657
1724
|
|
|
1658
|
-
/***/
|
|
1725
|
+
/***/ 38:
|
|
1659
1726
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1660
1727
|
|
|
1661
1728
|
"use strict";
|
|
@@ -1736,7 +1803,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
1736
1803
|
|
|
1737
1804
|
/***/ }),
|
|
1738
1805
|
|
|
1739
|
-
/***/
|
|
1806
|
+
/***/ 39:
|
|
1740
1807
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1741
1808
|
|
|
1742
1809
|
"use strict";
|
|
@@ -1750,14 +1817,14 @@ var React = __webpack_require__(1);
|
|
|
1750
1817
|
|
|
1751
1818
|
var styled_components_1 = __webpack_require__(4);
|
|
1752
1819
|
|
|
1753
|
-
var hocUtils_1 = __webpack_require__(
|
|
1820
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
1754
1821
|
|
|
1755
1822
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1756
1823
|
displayName: "withEditModeCover__Cover",
|
|
1757
1824
|
componentId: "sc-1gsbnxb-0"
|
|
1758
1825
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1759
1826
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1760
|
-
'data-splunk-visualization-version': "24.
|
|
1827
|
+
'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
|
|
1761
1828
|
}).withConfig({
|
|
1762
1829
|
displayName: "withEditModeCover__Blocker",
|
|
1763
1830
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1789,7 +1856,14 @@ exports.default = withEditModeCover;
|
|
|
1789
1856
|
|
|
1790
1857
|
/***/ }),
|
|
1791
1858
|
|
|
1792
|
-
/***/
|
|
1859
|
+
/***/ 4:
|
|
1860
|
+
/***/ (function(module, exports) {
|
|
1861
|
+
|
|
1862
|
+
module.exports = require("styled-components");
|
|
1863
|
+
|
|
1864
|
+
/***/ }),
|
|
1865
|
+
|
|
1866
|
+
/***/ 40:
|
|
1793
1867
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1794
1868
|
|
|
1795
1869
|
"use strict";
|
|
@@ -1805,11 +1879,11 @@ var colorUtils_1 = __webpack_require__(12);
|
|
|
1805
1879
|
|
|
1806
1880
|
var variables_1 = __webpack_require__(11);
|
|
1807
1881
|
|
|
1808
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1882
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
1809
1883
|
|
|
1810
1884
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1811
1885
|
|
|
1812
|
-
var hocUtils_1 = __webpack_require__(
|
|
1886
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
1813
1887
|
|
|
1814
1888
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1815
1889
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1854,35 +1928,28 @@ exports.default = withPlaceholder;
|
|
|
1854
1928
|
|
|
1855
1929
|
/***/ }),
|
|
1856
1930
|
|
|
1857
|
-
/***/
|
|
1931
|
+
/***/ 41:
|
|
1858
1932
|
/***/ (function(module, exports) {
|
|
1859
1933
|
|
|
1860
1934
|
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
1861
1935
|
|
|
1862
1936
|
/***/ }),
|
|
1863
1937
|
|
|
1864
|
-
/***/
|
|
1865
|
-
/***/ (function(module, exports) {
|
|
1866
|
-
|
|
1867
|
-
module.exports = require("styled-components");
|
|
1868
|
-
|
|
1869
|
-
/***/ }),
|
|
1870
|
-
|
|
1871
|
-
/***/ 41:
|
|
1938
|
+
/***/ 43:
|
|
1872
1939
|
/***/ (function(module, exports) {
|
|
1873
1940
|
|
|
1874
1941
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
1875
1942
|
|
|
1876
1943
|
/***/ }),
|
|
1877
1944
|
|
|
1878
|
-
/***/
|
|
1945
|
+
/***/ 44:
|
|
1879
1946
|
/***/ (function(module, exports) {
|
|
1880
1947
|
|
|
1881
1948
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1882
1949
|
|
|
1883
1950
|
/***/ }),
|
|
1884
1951
|
|
|
1885
|
-
/***/
|
|
1952
|
+
/***/ 48:
|
|
1886
1953
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1887
1954
|
|
|
1888
1955
|
"use strict";
|
|
@@ -1913,13 +1980,13 @@ exports.default = background;
|
|
|
1913
1980
|
|
|
1914
1981
|
/***/ }),
|
|
1915
1982
|
|
|
1916
|
-
/***/
|
|
1983
|
+
/***/ 49:
|
|
1917
1984
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1918
1985
|
|
|
1919
1986
|
"use strict";
|
|
1920
1987
|
|
|
1921
1988
|
|
|
1922
|
-
var _toConsumableArray = __webpack_require__(
|
|
1989
|
+
var _toConsumableArray = __webpack_require__(41);
|
|
1923
1990
|
|
|
1924
1991
|
var __rest = this && this.__rest || function (s, e) {
|
|
1925
1992
|
var t = {};
|
|
@@ -1986,7 +2053,7 @@ var truncateData = function truncateData(dataSet, truncationLimit) {
|
|
|
1986
2053
|
|
|
1987
2054
|
var truncatedData = Object.assign({}, dataSet);
|
|
1988
2055
|
truncatedData.columns = truncatedData.columns.map(function (columnData) {
|
|
1989
|
-
return columnData.slice(0, limit);
|
|
2056
|
+
return columnData && Array.isArray(columnData) ? columnData.slice(0, limit) : columnData;
|
|
1990
2057
|
});
|
|
1991
2058
|
return truncatedData;
|
|
1992
2059
|
};
|
|
@@ -2135,13 +2202,6 @@ exports.constructFieldsAndColumns = constructFieldsAndColumns;
|
|
|
2135
2202
|
|
|
2136
2203
|
/***/ }),
|
|
2137
2204
|
|
|
2138
|
-
/***/ 48:
|
|
2139
|
-
/***/ (function(module, exports) {
|
|
2140
|
-
|
|
2141
|
-
module.exports = require("@splunk/charting-bundle");
|
|
2142
|
-
|
|
2143
|
-
/***/ }),
|
|
2144
|
-
|
|
2145
2205
|
/***/ 5:
|
|
2146
2206
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2147
2207
|
|
|
@@ -2180,7 +2240,14 @@ var VizBehavior;
|
|
|
2180
2240
|
|
|
2181
2241
|
/***/ }),
|
|
2182
2242
|
|
|
2183
|
-
/***/
|
|
2243
|
+
/***/ 50:
|
|
2244
|
+
/***/ (function(module, exports) {
|
|
2245
|
+
|
|
2246
|
+
module.exports = require("@splunk/charting-bundle");
|
|
2247
|
+
|
|
2248
|
+
/***/ }),
|
|
2249
|
+
|
|
2250
|
+
/***/ 54:
|
|
2184
2251
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2185
2252
|
|
|
2186
2253
|
"use strict";
|
|
@@ -2196,7 +2263,7 @@ var lodash_1 = __webpack_require__(2);
|
|
|
2196
2263
|
|
|
2197
2264
|
var i18n_1 = __webpack_require__(3);
|
|
2198
2265
|
|
|
2199
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
2266
|
+
var visualization_color_palettes_1 = __webpack_require__(43);
|
|
2200
2267
|
|
|
2201
2268
|
var react_1 = __webpack_require__(1);
|
|
2202
2269
|
|
|
@@ -2204,14 +2271,14 @@ var React = __webpack_require__(1);
|
|
|
2204
2271
|
|
|
2205
2272
|
var T = __webpack_require__(0);
|
|
2206
2273
|
|
|
2207
|
-
var react_event_listener_1 = __webpack_require__(
|
|
2274
|
+
var react_event_listener_1 = __webpack_require__(55);
|
|
2208
2275
|
|
|
2209
|
-
__webpack_require__(
|
|
2276
|
+
__webpack_require__(56); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
2210
2277
|
|
|
2211
2278
|
|
|
2212
|
-
var charting_bundle_1 = __webpack_require__(
|
|
2279
|
+
var charting_bundle_1 = __webpack_require__(50);
|
|
2213
2280
|
|
|
2214
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2281
|
+
var TimezoneContext_1 = __webpack_require__(19);
|
|
2215
2282
|
|
|
2216
2283
|
var style_1 = __webpack_require__(14);
|
|
2217
2284
|
|
|
@@ -2219,11 +2286,11 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2219
2286
|
|
|
2220
2287
|
var Message_1 = __webpack_require__(9);
|
|
2221
2288
|
|
|
2222
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
2289
|
+
var useSplunkTheme_1 = __webpack_require__(57);
|
|
2223
2290
|
|
|
2224
|
-
var themeUtils_1 = __webpack_require__(
|
|
2291
|
+
var themeUtils_1 = __webpack_require__(58);
|
|
2225
2292
|
|
|
2226
|
-
var ChartingApi_1 = __webpack_require__(
|
|
2293
|
+
var ChartingApi_1 = __webpack_require__(59);
|
|
2227
2294
|
|
|
2228
2295
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
2229
2296
|
|
|
@@ -2603,42 +2670,35 @@ exports.default = withEmptyChartMessage(Charting);
|
|
|
2603
2670
|
|
|
2604
2671
|
/***/ }),
|
|
2605
2672
|
|
|
2606
|
-
/***/
|
|
2673
|
+
/***/ 55:
|
|
2607
2674
|
/***/ (function(module, exports) {
|
|
2608
2675
|
|
|
2609
2676
|
module.exports = require("react-event-listener");
|
|
2610
2677
|
|
|
2611
2678
|
/***/ }),
|
|
2612
2679
|
|
|
2613
|
-
/***/
|
|
2680
|
+
/***/ 56:
|
|
2614
2681
|
/***/ (function(module, exports) {
|
|
2615
2682
|
|
|
2616
2683
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
2617
2684
|
|
|
2618
2685
|
/***/ }),
|
|
2619
2686
|
|
|
2620
|
-
/***/
|
|
2621
|
-
/***/ (function(module, exports) {
|
|
2622
|
-
|
|
2623
|
-
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
2624
|
-
|
|
2625
|
-
/***/ }),
|
|
2626
|
-
|
|
2627
|
-
/***/ 56:
|
|
2687
|
+
/***/ 57:
|
|
2628
2688
|
/***/ (function(module, exports) {
|
|
2629
2689
|
|
|
2630
2690
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
2631
2691
|
|
|
2632
2692
|
/***/ }),
|
|
2633
2693
|
|
|
2634
|
-
/***/
|
|
2694
|
+
/***/ 58:
|
|
2635
2695
|
/***/ (function(module, exports) {
|
|
2636
2696
|
|
|
2637
2697
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
2638
2698
|
|
|
2639
2699
|
/***/ }),
|
|
2640
2700
|
|
|
2641
|
-
/***/
|
|
2701
|
+
/***/ 59:
|
|
2642
2702
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2643
2703
|
|
|
2644
2704
|
"use strict";
|
|
@@ -2707,20 +2767,13 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
|
2707
2767
|
|
|
2708
2768
|
/***/ }),
|
|
2709
2769
|
|
|
2710
|
-
/***/ 59:
|
|
2711
|
-
/***/ (function(module, exports) {
|
|
2712
|
-
|
|
2713
|
-
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
2714
|
-
|
|
2715
|
-
/***/ }),
|
|
2716
|
-
|
|
2717
2770
|
/***/ 6:
|
|
2718
2771
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2719
2772
|
|
|
2720
2773
|
"use strict";
|
|
2721
2774
|
|
|
2722
2775
|
|
|
2723
|
-
var _defineProperty = __webpack_require__(
|
|
2776
|
+
var _defineProperty = __webpack_require__(7);
|
|
2724
2777
|
|
|
2725
2778
|
var __rest = this && this.__rest || function (s, e) {
|
|
2726
2779
|
var t = {};
|
|
@@ -2906,13 +2959,27 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
2906
2959
|
|
|
2907
2960
|
/***/ }),
|
|
2908
2961
|
|
|
2962
|
+
/***/ 60:
|
|
2963
|
+
/***/ (function(module, exports) {
|
|
2964
|
+
|
|
2965
|
+
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
2966
|
+
|
|
2967
|
+
/***/ }),
|
|
2968
|
+
|
|
2909
2969
|
/***/ 7:
|
|
2970
|
+
/***/ (function(module, exports) {
|
|
2971
|
+
|
|
2972
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
2973
|
+
|
|
2974
|
+
/***/ }),
|
|
2975
|
+
|
|
2976
|
+
/***/ 8:
|
|
2910
2977
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2911
2978
|
|
|
2912
2979
|
"use strict";
|
|
2913
2980
|
|
|
2914
2981
|
|
|
2915
|
-
var _typeof = __webpack_require__(
|
|
2982
|
+
var _typeof = __webpack_require__(21);
|
|
2916
2983
|
|
|
2917
2984
|
Object.defineProperty(exports, "__esModule", {
|
|
2918
2985
|
value: true
|
|
@@ -3035,13 +3102,6 @@ exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
|
|
|
3035
3102
|
|
|
3036
3103
|
/***/ }),
|
|
3037
3104
|
|
|
3038
|
-
/***/ 8:
|
|
3039
|
-
/***/ (function(module, exports) {
|
|
3040
|
-
|
|
3041
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3042
|
-
|
|
3043
|
-
/***/ }),
|
|
3044
|
-
|
|
3045
3105
|
/***/ 9:
|
|
3046
3106
|
/***/ (function(module, exports) {
|
|
3047
3107
|
|