@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/Events.js
CHANGED
|
@@ -87,32 +87,32 @@ 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 = 219);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
94
94
|
/* 0 */
|
|
95
95
|
/***/ (function(module, exports) {
|
|
96
96
|
|
|
97
|
-
module.exports = require("
|
|
97
|
+
module.exports = require("prop-types");
|
|
98
98
|
|
|
99
99
|
/***/ }),
|
|
100
100
|
/* 1 */
|
|
101
101
|
/***/ (function(module, exports) {
|
|
102
102
|
|
|
103
|
-
module.exports = require("
|
|
103
|
+
module.exports = require("react");
|
|
104
104
|
|
|
105
105
|
/***/ }),
|
|
106
106
|
/* 2 */
|
|
107
107
|
/***/ (function(module, exports) {
|
|
108
108
|
|
|
109
|
-
module.exports = require("
|
|
109
|
+
module.exports = require("lodash");
|
|
110
110
|
|
|
111
111
|
/***/ }),
|
|
112
112
|
/* 3 */
|
|
113
113
|
/***/ (function(module, exports) {
|
|
114
114
|
|
|
115
|
-
module.exports = require("
|
|
115
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
116
116
|
|
|
117
117
|
/***/ }),
|
|
118
118
|
/* 4 */
|
|
@@ -121,8 +121,19 @@ module.exports = require("lodash");
|
|
|
121
121
|
module.exports = require("styled-components");
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
|
-
/* 5
|
|
124
|
+
/* 5 */
|
|
125
|
+
/***/ (function(module, exports) {
|
|
126
|
+
|
|
127
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
128
|
+
|
|
129
|
+
/***/ }),
|
|
125
130
|
/* 6 */
|
|
131
|
+
/***/ (function(module, exports) {
|
|
132
|
+
|
|
133
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
134
|
+
|
|
135
|
+
/***/ }),
|
|
136
|
+
/* 7 */
|
|
126
137
|
/***/ (function(module, exports, __webpack_require__) {
|
|
127
138
|
|
|
128
139
|
"use strict";
|
|
@@ -160,41 +171,35 @@ var VizBehavior;
|
|
|
160
171
|
VizBehavior["TRELLIS"] = "trellis";
|
|
161
172
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
162
173
|
|
|
163
|
-
/***/ }),
|
|
164
|
-
/* 7 */
|
|
165
|
-
/***/ (function(module, exports) {
|
|
166
|
-
|
|
167
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
168
|
-
|
|
169
174
|
/***/ }),
|
|
170
175
|
/* 8 */
|
|
171
176
|
/***/ (function(module, exports) {
|
|
172
177
|
|
|
173
|
-
module.exports = require("@babel/runtime/helpers/
|
|
178
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
174
179
|
|
|
175
180
|
/***/ }),
|
|
176
181
|
/* 9 */
|
|
177
182
|
/***/ (function(module, exports) {
|
|
178
183
|
|
|
179
|
-
module.exports = require("@
|
|
184
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
180
185
|
|
|
181
186
|
/***/ }),
|
|
182
187
|
/* 10 */
|
|
183
188
|
/***/ (function(module, exports) {
|
|
184
189
|
|
|
185
|
-
module.exports = require("@
|
|
190
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
186
191
|
|
|
187
192
|
/***/ }),
|
|
188
193
|
/* 11 */
|
|
189
194
|
/***/ (function(module, exports) {
|
|
190
195
|
|
|
191
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
196
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
192
197
|
|
|
193
198
|
/***/ }),
|
|
194
199
|
/* 12 */
|
|
195
200
|
/***/ (function(module, exports) {
|
|
196
201
|
|
|
197
|
-
module.exports = require("@
|
|
202
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
198
203
|
|
|
199
204
|
/***/ }),
|
|
200
205
|
/* 13 */
|
|
@@ -214,9 +219,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
214
219
|
});
|
|
215
220
|
exports.downsampleDataSources = exports.calculateDownsamplingThreshold = exports.calculateThresholdOnRangeSelect = exports.isDownsamplingEnabledForViz = exports.convertToArrOfObjects = void 0;
|
|
216
221
|
|
|
217
|
-
var numberUtils_1 = __webpack_require__(
|
|
222
|
+
var numberUtils_1 = __webpack_require__(10);
|
|
218
223
|
|
|
219
|
-
var interfaces_1 = __webpack_require__(
|
|
224
|
+
var interfaces_1 = __webpack_require__(39); // TODO: utilize this fn in ParallelCoordinates
|
|
220
225
|
|
|
221
226
|
|
|
222
227
|
var convertToArrOfObjects = function convertToArrOfObjects(columns, fields) {
|
|
@@ -351,19 +356,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
|
|
|
351
356
|
*/
|
|
352
357
|
|
|
353
358
|
|
|
354
|
-
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
|
|
355
|
-
// Splunk charting allows for numbers in formats such as negative hex that
|
|
359
|
+
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column, options) {
|
|
360
|
+
var isNullCoercionEnabled = options.nullValueDisplay === 'zero'; // Splunk charting allows for numbers in formats such as negative hex that
|
|
356
361
|
// Number() does not support and also allows loose coercion of hex numbers (but not other formats)
|
|
357
362
|
// We want to identify columns which contain at least one value that can be loosely coerced
|
|
363
|
+
|
|
358
364
|
var canLooselyCoerceSomeValues = column.findIndex(function (value) {
|
|
359
|
-
return (0, numberUtils_1.startsWithNumber)("".concat(value));
|
|
365
|
+
return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
|
|
360
366
|
}) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
|
|
361
367
|
|
|
362
368
|
var coercedColumn = [];
|
|
363
369
|
var canDownsampleColumn = !column.some(function (value) {
|
|
364
|
-
var coercedValue = Number(value);
|
|
370
|
+
var coercedValue = Number(value);
|
|
371
|
+
var coerceValueToZero = isNullCoercionEnabled && value === null; // if it can't be parsed or isn't safe, fail
|
|
365
372
|
|
|
366
|
-
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number') {
|
|
373
|
+
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number' && !coerceValueToZero) {
|
|
367
374
|
return true;
|
|
368
375
|
} // save value and continue to next
|
|
369
376
|
|
|
@@ -444,8 +451,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
444
451
|
dataSources = _ref3.dataSources,
|
|
445
452
|
selectChartEvent = _ref3.selectChartEvent,
|
|
446
453
|
width = _ref3.width,
|
|
447
|
-
xField = _ref3.xField
|
|
448
|
-
y2Fields = _ref3.y2Fields;
|
|
454
|
+
xField = _ref3.xField;
|
|
449
455
|
|
|
450
456
|
var _a, _b, _c;
|
|
451
457
|
|
|
@@ -482,14 +488,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
482
488
|
});
|
|
483
489
|
var lastIndex = fullSeries.findIndex(function (x) {
|
|
484
490
|
return downsampledSeries[endXIndex] === x;
|
|
485
|
-
});
|
|
486
|
-
// re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
|
|
487
|
-
// Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
|
|
488
|
-
// until SPL-259611 is fixed
|
|
489
|
-
|
|
490
|
-
if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
|
|
491
|
-
return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
|
|
492
|
-
}
|
|
491
|
+
});
|
|
493
492
|
|
|
494
493
|
if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
|
|
495
494
|
return (0, exports.calculateThresholdOnRangeSelect)({
|
|
@@ -500,6 +499,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
500
499
|
});
|
|
501
500
|
}
|
|
502
501
|
} catch (e) {
|
|
502
|
+
// eslint-disable-next-line no-console
|
|
503
503
|
console.error('Error occurred while setting downsample threshold on range select event', e);
|
|
504
504
|
}
|
|
505
505
|
|
|
@@ -538,7 +538,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
|
|
|
538
538
|
*/
|
|
539
539
|
|
|
540
540
|
|
|
541
|
-
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
|
|
541
|
+
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
|
|
542
542
|
var xColumn = [];
|
|
543
543
|
var yColumns = [];
|
|
544
544
|
var canDownsample = !ds.data.fields.some(function (field, index) {
|
|
@@ -552,7 +552,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
|
|
|
552
552
|
if (fieldName === xField) {
|
|
553
553
|
xColumn = strictlyCoerceXColumn(column, fieldType);
|
|
554
554
|
} else if (yFields.has(fieldName)) {
|
|
555
|
-
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
|
|
555
|
+
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
|
|
556
556
|
coercedColumn = _strictlyCoerceYColum.coercedColumn,
|
|
557
557
|
canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
|
|
558
558
|
canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
|
|
@@ -642,7 +642,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
642
642
|
return dataSources;
|
|
643
643
|
}
|
|
644
644
|
|
|
645
|
-
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
|
|
645
|
+
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
|
|
646
646
|
xColumn = _tryToCoerceAllDispla.xColumn,
|
|
647
647
|
yColumns = _tryToCoerceAllDispla.yColumns;
|
|
648
648
|
|
|
@@ -666,6 +666,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
666
666
|
return downsampledIndices.add(downsampleIndex);
|
|
667
667
|
});
|
|
668
668
|
} catch (e) {
|
|
669
|
+
// eslint-disable-next-line no-console
|
|
669
670
|
console.error("Error occurred while downsampling column ".concat(columnIndex), e);
|
|
670
671
|
}
|
|
671
672
|
}); // update data columns with downsampled columns
|
|
@@ -695,13 +696,13 @@ module.exports = require("@splunk/visualization-encoding/Options");
|
|
|
695
696
|
"use strict";
|
|
696
697
|
|
|
697
698
|
|
|
698
|
-
var _slicedToArray = __webpack_require__(
|
|
699
|
+
var _slicedToArray = __webpack_require__(5);
|
|
699
700
|
|
|
700
701
|
Object.defineProperty(exports, "__esModule", {
|
|
701
702
|
value: true
|
|
702
703
|
});
|
|
703
704
|
|
|
704
|
-
var React = __webpack_require__(
|
|
705
|
+
var React = __webpack_require__(1);
|
|
705
706
|
|
|
706
707
|
var styled_components_1 = __webpack_require__(4);
|
|
707
708
|
|
|
@@ -709,7 +710,7 @@ var style_1 = __webpack_require__(18);
|
|
|
709
710
|
|
|
710
711
|
var colorUtils_1 = __webpack_require__(15);
|
|
711
712
|
|
|
712
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
713
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
713
714
|
|
|
714
715
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
715
716
|
var width = _ref.width;
|
|
@@ -780,7 +781,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
780
781
|
|
|
781
782
|
return React.createElement(FixSizeItem, {
|
|
782
783
|
"data-test": "fix-size-item",
|
|
783
|
-
"data-splunk-visualization-version": "26.
|
|
784
|
+
"data-splunk-visualization-version": "26.4.0 - 04078274d",
|
|
784
785
|
width: width,
|
|
785
786
|
height: height,
|
|
786
787
|
backgroundColor: backgroundColor
|
|
@@ -807,7 +808,8 @@ exports.default = withFixedSizeContainer;
|
|
|
807
808
|
module.exports = require("@splunk/visualizations-shared/style");
|
|
808
809
|
|
|
809
810
|
/***/ }),
|
|
810
|
-
/* 19
|
|
811
|
+
/* 19 */,
|
|
812
|
+
/* 20 */
|
|
811
813
|
/***/ (function(module, exports, __webpack_require__) {
|
|
812
814
|
|
|
813
815
|
"use strict";
|
|
@@ -816,22 +818,20 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
816
818
|
Object.defineProperty(exports, "__esModule", {
|
|
817
819
|
value: true
|
|
818
820
|
});
|
|
819
|
-
exports.validOutputModes = exports.
|
|
821
|
+
exports.validOutputModes = exports.validSortDirs = void 0;
|
|
820
822
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
821
|
-
exports.validSegmentationModes = ['none', 'inner'];
|
|
822
823
|
exports.validOutputModes = ['json_cols', 'json'];
|
|
823
824
|
|
|
824
825
|
/***/ }),
|
|
825
|
-
/* 20 */,
|
|
826
826
|
/* 21 */
|
|
827
827
|
/***/ (function(module, exports, __webpack_require__) {
|
|
828
828
|
|
|
829
829
|
"use strict";
|
|
830
830
|
|
|
831
831
|
|
|
832
|
-
var _classCallCheck = __webpack_require__(
|
|
832
|
+
var _classCallCheck = __webpack_require__(8);
|
|
833
833
|
|
|
834
|
-
var _createClass = __webpack_require__(
|
|
834
|
+
var _createClass = __webpack_require__(24);
|
|
835
835
|
|
|
836
836
|
Object.defineProperty(exports, "__esModule", {
|
|
837
837
|
value: true
|
|
@@ -923,120 +923,39 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
923
923
|
/* 24 */
|
|
924
924
|
/***/ (function(module, exports) {
|
|
925
925
|
|
|
926
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
927
|
-
|
|
928
|
-
/***/ }),
|
|
929
|
-
/* 25 */
|
|
930
|
-
/***/ (function(module, exports) {
|
|
931
|
-
|
|
932
926
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
933
927
|
|
|
934
928
|
/***/ }),
|
|
935
|
-
/*
|
|
929
|
+
/* 25 */
|
|
936
930
|
/***/ (function(module, exports) {
|
|
937
931
|
|
|
938
932
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
939
933
|
|
|
940
934
|
/***/ }),
|
|
941
|
-
/*
|
|
935
|
+
/* 26 */
|
|
942
936
|
/***/ (function(module, exports, __webpack_require__) {
|
|
943
937
|
|
|
944
938
|
"use strict";
|
|
945
939
|
|
|
946
940
|
|
|
947
|
-
var _toConsumableArray = __webpack_require__(
|
|
948
|
-
|
|
949
|
-
var _defineProperty = __webpack_require__(9);
|
|
950
|
-
|
|
951
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
952
|
-
var t = {};
|
|
953
|
-
|
|
954
|
-
for (var p in s) {
|
|
955
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
959
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
960
|
-
}
|
|
961
|
-
return t;
|
|
962
|
-
};
|
|
941
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
963
942
|
|
|
964
943
|
Object.defineProperty(exports, "__esModule", {
|
|
965
944
|
value: true
|
|
966
945
|
});
|
|
967
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.
|
|
946
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
968
947
|
|
|
969
|
-
var lodash_1 = __webpack_require__(
|
|
948
|
+
var lodash_1 = __webpack_require__(2); // included for backwards compatibility
|
|
970
949
|
|
|
971
|
-
var schemaUtils_1 = __webpack_require__(24);
|
|
972
950
|
|
|
973
|
-
var
|
|
951
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
974
952
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
* @param optionsSchema a visualization's options schema
|
|
982
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
983
|
-
*/
|
|
984
|
-
|
|
985
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
986
|
-
var enhancedOptionsSchema = {};
|
|
987
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
988
|
-
var _a = optionsSchema[key],
|
|
989
|
-
title = _a.title,
|
|
990
|
-
description = _a.description,
|
|
991
|
-
readOnly = _a.readOnly,
|
|
992
|
-
writeOnly = _a.writeOnly,
|
|
993
|
-
examples = _a.examples,
|
|
994
|
-
defaultValue = _a.default,
|
|
995
|
-
type = _a.type,
|
|
996
|
-
properties = _a.properties,
|
|
997
|
-
patternProperties = _a.patternProperties,
|
|
998
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
999
|
-
|
|
1000
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
1001
|
-
title: title
|
|
1002
|
-
}), description !== undefined && {
|
|
1003
|
-
description: description
|
|
1004
|
-
}), readOnly !== undefined && {
|
|
1005
|
-
readOnly: readOnly
|
|
1006
|
-
}), writeOnly !== undefined && {
|
|
1007
|
-
writeOnly: writeOnly
|
|
1008
|
-
}), examples !== undefined && {
|
|
1009
|
-
examples: examples
|
|
1010
|
-
}), defaultValue !== undefined && {
|
|
1011
|
-
default: defaultValue
|
|
1012
|
-
});
|
|
1013
|
-
|
|
1014
|
-
if (type === 'object') {
|
|
1015
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
1016
|
-
type: type
|
|
1017
|
-
}), properties && {
|
|
1018
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
1019
|
-
});
|
|
1020
|
-
|
|
1021
|
-
if (patternProperties) {
|
|
1022
|
-
var enhancedPatternProperties = {};
|
|
1023
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
1024
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
1025
|
-
});
|
|
1026
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
1027
|
-
}
|
|
1028
|
-
} else {
|
|
1029
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
1030
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
1031
|
-
type: type
|
|
1032
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
return enhancedOptionsSchema;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
953
|
+
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
954
|
+
enumerable: true,
|
|
955
|
+
get: function get() {
|
|
956
|
+
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
957
|
+
}
|
|
958
|
+
});
|
|
1040
959
|
/**
|
|
1041
960
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
1042
961
|
* this function also collapse all editor panels
|
|
@@ -1047,11 +966,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
1047
966
|
|
|
1048
967
|
function enhanceConfig(vizConfig) {
|
|
1049
968
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
1050
|
-
|
|
1051
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
1052
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
969
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
1056
970
|
return Object.assign(Object.assign({}, config), {
|
|
1057
971
|
open: config.open || false
|
|
@@ -1174,32 +1088,32 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
1174
1088
|
exports.insertLayout = insertLayout;
|
|
1175
1089
|
|
|
1176
1090
|
/***/ }),
|
|
1177
|
-
/*
|
|
1091
|
+
/* 27 */
|
|
1178
1092
|
/***/ (function(module, exports) {
|
|
1179
1093
|
|
|
1180
1094
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
1181
1095
|
|
|
1182
1096
|
/***/ }),
|
|
1183
|
-
/*
|
|
1184
|
-
/*
|
|
1097
|
+
/* 28 */,
|
|
1098
|
+
/* 29 */
|
|
1185
1099
|
/***/ (function(module, exports) {
|
|
1186
1100
|
|
|
1187
1101
|
module.exports = require("@splunk/themes/pick");
|
|
1188
1102
|
|
|
1189
1103
|
/***/ }),
|
|
1190
|
-
/*
|
|
1104
|
+
/* 30 */
|
|
1191
1105
|
/***/ (function(module, exports) {
|
|
1192
1106
|
|
|
1193
1107
|
module.exports = require("@splunk/ui-utils/id");
|
|
1194
1108
|
|
|
1195
1109
|
/***/ }),
|
|
1196
|
-
/*
|
|
1110
|
+
/* 31 */
|
|
1197
1111
|
/***/ (function(module, exports) {
|
|
1198
1112
|
|
|
1199
1113
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1200
1114
|
|
|
1201
1115
|
/***/ }),
|
|
1202
|
-
/*
|
|
1116
|
+
/* 32 */
|
|
1203
1117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1204
1118
|
|
|
1205
1119
|
"use strict";
|
|
@@ -1209,7 +1123,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1209
1123
|
value: true
|
|
1210
1124
|
});
|
|
1211
1125
|
|
|
1212
|
-
var react_1 = __webpack_require__(
|
|
1126
|
+
var react_1 = __webpack_require__(1);
|
|
1213
1127
|
|
|
1214
1128
|
function usePrevious(value) {
|
|
1215
1129
|
var ref = (0, react_1.useRef)();
|
|
@@ -1222,20 +1136,20 @@ function usePrevious(value) {
|
|
|
1222
1136
|
exports.default = usePrevious;
|
|
1223
1137
|
|
|
1224
1138
|
/***/ }),
|
|
1225
|
-
/*
|
|
1139
|
+
/* 33 */
|
|
1226
1140
|
/***/ (function(module, exports) {
|
|
1227
1141
|
|
|
1228
1142
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1229
1143
|
|
|
1230
1144
|
/***/ }),
|
|
1231
|
-
/*
|
|
1145
|
+
/* 34 */
|
|
1232
1146
|
/***/ (function(module, exports) {
|
|
1233
1147
|
|
|
1234
1148
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1235
1149
|
|
|
1236
1150
|
/***/ }),
|
|
1237
|
-
/*
|
|
1238
|
-
/*
|
|
1151
|
+
/* 35 */,
|
|
1152
|
+
/* 36 */
|
|
1239
1153
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1240
1154
|
|
|
1241
1155
|
"use strict";
|
|
@@ -1246,15 +1160,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1246
1160
|
});
|
|
1247
1161
|
exports.shouldShowIconPlaceholder = void 0;
|
|
1248
1162
|
|
|
1249
|
-
var React = __webpack_require__(
|
|
1163
|
+
var React = __webpack_require__(1);
|
|
1250
1164
|
|
|
1251
|
-
var T = __webpack_require__(
|
|
1165
|
+
var T = __webpack_require__(0);
|
|
1252
1166
|
|
|
1253
|
-
var lodash_1 = __webpack_require__(
|
|
1167
|
+
var lodash_1 = __webpack_require__(2);
|
|
1254
1168
|
|
|
1255
|
-
var i18n_1 = __webpack_require__(
|
|
1169
|
+
var i18n_1 = __webpack_require__(3);
|
|
1256
1170
|
|
|
1257
|
-
var Message_1 = __webpack_require__(
|
|
1171
|
+
var Message_1 = __webpack_require__(11);
|
|
1258
1172
|
|
|
1259
1173
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
1260
1174
|
/**
|
|
@@ -1327,24 +1241,24 @@ IconPlaceholder.defaultProps = {
|
|
|
1327
1241
|
exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
1328
1242
|
|
|
1329
1243
|
/***/ }),
|
|
1330
|
-
/*
|
|
1244
|
+
/* 37 */
|
|
1331
1245
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1332
1246
|
|
|
1333
1247
|
"use strict";
|
|
1334
1248
|
|
|
1335
1249
|
|
|
1336
|
-
var _defineProperty = __webpack_require__(
|
|
1250
|
+
var _defineProperty = __webpack_require__(12);
|
|
1337
1251
|
|
|
1338
1252
|
Object.defineProperty(exports, "__esModule", {
|
|
1339
1253
|
value: true
|
|
1340
1254
|
});
|
|
1341
1255
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1342
1256
|
|
|
1343
|
-
var T = __webpack_require__(
|
|
1257
|
+
var T = __webpack_require__(0);
|
|
1344
1258
|
|
|
1345
|
-
var lodash_1 = __webpack_require__(
|
|
1259
|
+
var lodash_1 = __webpack_require__(2);
|
|
1346
1260
|
|
|
1347
|
-
var DataSource_1 = __webpack_require__(
|
|
1261
|
+
var DataSource_1 = __webpack_require__(20);
|
|
1348
1262
|
|
|
1349
1263
|
exports.SortParamsPropTypes = T.shape({
|
|
1350
1264
|
currentSortKey: T.string,
|
|
@@ -1397,7 +1311,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
1397
1311
|
exports.getSortingParams = getSortingParams;
|
|
1398
1312
|
|
|
1399
1313
|
/***/ }),
|
|
1400
|
-
/*
|
|
1314
|
+
/* 38 */
|
|
1401
1315
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1402
1316
|
|
|
1403
1317
|
"use strict";
|
|
@@ -1408,9 +1322,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1408
1322
|
});
|
|
1409
1323
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1410
1324
|
|
|
1411
|
-
var T = __webpack_require__(
|
|
1325
|
+
var T = __webpack_require__(0);
|
|
1412
1326
|
|
|
1413
|
-
var lodash_1 = __webpack_require__(
|
|
1327
|
+
var lodash_1 = __webpack_require__(2);
|
|
1414
1328
|
|
|
1415
1329
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1416
1330
|
isPaging: T.bool,
|
|
@@ -1461,7 +1375,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1461
1375
|
exports.getPaginationParams = getPaginationParams;
|
|
1462
1376
|
|
|
1463
1377
|
/***/ }),
|
|
1464
|
-
/*
|
|
1378
|
+
/* 39 */
|
|
1465
1379
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1466
1380
|
|
|
1467
1381
|
"use strict";
|
|
@@ -1496,11 +1410,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1496
1410
|
value: true
|
|
1497
1411
|
});
|
|
1498
1412
|
|
|
1413
|
+
__exportStar(__webpack_require__(40), exports);
|
|
1414
|
+
|
|
1499
1415
|
__exportStar(__webpack_require__(41), exports);
|
|
1500
1416
|
|
|
1501
|
-
__exportStar(__webpack_require__(
|
|
1417
|
+
__exportStar(__webpack_require__(20), exports);
|
|
1502
1418
|
|
|
1503
|
-
__exportStar(__webpack_require__(
|
|
1419
|
+
__exportStar(__webpack_require__(42), exports);
|
|
1504
1420
|
|
|
1505
1421
|
__exportStar(__webpack_require__(43), exports);
|
|
1506
1422
|
|
|
@@ -1512,16 +1428,16 @@ __exportStar(__webpack_require__(46), exports);
|
|
|
1512
1428
|
|
|
1513
1429
|
__exportStar(__webpack_require__(47), exports);
|
|
1514
1430
|
|
|
1515
|
-
__exportStar(__webpack_require__(48), exports);
|
|
1516
|
-
|
|
1517
|
-
__exportStar(__webpack_require__(49), exports);
|
|
1518
|
-
|
|
1519
1431
|
__exportStar(__webpack_require__(21), exports);
|
|
1520
1432
|
|
|
1521
|
-
__exportStar(__webpack_require__(
|
|
1433
|
+
__exportStar(__webpack_require__(7), exports);
|
|
1522
1434
|
|
|
1523
1435
|
__exportStar(__webpack_require__(22), exports);
|
|
1524
1436
|
|
|
1437
|
+
__exportStar(__webpack_require__(48), exports);
|
|
1438
|
+
|
|
1439
|
+
__exportStar(__webpack_require__(49), exports);
|
|
1440
|
+
|
|
1525
1441
|
__exportStar(__webpack_require__(50), exports);
|
|
1526
1442
|
|
|
1527
1443
|
__exportStar(__webpack_require__(51), exports);
|
|
@@ -1530,9 +1446,16 @@ __exportStar(__webpack_require__(52), exports);
|
|
|
1530
1446
|
|
|
1531
1447
|
__exportStar(__webpack_require__(53), exports);
|
|
1532
1448
|
|
|
1533
|
-
|
|
1449
|
+
/***/ }),
|
|
1450
|
+
/* 40 */
|
|
1451
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1452
|
+
|
|
1453
|
+
"use strict";
|
|
1534
1454
|
|
|
1535
|
-
|
|
1455
|
+
|
|
1456
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1457
|
+
value: true
|
|
1458
|
+
});
|
|
1536
1459
|
|
|
1537
1460
|
/***/ }),
|
|
1538
1461
|
/* 41 */
|
|
@@ -1540,6 +1463,9 @@ __exportStar(__webpack_require__(55), exports);
|
|
|
1540
1463
|
|
|
1541
1464
|
"use strict";
|
|
1542
1465
|
|
|
1466
|
+
/**
|
|
1467
|
+
* A data structure used at runtime to wire up a visualization.
|
|
1468
|
+
*/
|
|
1543
1469
|
|
|
1544
1470
|
Object.defineProperty(exports, "__esModule", {
|
|
1545
1471
|
value: true
|
|
@@ -1551,9 +1477,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1551
1477
|
|
|
1552
1478
|
"use strict";
|
|
1553
1479
|
|
|
1554
|
-
/**
|
|
1555
|
-
* A data structure used at runtime to wire up a visualization.
|
|
1556
|
-
*/
|
|
1557
1480
|
|
|
1558
1481
|
Object.defineProperty(exports, "__esModule", {
|
|
1559
1482
|
value: true
|
|
@@ -1687,81 +1610,59 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1687
1610
|
"use strict";
|
|
1688
1611
|
|
|
1689
1612
|
|
|
1690
|
-
|
|
1691
|
-
value: true
|
|
1692
|
-
});
|
|
1693
|
-
|
|
1694
|
-
/***/ }),
|
|
1695
|
-
/* 55 */
|
|
1696
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1697
|
-
|
|
1698
|
-
"use strict";
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1702
|
-
value: true
|
|
1703
|
-
});
|
|
1704
|
-
|
|
1705
|
-
/***/ }),
|
|
1706
|
-
/* 56 */
|
|
1707
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1708
|
-
|
|
1709
|
-
"use strict";
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
var _slicedToArray = __webpack_require__(7);
|
|
1613
|
+
var _slicedToArray = __webpack_require__(5);
|
|
1713
1614
|
|
|
1714
1615
|
Object.defineProperty(exports, "__esModule", {
|
|
1715
1616
|
value: true
|
|
1716
1617
|
});
|
|
1717
1618
|
|
|
1718
|
-
var React = __webpack_require__(
|
|
1619
|
+
var React = __webpack_require__(1);
|
|
1719
1620
|
|
|
1720
|
-
var lodash_1 = __webpack_require__(
|
|
1621
|
+
var lodash_1 = __webpack_require__(2);
|
|
1721
1622
|
|
|
1722
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1623
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(55);
|
|
1723
1624
|
|
|
1724
1625
|
var Options_1 = __webpack_require__(16);
|
|
1725
1626
|
|
|
1726
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1627
|
+
var SanitizeProps_1 = __webpack_require__(56);
|
|
1727
1628
|
|
|
1728
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1629
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
1729
1630
|
|
|
1730
|
-
var moment_1 = __webpack_require__(
|
|
1631
|
+
var moment_1 = __webpack_require__(57);
|
|
1731
1632
|
|
|
1732
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
1633
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
1733
1634
|
|
|
1734
1635
|
var styled_components_1 = __webpack_require__(4);
|
|
1735
1636
|
|
|
1736
|
-
var hocUtils_1 = __webpack_require__(
|
|
1637
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
1737
1638
|
|
|
1738
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1639
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
1739
1640
|
|
|
1740
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
1641
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(58);
|
|
1741
1642
|
|
|
1742
|
-
var id_1 = __webpack_require__(
|
|
1643
|
+
var id_1 = __webpack_require__(30);
|
|
1743
1644
|
|
|
1744
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1645
|
+
var SplunkVisualization_1 = __webpack_require__(59);
|
|
1745
1646
|
|
|
1746
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1647
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
1747
1648
|
|
|
1748
|
-
var getSorting_1 = __webpack_require__(
|
|
1649
|
+
var getSorting_1 = __webpack_require__(37);
|
|
1749
1650
|
|
|
1750
|
-
var getPagination_1 = __webpack_require__(
|
|
1651
|
+
var getPagination_1 = __webpack_require__(38);
|
|
1751
1652
|
|
|
1752
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1653
|
+
var useDeepMemo_1 = __webpack_require__(60);
|
|
1753
1654
|
|
|
1754
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1655
|
+
var MissingPropsMessage_1 = __webpack_require__(61);
|
|
1755
1656
|
|
|
1756
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1657
|
+
var withEditModeCover_1 = __webpack_require__(62);
|
|
1757
1658
|
|
|
1758
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1659
|
+
var withPlaceholder_1 = __webpack_require__(63);
|
|
1759
1660
|
|
|
1760
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
1661
|
+
var useDownsampleDataSources_1 = __webpack_require__(64);
|
|
1761
1662
|
|
|
1762
1663
|
var dataUtils_1 = __webpack_require__(14);
|
|
1763
1664
|
|
|
1764
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
1665
|
+
var featureFlagUtils_1 = __webpack_require__(66);
|
|
1765
1666
|
/**
|
|
1766
1667
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1767
1668
|
* @param {DashboardVizOpts} opts
|
|
@@ -2093,37 +1994,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2093
1994
|
exports.default = withDashboardViz;
|
|
2094
1995
|
|
|
2095
1996
|
/***/ }),
|
|
2096
|
-
/*
|
|
1997
|
+
/* 55 */
|
|
2097
1998
|
/***/ (function(module, exports) {
|
|
2098
1999
|
|
|
2099
2000
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2100
2001
|
|
|
2101
2002
|
/***/ }),
|
|
2102
|
-
/*
|
|
2003
|
+
/* 56 */
|
|
2103
2004
|
/***/ (function(module, exports) {
|
|
2104
2005
|
|
|
2105
2006
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2106
2007
|
|
|
2107
2008
|
/***/ }),
|
|
2108
|
-
/*
|
|
2009
|
+
/* 57 */
|
|
2109
2010
|
/***/ (function(module, exports) {
|
|
2110
2011
|
|
|
2111
2012
|
module.exports = require("@splunk/moment");
|
|
2112
2013
|
|
|
2113
2014
|
/***/ }),
|
|
2114
|
-
/*
|
|
2015
|
+
/* 58 */
|
|
2115
2016
|
/***/ (function(module, exports) {
|
|
2116
2017
|
|
|
2117
2018
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2118
2019
|
|
|
2119
2020
|
/***/ }),
|
|
2120
|
-
/*
|
|
2021
|
+
/* 59 */
|
|
2121
2022
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2122
2023
|
|
|
2123
2024
|
"use strict";
|
|
2124
2025
|
|
|
2125
2026
|
|
|
2126
|
-
var _classCallCheck = __webpack_require__(
|
|
2027
|
+
var _classCallCheck = __webpack_require__(8);
|
|
2127
2028
|
|
|
2128
2029
|
Object.defineProperty(exports, "__esModule", {
|
|
2129
2030
|
value: true
|
|
@@ -2131,9 +2032,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2131
2032
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
2132
2033
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
2133
2034
|
|
|
2134
|
-
var T = __webpack_require__(
|
|
2035
|
+
var T = __webpack_require__(0);
|
|
2135
2036
|
|
|
2136
|
-
var lodash_1 = __webpack_require__(
|
|
2037
|
+
var lodash_1 = __webpack_require__(2);
|
|
2137
2038
|
|
|
2138
2039
|
var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2139
2040
|
|
|
@@ -2268,7 +2169,7 @@ SplunkVisualization.defaultProps = {
|
|
|
2268
2169
|
exports.default = SplunkVisualization;
|
|
2269
2170
|
|
|
2270
2171
|
/***/ }),
|
|
2271
|
-
/*
|
|
2172
|
+
/* 60 */
|
|
2272
2173
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2273
2174
|
|
|
2274
2175
|
"use strict";
|
|
@@ -2279,9 +2180,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2279
2180
|
});
|
|
2280
2181
|
exports.useDeepMemo = void 0;
|
|
2281
2182
|
|
|
2282
|
-
var react_1 = __webpack_require__(
|
|
2183
|
+
var react_1 = __webpack_require__(1);
|
|
2283
2184
|
|
|
2284
|
-
var lodash_1 = __webpack_require__(
|
|
2185
|
+
var lodash_1 = __webpack_require__(2);
|
|
2285
2186
|
/**
|
|
2286
2187
|
* This hook evaluates and stores the result of a passed function and only
|
|
2287
2188
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -2313,7 +2214,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
2313
2214
|
exports.useDeepMemo = useDeepMemo;
|
|
2314
2215
|
|
|
2315
2216
|
/***/ }),
|
|
2316
|
-
/*
|
|
2217
|
+
/* 61 */
|
|
2317
2218
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2318
2219
|
|
|
2319
2220
|
"use strict";
|
|
@@ -2324,13 +2225,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2324
2225
|
});
|
|
2325
2226
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
2326
2227
|
|
|
2327
|
-
var React = __webpack_require__(
|
|
2228
|
+
var React = __webpack_require__(1);
|
|
2328
2229
|
|
|
2329
|
-
var T = __webpack_require__(
|
|
2230
|
+
var T = __webpack_require__(0);
|
|
2330
2231
|
|
|
2331
|
-
var i18n_1 = __webpack_require__(
|
|
2232
|
+
var i18n_1 = __webpack_require__(3);
|
|
2332
2233
|
|
|
2333
|
-
var Message_1 = __webpack_require__(
|
|
2234
|
+
var Message_1 = __webpack_require__(11);
|
|
2334
2235
|
|
|
2335
2236
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
2336
2237
|
/**
|
|
@@ -2393,7 +2294,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
2393
2294
|
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
2394
2295
|
|
|
2395
2296
|
/***/ }),
|
|
2396
|
-
/*
|
|
2297
|
+
/* 62 */
|
|
2397
2298
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2398
2299
|
|
|
2399
2300
|
"use strict";
|
|
@@ -2403,7 +2304,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2403
2304
|
value: true
|
|
2404
2305
|
});
|
|
2405
2306
|
|
|
2406
|
-
var React = __webpack_require__(
|
|
2307
|
+
var React = __webpack_require__(1);
|
|
2407
2308
|
|
|
2408
2309
|
var styled_components_1 = __webpack_require__(4);
|
|
2409
2310
|
|
|
@@ -2414,7 +2315,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
2414
2315
|
componentId: "sc-1gsbnxb-0"
|
|
2415
2316
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2416
2317
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2417
|
-
'data-splunk-visualization-version': "26.
|
|
2318
|
+
'data-splunk-visualization-version': "26.4.0 - 04078274d"
|
|
2418
2319
|
}).withConfig({
|
|
2419
2320
|
displayName: "withEditModeCover__Blocker",
|
|
2420
2321
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2445,7 +2346,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
2445
2346
|
exports.default = withEditModeCover;
|
|
2446
2347
|
|
|
2447
2348
|
/***/ }),
|
|
2448
|
-
/*
|
|
2349
|
+
/* 63 */
|
|
2449
2350
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2450
2351
|
|
|
2451
2352
|
"use strict";
|
|
@@ -2455,15 +2356,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2455
2356
|
value: true
|
|
2456
2357
|
});
|
|
2457
2358
|
|
|
2458
|
-
var React = __webpack_require__(
|
|
2359
|
+
var React = __webpack_require__(1);
|
|
2459
2360
|
|
|
2460
2361
|
var colorUtils_1 = __webpack_require__(15);
|
|
2461
2362
|
|
|
2462
2363
|
var variables_1 = __webpack_require__(13);
|
|
2463
2364
|
|
|
2464
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2365
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
2465
2366
|
|
|
2466
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2367
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
2467
2368
|
|
|
2468
2369
|
var hocUtils_1 = __webpack_require__(23);
|
|
2469
2370
|
|
|
@@ -2509,27 +2410,30 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
2509
2410
|
exports.default = withPlaceholder;
|
|
2510
2411
|
|
|
2511
2412
|
/***/ }),
|
|
2512
|
-
/*
|
|
2413
|
+
/* 64 */
|
|
2513
2414
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2514
2415
|
|
|
2515
2416
|
"use strict";
|
|
2516
2417
|
|
|
2517
2418
|
|
|
2518
|
-
var _slicedToArray = __webpack_require__(
|
|
2419
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2519
2420
|
|
|
2520
2421
|
Object.defineProperty(exports, "__esModule", {
|
|
2521
2422
|
value: true
|
|
2522
2423
|
});
|
|
2523
2424
|
|
|
2524
|
-
var react_1 = __webpack_require__(
|
|
2425
|
+
var react_1 = __webpack_require__(1);
|
|
2525
2426
|
|
|
2526
|
-
var lodash_1 = __webpack_require__(
|
|
2427
|
+
var lodash_1 = __webpack_require__(2);
|
|
2527
2428
|
|
|
2528
2429
|
var dataUtils_1 = __webpack_require__(14);
|
|
2529
2430
|
|
|
2530
|
-
var usePrevious_1 = __webpack_require__(
|
|
2431
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
2432
|
+
|
|
2433
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
2531
2434
|
|
|
2532
|
-
|
|
2435
|
+
|
|
2436
|
+
var downsampleVizOptionProperties = ['nullValueDisplay'];
|
|
2533
2437
|
|
|
2534
2438
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
2535
2439
|
var dataSources = _ref.dataSources,
|
|
@@ -2543,8 +2447,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2543
2447
|
options: options,
|
|
2544
2448
|
context: context,
|
|
2545
2449
|
dataSources: dataSources
|
|
2546
|
-
});
|
|
2547
|
-
|
|
2450
|
+
}); // Extract viz options that impact downsampling.
|
|
2451
|
+
|
|
2452
|
+
var downsampleVizOptions = (0, react_1.useMemo)(function () {
|
|
2453
|
+
return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
|
|
2454
|
+
}, [options]);
|
|
2455
|
+
var downsampleDSOptions = (0, react_1.useMemo)(function () {
|
|
2456
|
+
return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
|
|
2457
|
+
}, [xAndYFieldsWithTypes, downsampleVizOptions]);
|
|
2458
|
+
var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
|
|
2548
2459
|
var previousDataSources = (0, usePrevious_1.default)(dataSources);
|
|
2549
2460
|
var previousThreshold = (0, usePrevious_1.default)(threshold);
|
|
2550
2461
|
|
|
@@ -2552,7 +2463,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2552
2463
|
return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
|
|
2553
2464
|
dataSources: dataSources,
|
|
2554
2465
|
threshold: threshold,
|
|
2555
|
-
options:
|
|
2466
|
+
options: downsampleDSOptions
|
|
2556
2467
|
}) : dataSources;
|
|
2557
2468
|
}),
|
|
2558
2469
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -2580,7 +2491,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2580
2491
|
return;
|
|
2581
2492
|
}
|
|
2582
2493
|
|
|
2583
|
-
if ((0, lodash_1.isEqual)(
|
|
2494
|
+
if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
|
|
2584
2495
|
return;
|
|
2585
2496
|
} // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
|
|
2586
2497
|
// while the viz is being resized
|
|
@@ -2588,29 +2499,29 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2588
2499
|
|
|
2589
2500
|
debouncedDownsampleDataSources({
|
|
2590
2501
|
dataSources: dataSources,
|
|
2591
|
-
options:
|
|
2502
|
+
options: downsampleDSOptions,
|
|
2592
2503
|
threshold: threshold
|
|
2593
2504
|
}); // need to detect if this runs as part of the initial render
|
|
2594
|
-
}, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled,
|
|
2505
|
+
}, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
|
|
2595
2506
|
return downsampledDataSources;
|
|
2596
2507
|
};
|
|
2597
2508
|
|
|
2598
2509
|
exports.default = useDownsampleDataSources;
|
|
2599
2510
|
|
|
2600
2511
|
/***/ }),
|
|
2601
|
-
/*
|
|
2512
|
+
/* 65 */
|
|
2602
2513
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2603
2514
|
|
|
2604
2515
|
"use strict";
|
|
2605
2516
|
|
|
2606
2517
|
|
|
2607
|
-
var _toConsumableArray = __webpack_require__(
|
|
2518
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
2608
2519
|
|
|
2609
2520
|
Object.defineProperty(exports, "__esModule", {
|
|
2610
2521
|
value: true
|
|
2611
2522
|
});
|
|
2612
2523
|
|
|
2613
|
-
var react_1 = __webpack_require__(
|
|
2524
|
+
var react_1 = __webpack_require__(1);
|
|
2614
2525
|
|
|
2615
2526
|
var Options_1 = __webpack_require__(16);
|
|
2616
2527
|
/**
|
|
@@ -2712,7 +2623,7 @@ var useGetXAndYFields = function useGetXAndYFields(_ref) {
|
|
|
2712
2623
|
exports.default = useGetXAndYFields;
|
|
2713
2624
|
|
|
2714
2625
|
/***/ }),
|
|
2715
|
-
/*
|
|
2626
|
+
/* 66 */
|
|
2716
2627
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2717
2628
|
|
|
2718
2629
|
"use strict";
|
|
@@ -2723,7 +2634,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2723
2634
|
});
|
|
2724
2635
|
exports.getFeatureFlag = void 0;
|
|
2725
2636
|
|
|
2726
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
2637
|
+
var FeatureFlags_1 = __webpack_require__(67);
|
|
2727
2638
|
|
|
2728
2639
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
2729
2640
|
// look for feature flag in context first
|
|
@@ -2747,28 +2658,27 @@ var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
|
2747
2658
|
exports.getFeatureFlag = getFeatureFlag;
|
|
2748
2659
|
|
|
2749
2660
|
/***/ }),
|
|
2750
|
-
/*
|
|
2661
|
+
/* 67 */
|
|
2751
2662
|
/***/ (function(module, exports) {
|
|
2752
2663
|
|
|
2753
2664
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
2754
2665
|
|
|
2755
2666
|
/***/ }),
|
|
2756
|
-
/*
|
|
2757
|
-
/*
|
|
2758
|
-
/*
|
|
2667
|
+
/* 68 */,
|
|
2668
|
+
/* 69 */,
|
|
2669
|
+
/* 70 */
|
|
2759
2670
|
/***/ (function(module, exports) {
|
|
2760
2671
|
|
|
2761
2672
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
2762
2673
|
|
|
2763
2674
|
/***/ }),
|
|
2764
|
-
/*
|
|
2765
|
-
/* 74 */
|
|
2675
|
+
/* 71 */
|
|
2766
2676
|
/***/ (function(module, exports) {
|
|
2767
2677
|
|
|
2768
2678
|
module.exports = require("@splunk/visualization-icons");
|
|
2769
2679
|
|
|
2770
2680
|
/***/ }),
|
|
2771
|
-
/*
|
|
2681
|
+
/* 72 */
|
|
2772
2682
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2773
2683
|
|
|
2774
2684
|
"use strict";
|
|
@@ -2778,14 +2688,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2778
2688
|
value: true
|
|
2779
2689
|
});
|
|
2780
2690
|
|
|
2781
|
-
var i18n_1 = __webpack_require__(
|
|
2691
|
+
var i18n_1 = __webpack_require__(3);
|
|
2782
2692
|
|
|
2783
2693
|
var background = function background(_ref) {
|
|
2784
2694
|
var label = _ref.label,
|
|
2785
2695
|
themes = _ref.themes,
|
|
2786
2696
|
labelPosition = _ref.labelPosition;
|
|
2787
2697
|
return [{
|
|
2788
|
-
label: (0, i18n_1._)(label || 'Background'),
|
|
2698
|
+
label: (0, i18n_1._)(label || 'Background color'),
|
|
2789
2699
|
option: 'backgroundColor',
|
|
2790
2700
|
editor: 'editor.color',
|
|
2791
2701
|
editorProps: {
|
|
@@ -2798,30 +2708,33 @@ var background = function background(_ref) {
|
|
|
2798
2708
|
exports.default = background;
|
|
2799
2709
|
|
|
2800
2710
|
/***/ }),
|
|
2711
|
+
/* 73 */,
|
|
2712
|
+
/* 74 */,
|
|
2713
|
+
/* 75 */,
|
|
2801
2714
|
/* 76 */,
|
|
2802
2715
|
/* 77 */,
|
|
2803
|
-
/* 78
|
|
2804
|
-
/* 79 */,
|
|
2805
|
-
/* 80 */,
|
|
2806
|
-
/* 81 */
|
|
2716
|
+
/* 78 */
|
|
2807
2717
|
/***/ (function(module, exports) {
|
|
2808
2718
|
|
|
2809
2719
|
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
2810
2720
|
|
|
2811
2721
|
/***/ }),
|
|
2812
|
-
/*
|
|
2722
|
+
/* 79 */
|
|
2813
2723
|
/***/ (function(module, exports) {
|
|
2814
2724
|
|
|
2815
2725
|
module.exports = require("@splunk/themes");
|
|
2816
2726
|
|
|
2817
2727
|
/***/ }),
|
|
2818
|
-
/*
|
|
2819
|
-
/*
|
|
2728
|
+
/* 80 */,
|
|
2729
|
+
/* 81 */
|
|
2820
2730
|
/***/ (function(module, exports) {
|
|
2821
2731
|
|
|
2822
2732
|
module.exports = require("@splunk/react-ui/Popover");
|
|
2823
2733
|
|
|
2824
2734
|
/***/ }),
|
|
2735
|
+
/* 82 */,
|
|
2736
|
+
/* 83 */,
|
|
2737
|
+
/* 84 */,
|
|
2825
2738
|
/* 85 */,
|
|
2826
2739
|
/* 86 */,
|
|
2827
2740
|
/* 87 */,
|
|
@@ -2839,15 +2752,15 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
2839
2752
|
/* 99 */,
|
|
2840
2753
|
/* 100 */,
|
|
2841
2754
|
/* 101 */,
|
|
2842
|
-
/* 102
|
|
2843
|
-
/* 103 */,
|
|
2844
|
-
/* 104 */,
|
|
2845
|
-
/* 105 */
|
|
2755
|
+
/* 102 */
|
|
2846
2756
|
/***/ (function(module, exports) {
|
|
2847
2757
|
|
|
2848
2758
|
module.exports = require("@babel/runtime/helpers/typeof");
|
|
2849
2759
|
|
|
2850
2760
|
/***/ }),
|
|
2761
|
+
/* 103 */,
|
|
2762
|
+
/* 104 */,
|
|
2763
|
+
/* 105 */,
|
|
2851
2764
|
/* 106 */,
|
|
2852
2765
|
/* 107 */,
|
|
2853
2766
|
/* 108 */,
|
|
@@ -2858,16 +2771,21 @@ module.exports = require("@babel/runtime/helpers/typeof");
|
|
|
2858
2771
|
/* 113 */,
|
|
2859
2772
|
/* 114 */,
|
|
2860
2773
|
/* 115 */,
|
|
2861
|
-
/* 116
|
|
2862
|
-
/* 117 */,
|
|
2863
|
-
/* 118 */,
|
|
2864
|
-
/* 119 */,
|
|
2865
|
-
/* 120 */
|
|
2774
|
+
/* 116 */
|
|
2866
2775
|
/***/ (function(module, exports) {
|
|
2867
2776
|
|
|
2868
2777
|
module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
2869
2778
|
|
|
2870
2779
|
/***/ }),
|
|
2780
|
+
/* 117 */
|
|
2781
|
+
/***/ (function(module, exports) {
|
|
2782
|
+
|
|
2783
|
+
module.exports = require("@splunk/react-ui/Button");
|
|
2784
|
+
|
|
2785
|
+
/***/ }),
|
|
2786
|
+
/* 118 */,
|
|
2787
|
+
/* 119 */,
|
|
2788
|
+
/* 120 */,
|
|
2871
2789
|
/* 121 */,
|
|
2872
2790
|
/* 122 */,
|
|
2873
2791
|
/* 123 */,
|
|
@@ -2887,36 +2805,34 @@ module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
|
2887
2805
|
/* 137 */,
|
|
2888
2806
|
/* 138 */,
|
|
2889
2807
|
/* 139 */,
|
|
2890
|
-
/* 140
|
|
2891
|
-
/* 141 */,
|
|
2892
|
-
/* 142 */
|
|
2808
|
+
/* 140 */
|
|
2893
2809
|
/***/ (function(module, exports) {
|
|
2894
2810
|
|
|
2895
2811
|
module.exports = require("@splunk/react-ui/Menu");
|
|
2896
2812
|
|
|
2897
2813
|
/***/ }),
|
|
2898
|
-
/*
|
|
2814
|
+
/* 141 */
|
|
2899
2815
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2900
2816
|
|
|
2901
2817
|
"use strict";
|
|
2902
2818
|
|
|
2903
2819
|
|
|
2904
|
-
var _typeof = __webpack_require__(
|
|
2820
|
+
var _typeof = __webpack_require__(102);
|
|
2905
2821
|
|
|
2906
|
-
var _slicedToArray = __webpack_require__(
|
|
2822
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2907
2823
|
|
|
2908
|
-
var _toConsumableArray = __webpack_require__(
|
|
2824
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
2909
2825
|
|
|
2910
|
-
var _defineProperty = __webpack_require__(
|
|
2826
|
+
var _defineProperty = __webpack_require__(12);
|
|
2911
2827
|
|
|
2912
2828
|
Object.defineProperty(exports, "__esModule", {
|
|
2913
2829
|
value: true
|
|
2914
2830
|
});
|
|
2915
2831
|
exports.combineHighlighted = exports.convertToHighlightValuesByFieldMap = exports.truncateString = exports.getCustomTimeInterval = exports.getPredefinedTimeInterval = exports.getEpochTime = exports.generateTokenReplacementMap = exports.replaceTokens = exports.mergeFieldActions = exports.mergeEventActions = exports.getFieldSummaryMapping = exports.convertToPayloadFormat = void 0;
|
|
2916
2832
|
|
|
2917
|
-
var time_1 = __webpack_require__(
|
|
2833
|
+
var time_1 = __webpack_require__(223);
|
|
2918
2834
|
|
|
2919
|
-
var lodash_1 = __webpack_require__(
|
|
2835
|
+
var lodash_1 = __webpack_require__(2);
|
|
2920
2836
|
|
|
2921
2837
|
var dataUtils_1 = __webpack_require__(14); // util to convert a field-value map into an object with row.<fieldname>.value keys for payloads
|
|
2922
2838
|
|
|
@@ -3125,6 +3041,7 @@ exports.generateTokenReplacementMap = generateTokenReplacementMap; // return epo
|
|
|
3125
3041
|
var getEpochTime = function getEpochTime(time) {
|
|
3126
3042
|
// if not a valid time string, then indicate an error and return NaN.
|
|
3127
3043
|
if (!(0, time_1.isISO)(time)) {
|
|
3044
|
+
// eslint-disable-next-line no-console
|
|
3128
3045
|
console.error("'".concat(time, "' is not a valid time string."));
|
|
3129
3046
|
return NaN;
|
|
3130
3047
|
} // retrieves the epoch time in milliseconds, and divides by 1000
|
|
@@ -3274,30 +3191,27 @@ var combineHighlighted = function combineHighlighted(highlightedSource, highligh
|
|
|
3274
3191
|
exports.combineHighlighted = combineHighlighted;
|
|
3275
3192
|
|
|
3276
3193
|
/***/ }),
|
|
3277
|
-
/*
|
|
3194
|
+
/* 142 */
|
|
3278
3195
|
/***/ (function(module, exports) {
|
|
3279
3196
|
|
|
3280
3197
|
module.exports = require("@splunk/react-ui/Markdown");
|
|
3281
3198
|
|
|
3282
3199
|
/***/ }),
|
|
3283
|
-
/*
|
|
3284
|
-
/***/ (function(module, exports) {
|
|
3285
|
-
|
|
3286
|
-
module.exports = require("@splunk/react-ui/Button");
|
|
3287
|
-
|
|
3288
|
-
/***/ }),
|
|
3289
|
-
/* 146 */
|
|
3200
|
+
/* 143 */
|
|
3290
3201
|
/***/ (function(module, exports) {
|
|
3291
3202
|
|
|
3292
3203
|
module.exports = require("@splunk/react-ui/Message");
|
|
3293
3204
|
|
|
3294
3205
|
/***/ }),
|
|
3295
|
-
/*
|
|
3206
|
+
/* 144 */
|
|
3296
3207
|
/***/ (function(module, exports) {
|
|
3297
3208
|
|
|
3298
3209
|
module.exports = require("@splunk/react-ui/Heading");
|
|
3299
3210
|
|
|
3300
3211
|
/***/ }),
|
|
3212
|
+
/* 145 */,
|
|
3213
|
+
/* 146 */,
|
|
3214
|
+
/* 147 */,
|
|
3301
3215
|
/* 148 */,
|
|
3302
3216
|
/* 149 */,
|
|
3303
3217
|
/* 150 */,
|
|
@@ -3317,12 +3231,7 @@ module.exports = require("@splunk/react-ui/Heading");
|
|
|
3317
3231
|
/* 164 */,
|
|
3318
3232
|
/* 165 */,
|
|
3319
3233
|
/* 166 */,
|
|
3320
|
-
/* 167
|
|
3321
|
-
/* 168 */,
|
|
3322
|
-
/* 169 */,
|
|
3323
|
-
/* 170 */,
|
|
3324
|
-
/* 171 */,
|
|
3325
|
-
/* 172 */
|
|
3234
|
+
/* 167 */
|
|
3326
3235
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3327
3236
|
|
|
3328
3237
|
"use strict";
|
|
@@ -3346,23 +3255,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3346
3255
|
});
|
|
3347
3256
|
exports.replaceTokens = exports.PureEvents = exports.config = exports.themes = exports.computeVizProps = exports.showPlaceHolderIcon = void 0;
|
|
3348
3257
|
|
|
3349
|
-
var lodash_1 = __webpack_require__(
|
|
3258
|
+
var lodash_1 = __webpack_require__(2);
|
|
3350
3259
|
|
|
3351
|
-
var dataSourceUtils_1 = __webpack_require__(
|
|
3260
|
+
var dataSourceUtils_1 = __webpack_require__(116);
|
|
3352
3261
|
|
|
3353
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3262
|
+
var withDashboardViz_1 = __webpack_require__(54);
|
|
3354
3263
|
|
|
3355
|
-
var constants_1 = __webpack_require__(
|
|
3264
|
+
var constants_1 = __webpack_require__(168);
|
|
3356
3265
|
|
|
3357
|
-
var config_1 = __webpack_require__(
|
|
3266
|
+
var config_1 = __webpack_require__(220);
|
|
3358
3267
|
|
|
3359
3268
|
exports.config = config_1.default;
|
|
3360
3269
|
|
|
3361
|
-
var PureEvents_1 = __webpack_require__(
|
|
3270
|
+
var PureEvents_1 = __webpack_require__(221);
|
|
3362
3271
|
|
|
3363
3272
|
exports.PureEvents = PureEvents_1.default;
|
|
3364
3273
|
|
|
3365
|
-
var EventUtils_1 = __webpack_require__(
|
|
3274
|
+
var EventUtils_1 = __webpack_require__(141);
|
|
3366
3275
|
|
|
3367
3276
|
Object.defineProperty(exports, "replaceTokens", {
|
|
3368
3277
|
enumerable: true,
|
|
@@ -3413,23 +3322,20 @@ exports.themes = themes;
|
|
|
3413
3322
|
exports.default = Events;
|
|
3414
3323
|
|
|
3415
3324
|
/***/ }),
|
|
3416
|
-
/*
|
|
3325
|
+
/* 168 */
|
|
3417
3326
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3418
3327
|
|
|
3419
3328
|
"use strict";
|
|
3420
3329
|
__webpack_require__.r(__webpack_exports__);
|
|
3421
3330
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rawEventPayload", function() { return rawEventPayload; });
|
|
3422
3331
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rawMultiLineEvent", function() { return rawMultiLineEvent; });
|
|
3423
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3332
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "originalDataSourceDataColumns", function() { return originalDataSourceDataColumns; });
|
|
3424
3333
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataSourceData", function() { return dataSourceData; });
|
|
3425
3334
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EMPTY_DATASOURCE", function() { return EMPTY_DATASOURCE; });
|
|
3426
3335
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELDSUMMARY_DS_STORYBOOK", function() { return FIELDSUMMARY_DS_STORYBOOK; });
|
|
3427
3336
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELDSUMMARY_DS_DOC_HUB", function() { return FIELDSUMMARY_DS_DOC_HUB; });
|
|
3428
3337
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TAGS_DEFAULT", function() { return TAGS_DEFAULT; });
|
|
3429
|
-
/* harmony import */ var _splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(192);
|
|
3430
|
-
/* harmony import */ var _splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0__);
|
|
3431
3338
|
// TODO: convert this file to .ts - created as .js as copied from SUI EventsViewer repo
|
|
3432
|
-
|
|
3433
3339
|
var rawEventPayload = {
|
|
3434
3340
|
preview: false,
|
|
3435
3341
|
init_offset: 0,
|
|
@@ -3815,11 +3721,24 @@ var rawEventPayload = {
|
|
|
3815
3721
|
}
|
|
3816
3722
|
}
|
|
3817
3723
|
};
|
|
3818
|
-
var rawMultiLineEvent = "10/19/2023 10:29:00 -0700, search_name=KOM_Dashboard_Sear dropped_events=0, search_startup_time=48, dash_epoch=1697737969, search_spl=\"| rest splunk_server=local /services/server/status/installed-file-integrity\n| fields check_failures.*\n| untable splunk_server file_path check_result\n| replace \"check_failures.*\" WITH \"*\" IN file_path\n| fields file_path check_result\n| rename file_path AS \"File path\" check_result AS \"Check result\", shc_member=standalone, rawdata_cache_miss=0, matching_events=0, events_in_matching_bkts=0, total_run_time_sec=\"0.09\", scanned_events=0, bloomfilter_eliminated_bkts=0, sid_search_name=search2, slices_in_matching_bkts=0, savedsearch_name=search2, search_type=dashboard, search_user=gmattia";
|
|
3724
|
+
var rawMultiLineEvent = "10/19/2023 10:29:00 -0700, search_name=KOM_Dashboard_Sear dropped_events=0, search_startup_time=48, dash_epoch=1697737969, search_spl=\"| rest splunk_server=local /services/server/status/installed-file-integrity\n| fields check_failures.*\n| untable splunk_server file_path check_result\n| replace \"check_failures.*\" WITH \"*\" IN file_path\n| fields file_path check_result\n| rename file_path AS \"File path\" check_result AS \"Check result\", shc_member=standalone, rawdata_cache_miss=0, matching_events=0, events_in_matching_bkts=0, total_run_time_sec=\"0.09\", scanned_events=0, bloomfilter_eliminated_bkts=0, sid_search_name=search2, slices_in_matching_bkts=0, savedsearch_name=search2, search_type=dashboard, search_user=gmattia";
|
|
3725
|
+
|
|
3726
|
+
var columnsFromJSONArray = function columnsFromJSONArray(fields, results) {
|
|
3727
|
+
var columns = fields.map(function (_ref) {
|
|
3728
|
+
var name = _ref.name;
|
|
3729
|
+
return results.reduce(function (col, row) {
|
|
3730
|
+
// if a field is not present on a result entry we set it to null
|
|
3731
|
+
col.push(row[name] === undefined ? null : row[name]);
|
|
3732
|
+
return col;
|
|
3733
|
+
}, []);
|
|
3734
|
+
});
|
|
3735
|
+
return columns;
|
|
3736
|
+
}; // Datasource utilized in example on @splunk/react-events-viewer docs
|
|
3819
3737
|
|
|
3820
|
-
var originalDataSourceData = _splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0__["DataSet"].fromJSONArray(rawEventPayload.fields, rawEventPayload.results); // Replaces _raw object with the value of the `value` key - this is the string expected in Dashboard Studio payload
|
|
3821
3738
|
|
|
3822
|
-
|
|
3739
|
+
var originalDataSourceDataColumns = columnsFromJSONArray(rawEventPayload.fields, rawEventPayload.results); // Replaces _raw object with the value of the `value` key - this is the string expected in Dashboard Studio payload
|
|
3740
|
+
|
|
3741
|
+
originalDataSourceDataColumns[5] = originalDataSourceDataColumns[5].map(function (_raw) {
|
|
3823
3742
|
return _raw.value;
|
|
3824
3743
|
}); // Exports payload with expected shape of Dashboard Studio payload - fields as an array of strings, and columns
|
|
3825
3744
|
// as arrays of data primitives like strings and numbers
|
|
@@ -3828,7 +3747,7 @@ originalDataSourceData.columns[5] = originalDataSourceData.columns[5].map(functi
|
|
|
3828
3747
|
|
|
3829
3748
|
var dataSourceData = {
|
|
3830
3749
|
fields: rawEventPayload.fields,
|
|
3831
|
-
columns:
|
|
3750
|
+
columns: originalDataSourceDataColumns
|
|
3832
3751
|
};
|
|
3833
3752
|
var EMPTY_DATASOURCE = {
|
|
3834
3753
|
primary: {
|
|
@@ -3915,12 +3834,17 @@ var TAGS_DEFAULT = {
|
|
|
3915
3834
|
};
|
|
3916
3835
|
|
|
3917
3836
|
/***/ }),
|
|
3918
|
-
/*
|
|
3837
|
+
/* 169 */
|
|
3919
3838
|
/***/ (function(module, exports) {
|
|
3920
3839
|
|
|
3921
3840
|
module.exports = require("@splunk/visualization-context/EventsContext");
|
|
3922
3841
|
|
|
3923
3842
|
/***/ }),
|
|
3843
|
+
/* 170 */,
|
|
3844
|
+
/* 171 */,
|
|
3845
|
+
/* 172 */,
|
|
3846
|
+
/* 173 */,
|
|
3847
|
+
/* 174 */,
|
|
3924
3848
|
/* 175 */,
|
|
3925
3849
|
/* 176 */,
|
|
3926
3850
|
/* 177 */,
|
|
@@ -3938,12 +3862,7 @@ module.exports = require("@splunk/visualization-context/EventsContext");
|
|
|
3938
3862
|
/* 189 */,
|
|
3939
3863
|
/* 190 */,
|
|
3940
3864
|
/* 191 */,
|
|
3941
|
-
/* 192
|
|
3942
|
-
/***/ (function(module, exports) {
|
|
3943
|
-
|
|
3944
|
-
module.exports = require("@splunk/datasource-utils");
|
|
3945
|
-
|
|
3946
|
-
/***/ }),
|
|
3865
|
+
/* 192 */,
|
|
3947
3866
|
/* 193 */,
|
|
3948
3867
|
/* 194 */,
|
|
3949
3868
|
/* 195 */,
|
|
@@ -3970,13 +3889,7 @@ module.exports = require("@splunk/datasource-utils");
|
|
|
3970
3889
|
/* 216 */,
|
|
3971
3890
|
/* 217 */,
|
|
3972
3891
|
/* 218 */,
|
|
3973
|
-
/* 219
|
|
3974
|
-
/* 220 */,
|
|
3975
|
-
/* 221 */,
|
|
3976
|
-
/* 222 */,
|
|
3977
|
-
/* 223 */,
|
|
3978
|
-
/* 224 */,
|
|
3979
|
-
/* 225 */
|
|
3892
|
+
/* 219 */
|
|
3980
3893
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3981
3894
|
|
|
3982
3895
|
"use strict";
|
|
@@ -4012,9 +3925,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4012
3925
|
});
|
|
4013
3926
|
exports.default = void 0;
|
|
4014
3927
|
|
|
4015
|
-
__exportStar(__webpack_require__(
|
|
3928
|
+
__exportStar(__webpack_require__(167), exports);
|
|
4016
3929
|
|
|
4017
|
-
var Events_1 = __webpack_require__(
|
|
3930
|
+
var Events_1 = __webpack_require__(167);
|
|
4018
3931
|
|
|
4019
3932
|
Object.defineProperty(exports, "default", {
|
|
4020
3933
|
enumerable: true,
|
|
@@ -4024,7 +3937,7 @@ Object.defineProperty(exports, "default", {
|
|
|
4024
3937
|
});
|
|
4025
3938
|
|
|
4026
3939
|
/***/ }),
|
|
4027
|
-
/*
|
|
3940
|
+
/* 220 */
|
|
4028
3941
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4029
3942
|
|
|
4030
3943
|
"use strict";
|
|
@@ -4034,25 +3947,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4034
3947
|
value: true
|
|
4035
3948
|
});
|
|
4036
3949
|
|
|
4037
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3950
|
+
var visualization_icons_1 = __webpack_require__(71);
|
|
4038
3951
|
|
|
4039
|
-
var placeholders_1 = __webpack_require__(
|
|
3952
|
+
var placeholders_1 = __webpack_require__(70);
|
|
4040
3953
|
|
|
4041
|
-
var
|
|
3954
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
4042
3955
|
|
|
4043
|
-
var themes_1 = __webpack_require__(
|
|
3956
|
+
var themes_1 = __webpack_require__(79);
|
|
4044
3957
|
|
|
4045
|
-
var i18n_1 = __webpack_require__(
|
|
3958
|
+
var i18n_1 = __webpack_require__(3);
|
|
4046
3959
|
|
|
4047
|
-
var
|
|
4048
|
-
|
|
4049
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
3960
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
4050
3961
|
|
|
4051
3962
|
var VizCategory_1 = __webpack_require__(22);
|
|
4052
3963
|
|
|
4053
|
-
var configUtils_1 = __webpack_require__(
|
|
3964
|
+
var configUtils_1 = __webpack_require__(26);
|
|
4054
3965
|
|
|
4055
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3966
|
+
var BackgroundColor_1 = __webpack_require__(72);
|
|
4056
3967
|
|
|
4057
3968
|
var defaultContext = {};
|
|
4058
3969
|
var dataContract = {
|
|
@@ -4085,122 +3996,6 @@ var size = {
|
|
|
4085
3996
|
initialWidth: 800,
|
|
4086
3997
|
initialHeight: 500
|
|
4087
3998
|
};
|
|
4088
|
-
var optionsSchema = {
|
|
4089
|
-
backgroundColor: {
|
|
4090
|
-
default: '> themes.defaultBackgroundColor',
|
|
4091
|
-
description: 'Specify the color used for the background by using a hexadecimal code. For example, #0000FF.',
|
|
4092
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
4093
|
-
type: 'string'
|
|
4094
|
-
},
|
|
4095
|
-
eventActions: {
|
|
4096
|
-
default: [],
|
|
4097
|
-
description: 'Specify the available actions to take for an event. For example, `[{ "eventType": "eventAction.buildEventType.click", "label": "Build Event Type" }]`. Event types should end in `.click` if utilizing event handlers. Note that both `eventtypeValues` and `fieldFilters` keys support wildcard values.',
|
|
4098
|
-
type: 'array',
|
|
4099
|
-
items: {
|
|
4100
|
-
anyOf: [{
|
|
4101
|
-
type: 'object',
|
|
4102
|
-
properties: {
|
|
4103
|
-
eventType: {
|
|
4104
|
-
description: 'The distinct type for the event emitted upon event action click.',
|
|
4105
|
-
type: 'string',
|
|
4106
|
-
pattern: '.click$',
|
|
4107
|
-
default: ''
|
|
4108
|
-
},
|
|
4109
|
-
label: {
|
|
4110
|
-
description: 'The label for the event action.',
|
|
4111
|
-
type: 'string',
|
|
4112
|
-
default: ''
|
|
4113
|
-
},
|
|
4114
|
-
eventtypeValues: {
|
|
4115
|
-
description: 'An array of string values that all need to match against the value(s) of the `eventtype` field if it exists in the event in order to be shown.',
|
|
4116
|
-
items: {
|
|
4117
|
-
type: 'string'
|
|
4118
|
-
},
|
|
4119
|
-
type: 'array',
|
|
4120
|
-
default: []
|
|
4121
|
-
},
|
|
4122
|
-
fieldFilters: {
|
|
4123
|
-
description: 'An array of string values for fields that need to exist in the event in order for the given event action in order to be shown.',
|
|
4124
|
-
items: {
|
|
4125
|
-
type: 'string'
|
|
4126
|
-
},
|
|
4127
|
-
type: 'array',
|
|
4128
|
-
default: []
|
|
4129
|
-
}
|
|
4130
|
-
},
|
|
4131
|
-
required: ['eventType', 'label']
|
|
4132
|
-
}]
|
|
4133
|
-
}
|
|
4134
|
-
},
|
|
4135
|
-
fieldActions: {
|
|
4136
|
-
description: 'Specify the available actions for this field. For example, `{ *: [{ "eventType": "fieldAction.sharedAction1.click", "label": "Shared Action 1", "eventtypeValues": ["*"], "fieldFilters": ["*"] }] }`. Event types should end in `.click` if utilizing event handlers. Actions under the `*` key are shared across all field dropdowns. Note that both `eventtypeValues` and `fieldFilters` keys, as well as the field names, support wildcard values.',
|
|
4137
|
-
type: 'object',
|
|
4138
|
-
patternProperties: {
|
|
4139
|
-
'.*': {
|
|
4140
|
-
description: 'Specify the available actions for this field.',
|
|
4141
|
-
type: 'array',
|
|
4142
|
-
items: {
|
|
4143
|
-
anyOf: [{
|
|
4144
|
-
type: 'object',
|
|
4145
|
-
properties: {
|
|
4146
|
-
eventType: {
|
|
4147
|
-
description: 'The distinct type for the event emitted upon event action click.',
|
|
4148
|
-
type: 'string',
|
|
4149
|
-
pattern: '.click$',
|
|
4150
|
-
default: ''
|
|
4151
|
-
},
|
|
4152
|
-
label: {
|
|
4153
|
-
description: 'The label for the event action.',
|
|
4154
|
-
type: 'string',
|
|
4155
|
-
default: ''
|
|
4156
|
-
},
|
|
4157
|
-
eventtypeValues: {
|
|
4158
|
-
description: 'An array of string values that all need to match against the value(s) of the `eventtype` field if it exists in the event in order to be shown.',
|
|
4159
|
-
items: {
|
|
4160
|
-
type: 'string'
|
|
4161
|
-
},
|
|
4162
|
-
type: 'array',
|
|
4163
|
-
default: []
|
|
4164
|
-
},
|
|
4165
|
-
fieldFilters: {
|
|
4166
|
-
description: 'An array of string values for fields that need to exist in the event in order for the given event action in order to be shown.',
|
|
4167
|
-
items: {
|
|
4168
|
-
type: 'string'
|
|
4169
|
-
},
|
|
4170
|
-
type: 'array',
|
|
4171
|
-
default: []
|
|
4172
|
-
}
|
|
4173
|
-
},
|
|
4174
|
-
required: ['eventType', 'label']
|
|
4175
|
-
}]
|
|
4176
|
-
}
|
|
4177
|
-
}
|
|
4178
|
-
}
|
|
4179
|
-
},
|
|
4180
|
-
footerFields: {
|
|
4181
|
-
description: 'Specify field(s) that should be displayed in the footer component. Specify one or more fields to display in the footer component. For example, specify ["source", "dest"] to display the source and destination fields.',
|
|
4182
|
-
type: 'array',
|
|
4183
|
-
items: {
|
|
4184
|
-
type: 'string'
|
|
4185
|
-
},
|
|
4186
|
-
default: []
|
|
4187
|
-
},
|
|
4188
|
-
highlightValuesByField: {
|
|
4189
|
-
description: 'Specify the field and value pairs for manual highlighting. For example, `{"source": "$srcToken$", "dest": "12.21.1.11", "tag": ["tag1", "tag2"]}`.',
|
|
4190
|
-
type: 'object'
|
|
4191
|
-
},
|
|
4192
|
-
highlightFromSource: {
|
|
4193
|
-
description: 'Specify a segmentation mode to use for search based highlighting. Specifying "none" will turn search based highlighting off. For more about segmentation, search for "event segmentation" in the Getting Data In manual in the Splunk Docs.',
|
|
4194
|
-
type: 'string',
|
|
4195
|
-
pattern: (0, schemaUtils_1.getPattern)(DataSource_1.validSegmentationModes),
|
|
4196
|
-
default: 'none'
|
|
4197
|
-
},
|
|
4198
|
-
showFieldSummary: {
|
|
4199
|
-
description: 'Specify that a field summary popup appears when a field is selected. To show field summaries for a search, configure an additional datasource called `fieldsummary` using the original search followed by the `... | fieldsummary maxvals=10` SPL command.',
|
|
4200
|
-
type: 'boolean',
|
|
4201
|
-
default: true
|
|
4202
|
-
}
|
|
4203
|
-
};
|
|
4204
3999
|
var themes = {
|
|
4205
4000
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
4206
4001
|
return (0, themes_1.pick)({
|
|
@@ -4253,7 +4048,7 @@ var config = {
|
|
|
4253
4048
|
dataContract: dataContract,
|
|
4254
4049
|
size: size,
|
|
4255
4050
|
defaultContext: defaultContext,
|
|
4256
|
-
optionsSchema:
|
|
4051
|
+
optionsSchema: visualization_schemas_1.eventsOptionsSchema,
|
|
4257
4052
|
editorConfig: editorConfig,
|
|
4258
4053
|
events: {
|
|
4259
4054
|
'eventAction.<actionName>.click': {
|
|
@@ -4282,31 +4077,31 @@ var config = {
|
|
|
4282
4077
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
4283
4078
|
|
|
4284
4079
|
/***/ }),
|
|
4285
|
-
/*
|
|
4080
|
+
/* 221 */
|
|
4286
4081
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4287
4082
|
|
|
4288
4083
|
"use strict";
|
|
4289
4084
|
|
|
4290
4085
|
|
|
4291
|
-
var _typeof = __webpack_require__(
|
|
4086
|
+
var _typeof = __webpack_require__(102);
|
|
4292
4087
|
|
|
4293
|
-
var _slicedToArray = __webpack_require__(
|
|
4088
|
+
var _slicedToArray = __webpack_require__(5);
|
|
4294
4089
|
|
|
4295
4090
|
Object.defineProperty(exports, "__esModule", {
|
|
4296
4091
|
value: true
|
|
4297
4092
|
});
|
|
4298
4093
|
|
|
4299
|
-
var React = __webpack_require__(
|
|
4094
|
+
var React = __webpack_require__(1);
|
|
4300
4095
|
|
|
4301
|
-
var react_1 = __webpack_require__(
|
|
4096
|
+
var react_1 = __webpack_require__(1);
|
|
4302
4097
|
|
|
4303
|
-
var T = __webpack_require__(
|
|
4098
|
+
var T = __webpack_require__(0);
|
|
4304
4099
|
|
|
4305
|
-
var EventsViewer_1 = __webpack_require__(
|
|
4100
|
+
var EventsViewer_1 = __webpack_require__(222);
|
|
4306
4101
|
|
|
4307
4102
|
var styled_components_1 = __webpack_require__(4);
|
|
4308
4103
|
|
|
4309
|
-
var pick_1 = __webpack_require__(
|
|
4104
|
+
var pick_1 = __webpack_require__(29);
|
|
4310
4105
|
|
|
4311
4106
|
var variables_1 = __webpack_require__(13);
|
|
4312
4107
|
|
|
@@ -4314,26 +4109,26 @@ var colorUtils_1 = __webpack_require__(15);
|
|
|
4314
4109
|
|
|
4315
4110
|
var style_1 = __webpack_require__(18);
|
|
4316
4111
|
|
|
4317
|
-
var EventsContext_1 = __webpack_require__(
|
|
4112
|
+
var EventsContext_1 = __webpack_require__(169);
|
|
4318
4113
|
|
|
4319
|
-
var lodash_1 = __webpack_require__(
|
|
4114
|
+
var lodash_1 = __webpack_require__(2);
|
|
4320
4115
|
|
|
4321
|
-
var Menu_1 = __webpack_require__(
|
|
4116
|
+
var Menu_1 = __webpack_require__(140);
|
|
4322
4117
|
|
|
4323
|
-
var constants_1 = __webpack_require__(
|
|
4118
|
+
var constants_1 = __webpack_require__(168);
|
|
4324
4119
|
|
|
4325
4120
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
4326
4121
|
|
|
4327
|
-
var EventUtils_1 = __webpack_require__(
|
|
4122
|
+
var EventUtils_1 = __webpack_require__(141);
|
|
4328
4123
|
|
|
4329
|
-
var FieldSummaryTooltip_1 = __webpack_require__(
|
|
4124
|
+
var FieldSummaryTooltip_1 = __webpack_require__(224);
|
|
4330
4125
|
|
|
4331
|
-
var TimeControlsPopover_1 = __webpack_require__(
|
|
4126
|
+
var TimeControlsPopover_1 = __webpack_require__(226); // Inspired by VizTableContainer in PureTable.tsx
|
|
4332
4127
|
|
|
4333
4128
|
|
|
4334
4129
|
var EventsContainer = styled_components_1.default.div.withConfig({
|
|
4335
4130
|
displayName: "PureEvents__EventsContainer",
|
|
4336
|
-
componentId: "iniqvm-0"
|
|
4131
|
+
componentId: "sc-iniqvm-0"
|
|
4337
4132
|
})(["width:", ";height:", ";box-sizing:border-box;padding:", ";display:flex;flex-flow:column nowrap;overflow:hidden;background-color:", ";table[data-test='main-table']{background-color:", ";}table[data-test='main-table']{td:nth-child(3){word-break:break-word;white-space:pre-wrap;}}"], function (props) {
|
|
4338
4133
|
return (0, lodash_1.isNumber)(props.width) ? "".concat(props.width, "px") : props.width;
|
|
4339
4134
|
}, function (props) {
|
|
@@ -4350,7 +4145,7 @@ var EventsContainer = styled_components_1.default.div.withConfig({
|
|
|
4350
4145
|
|
|
4351
4146
|
var SUIEventsViewerContainer = styled_components_1.default.div.withConfig({
|
|
4352
4147
|
displayName: "PureEvents__SUIEventsViewerContainer",
|
|
4353
|
-
componentId: "iniqvm-1"
|
|
4148
|
+
componentId: "sc-iniqvm-1"
|
|
4354
4149
|
})(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";"], function (_ref) {
|
|
4355
4150
|
var width = _ref.width,
|
|
4356
4151
|
height = _ref.height,
|
|
@@ -4636,6 +4431,7 @@ var PureEvents = function PureEvents(props) {
|
|
|
4636
4431
|
};
|
|
4637
4432
|
|
|
4638
4433
|
return React.createElement(EventsContainer, {
|
|
4434
|
+
"data-test": "events-container",
|
|
4639
4435
|
backgroundColor: backgroundColor,
|
|
4640
4436
|
width: width,
|
|
4641
4437
|
height: height
|
|
@@ -4721,25 +4517,25 @@ PureEvents.defaultProps = {
|
|
|
4721
4517
|
exports.default = (0, FixedSizeContainer_1.default)(PureEvents);
|
|
4722
4518
|
|
|
4723
4519
|
/***/ }),
|
|
4724
|
-
/*
|
|
4520
|
+
/* 222 */
|
|
4725
4521
|
/***/ (function(module, exports) {
|
|
4726
4522
|
|
|
4727
4523
|
module.exports = require("@splunk/react-events-viewer/components/EventsViewer");
|
|
4728
4524
|
|
|
4729
4525
|
/***/ }),
|
|
4730
|
-
/*
|
|
4526
|
+
/* 223 */
|
|
4731
4527
|
/***/ (function(module, exports) {
|
|
4732
4528
|
|
|
4733
4529
|
module.exports = require("@splunk/time-range-utils/time");
|
|
4734
4530
|
|
|
4735
4531
|
/***/ }),
|
|
4736
|
-
/*
|
|
4532
|
+
/* 224 */
|
|
4737
4533
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4738
4534
|
|
|
4739
4535
|
"use strict";
|
|
4740
4536
|
|
|
4741
4537
|
|
|
4742
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
4538
|
+
var _taggedTemplateLiteral = __webpack_require__(78);
|
|
4743
4539
|
|
|
4744
4540
|
var _templateObject;
|
|
4745
4541
|
|
|
@@ -4747,23 +4543,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4747
4543
|
value: true
|
|
4748
4544
|
});
|
|
4749
4545
|
|
|
4750
|
-
var React = __webpack_require__(
|
|
4546
|
+
var React = __webpack_require__(1);
|
|
4751
4547
|
|
|
4752
|
-
var react_1 = __webpack_require__(
|
|
4548
|
+
var react_1 = __webpack_require__(1);
|
|
4753
4549
|
|
|
4754
|
-
var Popover_1 = __webpack_require__(
|
|
4550
|
+
var Popover_1 = __webpack_require__(81);
|
|
4755
4551
|
|
|
4756
|
-
var Markdown_1 = __webpack_require__(
|
|
4552
|
+
var Markdown_1 = __webpack_require__(142);
|
|
4757
4553
|
|
|
4758
|
-
var FieldSummary_1 = __webpack_require__(
|
|
4554
|
+
var FieldSummary_1 = __webpack_require__(225);
|
|
4759
4555
|
|
|
4760
|
-
var lodash_1 = __webpack_require__(
|
|
4556
|
+
var lodash_1 = __webpack_require__(2);
|
|
4761
4557
|
|
|
4762
|
-
var i18n_1 = __webpack_require__(
|
|
4558
|
+
var i18n_1 = __webpack_require__(3);
|
|
4763
4559
|
|
|
4764
4560
|
var styled_components_1 = __webpack_require__(4);
|
|
4765
4561
|
|
|
4766
|
-
var EventsContext_1 = __webpack_require__(
|
|
4562
|
+
var EventsContext_1 = __webpack_require__(169);
|
|
4767
4563
|
|
|
4768
4564
|
var popoverContainerStyle = {
|
|
4769
4565
|
padding: '20px',
|
|
@@ -4860,21 +4656,21 @@ FieldSummaryTooltip.defaultProps = {
|
|
|
4860
4656
|
exports.default = FieldSummaryTooltip;
|
|
4861
4657
|
|
|
4862
4658
|
/***/ }),
|
|
4863
|
-
/*
|
|
4659
|
+
/* 225 */
|
|
4864
4660
|
/***/ (function(module, exports) {
|
|
4865
4661
|
|
|
4866
4662
|
module.exports = require("@splunk/react-field-summary/components/FieldSummary");
|
|
4867
4663
|
|
|
4868
4664
|
/***/ }),
|
|
4869
|
-
/*
|
|
4665
|
+
/* 226 */
|
|
4870
4666
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4871
4667
|
|
|
4872
4668
|
"use strict";
|
|
4873
4669
|
|
|
4874
4670
|
|
|
4875
|
-
var _slicedToArray = __webpack_require__(
|
|
4671
|
+
var _slicedToArray = __webpack_require__(5);
|
|
4876
4672
|
|
|
4877
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
4673
|
+
var _taggedTemplateLiteral = __webpack_require__(78);
|
|
4878
4674
|
|
|
4879
4675
|
var _templateObject;
|
|
4880
4676
|
|
|
@@ -4882,40 +4678,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4882
4678
|
value: true
|
|
4883
4679
|
});
|
|
4884
4680
|
|
|
4885
|
-
var React = __webpack_require__(
|
|
4681
|
+
var React = __webpack_require__(1);
|
|
4886
4682
|
|
|
4887
|
-
var Popover_1 = __webpack_require__(
|
|
4683
|
+
var Popover_1 = __webpack_require__(81);
|
|
4888
4684
|
|
|
4889
|
-
var ControlGroup_1 = __webpack_require__(
|
|
4685
|
+
var ControlGroup_1 = __webpack_require__(227);
|
|
4890
4686
|
|
|
4891
|
-
var Button_1 = __webpack_require__(
|
|
4687
|
+
var Button_1 = __webpack_require__(117);
|
|
4892
4688
|
|
|
4893
|
-
var Text_1 = __webpack_require__(
|
|
4689
|
+
var Text_1 = __webpack_require__(228);
|
|
4894
4690
|
|
|
4895
|
-
var Message_1 = __webpack_require__(
|
|
4691
|
+
var Message_1 = __webpack_require__(143);
|
|
4896
4692
|
|
|
4897
|
-
var Select_1 = __webpack_require__(
|
|
4693
|
+
var Select_1 = __webpack_require__(229);
|
|
4898
4694
|
|
|
4899
|
-
var Link_1 = __webpack_require__(
|
|
4695
|
+
var Link_1 = __webpack_require__(230);
|
|
4900
4696
|
|
|
4901
|
-
var Heading_1 = __webpack_require__(
|
|
4697
|
+
var Heading_1 = __webpack_require__(144);
|
|
4902
4698
|
|
|
4903
|
-
var lodash_1 = __webpack_require__(
|
|
4699
|
+
var lodash_1 = __webpack_require__(2);
|
|
4904
4700
|
|
|
4905
|
-
var i18n_1 = __webpack_require__(
|
|
4701
|
+
var i18n_1 = __webpack_require__(3);
|
|
4906
4702
|
|
|
4907
4703
|
var styled_components_1 = __webpack_require__(4);
|
|
4908
4704
|
|
|
4909
|
-
var numberUtils_1 = __webpack_require__(
|
|
4705
|
+
var numberUtils_1 = __webpack_require__(10);
|
|
4910
4706
|
|
|
4911
|
-
var pick_1 = __webpack_require__(
|
|
4707
|
+
var pick_1 = __webpack_require__(29);
|
|
4912
4708
|
|
|
4913
|
-
var EventUtils_1 = __webpack_require__(
|
|
4709
|
+
var EventUtils_1 = __webpack_require__(141); // custom popover sizing for Enterprise vs. Prisma themes - additional px for Prisma theme to fit controls
|
|
4914
4710
|
|
|
4915
4711
|
|
|
4916
4712
|
var TimePopoverContainer = styled_components_1.default.div.withConfig({
|
|
4917
4713
|
displayName: "TimeControlsPopover__TimePopoverContainer",
|
|
4918
|
-
componentId: "fj32ze-0"
|
|
4714
|
+
componentId: "sc-fj32ze-0"
|
|
4919
4715
|
})(["padding:20px;width:", ";.time-drilldown-header{margin:0px;}[data-test='nearby-controls']{margin:0px;width:", ";}"], function (props) {
|
|
4920
4716
|
return (0, pick_1.default)({
|
|
4921
4717
|
enterprise: '372px',
|
|
@@ -4929,11 +4725,11 @@ var TimePopoverContainer = styled_components_1.default.div.withConfig({
|
|
|
4929
4725
|
});
|
|
4930
4726
|
var TimeTable = styled_components_1.default.table.withConfig({
|
|
4931
4727
|
displayName: "TimeControlsPopover__TimeTable",
|
|
4932
|
-
componentId: "fj32ze-1"
|
|
4728
|
+
componentId: "sc-fj32ze-1"
|
|
4933
4729
|
})(["width:100%;display:table;border-collapse:separate;box-sizing:border-box;text-indent:initial;border-spacing:2px;border-color:grey;"]);
|
|
4934
4730
|
var NearbyValueRow = styled_components_1.default.div.withConfig({
|
|
4935
4731
|
displayName: "TimeControlsPopover__NearbyValueRow",
|
|
4936
|
-
componentId: "fj32ze-2"
|
|
4732
|
+
componentId: "sc-fj32ze-2"
|
|
4937
4733
|
})(["display:flex;align-items:flex-start;justify-content:center;"]);
|
|
4938
4734
|
var SectionHeading = (0, styled_components_1.default)(Heading_1.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: 20px;\n"])));
|
|
4939
4735
|
var rangeTypeInputStyle = {
|
|
@@ -5137,25 +4933,25 @@ TimeControlsPopover.defaultProps = {
|
|
|
5137
4933
|
exports.default = TimeControlsPopover;
|
|
5138
4934
|
|
|
5139
4935
|
/***/ }),
|
|
5140
|
-
/*
|
|
4936
|
+
/* 227 */
|
|
5141
4937
|
/***/ (function(module, exports) {
|
|
5142
4938
|
|
|
5143
4939
|
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
5144
4940
|
|
|
5145
4941
|
/***/ }),
|
|
5146
|
-
/*
|
|
4942
|
+
/* 228 */
|
|
5147
4943
|
/***/ (function(module, exports) {
|
|
5148
4944
|
|
|
5149
4945
|
module.exports = require("@splunk/react-ui/Text");
|
|
5150
4946
|
|
|
5151
4947
|
/***/ }),
|
|
5152
|
-
/*
|
|
4948
|
+
/* 229 */
|
|
5153
4949
|
/***/ (function(module, exports) {
|
|
5154
4950
|
|
|
5155
4951
|
module.exports = require("@splunk/react-ui/Select");
|
|
5156
4952
|
|
|
5157
4953
|
/***/ }),
|
|
5158
|
-
/*
|
|
4954
|
+
/* 230 */
|
|
5159
4955
|
/***/ (function(module, exports) {
|
|
5160
4956
|
|
|
5161
4957
|
module.exports = require("@splunk/react-ui/Link");
|