@splunk/visualizations 26.3.0 → 26.4.1
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/Area.config.js +1 -1
- package/Area.config.js.map +1 -1
- package/Area.js +300 -290
- package/Area.js.map +1 -1
- package/Bar.config.js +1 -1
- package/Bar.config.js.map +1 -1
- package/Bar.js +303 -293
- package/Bar.js.map +1 -1
- package/Bubble.config.js +1 -1
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +292 -282
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +1 -1
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +262 -260
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +1 -1
- package/Column.config.js.map +1 -1
- package/Column.js +303 -293
- package/Column.js.map +1 -1
- package/Ellipse.js +220 -218
- package/Ellipse.js.map +1 -1
- package/Events.config.js +1 -1
- package/Events.config.js.map +1 -1
- package/Events.js +285 -283
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +1 -1
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +250 -248
- package/FillerGauge.js.map +1 -1
- package/Image.js +212 -210
- package/Image.js.map +1 -1
- package/Line.config.js +1 -1
- package/Line.config.js.map +1 -1
- package/Line.js +301 -291
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +1 -1
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +1725 -17201
- package/LinkGraph.js.map +1 -1
- package/MIGRATION.md +12 -0
- package/Map.config.js +1 -1
- package/Map.config.js.map +1 -1
- package/Map.js +465 -406
- package/Map.js.map +1 -1
- package/Markdown.config.js +1 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +281 -277
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +1 -1
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +926 -922
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +1 -1
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +336 -320
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +5 -1
- package/Pie.config.js.map +1 -1
- package/Pie.js +374 -332
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +1 -1
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +342 -338
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +260 -256
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +1 -1
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +339 -335
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +1 -1
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +351 -339
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +10 -2
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +455 -427
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +65 -53
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +10 -2
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +449 -421
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +11 -3
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1580 -1552
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +33 -33
- package/SparkLine.js.map +1 -1
- package/Table.js +354 -350
- package/Table.js.map +1 -1
- package/common/Charting.js +25 -24
- package/common/Charting.js.map +1 -1
- package/common/utils/dataUtils.js +12 -18
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +23 -11
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/withDashboardViz.js +31 -27
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +17 -16
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 = 450);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,53 +95,46 @@ module.exports =
|
|
|
95
95
|
/***/ 0:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("prop-types");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
103
|
/***/ (function(module, exports) {
|
|
104
104
|
|
|
105
|
-
module.exports = require("
|
|
105
|
+
module.exports = require("react");
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@splunk/visualization-schemas");
|
|
113
|
-
|
|
114
|
-
/***/ }),
|
|
115
|
-
|
|
116
|
-
/***/ 11:
|
|
117
|
-
/***/ (function(module, exports) {
|
|
118
|
-
|
|
119
112
|
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
120
113
|
|
|
121
114
|
/***/ }),
|
|
122
115
|
|
|
123
|
-
/***/
|
|
116
|
+
/***/ 11:
|
|
124
117
|
/***/ (function(module, exports) {
|
|
125
118
|
|
|
126
119
|
module.exports = require("@splunk/visualizations-shared/Message");
|
|
127
120
|
|
|
128
121
|
/***/ }),
|
|
129
122
|
|
|
130
|
-
/***/
|
|
123
|
+
/***/ 12:
|
|
131
124
|
/***/ (function(module, exports) {
|
|
132
125
|
|
|
133
126
|
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
134
127
|
|
|
135
128
|
/***/ }),
|
|
136
129
|
|
|
137
|
-
/***/
|
|
130
|
+
/***/ 13:
|
|
138
131
|
/***/ (function(module, exports) {
|
|
139
132
|
|
|
140
133
|
module.exports = require("@splunk/themes/variables");
|
|
141
134
|
|
|
142
135
|
/***/ }),
|
|
143
136
|
|
|
144
|
-
/***/
|
|
137
|
+
/***/ 14:
|
|
145
138
|
/***/ (function(module, exports, __webpack_require__) {
|
|
146
139
|
|
|
147
140
|
"use strict";
|
|
@@ -152,9 +145,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
152
145
|
});
|
|
153
146
|
exports.downsampleDataSources = exports.calculateDownsamplingThreshold = exports.calculateThresholdOnRangeSelect = exports.isDownsamplingEnabledForViz = exports.convertToArrOfObjects = void 0;
|
|
154
147
|
|
|
155
|
-
var numberUtils_1 = __webpack_require__(
|
|
148
|
+
var numberUtils_1 = __webpack_require__(10);
|
|
156
149
|
|
|
157
|
-
var interfaces_1 = __webpack_require__(
|
|
150
|
+
var interfaces_1 = __webpack_require__(39); // TODO: utilize this fn in ParallelCoordinates
|
|
158
151
|
|
|
159
152
|
|
|
160
153
|
var convertToArrOfObjects = function convertToArrOfObjects(columns, fields) {
|
|
@@ -289,19 +282,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
|
|
|
289
282
|
*/
|
|
290
283
|
|
|
291
284
|
|
|
292
|
-
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
|
|
293
|
-
// Splunk charting allows for numbers in formats such as negative hex that
|
|
285
|
+
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column, options) {
|
|
286
|
+
var isNullCoercionEnabled = options.nullValueDisplay === 'zero'; // Splunk charting allows for numbers in formats such as negative hex that
|
|
294
287
|
// Number() does not support and also allows loose coercion of hex numbers (but not other formats)
|
|
295
288
|
// We want to identify columns which contain at least one value that can be loosely coerced
|
|
289
|
+
|
|
296
290
|
var canLooselyCoerceSomeValues = column.findIndex(function (value) {
|
|
297
|
-
return (0, numberUtils_1.startsWithNumber)("".concat(value));
|
|
291
|
+
return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
|
|
298
292
|
}) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
|
|
299
293
|
|
|
300
294
|
var coercedColumn = [];
|
|
301
295
|
var canDownsampleColumn = !column.some(function (value) {
|
|
302
|
-
var coercedValue = Number(value);
|
|
296
|
+
var coercedValue = Number(value);
|
|
297
|
+
var coerceValueToZero = isNullCoercionEnabled && value === null; // if it can't be parsed or isn't safe, fail
|
|
303
298
|
|
|
304
|
-
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number') {
|
|
299
|
+
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number' && !coerceValueToZero) {
|
|
305
300
|
return true;
|
|
306
301
|
} // save value and continue to next
|
|
307
302
|
|
|
@@ -382,8 +377,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
382
377
|
dataSources = _ref3.dataSources,
|
|
383
378
|
selectChartEvent = _ref3.selectChartEvent,
|
|
384
379
|
width = _ref3.width,
|
|
385
|
-
xField = _ref3.xField
|
|
386
|
-
y2Fields = _ref3.y2Fields;
|
|
380
|
+
xField = _ref3.xField;
|
|
387
381
|
|
|
388
382
|
var _a, _b, _c;
|
|
389
383
|
|
|
@@ -420,14 +414,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
420
414
|
});
|
|
421
415
|
var lastIndex = fullSeries.findIndex(function (x) {
|
|
422
416
|
return downsampledSeries[endXIndex] === x;
|
|
423
|
-
});
|
|
424
|
-
// re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
|
|
425
|
-
// Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
|
|
426
|
-
// until SPL-259611 is fixed
|
|
427
|
-
|
|
428
|
-
if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
|
|
429
|
-
return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
|
|
430
|
-
}
|
|
417
|
+
});
|
|
431
418
|
|
|
432
419
|
if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
|
|
433
420
|
return (0, exports.calculateThresholdOnRangeSelect)({
|
|
@@ -477,7 +464,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
|
|
|
477
464
|
*/
|
|
478
465
|
|
|
479
466
|
|
|
480
|
-
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
|
|
467
|
+
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
|
|
481
468
|
var xColumn = [];
|
|
482
469
|
var yColumns = [];
|
|
483
470
|
var canDownsample = !ds.data.fields.some(function (field, index) {
|
|
@@ -491,7 +478,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
|
|
|
491
478
|
if (fieldName === xField) {
|
|
492
479
|
xColumn = strictlyCoerceXColumn(column, fieldType);
|
|
493
480
|
} else if (yFields.has(fieldName)) {
|
|
494
|
-
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
|
|
481
|
+
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
|
|
495
482
|
coercedColumn = _strictlyCoerceYColum.coercedColumn,
|
|
496
483
|
canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
|
|
497
484
|
canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
|
|
@@ -581,7 +568,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
581
568
|
return dataSources;
|
|
582
569
|
}
|
|
583
570
|
|
|
584
|
-
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
|
|
571
|
+
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
|
|
585
572
|
xColumn = _tryToCoerceAllDispla.xColumn,
|
|
586
573
|
yColumns = _tryToCoerceAllDispla.yColumns;
|
|
587
574
|
|
|
@@ -618,48 +605,48 @@ exports.downsampleDataSources = downsampleDataSources;
|
|
|
618
605
|
|
|
619
606
|
/***/ }),
|
|
620
607
|
|
|
621
|
-
/***/
|
|
608
|
+
/***/ 15:
|
|
622
609
|
/***/ (function(module, exports) {
|
|
623
610
|
|
|
624
|
-
module.exports = require("@splunk/
|
|
611
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
625
612
|
|
|
626
613
|
/***/ }),
|
|
627
614
|
|
|
628
|
-
/***/
|
|
615
|
+
/***/ 151:
|
|
629
616
|
/***/ (function(module, exports) {
|
|
630
617
|
|
|
631
|
-
module.exports = require("@splunk/
|
|
618
|
+
module.exports = require("@splunk/visualization-encoding/utils/dsl");
|
|
632
619
|
|
|
633
620
|
/***/ }),
|
|
634
621
|
|
|
635
|
-
/***/
|
|
622
|
+
/***/ 16:
|
|
636
623
|
/***/ (function(module, exports) {
|
|
637
624
|
|
|
638
625
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
639
626
|
|
|
640
627
|
/***/ }),
|
|
641
628
|
|
|
642
|
-
/***/
|
|
629
|
+
/***/ 17:
|
|
643
630
|
/***/ (function(module, exports, __webpack_require__) {
|
|
644
631
|
|
|
645
632
|
"use strict";
|
|
646
633
|
|
|
647
634
|
|
|
648
|
-
var _slicedToArray = __webpack_require__(
|
|
635
|
+
var _slicedToArray = __webpack_require__(5);
|
|
649
636
|
|
|
650
637
|
Object.defineProperty(exports, "__esModule", {
|
|
651
638
|
value: true
|
|
652
639
|
});
|
|
653
640
|
|
|
654
|
-
var React = __webpack_require__(
|
|
641
|
+
var React = __webpack_require__(1);
|
|
655
642
|
|
|
656
643
|
var styled_components_1 = __webpack_require__(4);
|
|
657
644
|
|
|
658
|
-
var style_1 = __webpack_require__(
|
|
645
|
+
var style_1 = __webpack_require__(18);
|
|
659
646
|
|
|
660
|
-
var colorUtils_1 = __webpack_require__(
|
|
647
|
+
var colorUtils_1 = __webpack_require__(15);
|
|
661
648
|
|
|
662
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
649
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
663
650
|
|
|
664
651
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
665
652
|
var width = _ref.width;
|
|
@@ -730,7 +717,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
730
717
|
|
|
731
718
|
return React.createElement(FixSizeItem, {
|
|
732
719
|
"data-test": "fix-size-item",
|
|
733
|
-
"data-splunk-visualization-version": "26.
|
|
720
|
+
"data-splunk-visualization-version": "26.4.1 - 2b7482c08",
|
|
734
721
|
width: width,
|
|
735
722
|
height: height,
|
|
736
723
|
backgroundColor: backgroundColor
|
|
@@ -752,7 +739,14 @@ exports.default = withFixedSizeContainer;
|
|
|
752
739
|
|
|
753
740
|
/***/ }),
|
|
754
741
|
|
|
755
|
-
/***/
|
|
742
|
+
/***/ 18:
|
|
743
|
+
/***/ (function(module, exports) {
|
|
744
|
+
|
|
745
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
746
|
+
|
|
747
|
+
/***/ }),
|
|
748
|
+
|
|
749
|
+
/***/ 182:
|
|
756
750
|
/***/ (function(module, exports, __webpack_require__) {
|
|
757
751
|
|
|
758
752
|
"use strict";
|
|
@@ -776,27 +770,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
776
770
|
});
|
|
777
771
|
exports.config = exports.themes = exports.showPlaceHolderIcon = exports.computeVizProps = exports.PieInnerSize = void 0;
|
|
778
772
|
|
|
779
|
-
var lodash_1 = __webpack_require__(
|
|
773
|
+
var lodash_1 = __webpack_require__(2); // Charting imports i18n which needs to be run to instantiate window globals in the
|
|
780
774
|
// eslint-disable-next-line import/order
|
|
781
775
|
|
|
782
776
|
|
|
783
|
-
var Charting_1 = __webpack_require__(
|
|
777
|
+
var Charting_1 = __webpack_require__(84);
|
|
784
778
|
|
|
785
|
-
var charting_bundle_1 = __webpack_require__(
|
|
779
|
+
var charting_bundle_1 = __webpack_require__(75);
|
|
786
780
|
|
|
787
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
781
|
+
var simpleXMLOptions_1 = __webpack_require__(90);
|
|
788
782
|
|
|
789
|
-
var config_1 = __webpack_require__(
|
|
783
|
+
var config_1 = __webpack_require__(451);
|
|
790
784
|
|
|
791
785
|
exports.config = config_1.default;
|
|
792
786
|
|
|
793
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
787
|
+
var withDashboardViz_1 = __webpack_require__(54);
|
|
794
788
|
|
|
795
|
-
var pieUtils_1 = __webpack_require__(
|
|
789
|
+
var pieUtils_1 = __webpack_require__(453);
|
|
796
790
|
|
|
797
|
-
var chartingUtils_1 = __webpack_require__(
|
|
791
|
+
var chartingUtils_1 = __webpack_require__(77);
|
|
798
792
|
|
|
799
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
793
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
800
794
|
|
|
801
795
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
802
796
|
exports.PieInnerSize = 0.7;
|
|
@@ -812,7 +806,8 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
812
806
|
|
|
813
807
|
|
|
814
808
|
var computedProps = {
|
|
815
|
-
visualizationApiRef: visualizationApiRef
|
|
809
|
+
visualizationApiRef: visualizationApiRef,
|
|
810
|
+
onEventTrigger: onEventTrigger
|
|
816
811
|
};
|
|
817
812
|
var labelField = otherOptions.labelField,
|
|
818
813
|
valueField = otherOptions.valueField,
|
|
@@ -858,6 +853,10 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
858
853
|
computedProps.onClick = onEventTrigger;
|
|
859
854
|
}
|
|
860
855
|
|
|
856
|
+
if (computedProps.options.collapseExcludeZero) {
|
|
857
|
+
computedProps.chartData.seriesList = (0, pieUtils_1.removeColumnsThatOnlyContain0s)(computedProps.chartData.seriesList);
|
|
858
|
+
}
|
|
859
|
+
|
|
861
860
|
return computedProps;
|
|
862
861
|
};
|
|
863
862
|
|
|
@@ -882,21 +881,14 @@ exports.default = Pie;
|
|
|
882
881
|
|
|
883
882
|
/***/ }),
|
|
884
883
|
|
|
885
|
-
/***/ 19:
|
|
886
|
-
/***/ (function(module, exports) {
|
|
887
|
-
|
|
888
|
-
module.exports = require("@splunk/visualizations-shared/style");
|
|
889
|
-
|
|
890
|
-
/***/ }),
|
|
891
|
-
|
|
892
884
|
/***/ 2:
|
|
893
885
|
/***/ (function(module, exports) {
|
|
894
886
|
|
|
895
|
-
module.exports = require("
|
|
887
|
+
module.exports = require("lodash");
|
|
896
888
|
|
|
897
889
|
/***/ }),
|
|
898
890
|
|
|
899
|
-
/***/
|
|
891
|
+
/***/ 20:
|
|
900
892
|
/***/ (function(module, exports, __webpack_require__) {
|
|
901
893
|
|
|
902
894
|
"use strict";
|
|
@@ -911,15 +903,15 @@ exports.validOutputModes = ['json_cols', 'json'];
|
|
|
911
903
|
|
|
912
904
|
/***/ }),
|
|
913
905
|
|
|
914
|
-
/***/
|
|
906
|
+
/***/ 21:
|
|
915
907
|
/***/ (function(module, exports, __webpack_require__) {
|
|
916
908
|
|
|
917
909
|
"use strict";
|
|
918
910
|
|
|
919
911
|
|
|
920
|
-
var _classCallCheck = __webpack_require__(
|
|
912
|
+
var _classCallCheck = __webpack_require__(8);
|
|
921
913
|
|
|
922
|
-
var _createClass = __webpack_require__(
|
|
914
|
+
var _createClass = __webpack_require__(24);
|
|
923
915
|
|
|
924
916
|
Object.defineProperty(exports, "__esModule", {
|
|
925
917
|
value: true
|
|
@@ -949,7 +941,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
949
941
|
|
|
950
942
|
/***/ }),
|
|
951
943
|
|
|
952
|
-
/***/
|
|
944
|
+
/***/ 22:
|
|
953
945
|
/***/ (function(module, exports, __webpack_require__) {
|
|
954
946
|
|
|
955
947
|
"use strict";
|
|
@@ -978,7 +970,7 @@ var VizCategory;
|
|
|
978
970
|
|
|
979
971
|
/***/ }),
|
|
980
972
|
|
|
981
|
-
/***/
|
|
973
|
+
/***/ 23:
|
|
982
974
|
/***/ (function(module, exports, __webpack_require__) {
|
|
983
975
|
|
|
984
976
|
"use strict";
|
|
@@ -1011,37 +1003,37 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
1011
1003
|
|
|
1012
1004
|
/***/ }),
|
|
1013
1005
|
|
|
1014
|
-
/***/
|
|
1006
|
+
/***/ 24:
|
|
1015
1007
|
/***/ (function(module, exports) {
|
|
1016
1008
|
|
|
1017
1009
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1018
1010
|
|
|
1019
1011
|
/***/ }),
|
|
1020
1012
|
|
|
1021
|
-
/***/
|
|
1013
|
+
/***/ 25:
|
|
1022
1014
|
/***/ (function(module, exports) {
|
|
1023
1015
|
|
|
1024
1016
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
1025
1017
|
|
|
1026
1018
|
/***/ }),
|
|
1027
1019
|
|
|
1028
|
-
/***/
|
|
1020
|
+
/***/ 26:
|
|
1029
1021
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1030
1022
|
|
|
1031
1023
|
"use strict";
|
|
1032
1024
|
|
|
1033
1025
|
|
|
1034
|
-
var _toConsumableArray = __webpack_require__(
|
|
1026
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
1035
1027
|
|
|
1036
1028
|
Object.defineProperty(exports, "__esModule", {
|
|
1037
1029
|
value: true
|
|
1038
1030
|
});
|
|
1039
1031
|
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
1040
1032
|
|
|
1041
|
-
var lodash_1 = __webpack_require__(
|
|
1033
|
+
var lodash_1 = __webpack_require__(2); // included for backwards compatibility
|
|
1042
1034
|
|
|
1043
1035
|
|
|
1044
|
-
var visualization_schemas_1 = __webpack_require__(
|
|
1036
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1045
1037
|
|
|
1046
1038
|
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
1047
1039
|
enumerable: true,
|
|
@@ -1182,42 +1174,42 @@ exports.insertLayout = insertLayout;
|
|
|
1182
1174
|
|
|
1183
1175
|
/***/ }),
|
|
1184
1176
|
|
|
1185
|
-
/***/
|
|
1177
|
+
/***/ 27:
|
|
1186
1178
|
/***/ (function(module, exports) {
|
|
1187
1179
|
|
|
1188
1180
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
1189
1181
|
|
|
1190
1182
|
/***/ }),
|
|
1191
1183
|
|
|
1192
|
-
/***/
|
|
1184
|
+
/***/ 29:
|
|
1193
1185
|
/***/ (function(module, exports) {
|
|
1194
1186
|
|
|
1195
|
-
module.exports = require("
|
|
1187
|
+
module.exports = require("@splunk/themes/pick");
|
|
1196
1188
|
|
|
1197
1189
|
/***/ }),
|
|
1198
1190
|
|
|
1199
|
-
/***/
|
|
1191
|
+
/***/ 3:
|
|
1200
1192
|
/***/ (function(module, exports) {
|
|
1201
1193
|
|
|
1202
|
-
module.exports = require("@splunk/
|
|
1194
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
1203
1195
|
|
|
1204
1196
|
/***/ }),
|
|
1205
1197
|
|
|
1206
|
-
/***/
|
|
1198
|
+
/***/ 30:
|
|
1207
1199
|
/***/ (function(module, exports) {
|
|
1208
1200
|
|
|
1209
1201
|
module.exports = require("@splunk/ui-utils/id");
|
|
1210
1202
|
|
|
1211
1203
|
/***/ }),
|
|
1212
1204
|
|
|
1213
|
-
/***/
|
|
1205
|
+
/***/ 31:
|
|
1214
1206
|
/***/ (function(module, exports) {
|
|
1215
1207
|
|
|
1216
1208
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1217
1209
|
|
|
1218
1210
|
/***/ }),
|
|
1219
1211
|
|
|
1220
|
-
/***/
|
|
1212
|
+
/***/ 32:
|
|
1221
1213
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1222
1214
|
|
|
1223
1215
|
"use strict";
|
|
@@ -1227,7 +1219,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1227
1219
|
value: true
|
|
1228
1220
|
});
|
|
1229
1221
|
|
|
1230
|
-
var react_1 = __webpack_require__(
|
|
1222
|
+
var react_1 = __webpack_require__(1);
|
|
1231
1223
|
|
|
1232
1224
|
function usePrevious(value) {
|
|
1233
1225
|
var ref = (0, react_1.useRef)();
|
|
@@ -1241,28 +1233,28 @@ exports.default = usePrevious;
|
|
|
1241
1233
|
|
|
1242
1234
|
/***/ }),
|
|
1243
1235
|
|
|
1244
|
-
/***/
|
|
1236
|
+
/***/ 33:
|
|
1245
1237
|
/***/ (function(module, exports) {
|
|
1246
1238
|
|
|
1247
1239
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1248
1240
|
|
|
1249
1241
|
/***/ }),
|
|
1250
1242
|
|
|
1251
|
-
/***/
|
|
1243
|
+
/***/ 34:
|
|
1252
1244
|
/***/ (function(module, exports) {
|
|
1253
1245
|
|
|
1254
1246
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1255
1247
|
|
|
1256
1248
|
/***/ }),
|
|
1257
1249
|
|
|
1258
|
-
/***/
|
|
1250
|
+
/***/ 35:
|
|
1259
1251
|
/***/ (function(module, exports) {
|
|
1260
1252
|
|
|
1261
1253
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
1262
1254
|
|
|
1263
1255
|
/***/ }),
|
|
1264
1256
|
|
|
1265
|
-
/***/
|
|
1257
|
+
/***/ 36:
|
|
1266
1258
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1267
1259
|
|
|
1268
1260
|
"use strict";
|
|
@@ -1273,17 +1265,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1273
1265
|
});
|
|
1274
1266
|
exports.shouldShowIconPlaceholder = void 0;
|
|
1275
1267
|
|
|
1276
|
-
var React = __webpack_require__(
|
|
1268
|
+
var React = __webpack_require__(1);
|
|
1277
1269
|
|
|
1278
|
-
var T = __webpack_require__(
|
|
1270
|
+
var T = __webpack_require__(0);
|
|
1279
1271
|
|
|
1280
|
-
var lodash_1 = __webpack_require__(
|
|
1272
|
+
var lodash_1 = __webpack_require__(2);
|
|
1281
1273
|
|
|
1282
|
-
var i18n_1 = __webpack_require__(
|
|
1274
|
+
var i18n_1 = __webpack_require__(3);
|
|
1283
1275
|
|
|
1284
|
-
var Message_1 = __webpack_require__(
|
|
1276
|
+
var Message_1 = __webpack_require__(11);
|
|
1285
1277
|
|
|
1286
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1278
|
+
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
1287
1279
|
/**
|
|
1288
1280
|
* @method shouldShowIconPlaceholder
|
|
1289
1281
|
* @param {object} dataSources
|
|
@@ -1355,24 +1347,24 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
1355
1347
|
|
|
1356
1348
|
/***/ }),
|
|
1357
1349
|
|
|
1358
|
-
/***/
|
|
1350
|
+
/***/ 37:
|
|
1359
1351
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1360
1352
|
|
|
1361
1353
|
"use strict";
|
|
1362
1354
|
|
|
1363
1355
|
|
|
1364
|
-
var _defineProperty = __webpack_require__(
|
|
1356
|
+
var _defineProperty = __webpack_require__(12);
|
|
1365
1357
|
|
|
1366
1358
|
Object.defineProperty(exports, "__esModule", {
|
|
1367
1359
|
value: true
|
|
1368
1360
|
});
|
|
1369
1361
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1370
1362
|
|
|
1371
|
-
var T = __webpack_require__(
|
|
1363
|
+
var T = __webpack_require__(0);
|
|
1372
1364
|
|
|
1373
|
-
var lodash_1 = __webpack_require__(
|
|
1365
|
+
var lodash_1 = __webpack_require__(2);
|
|
1374
1366
|
|
|
1375
|
-
var DataSource_1 = __webpack_require__(
|
|
1367
|
+
var DataSource_1 = __webpack_require__(20);
|
|
1376
1368
|
|
|
1377
1369
|
exports.SortParamsPropTypes = T.shape({
|
|
1378
1370
|
currentSortKey: T.string,
|
|
@@ -1426,7 +1418,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1426
1418
|
|
|
1427
1419
|
/***/ }),
|
|
1428
1420
|
|
|
1429
|
-
/***/
|
|
1421
|
+
/***/ 38:
|
|
1430
1422
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1431
1423
|
|
|
1432
1424
|
"use strict";
|
|
@@ -1437,9 +1429,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1437
1429
|
});
|
|
1438
1430
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1439
1431
|
|
|
1440
|
-
var T = __webpack_require__(
|
|
1432
|
+
var T = __webpack_require__(0);
|
|
1441
1433
|
|
|
1442
|
-
var lodash_1 = __webpack_require__(
|
|
1434
|
+
var lodash_1 = __webpack_require__(2);
|
|
1443
1435
|
|
|
1444
1436
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1445
1437
|
isPaging: T.bool,
|
|
@@ -1491,14 +1483,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1491
1483
|
|
|
1492
1484
|
/***/ }),
|
|
1493
1485
|
|
|
1494
|
-
/***/
|
|
1495
|
-
/***/ (function(module, exports) {
|
|
1496
|
-
|
|
1497
|
-
module.exports = require("styled-components");
|
|
1498
|
-
|
|
1499
|
-
/***/ }),
|
|
1500
|
-
|
|
1501
|
-
/***/ 40:
|
|
1486
|
+
/***/ 39:
|
|
1502
1487
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1503
1488
|
|
|
1504
1489
|
"use strict";
|
|
@@ -1533,11 +1518,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1533
1518
|
value: true
|
|
1534
1519
|
});
|
|
1535
1520
|
|
|
1521
|
+
__exportStar(__webpack_require__(40), exports);
|
|
1522
|
+
|
|
1536
1523
|
__exportStar(__webpack_require__(41), exports);
|
|
1537
1524
|
|
|
1538
|
-
__exportStar(__webpack_require__(
|
|
1525
|
+
__exportStar(__webpack_require__(20), exports);
|
|
1539
1526
|
|
|
1540
|
-
__exportStar(__webpack_require__(
|
|
1527
|
+
__exportStar(__webpack_require__(42), exports);
|
|
1541
1528
|
|
|
1542
1529
|
__exportStar(__webpack_require__(43), exports);
|
|
1543
1530
|
|
|
@@ -1549,13 +1536,13 @@ __exportStar(__webpack_require__(46), exports);
|
|
|
1549
1536
|
|
|
1550
1537
|
__exportStar(__webpack_require__(47), exports);
|
|
1551
1538
|
|
|
1552
|
-
__exportStar(__webpack_require__(
|
|
1539
|
+
__exportStar(__webpack_require__(21), exports);
|
|
1553
1540
|
|
|
1554
|
-
__exportStar(__webpack_require__(
|
|
1541
|
+
__exportStar(__webpack_require__(7), exports);
|
|
1555
1542
|
|
|
1556
|
-
__exportStar(__webpack_require__(
|
|
1543
|
+
__exportStar(__webpack_require__(22), exports);
|
|
1557
1544
|
|
|
1558
|
-
__exportStar(__webpack_require__(
|
|
1545
|
+
__exportStar(__webpack_require__(48), exports);
|
|
1559
1546
|
|
|
1560
1547
|
__exportStar(__webpack_require__(49), exports);
|
|
1561
1548
|
|
|
@@ -1567,11 +1554,16 @@ __exportStar(__webpack_require__(52), exports);
|
|
|
1567
1554
|
|
|
1568
1555
|
__exportStar(__webpack_require__(53), exports);
|
|
1569
1556
|
|
|
1570
|
-
|
|
1557
|
+
/***/ }),
|
|
1558
|
+
|
|
1559
|
+
/***/ 4:
|
|
1560
|
+
/***/ (function(module, exports) {
|
|
1561
|
+
|
|
1562
|
+
module.exports = require("styled-components");
|
|
1571
1563
|
|
|
1572
1564
|
/***/ }),
|
|
1573
1565
|
|
|
1574
|
-
/***/
|
|
1566
|
+
/***/ 40:
|
|
1575
1567
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1576
1568
|
|
|
1577
1569
|
"use strict";
|
|
@@ -1583,7 +1575,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1583
1575
|
|
|
1584
1576
|
/***/ }),
|
|
1585
1577
|
|
|
1586
|
-
/***/
|
|
1578
|
+
/***/ 41:
|
|
1587
1579
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1588
1580
|
|
|
1589
1581
|
"use strict";
|
|
@@ -1592,6 +1584,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1592
1584
|
* A data structure used at runtime to wire up a visualization.
|
|
1593
1585
|
*/
|
|
1594
1586
|
|
|
1587
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1588
|
+
value: true
|
|
1589
|
+
});
|
|
1590
|
+
|
|
1591
|
+
/***/ }),
|
|
1592
|
+
|
|
1593
|
+
/***/ 42:
|
|
1594
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1595
|
+
|
|
1596
|
+
"use strict";
|
|
1597
|
+
|
|
1598
|
+
|
|
1595
1599
|
Object.defineProperty(exports, "__esModule", {
|
|
1596
1600
|
value: true
|
|
1597
1601
|
});
|
|
@@ -1634,7 +1638,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1634
1638
|
|
|
1635
1639
|
/***/ }),
|
|
1636
1640
|
|
|
1637
|
-
/***/
|
|
1641
|
+
/***/ 450:
|
|
1638
1642
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1639
1643
|
|
|
1640
1644
|
"use strict";
|
|
@@ -1670,9 +1674,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1670
1674
|
});
|
|
1671
1675
|
exports.default = void 0;
|
|
1672
1676
|
|
|
1673
|
-
__exportStar(__webpack_require__(
|
|
1677
|
+
__exportStar(__webpack_require__(182), exports);
|
|
1674
1678
|
|
|
1675
|
-
var Pie_1 = __webpack_require__(
|
|
1679
|
+
var Pie_1 = __webpack_require__(182);
|
|
1676
1680
|
|
|
1677
1681
|
Object.defineProperty(exports, "default", {
|
|
1678
1682
|
enumerable: true,
|
|
@@ -1683,7 +1687,7 @@ Object.defineProperty(exports, "default", {
|
|
|
1683
1687
|
|
|
1684
1688
|
/***/ }),
|
|
1685
1689
|
|
|
1686
|
-
/***/
|
|
1690
|
+
/***/ 451:
|
|
1687
1691
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1688
1692
|
|
|
1689
1693
|
"use strict";
|
|
@@ -1693,25 +1697,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1693
1697
|
value: true
|
|
1694
1698
|
});
|
|
1695
1699
|
|
|
1696
|
-
var ChartPie_1 = __webpack_require__(
|
|
1700
|
+
var ChartPie_1 = __webpack_require__(452);
|
|
1697
1701
|
|
|
1698
|
-
var placeholders_1 = __webpack_require__(
|
|
1702
|
+
var placeholders_1 = __webpack_require__(70);
|
|
1699
1703
|
|
|
1700
|
-
var i18n_1 = __webpack_require__(
|
|
1704
|
+
var i18n_1 = __webpack_require__(3);
|
|
1701
1705
|
|
|
1702
|
-
var visualization_schemas_1 = __webpack_require__(
|
|
1706
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1703
1707
|
|
|
1704
|
-
var pick_1 = __webpack_require__(
|
|
1708
|
+
var pick_1 = __webpack_require__(29);
|
|
1705
1709
|
|
|
1706
|
-
var variables_1 = __webpack_require__(
|
|
1710
|
+
var variables_1 = __webpack_require__(13);
|
|
1707
1711
|
|
|
1708
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1712
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
1709
1713
|
|
|
1710
|
-
var VizCategory_1 = __webpack_require__(
|
|
1714
|
+
var VizCategory_1 = __webpack_require__(22);
|
|
1711
1715
|
|
|
1712
|
-
var configUtils_1 = __webpack_require__(
|
|
1716
|
+
var configUtils_1 = __webpack_require__(26);
|
|
1713
1717
|
|
|
1714
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
1718
|
+
var BackgroundColor_1 = __webpack_require__(72);
|
|
1715
1719
|
|
|
1716
1720
|
var dataContract = {
|
|
1717
1721
|
requiredDataSources: [{
|
|
@@ -1806,6 +1810,10 @@ var editorConfig = [{
|
|
|
1806
1810
|
max: 1,
|
|
1807
1811
|
step: 0.01
|
|
1808
1812
|
}
|
|
1813
|
+
}], [{
|
|
1814
|
+
label: (0, i18n_1._)('Exclude zeros in the collapsed slice'),
|
|
1815
|
+
option: 'collapseExcludeZero',
|
|
1816
|
+
editor: 'editor.toggle'
|
|
1809
1817
|
}], [{
|
|
1810
1818
|
label: (0, i18n_1._)('Collapsed slice label'),
|
|
1811
1819
|
option: 'collapseLabel',
|
|
@@ -1859,26 +1867,14 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
|
1859
1867
|
|
|
1860
1868
|
/***/ }),
|
|
1861
1869
|
|
|
1862
|
-
/***/
|
|
1863
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1864
|
-
|
|
1865
|
-
"use strict";
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1869
|
-
value: true
|
|
1870
|
-
});
|
|
1871
|
-
|
|
1872
|
-
/***/ }),
|
|
1873
|
-
|
|
1874
|
-
/***/ 460:
|
|
1870
|
+
/***/ 452:
|
|
1875
1871
|
/***/ (function(module, exports) {
|
|
1876
1872
|
|
|
1877
1873
|
module.exports = require("@splunk/react-icons/enterprise/ChartPie");
|
|
1878
1874
|
|
|
1879
1875
|
/***/ }),
|
|
1880
1876
|
|
|
1881
|
-
/***/
|
|
1877
|
+
/***/ 453:
|
|
1882
1878
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1883
1879
|
|
|
1884
1880
|
"use strict";
|
|
@@ -1900,17 +1896,17 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
1900
1896
|
Object.defineProperty(exports, "__esModule", {
|
|
1901
1897
|
value: true
|
|
1902
1898
|
});
|
|
1903
|
-
exports.allInvalidDataValues = exports.invalidOptionField = exports.getPieOptionFieldIndex = exports.getPieMergedOptions = exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay = exports.convertToStringValues = void 0;
|
|
1899
|
+
exports.removeColumnsThatOnlyContain0s = exports.allInvalidDataValues = exports.invalidOptionField = exports.getPieOptionFieldIndex = exports.getPieMergedOptions = exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay = exports.convertToStringValues = void 0;
|
|
1904
1900
|
|
|
1905
|
-
var lodash_1 = __webpack_require__(
|
|
1901
|
+
var lodash_1 = __webpack_require__(2);
|
|
1906
1902
|
|
|
1907
|
-
var propUtils_1 = __webpack_require__(
|
|
1903
|
+
var propUtils_1 = __webpack_require__(35);
|
|
1908
1904
|
|
|
1909
|
-
var dsl_1 = __webpack_require__(
|
|
1905
|
+
var dsl_1 = __webpack_require__(151);
|
|
1910
1906
|
|
|
1911
|
-
var hocUtils_1 = __webpack_require__(
|
|
1907
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
1912
1908
|
|
|
1913
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1909
|
+
var JSONSchemaUtils_1 = __webpack_require__(34); // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
|
|
1914
1910
|
// map for key names which are either new or not present in SimpleXML options mapping
|
|
1915
1911
|
|
|
1916
1912
|
|
|
@@ -2068,9 +2064,31 @@ var allInvalidDataValues = function allInvalidDataValues(dataSources, options, v
|
|
|
2068
2064
|
|
|
2069
2065
|
exports.allInvalidDataValues = allInvalidDataValues;
|
|
2070
2066
|
|
|
2067
|
+
var removeColumnsThatOnlyContain0s = function removeColumnsThatOnlyContain0s(seriesList) {
|
|
2068
|
+
var names = seriesList[0];
|
|
2069
|
+
var values = seriesList[1];
|
|
2070
|
+
var returnSeriesList = [[], []];
|
|
2071
|
+
|
|
2072
|
+
if (!Array.isArray(seriesList) || !Array.isArray(names) || !Array.isArray(values)) {
|
|
2073
|
+
return seriesList;
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
values.map(function (value) {
|
|
2077
|
+
return +value !== 0 && !Number.isNaN(Number(value));
|
|
2078
|
+
}).forEach(function (b, i) {
|
|
2079
|
+
if (b) {
|
|
2080
|
+
returnSeriesList[0].push(names[i]);
|
|
2081
|
+
returnSeriesList[1].push(values[i]);
|
|
2082
|
+
}
|
|
2083
|
+
});
|
|
2084
|
+
return returnSeriesList;
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2087
|
+
exports.removeColumnsThatOnlyContain0s = removeColumnsThatOnlyContain0s;
|
|
2088
|
+
|
|
2071
2089
|
/***/ }),
|
|
2072
2090
|
|
|
2073
|
-
/***/
|
|
2091
|
+
/***/ 46:
|
|
2074
2092
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2075
2093
|
|
|
2076
2094
|
"use strict";
|
|
@@ -2082,7 +2100,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2082
2100
|
|
|
2083
2101
|
/***/ }),
|
|
2084
2102
|
|
|
2085
|
-
/***/
|
|
2103
|
+
/***/ 47:
|
|
2086
2104
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2087
2105
|
|
|
2088
2106
|
"use strict";
|
|
@@ -2094,7 +2112,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2094
2112
|
|
|
2095
2113
|
/***/ }),
|
|
2096
2114
|
|
|
2097
|
-
/***/
|
|
2115
|
+
/***/ 48:
|
|
2098
2116
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2099
2117
|
|
|
2100
2118
|
"use strict";
|
|
@@ -2106,7 +2124,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2106
2124
|
|
|
2107
2125
|
/***/ }),
|
|
2108
2126
|
|
|
2109
|
-
/***/
|
|
2127
|
+
/***/ 49:
|
|
2110
2128
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2111
2129
|
|
|
2112
2130
|
"use strict";
|
|
@@ -2118,7 +2136,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2118
2136
|
|
|
2119
2137
|
/***/ }),
|
|
2120
2138
|
|
|
2121
|
-
/***/
|
|
2139
|
+
/***/ 5:
|
|
2140
|
+
/***/ (function(module, exports) {
|
|
2141
|
+
|
|
2142
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
2143
|
+
|
|
2144
|
+
/***/ }),
|
|
2145
|
+
|
|
2146
|
+
/***/ 50:
|
|
2122
2147
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2123
2148
|
|
|
2124
2149
|
"use strict";
|
|
@@ -2130,7 +2155,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2130
2155
|
|
|
2131
2156
|
/***/ }),
|
|
2132
2157
|
|
|
2133
|
-
/***/
|
|
2158
|
+
/***/ 51:
|
|
2134
2159
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2135
2160
|
|
|
2136
2161
|
"use strict";
|
|
@@ -2142,7 +2167,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2142
2167
|
|
|
2143
2168
|
/***/ }),
|
|
2144
2169
|
|
|
2145
|
-
/***/
|
|
2170
|
+
/***/ 52:
|
|
2146
2171
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2147
2172
|
|
|
2148
2173
|
"use strict";
|
|
@@ -2154,7 +2179,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2154
2179
|
|
|
2155
2180
|
/***/ }),
|
|
2156
2181
|
|
|
2157
|
-
/***/
|
|
2182
|
+
/***/ 53:
|
|
2158
2183
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2159
2184
|
|
|
2160
2185
|
"use strict";
|
|
@@ -2166,65 +2191,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2166
2191
|
|
|
2167
2192
|
/***/ }),
|
|
2168
2193
|
|
|
2169
|
-
/***/
|
|
2194
|
+
/***/ 54:
|
|
2170
2195
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2171
2196
|
|
|
2172
2197
|
"use strict";
|
|
2173
2198
|
|
|
2174
2199
|
|
|
2175
|
-
var _slicedToArray = __webpack_require__(
|
|
2200
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2176
2201
|
|
|
2177
2202
|
Object.defineProperty(exports, "__esModule", {
|
|
2178
2203
|
value: true
|
|
2179
2204
|
});
|
|
2180
2205
|
|
|
2181
|
-
var React = __webpack_require__(
|
|
2206
|
+
var React = __webpack_require__(1);
|
|
2182
2207
|
|
|
2183
|
-
var lodash_1 = __webpack_require__(
|
|
2208
|
+
var lodash_1 = __webpack_require__(2);
|
|
2184
2209
|
|
|
2185
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
2210
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(55);
|
|
2186
2211
|
|
|
2187
|
-
var Options_1 = __webpack_require__(
|
|
2212
|
+
var Options_1 = __webpack_require__(16);
|
|
2188
2213
|
|
|
2189
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
2214
|
+
var SanitizeProps_1 = __webpack_require__(56);
|
|
2190
2215
|
|
|
2191
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2216
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
2192
2217
|
|
|
2193
|
-
var moment_1 = __webpack_require__(
|
|
2218
|
+
var moment_1 = __webpack_require__(57);
|
|
2194
2219
|
|
|
2195
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
2220
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
2196
2221
|
|
|
2197
2222
|
var styled_components_1 = __webpack_require__(4);
|
|
2198
2223
|
|
|
2199
|
-
var hocUtils_1 = __webpack_require__(
|
|
2224
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
2200
2225
|
|
|
2201
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
2226
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
2202
2227
|
|
|
2203
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
2228
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(58);
|
|
2204
2229
|
|
|
2205
|
-
var id_1 = __webpack_require__(
|
|
2230
|
+
var id_1 = __webpack_require__(30);
|
|
2206
2231
|
|
|
2207
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
2232
|
+
var SplunkVisualization_1 = __webpack_require__(59);
|
|
2208
2233
|
|
|
2209
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2234
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
2210
2235
|
|
|
2211
|
-
var getSorting_1 = __webpack_require__(
|
|
2236
|
+
var getSorting_1 = __webpack_require__(37);
|
|
2212
2237
|
|
|
2213
|
-
var getPagination_1 = __webpack_require__(
|
|
2238
|
+
var getPagination_1 = __webpack_require__(38);
|
|
2214
2239
|
|
|
2215
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
2240
|
+
var useDeepMemo_1 = __webpack_require__(60);
|
|
2216
2241
|
|
|
2217
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
2242
|
+
var MissingPropsMessage_1 = __webpack_require__(61);
|
|
2218
2243
|
|
|
2219
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
2244
|
+
var withEditModeCover_1 = __webpack_require__(62);
|
|
2220
2245
|
|
|
2221
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
2246
|
+
var withPlaceholder_1 = __webpack_require__(63);
|
|
2222
2247
|
|
|
2223
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
2248
|
+
var useDownsampleDataSources_1 = __webpack_require__(64);
|
|
2224
2249
|
|
|
2225
|
-
var dataUtils_1 = __webpack_require__(
|
|
2250
|
+
var dataUtils_1 = __webpack_require__(14);
|
|
2226
2251
|
|
|
2227
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
2252
|
+
var featureFlagUtils_1 = __webpack_require__(66);
|
|
2228
2253
|
/**
|
|
2229
2254
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
2230
2255
|
* @param {DashboardVizOpts} opts
|
|
@@ -2557,48 +2582,41 @@ exports.default = withDashboardViz;
|
|
|
2557
2582
|
|
|
2558
2583
|
/***/ }),
|
|
2559
2584
|
|
|
2560
|
-
/***/
|
|
2585
|
+
/***/ 55:
|
|
2561
2586
|
/***/ (function(module, exports) {
|
|
2562
2587
|
|
|
2563
2588
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2564
2589
|
|
|
2565
2590
|
/***/ }),
|
|
2566
2591
|
|
|
2567
|
-
/***/
|
|
2592
|
+
/***/ 56:
|
|
2568
2593
|
/***/ (function(module, exports) {
|
|
2569
2594
|
|
|
2570
2595
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2571
2596
|
|
|
2572
2597
|
/***/ }),
|
|
2573
2598
|
|
|
2574
|
-
/***/
|
|
2599
|
+
/***/ 57:
|
|
2575
2600
|
/***/ (function(module, exports) {
|
|
2576
2601
|
|
|
2577
2602
|
module.exports = require("@splunk/moment");
|
|
2578
2603
|
|
|
2579
2604
|
/***/ }),
|
|
2580
2605
|
|
|
2581
|
-
/***/
|
|
2606
|
+
/***/ 58:
|
|
2582
2607
|
/***/ (function(module, exports) {
|
|
2583
2608
|
|
|
2584
2609
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2585
2610
|
|
|
2586
2611
|
/***/ }),
|
|
2587
2612
|
|
|
2588
|
-
/***/
|
|
2589
|
-
/***/ (function(module, exports) {
|
|
2590
|
-
|
|
2591
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
2592
|
-
|
|
2593
|
-
/***/ }),
|
|
2594
|
-
|
|
2595
|
-
/***/ 60:
|
|
2613
|
+
/***/ 59:
|
|
2596
2614
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2597
2615
|
|
|
2598
2616
|
"use strict";
|
|
2599
2617
|
|
|
2600
2618
|
|
|
2601
|
-
var _classCallCheck = __webpack_require__(
|
|
2619
|
+
var _classCallCheck = __webpack_require__(8);
|
|
2602
2620
|
|
|
2603
2621
|
Object.defineProperty(exports, "__esModule", {
|
|
2604
2622
|
value: true
|
|
@@ -2606,11 +2624,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2606
2624
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
2607
2625
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
2608
2626
|
|
|
2609
|
-
var T = __webpack_require__(
|
|
2627
|
+
var T = __webpack_require__(0);
|
|
2610
2628
|
|
|
2611
|
-
var lodash_1 = __webpack_require__(
|
|
2629
|
+
var lodash_1 = __webpack_require__(2);
|
|
2612
2630
|
|
|
2613
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2631
|
+
var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2614
2632
|
|
|
2615
2633
|
|
|
2616
2634
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2744,7 +2762,14 @@ exports.default = SplunkVisualization;
|
|
|
2744
2762
|
|
|
2745
2763
|
/***/ }),
|
|
2746
2764
|
|
|
2747
|
-
/***/
|
|
2765
|
+
/***/ 6:
|
|
2766
|
+
/***/ (function(module, exports) {
|
|
2767
|
+
|
|
2768
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
2769
|
+
|
|
2770
|
+
/***/ }),
|
|
2771
|
+
|
|
2772
|
+
/***/ 60:
|
|
2748
2773
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2749
2774
|
|
|
2750
2775
|
"use strict";
|
|
@@ -2755,9 +2780,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2755
2780
|
});
|
|
2756
2781
|
exports.useDeepMemo = void 0;
|
|
2757
2782
|
|
|
2758
|
-
var react_1 = __webpack_require__(
|
|
2783
|
+
var react_1 = __webpack_require__(1);
|
|
2759
2784
|
|
|
2760
|
-
var lodash_1 = __webpack_require__(
|
|
2785
|
+
var lodash_1 = __webpack_require__(2);
|
|
2761
2786
|
/**
|
|
2762
2787
|
* This hook evaluates and stores the result of a passed function and only
|
|
2763
2788
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -2790,7 +2815,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
2790
2815
|
|
|
2791
2816
|
/***/ }),
|
|
2792
2817
|
|
|
2793
|
-
/***/
|
|
2818
|
+
/***/ 61:
|
|
2794
2819
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2795
2820
|
|
|
2796
2821
|
"use strict";
|
|
@@ -2801,15 +2826,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2801
2826
|
});
|
|
2802
2827
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
2803
2828
|
|
|
2804
|
-
var React = __webpack_require__(
|
|
2829
|
+
var React = __webpack_require__(1);
|
|
2805
2830
|
|
|
2806
|
-
var T = __webpack_require__(
|
|
2831
|
+
var T = __webpack_require__(0);
|
|
2807
2832
|
|
|
2808
|
-
var i18n_1 = __webpack_require__(
|
|
2833
|
+
var i18n_1 = __webpack_require__(3);
|
|
2809
2834
|
|
|
2810
|
-
var Message_1 = __webpack_require__(
|
|
2835
|
+
var Message_1 = __webpack_require__(11);
|
|
2811
2836
|
|
|
2812
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2837
|
+
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
2813
2838
|
/**
|
|
2814
2839
|
* @method isMissing
|
|
2815
2840
|
* @param {any} v
|
|
@@ -2871,7 +2896,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
|
|
|
2871
2896
|
|
|
2872
2897
|
/***/ }),
|
|
2873
2898
|
|
|
2874
|
-
/***/
|
|
2899
|
+
/***/ 62:
|
|
2875
2900
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2876
2901
|
|
|
2877
2902
|
"use strict";
|
|
@@ -2881,18 +2906,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2881
2906
|
value: true
|
|
2882
2907
|
});
|
|
2883
2908
|
|
|
2884
|
-
var React = __webpack_require__(
|
|
2909
|
+
var React = __webpack_require__(1);
|
|
2885
2910
|
|
|
2886
2911
|
var styled_components_1 = __webpack_require__(4);
|
|
2887
2912
|
|
|
2888
|
-
var hocUtils_1 = __webpack_require__(
|
|
2913
|
+
var hocUtils_1 = __webpack_require__(23);
|
|
2889
2914
|
|
|
2890
2915
|
var Cover = styled_components_1.default.div.withConfig({
|
|
2891
2916
|
displayName: "withEditModeCover__Cover",
|
|
2892
2917
|
componentId: "sc-1gsbnxb-0"
|
|
2893
2918
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2894
2919
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2895
|
-
'data-splunk-visualization-version': "26.
|
|
2920
|
+
'data-splunk-visualization-version': "26.4.1 - 2b7482c08"
|
|
2896
2921
|
}).withConfig({
|
|
2897
2922
|
displayName: "withEditModeCover__Blocker",
|
|
2898
2923
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2924,7 +2949,7 @@ exports.default = withEditModeCover;
|
|
|
2924
2949
|
|
|
2925
2950
|
/***/ }),
|
|
2926
2951
|
|
|
2927
|
-
/***/
|
|
2952
|
+
/***/ 63:
|
|
2928
2953
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2929
2954
|
|
|
2930
2955
|
"use strict";
|
|
@@ -2934,17 +2959,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2934
2959
|
value: true
|
|
2935
2960
|
});
|
|
2936
2961
|
|
|
2937
|
-
var React = __webpack_require__(
|
|
2962
|
+
var React = __webpack_require__(1);
|
|
2938
2963
|
|
|
2939
|
-
var colorUtils_1 = __webpack_require__(
|
|
2964
|
+
var colorUtils_1 = __webpack_require__(15);
|
|
2940
2965
|
|
|
2941
|
-
var variables_1 = __webpack_require__(
|
|
2966
|
+
var variables_1 = __webpack_require__(13);
|
|
2942
2967
|
|
|
2943
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2968
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
2944
2969
|
|
|
2945
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2970
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
2946
2971
|
|
|
2947
|
-
var hocUtils_1 = __webpack_require__(
|
|
2972
|
+
var hocUtils_1 = __webpack_require__(23);
|
|
2948
2973
|
|
|
2949
2974
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2950
2975
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -2989,27 +3014,30 @@ exports.default = withPlaceholder;
|
|
|
2989
3014
|
|
|
2990
3015
|
/***/ }),
|
|
2991
3016
|
|
|
2992
|
-
/***/
|
|
3017
|
+
/***/ 64:
|
|
2993
3018
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2994
3019
|
|
|
2995
3020
|
"use strict";
|
|
2996
3021
|
|
|
2997
3022
|
|
|
2998
|
-
var _slicedToArray = __webpack_require__(
|
|
3023
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2999
3024
|
|
|
3000
3025
|
Object.defineProperty(exports, "__esModule", {
|
|
3001
3026
|
value: true
|
|
3002
3027
|
});
|
|
3003
3028
|
|
|
3004
|
-
var react_1 = __webpack_require__(
|
|
3029
|
+
var react_1 = __webpack_require__(1);
|
|
3030
|
+
|
|
3031
|
+
var lodash_1 = __webpack_require__(2);
|
|
3005
3032
|
|
|
3006
|
-
var
|
|
3033
|
+
var dataUtils_1 = __webpack_require__(14);
|
|
3007
3034
|
|
|
3008
|
-
var
|
|
3035
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
3009
3036
|
|
|
3010
|
-
var
|
|
3037
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
3011
3038
|
|
|
3012
|
-
|
|
3039
|
+
|
|
3040
|
+
var downsampleVizOptionProperties = ['nullValueDisplay'];
|
|
3013
3041
|
|
|
3014
3042
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
3015
3043
|
var dataSources = _ref.dataSources,
|
|
@@ -3023,8 +3051,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3023
3051
|
options: options,
|
|
3024
3052
|
context: context,
|
|
3025
3053
|
dataSources: dataSources
|
|
3026
|
-
});
|
|
3027
|
-
|
|
3054
|
+
}); // Extract viz options that impact downsampling.
|
|
3055
|
+
|
|
3056
|
+
var downsampleVizOptions = (0, react_1.useMemo)(function () {
|
|
3057
|
+
return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
|
|
3058
|
+
}, [options]);
|
|
3059
|
+
var downsampleDSOptions = (0, react_1.useMemo)(function () {
|
|
3060
|
+
return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
|
|
3061
|
+
}, [xAndYFieldsWithTypes, downsampleVizOptions]);
|
|
3062
|
+
var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
|
|
3028
3063
|
var previousDataSources = (0, usePrevious_1.default)(dataSources);
|
|
3029
3064
|
var previousThreshold = (0, usePrevious_1.default)(threshold);
|
|
3030
3065
|
|
|
@@ -3032,7 +3067,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3032
3067
|
return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
|
|
3033
3068
|
dataSources: dataSources,
|
|
3034
3069
|
threshold: threshold,
|
|
3035
|
-
options:
|
|
3070
|
+
options: downsampleDSOptions
|
|
3036
3071
|
}) : dataSources;
|
|
3037
3072
|
}),
|
|
3038
3073
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -3060,7 +3095,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3060
3095
|
return;
|
|
3061
3096
|
}
|
|
3062
3097
|
|
|
3063
|
-
if ((0, lodash_1.isEqual)(
|
|
3098
|
+
if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
|
|
3064
3099
|
return;
|
|
3065
3100
|
} // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
|
|
3066
3101
|
// while the viz is being resized
|
|
@@ -3068,10 +3103,10 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3068
3103
|
|
|
3069
3104
|
debouncedDownsampleDataSources({
|
|
3070
3105
|
dataSources: dataSources,
|
|
3071
|
-
options:
|
|
3106
|
+
options: downsampleDSOptions,
|
|
3072
3107
|
threshold: threshold
|
|
3073
3108
|
}); // need to detect if this runs as part of the initial render
|
|
3074
|
-
}, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled,
|
|
3109
|
+
}, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
|
|
3075
3110
|
return downsampledDataSources;
|
|
3076
3111
|
};
|
|
3077
3112
|
|
|
@@ -3079,21 +3114,21 @@ exports.default = useDownsampleDataSources;
|
|
|
3079
3114
|
|
|
3080
3115
|
/***/ }),
|
|
3081
3116
|
|
|
3082
|
-
/***/
|
|
3117
|
+
/***/ 65:
|
|
3083
3118
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3084
3119
|
|
|
3085
3120
|
"use strict";
|
|
3086
3121
|
|
|
3087
3122
|
|
|
3088
|
-
var _toConsumableArray = __webpack_require__(
|
|
3123
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
3089
3124
|
|
|
3090
3125
|
Object.defineProperty(exports, "__esModule", {
|
|
3091
3126
|
value: true
|
|
3092
3127
|
});
|
|
3093
3128
|
|
|
3094
|
-
var react_1 = __webpack_require__(
|
|
3129
|
+
var react_1 = __webpack_require__(1);
|
|
3095
3130
|
|
|
3096
|
-
var Options_1 = __webpack_require__(
|
|
3131
|
+
var Options_1 = __webpack_require__(16);
|
|
3097
3132
|
/**
|
|
3098
3133
|
* Hook that evaluates the DSL for subset of a viz's options needed to determine
|
|
3099
3134
|
* its x and y fields as well as the types of all its fields.
|
|
@@ -3194,7 +3229,7 @@ exports.default = useGetXAndYFields;
|
|
|
3194
3229
|
|
|
3195
3230
|
/***/ }),
|
|
3196
3231
|
|
|
3197
|
-
/***/
|
|
3232
|
+
/***/ 66:
|
|
3198
3233
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3199
3234
|
|
|
3200
3235
|
"use strict";
|
|
@@ -3205,7 +3240,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3205
3240
|
});
|
|
3206
3241
|
exports.getFeatureFlag = void 0;
|
|
3207
3242
|
|
|
3208
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
3243
|
+
var FeatureFlags_1 = __webpack_require__(67);
|
|
3209
3244
|
|
|
3210
3245
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
3211
3246
|
// look for feature flag in context first
|
|
@@ -3230,7 +3265,7 @@ exports.getFeatureFlag = getFeatureFlag;
|
|
|
3230
3265
|
|
|
3231
3266
|
/***/ }),
|
|
3232
3267
|
|
|
3233
|
-
/***/
|
|
3268
|
+
/***/ 67:
|
|
3234
3269
|
/***/ (function(module, exports) {
|
|
3235
3270
|
|
|
3236
3271
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
@@ -3238,20 +3273,53 @@ module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
|
3238
3273
|
/***/ }),
|
|
3239
3274
|
|
|
3240
3275
|
/***/ 7:
|
|
3241
|
-
/***/ (function(module, exports) {
|
|
3276
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3242
3277
|
|
|
3243
|
-
|
|
3278
|
+
"use strict";
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3282
|
+
value: true
|
|
3283
|
+
});
|
|
3284
|
+
exports.VizBehavior = void 0;
|
|
3285
|
+
var VizBehavior;
|
|
3286
|
+
|
|
3287
|
+
(function (VizBehavior) {
|
|
3288
|
+
/**
|
|
3289
|
+
* Dynamic Options Behavior.
|
|
3290
|
+
* This allows visualization options to be powered by data
|
|
3291
|
+
*
|
|
3292
|
+
* **Example**
|
|
3293
|
+
*
|
|
3294
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
3295
|
+
* would configure sparklineValues with an array of data points
|
|
3296
|
+
* coming from the first series in the primary datasource
|
|
3297
|
+
*
|
|
3298
|
+
*/
|
|
3299
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
3300
|
+
VizBehavior["EVENTS"] = "events";
|
|
3301
|
+
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
3302
|
+
/**
|
|
3303
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
3304
|
+
* missing.
|
|
3305
|
+
* @type {string}
|
|
3306
|
+
*/
|
|
3307
|
+
|
|
3308
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
3309
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3310
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
3311
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3244
3312
|
|
|
3245
3313
|
/***/ }),
|
|
3246
3314
|
|
|
3247
|
-
/***/
|
|
3315
|
+
/***/ 70:
|
|
3248
3316
|
/***/ (function(module, exports) {
|
|
3249
3317
|
|
|
3250
3318
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3251
3319
|
|
|
3252
3320
|
/***/ }),
|
|
3253
3321
|
|
|
3254
|
-
/***/
|
|
3322
|
+
/***/ 72:
|
|
3255
3323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3256
3324
|
|
|
3257
3325
|
"use strict";
|
|
@@ -3261,14 +3329,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3261
3329
|
value: true
|
|
3262
3330
|
});
|
|
3263
3331
|
|
|
3264
|
-
var i18n_1 = __webpack_require__(
|
|
3332
|
+
var i18n_1 = __webpack_require__(3);
|
|
3265
3333
|
|
|
3266
3334
|
var background = function background(_ref) {
|
|
3267
3335
|
var label = _ref.label,
|
|
3268
3336
|
themes = _ref.themes,
|
|
3269
3337
|
labelPosition = _ref.labelPosition;
|
|
3270
3338
|
return [{
|
|
3271
|
-
label: (0, i18n_1._)(label || 'Background'),
|
|
3339
|
+
label: (0, i18n_1._)(label || 'Background color'),
|
|
3272
3340
|
option: 'backgroundColor',
|
|
3273
3341
|
editor: 'editor.color',
|
|
3274
3342
|
editorProps: {
|
|
@@ -3282,34 +3350,34 @@ exports.default = background;
|
|
|
3282
3350
|
|
|
3283
3351
|
/***/ }),
|
|
3284
3352
|
|
|
3285
|
-
/***/
|
|
3353
|
+
/***/ 74:
|
|
3286
3354
|
/***/ (function(module, exports) {
|
|
3287
3355
|
|
|
3288
3356
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
3289
3357
|
|
|
3290
3358
|
/***/ }),
|
|
3291
3359
|
|
|
3292
|
-
/***/
|
|
3360
|
+
/***/ 75:
|
|
3293
3361
|
/***/ (function(module, exports) {
|
|
3294
3362
|
|
|
3295
3363
|
module.exports = require("@splunk/charting-bundle");
|
|
3296
3364
|
|
|
3297
3365
|
/***/ }),
|
|
3298
3366
|
|
|
3299
|
-
/***/
|
|
3367
|
+
/***/ 76:
|
|
3300
3368
|
/***/ (function(module, exports) {
|
|
3301
3369
|
|
|
3302
3370
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
3303
3371
|
|
|
3304
3372
|
/***/ }),
|
|
3305
3373
|
|
|
3306
|
-
/***/
|
|
3374
|
+
/***/ 77:
|
|
3307
3375
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3308
3376
|
|
|
3309
3377
|
"use strict";
|
|
3310
3378
|
|
|
3311
3379
|
|
|
3312
|
-
var _toConsumableArray = __webpack_require__(
|
|
3380
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
3313
3381
|
|
|
3314
3382
|
var __rest = this && this.__rest || function (s, e) {
|
|
3315
3383
|
var t = {};
|
|
@@ -3329,7 +3397,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3329
3397
|
});
|
|
3330
3398
|
exports.shouldEnableSearchZoom = exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
|
|
3331
3399
|
|
|
3332
|
-
var lodash_1 = __webpack_require__(
|
|
3400
|
+
var lodash_1 = __webpack_require__(2);
|
|
3333
3401
|
/**
|
|
3334
3402
|
* Get formatted annotations
|
|
3335
3403
|
* @method getAnnotations
|
|
@@ -3542,46 +3610,13 @@ exports.shouldEnableSearchZoom = shouldEnableSearchZoom;
|
|
|
3542
3610
|
/***/ }),
|
|
3543
3611
|
|
|
3544
3612
|
/***/ 8:
|
|
3545
|
-
/***/ (function(module, exports
|
|
3546
|
-
|
|
3547
|
-
"use strict";
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3551
|
-
value: true
|
|
3552
|
-
});
|
|
3553
|
-
exports.VizBehavior = void 0;
|
|
3554
|
-
var VizBehavior;
|
|
3555
|
-
|
|
3556
|
-
(function (VizBehavior) {
|
|
3557
|
-
/**
|
|
3558
|
-
* Dynamic Options Behavior.
|
|
3559
|
-
* This allows visualization options to be powered by data
|
|
3560
|
-
*
|
|
3561
|
-
* **Example**
|
|
3562
|
-
*
|
|
3563
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
3564
|
-
* would configure sparklineValues with an array of data points
|
|
3565
|
-
* coming from the first series in the primary datasource
|
|
3566
|
-
*
|
|
3567
|
-
*/
|
|
3568
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
3569
|
-
VizBehavior["EVENTS"] = "events";
|
|
3570
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
3571
|
-
/**
|
|
3572
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
3573
|
-
* missing.
|
|
3574
|
-
* @type {string}
|
|
3575
|
-
*/
|
|
3613
|
+
/***/ (function(module, exports) {
|
|
3576
3614
|
|
|
3577
|
-
|
|
3578
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3579
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
3580
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3615
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
3581
3616
|
|
|
3582
3617
|
/***/ }),
|
|
3583
3618
|
|
|
3584
|
-
/***/
|
|
3619
|
+
/***/ 84:
|
|
3585
3620
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3586
3621
|
|
|
3587
3622
|
"use strict";
|
|
@@ -3593,44 +3628,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3593
3628
|
exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
|
|
3594
3629
|
/* eslint-disable react/no-unused-prop-types */
|
|
3595
3630
|
|
|
3596
|
-
var lodash_1 = __webpack_require__(
|
|
3631
|
+
var lodash_1 = __webpack_require__(2);
|
|
3597
3632
|
|
|
3598
|
-
var i18n_1 = __webpack_require__(
|
|
3633
|
+
var i18n_1 = __webpack_require__(3);
|
|
3599
3634
|
|
|
3600
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3635
|
+
var visualization_color_palettes_1 = __webpack_require__(74);
|
|
3601
3636
|
|
|
3602
|
-
var react_1 = __webpack_require__(
|
|
3637
|
+
var react_1 = __webpack_require__(1);
|
|
3603
3638
|
|
|
3604
|
-
var React = __webpack_require__(
|
|
3639
|
+
var React = __webpack_require__(1);
|
|
3605
3640
|
|
|
3606
|
-
var T = __webpack_require__(
|
|
3641
|
+
var T = __webpack_require__(0);
|
|
3607
3642
|
|
|
3608
|
-
var react_event_listener_1 = __webpack_require__(
|
|
3643
|
+
var react_event_listener_1 = __webpack_require__(85);
|
|
3609
3644
|
|
|
3610
|
-
__webpack_require__(
|
|
3645
|
+
__webpack_require__(86); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
3611
3646
|
|
|
3612
3647
|
|
|
3613
|
-
var charting_bundle_1 = __webpack_require__(
|
|
3648
|
+
var charting_bundle_1 = __webpack_require__(75);
|
|
3614
3649
|
|
|
3615
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
3650
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
3616
3651
|
|
|
3617
|
-
var style_1 = __webpack_require__(
|
|
3652
|
+
var style_1 = __webpack_require__(18);
|
|
3618
3653
|
|
|
3619
3654
|
var styled_components_1 = __webpack_require__(4);
|
|
3620
3655
|
|
|
3621
|
-
var Message_1 = __webpack_require__(
|
|
3656
|
+
var Message_1 = __webpack_require__(11);
|
|
3622
3657
|
|
|
3623
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
3658
|
+
var useSplunkTheme_1 = __webpack_require__(76);
|
|
3624
3659
|
|
|
3625
|
-
var themeUtils_1 = __webpack_require__(
|
|
3660
|
+
var themeUtils_1 = __webpack_require__(87);
|
|
3626
3661
|
|
|
3627
|
-
var ChartingApi_1 = __webpack_require__(
|
|
3662
|
+
var ChartingApi_1 = __webpack_require__(88);
|
|
3628
3663
|
|
|
3629
|
-
var usePrevious_1 = __webpack_require__(
|
|
3664
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
3630
3665
|
|
|
3631
|
-
var useEventCallback_1 = __webpack_require__(
|
|
3666
|
+
var useEventCallback_1 = __webpack_require__(89);
|
|
3632
3667
|
|
|
3633
|
-
var dataUtils_1 = __webpack_require__(
|
|
3668
|
+
var dataUtils_1 = __webpack_require__(14);
|
|
3634
3669
|
|
|
3635
3670
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
3636
3671
|
|
|
@@ -3755,8 +3790,7 @@ var Charting = function Charting(props) {
|
|
|
3755
3790
|
onEventTrigger = props.onEventTrigger,
|
|
3756
3791
|
originalDataSources = props.originalDataSources,
|
|
3757
3792
|
onDownsamplingThresholdChange = props.onDownsamplingThresholdChange,
|
|
3758
|
-
xField = props.xField
|
|
3759
|
-
y2Fields = props.y2Fields;
|
|
3793
|
+
xField = props.xField;
|
|
3760
3794
|
var prevOptions = (0, usePrevious_1.default)(options);
|
|
3761
3795
|
var prevTimezone = (0, usePrevious_1.default)(timezone);
|
|
3762
3796
|
|
|
@@ -3799,14 +3833,13 @@ var Charting = function Charting(props) {
|
|
|
3799
3833
|
dataSources: originalDataSources,
|
|
3800
3834
|
width: Number(width),
|
|
3801
3835
|
selectChartEvent: selectChartEvent.current,
|
|
3802
|
-
xField: xField
|
|
3803
|
-
y2Fields: y2Fields
|
|
3836
|
+
xField: xField
|
|
3804
3837
|
});
|
|
3805
3838
|
|
|
3806
3839
|
if (Number.isFinite(newThreshold)) {
|
|
3807
3840
|
onDownsamplingThresholdChange(newThreshold);
|
|
3808
3841
|
}
|
|
3809
|
-
}, [enableSearchZoom, originalDataSources, onDownsamplingThresholdChange, width, xField
|
|
3842
|
+
}, [enableSearchZoom, originalDataSources, onDownsamplingThresholdChange, width, xField]);
|
|
3810
3843
|
React.useEffect(function () {
|
|
3811
3844
|
recalculateDownsamplingThreshold();
|
|
3812
3845
|
}, [recalculateDownsamplingThreshold]); // useEventCallback is used for these handlers to make sure that they are a stable reference and
|
|
@@ -3933,7 +3966,16 @@ var Charting = function Charting(props) {
|
|
|
3933
3966
|
charting_bundle_1.default.setColorPalette(colorPalette);
|
|
3934
3967
|
}
|
|
3935
3968
|
|
|
3936
|
-
chart.current.prepareAndDraw(chartData, updatedOptions, function () {
|
|
3969
|
+
chart.current.prepareAndDraw(chartData, updatedOptions, function () {
|
|
3970
|
+
onEventTrigger({
|
|
3971
|
+
type: 'viz.renderedWithData',
|
|
3972
|
+
payload: {
|
|
3973
|
+
width: width,
|
|
3974
|
+
height: height,
|
|
3975
|
+
currentTime: new Date().getTime()
|
|
3976
|
+
}
|
|
3977
|
+
});
|
|
3978
|
+
});
|
|
3937
3979
|
}
|
|
3938
3980
|
|
|
3939
3981
|
if (chart.current) {
|
|
@@ -4045,36 +4087,36 @@ exports.default = withEmptyChartMessage(Charting);
|
|
|
4045
4087
|
|
|
4046
4088
|
/***/ }),
|
|
4047
4089
|
|
|
4048
|
-
/***/
|
|
4090
|
+
/***/ 85:
|
|
4049
4091
|
/***/ (function(module, exports) {
|
|
4050
4092
|
|
|
4051
4093
|
module.exports = require("react-event-listener");
|
|
4052
4094
|
|
|
4053
4095
|
/***/ }),
|
|
4054
4096
|
|
|
4055
|
-
/***/
|
|
4097
|
+
/***/ 86:
|
|
4056
4098
|
/***/ (function(module, exports) {
|
|
4057
4099
|
|
|
4058
4100
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
4059
4101
|
|
|
4060
4102
|
/***/ }),
|
|
4061
4103
|
|
|
4062
|
-
/***/
|
|
4104
|
+
/***/ 87:
|
|
4063
4105
|
/***/ (function(module, exports) {
|
|
4064
4106
|
|
|
4065
4107
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
4066
4108
|
|
|
4067
4109
|
/***/ }),
|
|
4068
4110
|
|
|
4069
|
-
/***/
|
|
4111
|
+
/***/ 88:
|
|
4070
4112
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4071
4113
|
|
|
4072
4114
|
"use strict";
|
|
4073
4115
|
|
|
4074
4116
|
|
|
4075
|
-
var _classCallCheck = __webpack_require__(
|
|
4117
|
+
var _classCallCheck = __webpack_require__(8);
|
|
4076
4118
|
|
|
4077
|
-
var _createClass = __webpack_require__(
|
|
4119
|
+
var _createClass = __webpack_require__(24);
|
|
4078
4120
|
|
|
4079
4121
|
Object.defineProperty(exports, "__esModule", {
|
|
4080
4122
|
value: true
|
|
@@ -4135,14 +4177,7 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
|
4135
4177
|
|
|
4136
4178
|
/***/ }),
|
|
4137
4179
|
|
|
4138
|
-
/***/
|
|
4139
|
-
/***/ (function(module, exports) {
|
|
4140
|
-
|
|
4141
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
4142
|
-
|
|
4143
|
-
/***/ }),
|
|
4144
|
-
|
|
4145
|
-
/***/ 90:
|
|
4180
|
+
/***/ 89:
|
|
4146
4181
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4147
4182
|
|
|
4148
4183
|
"use strict";
|
|
@@ -4152,7 +4187,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4152
4187
|
value: true
|
|
4153
4188
|
});
|
|
4154
4189
|
|
|
4155
|
-
var react_1 = __webpack_require__(
|
|
4190
|
+
var react_1 = __webpack_require__(1);
|
|
4156
4191
|
|
|
4157
4192
|
var useEventCallback = function useEventCallback(fn) {
|
|
4158
4193
|
var ref = (0, react_1.useRef)(fn);
|
|
@@ -4168,7 +4203,14 @@ exports.default = useEventCallback;
|
|
|
4168
4203
|
|
|
4169
4204
|
/***/ }),
|
|
4170
4205
|
|
|
4171
|
-
/***/
|
|
4206
|
+
/***/ 9:
|
|
4207
|
+
/***/ (function(module, exports) {
|
|
4208
|
+
|
|
4209
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
4210
|
+
|
|
4211
|
+
/***/ }),
|
|
4212
|
+
|
|
4213
|
+
/***/ 90:
|
|
4172
4214
|
/***/ (function(module, exports) {
|
|
4173
4215
|
|
|
4174
4216
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|