@splunk/visualizations 26.2.1 → 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 +92 -595
- package/Area.config.js.map +1 -1
- package/Area.js +296 -801
- package/Area.js.map +1 -1
- package/Bar.config.js +93 -562
- package/Bar.config.js.map +1 -1
- package/Bar.js +299 -770
- package/Bar.js.map +1 -1
- package/Bubble.config.js +84 -483
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +286 -687
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +77 -202
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +272 -400
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +93 -600
- package/Column.config.js.map +1 -1
- package/Column.js +299 -808
- package/Column.js.map +1 -1
- package/Ellipse.config.js +82 -200
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +233 -356
- package/Ellipse.js.map +1 -1
- package/Events.config.js +62 -283
- package/Events.config.js.map +1 -1
- package/Events.js +326 -530
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +91 -220
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +267 -401
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +61 -157
- package/Image.config.js.map +1 -1
- package/Image.js +217 -327
- package/Image.js.map +1 -1
- package/Line.config.js +92 -607
- package/Line.config.js.map +1 -1
- package/Line.js +297 -814
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +75 -257
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +1755 -17415
- package/LinkGraph.js.map +1 -1
- package/MIGRATION.md +6 -0
- package/Map.config.js +128 -1123
- package/Map.config.js.map +1 -1
- package/Map.js +470 -782
- package/Map.js.map +1 -1
- package/Markdown.config.js +62 -189
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +272 -401
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +138 -298
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +309 -470
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +72 -192
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +333 -442
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +77 -241
- package/Pie.config.js.map +1 -1
- package/Pie.js +336 -471
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +72 -306
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +356 -583
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +211 -347
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +371 -509
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +72 -214
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +343 -475
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +86 -464
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +1118 -1493
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +124 -411
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +522 -789
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +73 -61
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +123 -380
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +508 -745
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +121 -385
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1642 -1885
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +39 -39
- package/SparkLine.js.map +1 -1
- package/Table.config.js +82 -496
- package/Table.config.js.map +1 -1
- package/Table.js +416 -825
- package/Table.js.map +1 -1
- package/common/Charting.js +37 -57
- package/common/Charting.js.map +1 -1
- package/common/DocExampleWithVizSandbox.js +21 -21
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +4 -4
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +4 -4
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +39 -40
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +2 -2
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +2 -2
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +10 -10
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +10 -10
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +25 -155
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +87 -105
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/featureFlagUtils.js +4 -4
- package/common/utils/featureFlagUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/mapUtils.js +51 -54
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +30 -18
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +7 -36
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +7 -6
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +93 -101
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +48 -50
- package/common/utils/layoutUtils.js +0 -115
- package/common/utils/layoutUtils.js.map +0 -1
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,35 +95,35 @@ 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("@
|
|
112
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
116
|
/***/ 11:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
119
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
123
|
/***/ 12:
|
|
124
124
|
/***/ (function(module, exports) {
|
|
125
125
|
|
|
126
|
-
module.exports = require("@
|
|
126
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
127
127
|
|
|
128
128
|
/***/ }),
|
|
129
129
|
|
|
@@ -145,9 +145,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
145
145
|
});
|
|
146
146
|
exports.downsampleDataSources = exports.calculateDownsamplingThreshold = exports.calculateThresholdOnRangeSelect = exports.isDownsamplingEnabledForViz = exports.convertToArrOfObjects = void 0;
|
|
147
147
|
|
|
148
|
-
var numberUtils_1 = __webpack_require__(
|
|
148
|
+
var numberUtils_1 = __webpack_require__(10);
|
|
149
149
|
|
|
150
|
-
var interfaces_1 = __webpack_require__(
|
|
150
|
+
var interfaces_1 = __webpack_require__(39); // TODO: utilize this fn in ParallelCoordinates
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
var convertToArrOfObjects = function convertToArrOfObjects(columns, fields) {
|
|
@@ -282,19 +282,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
|
|
|
282
282
|
*/
|
|
283
283
|
|
|
284
284
|
|
|
285
|
-
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
|
|
286
|
-
// 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
|
|
287
287
|
// Number() does not support and also allows loose coercion of hex numbers (but not other formats)
|
|
288
288
|
// We want to identify columns which contain at least one value that can be loosely coerced
|
|
289
|
+
|
|
289
290
|
var canLooselyCoerceSomeValues = column.findIndex(function (value) {
|
|
290
|
-
return (0, numberUtils_1.startsWithNumber)("".concat(value));
|
|
291
|
+
return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
|
|
291
292
|
}) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
|
|
292
293
|
|
|
293
294
|
var coercedColumn = [];
|
|
294
295
|
var canDownsampleColumn = !column.some(function (value) {
|
|
295
|
-
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
|
|
296
298
|
|
|
297
|
-
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) {
|
|
298
300
|
return true;
|
|
299
301
|
} // save value and continue to next
|
|
300
302
|
|
|
@@ -375,8 +377,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
375
377
|
dataSources = _ref3.dataSources,
|
|
376
378
|
selectChartEvent = _ref3.selectChartEvent,
|
|
377
379
|
width = _ref3.width,
|
|
378
|
-
xField = _ref3.xField
|
|
379
|
-
y2Fields = _ref3.y2Fields;
|
|
380
|
+
xField = _ref3.xField;
|
|
380
381
|
|
|
381
382
|
var _a, _b, _c;
|
|
382
383
|
|
|
@@ -413,14 +414,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
413
414
|
});
|
|
414
415
|
var lastIndex = fullSeries.findIndex(function (x) {
|
|
415
416
|
return downsampledSeries[endXIndex] === x;
|
|
416
|
-
});
|
|
417
|
-
// re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
|
|
418
|
-
// Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
|
|
419
|
-
// until SPL-259611 is fixed
|
|
420
|
-
|
|
421
|
-
if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
|
|
422
|
-
return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
|
|
423
|
-
}
|
|
417
|
+
});
|
|
424
418
|
|
|
425
419
|
if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
|
|
426
420
|
return (0, exports.calculateThresholdOnRangeSelect)({
|
|
@@ -431,6 +425,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
431
425
|
});
|
|
432
426
|
}
|
|
433
427
|
} catch (e) {
|
|
428
|
+
// eslint-disable-next-line no-console
|
|
434
429
|
console.error('Error occurred while setting downsample threshold on range select event', e);
|
|
435
430
|
}
|
|
436
431
|
|
|
@@ -469,7 +464,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
|
|
|
469
464
|
*/
|
|
470
465
|
|
|
471
466
|
|
|
472
|
-
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
|
|
467
|
+
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
|
|
473
468
|
var xColumn = [];
|
|
474
469
|
var yColumns = [];
|
|
475
470
|
var canDownsample = !ds.data.fields.some(function (field, index) {
|
|
@@ -483,7 +478,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
|
|
|
483
478
|
if (fieldName === xField) {
|
|
484
479
|
xColumn = strictlyCoerceXColumn(column, fieldType);
|
|
485
480
|
} else if (yFields.has(fieldName)) {
|
|
486
|
-
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
|
|
481
|
+
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
|
|
487
482
|
coercedColumn = _strictlyCoerceYColum.coercedColumn,
|
|
488
483
|
canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
|
|
489
484
|
canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
|
|
@@ -573,7 +568,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
573
568
|
return dataSources;
|
|
574
569
|
}
|
|
575
570
|
|
|
576
|
-
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
|
|
571
|
+
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
|
|
577
572
|
xColumn = _tryToCoerceAllDispla.xColumn,
|
|
578
573
|
yColumns = _tryToCoerceAllDispla.yColumns;
|
|
579
574
|
|
|
@@ -597,6 +592,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
597
592
|
return downsampledIndices.add(downsampleIndex);
|
|
598
593
|
});
|
|
599
594
|
} catch (e) {
|
|
595
|
+
// eslint-disable-next-line no-console
|
|
600
596
|
console.error("Error occurred while downsampling column ".concat(columnIndex), e);
|
|
601
597
|
}
|
|
602
598
|
}); // update data columns with downsampled columns
|
|
@@ -616,7 +612,7 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
616
612
|
|
|
617
613
|
/***/ }),
|
|
618
614
|
|
|
619
|
-
/***/
|
|
615
|
+
/***/ 151:
|
|
620
616
|
/***/ (function(module, exports) {
|
|
621
617
|
|
|
622
618
|
module.exports = require("@splunk/visualization-encoding/utils/dsl");
|
|
@@ -636,13 +632,13 @@ module.exports = require("@splunk/visualization-encoding/Options");
|
|
|
636
632
|
"use strict";
|
|
637
633
|
|
|
638
634
|
|
|
639
|
-
var _slicedToArray = __webpack_require__(
|
|
635
|
+
var _slicedToArray = __webpack_require__(5);
|
|
640
636
|
|
|
641
637
|
Object.defineProperty(exports, "__esModule", {
|
|
642
638
|
value: true
|
|
643
639
|
});
|
|
644
640
|
|
|
645
|
-
var React = __webpack_require__(
|
|
641
|
+
var React = __webpack_require__(1);
|
|
646
642
|
|
|
647
643
|
var styled_components_1 = __webpack_require__(4);
|
|
648
644
|
|
|
@@ -650,7 +646,7 @@ var style_1 = __webpack_require__(18);
|
|
|
650
646
|
|
|
651
647
|
var colorUtils_1 = __webpack_require__(15);
|
|
652
648
|
|
|
653
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
649
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
654
650
|
|
|
655
651
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
656
652
|
var width = _ref.width;
|
|
@@ -721,7 +717,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
721
717
|
|
|
722
718
|
return React.createElement(FixSizeItem, {
|
|
723
719
|
"data-test": "fix-size-item",
|
|
724
|
-
"data-splunk-visualization-version": "26.
|
|
720
|
+
"data-splunk-visualization-version": "26.4.0 - 04078274d",
|
|
725
721
|
width: width,
|
|
726
722
|
height: height,
|
|
727
723
|
backgroundColor: backgroundColor
|
|
@@ -750,7 +746,7 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
750
746
|
|
|
751
747
|
/***/ }),
|
|
752
748
|
|
|
753
|
-
/***/
|
|
749
|
+
/***/ 182:
|
|
754
750
|
/***/ (function(module, exports, __webpack_require__) {
|
|
755
751
|
|
|
756
752
|
"use strict";
|
|
@@ -774,27 +770,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
774
770
|
});
|
|
775
771
|
exports.config = exports.themes = exports.showPlaceHolderIcon = exports.computeVizProps = exports.PieInnerSize = void 0;
|
|
776
772
|
|
|
777
|
-
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
|
|
778
774
|
// eslint-disable-next-line import/order
|
|
779
775
|
|
|
780
776
|
|
|
781
|
-
var Charting_1 = __webpack_require__(
|
|
777
|
+
var Charting_1 = __webpack_require__(84);
|
|
782
778
|
|
|
783
|
-
var charting_bundle_1 = __webpack_require__(
|
|
779
|
+
var charting_bundle_1 = __webpack_require__(75);
|
|
784
780
|
|
|
785
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
781
|
+
var simpleXMLOptions_1 = __webpack_require__(90);
|
|
786
782
|
|
|
787
|
-
var config_1 = __webpack_require__(
|
|
783
|
+
var config_1 = __webpack_require__(451);
|
|
788
784
|
|
|
789
785
|
exports.config = config_1.default;
|
|
790
786
|
|
|
791
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
787
|
+
var withDashboardViz_1 = __webpack_require__(54);
|
|
792
788
|
|
|
793
|
-
var pieUtils_1 = __webpack_require__(
|
|
789
|
+
var pieUtils_1 = __webpack_require__(453);
|
|
794
790
|
|
|
795
|
-
var chartingUtils_1 = __webpack_require__(
|
|
791
|
+
var chartingUtils_1 = __webpack_require__(77);
|
|
796
792
|
|
|
797
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
793
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
798
794
|
|
|
799
795
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
800
796
|
exports.PieInnerSize = 0.7;
|
|
@@ -856,6 +852,10 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
856
852
|
computedProps.onClick = onEventTrigger;
|
|
857
853
|
}
|
|
858
854
|
|
|
855
|
+
if (computedProps.options.collapseExcludeZero) {
|
|
856
|
+
computedProps.chartData.seriesList = (0, pieUtils_1.removeColumnsThatOnlyContain0s)(computedProps.chartData.seriesList);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
859
|
return computedProps;
|
|
860
860
|
};
|
|
861
861
|
|
|
@@ -880,7 +880,14 @@ exports.default = Pie;
|
|
|
880
880
|
|
|
881
881
|
/***/ }),
|
|
882
882
|
|
|
883
|
-
/***/
|
|
883
|
+
/***/ 2:
|
|
884
|
+
/***/ (function(module, exports) {
|
|
885
|
+
|
|
886
|
+
module.exports = require("lodash");
|
|
887
|
+
|
|
888
|
+
/***/ }),
|
|
889
|
+
|
|
890
|
+
/***/ 20:
|
|
884
891
|
/***/ (function(module, exports, __webpack_require__) {
|
|
885
892
|
|
|
886
893
|
"use strict";
|
|
@@ -889,29 +896,21 @@ exports.default = Pie;
|
|
|
889
896
|
Object.defineProperty(exports, "__esModule", {
|
|
890
897
|
value: true
|
|
891
898
|
});
|
|
892
|
-
exports.validOutputModes = exports.
|
|
899
|
+
exports.validOutputModes = exports.validSortDirs = void 0;
|
|
893
900
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
894
|
-
exports.validSegmentationModes = ['none', 'inner'];
|
|
895
901
|
exports.validOutputModes = ['json_cols', 'json'];
|
|
896
902
|
|
|
897
903
|
/***/ }),
|
|
898
904
|
|
|
899
|
-
/***/ 2:
|
|
900
|
-
/***/ (function(module, exports) {
|
|
901
|
-
|
|
902
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
903
|
-
|
|
904
|
-
/***/ }),
|
|
905
|
-
|
|
906
905
|
/***/ 21:
|
|
907
906
|
/***/ (function(module, exports, __webpack_require__) {
|
|
908
907
|
|
|
909
908
|
"use strict";
|
|
910
909
|
|
|
911
910
|
|
|
912
|
-
var _classCallCheck = __webpack_require__(
|
|
911
|
+
var _classCallCheck = __webpack_require__(8);
|
|
913
912
|
|
|
914
|
-
var _createClass = __webpack_require__(
|
|
913
|
+
var _createClass = __webpack_require__(24);
|
|
915
914
|
|
|
916
915
|
Object.defineProperty(exports, "__esModule", {
|
|
917
916
|
value: true
|
|
@@ -1006,123 +1005,41 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
1006
1005
|
/***/ 24:
|
|
1007
1006
|
/***/ (function(module, exports) {
|
|
1008
1007
|
|
|
1009
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
1010
|
-
|
|
1011
|
-
/***/ }),
|
|
1012
|
-
|
|
1013
|
-
/***/ 25:
|
|
1014
|
-
/***/ (function(module, exports) {
|
|
1015
|
-
|
|
1016
1008
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1017
1009
|
|
|
1018
1010
|
/***/ }),
|
|
1019
1011
|
|
|
1020
|
-
/***/
|
|
1012
|
+
/***/ 25:
|
|
1021
1013
|
/***/ (function(module, exports) {
|
|
1022
1014
|
|
|
1023
1015
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
1024
1016
|
|
|
1025
1017
|
/***/ }),
|
|
1026
1018
|
|
|
1027
|
-
/***/
|
|
1019
|
+
/***/ 26:
|
|
1028
1020
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1029
1021
|
|
|
1030
1022
|
"use strict";
|
|
1031
1023
|
|
|
1032
1024
|
|
|
1033
|
-
var _toConsumableArray = __webpack_require__(
|
|
1034
|
-
|
|
1035
|
-
var _defineProperty = __webpack_require__(9);
|
|
1036
|
-
|
|
1037
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
1038
|
-
var t = {};
|
|
1039
|
-
|
|
1040
|
-
for (var p in s) {
|
|
1041
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1045
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
1046
|
-
}
|
|
1047
|
-
return t;
|
|
1048
|
-
};
|
|
1025
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
1049
1026
|
|
|
1050
1027
|
Object.defineProperty(exports, "__esModule", {
|
|
1051
1028
|
value: true
|
|
1052
1029
|
});
|
|
1053
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.
|
|
1030
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
1054
1031
|
|
|
1055
|
-
var lodash_1 = __webpack_require__(
|
|
1032
|
+
var lodash_1 = __webpack_require__(2); // included for backwards compatibility
|
|
1056
1033
|
|
|
1057
|
-
var schemaUtils_1 = __webpack_require__(24);
|
|
1058
1034
|
|
|
1059
|
-
var
|
|
1060
|
-
|
|
1061
|
-
var dynamicOptionsDSLType = {
|
|
1062
|
-
type: 'string',
|
|
1063
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
1064
|
-
};
|
|
1065
|
-
/**
|
|
1066
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
1067
|
-
* @param optionsSchema a visualization's options schema
|
|
1068
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
1069
|
-
*/
|
|
1070
|
-
|
|
1071
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
1072
|
-
var enhancedOptionsSchema = {};
|
|
1073
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
1074
|
-
var _a = optionsSchema[key],
|
|
1075
|
-
title = _a.title,
|
|
1076
|
-
description = _a.description,
|
|
1077
|
-
readOnly = _a.readOnly,
|
|
1078
|
-
writeOnly = _a.writeOnly,
|
|
1079
|
-
examples = _a.examples,
|
|
1080
|
-
defaultValue = _a.default,
|
|
1081
|
-
type = _a.type,
|
|
1082
|
-
properties = _a.properties,
|
|
1083
|
-
patternProperties = _a.patternProperties,
|
|
1084
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
1085
|
-
|
|
1086
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
1087
|
-
title: title
|
|
1088
|
-
}), description !== undefined && {
|
|
1089
|
-
description: description
|
|
1090
|
-
}), readOnly !== undefined && {
|
|
1091
|
-
readOnly: readOnly
|
|
1092
|
-
}), writeOnly !== undefined && {
|
|
1093
|
-
writeOnly: writeOnly
|
|
1094
|
-
}), examples !== undefined && {
|
|
1095
|
-
examples: examples
|
|
1096
|
-
}), defaultValue !== undefined && {
|
|
1097
|
-
default: defaultValue
|
|
1098
|
-
});
|
|
1099
|
-
|
|
1100
|
-
if (type === 'object') {
|
|
1101
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
1102
|
-
type: type
|
|
1103
|
-
}), properties && {
|
|
1104
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
1105
|
-
});
|
|
1106
|
-
|
|
1107
|
-
if (patternProperties) {
|
|
1108
|
-
var enhancedPatternProperties = {};
|
|
1109
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
1110
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
1111
|
-
});
|
|
1112
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
1113
|
-
}
|
|
1114
|
-
} else {
|
|
1115
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
1116
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
1117
|
-
type: type
|
|
1118
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
});
|
|
1122
|
-
return enhancedOptionsSchema;
|
|
1123
|
-
}
|
|
1035
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1124
1036
|
|
|
1125
|
-
exports
|
|
1037
|
+
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
1038
|
+
enumerable: true,
|
|
1039
|
+
get: function get() {
|
|
1040
|
+
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1126
1043
|
/**
|
|
1127
1044
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
1128
1045
|
* this function also collapse all editor panels
|
|
@@ -1133,11 +1050,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
1133
1050
|
|
|
1134
1051
|
function enhanceConfig(vizConfig) {
|
|
1135
1052
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
1136
|
-
|
|
1137
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
1138
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
1053
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
1142
1054
|
return Object.assign(Object.assign({}, config), {
|
|
1143
1055
|
open: config.open || false
|
|
@@ -1261,42 +1173,42 @@ exports.insertLayout = insertLayout;
|
|
|
1261
1173
|
|
|
1262
1174
|
/***/ }),
|
|
1263
1175
|
|
|
1264
|
-
/***/
|
|
1176
|
+
/***/ 27:
|
|
1265
1177
|
/***/ (function(module, exports) {
|
|
1266
1178
|
|
|
1267
1179
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
1268
1180
|
|
|
1269
1181
|
/***/ }),
|
|
1270
1182
|
|
|
1271
|
-
/***/
|
|
1183
|
+
/***/ 29:
|
|
1272
1184
|
/***/ (function(module, exports) {
|
|
1273
1185
|
|
|
1274
|
-
module.exports = require("
|
|
1186
|
+
module.exports = require("@splunk/themes/pick");
|
|
1275
1187
|
|
|
1276
1188
|
/***/ }),
|
|
1277
1189
|
|
|
1278
|
-
/***/
|
|
1190
|
+
/***/ 3:
|
|
1279
1191
|
/***/ (function(module, exports) {
|
|
1280
1192
|
|
|
1281
|
-
module.exports = require("@splunk/
|
|
1193
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
1282
1194
|
|
|
1283
1195
|
/***/ }),
|
|
1284
1196
|
|
|
1285
|
-
/***/
|
|
1197
|
+
/***/ 30:
|
|
1286
1198
|
/***/ (function(module, exports) {
|
|
1287
1199
|
|
|
1288
1200
|
module.exports = require("@splunk/ui-utils/id");
|
|
1289
1201
|
|
|
1290
1202
|
/***/ }),
|
|
1291
1203
|
|
|
1292
|
-
/***/
|
|
1204
|
+
/***/ 31:
|
|
1293
1205
|
/***/ (function(module, exports) {
|
|
1294
1206
|
|
|
1295
1207
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1296
1208
|
|
|
1297
1209
|
/***/ }),
|
|
1298
1210
|
|
|
1299
|
-
/***/
|
|
1211
|
+
/***/ 32:
|
|
1300
1212
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1301
1213
|
|
|
1302
1214
|
"use strict";
|
|
@@ -1306,7 +1218,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1306
1218
|
value: true
|
|
1307
1219
|
});
|
|
1308
1220
|
|
|
1309
|
-
var react_1 = __webpack_require__(
|
|
1221
|
+
var react_1 = __webpack_require__(1);
|
|
1310
1222
|
|
|
1311
1223
|
function usePrevious(value) {
|
|
1312
1224
|
var ref = (0, react_1.useRef)();
|
|
@@ -1320,28 +1232,28 @@ exports.default = usePrevious;
|
|
|
1320
1232
|
|
|
1321
1233
|
/***/ }),
|
|
1322
1234
|
|
|
1323
|
-
/***/
|
|
1235
|
+
/***/ 33:
|
|
1324
1236
|
/***/ (function(module, exports) {
|
|
1325
1237
|
|
|
1326
1238
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1327
1239
|
|
|
1328
1240
|
/***/ }),
|
|
1329
1241
|
|
|
1330
|
-
/***/
|
|
1242
|
+
/***/ 34:
|
|
1331
1243
|
/***/ (function(module, exports) {
|
|
1332
1244
|
|
|
1333
1245
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1334
1246
|
|
|
1335
1247
|
/***/ }),
|
|
1336
1248
|
|
|
1337
|
-
/***/
|
|
1249
|
+
/***/ 35:
|
|
1338
1250
|
/***/ (function(module, exports) {
|
|
1339
1251
|
|
|
1340
1252
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
1341
1253
|
|
|
1342
1254
|
/***/ }),
|
|
1343
1255
|
|
|
1344
|
-
/***/
|
|
1256
|
+
/***/ 36:
|
|
1345
1257
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1346
1258
|
|
|
1347
1259
|
"use strict";
|
|
@@ -1352,15 +1264,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1352
1264
|
});
|
|
1353
1265
|
exports.shouldShowIconPlaceholder = void 0;
|
|
1354
1266
|
|
|
1355
|
-
var React = __webpack_require__(
|
|
1267
|
+
var React = __webpack_require__(1);
|
|
1356
1268
|
|
|
1357
|
-
var T = __webpack_require__(
|
|
1269
|
+
var T = __webpack_require__(0);
|
|
1358
1270
|
|
|
1359
|
-
var lodash_1 = __webpack_require__(
|
|
1271
|
+
var lodash_1 = __webpack_require__(2);
|
|
1360
1272
|
|
|
1361
|
-
var i18n_1 = __webpack_require__(
|
|
1273
|
+
var i18n_1 = __webpack_require__(3);
|
|
1362
1274
|
|
|
1363
|
-
var Message_1 = __webpack_require__(
|
|
1275
|
+
var Message_1 = __webpack_require__(11);
|
|
1364
1276
|
|
|
1365
1277
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
1366
1278
|
/**
|
|
@@ -1434,24 +1346,24 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
1434
1346
|
|
|
1435
1347
|
/***/ }),
|
|
1436
1348
|
|
|
1437
|
-
/***/
|
|
1349
|
+
/***/ 37:
|
|
1438
1350
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1439
1351
|
|
|
1440
1352
|
"use strict";
|
|
1441
1353
|
|
|
1442
1354
|
|
|
1443
|
-
var _defineProperty = __webpack_require__(
|
|
1355
|
+
var _defineProperty = __webpack_require__(12);
|
|
1444
1356
|
|
|
1445
1357
|
Object.defineProperty(exports, "__esModule", {
|
|
1446
1358
|
value: true
|
|
1447
1359
|
});
|
|
1448
1360
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1449
1361
|
|
|
1450
|
-
var T = __webpack_require__(
|
|
1362
|
+
var T = __webpack_require__(0);
|
|
1451
1363
|
|
|
1452
|
-
var lodash_1 = __webpack_require__(
|
|
1364
|
+
var lodash_1 = __webpack_require__(2);
|
|
1453
1365
|
|
|
1454
|
-
var DataSource_1 = __webpack_require__(
|
|
1366
|
+
var DataSource_1 = __webpack_require__(20);
|
|
1455
1367
|
|
|
1456
1368
|
exports.SortParamsPropTypes = T.shape({
|
|
1457
1369
|
currentSortKey: T.string,
|
|
@@ -1505,7 +1417,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1505
1417
|
|
|
1506
1418
|
/***/ }),
|
|
1507
1419
|
|
|
1508
|
-
/***/
|
|
1420
|
+
/***/ 38:
|
|
1509
1421
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1510
1422
|
|
|
1511
1423
|
"use strict";
|
|
@@ -1516,9 +1428,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1516
1428
|
});
|
|
1517
1429
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1518
1430
|
|
|
1519
|
-
var T = __webpack_require__(
|
|
1431
|
+
var T = __webpack_require__(0);
|
|
1520
1432
|
|
|
1521
|
-
var lodash_1 = __webpack_require__(
|
|
1433
|
+
var lodash_1 = __webpack_require__(2);
|
|
1522
1434
|
|
|
1523
1435
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1524
1436
|
isPaging: T.bool,
|
|
@@ -1570,14 +1482,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1570
1482
|
|
|
1571
1483
|
/***/ }),
|
|
1572
1484
|
|
|
1573
|
-
/***/
|
|
1574
|
-
/***/ (function(module, exports) {
|
|
1575
|
-
|
|
1576
|
-
module.exports = require("styled-components");
|
|
1577
|
-
|
|
1578
|
-
/***/ }),
|
|
1579
|
-
|
|
1580
|
-
/***/ 40:
|
|
1485
|
+
/***/ 39:
|
|
1581
1486
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1582
1487
|
|
|
1583
1488
|
"use strict";
|
|
@@ -1612,11 +1517,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1612
1517
|
value: true
|
|
1613
1518
|
});
|
|
1614
1519
|
|
|
1520
|
+
__exportStar(__webpack_require__(40), exports);
|
|
1521
|
+
|
|
1615
1522
|
__exportStar(__webpack_require__(41), exports);
|
|
1616
1523
|
|
|
1617
|
-
__exportStar(__webpack_require__(
|
|
1524
|
+
__exportStar(__webpack_require__(20), exports);
|
|
1618
1525
|
|
|
1619
|
-
__exportStar(__webpack_require__(
|
|
1526
|
+
__exportStar(__webpack_require__(42), exports);
|
|
1620
1527
|
|
|
1621
1528
|
__exportStar(__webpack_require__(43), exports);
|
|
1622
1529
|
|
|
@@ -1628,16 +1535,16 @@ __exportStar(__webpack_require__(46), exports);
|
|
|
1628
1535
|
|
|
1629
1536
|
__exportStar(__webpack_require__(47), exports);
|
|
1630
1537
|
|
|
1631
|
-
__exportStar(__webpack_require__(48), exports);
|
|
1632
|
-
|
|
1633
|
-
__exportStar(__webpack_require__(49), exports);
|
|
1634
|
-
|
|
1635
1538
|
__exportStar(__webpack_require__(21), exports);
|
|
1636
1539
|
|
|
1637
|
-
__exportStar(__webpack_require__(
|
|
1540
|
+
__exportStar(__webpack_require__(7), exports);
|
|
1638
1541
|
|
|
1639
1542
|
__exportStar(__webpack_require__(22), exports);
|
|
1640
1543
|
|
|
1544
|
+
__exportStar(__webpack_require__(48), exports);
|
|
1545
|
+
|
|
1546
|
+
__exportStar(__webpack_require__(49), exports);
|
|
1547
|
+
|
|
1641
1548
|
__exportStar(__webpack_require__(50), exports);
|
|
1642
1549
|
|
|
1643
1550
|
__exportStar(__webpack_require__(51), exports);
|
|
@@ -1646,13 +1553,16 @@ __exportStar(__webpack_require__(52), exports);
|
|
|
1646
1553
|
|
|
1647
1554
|
__exportStar(__webpack_require__(53), exports);
|
|
1648
1555
|
|
|
1649
|
-
|
|
1556
|
+
/***/ }),
|
|
1557
|
+
|
|
1558
|
+
/***/ 4:
|
|
1559
|
+
/***/ (function(module, exports) {
|
|
1650
1560
|
|
|
1651
|
-
|
|
1561
|
+
module.exports = require("styled-components");
|
|
1652
1562
|
|
|
1653
1563
|
/***/ }),
|
|
1654
1564
|
|
|
1655
|
-
/***/
|
|
1565
|
+
/***/ 40:
|
|
1656
1566
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1657
1567
|
|
|
1658
1568
|
"use strict";
|
|
@@ -1664,7 +1574,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1664
1574
|
|
|
1665
1575
|
/***/ }),
|
|
1666
1576
|
|
|
1667
|
-
/***/
|
|
1577
|
+
/***/ 41:
|
|
1668
1578
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1669
1579
|
|
|
1670
1580
|
"use strict";
|
|
@@ -1679,7 +1589,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1679
1589
|
|
|
1680
1590
|
/***/ }),
|
|
1681
1591
|
|
|
1682
|
-
/***/
|
|
1592
|
+
/***/ 42:
|
|
1683
1593
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1684
1594
|
|
|
1685
1595
|
"use strict";
|
|
@@ -1691,7 +1601,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1691
1601
|
|
|
1692
1602
|
/***/ }),
|
|
1693
1603
|
|
|
1694
|
-
/***/
|
|
1604
|
+
/***/ 43:
|
|
1695
1605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1696
1606
|
|
|
1697
1607
|
"use strict";
|
|
@@ -1703,7 +1613,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1703
1613
|
|
|
1704
1614
|
/***/ }),
|
|
1705
1615
|
|
|
1706
|
-
/***/
|
|
1616
|
+
/***/ 44:
|
|
1707
1617
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1708
1618
|
|
|
1709
1619
|
"use strict";
|
|
@@ -1715,7 +1625,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1715
1625
|
|
|
1716
1626
|
/***/ }),
|
|
1717
1627
|
|
|
1718
|
-
/***/
|
|
1628
|
+
/***/ 45:
|
|
1719
1629
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1720
1630
|
|
|
1721
1631
|
"use strict";
|
|
@@ -1727,7 +1637,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1727
1637
|
|
|
1728
1638
|
/***/ }),
|
|
1729
1639
|
|
|
1730
|
-
/***/
|
|
1640
|
+
/***/ 450:
|
|
1731
1641
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1732
1642
|
|
|
1733
1643
|
"use strict";
|
|
@@ -1763,9 +1673,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1763
1673
|
});
|
|
1764
1674
|
exports.default = void 0;
|
|
1765
1675
|
|
|
1766
|
-
__exportStar(__webpack_require__(
|
|
1676
|
+
__exportStar(__webpack_require__(182), exports);
|
|
1767
1677
|
|
|
1768
|
-
var Pie_1 = __webpack_require__(
|
|
1678
|
+
var Pie_1 = __webpack_require__(182);
|
|
1769
1679
|
|
|
1770
1680
|
Object.defineProperty(exports, "default", {
|
|
1771
1681
|
enumerable: true,
|
|
@@ -1776,7 +1686,7 @@ Object.defineProperty(exports, "default", {
|
|
|
1776
1686
|
|
|
1777
1687
|
/***/ }),
|
|
1778
1688
|
|
|
1779
|
-
/***/
|
|
1689
|
+
/***/ 451:
|
|
1780
1690
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1781
1691
|
|
|
1782
1692
|
"use strict";
|
|
@@ -1786,27 +1696,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1786
1696
|
value: true
|
|
1787
1697
|
});
|
|
1788
1698
|
|
|
1789
|
-
var ChartPie_1 = __webpack_require__(
|
|
1699
|
+
var ChartPie_1 = __webpack_require__(452);
|
|
1790
1700
|
|
|
1791
|
-
var placeholders_1 = __webpack_require__(
|
|
1701
|
+
var placeholders_1 = __webpack_require__(70);
|
|
1792
1702
|
|
|
1793
|
-
var i18n_1 = __webpack_require__(
|
|
1703
|
+
var i18n_1 = __webpack_require__(3);
|
|
1794
1704
|
|
|
1795
|
-
var
|
|
1705
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1796
1706
|
|
|
1797
|
-
var
|
|
1798
|
-
|
|
1799
|
-
var pick_1 = __webpack_require__(30);
|
|
1707
|
+
var pick_1 = __webpack_require__(29);
|
|
1800
1708
|
|
|
1801
1709
|
var variables_1 = __webpack_require__(13);
|
|
1802
1710
|
|
|
1803
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1711
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
1804
1712
|
|
|
1805
1713
|
var VizCategory_1 = __webpack_require__(22);
|
|
1806
1714
|
|
|
1807
|
-
var configUtils_1 = __webpack_require__(
|
|
1715
|
+
var configUtils_1 = __webpack_require__(26);
|
|
1808
1716
|
|
|
1809
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
1717
|
+
var BackgroundColor_1 = __webpack_require__(72);
|
|
1810
1718
|
|
|
1811
1719
|
var dataContract = {
|
|
1812
1720
|
requiredDataSources: [{
|
|
@@ -1831,78 +1739,6 @@ var size = {
|
|
|
1831
1739
|
initialHeight: 300
|
|
1832
1740
|
};
|
|
1833
1741
|
var defaultContext = {};
|
|
1834
|
-
var optionsSchema = {
|
|
1835
|
-
backgroundColor: {
|
|
1836
|
-
default: '> themes.defaultBackgroundColor',
|
|
1837
|
-
description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
1838
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1839
|
-
type: 'string'
|
|
1840
|
-
},
|
|
1841
|
-
collapseLabel: {
|
|
1842
|
-
description: 'Specify the label for the consolidated slice.',
|
|
1843
|
-
type: 'string',
|
|
1844
|
-
default: 'other'
|
|
1845
|
-
},
|
|
1846
|
-
collapseThreshold: {
|
|
1847
|
-
description: 'Specify the size threshold as a number between 0 and 1 (inclusive), of the whole pie at which slices collapse into one consolidated slice.',
|
|
1848
|
-
type: 'number',
|
|
1849
|
-
default: 0.01
|
|
1850
|
-
},
|
|
1851
|
-
label: {
|
|
1852
|
-
description: 'List of string values to display the pie chart labels.',
|
|
1853
|
-
type: 'array',
|
|
1854
|
-
items: {
|
|
1855
|
-
type: 'string'
|
|
1856
|
-
},
|
|
1857
|
-
default: '> primary | seriesByIndex(0)'
|
|
1858
|
-
},
|
|
1859
|
-
labelField: {
|
|
1860
|
-
default: '> label | getField()',
|
|
1861
|
-
description: 'Specify the field that corresponds to the labels.',
|
|
1862
|
-
type: 'string'
|
|
1863
|
-
},
|
|
1864
|
-
labelDisplay: {
|
|
1865
|
-
description: 'Specify whether to display the labels and/or slice percentages.',
|
|
1866
|
-
type: 'string',
|
|
1867
|
-
pattern: (0, schemaUtils_1.getPattern)(['values', 'valuesAndPercentage', 'off']),
|
|
1868
|
-
default: 'values'
|
|
1869
|
-
},
|
|
1870
|
-
resultLimit: {
|
|
1871
|
-
default: 50000,
|
|
1872
|
-
description: 'Specify the number of data points rendered in a chart.',
|
|
1873
|
-
type: 'number'
|
|
1874
|
-
},
|
|
1875
|
-
seriesColors: {
|
|
1876
|
-
default: visualization_color_palettes_1.VIZ_CATEGORICAL,
|
|
1877
|
-
description: 'Specify the colors used for a series. For example, ["#FF0000", "#0000FF", "#008000"].',
|
|
1878
|
-
type: 'array',
|
|
1879
|
-
items: {
|
|
1880
|
-
type: 'string'
|
|
1881
|
-
}
|
|
1882
|
-
},
|
|
1883
|
-
seriesColorsByField: {
|
|
1884
|
-
description: 'Specify the colors used for specific pie slice labels. For example: {"April": "#008000", "May": "#FFA500"}.',
|
|
1885
|
-
type: 'object'
|
|
1886
|
-
},
|
|
1887
|
-
showDonutHole: {
|
|
1888
|
-
default: false,
|
|
1889
|
-
description: 'Specify whether the pie should be a donut.',
|
|
1890
|
-
type: 'boolean'
|
|
1891
|
-
},
|
|
1892
|
-
value: {
|
|
1893
|
-
description: 'List of numerical values to power the pie chart.',
|
|
1894
|
-
type: 'array',
|
|
1895
|
-
items: {
|
|
1896
|
-
type: 'number'
|
|
1897
|
-
},
|
|
1898
|
-
default: '> primary | seriesByIndex(1)'
|
|
1899
|
-
},
|
|
1900
|
-
valueField: {
|
|
1901
|
-
default: '> value | getField()',
|
|
1902
|
-
description: 'Specify the field that corresponds to the data powering values.',
|
|
1903
|
-
type: 'string'
|
|
1904
|
-
}
|
|
1905
|
-
};
|
|
1906
1742
|
var themes = {
|
|
1907
1743
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
1908
1744
|
return (0, pick_1.default)({
|
|
@@ -1973,6 +1809,10 @@ var editorConfig = [{
|
|
|
1973
1809
|
max: 1,
|
|
1974
1810
|
step: 0.01
|
|
1975
1811
|
}
|
|
1812
|
+
}], [{
|
|
1813
|
+
label: (0, i18n_1._)('Exclude zeros in the collapsed slice'),
|
|
1814
|
+
option: 'collapseExcludeZero',
|
|
1815
|
+
editor: 'editor.toggle'
|
|
1976
1816
|
}], [{
|
|
1977
1817
|
label: (0, i18n_1._)('Collapsed slice label'),
|
|
1978
1818
|
option: 'collapseLabel',
|
|
@@ -2012,7 +1852,7 @@ var config = {
|
|
|
2012
1852
|
dataContract: dataContract,
|
|
2013
1853
|
size: size,
|
|
2014
1854
|
defaultContext: defaultContext,
|
|
2015
|
-
optionsSchema:
|
|
1855
|
+
optionsSchema: visualization_schemas_1.pieOptionsSchema,
|
|
2016
1856
|
editorConfig: editorConfig,
|
|
2017
1857
|
events: {
|
|
2018
1858
|
'point.click': {
|
|
@@ -2026,14 +1866,14 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
|
2026
1866
|
|
|
2027
1867
|
/***/ }),
|
|
2028
1868
|
|
|
2029
|
-
/***/
|
|
1869
|
+
/***/ 452:
|
|
2030
1870
|
/***/ (function(module, exports) {
|
|
2031
1871
|
|
|
2032
1872
|
module.exports = require("@splunk/react-icons/enterprise/ChartPie");
|
|
2033
1873
|
|
|
2034
1874
|
/***/ }),
|
|
2035
1875
|
|
|
2036
|
-
/***/
|
|
1876
|
+
/***/ 453:
|
|
2037
1877
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2038
1878
|
|
|
2039
1879
|
"use strict";
|
|
@@ -2055,17 +1895,17 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
2055
1895
|
Object.defineProperty(exports, "__esModule", {
|
|
2056
1896
|
value: true
|
|
2057
1897
|
});
|
|
2058
|
-
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;
|
|
2059
1899
|
|
|
2060
|
-
var lodash_1 = __webpack_require__(
|
|
1900
|
+
var lodash_1 = __webpack_require__(2);
|
|
2061
1901
|
|
|
2062
|
-
var propUtils_1 = __webpack_require__(
|
|
1902
|
+
var propUtils_1 = __webpack_require__(35);
|
|
2063
1903
|
|
|
2064
|
-
var dsl_1 = __webpack_require__(
|
|
1904
|
+
var dsl_1 = __webpack_require__(151);
|
|
2065
1905
|
|
|
2066
|
-
var hocUtils_1 = __webpack_require__(
|
|
1906
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
2067
1907
|
|
|
2068
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1908
|
+
var JSONSchemaUtils_1 = __webpack_require__(34); // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
|
|
2069
1909
|
// map for key names which are either new or not present in SimpleXML options mapping
|
|
2070
1910
|
|
|
2071
1911
|
|
|
@@ -2223,21 +2063,31 @@ var allInvalidDataValues = function allInvalidDataValues(dataSources, options, v
|
|
|
2223
2063
|
|
|
2224
2064
|
exports.allInvalidDataValues = allInvalidDataValues;
|
|
2225
2065
|
|
|
2226
|
-
|
|
2066
|
+
var removeColumnsThatOnlyContain0s = function removeColumnsThatOnlyContain0s(seriesList) {
|
|
2067
|
+
var names = seriesList[0];
|
|
2068
|
+
var values = seriesList[1];
|
|
2069
|
+
var returnSeriesList = [[], []];
|
|
2227
2070
|
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
"use strict";
|
|
2071
|
+
if (!Array.isArray(seriesList) || !Array.isArray(names) || !Array.isArray(values)) {
|
|
2072
|
+
return seriesList;
|
|
2073
|
+
}
|
|
2232
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
|
+
};
|
|
2233
2085
|
|
|
2234
|
-
|
|
2235
|
-
value: true
|
|
2236
|
-
});
|
|
2086
|
+
exports.removeColumnsThatOnlyContain0s = removeColumnsThatOnlyContain0s;
|
|
2237
2087
|
|
|
2238
2088
|
/***/ }),
|
|
2239
2089
|
|
|
2240
|
-
/***/
|
|
2090
|
+
/***/ 46:
|
|
2241
2091
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2242
2092
|
|
|
2243
2093
|
"use strict";
|
|
@@ -2249,7 +2099,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2249
2099
|
|
|
2250
2100
|
/***/ }),
|
|
2251
2101
|
|
|
2252
|
-
/***/
|
|
2102
|
+
/***/ 47:
|
|
2253
2103
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2254
2104
|
|
|
2255
2105
|
"use strict";
|
|
@@ -2261,7 +2111,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2261
2111
|
|
|
2262
2112
|
/***/ }),
|
|
2263
2113
|
|
|
2264
|
-
/***/
|
|
2114
|
+
/***/ 48:
|
|
2265
2115
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2266
2116
|
|
|
2267
2117
|
"use strict";
|
|
@@ -2273,7 +2123,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2273
2123
|
|
|
2274
2124
|
/***/ }),
|
|
2275
2125
|
|
|
2276
|
-
/***/
|
|
2126
|
+
/***/ 49:
|
|
2277
2127
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2278
2128
|
|
|
2279
2129
|
"use strict";
|
|
@@ -2285,7 +2135,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2285
2135
|
|
|
2286
2136
|
/***/ }),
|
|
2287
2137
|
|
|
2288
|
-
/***/
|
|
2138
|
+
/***/ 5:
|
|
2139
|
+
/***/ (function(module, exports) {
|
|
2140
|
+
|
|
2141
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
2142
|
+
|
|
2143
|
+
/***/ }),
|
|
2144
|
+
|
|
2145
|
+
/***/ 50:
|
|
2289
2146
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2290
2147
|
|
|
2291
2148
|
"use strict";
|
|
@@ -2297,7 +2154,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2297
2154
|
|
|
2298
2155
|
/***/ }),
|
|
2299
2156
|
|
|
2300
|
-
/***/
|
|
2157
|
+
/***/ 51:
|
|
2301
2158
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2302
2159
|
|
|
2303
2160
|
"use strict";
|
|
@@ -2309,7 +2166,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2309
2166
|
|
|
2310
2167
|
/***/ }),
|
|
2311
2168
|
|
|
2312
|
-
/***/
|
|
2169
|
+
/***/ 52:
|
|
2313
2170
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2314
2171
|
|
|
2315
2172
|
"use strict";
|
|
@@ -2321,7 +2178,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2321
2178
|
|
|
2322
2179
|
/***/ }),
|
|
2323
2180
|
|
|
2324
|
-
/***/
|
|
2181
|
+
/***/ 53:
|
|
2325
2182
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2326
2183
|
|
|
2327
2184
|
"use strict";
|
|
@@ -2333,65 +2190,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2333
2190
|
|
|
2334
2191
|
/***/ }),
|
|
2335
2192
|
|
|
2336
|
-
/***/
|
|
2193
|
+
/***/ 54:
|
|
2337
2194
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2338
2195
|
|
|
2339
2196
|
"use strict";
|
|
2340
2197
|
|
|
2341
2198
|
|
|
2342
|
-
var _slicedToArray = __webpack_require__(
|
|
2199
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2343
2200
|
|
|
2344
2201
|
Object.defineProperty(exports, "__esModule", {
|
|
2345
2202
|
value: true
|
|
2346
2203
|
});
|
|
2347
2204
|
|
|
2348
|
-
var React = __webpack_require__(
|
|
2205
|
+
var React = __webpack_require__(1);
|
|
2349
2206
|
|
|
2350
|
-
var lodash_1 = __webpack_require__(
|
|
2207
|
+
var lodash_1 = __webpack_require__(2);
|
|
2351
2208
|
|
|
2352
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
2209
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(55);
|
|
2353
2210
|
|
|
2354
2211
|
var Options_1 = __webpack_require__(16);
|
|
2355
2212
|
|
|
2356
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
2213
|
+
var SanitizeProps_1 = __webpack_require__(56);
|
|
2357
2214
|
|
|
2358
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2215
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
2359
2216
|
|
|
2360
|
-
var moment_1 = __webpack_require__(
|
|
2217
|
+
var moment_1 = __webpack_require__(57);
|
|
2361
2218
|
|
|
2362
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
2219
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
2363
2220
|
|
|
2364
2221
|
var styled_components_1 = __webpack_require__(4);
|
|
2365
2222
|
|
|
2366
|
-
var hocUtils_1 = __webpack_require__(
|
|
2223
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
2367
2224
|
|
|
2368
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
2225
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
2369
2226
|
|
|
2370
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
2227
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(58);
|
|
2371
2228
|
|
|
2372
|
-
var id_1 = __webpack_require__(
|
|
2229
|
+
var id_1 = __webpack_require__(30);
|
|
2373
2230
|
|
|
2374
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
2231
|
+
var SplunkVisualization_1 = __webpack_require__(59);
|
|
2375
2232
|
|
|
2376
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2233
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
2377
2234
|
|
|
2378
|
-
var getSorting_1 = __webpack_require__(
|
|
2235
|
+
var getSorting_1 = __webpack_require__(37);
|
|
2379
2236
|
|
|
2380
|
-
var getPagination_1 = __webpack_require__(
|
|
2237
|
+
var getPagination_1 = __webpack_require__(38);
|
|
2381
2238
|
|
|
2382
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
2239
|
+
var useDeepMemo_1 = __webpack_require__(60);
|
|
2383
2240
|
|
|
2384
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
2241
|
+
var MissingPropsMessage_1 = __webpack_require__(61);
|
|
2385
2242
|
|
|
2386
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
2243
|
+
var withEditModeCover_1 = __webpack_require__(62);
|
|
2387
2244
|
|
|
2388
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
2245
|
+
var withPlaceholder_1 = __webpack_require__(63);
|
|
2389
2246
|
|
|
2390
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
2247
|
+
var useDownsampleDataSources_1 = __webpack_require__(64);
|
|
2391
2248
|
|
|
2392
2249
|
var dataUtils_1 = __webpack_require__(14);
|
|
2393
2250
|
|
|
2394
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
2251
|
+
var featureFlagUtils_1 = __webpack_require__(66);
|
|
2395
2252
|
/**
|
|
2396
2253
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
2397
2254
|
* @param {DashboardVizOpts} opts
|
|
@@ -2724,81 +2581,41 @@ exports.default = withDashboardViz;
|
|
|
2724
2581
|
|
|
2725
2582
|
/***/ }),
|
|
2726
2583
|
|
|
2727
|
-
/***/
|
|
2584
|
+
/***/ 55:
|
|
2728
2585
|
/***/ (function(module, exports) {
|
|
2729
2586
|
|
|
2730
2587
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2731
2588
|
|
|
2732
2589
|
/***/ }),
|
|
2733
2590
|
|
|
2734
|
-
/***/
|
|
2591
|
+
/***/ 56:
|
|
2735
2592
|
/***/ (function(module, exports) {
|
|
2736
2593
|
|
|
2737
2594
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2738
2595
|
|
|
2739
2596
|
/***/ }),
|
|
2740
2597
|
|
|
2741
|
-
/***/
|
|
2598
|
+
/***/ 57:
|
|
2742
2599
|
/***/ (function(module, exports) {
|
|
2743
2600
|
|
|
2744
2601
|
module.exports = require("@splunk/moment");
|
|
2745
2602
|
|
|
2746
2603
|
/***/ }),
|
|
2747
2604
|
|
|
2748
|
-
/***/
|
|
2749
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2750
|
-
|
|
2751
|
-
"use strict";
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2755
|
-
value: true
|
|
2756
|
-
});
|
|
2757
|
-
exports.VizBehavior = void 0;
|
|
2758
|
-
var VizBehavior;
|
|
2759
|
-
|
|
2760
|
-
(function (VizBehavior) {
|
|
2761
|
-
/**
|
|
2762
|
-
* Dynamic Options Behavior.
|
|
2763
|
-
* This allows visualization options to be powered by data
|
|
2764
|
-
*
|
|
2765
|
-
* **Example**
|
|
2766
|
-
*
|
|
2767
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
2768
|
-
* would configure sparklineValues with an array of data points
|
|
2769
|
-
* coming from the first series in the primary datasource
|
|
2770
|
-
*
|
|
2771
|
-
*/
|
|
2772
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
2773
|
-
VizBehavior["EVENTS"] = "events";
|
|
2774
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
2775
|
-
/**
|
|
2776
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
2777
|
-
* missing.
|
|
2778
|
-
* @type {string}
|
|
2779
|
-
*/
|
|
2780
|
-
|
|
2781
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
2782
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
2783
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
2784
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
2785
|
-
|
|
2786
|
-
/***/ }),
|
|
2787
|
-
|
|
2788
|
-
/***/ 60:
|
|
2605
|
+
/***/ 58:
|
|
2789
2606
|
/***/ (function(module, exports) {
|
|
2790
2607
|
|
|
2791
2608
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2792
2609
|
|
|
2793
2610
|
/***/ }),
|
|
2794
2611
|
|
|
2795
|
-
/***/
|
|
2612
|
+
/***/ 59:
|
|
2796
2613
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2797
2614
|
|
|
2798
2615
|
"use strict";
|
|
2799
2616
|
|
|
2800
2617
|
|
|
2801
|
-
var _classCallCheck = __webpack_require__(
|
|
2618
|
+
var _classCallCheck = __webpack_require__(8);
|
|
2802
2619
|
|
|
2803
2620
|
Object.defineProperty(exports, "__esModule", {
|
|
2804
2621
|
value: true
|
|
@@ -2806,9 +2623,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2806
2623
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
2807
2624
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
2808
2625
|
|
|
2809
|
-
var T = __webpack_require__(
|
|
2626
|
+
var T = __webpack_require__(0);
|
|
2810
2627
|
|
|
2811
|
-
var lodash_1 = __webpack_require__(
|
|
2628
|
+
var lodash_1 = __webpack_require__(2);
|
|
2812
2629
|
|
|
2813
2630
|
var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2814
2631
|
|
|
@@ -2944,7 +2761,14 @@ exports.default = SplunkVisualization;
|
|
|
2944
2761
|
|
|
2945
2762
|
/***/ }),
|
|
2946
2763
|
|
|
2947
|
-
/***/
|
|
2764
|
+
/***/ 6:
|
|
2765
|
+
/***/ (function(module, exports) {
|
|
2766
|
+
|
|
2767
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
2768
|
+
|
|
2769
|
+
/***/ }),
|
|
2770
|
+
|
|
2771
|
+
/***/ 60:
|
|
2948
2772
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2949
2773
|
|
|
2950
2774
|
"use strict";
|
|
@@ -2955,9 +2779,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2955
2779
|
});
|
|
2956
2780
|
exports.useDeepMemo = void 0;
|
|
2957
2781
|
|
|
2958
|
-
var react_1 = __webpack_require__(
|
|
2782
|
+
var react_1 = __webpack_require__(1);
|
|
2959
2783
|
|
|
2960
|
-
var lodash_1 = __webpack_require__(
|
|
2784
|
+
var lodash_1 = __webpack_require__(2);
|
|
2961
2785
|
/**
|
|
2962
2786
|
* This hook evaluates and stores the result of a passed function and only
|
|
2963
2787
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -2990,7 +2814,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
2990
2814
|
|
|
2991
2815
|
/***/ }),
|
|
2992
2816
|
|
|
2993
|
-
/***/
|
|
2817
|
+
/***/ 61:
|
|
2994
2818
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2995
2819
|
|
|
2996
2820
|
"use strict";
|
|
@@ -3001,13 +2825,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3001
2825
|
});
|
|
3002
2826
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
3003
2827
|
|
|
3004
|
-
var React = __webpack_require__(
|
|
2828
|
+
var React = __webpack_require__(1);
|
|
3005
2829
|
|
|
3006
|
-
var T = __webpack_require__(
|
|
2830
|
+
var T = __webpack_require__(0);
|
|
3007
2831
|
|
|
3008
|
-
var i18n_1 = __webpack_require__(
|
|
2832
|
+
var i18n_1 = __webpack_require__(3);
|
|
3009
2833
|
|
|
3010
|
-
var Message_1 = __webpack_require__(
|
|
2834
|
+
var Message_1 = __webpack_require__(11);
|
|
3011
2835
|
|
|
3012
2836
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
3013
2837
|
/**
|
|
@@ -3071,7 +2895,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
|
|
|
3071
2895
|
|
|
3072
2896
|
/***/ }),
|
|
3073
2897
|
|
|
3074
|
-
/***/
|
|
2898
|
+
/***/ 62:
|
|
3075
2899
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3076
2900
|
|
|
3077
2901
|
"use strict";
|
|
@@ -3081,7 +2905,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3081
2905
|
value: true
|
|
3082
2906
|
});
|
|
3083
2907
|
|
|
3084
|
-
var React = __webpack_require__(
|
|
2908
|
+
var React = __webpack_require__(1);
|
|
3085
2909
|
|
|
3086
2910
|
var styled_components_1 = __webpack_require__(4);
|
|
3087
2911
|
|
|
@@ -3092,7 +2916,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3092
2916
|
componentId: "sc-1gsbnxb-0"
|
|
3093
2917
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3094
2918
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3095
|
-
'data-splunk-visualization-version': "26.
|
|
2919
|
+
'data-splunk-visualization-version': "26.4.0 - 04078274d"
|
|
3096
2920
|
}).withConfig({
|
|
3097
2921
|
displayName: "withEditModeCover__Blocker",
|
|
3098
2922
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3124,7 +2948,7 @@ exports.default = withEditModeCover;
|
|
|
3124
2948
|
|
|
3125
2949
|
/***/ }),
|
|
3126
2950
|
|
|
3127
|
-
/***/
|
|
2951
|
+
/***/ 63:
|
|
3128
2952
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3129
2953
|
|
|
3130
2954
|
"use strict";
|
|
@@ -3134,15 +2958,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3134
2958
|
value: true
|
|
3135
2959
|
});
|
|
3136
2960
|
|
|
3137
|
-
var React = __webpack_require__(
|
|
2961
|
+
var React = __webpack_require__(1);
|
|
3138
2962
|
|
|
3139
2963
|
var colorUtils_1 = __webpack_require__(15);
|
|
3140
2964
|
|
|
3141
2965
|
var variables_1 = __webpack_require__(13);
|
|
3142
2966
|
|
|
3143
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2967
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
3144
2968
|
|
|
3145
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2969
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
3146
2970
|
|
|
3147
2971
|
var hocUtils_1 = __webpack_require__(23);
|
|
3148
2972
|
|
|
@@ -3189,27 +3013,30 @@ exports.default = withPlaceholder;
|
|
|
3189
3013
|
|
|
3190
3014
|
/***/ }),
|
|
3191
3015
|
|
|
3192
|
-
/***/
|
|
3016
|
+
/***/ 64:
|
|
3193
3017
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3194
3018
|
|
|
3195
3019
|
"use strict";
|
|
3196
3020
|
|
|
3197
3021
|
|
|
3198
|
-
var _slicedToArray = __webpack_require__(
|
|
3022
|
+
var _slicedToArray = __webpack_require__(5);
|
|
3199
3023
|
|
|
3200
3024
|
Object.defineProperty(exports, "__esModule", {
|
|
3201
3025
|
value: true
|
|
3202
3026
|
});
|
|
3203
3027
|
|
|
3204
|
-
var react_1 = __webpack_require__(
|
|
3028
|
+
var react_1 = __webpack_require__(1);
|
|
3205
3029
|
|
|
3206
|
-
var lodash_1 = __webpack_require__(
|
|
3030
|
+
var lodash_1 = __webpack_require__(2);
|
|
3207
3031
|
|
|
3208
3032
|
var dataUtils_1 = __webpack_require__(14);
|
|
3209
3033
|
|
|
3210
|
-
var usePrevious_1 = __webpack_require__(
|
|
3034
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
3211
3035
|
|
|
3212
|
-
var useGetXAndYFields_1 = __webpack_require__(
|
|
3036
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
var downsampleVizOptionProperties = ['nullValueDisplay'];
|
|
3213
3040
|
|
|
3214
3041
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
3215
3042
|
var dataSources = _ref.dataSources,
|
|
@@ -3223,8 +3050,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3223
3050
|
options: options,
|
|
3224
3051
|
context: context,
|
|
3225
3052
|
dataSources: dataSources
|
|
3226
|
-
});
|
|
3227
|
-
|
|
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);
|
|
3228
3062
|
var previousDataSources = (0, usePrevious_1.default)(dataSources);
|
|
3229
3063
|
var previousThreshold = (0, usePrevious_1.default)(threshold);
|
|
3230
3064
|
|
|
@@ -3232,7 +3066,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3232
3066
|
return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
|
|
3233
3067
|
dataSources: dataSources,
|
|
3234
3068
|
threshold: threshold,
|
|
3235
|
-
options:
|
|
3069
|
+
options: downsampleDSOptions
|
|
3236
3070
|
}) : dataSources;
|
|
3237
3071
|
}),
|
|
3238
3072
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -3260,7 +3094,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3260
3094
|
return;
|
|
3261
3095
|
}
|
|
3262
3096
|
|
|
3263
|
-
if ((0, lodash_1.isEqual)(
|
|
3097
|
+
if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
|
|
3264
3098
|
return;
|
|
3265
3099
|
} // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
|
|
3266
3100
|
// while the viz is being resized
|
|
@@ -3268,10 +3102,10 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
3268
3102
|
|
|
3269
3103
|
debouncedDownsampleDataSources({
|
|
3270
3104
|
dataSources: dataSources,
|
|
3271
|
-
options:
|
|
3105
|
+
options: downsampleDSOptions,
|
|
3272
3106
|
threshold: threshold
|
|
3273
3107
|
}); // need to detect if this runs as part of the initial render
|
|
3274
|
-
}, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled,
|
|
3108
|
+
}, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
|
|
3275
3109
|
return downsampledDataSources;
|
|
3276
3110
|
};
|
|
3277
3111
|
|
|
@@ -3279,19 +3113,19 @@ exports.default = useDownsampleDataSources;
|
|
|
3279
3113
|
|
|
3280
3114
|
/***/ }),
|
|
3281
3115
|
|
|
3282
|
-
/***/
|
|
3116
|
+
/***/ 65:
|
|
3283
3117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3284
3118
|
|
|
3285
3119
|
"use strict";
|
|
3286
3120
|
|
|
3287
3121
|
|
|
3288
|
-
var _toConsumableArray = __webpack_require__(
|
|
3122
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
3289
3123
|
|
|
3290
3124
|
Object.defineProperty(exports, "__esModule", {
|
|
3291
3125
|
value: true
|
|
3292
3126
|
});
|
|
3293
3127
|
|
|
3294
|
-
var react_1 = __webpack_require__(
|
|
3128
|
+
var react_1 = __webpack_require__(1);
|
|
3295
3129
|
|
|
3296
3130
|
var Options_1 = __webpack_require__(16);
|
|
3297
3131
|
/**
|
|
@@ -3394,7 +3228,7 @@ exports.default = useGetXAndYFields;
|
|
|
3394
3228
|
|
|
3395
3229
|
/***/ }),
|
|
3396
3230
|
|
|
3397
|
-
/***/
|
|
3231
|
+
/***/ 66:
|
|
3398
3232
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3399
3233
|
|
|
3400
3234
|
"use strict";
|
|
@@ -3405,7 +3239,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3405
3239
|
});
|
|
3406
3240
|
exports.getFeatureFlag = void 0;
|
|
3407
3241
|
|
|
3408
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
3242
|
+
var FeatureFlags_1 = __webpack_require__(67);
|
|
3409
3243
|
|
|
3410
3244
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
3411
3245
|
// look for feature flag in context first
|
|
@@ -3430,7 +3264,7 @@ exports.getFeatureFlag = getFeatureFlag;
|
|
|
3430
3264
|
|
|
3431
3265
|
/***/ }),
|
|
3432
3266
|
|
|
3433
|
-
/***/
|
|
3267
|
+
/***/ 67:
|
|
3434
3268
|
/***/ (function(module, exports) {
|
|
3435
3269
|
|
|
3436
3270
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
@@ -3438,27 +3272,53 @@ module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
|
3438
3272
|
/***/ }),
|
|
3439
3273
|
|
|
3440
3274
|
/***/ 7:
|
|
3441
|
-
/***/ (function(module, exports) {
|
|
3275
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3442
3276
|
|
|
3443
|
-
|
|
3277
|
+
"use strict";
|
|
3444
3278
|
|
|
3445
|
-
/***/ }),
|
|
3446
3279
|
|
|
3447
|
-
|
|
3448
|
-
|
|
3280
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3281
|
+
value: true
|
|
3282
|
+
});
|
|
3283
|
+
exports.VizBehavior = void 0;
|
|
3284
|
+
var VizBehavior;
|
|
3449
3285
|
|
|
3450
|
-
|
|
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 = {}));
|
|
3451
3311
|
|
|
3452
3312
|
/***/ }),
|
|
3453
3313
|
|
|
3454
|
-
/***/
|
|
3314
|
+
/***/ 70:
|
|
3455
3315
|
/***/ (function(module, exports) {
|
|
3456
3316
|
|
|
3457
|
-
module.exports = require("@splunk/visualization-
|
|
3317
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3458
3318
|
|
|
3459
3319
|
/***/ }),
|
|
3460
3320
|
|
|
3461
|
-
/***/
|
|
3321
|
+
/***/ 72:
|
|
3462
3322
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3463
3323
|
|
|
3464
3324
|
"use strict";
|
|
@@ -3468,14 +3328,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3468
3328
|
value: true
|
|
3469
3329
|
});
|
|
3470
3330
|
|
|
3471
|
-
var i18n_1 = __webpack_require__(
|
|
3331
|
+
var i18n_1 = __webpack_require__(3);
|
|
3472
3332
|
|
|
3473
3333
|
var background = function background(_ref) {
|
|
3474
3334
|
var label = _ref.label,
|
|
3475
3335
|
themes = _ref.themes,
|
|
3476
3336
|
labelPosition = _ref.labelPosition;
|
|
3477
3337
|
return [{
|
|
3478
|
-
label: (0, i18n_1._)(label || 'Background'),
|
|
3338
|
+
label: (0, i18n_1._)(label || 'Background color'),
|
|
3479
3339
|
option: 'backgroundColor',
|
|
3480
3340
|
editor: 'editor.color',
|
|
3481
3341
|
editorProps: {
|
|
@@ -3489,27 +3349,34 @@ exports.default = background;
|
|
|
3489
3349
|
|
|
3490
3350
|
/***/ }),
|
|
3491
3351
|
|
|
3492
|
-
/***/
|
|
3352
|
+
/***/ 74:
|
|
3353
|
+
/***/ (function(module, exports) {
|
|
3354
|
+
|
|
3355
|
+
module.exports = require("@splunk/visualization-color-palettes");
|
|
3356
|
+
|
|
3357
|
+
/***/ }),
|
|
3358
|
+
|
|
3359
|
+
/***/ 75:
|
|
3493
3360
|
/***/ (function(module, exports) {
|
|
3494
3361
|
|
|
3495
3362
|
module.exports = require("@splunk/charting-bundle");
|
|
3496
3363
|
|
|
3497
3364
|
/***/ }),
|
|
3498
3365
|
|
|
3499
|
-
/***/
|
|
3366
|
+
/***/ 76:
|
|
3500
3367
|
/***/ (function(module, exports) {
|
|
3501
3368
|
|
|
3502
3369
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
3503
3370
|
|
|
3504
3371
|
/***/ }),
|
|
3505
3372
|
|
|
3506
|
-
/***/
|
|
3373
|
+
/***/ 77:
|
|
3507
3374
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3508
3375
|
|
|
3509
3376
|
"use strict";
|
|
3510
3377
|
|
|
3511
3378
|
|
|
3512
|
-
var _toConsumableArray = __webpack_require__(
|
|
3379
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
3513
3380
|
|
|
3514
3381
|
var __rest = this && this.__rest || function (s, e) {
|
|
3515
3382
|
var t = {};
|
|
@@ -3529,7 +3396,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3529
3396
|
});
|
|
3530
3397
|
exports.shouldEnableSearchZoom = exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
|
|
3531
3398
|
|
|
3532
|
-
var lodash_1 = __webpack_require__(
|
|
3399
|
+
var lodash_1 = __webpack_require__(2);
|
|
3533
3400
|
/**
|
|
3534
3401
|
* Get formatted annotations
|
|
3535
3402
|
* @method getAnnotations
|
|
@@ -3744,11 +3611,11 @@ exports.shouldEnableSearchZoom = shouldEnableSearchZoom;
|
|
|
3744
3611
|
/***/ 8:
|
|
3745
3612
|
/***/ (function(module, exports) {
|
|
3746
3613
|
|
|
3747
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3614
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
3748
3615
|
|
|
3749
3616
|
/***/ }),
|
|
3750
3617
|
|
|
3751
|
-
/***/
|
|
3618
|
+
/***/ 84:
|
|
3752
3619
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3753
3620
|
|
|
3754
3621
|
"use strict";
|
|
@@ -3760,42 +3627,42 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3760
3627
|
exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
|
|
3761
3628
|
/* eslint-disable react/no-unused-prop-types */
|
|
3762
3629
|
|
|
3763
|
-
var lodash_1 = __webpack_require__(
|
|
3630
|
+
var lodash_1 = __webpack_require__(2);
|
|
3764
3631
|
|
|
3765
|
-
var i18n_1 = __webpack_require__(
|
|
3632
|
+
var i18n_1 = __webpack_require__(3);
|
|
3766
3633
|
|
|
3767
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3634
|
+
var visualization_color_palettes_1 = __webpack_require__(74);
|
|
3768
3635
|
|
|
3769
|
-
var react_1 = __webpack_require__(
|
|
3636
|
+
var react_1 = __webpack_require__(1);
|
|
3770
3637
|
|
|
3771
|
-
var React = __webpack_require__(
|
|
3638
|
+
var React = __webpack_require__(1);
|
|
3772
3639
|
|
|
3773
|
-
var T = __webpack_require__(
|
|
3640
|
+
var T = __webpack_require__(0);
|
|
3774
3641
|
|
|
3775
|
-
var react_event_listener_1 = __webpack_require__(
|
|
3642
|
+
var react_event_listener_1 = __webpack_require__(85);
|
|
3776
3643
|
|
|
3777
|
-
__webpack_require__(
|
|
3644
|
+
__webpack_require__(86); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
3778
3645
|
|
|
3779
3646
|
|
|
3780
|
-
var charting_bundle_1 = __webpack_require__(
|
|
3647
|
+
var charting_bundle_1 = __webpack_require__(75);
|
|
3781
3648
|
|
|
3782
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
3649
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
3783
3650
|
|
|
3784
3651
|
var style_1 = __webpack_require__(18);
|
|
3785
3652
|
|
|
3786
3653
|
var styled_components_1 = __webpack_require__(4);
|
|
3787
3654
|
|
|
3788
|
-
var Message_1 = __webpack_require__(
|
|
3655
|
+
var Message_1 = __webpack_require__(11);
|
|
3789
3656
|
|
|
3790
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
3657
|
+
var useSplunkTheme_1 = __webpack_require__(76);
|
|
3791
3658
|
|
|
3792
|
-
var themeUtils_1 = __webpack_require__(
|
|
3659
|
+
var themeUtils_1 = __webpack_require__(87);
|
|
3793
3660
|
|
|
3794
|
-
var ChartingApi_1 = __webpack_require__(
|
|
3661
|
+
var ChartingApi_1 = __webpack_require__(88);
|
|
3795
3662
|
|
|
3796
|
-
var usePrevious_1 = __webpack_require__(
|
|
3663
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
3797
3664
|
|
|
3798
|
-
var useEventCallback_1 = __webpack_require__(
|
|
3665
|
+
var useEventCallback_1 = __webpack_require__(89);
|
|
3799
3666
|
|
|
3800
3667
|
var dataUtils_1 = __webpack_require__(14);
|
|
3801
3668
|
|
|
@@ -3922,8 +3789,7 @@ var Charting = function Charting(props) {
|
|
|
3922
3789
|
onEventTrigger = props.onEventTrigger,
|
|
3923
3790
|
originalDataSources = props.originalDataSources,
|
|
3924
3791
|
onDownsamplingThresholdChange = props.onDownsamplingThresholdChange,
|
|
3925
|
-
xField = props.xField
|
|
3926
|
-
y2Fields = props.y2Fields;
|
|
3792
|
+
xField = props.xField;
|
|
3927
3793
|
var prevOptions = (0, usePrevious_1.default)(options);
|
|
3928
3794
|
var prevTimezone = (0, usePrevious_1.default)(timezone);
|
|
3929
3795
|
|
|
@@ -3966,14 +3832,13 @@ var Charting = function Charting(props) {
|
|
|
3966
3832
|
dataSources: originalDataSources,
|
|
3967
3833
|
width: Number(width),
|
|
3968
3834
|
selectChartEvent: selectChartEvent.current,
|
|
3969
|
-
xField: xField
|
|
3970
|
-
y2Fields: y2Fields
|
|
3835
|
+
xField: xField
|
|
3971
3836
|
});
|
|
3972
3837
|
|
|
3973
3838
|
if (Number.isFinite(newThreshold)) {
|
|
3974
3839
|
onDownsamplingThresholdChange(newThreshold);
|
|
3975
3840
|
}
|
|
3976
|
-
}, [enableSearchZoom, originalDataSources, onDownsamplingThresholdChange, width, xField
|
|
3841
|
+
}, [enableSearchZoom, originalDataSources, onDownsamplingThresholdChange, width, xField]);
|
|
3977
3842
|
React.useEffect(function () {
|
|
3978
3843
|
recalculateDownsamplingThreshold();
|
|
3979
3844
|
}, [recalculateDownsamplingThreshold]); // useEventCallback is used for these handlers to make sure that they are a stable reference and
|
|
@@ -4212,43 +4077,36 @@ exports.default = withEmptyChartMessage(Charting);
|
|
|
4212
4077
|
|
|
4213
4078
|
/***/ }),
|
|
4214
4079
|
|
|
4215
|
-
/***/
|
|
4080
|
+
/***/ 85:
|
|
4216
4081
|
/***/ (function(module, exports) {
|
|
4217
4082
|
|
|
4218
4083
|
module.exports = require("react-event-listener");
|
|
4219
4084
|
|
|
4220
4085
|
/***/ }),
|
|
4221
4086
|
|
|
4222
|
-
/***/
|
|
4087
|
+
/***/ 86:
|
|
4223
4088
|
/***/ (function(module, exports) {
|
|
4224
4089
|
|
|
4225
4090
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
4226
4091
|
|
|
4227
4092
|
/***/ }),
|
|
4228
4093
|
|
|
4229
|
-
/***/
|
|
4230
|
-
/***/ (function(module, exports) {
|
|
4231
|
-
|
|
4232
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
4233
|
-
|
|
4234
|
-
/***/ }),
|
|
4235
|
-
|
|
4236
|
-
/***/ 90:
|
|
4094
|
+
/***/ 87:
|
|
4237
4095
|
/***/ (function(module, exports) {
|
|
4238
4096
|
|
|
4239
4097
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
4240
4098
|
|
|
4241
4099
|
/***/ }),
|
|
4242
4100
|
|
|
4243
|
-
/***/
|
|
4101
|
+
/***/ 88:
|
|
4244
4102
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4245
4103
|
|
|
4246
4104
|
"use strict";
|
|
4247
4105
|
|
|
4248
4106
|
|
|
4249
|
-
var _classCallCheck = __webpack_require__(
|
|
4107
|
+
var _classCallCheck = __webpack_require__(8);
|
|
4250
4108
|
|
|
4251
|
-
var _createClass = __webpack_require__(
|
|
4109
|
+
var _createClass = __webpack_require__(24);
|
|
4252
4110
|
|
|
4253
4111
|
Object.defineProperty(exports, "__esModule", {
|
|
4254
4112
|
value: true
|
|
@@ -4309,7 +4167,7 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
|
4309
4167
|
|
|
4310
4168
|
/***/ }),
|
|
4311
4169
|
|
|
4312
|
-
/***/
|
|
4170
|
+
/***/ 89:
|
|
4313
4171
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4314
4172
|
|
|
4315
4173
|
"use strict";
|
|
@@ -4319,7 +4177,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4319
4177
|
value: true
|
|
4320
4178
|
});
|
|
4321
4179
|
|
|
4322
|
-
var react_1 = __webpack_require__(
|
|
4180
|
+
var react_1 = __webpack_require__(1);
|
|
4323
4181
|
|
|
4324
4182
|
var useEventCallback = function useEventCallback(fn) {
|
|
4325
4183
|
var ref = (0, react_1.useRef)(fn);
|
|
@@ -4335,7 +4193,14 @@ exports.default = useEventCallback;
|
|
|
4335
4193
|
|
|
4336
4194
|
/***/ }),
|
|
4337
4195
|
|
|
4338
|
-
/***/
|
|
4196
|
+
/***/ 9:
|
|
4197
|
+
/***/ (function(module, exports) {
|
|
4198
|
+
|
|
4199
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
4200
|
+
|
|
4201
|
+
/***/ }),
|
|
4202
|
+
|
|
4203
|
+
/***/ 90:
|
|
4339
4204
|
/***/ (function(module, exports) {
|
|
4340
4205
|
|
|
4341
4206
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|