@splunk/visualizations 26.3.0 → 26.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area.config.js +1 -1
- package/Area.config.js.map +1 -1
- package/Area.js +288 -288
- package/Area.js.map +1 -1
- package/Bar.config.js +1 -1
- package/Bar.config.js.map +1 -1
- package/Bar.js +291 -291
- package/Bar.js.map +1 -1
- package/Bubble.config.js +1 -1
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +280 -280
- 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 +291 -291
- 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 +289 -289
- 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 +6 -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 +362 -330
- 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 +339 -337
- 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.config.js +8 -0
- package/Table.config.js.map +1 -1
- package/Table.js +366 -357
- package/Table.js.map +1 -1
- package/common/Charting.js +15 -23
- 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.0 - 04078274d",
|
|
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;
|
|
@@ -858,6 +852,10 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
858
852
|
computedProps.onClick = onEventTrigger;
|
|
859
853
|
}
|
|
860
854
|
|
|
855
|
+
if (computedProps.options.collapseExcludeZero) {
|
|
856
|
+
computedProps.chartData.seriesList = (0, pieUtils_1.removeColumnsThatOnlyContain0s)(computedProps.chartData.seriesList);
|
|
857
|
+
}
|
|
858
|
+
|
|
861
859
|
return computedProps;
|
|
862
860
|
};
|
|
863
861
|
|
|
@@ -882,21 +880,14 @@ exports.default = Pie;
|
|
|
882
880
|
|
|
883
881
|
/***/ }),
|
|
884
882
|
|
|
885
|
-
/***/ 19:
|
|
886
|
-
/***/ (function(module, exports) {
|
|
887
|
-
|
|
888
|
-
module.exports = require("@splunk/visualizations-shared/style");
|
|
889
|
-
|
|
890
|
-
/***/ }),
|
|
891
|
-
|
|
892
883
|
/***/ 2:
|
|
893
884
|
/***/ (function(module, exports) {
|
|
894
885
|
|
|
895
|
-
module.exports = require("
|
|
886
|
+
module.exports = require("lodash");
|
|
896
887
|
|
|
897
888
|
/***/ }),
|
|
898
889
|
|
|
899
|
-
/***/
|
|
890
|
+
/***/ 20:
|
|
900
891
|
/***/ (function(module, exports, __webpack_require__) {
|
|
901
892
|
|
|
902
893
|
"use strict";
|
|
@@ -911,15 +902,15 @@ exports.validOutputModes = ['json_cols', 'json'];
|
|
|
911
902
|
|
|
912
903
|
/***/ }),
|
|
913
904
|
|
|
914
|
-
/***/
|
|
905
|
+
/***/ 21:
|
|
915
906
|
/***/ (function(module, exports, __webpack_require__) {
|
|
916
907
|
|
|
917
908
|
"use strict";
|
|
918
909
|
|
|
919
910
|
|
|
920
|
-
var _classCallCheck = __webpack_require__(
|
|
911
|
+
var _classCallCheck = __webpack_require__(8);
|
|
921
912
|
|
|
922
|
-
var _createClass = __webpack_require__(
|
|
913
|
+
var _createClass = __webpack_require__(24);
|
|
923
914
|
|
|
924
915
|
Object.defineProperty(exports, "__esModule", {
|
|
925
916
|
value: true
|
|
@@ -949,7 +940,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
949
940
|
|
|
950
941
|
/***/ }),
|
|
951
942
|
|
|
952
|
-
/***/
|
|
943
|
+
/***/ 22:
|
|
953
944
|
/***/ (function(module, exports, __webpack_require__) {
|
|
954
945
|
|
|
955
946
|
"use strict";
|
|
@@ -978,7 +969,7 @@ var VizCategory;
|
|
|
978
969
|
|
|
979
970
|
/***/ }),
|
|
980
971
|
|
|
981
|
-
/***/
|
|
972
|
+
/***/ 23:
|
|
982
973
|
/***/ (function(module, exports, __webpack_require__) {
|
|
983
974
|
|
|
984
975
|
"use strict";
|
|
@@ -1011,37 +1002,37 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
1011
1002
|
|
|
1012
1003
|
/***/ }),
|
|
1013
1004
|
|
|
1014
|
-
/***/
|
|
1005
|
+
/***/ 24:
|
|
1015
1006
|
/***/ (function(module, exports) {
|
|
1016
1007
|
|
|
1017
1008
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1018
1009
|
|
|
1019
1010
|
/***/ }),
|
|
1020
1011
|
|
|
1021
|
-
/***/
|
|
1012
|
+
/***/ 25:
|
|
1022
1013
|
/***/ (function(module, exports) {
|
|
1023
1014
|
|
|
1024
1015
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
1025
1016
|
|
|
1026
1017
|
/***/ }),
|
|
1027
1018
|
|
|
1028
|
-
/***/
|
|
1019
|
+
/***/ 26:
|
|
1029
1020
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1030
1021
|
|
|
1031
1022
|
"use strict";
|
|
1032
1023
|
|
|
1033
1024
|
|
|
1034
|
-
var _toConsumableArray = __webpack_require__(
|
|
1025
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
1035
1026
|
|
|
1036
1027
|
Object.defineProperty(exports, "__esModule", {
|
|
1037
1028
|
value: true
|
|
1038
1029
|
});
|
|
1039
1030
|
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
1040
1031
|
|
|
1041
|
-
var lodash_1 = __webpack_require__(
|
|
1032
|
+
var lodash_1 = __webpack_require__(2); // included for backwards compatibility
|
|
1042
1033
|
|
|
1043
1034
|
|
|
1044
|
-
var visualization_schemas_1 = __webpack_require__(
|
|
1035
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1045
1036
|
|
|
1046
1037
|
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
1047
1038
|
enumerable: true,
|
|
@@ -1182,42 +1173,42 @@ exports.insertLayout = insertLayout;
|
|
|
1182
1173
|
|
|
1183
1174
|
/***/ }),
|
|
1184
1175
|
|
|
1185
|
-
/***/
|
|
1176
|
+
/***/ 27:
|
|
1186
1177
|
/***/ (function(module, exports) {
|
|
1187
1178
|
|
|
1188
1179
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
1189
1180
|
|
|
1190
1181
|
/***/ }),
|
|
1191
1182
|
|
|
1192
|
-
/***/
|
|
1183
|
+
/***/ 29:
|
|
1193
1184
|
/***/ (function(module, exports) {
|
|
1194
1185
|
|
|
1195
|
-
module.exports = require("
|
|
1186
|
+
module.exports = require("@splunk/themes/pick");
|
|
1196
1187
|
|
|
1197
1188
|
/***/ }),
|
|
1198
1189
|
|
|
1199
|
-
/***/
|
|
1190
|
+
/***/ 3:
|
|
1200
1191
|
/***/ (function(module, exports) {
|
|
1201
1192
|
|
|
1202
|
-
module.exports = require("@splunk/
|
|
1193
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
1203
1194
|
|
|
1204
1195
|
/***/ }),
|
|
1205
1196
|
|
|
1206
|
-
/***/
|
|
1197
|
+
/***/ 30:
|
|
1207
1198
|
/***/ (function(module, exports) {
|
|
1208
1199
|
|
|
1209
1200
|
module.exports = require("@splunk/ui-utils/id");
|
|
1210
1201
|
|
|
1211
1202
|
/***/ }),
|
|
1212
1203
|
|
|
1213
|
-
/***/
|
|
1204
|
+
/***/ 31:
|
|
1214
1205
|
/***/ (function(module, exports) {
|
|
1215
1206
|
|
|
1216
1207
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1217
1208
|
|
|
1218
1209
|
/***/ }),
|
|
1219
1210
|
|
|
1220
|
-
/***/
|
|
1211
|
+
/***/ 32:
|
|
1221
1212
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1222
1213
|
|
|
1223
1214
|
"use strict";
|
|
@@ -1227,7 +1218,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1227
1218
|
value: true
|
|
1228
1219
|
});
|
|
1229
1220
|
|
|
1230
|
-
var react_1 = __webpack_require__(
|
|
1221
|
+
var react_1 = __webpack_require__(1);
|
|
1231
1222
|
|
|
1232
1223
|
function usePrevious(value) {
|
|
1233
1224
|
var ref = (0, react_1.useRef)();
|
|
@@ -1241,28 +1232,28 @@ exports.default = usePrevious;
|
|
|
1241
1232
|
|
|
1242
1233
|
/***/ }),
|
|
1243
1234
|
|
|
1244
|
-
/***/
|
|
1235
|
+
/***/ 33:
|
|
1245
1236
|
/***/ (function(module, exports) {
|
|
1246
1237
|
|
|
1247
1238
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1248
1239
|
|
|
1249
1240
|
/***/ }),
|
|
1250
1241
|
|
|
1251
|
-
/***/
|
|
1242
|
+
/***/ 34:
|
|
1252
1243
|
/***/ (function(module, exports) {
|
|
1253
1244
|
|
|
1254
1245
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1255
1246
|
|
|
1256
1247
|
/***/ }),
|
|
1257
1248
|
|
|
1258
|
-
/***/
|
|
1249
|
+
/***/ 35:
|
|
1259
1250
|
/***/ (function(module, exports) {
|
|
1260
1251
|
|
|
1261
1252
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
1262
1253
|
|
|
1263
1254
|
/***/ }),
|
|
1264
1255
|
|
|
1265
|
-
/***/
|
|
1256
|
+
/***/ 36:
|
|
1266
1257
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1267
1258
|
|
|
1268
1259
|
"use strict";
|
|
@@ -1273,17 +1264,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1273
1264
|
});
|
|
1274
1265
|
exports.shouldShowIconPlaceholder = void 0;
|
|
1275
1266
|
|
|
1276
|
-
var React = __webpack_require__(
|
|
1267
|
+
var React = __webpack_require__(1);
|
|
1277
1268
|
|
|
1278
|
-
var T = __webpack_require__(
|
|
1269
|
+
var T = __webpack_require__(0);
|
|
1279
1270
|
|
|
1280
|
-
var lodash_1 = __webpack_require__(
|
|
1271
|
+
var lodash_1 = __webpack_require__(2);
|
|
1281
1272
|
|
|
1282
|
-
var i18n_1 = __webpack_require__(
|
|
1273
|
+
var i18n_1 = __webpack_require__(3);
|
|
1283
1274
|
|
|
1284
|
-
var Message_1 = __webpack_require__(
|
|
1275
|
+
var Message_1 = __webpack_require__(11);
|
|
1285
1276
|
|
|
1286
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1277
|
+
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
1287
1278
|
/**
|
|
1288
1279
|
* @method shouldShowIconPlaceholder
|
|
1289
1280
|
* @param {object} dataSources
|
|
@@ -1355,24 +1346,24 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
1355
1346
|
|
|
1356
1347
|
/***/ }),
|
|
1357
1348
|
|
|
1358
|
-
/***/
|
|
1349
|
+
/***/ 37:
|
|
1359
1350
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1360
1351
|
|
|
1361
1352
|
"use strict";
|
|
1362
1353
|
|
|
1363
1354
|
|
|
1364
|
-
var _defineProperty = __webpack_require__(
|
|
1355
|
+
var _defineProperty = __webpack_require__(12);
|
|
1365
1356
|
|
|
1366
1357
|
Object.defineProperty(exports, "__esModule", {
|
|
1367
1358
|
value: true
|
|
1368
1359
|
});
|
|
1369
1360
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1370
1361
|
|
|
1371
|
-
var T = __webpack_require__(
|
|
1362
|
+
var T = __webpack_require__(0);
|
|
1372
1363
|
|
|
1373
|
-
var lodash_1 = __webpack_require__(
|
|
1364
|
+
var lodash_1 = __webpack_require__(2);
|
|
1374
1365
|
|
|
1375
|
-
var DataSource_1 = __webpack_require__(
|
|
1366
|
+
var DataSource_1 = __webpack_require__(20);
|
|
1376
1367
|
|
|
1377
1368
|
exports.SortParamsPropTypes = T.shape({
|
|
1378
1369
|
currentSortKey: T.string,
|
|
@@ -1426,7 +1417,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1426
1417
|
|
|
1427
1418
|
/***/ }),
|
|
1428
1419
|
|
|
1429
|
-
/***/
|
|
1420
|
+
/***/ 38:
|
|
1430
1421
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1431
1422
|
|
|
1432
1423
|
"use strict";
|
|
@@ -1437,9 +1428,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1437
1428
|
});
|
|
1438
1429
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1439
1430
|
|
|
1440
|
-
var T = __webpack_require__(
|
|
1431
|
+
var T = __webpack_require__(0);
|
|
1441
1432
|
|
|
1442
|
-
var lodash_1 = __webpack_require__(
|
|
1433
|
+
var lodash_1 = __webpack_require__(2);
|
|
1443
1434
|
|
|
1444
1435
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1445
1436
|
isPaging: T.bool,
|
|
@@ -1491,14 +1482,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1491
1482
|
|
|
1492
1483
|
/***/ }),
|
|
1493
1484
|
|
|
1494
|
-
/***/
|
|
1495
|
-
/***/ (function(module, exports) {
|
|
1496
|
-
|
|
1497
|
-
module.exports = require("styled-components");
|
|
1498
|
-
|
|
1499
|
-
/***/ }),
|
|
1500
|
-
|
|
1501
|
-
/***/ 40:
|
|
1485
|
+
/***/ 39:
|
|
1502
1486
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1503
1487
|
|
|
1504
1488
|
"use strict";
|
|
@@ -1533,11 +1517,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1533
1517
|
value: true
|
|
1534
1518
|
});
|
|
1535
1519
|
|
|
1520
|
+
__exportStar(__webpack_require__(40), exports);
|
|
1521
|
+
|
|
1536
1522
|
__exportStar(__webpack_require__(41), exports);
|
|
1537
1523
|
|
|
1538
|
-
__exportStar(__webpack_require__(
|
|
1524
|
+
__exportStar(__webpack_require__(20), exports);
|
|
1539
1525
|
|
|
1540
|
-
__exportStar(__webpack_require__(
|
|
1526
|
+
__exportStar(__webpack_require__(42), exports);
|
|
1541
1527
|
|
|
1542
1528
|
__exportStar(__webpack_require__(43), exports);
|
|
1543
1529
|
|
|
@@ -1549,13 +1535,13 @@ __exportStar(__webpack_require__(46), exports);
|
|
|
1549
1535
|
|
|
1550
1536
|
__exportStar(__webpack_require__(47), exports);
|
|
1551
1537
|
|
|
1552
|
-
__exportStar(__webpack_require__(
|
|
1538
|
+
__exportStar(__webpack_require__(21), exports);
|
|
1553
1539
|
|
|
1554
|
-
__exportStar(__webpack_require__(
|
|
1540
|
+
__exportStar(__webpack_require__(7), exports);
|
|
1555
1541
|
|
|
1556
|
-
__exportStar(__webpack_require__(
|
|
1542
|
+
__exportStar(__webpack_require__(22), exports);
|
|
1557
1543
|
|
|
1558
|
-
__exportStar(__webpack_require__(
|
|
1544
|
+
__exportStar(__webpack_require__(48), exports);
|
|
1559
1545
|
|
|
1560
1546
|
__exportStar(__webpack_require__(49), exports);
|
|
1561
1547
|
|
|
@@ -1567,11 +1553,16 @@ __exportStar(__webpack_require__(52), exports);
|
|
|
1567
1553
|
|
|
1568
1554
|
__exportStar(__webpack_require__(53), exports);
|
|
1569
1555
|
|
|
1570
|
-
|
|
1556
|
+
/***/ }),
|
|
1557
|
+
|
|
1558
|
+
/***/ 4:
|
|
1559
|
+
/***/ (function(module, exports) {
|
|
1560
|
+
|
|
1561
|
+
module.exports = require("styled-components");
|
|
1571
1562
|
|
|
1572
1563
|
/***/ }),
|
|
1573
1564
|
|
|
1574
|
-
/***/
|
|
1565
|
+
/***/ 40:
|
|
1575
1566
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1576
1567
|
|
|
1577
1568
|
"use strict";
|
|
@@ -1583,7 +1574,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1583
1574
|
|
|
1584
1575
|
/***/ }),
|
|
1585
1576
|
|
|
1586
|
-
/***/
|
|
1577
|
+
/***/ 41:
|
|
1587
1578
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1588
1579
|
|
|
1589
1580
|
"use strict";
|
|
@@ -1592,6 +1583,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1592
1583
|
* A data structure used at runtime to wire up a visualization.
|
|
1593
1584
|
*/
|
|
1594
1585
|
|
|
1586
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1587
|
+
value: true
|
|
1588
|
+
});
|
|
1589
|
+
|
|
1590
|
+
/***/ }),
|
|
1591
|
+
|
|
1592
|
+
/***/ 42:
|
|
1593
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1594
|
+
|
|
1595
|
+
"use strict";
|
|
1596
|
+
|
|
1597
|
+
|
|
1595
1598
|
Object.defineProperty(exports, "__esModule", {
|
|
1596
1599
|
value: true
|
|
1597
1600
|
});
|
|
@@ -1634,7 +1637,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1634
1637
|
|
|
1635
1638
|
/***/ }),
|
|
1636
1639
|
|
|
1637
|
-
/***/
|
|
1640
|
+
/***/ 450:
|
|
1638
1641
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1639
1642
|
|
|
1640
1643
|
"use strict";
|
|
@@ -1670,9 +1673,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1670
1673
|
});
|
|
1671
1674
|
exports.default = void 0;
|
|
1672
1675
|
|
|
1673
|
-
__exportStar(__webpack_require__(
|
|
1676
|
+
__exportStar(__webpack_require__(182), exports);
|
|
1674
1677
|
|
|
1675
|
-
var Pie_1 = __webpack_require__(
|
|
1678
|
+
var Pie_1 = __webpack_require__(182);
|
|
1676
1679
|
|
|
1677
1680
|
Object.defineProperty(exports, "default", {
|
|
1678
1681
|
enumerable: true,
|
|
@@ -1683,7 +1686,7 @@ Object.defineProperty(exports, "default", {
|
|
|
1683
1686
|
|
|
1684
1687
|
/***/ }),
|
|
1685
1688
|
|
|
1686
|
-
/***/
|
|
1689
|
+
/***/ 451:
|
|
1687
1690
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1688
1691
|
|
|
1689
1692
|
"use strict";
|
|
@@ -1693,25 +1696,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1693
1696
|
value: true
|
|
1694
1697
|
});
|
|
1695
1698
|
|
|
1696
|
-
var ChartPie_1 = __webpack_require__(
|
|
1699
|
+
var ChartPie_1 = __webpack_require__(452);
|
|
1697
1700
|
|
|
1698
|
-
var placeholders_1 = __webpack_require__(
|
|
1701
|
+
var placeholders_1 = __webpack_require__(70);
|
|
1699
1702
|
|
|
1700
|
-
var i18n_1 = __webpack_require__(
|
|
1703
|
+
var i18n_1 = __webpack_require__(3);
|
|
1701
1704
|
|
|
1702
|
-
var visualization_schemas_1 = __webpack_require__(
|
|
1705
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1703
1706
|
|
|
1704
|
-
var pick_1 = __webpack_require__(
|
|
1707
|
+
var pick_1 = __webpack_require__(29);
|
|
1705
1708
|
|
|
1706
|
-
var variables_1 = __webpack_require__(
|
|
1709
|
+
var variables_1 = __webpack_require__(13);
|
|
1707
1710
|
|
|
1708
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1711
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
1709
1712
|
|
|
1710
|
-
var VizCategory_1 = __webpack_require__(
|
|
1713
|
+
var VizCategory_1 = __webpack_require__(22);
|
|
1711
1714
|
|
|
1712
|
-
var configUtils_1 = __webpack_require__(
|
|
1715
|
+
var configUtils_1 = __webpack_require__(26);
|
|
1713
1716
|
|
|
1714
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
1717
|
+
var BackgroundColor_1 = __webpack_require__(72);
|
|
1715
1718
|
|
|
1716
1719
|
var dataContract = {
|
|
1717
1720
|
requiredDataSources: [{
|
|
@@ -1806,6 +1809,10 @@ var editorConfig = [{
|
|
|
1806
1809
|
max: 1,
|
|
1807
1810
|
step: 0.01
|
|
1808
1811
|
}
|
|
1812
|
+
}], [{
|
|
1813
|
+
label: (0, i18n_1._)('Exclude zeros in the collapsed slice'),
|
|
1814
|
+
option: 'collapseExcludeZero',
|
|
1815
|
+
editor: 'editor.toggle'
|
|
1809
1816
|
}], [{
|
|
1810
1817
|
label: (0, i18n_1._)('Collapsed slice label'),
|
|
1811
1818
|
option: 'collapseLabel',
|
|
@@ -1859,26 +1866,14 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
|
1859
1866
|
|
|
1860
1867
|
/***/ }),
|
|
1861
1868
|
|
|
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:
|
|
1869
|
+
/***/ 452:
|
|
1875
1870
|
/***/ (function(module, exports) {
|
|
1876
1871
|
|
|
1877
1872
|
module.exports = require("@splunk/react-icons/enterprise/ChartPie");
|
|
1878
1873
|
|
|
1879
1874
|
/***/ }),
|
|
1880
1875
|
|
|
1881
|
-
/***/
|
|
1876
|
+
/***/ 453:
|
|
1882
1877
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1883
1878
|
|
|
1884
1879
|
"use strict";
|
|
@@ -1900,17 +1895,17 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
1900
1895
|
Object.defineProperty(exports, "__esModule", {
|
|
1901
1896
|
value: true
|
|
1902
1897
|
});
|
|
1903
|
-
exports.allInvalidDataValues = exports.invalidOptionField = exports.getPieOptionFieldIndex = exports.getPieMergedOptions = exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay = exports.convertToStringValues = void 0;
|
|
1898
|
+
exports.removeColumnsThatOnlyContain0s = exports.allInvalidDataValues = exports.invalidOptionField = exports.getPieOptionFieldIndex = exports.getPieMergedOptions = exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay = exports.convertToStringValues = void 0;
|
|
1904
1899
|
|
|
1905
|
-
var lodash_1 = __webpack_require__(
|
|
1900
|
+
var lodash_1 = __webpack_require__(2);
|
|
1906
1901
|
|
|
1907
|
-
var propUtils_1 = __webpack_require__(
|
|
1902
|
+
var propUtils_1 = __webpack_require__(35);
|
|
1908
1903
|
|
|
1909
|
-
var dsl_1 = __webpack_require__(
|
|
1904
|
+
var dsl_1 = __webpack_require__(151);
|
|
1910
1905
|
|
|
1911
|
-
var hocUtils_1 = __webpack_require__(
|
|
1906
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
1912
1907
|
|
|
1913
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1908
|
+
var JSONSchemaUtils_1 = __webpack_require__(34); // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
|
|
1914
1909
|
// map for key names which are either new or not present in SimpleXML options mapping
|
|
1915
1910
|
|
|
1916
1911
|
|
|
@@ -2068,9 +2063,31 @@ var allInvalidDataValues = function allInvalidDataValues(dataSources, options, v
|
|
|
2068
2063
|
|
|
2069
2064
|
exports.allInvalidDataValues = allInvalidDataValues;
|
|
2070
2065
|
|
|
2066
|
+
var removeColumnsThatOnlyContain0s = function removeColumnsThatOnlyContain0s(seriesList) {
|
|
2067
|
+
var names = seriesList[0];
|
|
2068
|
+
var values = seriesList[1];
|
|
2069
|
+
var returnSeriesList = [[], []];
|
|
2070
|
+
|
|
2071
|
+
if (!Array.isArray(seriesList) || !Array.isArray(names) || !Array.isArray(values)) {
|
|
2072
|
+
return seriesList;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
values.map(function (value) {
|
|
2076
|
+
return +value !== 0 && !Number.isNaN(Number(value));
|
|
2077
|
+
}).forEach(function (b, i) {
|
|
2078
|
+
if (b) {
|
|
2079
|
+
returnSeriesList[0].push(names[i]);
|
|
2080
|
+
returnSeriesList[1].push(values[i]);
|
|
2081
|
+
}
|
|
2082
|
+
});
|
|
2083
|
+
return returnSeriesList;
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
exports.removeColumnsThatOnlyContain0s = removeColumnsThatOnlyContain0s;
|
|
2087
|
+
|
|
2071
2088
|
/***/ }),
|
|
2072
2089
|
|
|
2073
|
-
/***/
|
|
2090
|
+
/***/ 46:
|
|
2074
2091
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2075
2092
|
|
|
2076
2093
|
"use strict";
|
|
@@ -2082,7 +2099,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2082
2099
|
|
|
2083
2100
|
/***/ }),
|
|
2084
2101
|
|
|
2085
|
-
/***/
|
|
2102
|
+
/***/ 47:
|
|
2086
2103
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2087
2104
|
|
|
2088
2105
|
"use strict";
|
|
@@ -2094,7 +2111,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2094
2111
|
|
|
2095
2112
|
/***/ }),
|
|
2096
2113
|
|
|
2097
|
-
/***/
|
|
2114
|
+
/***/ 48:
|
|
2098
2115
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2099
2116
|
|
|
2100
2117
|
"use strict";
|
|
@@ -2106,7 +2123,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2106
2123
|
|
|
2107
2124
|
/***/ }),
|
|
2108
2125
|
|
|
2109
|
-
/***/
|
|
2126
|
+
/***/ 49:
|
|
2110
2127
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2111
2128
|
|
|
2112
2129
|
"use strict";
|
|
@@ -2118,7 +2135,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2118
2135
|
|
|
2119
2136
|
/***/ }),
|
|
2120
2137
|
|
|
2121
|
-
/***/
|
|
2138
|
+
/***/ 5:
|
|
2139
|
+
/***/ (function(module, exports) {
|
|
2140
|
+
|
|
2141
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
2142
|
+
|
|
2143
|
+
/***/ }),
|
|
2144
|
+
|
|
2145
|
+
/***/ 50:
|
|
2122
2146
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2123
2147
|
|
|
2124
2148
|
"use strict";
|
|
@@ -2130,7 +2154,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2130
2154
|
|
|
2131
2155
|
/***/ }),
|
|
2132
2156
|
|
|
2133
|
-
/***/
|
|
2157
|
+
/***/ 51:
|
|
2134
2158
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2135
2159
|
|
|
2136
2160
|
"use strict";
|
|
@@ -2142,7 +2166,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2142
2166
|
|
|
2143
2167
|
/***/ }),
|
|
2144
2168
|
|
|
2145
|
-
/***/
|
|
2169
|
+
/***/ 52:
|
|
2146
2170
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2147
2171
|
|
|
2148
2172
|
"use strict";
|
|
@@ -2154,7 +2178,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2154
2178
|
|
|
2155
2179
|
/***/ }),
|
|
2156
2180
|
|
|
2157
|
-
/***/
|
|
2181
|
+
/***/ 53:
|
|
2158
2182
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2159
2183
|
|
|
2160
2184
|
"use strict";
|
|
@@ -2166,65 +2190,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2166
2190
|
|
|
2167
2191
|
/***/ }),
|
|
2168
2192
|
|
|
2169
|
-
/***/
|
|
2193
|
+
/***/ 54:
|
|
2170
2194
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2171
2195
|
|
|
2172
2196
|
"use strict";
|
|
2173
2197
|
|
|
2174
2198
|
|
|
2175
|
-
var _slicedToArray = __webpack_require__(
|
|
2199
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2176
2200
|
|
|
2177
2201
|
Object.defineProperty(exports, "__esModule", {
|
|
2178
2202
|
value: true
|
|
2179
2203
|
});
|
|
2180
2204
|
|
|
2181
|
-
var React = __webpack_require__(
|
|
2205
|
+
var React = __webpack_require__(1);
|
|
2182
2206
|
|
|
2183
|
-
var lodash_1 = __webpack_require__(
|
|
2207
|
+
var lodash_1 = __webpack_require__(2);
|
|
2184
2208
|
|
|
2185
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
2209
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(55);
|
|
2186
2210
|
|
|
2187
|
-
var Options_1 = __webpack_require__(
|
|
2211
|
+
var Options_1 = __webpack_require__(16);
|
|
2188
2212
|
|
|
2189
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
2213
|
+
var SanitizeProps_1 = __webpack_require__(56);
|
|
2190
2214
|
|
|
2191
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2215
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
2192
2216
|
|
|
2193
|
-
var moment_1 = __webpack_require__(
|
|
2217
|
+
var moment_1 = __webpack_require__(57);
|
|
2194
2218
|
|
|
2195
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
2219
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
2196
2220
|
|
|
2197
2221
|
var styled_components_1 = __webpack_require__(4);
|
|
2198
2222
|
|
|
2199
|
-
var hocUtils_1 = __webpack_require__(
|
|
2223
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
2200
2224
|
|
|
2201
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
2225
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
2202
2226
|
|
|
2203
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
2227
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(58);
|
|
2204
2228
|
|
|
2205
|
-
var id_1 = __webpack_require__(
|
|
2229
|
+
var id_1 = __webpack_require__(30);
|
|
2206
2230
|
|
|
2207
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
2231
|
+
var SplunkVisualization_1 = __webpack_require__(59);
|
|
2208
2232
|
|
|
2209
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2233
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
2210
2234
|
|
|
2211
|
-
var getSorting_1 = __webpack_require__(
|
|
2235
|
+
var getSorting_1 = __webpack_require__(37);
|
|
2212
2236
|
|
|
2213
|
-
var getPagination_1 = __webpack_require__(
|
|
2237
|
+
var getPagination_1 = __webpack_require__(38);
|
|
2214
2238
|
|
|
2215
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
2239
|
+
var useDeepMemo_1 = __webpack_require__(60);
|
|
2216
2240
|
|
|
2217
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
2241
|
+
var MissingPropsMessage_1 = __webpack_require__(61);
|
|
2218
2242
|
|
|
2219
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
2243
|
+
var withEditModeCover_1 = __webpack_require__(62);
|
|
2220
2244
|
|
|
2221
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
2245
|
+
var withPlaceholder_1 = __webpack_require__(63);
|
|
2222
2246
|
|
|
2223
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
2247
|
+
var useDownsampleDataSources_1 = __webpack_require__(64);
|
|
2224
2248
|
|
|
2225
|
-
var dataUtils_1 = __webpack_require__(
|
|
2249
|
+
var dataUtils_1 = __webpack_require__(14);
|
|
2226
2250
|
|
|
2227
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
2251
|
+
var featureFlagUtils_1 = __webpack_require__(66);
|
|
2228
2252
|
/**
|
|
2229
2253
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
2230
2254
|
* @param {DashboardVizOpts} opts
|
|
@@ -2557,48 +2581,41 @@ exports.default = withDashboardViz;
|
|
|
2557
2581
|
|
|
2558
2582
|
/***/ }),
|
|
2559
2583
|
|
|
2560
|
-
/***/
|
|
2584
|
+
/***/ 55:
|
|
2561
2585
|
/***/ (function(module, exports) {
|
|
2562
2586
|
|
|
2563
2587
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2564
2588
|
|
|
2565
2589
|
/***/ }),
|
|
2566
2590
|
|
|
2567
|
-
/***/
|
|
2591
|
+
/***/ 56:
|
|
2568
2592
|
/***/ (function(module, exports) {
|
|
2569
2593
|
|
|
2570
2594
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2571
2595
|
|
|
2572
2596
|
/***/ }),
|
|
2573
2597
|
|
|
2574
|
-
/***/
|
|
2598
|
+
/***/ 57:
|
|
2575
2599
|
/***/ (function(module, exports) {
|
|
2576
2600
|
|
|
2577
2601
|
module.exports = require("@splunk/moment");
|
|
2578
2602
|
|
|
2579
2603
|
/***/ }),
|
|
2580
2604
|
|
|
2581
|
-
/***/
|
|
2605
|
+
/***/ 58:
|
|
2582
2606
|
/***/ (function(module, exports) {
|
|
2583
2607
|
|
|
2584
2608
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2585
2609
|
|
|
2586
2610
|
/***/ }),
|
|
2587
2611
|
|
|
2588
|
-
/***/
|
|
2589
|
-
/***/ (function(module, exports) {
|
|
2590
|
-
|
|
2591
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
2592
|
-
|
|
2593
|
-
/***/ }),
|
|
2594
|
-
|
|
2595
|
-
/***/ 60:
|
|
2612
|
+
/***/ 59:
|
|
2596
2613
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2597
2614
|
|
|
2598
2615
|
"use strict";
|
|
2599
2616
|
|
|
2600
2617
|
|
|
2601
|
-
var _classCallCheck = __webpack_require__(
|
|
2618
|
+
var _classCallCheck = __webpack_require__(8);
|
|
2602
2619
|
|
|
2603
2620
|
Object.defineProperty(exports, "__esModule", {
|
|
2604
2621
|
value: true
|
|
@@ -2606,11 +2623,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2606
2623
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
2607
2624
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
2608
2625
|
|
|
2609
|
-
var T = __webpack_require__(
|
|
2626
|
+
var T = __webpack_require__(0);
|
|
2610
2627
|
|
|
2611
|
-
var lodash_1 = __webpack_require__(
|
|
2628
|
+
var lodash_1 = __webpack_require__(2);
|
|
2612
2629
|
|
|
2613
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2630
|
+
var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2614
2631
|
|
|
2615
2632
|
|
|
2616
2633
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2744,7 +2761,14 @@ exports.default = SplunkVisualization;
|
|
|
2744
2761
|
|
|
2745
2762
|
/***/ }),
|
|
2746
2763
|
|
|
2747
|
-
/***/
|
|
2764
|
+
/***/ 6:
|
|
2765
|
+
/***/ (function(module, exports) {
|
|
2766
|
+
|
|
2767
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
2768
|
+
|
|
2769
|
+
/***/ }),
|
|
2770
|
+
|
|
2771
|
+
/***/ 60:
|
|
2748
2772
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2749
2773
|
|
|
2750
2774
|
"use strict";
|
|
@@ -2755,9 +2779,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2755
2779
|
});
|
|
2756
2780
|
exports.useDeepMemo = void 0;
|
|
2757
2781
|
|
|
2758
|
-
var react_1 = __webpack_require__(
|
|
2782
|
+
var react_1 = __webpack_require__(1);
|
|
2759
2783
|
|
|
2760
|
-
var lodash_1 = __webpack_require__(
|
|
2784
|
+
var lodash_1 = __webpack_require__(2);
|
|
2761
2785
|
/**
|
|
2762
2786
|
* This hook evaluates and stores the result of a passed function and only
|
|
2763
2787
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -2790,7 +2814,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
2790
2814
|
|
|
2791
2815
|
/***/ }),
|
|
2792
2816
|
|
|
2793
|
-
/***/
|
|
2817
|
+
/***/ 61:
|
|
2794
2818
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2795
2819
|
|
|
2796
2820
|
"use strict";
|
|
@@ -2801,15 +2825,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2801
2825
|
});
|
|
2802
2826
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
2803
2827
|
|
|
2804
|
-
var React = __webpack_require__(
|
|
2828
|
+
var React = __webpack_require__(1);
|
|
2805
2829
|
|
|
2806
|
-
var T = __webpack_require__(
|
|
2830
|
+
var T = __webpack_require__(0);
|
|
2807
2831
|
|
|
2808
|
-
var i18n_1 = __webpack_require__(
|
|
2832
|
+
var i18n_1 = __webpack_require__(3);
|
|
2809
2833
|
|
|
2810
|
-
var Message_1 = __webpack_require__(
|
|
2834
|
+
var Message_1 = __webpack_require__(11);
|
|
2811
2835
|
|
|
2812
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2836
|
+
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
2813
2837
|
/**
|
|
2814
2838
|
* @method isMissing
|
|
2815
2839
|
* @param {any} v
|
|
@@ -2871,7 +2895,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
|
|
|
2871
2895
|
|
|
2872
2896
|
/***/ }),
|
|
2873
2897
|
|
|
2874
|
-
/***/
|
|
2898
|
+
/***/ 62:
|
|
2875
2899
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2876
2900
|
|
|
2877
2901
|
"use strict";
|
|
@@ -2881,18 +2905,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2881
2905
|
value: true
|
|
2882
2906
|
});
|
|
2883
2907
|
|
|
2884
|
-
var React = __webpack_require__(
|
|
2908
|
+
var React = __webpack_require__(1);
|
|
2885
2909
|
|
|
2886
2910
|
var styled_components_1 = __webpack_require__(4);
|
|
2887
2911
|
|
|
2888
|
-
var hocUtils_1 = __webpack_require__(
|
|
2912
|
+
var hocUtils_1 = __webpack_require__(23);
|
|
2889
2913
|
|
|
2890
2914
|
var Cover = styled_components_1.default.div.withConfig({
|
|
2891
2915
|
displayName: "withEditModeCover__Cover",
|
|
2892
2916
|
componentId: "sc-1gsbnxb-0"
|
|
2893
2917
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2894
2918
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2895
|
-
'data-splunk-visualization-version': "26.
|
|
2919
|
+
'data-splunk-visualization-version': "26.4.0 - 04078274d"
|
|
2896
2920
|
}).withConfig({
|
|
2897
2921
|
displayName: "withEditModeCover__Blocker",
|
|
2898
2922
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2924,7 +2948,7 @@ exports.default = withEditModeCover;
|
|
|
2924
2948
|
|
|
2925
2949
|
/***/ }),
|
|
2926
2950
|
|
|
2927
|
-
/***/
|
|
2951
|
+
/***/ 63:
|
|
2928
2952
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2929
2953
|
|
|
2930
2954
|
"use strict";
|
|
@@ -2934,17 +2958,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2934
2958
|
value: true
|
|
2935
2959
|
});
|
|
2936
2960
|
|
|
2937
|
-
var React = __webpack_require__(
|
|
2961
|
+
var React = __webpack_require__(1);
|
|
2938
2962
|
|
|
2939
|
-
var colorUtils_1 = __webpack_require__(
|
|
2963
|
+
var colorUtils_1 = __webpack_require__(15);
|
|
2940
2964
|
|
|
2941
|
-
var variables_1 = __webpack_require__(
|
|
2965
|
+
var variables_1 = __webpack_require__(13);
|
|
2942
2966
|
|
|
2943
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2967
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
2944
2968
|
|
|
2945
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2969
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
2946
2970
|
|
|
2947
|
-
var hocUtils_1 = __webpack_require__(
|
|
2971
|
+
var hocUtils_1 = __webpack_require__(23);
|
|
2948
2972
|
|
|
2949
2973
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2950
2974
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -2989,27 +3013,30 @@ exports.default = withPlaceholder;
|
|
|
2989
3013
|
|
|
2990
3014
|
/***/ }),
|
|
2991
3015
|
|
|
2992
|
-
/***/
|
|
3016
|
+
/***/ 64:
|
|
2993
3017
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2994
3018
|
|
|
2995
3019
|
"use strict";
|
|
2996
3020
|
|
|
2997
3021
|
|
|
2998
|
-
var _slicedToArray = __webpack_require__(
|
|
3022
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2999
3023
|
|
|
3000
3024
|
Object.defineProperty(exports, "__esModule", {
|
|
3001
3025
|
value: true
|
|
3002
3026
|
});
|
|
3003
3027
|
|
|
3004
|
-
var react_1 = __webpack_require__(
|
|
3028
|
+
var react_1 = __webpack_require__(1);
|
|
3029
|
+
|
|
3030
|
+
var lodash_1 = __webpack_require__(2);
|
|
3031
|
+
|
|
3032
|
+
var dataUtils_1 = __webpack_require__(14);
|
|
3005
3033
|
|
|
3006
|
-
var
|
|
3034
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
3007
3035
|
|
|
3008
|
-
var
|
|
3036
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
3009
3037
|
|
|
3010
|
-
var usePrevious_1 = __webpack_require__(33);
|
|
3011
3038
|
|
|
3012
|
-
var
|
|
3039
|
+
var downsampleVizOptionProperties = ['nullValueDisplay'];
|
|
3013
3040
|
|
|
3014
3041
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
3015
3042
|
var dataSources = _ref.dataSources,
|
|
@@ -3023,8 +3050,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3023
3050
|
options: options,
|
|
3024
3051
|
context: context,
|
|
3025
3052
|
dataSources: dataSources
|
|
3026
|
-
});
|
|
3027
|
-
|
|
3053
|
+
}); // Extract viz options that impact downsampling.
|
|
3054
|
+
|
|
3055
|
+
var downsampleVizOptions = (0, react_1.useMemo)(function () {
|
|
3056
|
+
return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
|
|
3057
|
+
}, [options]);
|
|
3058
|
+
var downsampleDSOptions = (0, react_1.useMemo)(function () {
|
|
3059
|
+
return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
|
|
3060
|
+
}, [xAndYFieldsWithTypes, downsampleVizOptions]);
|
|
3061
|
+
var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
|
|
3028
3062
|
var previousDataSources = (0, usePrevious_1.default)(dataSources);
|
|
3029
3063
|
var previousThreshold = (0, usePrevious_1.default)(threshold);
|
|
3030
3064
|
|
|
@@ -3032,7 +3066,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3032
3066
|
return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
|
|
3033
3067
|
dataSources: dataSources,
|
|
3034
3068
|
threshold: threshold,
|
|
3035
|
-
options:
|
|
3069
|
+
options: downsampleDSOptions
|
|
3036
3070
|
}) : dataSources;
|
|
3037
3071
|
}),
|
|
3038
3072
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -3060,7 +3094,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3060
3094
|
return;
|
|
3061
3095
|
}
|
|
3062
3096
|
|
|
3063
|
-
if ((0, lodash_1.isEqual)(
|
|
3097
|
+
if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
|
|
3064
3098
|
return;
|
|
3065
3099
|
} // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
|
|
3066
3100
|
// while the viz is being resized
|
|
@@ -3068,10 +3102,10 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3068
3102
|
|
|
3069
3103
|
debouncedDownsampleDataSources({
|
|
3070
3104
|
dataSources: dataSources,
|
|
3071
|
-
options:
|
|
3105
|
+
options: downsampleDSOptions,
|
|
3072
3106
|
threshold: threshold
|
|
3073
3107
|
}); // need to detect if this runs as part of the initial render
|
|
3074
|
-
}, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled,
|
|
3108
|
+
}, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
|
|
3075
3109
|
return downsampledDataSources;
|
|
3076
3110
|
};
|
|
3077
3111
|
|
|
@@ -3079,21 +3113,21 @@ exports.default = useDownsampleDataSources;
|
|
|
3079
3113
|
|
|
3080
3114
|
/***/ }),
|
|
3081
3115
|
|
|
3082
|
-
/***/
|
|
3116
|
+
/***/ 65:
|
|
3083
3117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3084
3118
|
|
|
3085
3119
|
"use strict";
|
|
3086
3120
|
|
|
3087
3121
|
|
|
3088
|
-
var _toConsumableArray = __webpack_require__(
|
|
3122
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
3089
3123
|
|
|
3090
3124
|
Object.defineProperty(exports, "__esModule", {
|
|
3091
3125
|
value: true
|
|
3092
3126
|
});
|
|
3093
3127
|
|
|
3094
|
-
var react_1 = __webpack_require__(
|
|
3128
|
+
var react_1 = __webpack_require__(1);
|
|
3095
3129
|
|
|
3096
|
-
var Options_1 = __webpack_require__(
|
|
3130
|
+
var Options_1 = __webpack_require__(16);
|
|
3097
3131
|
/**
|
|
3098
3132
|
* Hook that evaluates the DSL for subset of a viz's options needed to determine
|
|
3099
3133
|
* its x and y fields as well as the types of all its fields.
|
|
@@ -3194,7 +3228,7 @@ exports.default = useGetXAndYFields;
|
|
|
3194
3228
|
|
|
3195
3229
|
/***/ }),
|
|
3196
3230
|
|
|
3197
|
-
/***/
|
|
3231
|
+
/***/ 66:
|
|
3198
3232
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3199
3233
|
|
|
3200
3234
|
"use strict";
|
|
@@ -3205,7 +3239,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3205
3239
|
});
|
|
3206
3240
|
exports.getFeatureFlag = void 0;
|
|
3207
3241
|
|
|
3208
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
3242
|
+
var FeatureFlags_1 = __webpack_require__(67);
|
|
3209
3243
|
|
|
3210
3244
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
3211
3245
|
// look for feature flag in context first
|
|
@@ -3230,7 +3264,7 @@ exports.getFeatureFlag = getFeatureFlag;
|
|
|
3230
3264
|
|
|
3231
3265
|
/***/ }),
|
|
3232
3266
|
|
|
3233
|
-
/***/
|
|
3267
|
+
/***/ 67:
|
|
3234
3268
|
/***/ (function(module, exports) {
|
|
3235
3269
|
|
|
3236
3270
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
@@ -3238,20 +3272,53 @@ module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
|
3238
3272
|
/***/ }),
|
|
3239
3273
|
|
|
3240
3274
|
/***/ 7:
|
|
3241
|
-
/***/ (function(module, exports) {
|
|
3275
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3242
3276
|
|
|
3243
|
-
|
|
3277
|
+
"use strict";
|
|
3278
|
+
|
|
3279
|
+
|
|
3280
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3281
|
+
value: true
|
|
3282
|
+
});
|
|
3283
|
+
exports.VizBehavior = void 0;
|
|
3284
|
+
var VizBehavior;
|
|
3285
|
+
|
|
3286
|
+
(function (VizBehavior) {
|
|
3287
|
+
/**
|
|
3288
|
+
* Dynamic Options Behavior.
|
|
3289
|
+
* This allows visualization options to be powered by data
|
|
3290
|
+
*
|
|
3291
|
+
* **Example**
|
|
3292
|
+
*
|
|
3293
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
3294
|
+
* would configure sparklineValues with an array of data points
|
|
3295
|
+
* coming from the first series in the primary datasource
|
|
3296
|
+
*
|
|
3297
|
+
*/
|
|
3298
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
3299
|
+
VizBehavior["EVENTS"] = "events";
|
|
3300
|
+
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
3301
|
+
/**
|
|
3302
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
3303
|
+
* missing.
|
|
3304
|
+
* @type {string}
|
|
3305
|
+
*/
|
|
3306
|
+
|
|
3307
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
3308
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3309
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
3310
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3244
3311
|
|
|
3245
3312
|
/***/ }),
|
|
3246
3313
|
|
|
3247
|
-
/***/
|
|
3314
|
+
/***/ 70:
|
|
3248
3315
|
/***/ (function(module, exports) {
|
|
3249
3316
|
|
|
3250
3317
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3251
3318
|
|
|
3252
3319
|
/***/ }),
|
|
3253
3320
|
|
|
3254
|
-
/***/
|
|
3321
|
+
/***/ 72:
|
|
3255
3322
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3256
3323
|
|
|
3257
3324
|
"use strict";
|
|
@@ -3261,14 +3328,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3261
3328
|
value: true
|
|
3262
3329
|
});
|
|
3263
3330
|
|
|
3264
|
-
var i18n_1 = __webpack_require__(
|
|
3331
|
+
var i18n_1 = __webpack_require__(3);
|
|
3265
3332
|
|
|
3266
3333
|
var background = function background(_ref) {
|
|
3267
3334
|
var label = _ref.label,
|
|
3268
3335
|
themes = _ref.themes,
|
|
3269
3336
|
labelPosition = _ref.labelPosition;
|
|
3270
3337
|
return [{
|
|
3271
|
-
label: (0, i18n_1._)(label || 'Background'),
|
|
3338
|
+
label: (0, i18n_1._)(label || 'Background color'),
|
|
3272
3339
|
option: 'backgroundColor',
|
|
3273
3340
|
editor: 'editor.color',
|
|
3274
3341
|
editorProps: {
|
|
@@ -3282,34 +3349,34 @@ exports.default = background;
|
|
|
3282
3349
|
|
|
3283
3350
|
/***/ }),
|
|
3284
3351
|
|
|
3285
|
-
/***/
|
|
3352
|
+
/***/ 74:
|
|
3286
3353
|
/***/ (function(module, exports) {
|
|
3287
3354
|
|
|
3288
3355
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
3289
3356
|
|
|
3290
3357
|
/***/ }),
|
|
3291
3358
|
|
|
3292
|
-
/***/
|
|
3359
|
+
/***/ 75:
|
|
3293
3360
|
/***/ (function(module, exports) {
|
|
3294
3361
|
|
|
3295
3362
|
module.exports = require("@splunk/charting-bundle");
|
|
3296
3363
|
|
|
3297
3364
|
/***/ }),
|
|
3298
3365
|
|
|
3299
|
-
/***/
|
|
3366
|
+
/***/ 76:
|
|
3300
3367
|
/***/ (function(module, exports) {
|
|
3301
3368
|
|
|
3302
3369
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
3303
3370
|
|
|
3304
3371
|
/***/ }),
|
|
3305
3372
|
|
|
3306
|
-
/***/
|
|
3373
|
+
/***/ 77:
|
|
3307
3374
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3308
3375
|
|
|
3309
3376
|
"use strict";
|
|
3310
3377
|
|
|
3311
3378
|
|
|
3312
|
-
var _toConsumableArray = __webpack_require__(
|
|
3379
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
3313
3380
|
|
|
3314
3381
|
var __rest = this && this.__rest || function (s, e) {
|
|
3315
3382
|
var t = {};
|
|
@@ -3329,7 +3396,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3329
3396
|
});
|
|
3330
3397
|
exports.shouldEnableSearchZoom = exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
|
|
3331
3398
|
|
|
3332
|
-
var lodash_1 = __webpack_require__(
|
|
3399
|
+
var lodash_1 = __webpack_require__(2);
|
|
3333
3400
|
/**
|
|
3334
3401
|
* Get formatted annotations
|
|
3335
3402
|
* @method getAnnotations
|
|
@@ -3542,46 +3609,13 @@ exports.shouldEnableSearchZoom = shouldEnableSearchZoom;
|
|
|
3542
3609
|
/***/ }),
|
|
3543
3610
|
|
|
3544
3611
|
/***/ 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
|
-
*/
|
|
3612
|
+
/***/ (function(module, exports) {
|
|
3576
3613
|
|
|
3577
|
-
|
|
3578
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3579
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
3580
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3614
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
3581
3615
|
|
|
3582
3616
|
/***/ }),
|
|
3583
3617
|
|
|
3584
|
-
/***/
|
|
3618
|
+
/***/ 84:
|
|
3585
3619
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3586
3620
|
|
|
3587
3621
|
"use strict";
|
|
@@ -3593,44 +3627,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3593
3627
|
exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
|
|
3594
3628
|
/* eslint-disable react/no-unused-prop-types */
|
|
3595
3629
|
|
|
3596
|
-
var lodash_1 = __webpack_require__(
|
|
3630
|
+
var lodash_1 = __webpack_require__(2);
|
|
3597
3631
|
|
|
3598
|
-
var i18n_1 = __webpack_require__(
|
|
3632
|
+
var i18n_1 = __webpack_require__(3);
|
|
3599
3633
|
|
|
3600
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3634
|
+
var visualization_color_palettes_1 = __webpack_require__(74);
|
|
3601
3635
|
|
|
3602
|
-
var react_1 = __webpack_require__(
|
|
3636
|
+
var react_1 = __webpack_require__(1);
|
|
3603
3637
|
|
|
3604
|
-
var React = __webpack_require__(
|
|
3638
|
+
var React = __webpack_require__(1);
|
|
3605
3639
|
|
|
3606
|
-
var T = __webpack_require__(
|
|
3640
|
+
var T = __webpack_require__(0);
|
|
3607
3641
|
|
|
3608
|
-
var react_event_listener_1 = __webpack_require__(
|
|
3642
|
+
var react_event_listener_1 = __webpack_require__(85);
|
|
3609
3643
|
|
|
3610
|
-
__webpack_require__(
|
|
3644
|
+
__webpack_require__(86); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
3611
3645
|
|
|
3612
3646
|
|
|
3613
|
-
var charting_bundle_1 = __webpack_require__(
|
|
3647
|
+
var charting_bundle_1 = __webpack_require__(75);
|
|
3614
3648
|
|
|
3615
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
3649
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
3616
3650
|
|
|
3617
|
-
var style_1 = __webpack_require__(
|
|
3651
|
+
var style_1 = __webpack_require__(18);
|
|
3618
3652
|
|
|
3619
3653
|
var styled_components_1 = __webpack_require__(4);
|
|
3620
3654
|
|
|
3621
|
-
var Message_1 = __webpack_require__(
|
|
3655
|
+
var Message_1 = __webpack_require__(11);
|
|
3622
3656
|
|
|
3623
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
3657
|
+
var useSplunkTheme_1 = __webpack_require__(76);
|
|
3624
3658
|
|
|
3625
|
-
var themeUtils_1 = __webpack_require__(
|
|
3659
|
+
var themeUtils_1 = __webpack_require__(87);
|
|
3626
3660
|
|
|
3627
|
-
var ChartingApi_1 = __webpack_require__(
|
|
3661
|
+
var ChartingApi_1 = __webpack_require__(88);
|
|
3628
3662
|
|
|
3629
|
-
var usePrevious_1 = __webpack_require__(
|
|
3663
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
3630
3664
|
|
|
3631
|
-
var useEventCallback_1 = __webpack_require__(
|
|
3665
|
+
var useEventCallback_1 = __webpack_require__(89);
|
|
3632
3666
|
|
|
3633
|
-
var dataUtils_1 = __webpack_require__(
|
|
3667
|
+
var dataUtils_1 = __webpack_require__(14);
|
|
3634
3668
|
|
|
3635
3669
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
3636
3670
|
|
|
@@ -3755,8 +3789,7 @@ var Charting = function Charting(props) {
|
|
|
3755
3789
|
onEventTrigger = props.onEventTrigger,
|
|
3756
3790
|
originalDataSources = props.originalDataSources,
|
|
3757
3791
|
onDownsamplingThresholdChange = props.onDownsamplingThresholdChange,
|
|
3758
|
-
xField = props.xField
|
|
3759
|
-
y2Fields = props.y2Fields;
|
|
3792
|
+
xField = props.xField;
|
|
3760
3793
|
var prevOptions = (0, usePrevious_1.default)(options);
|
|
3761
3794
|
var prevTimezone = (0, usePrevious_1.default)(timezone);
|
|
3762
3795
|
|
|
@@ -3799,14 +3832,13 @@ var Charting = function Charting(props) {
|
|
|
3799
3832
|
dataSources: originalDataSources,
|
|
3800
3833
|
width: Number(width),
|
|
3801
3834
|
selectChartEvent: selectChartEvent.current,
|
|
3802
|
-
xField: xField
|
|
3803
|
-
y2Fields: y2Fields
|
|
3835
|
+
xField: xField
|
|
3804
3836
|
});
|
|
3805
3837
|
|
|
3806
3838
|
if (Number.isFinite(newThreshold)) {
|
|
3807
3839
|
onDownsamplingThresholdChange(newThreshold);
|
|
3808
3840
|
}
|
|
3809
|
-
}, [enableSearchZoom, originalDataSources, onDownsamplingThresholdChange, width, xField
|
|
3841
|
+
}, [enableSearchZoom, originalDataSources, onDownsamplingThresholdChange, width, xField]);
|
|
3810
3842
|
React.useEffect(function () {
|
|
3811
3843
|
recalculateDownsamplingThreshold();
|
|
3812
3844
|
}, [recalculateDownsamplingThreshold]); // useEventCallback is used for these handlers to make sure that they are a stable reference and
|
|
@@ -4045,36 +4077,36 @@ exports.default = withEmptyChartMessage(Charting);
|
|
|
4045
4077
|
|
|
4046
4078
|
/***/ }),
|
|
4047
4079
|
|
|
4048
|
-
/***/
|
|
4080
|
+
/***/ 85:
|
|
4049
4081
|
/***/ (function(module, exports) {
|
|
4050
4082
|
|
|
4051
4083
|
module.exports = require("react-event-listener");
|
|
4052
4084
|
|
|
4053
4085
|
/***/ }),
|
|
4054
4086
|
|
|
4055
|
-
/***/
|
|
4087
|
+
/***/ 86:
|
|
4056
4088
|
/***/ (function(module, exports) {
|
|
4057
4089
|
|
|
4058
4090
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
4059
4091
|
|
|
4060
4092
|
/***/ }),
|
|
4061
4093
|
|
|
4062
|
-
/***/
|
|
4094
|
+
/***/ 87:
|
|
4063
4095
|
/***/ (function(module, exports) {
|
|
4064
4096
|
|
|
4065
4097
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
4066
4098
|
|
|
4067
4099
|
/***/ }),
|
|
4068
4100
|
|
|
4069
|
-
/***/
|
|
4101
|
+
/***/ 88:
|
|
4070
4102
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4071
4103
|
|
|
4072
4104
|
"use strict";
|
|
4073
4105
|
|
|
4074
4106
|
|
|
4075
|
-
var _classCallCheck = __webpack_require__(
|
|
4107
|
+
var _classCallCheck = __webpack_require__(8);
|
|
4076
4108
|
|
|
4077
|
-
var _createClass = __webpack_require__(
|
|
4109
|
+
var _createClass = __webpack_require__(24);
|
|
4078
4110
|
|
|
4079
4111
|
Object.defineProperty(exports, "__esModule", {
|
|
4080
4112
|
value: true
|
|
@@ -4135,14 +4167,7 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
|
4135
4167
|
|
|
4136
4168
|
/***/ }),
|
|
4137
4169
|
|
|
4138
|
-
/***/
|
|
4139
|
-
/***/ (function(module, exports) {
|
|
4140
|
-
|
|
4141
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
4142
|
-
|
|
4143
|
-
/***/ }),
|
|
4144
|
-
|
|
4145
|
-
/***/ 90:
|
|
4170
|
+
/***/ 89:
|
|
4146
4171
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4147
4172
|
|
|
4148
4173
|
"use strict";
|
|
@@ -4152,7 +4177,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4152
4177
|
value: true
|
|
4153
4178
|
});
|
|
4154
4179
|
|
|
4155
|
-
var react_1 = __webpack_require__(
|
|
4180
|
+
var react_1 = __webpack_require__(1);
|
|
4156
4181
|
|
|
4157
4182
|
var useEventCallback = function useEventCallback(fn) {
|
|
4158
4183
|
var ref = (0, react_1.useRef)(fn);
|
|
@@ -4168,7 +4193,14 @@ exports.default = useEventCallback;
|
|
|
4168
4193
|
|
|
4169
4194
|
/***/ }),
|
|
4170
4195
|
|
|
4171
|
-
/***/
|
|
4196
|
+
/***/ 9:
|
|
4197
|
+
/***/ (function(module, exports) {
|
|
4198
|
+
|
|
4199
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
4200
|
+
|
|
4201
|
+
/***/ }),
|
|
4202
|
+
|
|
4203
|
+
/***/ 90:
|
|
4172
4204
|
/***/ (function(module, exports) {
|
|
4173
4205
|
|
|
4174
4206
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|