@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/MarkerGauge.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 = 437);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,56 +95,49 @@ 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("@babel/runtime/helpers/classCallCheck");
|
|
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
|
+
/***/ 118:
|
|
131
124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
132
125
|
|
|
133
126
|
"use strict";
|
|
134
127
|
|
|
135
128
|
|
|
136
|
-
var _toConsumableArray = __webpack_require__(
|
|
129
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
137
130
|
|
|
138
131
|
Object.defineProperty(exports, "__esModule", {
|
|
139
132
|
value: true
|
|
140
133
|
});
|
|
141
134
|
exports.convertToGaugeProperties = exports.mapValueLabelDisplay = exports.mapToOldKey = exports.getGradientDimensions = exports.getGradientStops = exports.getGradientStopColors = exports.getGradientStopOffsets = exports.getGaugeRange = exports.validateRanges = exports.getSortedRanges = exports.getMarkerGaugeValueMarkerPositions = exports.getMarkerBarDimensions = exports.getFillerGaugeValueMarkerPositions = exports.getFillBarDimensions = exports.getGaugeBarHeight = exports.getGaugeBarWidth = exports.getGaugeBarStartPositions = exports.getGaugeBarLength = exports.assignGaugeColor = exports.getGaugeDimensions = exports.getGaugeStartPosition = exports.getGaugeLength = exports.getGaugeHeight = exports.getGaugeWidth = exports.FILL_THICKNESS = exports.GAUGE_THICKNESS = void 0;
|
|
142
135
|
|
|
143
|
-
var lodash_1 = __webpack_require__(
|
|
136
|
+
var lodash_1 = __webpack_require__(2);
|
|
144
137
|
|
|
145
|
-
var colorConstants_1 = __webpack_require__(
|
|
138
|
+
var colorConstants_1 = __webpack_require__(69);
|
|
146
139
|
|
|
147
|
-
var i18n_1 = __webpack_require__(
|
|
140
|
+
var i18n_1 = __webpack_require__(3);
|
|
148
141
|
|
|
149
142
|
exports.GAUGE_THICKNESS = 50;
|
|
150
143
|
exports.FILL_THICKNESS = 38;
|
|
@@ -896,6 +889,13 @@ exports.convertToGaugeProperties = convertToGaugeProperties;
|
|
|
896
889
|
|
|
897
890
|
/***/ }),
|
|
898
891
|
|
|
892
|
+
/***/ 12:
|
|
893
|
+
/***/ (function(module, exports) {
|
|
894
|
+
|
|
895
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
896
|
+
|
|
897
|
+
/***/ }),
|
|
898
|
+
|
|
899
899
|
/***/ 13:
|
|
900
900
|
/***/ (function(module, exports) {
|
|
901
901
|
|
|
@@ -914,9 +914,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
914
914
|
});
|
|
915
915
|
exports.downsampleDataSources = exports.calculateDownsamplingThreshold = exports.calculateThresholdOnRangeSelect = exports.isDownsamplingEnabledForViz = exports.convertToArrOfObjects = void 0;
|
|
916
916
|
|
|
917
|
-
var numberUtils_1 = __webpack_require__(
|
|
917
|
+
var numberUtils_1 = __webpack_require__(10);
|
|
918
918
|
|
|
919
|
-
var interfaces_1 = __webpack_require__(
|
|
919
|
+
var interfaces_1 = __webpack_require__(39); // TODO: utilize this fn in ParallelCoordinates
|
|
920
920
|
|
|
921
921
|
|
|
922
922
|
var convertToArrOfObjects = function convertToArrOfObjects(columns, fields) {
|
|
@@ -1051,19 +1051,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
|
|
|
1051
1051
|
*/
|
|
1052
1052
|
|
|
1053
1053
|
|
|
1054
|
-
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
|
|
1055
|
-
// Splunk charting allows for numbers in formats such as negative hex that
|
|
1054
|
+
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column, options) {
|
|
1055
|
+
var isNullCoercionEnabled = options.nullValueDisplay === 'zero'; // Splunk charting allows for numbers in formats such as negative hex that
|
|
1056
1056
|
// Number() does not support and also allows loose coercion of hex numbers (but not other formats)
|
|
1057
1057
|
// We want to identify columns which contain at least one value that can be loosely coerced
|
|
1058
|
+
|
|
1058
1059
|
var canLooselyCoerceSomeValues = column.findIndex(function (value) {
|
|
1059
|
-
return (0, numberUtils_1.startsWithNumber)("".concat(value));
|
|
1060
|
+
return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
|
|
1060
1061
|
}) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
|
|
1061
1062
|
|
|
1062
1063
|
var coercedColumn = [];
|
|
1063
1064
|
var canDownsampleColumn = !column.some(function (value) {
|
|
1064
|
-
var coercedValue = Number(value);
|
|
1065
|
+
var coercedValue = Number(value);
|
|
1066
|
+
var coerceValueToZero = isNullCoercionEnabled && value === null; // if it can't be parsed or isn't safe, fail
|
|
1065
1067
|
|
|
1066
|
-
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number') {
|
|
1068
|
+
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number' && !coerceValueToZero) {
|
|
1067
1069
|
return true;
|
|
1068
1070
|
} // save value and continue to next
|
|
1069
1071
|
|
|
@@ -1144,8 +1146,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
1144
1146
|
dataSources = _ref3.dataSources,
|
|
1145
1147
|
selectChartEvent = _ref3.selectChartEvent,
|
|
1146
1148
|
width = _ref3.width,
|
|
1147
|
-
xField = _ref3.xField
|
|
1148
|
-
y2Fields = _ref3.y2Fields;
|
|
1149
|
+
xField = _ref3.xField;
|
|
1149
1150
|
|
|
1150
1151
|
var _a, _b, _c;
|
|
1151
1152
|
|
|
@@ -1182,14 +1183,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
1182
1183
|
});
|
|
1183
1184
|
var lastIndex = fullSeries.findIndex(function (x) {
|
|
1184
1185
|
return downsampledSeries[endXIndex] === x;
|
|
1185
|
-
});
|
|
1186
|
-
// re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
|
|
1187
|
-
// Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
|
|
1188
|
-
// until SPL-259611 is fixed
|
|
1189
|
-
|
|
1190
|
-
if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
|
|
1191
|
-
return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
|
|
1192
|
-
}
|
|
1186
|
+
});
|
|
1193
1187
|
|
|
1194
1188
|
if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
|
|
1195
1189
|
return (0, exports.calculateThresholdOnRangeSelect)({
|
|
@@ -1200,6 +1194,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
1200
1194
|
});
|
|
1201
1195
|
}
|
|
1202
1196
|
} catch (e) {
|
|
1197
|
+
// eslint-disable-next-line no-console
|
|
1203
1198
|
console.error('Error occurred while setting downsample threshold on range select event', e);
|
|
1204
1199
|
}
|
|
1205
1200
|
|
|
@@ -1238,7 +1233,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
|
|
|
1238
1233
|
*/
|
|
1239
1234
|
|
|
1240
1235
|
|
|
1241
|
-
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
|
|
1236
|
+
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
|
|
1242
1237
|
var xColumn = [];
|
|
1243
1238
|
var yColumns = [];
|
|
1244
1239
|
var canDownsample = !ds.data.fields.some(function (field, index) {
|
|
@@ -1252,7 +1247,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
|
|
|
1252
1247
|
if (fieldName === xField) {
|
|
1253
1248
|
xColumn = strictlyCoerceXColumn(column, fieldType);
|
|
1254
1249
|
} else if (yFields.has(fieldName)) {
|
|
1255
|
-
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
|
|
1250
|
+
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
|
|
1256
1251
|
coercedColumn = _strictlyCoerceYColum.coercedColumn,
|
|
1257
1252
|
canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
|
|
1258
1253
|
canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
|
|
@@ -1342,7 +1337,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
1342
1337
|
return dataSources;
|
|
1343
1338
|
}
|
|
1344
1339
|
|
|
1345
|
-
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
|
|
1340
|
+
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
|
|
1346
1341
|
xColumn = _tryToCoerceAllDispla.xColumn,
|
|
1347
1342
|
yColumns = _tryToCoerceAllDispla.yColumns;
|
|
1348
1343
|
|
|
@@ -1366,6 +1361,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
1366
1361
|
return downsampledIndices.add(downsampleIndex);
|
|
1367
1362
|
});
|
|
1368
1363
|
} catch (e) {
|
|
1364
|
+
// eslint-disable-next-line no-console
|
|
1369
1365
|
console.error("Error occurred while downsampling column ".concat(columnIndex), e);
|
|
1370
1366
|
}
|
|
1371
1367
|
}); // update data columns with downsampled columns
|
|
@@ -1378,7 +1374,7 @@ exports.downsampleDataSources = downsampleDataSources;
|
|
|
1378
1374
|
|
|
1379
1375
|
/***/ }),
|
|
1380
1376
|
|
|
1381
|
-
/***/
|
|
1377
|
+
/***/ 145:
|
|
1382
1378
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1383
1379
|
|
|
1384
1380
|
"use strict";
|
|
@@ -1388,7 +1384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1388
1384
|
value: true
|
|
1389
1385
|
});
|
|
1390
1386
|
|
|
1391
|
-
var i18n_1 = __webpack_require__(
|
|
1387
|
+
var i18n_1 = __webpack_require__(3);
|
|
1392
1388
|
|
|
1393
1389
|
var gauge = {
|
|
1394
1390
|
label: (0, i18n_1._)('Data display'),
|
|
@@ -1443,22 +1439,22 @@ exports.default = gauge;
|
|
|
1443
1439
|
|
|
1444
1440
|
/***/ }),
|
|
1445
1441
|
|
|
1446
|
-
/***/
|
|
1442
|
+
/***/ 146:
|
|
1447
1443
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1448
1444
|
|
|
1449
1445
|
"use strict";
|
|
1450
1446
|
__webpack_require__.r(__webpack_exports__);
|
|
1451
1447
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MajorTick", function() { return MajorTick; });
|
|
1452
1448
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionMajorTick", function() { return positionMajorTick; });
|
|
1453
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1449
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68);
|
|
1454
1450
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
1455
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1451
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
1456
1452
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1457
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
1453
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
|
1458
1454
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
1459
1455
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
|
|
1460
1456
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
|
1461
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
1457
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10);
|
|
1462
1458
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
1463
1459
|
|
|
1464
1460
|
|
|
@@ -1470,7 +1466,7 @@ var TICK_LENGTH_DELTA = 5;
|
|
|
1470
1466
|
var TICK_LABEL_PADDING_FACTOR = 3.2;
|
|
1471
1467
|
var MajorTickLine = styled_components__WEBPACK_IMPORTED_MODULE_3___default.a.line.withConfig({
|
|
1472
1468
|
displayName: "GaugeMajorTicks__MajorTickLine",
|
|
1473
|
-
componentId: "mchiad-0"
|
|
1469
|
+
componentId: "sc-mchiad-0"
|
|
1474
1470
|
})(["stroke:", ";stroke-width:2px;stroke-dasharray:", ";"], function (props) {
|
|
1475
1471
|
return props.majorTickStrokeColor;
|
|
1476
1472
|
}, function (props) {
|
|
@@ -1478,7 +1474,7 @@ var MajorTickLine = styled_components__WEBPACK_IMPORTED_MODULE_3___default.a.lin
|
|
|
1478
1474
|
});
|
|
1479
1475
|
var MajorTickLabel = styled_components__WEBPACK_IMPORTED_MODULE_3___default.a.text.withConfig({
|
|
1480
1476
|
displayName: "GaugeMajorTicks__MajorTickLabel",
|
|
1481
|
-
componentId: "mchiad-1"
|
|
1477
|
+
componentId: "sc-mchiad-1"
|
|
1482
1478
|
})(["font-size:12px;font-family:Splunk Platform Sans,sans-serif;line-height:19px;fill:", ";text-anchor:middle;text-align:center;"], function (props) {
|
|
1483
1479
|
return props.majorTickFillColor;
|
|
1484
1480
|
});
|
|
@@ -1700,29 +1696,22 @@ MajorTicks.defaultProps = {
|
|
|
1700
1696
|
|
|
1701
1697
|
/***/ }),
|
|
1702
1698
|
|
|
1703
|
-
/***/
|
|
1704
|
-
/***/ (function(module, exports) {
|
|
1705
|
-
|
|
1706
|
-
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
1707
|
-
|
|
1708
|
-
/***/ }),
|
|
1709
|
-
|
|
1710
|
-
/***/ 150:
|
|
1699
|
+
/***/ 147:
|
|
1711
1700
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1712
1701
|
|
|
1713
1702
|
"use strict";
|
|
1714
1703
|
__webpack_require__.r(__webpack_exports__);
|
|
1715
1704
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionValueMarkerRect", function() { return positionValueMarkerRect; });
|
|
1716
1705
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionLabel", function() { return positionLabel; });
|
|
1717
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1706
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68);
|
|
1718
1707
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
1719
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1708
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
1720
1709
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1721
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
1710
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
|
1722
1711
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
1723
1712
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
|
|
1724
1713
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
|
1725
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
1714
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10);
|
|
1726
1715
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
1727
1716
|
|
|
1728
1717
|
|
|
@@ -1919,6 +1908,13 @@ ValueMarker.defaultProps = {
|
|
|
1919
1908
|
|
|
1920
1909
|
/***/ }),
|
|
1921
1910
|
|
|
1911
|
+
/***/ 15:
|
|
1912
|
+
/***/ (function(module, exports) {
|
|
1913
|
+
|
|
1914
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
1915
|
+
|
|
1916
|
+
/***/ }),
|
|
1917
|
+
|
|
1922
1918
|
/***/ 16:
|
|
1923
1919
|
/***/ (function(module, exports) {
|
|
1924
1920
|
|
|
@@ -1932,13 +1928,13 @@ module.exports = require("@splunk/visualization-encoding/Options");
|
|
|
1932
1928
|
"use strict";
|
|
1933
1929
|
|
|
1934
1930
|
|
|
1935
|
-
var _slicedToArray = __webpack_require__(
|
|
1931
|
+
var _slicedToArray = __webpack_require__(5);
|
|
1936
1932
|
|
|
1937
1933
|
Object.defineProperty(exports, "__esModule", {
|
|
1938
1934
|
value: true
|
|
1939
1935
|
});
|
|
1940
1936
|
|
|
1941
|
-
var React = __webpack_require__(
|
|
1937
|
+
var React = __webpack_require__(1);
|
|
1942
1938
|
|
|
1943
1939
|
var styled_components_1 = __webpack_require__(4);
|
|
1944
1940
|
|
|
@@ -1946,7 +1942,7 @@ var style_1 = __webpack_require__(18);
|
|
|
1946
1942
|
|
|
1947
1943
|
var colorUtils_1 = __webpack_require__(15);
|
|
1948
1944
|
|
|
1949
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
1945
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
1950
1946
|
|
|
1951
1947
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
1952
1948
|
var width = _ref.width;
|
|
@@ -2017,7 +2013,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
2017
2013
|
|
|
2018
2014
|
return React.createElement(FixSizeItem, {
|
|
2019
2015
|
"data-test": "fix-size-item",
|
|
2020
|
-
"data-splunk-visualization-version": "26.
|
|
2016
|
+
"data-splunk-visualization-version": "26.4.0 - 04078274d",
|
|
2021
2017
|
width: width,
|
|
2022
2018
|
height: height,
|
|
2023
2019
|
backgroundColor: backgroundColor
|
|
@@ -2046,7 +2042,7 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
2046
2042
|
|
|
2047
2043
|
/***/ }),
|
|
2048
2044
|
|
|
2049
|
-
/***/
|
|
2045
|
+
/***/ 180:
|
|
2050
2046
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2051
2047
|
|
|
2052
2048
|
"use strict";
|
|
@@ -2070,17 +2066,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2070
2066
|
});
|
|
2071
2067
|
exports.config = exports.computeVizProps = exports.PureMarkerGauge = void 0;
|
|
2072
2068
|
|
|
2073
|
-
var lodash_1 = __webpack_require__(
|
|
2069
|
+
var lodash_1 = __webpack_require__(2);
|
|
2074
2070
|
|
|
2075
|
-
var MarkerGauge_1 = __webpack_require__(
|
|
2071
|
+
var MarkerGauge_1 = __webpack_require__(438);
|
|
2076
2072
|
|
|
2077
|
-
var config_1 = __webpack_require__(
|
|
2073
|
+
var config_1 = __webpack_require__(439);
|
|
2078
2074
|
|
|
2079
2075
|
exports.config = config_1.default;
|
|
2080
2076
|
|
|
2081
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
2077
|
+
var withDashboardViz_1 = __webpack_require__(54);
|
|
2082
2078
|
|
|
2083
|
-
var gaugeUtils_1 = __webpack_require__(
|
|
2079
|
+
var gaugeUtils_1 = __webpack_require__(118);
|
|
2084
2080
|
|
|
2085
2081
|
exports.PureMarkerGauge = MarkerGauge_1.default;
|
|
2086
2082
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
@@ -2109,7 +2105,14 @@ exports.default = viz;
|
|
|
2109
2105
|
|
|
2110
2106
|
/***/ }),
|
|
2111
2107
|
|
|
2112
|
-
/***/
|
|
2108
|
+
/***/ 2:
|
|
2109
|
+
/***/ (function(module, exports) {
|
|
2110
|
+
|
|
2111
|
+
module.exports = require("lodash");
|
|
2112
|
+
|
|
2113
|
+
/***/ }),
|
|
2114
|
+
|
|
2115
|
+
/***/ 20:
|
|
2113
2116
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2114
2117
|
|
|
2115
2118
|
"use strict";
|
|
@@ -2118,29 +2121,21 @@ exports.default = viz;
|
|
|
2118
2121
|
Object.defineProperty(exports, "__esModule", {
|
|
2119
2122
|
value: true
|
|
2120
2123
|
});
|
|
2121
|
-
exports.validOutputModes = exports.
|
|
2124
|
+
exports.validOutputModes = exports.validSortDirs = void 0;
|
|
2122
2125
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
2123
|
-
exports.validSegmentationModes = ['none', 'inner'];
|
|
2124
2126
|
exports.validOutputModes = ['json_cols', 'json'];
|
|
2125
2127
|
|
|
2126
2128
|
/***/ }),
|
|
2127
2129
|
|
|
2128
|
-
/***/ 2:
|
|
2129
|
-
/***/ (function(module, exports) {
|
|
2130
|
-
|
|
2131
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
2132
|
-
|
|
2133
|
-
/***/ }),
|
|
2134
|
-
|
|
2135
2130
|
/***/ 21:
|
|
2136
2131
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2137
2132
|
|
|
2138
2133
|
"use strict";
|
|
2139
2134
|
|
|
2140
2135
|
|
|
2141
|
-
var _classCallCheck = __webpack_require__(
|
|
2136
|
+
var _classCallCheck = __webpack_require__(8);
|
|
2142
2137
|
|
|
2143
|
-
var _createClass = __webpack_require__(
|
|
2138
|
+
var _createClass = __webpack_require__(24);
|
|
2144
2139
|
|
|
2145
2140
|
Object.defineProperty(exports, "__esModule", {
|
|
2146
2141
|
value: true
|
|
@@ -2235,123 +2230,41 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
2235
2230
|
/***/ 24:
|
|
2236
2231
|
/***/ (function(module, exports) {
|
|
2237
2232
|
|
|
2238
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
2239
|
-
|
|
2240
|
-
/***/ }),
|
|
2241
|
-
|
|
2242
|
-
/***/ 25:
|
|
2243
|
-
/***/ (function(module, exports) {
|
|
2244
|
-
|
|
2245
2233
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
2246
2234
|
|
|
2247
2235
|
/***/ }),
|
|
2248
2236
|
|
|
2249
|
-
/***/
|
|
2237
|
+
/***/ 25:
|
|
2250
2238
|
/***/ (function(module, exports) {
|
|
2251
2239
|
|
|
2252
2240
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
2253
2241
|
|
|
2254
2242
|
/***/ }),
|
|
2255
2243
|
|
|
2256
|
-
/***/
|
|
2244
|
+
/***/ 26:
|
|
2257
2245
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2258
2246
|
|
|
2259
2247
|
"use strict";
|
|
2260
2248
|
|
|
2261
2249
|
|
|
2262
|
-
var _toConsumableArray = __webpack_require__(
|
|
2263
|
-
|
|
2264
|
-
var _defineProperty = __webpack_require__(9);
|
|
2265
|
-
|
|
2266
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
2267
|
-
var t = {};
|
|
2268
|
-
|
|
2269
|
-
for (var p in s) {
|
|
2270
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2274
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
2275
|
-
}
|
|
2276
|
-
return t;
|
|
2277
|
-
};
|
|
2250
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
2278
2251
|
|
|
2279
2252
|
Object.defineProperty(exports, "__esModule", {
|
|
2280
2253
|
value: true
|
|
2281
2254
|
});
|
|
2282
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.
|
|
2255
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
2283
2256
|
|
|
2284
|
-
var lodash_1 = __webpack_require__(
|
|
2257
|
+
var lodash_1 = __webpack_require__(2); // included for backwards compatibility
|
|
2285
2258
|
|
|
2286
|
-
var schemaUtils_1 = __webpack_require__(24);
|
|
2287
2259
|
|
|
2288
|
-
var
|
|
2260
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
2289
2261
|
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
* @param optionsSchema a visualization's options schema
|
|
2297
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
2298
|
-
*/
|
|
2299
|
-
|
|
2300
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
2301
|
-
var enhancedOptionsSchema = {};
|
|
2302
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
2303
|
-
var _a = optionsSchema[key],
|
|
2304
|
-
title = _a.title,
|
|
2305
|
-
description = _a.description,
|
|
2306
|
-
readOnly = _a.readOnly,
|
|
2307
|
-
writeOnly = _a.writeOnly,
|
|
2308
|
-
examples = _a.examples,
|
|
2309
|
-
defaultValue = _a.default,
|
|
2310
|
-
type = _a.type,
|
|
2311
|
-
properties = _a.properties,
|
|
2312
|
-
patternProperties = _a.patternProperties,
|
|
2313
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
2314
|
-
|
|
2315
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
2316
|
-
title: title
|
|
2317
|
-
}), description !== undefined && {
|
|
2318
|
-
description: description
|
|
2319
|
-
}), readOnly !== undefined && {
|
|
2320
|
-
readOnly: readOnly
|
|
2321
|
-
}), writeOnly !== undefined && {
|
|
2322
|
-
writeOnly: writeOnly
|
|
2323
|
-
}), examples !== undefined && {
|
|
2324
|
-
examples: examples
|
|
2325
|
-
}), defaultValue !== undefined && {
|
|
2326
|
-
default: defaultValue
|
|
2327
|
-
});
|
|
2328
|
-
|
|
2329
|
-
if (type === 'object') {
|
|
2330
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
2331
|
-
type: type
|
|
2332
|
-
}), properties && {
|
|
2333
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
2334
|
-
});
|
|
2335
|
-
|
|
2336
|
-
if (patternProperties) {
|
|
2337
|
-
var enhancedPatternProperties = {};
|
|
2338
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
2339
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
2340
|
-
});
|
|
2341
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
2342
|
-
}
|
|
2343
|
-
} else {
|
|
2344
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
2345
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
2346
|
-
type: type
|
|
2347
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
});
|
|
2351
|
-
return enhancedOptionsSchema;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
2262
|
+
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
2263
|
+
enumerable: true,
|
|
2264
|
+
get: function get() {
|
|
2265
|
+
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
2266
|
+
}
|
|
2267
|
+
});
|
|
2355
2268
|
/**
|
|
2356
2269
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
2357
2270
|
* this function also collapse all editor panels
|
|
@@ -2362,11 +2275,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
2362
2275
|
|
|
2363
2276
|
function enhanceConfig(vizConfig) {
|
|
2364
2277
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
2365
|
-
|
|
2366
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
2367
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
2278
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
2371
2279
|
return Object.assign(Object.assign({}, config), {
|
|
2372
2280
|
open: config.open || false
|
|
@@ -2490,42 +2398,42 @@ exports.insertLayout = insertLayout;
|
|
|
2490
2398
|
|
|
2491
2399
|
/***/ }),
|
|
2492
2400
|
|
|
2493
|
-
/***/
|
|
2401
|
+
/***/ 27:
|
|
2494
2402
|
/***/ (function(module, exports) {
|
|
2495
2403
|
|
|
2496
2404
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
2497
2405
|
|
|
2498
2406
|
/***/ }),
|
|
2499
2407
|
|
|
2500
|
-
/***/
|
|
2408
|
+
/***/ 29:
|
|
2501
2409
|
/***/ (function(module, exports) {
|
|
2502
2410
|
|
|
2503
|
-
module.exports = require("
|
|
2411
|
+
module.exports = require("@splunk/themes/pick");
|
|
2504
2412
|
|
|
2505
2413
|
/***/ }),
|
|
2506
2414
|
|
|
2507
|
-
/***/
|
|
2415
|
+
/***/ 3:
|
|
2508
2416
|
/***/ (function(module, exports) {
|
|
2509
2417
|
|
|
2510
|
-
module.exports = require("@splunk/
|
|
2418
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
2511
2419
|
|
|
2512
2420
|
/***/ }),
|
|
2513
2421
|
|
|
2514
|
-
/***/
|
|
2422
|
+
/***/ 30:
|
|
2515
2423
|
/***/ (function(module, exports) {
|
|
2516
2424
|
|
|
2517
2425
|
module.exports = require("@splunk/ui-utils/id");
|
|
2518
2426
|
|
|
2519
2427
|
/***/ }),
|
|
2520
2428
|
|
|
2521
|
-
/***/
|
|
2429
|
+
/***/ 31:
|
|
2522
2430
|
/***/ (function(module, exports) {
|
|
2523
2431
|
|
|
2524
2432
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
2525
2433
|
|
|
2526
2434
|
/***/ }),
|
|
2527
2435
|
|
|
2528
|
-
/***/
|
|
2436
|
+
/***/ 32:
|
|
2529
2437
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2530
2438
|
|
|
2531
2439
|
"use strict";
|
|
@@ -2535,7 +2443,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2535
2443
|
value: true
|
|
2536
2444
|
});
|
|
2537
2445
|
|
|
2538
|
-
var react_1 = __webpack_require__(
|
|
2446
|
+
var react_1 = __webpack_require__(1);
|
|
2539
2447
|
|
|
2540
2448
|
function usePrevious(value) {
|
|
2541
2449
|
var ref = (0, react_1.useRef)();
|
|
@@ -2549,21 +2457,21 @@ exports.default = usePrevious;
|
|
|
2549
2457
|
|
|
2550
2458
|
/***/ }),
|
|
2551
2459
|
|
|
2552
|
-
/***/
|
|
2460
|
+
/***/ 33:
|
|
2553
2461
|
/***/ (function(module, exports) {
|
|
2554
2462
|
|
|
2555
2463
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
2556
2464
|
|
|
2557
2465
|
/***/ }),
|
|
2558
2466
|
|
|
2559
|
-
/***/
|
|
2467
|
+
/***/ 34:
|
|
2560
2468
|
/***/ (function(module, exports) {
|
|
2561
2469
|
|
|
2562
2470
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
2563
2471
|
|
|
2564
2472
|
/***/ }),
|
|
2565
2473
|
|
|
2566
|
-
/***/
|
|
2474
|
+
/***/ 36:
|
|
2567
2475
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2568
2476
|
|
|
2569
2477
|
"use strict";
|
|
@@ -2574,15 +2482,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2574
2482
|
});
|
|
2575
2483
|
exports.shouldShowIconPlaceholder = void 0;
|
|
2576
2484
|
|
|
2577
|
-
var React = __webpack_require__(
|
|
2485
|
+
var React = __webpack_require__(1);
|
|
2578
2486
|
|
|
2579
|
-
var T = __webpack_require__(
|
|
2487
|
+
var T = __webpack_require__(0);
|
|
2580
2488
|
|
|
2581
|
-
var lodash_1 = __webpack_require__(
|
|
2489
|
+
var lodash_1 = __webpack_require__(2);
|
|
2582
2490
|
|
|
2583
|
-
var i18n_1 = __webpack_require__(
|
|
2491
|
+
var i18n_1 = __webpack_require__(3);
|
|
2584
2492
|
|
|
2585
|
-
var Message_1 = __webpack_require__(
|
|
2493
|
+
var Message_1 = __webpack_require__(11);
|
|
2586
2494
|
|
|
2587
2495
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
2588
2496
|
/**
|
|
@@ -2656,24 +2564,24 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
2656
2564
|
|
|
2657
2565
|
/***/ }),
|
|
2658
2566
|
|
|
2659
|
-
/***/
|
|
2567
|
+
/***/ 37:
|
|
2660
2568
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2661
2569
|
|
|
2662
2570
|
"use strict";
|
|
2663
2571
|
|
|
2664
2572
|
|
|
2665
|
-
var _defineProperty = __webpack_require__(
|
|
2573
|
+
var _defineProperty = __webpack_require__(12);
|
|
2666
2574
|
|
|
2667
2575
|
Object.defineProperty(exports, "__esModule", {
|
|
2668
2576
|
value: true
|
|
2669
2577
|
});
|
|
2670
2578
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
2671
2579
|
|
|
2672
|
-
var T = __webpack_require__(
|
|
2580
|
+
var T = __webpack_require__(0);
|
|
2673
2581
|
|
|
2674
|
-
var lodash_1 = __webpack_require__(
|
|
2582
|
+
var lodash_1 = __webpack_require__(2);
|
|
2675
2583
|
|
|
2676
|
-
var DataSource_1 = __webpack_require__(
|
|
2584
|
+
var DataSource_1 = __webpack_require__(20);
|
|
2677
2585
|
|
|
2678
2586
|
exports.SortParamsPropTypes = T.shape({
|
|
2679
2587
|
currentSortKey: T.string,
|
|
@@ -2727,7 +2635,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
2727
2635
|
|
|
2728
2636
|
/***/ }),
|
|
2729
2637
|
|
|
2730
|
-
/***/
|
|
2638
|
+
/***/ 38:
|
|
2731
2639
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2732
2640
|
|
|
2733
2641
|
"use strict";
|
|
@@ -2738,9 +2646,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2738
2646
|
});
|
|
2739
2647
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
2740
2648
|
|
|
2741
|
-
var T = __webpack_require__(
|
|
2649
|
+
var T = __webpack_require__(0);
|
|
2742
2650
|
|
|
2743
|
-
var lodash_1 = __webpack_require__(
|
|
2651
|
+
var lodash_1 = __webpack_require__(2);
|
|
2744
2652
|
|
|
2745
2653
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
2746
2654
|
isPaging: T.bool,
|
|
@@ -2792,14 +2700,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
2792
2700
|
|
|
2793
2701
|
/***/ }),
|
|
2794
2702
|
|
|
2795
|
-
/***/
|
|
2796
|
-
/***/ (function(module, exports) {
|
|
2797
|
-
|
|
2798
|
-
module.exports = require("styled-components");
|
|
2799
|
-
|
|
2800
|
-
/***/ }),
|
|
2801
|
-
|
|
2802
|
-
/***/ 40:
|
|
2703
|
+
/***/ 39:
|
|
2803
2704
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2804
2705
|
|
|
2805
2706
|
"use strict";
|
|
@@ -2834,11 +2735,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2834
2735
|
value: true
|
|
2835
2736
|
});
|
|
2836
2737
|
|
|
2738
|
+
__exportStar(__webpack_require__(40), exports);
|
|
2739
|
+
|
|
2837
2740
|
__exportStar(__webpack_require__(41), exports);
|
|
2838
2741
|
|
|
2839
|
-
__exportStar(__webpack_require__(
|
|
2742
|
+
__exportStar(__webpack_require__(20), exports);
|
|
2840
2743
|
|
|
2841
|
-
__exportStar(__webpack_require__(
|
|
2744
|
+
__exportStar(__webpack_require__(42), exports);
|
|
2842
2745
|
|
|
2843
2746
|
__exportStar(__webpack_require__(43), exports);
|
|
2844
2747
|
|
|
@@ -2850,16 +2753,16 @@ __exportStar(__webpack_require__(46), exports);
|
|
|
2850
2753
|
|
|
2851
2754
|
__exportStar(__webpack_require__(47), exports);
|
|
2852
2755
|
|
|
2853
|
-
__exportStar(__webpack_require__(48), exports);
|
|
2854
|
-
|
|
2855
|
-
__exportStar(__webpack_require__(49), exports);
|
|
2856
|
-
|
|
2857
2756
|
__exportStar(__webpack_require__(21), exports);
|
|
2858
2757
|
|
|
2859
|
-
__exportStar(__webpack_require__(
|
|
2758
|
+
__exportStar(__webpack_require__(7), exports);
|
|
2860
2759
|
|
|
2861
2760
|
__exportStar(__webpack_require__(22), exports);
|
|
2862
2761
|
|
|
2762
|
+
__exportStar(__webpack_require__(48), exports);
|
|
2763
|
+
|
|
2764
|
+
__exportStar(__webpack_require__(49), exports);
|
|
2765
|
+
|
|
2863
2766
|
__exportStar(__webpack_require__(50), exports);
|
|
2864
2767
|
|
|
2865
2768
|
__exportStar(__webpack_require__(51), exports);
|
|
@@ -2868,13 +2771,16 @@ __exportStar(__webpack_require__(52), exports);
|
|
|
2868
2771
|
|
|
2869
2772
|
__exportStar(__webpack_require__(53), exports);
|
|
2870
2773
|
|
|
2871
|
-
|
|
2774
|
+
/***/ }),
|
|
2775
|
+
|
|
2776
|
+
/***/ 4:
|
|
2777
|
+
/***/ (function(module, exports) {
|
|
2872
2778
|
|
|
2873
|
-
|
|
2779
|
+
module.exports = require("styled-components");
|
|
2874
2780
|
|
|
2875
2781
|
/***/ }),
|
|
2876
2782
|
|
|
2877
|
-
/***/
|
|
2783
|
+
/***/ 40:
|
|
2878
2784
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2879
2785
|
|
|
2880
2786
|
"use strict";
|
|
@@ -2886,7 +2792,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2886
2792
|
|
|
2887
2793
|
/***/ }),
|
|
2888
2794
|
|
|
2889
|
-
/***/
|
|
2795
|
+
/***/ 41:
|
|
2890
2796
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2891
2797
|
|
|
2892
2798
|
"use strict";
|
|
@@ -2901,7 +2807,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2901
2807
|
|
|
2902
2808
|
/***/ }),
|
|
2903
2809
|
|
|
2904
|
-
/***/
|
|
2810
|
+
/***/ 42:
|
|
2905
2811
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2906
2812
|
|
|
2907
2813
|
"use strict";
|
|
@@ -2913,7 +2819,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2913
2819
|
|
|
2914
2820
|
/***/ }),
|
|
2915
2821
|
|
|
2916
|
-
/***/
|
|
2822
|
+
/***/ 43:
|
|
2917
2823
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2918
2824
|
|
|
2919
2825
|
"use strict";
|
|
@@ -2925,7 +2831,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2925
2831
|
|
|
2926
2832
|
/***/ }),
|
|
2927
2833
|
|
|
2928
|
-
/***/
|
|
2834
|
+
/***/ 437:
|
|
2929
2835
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2930
2836
|
|
|
2931
2837
|
"use strict";
|
|
@@ -2961,9 +2867,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2961
2867
|
});
|
|
2962
2868
|
exports.default = void 0;
|
|
2963
2869
|
|
|
2964
|
-
__exportStar(__webpack_require__(
|
|
2870
|
+
__exportStar(__webpack_require__(180), exports);
|
|
2965
2871
|
|
|
2966
|
-
var MarkerGauge_1 = __webpack_require__(
|
|
2872
|
+
var MarkerGauge_1 = __webpack_require__(180);
|
|
2967
2873
|
|
|
2968
2874
|
Object.defineProperty(exports, "default", {
|
|
2969
2875
|
enumerable: true,
|
|
@@ -2974,25 +2880,13 @@ Object.defineProperty(exports, "default", {
|
|
|
2974
2880
|
|
|
2975
2881
|
/***/ }),
|
|
2976
2882
|
|
|
2977
|
-
/***/
|
|
2883
|
+
/***/ 438:
|
|
2978
2884
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2979
2885
|
|
|
2980
2886
|
"use strict";
|
|
2981
2887
|
|
|
2982
2888
|
|
|
2983
|
-
|
|
2984
|
-
value: true
|
|
2985
|
-
});
|
|
2986
|
-
|
|
2987
|
-
/***/ }),
|
|
2988
|
-
|
|
2989
|
-
/***/ 450:
|
|
2990
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2991
|
-
|
|
2992
|
-
"use strict";
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
var _slicedToArray = __webpack_require__(7);
|
|
2889
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2996
2890
|
|
|
2997
2891
|
var __rest = this && this.__rest || function (s, e) {
|
|
2998
2892
|
var t = {};
|
|
@@ -3011,31 +2905,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3011
2905
|
value: true
|
|
3012
2906
|
});
|
|
3013
2907
|
|
|
3014
|
-
var React = __webpack_require__(
|
|
2908
|
+
var React = __webpack_require__(1);
|
|
3015
2909
|
|
|
3016
|
-
var react_1 = __webpack_require__(
|
|
2910
|
+
var react_1 = __webpack_require__(1);
|
|
3017
2911
|
|
|
3018
|
-
var T = __webpack_require__(
|
|
2912
|
+
var T = __webpack_require__(0);
|
|
3019
2913
|
|
|
3020
2914
|
var styled_components_1 = __webpack_require__(4);
|
|
3021
2915
|
|
|
3022
|
-
var lodash_1 = __webpack_require__(
|
|
2916
|
+
var lodash_1 = __webpack_require__(2);
|
|
3023
2917
|
|
|
3024
|
-
var i18n_1 = __webpack_require__(
|
|
2918
|
+
var i18n_1 = __webpack_require__(3);
|
|
3025
2919
|
|
|
3026
2920
|
var style_1 = __webpack_require__(18);
|
|
3027
2921
|
|
|
3028
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
2922
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
3029
2923
|
|
|
3030
|
-
var Message_1 = __webpack_require__(
|
|
2924
|
+
var Message_1 = __webpack_require__(11);
|
|
3031
2925
|
|
|
3032
|
-
var id_1 = __webpack_require__(
|
|
2926
|
+
var id_1 = __webpack_require__(30);
|
|
3033
2927
|
|
|
3034
|
-
var gaugeUtils_1 = __webpack_require__(
|
|
2928
|
+
var gaugeUtils_1 = __webpack_require__(118);
|
|
3035
2929
|
|
|
3036
|
-
var GaugeMajorTicks_1 = __webpack_require__(
|
|
2930
|
+
var GaugeMajorTicks_1 = __webpack_require__(146);
|
|
3037
2931
|
|
|
3038
|
-
var GaugeValueMarker_1 = __webpack_require__(
|
|
2932
|
+
var GaugeValueMarker_1 = __webpack_require__(147);
|
|
3039
2933
|
|
|
3040
2934
|
var MAX_VERTICAL_CONTAINER_WIDTH = 200;
|
|
3041
2935
|
var MIN_VERTICAL_CONTAINER_HEIGHT = 200;
|
|
@@ -3311,6 +3205,7 @@ var MarkerGauge = function MarkerGauge(_a) {
|
|
|
3311
3205
|
}))));
|
|
3312
3206
|
}, [orientation, error, calculateMarkerGaugeDimensions, backgroundColor, linearGradient, fillColor, min, max, majorUnit, showLabels, usePercentageRange, majorTickFillColor, majorTickStrokeColor, linearGradientId, value, showValue, usePercentageValue, valueMarkerFillColor, valueMarkerLabelFillColor, errorMessage, errorId]);
|
|
3313
3207
|
return React.createElement(Container, {
|
|
3208
|
+
"data-test": "marker-gauge-container",
|
|
3314
3209
|
width: width,
|
|
3315
3210
|
height: height,
|
|
3316
3211
|
backgroundColor: backgroundColor
|
|
@@ -3378,7 +3273,7 @@ exports.default = MarkerGauge;
|
|
|
3378
3273
|
|
|
3379
3274
|
/***/ }),
|
|
3380
3275
|
|
|
3381
|
-
/***/
|
|
3276
|
+
/***/ 439:
|
|
3382
3277
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3383
3278
|
|
|
3384
3279
|
"use strict";
|
|
@@ -3388,27 +3283,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3388
3283
|
value: true
|
|
3389
3284
|
});
|
|
3390
3285
|
|
|
3391
|
-
var i18n_1 = __webpack_require__(
|
|
3286
|
+
var i18n_1 = __webpack_require__(3);
|
|
3392
3287
|
|
|
3393
|
-
var GaugeMarker_1 = __webpack_require__(
|
|
3288
|
+
var GaugeMarker_1 = __webpack_require__(440);
|
|
3394
3289
|
|
|
3395
|
-
var placeholders_1 = __webpack_require__(
|
|
3290
|
+
var placeholders_1 = __webpack_require__(70);
|
|
3396
3291
|
|
|
3397
|
-
var
|
|
3292
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
3398
3293
|
|
|
3399
3294
|
var variables_1 = __webpack_require__(13);
|
|
3400
3295
|
|
|
3401
|
-
var pick_1 = __webpack_require__(
|
|
3296
|
+
var pick_1 = __webpack_require__(29);
|
|
3402
3297
|
|
|
3403
|
-
var Gauge_1 = __webpack_require__(
|
|
3298
|
+
var Gauge_1 = __webpack_require__(145);
|
|
3404
3299
|
|
|
3405
|
-
var VizBehavior_1 = __webpack_require__(
|
|
3300
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
3406
3301
|
|
|
3407
3302
|
var VizCategory_1 = __webpack_require__(22);
|
|
3408
3303
|
|
|
3409
|
-
var configUtils_1 = __webpack_require__(
|
|
3304
|
+
var configUtils_1 = __webpack_require__(26);
|
|
3410
3305
|
|
|
3411
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3306
|
+
var BackgroundColor_1 = __webpack_require__(72);
|
|
3412
3307
|
|
|
3413
3308
|
var dataContract = {
|
|
3414
3309
|
requiredDataSources: [{
|
|
@@ -3428,79 +3323,6 @@ var size = {
|
|
|
3428
3323
|
initialHeight: 300
|
|
3429
3324
|
};
|
|
3430
3325
|
var defaultContext = {};
|
|
3431
|
-
var optionsSchema = {
|
|
3432
|
-
backgroundColor: {
|
|
3433
|
-
description: 'Specify the color used for the background. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
3434
|
-
type: 'string',
|
|
3435
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3436
|
-
default: '> themes.defaultBackgroundColor'
|
|
3437
|
-
},
|
|
3438
|
-
gaugeRanges: {
|
|
3439
|
-
description: 'Specify the overall range of the gauge as a series of continuous, color-coded subranges. For example, [{"from": 0, "to": 20, "value": "#4BEBA8"}, {"from": 20, "to": 50, "value": "#F4DF7A"}].',
|
|
3440
|
-
default: [{
|
|
3441
|
-
from: 0,
|
|
3442
|
-
to: 50,
|
|
3443
|
-
value: '#118832'
|
|
3444
|
-
}, {
|
|
3445
|
-
from: 50,
|
|
3446
|
-
to: 90,
|
|
3447
|
-
value: '#CBA700'
|
|
3448
|
-
}, {
|
|
3449
|
-
from: 90,
|
|
3450
|
-
to: 100,
|
|
3451
|
-
value: '#D41F1F'
|
|
3452
|
-
}],
|
|
3453
|
-
type: 'array',
|
|
3454
|
-
items: {
|
|
3455
|
-
type: 'object',
|
|
3456
|
-
properties: {
|
|
3457
|
-
from: {
|
|
3458
|
-
type: 'number',
|
|
3459
|
-
description: 'Starting value for range.'
|
|
3460
|
-
},
|
|
3461
|
-
to: {
|
|
3462
|
-
type: 'number',
|
|
3463
|
-
description: 'Ending value for range.'
|
|
3464
|
-
},
|
|
3465
|
-
value: {
|
|
3466
|
-
description: 'Color for sub range.',
|
|
3467
|
-
type: 'string',
|
|
3468
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
3469
|
-
}
|
|
3470
|
-
},
|
|
3471
|
-
required: ['from', 'to', 'value'],
|
|
3472
|
-
additionalProperties: false
|
|
3473
|
-
}
|
|
3474
|
-
},
|
|
3475
|
-
labelDisplay: {
|
|
3476
|
-
description: 'Specify whether to display the labels as numbers, percentages, or off. The label center aligns to the value.',
|
|
3477
|
-
default: 'number',
|
|
3478
|
-
type: 'string',
|
|
3479
|
-
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off'])
|
|
3480
|
-
},
|
|
3481
|
-
majorTickInterval: {
|
|
3482
|
-
description: 'Specify, in pixels, the spacing between major tick marks.',
|
|
3483
|
-
default: 'auto',
|
|
3484
|
-
type: ['string', 'number']
|
|
3485
|
-
},
|
|
3486
|
-
orientation: {
|
|
3487
|
-
description: 'Specify the axis orientation of the gauge.',
|
|
3488
|
-
default: 'vertical',
|
|
3489
|
-
type: 'string',
|
|
3490
|
-
pattern: (0, schemaUtils_1.getPattern)(['horizontal', 'vertical'])
|
|
3491
|
-
},
|
|
3492
|
-
value: {
|
|
3493
|
-
description: 'Specify the dataSource applied to the value of the marker gauge.',
|
|
3494
|
-
type: 'string',
|
|
3495
|
-
default: '> primary | seriesByType("number") | lastPoint()'
|
|
3496
|
-
},
|
|
3497
|
-
valueDisplay: {
|
|
3498
|
-
description: 'Specify whether to display the value as a number, percentage, or off.',
|
|
3499
|
-
default: 'number',
|
|
3500
|
-
type: 'string',
|
|
3501
|
-
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off'])
|
|
3502
|
-
}
|
|
3503
|
-
};
|
|
3504
3326
|
var themes = {
|
|
3505
3327
|
defaultFillColor: function defaultFillColor(props) {
|
|
3506
3328
|
return (0, pick_1.default)({
|
|
@@ -3620,7 +3442,7 @@ var config = {
|
|
|
3620
3442
|
dataContract: dataContract,
|
|
3621
3443
|
size: size,
|
|
3622
3444
|
defaultContext: defaultContext,
|
|
3623
|
-
optionsSchema:
|
|
3445
|
+
optionsSchema: visualization_schemas_1.markerGaugeOptionsSchema,
|
|
3624
3446
|
editorConfig: editorConfig,
|
|
3625
3447
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
|
|
3626
3448
|
themes: themes
|
|
@@ -3629,14 +3451,7 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
|
3629
3451
|
|
|
3630
3452
|
/***/ }),
|
|
3631
3453
|
|
|
3632
|
-
/***/
|
|
3633
|
-
/***/ (function(module, exports) {
|
|
3634
|
-
|
|
3635
|
-
module.exports = require("@splunk/react-icons/enterprise/GaugeMarker");
|
|
3636
|
-
|
|
3637
|
-
/***/ }),
|
|
3638
|
-
|
|
3639
|
-
/***/ 46:
|
|
3454
|
+
/***/ 44:
|
|
3640
3455
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3641
3456
|
|
|
3642
3457
|
"use strict";
|
|
@@ -3648,7 +3463,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3648
3463
|
|
|
3649
3464
|
/***/ }),
|
|
3650
3465
|
|
|
3651
|
-
/***/
|
|
3466
|
+
/***/ 440:
|
|
3467
|
+
/***/ (function(module, exports) {
|
|
3468
|
+
|
|
3469
|
+
module.exports = require("@splunk/react-icons/enterprise/GaugeMarker");
|
|
3470
|
+
|
|
3471
|
+
/***/ }),
|
|
3472
|
+
|
|
3473
|
+
/***/ 45:
|
|
3652
3474
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3653
3475
|
|
|
3654
3476
|
"use strict";
|
|
@@ -3660,7 +3482,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3660
3482
|
|
|
3661
3483
|
/***/ }),
|
|
3662
3484
|
|
|
3663
|
-
/***/
|
|
3485
|
+
/***/ 46:
|
|
3664
3486
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3665
3487
|
|
|
3666
3488
|
"use strict";
|
|
@@ -3672,7 +3494,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3672
3494
|
|
|
3673
3495
|
/***/ }),
|
|
3674
3496
|
|
|
3675
|
-
/***/
|
|
3497
|
+
/***/ 47:
|
|
3676
3498
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3677
3499
|
|
|
3678
3500
|
"use strict";
|
|
@@ -3684,7 +3506,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3684
3506
|
|
|
3685
3507
|
/***/ }),
|
|
3686
3508
|
|
|
3687
|
-
/***/
|
|
3509
|
+
/***/ 48:
|
|
3688
3510
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3689
3511
|
|
|
3690
3512
|
"use strict";
|
|
@@ -3696,7 +3518,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3696
3518
|
|
|
3697
3519
|
/***/ }),
|
|
3698
3520
|
|
|
3699
|
-
/***/
|
|
3521
|
+
/***/ 49:
|
|
3700
3522
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3701
3523
|
|
|
3702
3524
|
"use strict";
|
|
@@ -3708,7 +3530,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3708
3530
|
|
|
3709
3531
|
/***/ }),
|
|
3710
3532
|
|
|
3711
|
-
/***/
|
|
3533
|
+
/***/ 5:
|
|
3534
|
+
/***/ (function(module, exports) {
|
|
3535
|
+
|
|
3536
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3537
|
+
|
|
3538
|
+
/***/ }),
|
|
3539
|
+
|
|
3540
|
+
/***/ 50:
|
|
3712
3541
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3713
3542
|
|
|
3714
3543
|
"use strict";
|
|
@@ -3720,7 +3549,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3720
3549
|
|
|
3721
3550
|
/***/ }),
|
|
3722
3551
|
|
|
3723
|
-
/***/
|
|
3552
|
+
/***/ 51:
|
|
3724
3553
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3725
3554
|
|
|
3726
3555
|
"use strict";
|
|
@@ -3732,7 +3561,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3732
3561
|
|
|
3733
3562
|
/***/ }),
|
|
3734
3563
|
|
|
3735
|
-
/***/
|
|
3564
|
+
/***/ 52:
|
|
3736
3565
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3737
3566
|
|
|
3738
3567
|
"use strict";
|
|
@@ -3744,7 +3573,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3744
3573
|
|
|
3745
3574
|
/***/ }),
|
|
3746
3575
|
|
|
3747
|
-
/***/
|
|
3576
|
+
/***/ 53:
|
|
3748
3577
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3749
3578
|
|
|
3750
3579
|
"use strict";
|
|
@@ -3756,65 +3585,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3756
3585
|
|
|
3757
3586
|
/***/ }),
|
|
3758
3587
|
|
|
3759
|
-
/***/
|
|
3588
|
+
/***/ 54:
|
|
3760
3589
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3761
3590
|
|
|
3762
3591
|
"use strict";
|
|
3763
3592
|
|
|
3764
3593
|
|
|
3765
|
-
var _slicedToArray = __webpack_require__(
|
|
3594
|
+
var _slicedToArray = __webpack_require__(5);
|
|
3766
3595
|
|
|
3767
3596
|
Object.defineProperty(exports, "__esModule", {
|
|
3768
3597
|
value: true
|
|
3769
3598
|
});
|
|
3770
3599
|
|
|
3771
|
-
var React = __webpack_require__(
|
|
3600
|
+
var React = __webpack_require__(1);
|
|
3772
3601
|
|
|
3773
|
-
var lodash_1 = __webpack_require__(
|
|
3602
|
+
var lodash_1 = __webpack_require__(2);
|
|
3774
3603
|
|
|
3775
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
3604
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(55);
|
|
3776
3605
|
|
|
3777
3606
|
var Options_1 = __webpack_require__(16);
|
|
3778
3607
|
|
|
3779
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
3608
|
+
var SanitizeProps_1 = __webpack_require__(56);
|
|
3780
3609
|
|
|
3781
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
3610
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
3782
3611
|
|
|
3783
|
-
var moment_1 = __webpack_require__(
|
|
3612
|
+
var moment_1 = __webpack_require__(57);
|
|
3784
3613
|
|
|
3785
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
3614
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
3786
3615
|
|
|
3787
3616
|
var styled_components_1 = __webpack_require__(4);
|
|
3788
3617
|
|
|
3789
|
-
var hocUtils_1 = __webpack_require__(
|
|
3618
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
3790
3619
|
|
|
3791
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
3620
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
3792
3621
|
|
|
3793
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
3622
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(58);
|
|
3794
3623
|
|
|
3795
|
-
var id_1 = __webpack_require__(
|
|
3624
|
+
var id_1 = __webpack_require__(30);
|
|
3796
3625
|
|
|
3797
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
3626
|
+
var SplunkVisualization_1 = __webpack_require__(59);
|
|
3798
3627
|
|
|
3799
|
-
var VizBehavior_1 = __webpack_require__(
|
|
3628
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
3800
3629
|
|
|
3801
|
-
var getSorting_1 = __webpack_require__(
|
|
3630
|
+
var getSorting_1 = __webpack_require__(37);
|
|
3802
3631
|
|
|
3803
|
-
var getPagination_1 = __webpack_require__(
|
|
3632
|
+
var getPagination_1 = __webpack_require__(38);
|
|
3804
3633
|
|
|
3805
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
3634
|
+
var useDeepMemo_1 = __webpack_require__(60);
|
|
3806
3635
|
|
|
3807
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
3636
|
+
var MissingPropsMessage_1 = __webpack_require__(61);
|
|
3808
3637
|
|
|
3809
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
3638
|
+
var withEditModeCover_1 = __webpack_require__(62);
|
|
3810
3639
|
|
|
3811
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
3640
|
+
var withPlaceholder_1 = __webpack_require__(63);
|
|
3812
3641
|
|
|
3813
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
3642
|
+
var useDownsampleDataSources_1 = __webpack_require__(64);
|
|
3814
3643
|
|
|
3815
3644
|
var dataUtils_1 = __webpack_require__(14);
|
|
3816
3645
|
|
|
3817
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
3646
|
+
var featureFlagUtils_1 = __webpack_require__(66);
|
|
3818
3647
|
/**
|
|
3819
3648
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
3820
3649
|
* @param {DashboardVizOpts} opts
|
|
@@ -4147,81 +3976,41 @@ exports.default = withDashboardViz;
|
|
|
4147
3976
|
|
|
4148
3977
|
/***/ }),
|
|
4149
3978
|
|
|
4150
|
-
/***/
|
|
3979
|
+
/***/ 55:
|
|
4151
3980
|
/***/ (function(module, exports) {
|
|
4152
3981
|
|
|
4153
3982
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
4154
3983
|
|
|
4155
3984
|
/***/ }),
|
|
4156
3985
|
|
|
4157
|
-
/***/
|
|
3986
|
+
/***/ 56:
|
|
4158
3987
|
/***/ (function(module, exports) {
|
|
4159
3988
|
|
|
4160
3989
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
4161
3990
|
|
|
4162
3991
|
/***/ }),
|
|
4163
3992
|
|
|
4164
|
-
/***/
|
|
3993
|
+
/***/ 57:
|
|
4165
3994
|
/***/ (function(module, exports) {
|
|
4166
3995
|
|
|
4167
3996
|
module.exports = require("@splunk/moment");
|
|
4168
3997
|
|
|
4169
3998
|
/***/ }),
|
|
4170
3999
|
|
|
4171
|
-
/***/
|
|
4172
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4173
|
-
|
|
4174
|
-
"use strict";
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4178
|
-
value: true
|
|
4179
|
-
});
|
|
4180
|
-
exports.VizBehavior = void 0;
|
|
4181
|
-
var VizBehavior;
|
|
4182
|
-
|
|
4183
|
-
(function (VizBehavior) {
|
|
4184
|
-
/**
|
|
4185
|
-
* Dynamic Options Behavior.
|
|
4186
|
-
* This allows visualization options to be powered by data
|
|
4187
|
-
*
|
|
4188
|
-
* **Example**
|
|
4189
|
-
*
|
|
4190
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
4191
|
-
* would configure sparklineValues with an array of data points
|
|
4192
|
-
* coming from the first series in the primary datasource
|
|
4193
|
-
*
|
|
4194
|
-
*/
|
|
4195
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
4196
|
-
VizBehavior["EVENTS"] = "events";
|
|
4197
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
4198
|
-
/**
|
|
4199
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
4200
|
-
* missing.
|
|
4201
|
-
* @type {string}
|
|
4202
|
-
*/
|
|
4203
|
-
|
|
4204
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
4205
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
4206
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
4207
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
4208
|
-
|
|
4209
|
-
/***/ }),
|
|
4210
|
-
|
|
4211
|
-
/***/ 60:
|
|
4000
|
+
/***/ 58:
|
|
4212
4001
|
/***/ (function(module, exports) {
|
|
4213
4002
|
|
|
4214
4003
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
4215
4004
|
|
|
4216
4005
|
/***/ }),
|
|
4217
4006
|
|
|
4218
|
-
/***/
|
|
4007
|
+
/***/ 59:
|
|
4219
4008
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4220
4009
|
|
|
4221
4010
|
"use strict";
|
|
4222
4011
|
|
|
4223
4012
|
|
|
4224
|
-
var _classCallCheck = __webpack_require__(
|
|
4013
|
+
var _classCallCheck = __webpack_require__(8);
|
|
4225
4014
|
|
|
4226
4015
|
Object.defineProperty(exports, "__esModule", {
|
|
4227
4016
|
value: true
|
|
@@ -4229,9 +4018,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4229
4018
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
4230
4019
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
4231
4020
|
|
|
4232
|
-
var T = __webpack_require__(
|
|
4021
|
+
var T = __webpack_require__(0);
|
|
4233
4022
|
|
|
4234
|
-
var lodash_1 = __webpack_require__(
|
|
4023
|
+
var lodash_1 = __webpack_require__(2);
|
|
4235
4024
|
|
|
4236
4025
|
var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
4237
4026
|
|
|
@@ -4367,7 +4156,14 @@ exports.default = SplunkVisualization;
|
|
|
4367
4156
|
|
|
4368
4157
|
/***/ }),
|
|
4369
4158
|
|
|
4370
|
-
/***/
|
|
4159
|
+
/***/ 6:
|
|
4160
|
+
/***/ (function(module, exports) {
|
|
4161
|
+
|
|
4162
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
4163
|
+
|
|
4164
|
+
/***/ }),
|
|
4165
|
+
|
|
4166
|
+
/***/ 60:
|
|
4371
4167
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4372
4168
|
|
|
4373
4169
|
"use strict";
|
|
@@ -4378,9 +4174,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4378
4174
|
});
|
|
4379
4175
|
exports.useDeepMemo = void 0;
|
|
4380
4176
|
|
|
4381
|
-
var react_1 = __webpack_require__(
|
|
4177
|
+
var react_1 = __webpack_require__(1);
|
|
4382
4178
|
|
|
4383
|
-
var lodash_1 = __webpack_require__(
|
|
4179
|
+
var lodash_1 = __webpack_require__(2);
|
|
4384
4180
|
/**
|
|
4385
4181
|
* This hook evaluates and stores the result of a passed function and only
|
|
4386
4182
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -4413,7 +4209,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
4413
4209
|
|
|
4414
4210
|
/***/ }),
|
|
4415
4211
|
|
|
4416
|
-
/***/
|
|
4212
|
+
/***/ 61:
|
|
4417
4213
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4418
4214
|
|
|
4419
4215
|
"use strict";
|
|
@@ -4424,13 +4220,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4424
4220
|
});
|
|
4425
4221
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
4426
4222
|
|
|
4427
|
-
var React = __webpack_require__(
|
|
4223
|
+
var React = __webpack_require__(1);
|
|
4428
4224
|
|
|
4429
|
-
var T = __webpack_require__(
|
|
4225
|
+
var T = __webpack_require__(0);
|
|
4430
4226
|
|
|
4431
|
-
var i18n_1 = __webpack_require__(
|
|
4227
|
+
var i18n_1 = __webpack_require__(3);
|
|
4432
4228
|
|
|
4433
|
-
var Message_1 = __webpack_require__(
|
|
4229
|
+
var Message_1 = __webpack_require__(11);
|
|
4434
4230
|
|
|
4435
4231
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
4436
4232
|
/**
|
|
@@ -4494,7 +4290,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
|
|
|
4494
4290
|
|
|
4495
4291
|
/***/ }),
|
|
4496
4292
|
|
|
4497
|
-
/***/
|
|
4293
|
+
/***/ 62:
|
|
4498
4294
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4499
4295
|
|
|
4500
4296
|
"use strict";
|
|
@@ -4504,7 +4300,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4504
4300
|
value: true
|
|
4505
4301
|
});
|
|
4506
4302
|
|
|
4507
|
-
var React = __webpack_require__(
|
|
4303
|
+
var React = __webpack_require__(1);
|
|
4508
4304
|
|
|
4509
4305
|
var styled_components_1 = __webpack_require__(4);
|
|
4510
4306
|
|
|
@@ -4515,7 +4311,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
4515
4311
|
componentId: "sc-1gsbnxb-0"
|
|
4516
4312
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
4517
4313
|
var Blocker = styled_components_1.default.div.attrs({
|
|
4518
|
-
'data-splunk-visualization-version': "26.
|
|
4314
|
+
'data-splunk-visualization-version': "26.4.0 - 04078274d"
|
|
4519
4315
|
}).withConfig({
|
|
4520
4316
|
displayName: "withEditModeCover__Blocker",
|
|
4521
4317
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -4547,7 +4343,7 @@ exports.default = withEditModeCover;
|
|
|
4547
4343
|
|
|
4548
4344
|
/***/ }),
|
|
4549
4345
|
|
|
4550
|
-
/***/
|
|
4346
|
+
/***/ 63:
|
|
4551
4347
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4552
4348
|
|
|
4553
4349
|
"use strict";
|
|
@@ -4557,15 +4353,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4557
4353
|
value: true
|
|
4558
4354
|
});
|
|
4559
4355
|
|
|
4560
|
-
var React = __webpack_require__(
|
|
4356
|
+
var React = __webpack_require__(1);
|
|
4561
4357
|
|
|
4562
4358
|
var colorUtils_1 = __webpack_require__(15);
|
|
4563
4359
|
|
|
4564
4360
|
var variables_1 = __webpack_require__(13);
|
|
4565
4361
|
|
|
4566
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
4362
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
4567
4363
|
|
|
4568
|
-
var VizBehavior_1 = __webpack_require__(
|
|
4364
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
4569
4365
|
|
|
4570
4366
|
var hocUtils_1 = __webpack_require__(23);
|
|
4571
4367
|
|
|
@@ -4612,27 +4408,30 @@ exports.default = withPlaceholder;
|
|
|
4612
4408
|
|
|
4613
4409
|
/***/ }),
|
|
4614
4410
|
|
|
4615
|
-
/***/
|
|
4411
|
+
/***/ 64:
|
|
4616
4412
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4617
4413
|
|
|
4618
4414
|
"use strict";
|
|
4619
4415
|
|
|
4620
4416
|
|
|
4621
|
-
var _slicedToArray = __webpack_require__(
|
|
4417
|
+
var _slicedToArray = __webpack_require__(5);
|
|
4622
4418
|
|
|
4623
4419
|
Object.defineProperty(exports, "__esModule", {
|
|
4624
4420
|
value: true
|
|
4625
4421
|
});
|
|
4626
4422
|
|
|
4627
|
-
var react_1 = __webpack_require__(
|
|
4423
|
+
var react_1 = __webpack_require__(1);
|
|
4628
4424
|
|
|
4629
|
-
var lodash_1 = __webpack_require__(
|
|
4425
|
+
var lodash_1 = __webpack_require__(2);
|
|
4630
4426
|
|
|
4631
4427
|
var dataUtils_1 = __webpack_require__(14);
|
|
4632
4428
|
|
|
4633
|
-
var usePrevious_1 = __webpack_require__(
|
|
4429
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
4634
4430
|
|
|
4635
|
-
var useGetXAndYFields_1 = __webpack_require__(
|
|
4431
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
4432
|
+
|
|
4433
|
+
|
|
4434
|
+
var downsampleVizOptionProperties = ['nullValueDisplay'];
|
|
4636
4435
|
|
|
4637
4436
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
4638
4437
|
var dataSources = _ref.dataSources,
|
|
@@ -4646,8 +4445,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
4646
4445
|
options: options,
|
|
4647
4446
|
context: context,
|
|
4648
4447
|
dataSources: dataSources
|
|
4649
|
-
});
|
|
4650
|
-
|
|
4448
|
+
}); // Extract viz options that impact downsampling.
|
|
4449
|
+
|
|
4450
|
+
var downsampleVizOptions = (0, react_1.useMemo)(function () {
|
|
4451
|
+
return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
|
|
4452
|
+
}, [options]);
|
|
4453
|
+
var downsampleDSOptions = (0, react_1.useMemo)(function () {
|
|
4454
|
+
return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
|
|
4455
|
+
}, [xAndYFieldsWithTypes, downsampleVizOptions]);
|
|
4456
|
+
var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
|
|
4651
4457
|
var previousDataSources = (0, usePrevious_1.default)(dataSources);
|
|
4652
4458
|
var previousThreshold = (0, usePrevious_1.default)(threshold);
|
|
4653
4459
|
|
|
@@ -4655,7 +4461,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
4655
4461
|
return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
|
|
4656
4462
|
dataSources: dataSources,
|
|
4657
4463
|
threshold: threshold,
|
|
4658
|
-
options:
|
|
4464
|
+
options: downsampleDSOptions
|
|
4659
4465
|
}) : dataSources;
|
|
4660
4466
|
}),
|
|
4661
4467
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -4683,7 +4489,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
4683
4489
|
return;
|
|
4684
4490
|
}
|
|
4685
4491
|
|
|
4686
|
-
if ((0, lodash_1.isEqual)(
|
|
4492
|
+
if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
|
|
4687
4493
|
return;
|
|
4688
4494
|
} // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
|
|
4689
4495
|
// while the viz is being resized
|
|
@@ -4691,10 +4497,10 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
4691
4497
|
|
|
4692
4498
|
debouncedDownsampleDataSources({
|
|
4693
4499
|
dataSources: dataSources,
|
|
4694
|
-
options:
|
|
4500
|
+
options: downsampleDSOptions,
|
|
4695
4501
|
threshold: threshold
|
|
4696
4502
|
}); // need to detect if this runs as part of the initial render
|
|
4697
|
-
}, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled,
|
|
4503
|
+
}, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
|
|
4698
4504
|
return downsampledDataSources;
|
|
4699
4505
|
};
|
|
4700
4506
|
|
|
@@ -4702,19 +4508,19 @@ exports.default = useDownsampleDataSources;
|
|
|
4702
4508
|
|
|
4703
4509
|
/***/ }),
|
|
4704
4510
|
|
|
4705
|
-
/***/
|
|
4511
|
+
/***/ 65:
|
|
4706
4512
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4707
4513
|
|
|
4708
4514
|
"use strict";
|
|
4709
4515
|
|
|
4710
4516
|
|
|
4711
|
-
var _toConsumableArray = __webpack_require__(
|
|
4517
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
4712
4518
|
|
|
4713
4519
|
Object.defineProperty(exports, "__esModule", {
|
|
4714
4520
|
value: true
|
|
4715
4521
|
});
|
|
4716
4522
|
|
|
4717
|
-
var react_1 = __webpack_require__(
|
|
4523
|
+
var react_1 = __webpack_require__(1);
|
|
4718
4524
|
|
|
4719
4525
|
var Options_1 = __webpack_require__(16);
|
|
4720
4526
|
/**
|
|
@@ -4817,7 +4623,7 @@ exports.default = useGetXAndYFields;
|
|
|
4817
4623
|
|
|
4818
4624
|
/***/ }),
|
|
4819
4625
|
|
|
4820
|
-
/***/
|
|
4626
|
+
/***/ 66:
|
|
4821
4627
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4822
4628
|
|
|
4823
4629
|
"use strict";
|
|
@@ -4828,7 +4634,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4828
4634
|
});
|
|
4829
4635
|
exports.getFeatureFlag = void 0;
|
|
4830
4636
|
|
|
4831
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
4637
|
+
var FeatureFlags_1 = __webpack_require__(67);
|
|
4832
4638
|
|
|
4833
4639
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
4834
4640
|
// look for feature flag in context first
|
|
@@ -4853,42 +4659,75 @@ exports.getFeatureFlag = getFeatureFlag;
|
|
|
4853
4659
|
|
|
4854
4660
|
/***/ }),
|
|
4855
4661
|
|
|
4856
|
-
/***/
|
|
4662
|
+
/***/ 67:
|
|
4857
4663
|
/***/ (function(module, exports) {
|
|
4858
4664
|
|
|
4859
4665
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
4860
4666
|
|
|
4861
4667
|
/***/ }),
|
|
4862
4668
|
|
|
4863
|
-
/***/
|
|
4669
|
+
/***/ 68:
|
|
4864
4670
|
/***/ (function(module, exports) {
|
|
4865
4671
|
|
|
4866
|
-
module.exports = require("@babel/runtime/helpers/
|
|
4672
|
+
module.exports = require("@babel/runtime/helpers/extends");
|
|
4867
4673
|
|
|
4868
4674
|
/***/ }),
|
|
4869
4675
|
|
|
4870
|
-
/***/
|
|
4676
|
+
/***/ 69:
|
|
4871
4677
|
/***/ (function(module, exports) {
|
|
4872
4678
|
|
|
4873
|
-
module.exports = require("@
|
|
4679
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
4874
4680
|
|
|
4875
4681
|
/***/ }),
|
|
4876
4682
|
|
|
4877
|
-
/***/
|
|
4878
|
-
/***/ (function(module, exports) {
|
|
4683
|
+
/***/ 7:
|
|
4684
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4879
4685
|
|
|
4880
|
-
|
|
4686
|
+
"use strict";
|
|
4687
|
+
|
|
4688
|
+
|
|
4689
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4690
|
+
value: true
|
|
4691
|
+
});
|
|
4692
|
+
exports.VizBehavior = void 0;
|
|
4693
|
+
var VizBehavior;
|
|
4694
|
+
|
|
4695
|
+
(function (VizBehavior) {
|
|
4696
|
+
/**
|
|
4697
|
+
* Dynamic Options Behavior.
|
|
4698
|
+
* This allows visualization options to be powered by data
|
|
4699
|
+
*
|
|
4700
|
+
* **Example**
|
|
4701
|
+
*
|
|
4702
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
4703
|
+
* would configure sparklineValues with an array of data points
|
|
4704
|
+
* coming from the first series in the primary datasource
|
|
4705
|
+
*
|
|
4706
|
+
*/
|
|
4707
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
4708
|
+
VizBehavior["EVENTS"] = "events";
|
|
4709
|
+
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
4710
|
+
/**
|
|
4711
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
4712
|
+
* missing.
|
|
4713
|
+
* @type {string}
|
|
4714
|
+
*/
|
|
4715
|
+
|
|
4716
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
4717
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
4718
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
4719
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
4881
4720
|
|
|
4882
4721
|
/***/ }),
|
|
4883
4722
|
|
|
4884
|
-
/***/
|
|
4723
|
+
/***/ 70:
|
|
4885
4724
|
/***/ (function(module, exports) {
|
|
4886
4725
|
|
|
4887
4726
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
4888
4727
|
|
|
4889
4728
|
/***/ }),
|
|
4890
4729
|
|
|
4891
|
-
/***/
|
|
4730
|
+
/***/ 72:
|
|
4892
4731
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4893
4732
|
|
|
4894
4733
|
"use strict";
|
|
@@ -4898,14 +4737,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4898
4737
|
value: true
|
|
4899
4738
|
});
|
|
4900
4739
|
|
|
4901
|
-
var i18n_1 = __webpack_require__(
|
|
4740
|
+
var i18n_1 = __webpack_require__(3);
|
|
4902
4741
|
|
|
4903
4742
|
var background = function background(_ref) {
|
|
4904
4743
|
var label = _ref.label,
|
|
4905
4744
|
themes = _ref.themes,
|
|
4906
4745
|
labelPosition = _ref.labelPosition;
|
|
4907
4746
|
return [{
|
|
4908
|
-
label: (0, i18n_1._)(label || 'Background'),
|
|
4747
|
+
label: (0, i18n_1._)(label || 'Background color'),
|
|
4909
4748
|
option: 'backgroundColor',
|
|
4910
4749
|
editor: 'editor.color',
|
|
4911
4750
|
editorProps: {
|
|
@@ -4922,14 +4761,14 @@ exports.default = background;
|
|
|
4922
4761
|
/***/ 8:
|
|
4923
4762
|
/***/ (function(module, exports) {
|
|
4924
4763
|
|
|
4925
|
-
module.exports = require("@babel/runtime/helpers/
|
|
4764
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
4926
4765
|
|
|
4927
4766
|
/***/ }),
|
|
4928
4767
|
|
|
4929
4768
|
/***/ 9:
|
|
4930
4769
|
/***/ (function(module, exports) {
|
|
4931
4770
|
|
|
4932
|
-
module.exports = require("@
|
|
4771
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
4933
4772
|
|
|
4934
4773
|
/***/ })
|
|
4935
4774
|
|