@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/ChoroplethSvg.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 = 202);
|
|
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.
|
|
968
|
-
|
|
969
|
-
var lodash_1 = __webpack_require__(3);
|
|
946
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
970
947
|
|
|
971
|
-
var
|
|
948
|
+
var lodash_1 = __webpack_require__(2); // included for backwards compatibility
|
|
972
949
|
|
|
973
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
974
950
|
|
|
975
|
-
var
|
|
976
|
-
type: 'string',
|
|
977
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
978
|
-
};
|
|
979
|
-
/**
|
|
980
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
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
|
-
});
|
|
951
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1020
952
|
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
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,37 +1088,37 @@ 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
|
-
/*
|
|
1097
|
+
/* 28 */
|
|
1184
1098
|
/***/ (function(module, exports) {
|
|
1185
1099
|
|
|
1186
1100
|
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
1187
1101
|
|
|
1188
1102
|
/***/ }),
|
|
1189
|
-
/*
|
|
1103
|
+
/* 29 */
|
|
1190
1104
|
/***/ (function(module, exports) {
|
|
1191
1105
|
|
|
1192
1106
|
module.exports = require("@splunk/themes/pick");
|
|
1193
1107
|
|
|
1194
1108
|
/***/ }),
|
|
1195
|
-
/*
|
|
1109
|
+
/* 30 */
|
|
1196
1110
|
/***/ (function(module, exports) {
|
|
1197
1111
|
|
|
1198
1112
|
module.exports = require("@splunk/ui-utils/id");
|
|
1199
1113
|
|
|
1200
1114
|
/***/ }),
|
|
1201
|
-
/*
|
|
1115
|
+
/* 31 */
|
|
1202
1116
|
/***/ (function(module, exports) {
|
|
1203
1117
|
|
|
1204
1118
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1205
1119
|
|
|
1206
1120
|
/***/ }),
|
|
1207
|
-
/*
|
|
1121
|
+
/* 32 */
|
|
1208
1122
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1209
1123
|
|
|
1210
1124
|
"use strict";
|
|
@@ -1214,7 +1128,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1214
1128
|
value: true
|
|
1215
1129
|
});
|
|
1216
1130
|
|
|
1217
|
-
var react_1 = __webpack_require__(
|
|
1131
|
+
var react_1 = __webpack_require__(1);
|
|
1218
1132
|
|
|
1219
1133
|
function usePrevious(value) {
|
|
1220
1134
|
var ref = (0, react_1.useRef)();
|
|
@@ -1227,20 +1141,20 @@ function usePrevious(value) {
|
|
|
1227
1141
|
exports.default = usePrevious;
|
|
1228
1142
|
|
|
1229
1143
|
/***/ }),
|
|
1230
|
-
/*
|
|
1144
|
+
/* 33 */
|
|
1231
1145
|
/***/ (function(module, exports) {
|
|
1232
1146
|
|
|
1233
1147
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1234
1148
|
|
|
1235
1149
|
/***/ }),
|
|
1236
|
-
/*
|
|
1150
|
+
/* 34 */
|
|
1237
1151
|
/***/ (function(module, exports) {
|
|
1238
1152
|
|
|
1239
1153
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1240
1154
|
|
|
1241
1155
|
/***/ }),
|
|
1242
|
-
/*
|
|
1243
|
-
/*
|
|
1156
|
+
/* 35 */,
|
|
1157
|
+
/* 36 */
|
|
1244
1158
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1245
1159
|
|
|
1246
1160
|
"use strict";
|
|
@@ -1251,15 +1165,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1251
1165
|
});
|
|
1252
1166
|
exports.shouldShowIconPlaceholder = void 0;
|
|
1253
1167
|
|
|
1254
|
-
var React = __webpack_require__(
|
|
1168
|
+
var React = __webpack_require__(1);
|
|
1255
1169
|
|
|
1256
|
-
var T = __webpack_require__(
|
|
1170
|
+
var T = __webpack_require__(0);
|
|
1257
1171
|
|
|
1258
|
-
var lodash_1 = __webpack_require__(
|
|
1172
|
+
var lodash_1 = __webpack_require__(2);
|
|
1259
1173
|
|
|
1260
|
-
var i18n_1 = __webpack_require__(
|
|
1174
|
+
var i18n_1 = __webpack_require__(3);
|
|
1261
1175
|
|
|
1262
|
-
var Message_1 = __webpack_require__(
|
|
1176
|
+
var Message_1 = __webpack_require__(11);
|
|
1263
1177
|
|
|
1264
1178
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
1265
1179
|
/**
|
|
@@ -1332,24 +1246,24 @@ IconPlaceholder.defaultProps = {
|
|
|
1332
1246
|
exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
1333
1247
|
|
|
1334
1248
|
/***/ }),
|
|
1335
|
-
/*
|
|
1249
|
+
/* 37 */
|
|
1336
1250
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1337
1251
|
|
|
1338
1252
|
"use strict";
|
|
1339
1253
|
|
|
1340
1254
|
|
|
1341
|
-
var _defineProperty = __webpack_require__(
|
|
1255
|
+
var _defineProperty = __webpack_require__(12);
|
|
1342
1256
|
|
|
1343
1257
|
Object.defineProperty(exports, "__esModule", {
|
|
1344
1258
|
value: true
|
|
1345
1259
|
});
|
|
1346
1260
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1347
1261
|
|
|
1348
|
-
var T = __webpack_require__(
|
|
1262
|
+
var T = __webpack_require__(0);
|
|
1349
1263
|
|
|
1350
|
-
var lodash_1 = __webpack_require__(
|
|
1264
|
+
var lodash_1 = __webpack_require__(2);
|
|
1351
1265
|
|
|
1352
|
-
var DataSource_1 = __webpack_require__(
|
|
1266
|
+
var DataSource_1 = __webpack_require__(20);
|
|
1353
1267
|
|
|
1354
1268
|
exports.SortParamsPropTypes = T.shape({
|
|
1355
1269
|
currentSortKey: T.string,
|
|
@@ -1402,7 +1316,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
1402
1316
|
exports.getSortingParams = getSortingParams;
|
|
1403
1317
|
|
|
1404
1318
|
/***/ }),
|
|
1405
|
-
/*
|
|
1319
|
+
/* 38 */
|
|
1406
1320
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1407
1321
|
|
|
1408
1322
|
"use strict";
|
|
@@ -1413,9 +1327,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1413
1327
|
});
|
|
1414
1328
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1415
1329
|
|
|
1416
|
-
var T = __webpack_require__(
|
|
1330
|
+
var T = __webpack_require__(0);
|
|
1417
1331
|
|
|
1418
|
-
var lodash_1 = __webpack_require__(
|
|
1332
|
+
var lodash_1 = __webpack_require__(2);
|
|
1419
1333
|
|
|
1420
1334
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1421
1335
|
isPaging: T.bool,
|
|
@@ -1466,7 +1380,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1466
1380
|
exports.getPaginationParams = getPaginationParams;
|
|
1467
1381
|
|
|
1468
1382
|
/***/ }),
|
|
1469
|
-
/*
|
|
1383
|
+
/* 39 */
|
|
1470
1384
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1471
1385
|
|
|
1472
1386
|
"use strict";
|
|
@@ -1501,11 +1415,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1501
1415
|
value: true
|
|
1502
1416
|
});
|
|
1503
1417
|
|
|
1418
|
+
__exportStar(__webpack_require__(40), exports);
|
|
1419
|
+
|
|
1504
1420
|
__exportStar(__webpack_require__(41), exports);
|
|
1505
1421
|
|
|
1506
|
-
__exportStar(__webpack_require__(
|
|
1422
|
+
__exportStar(__webpack_require__(20), exports);
|
|
1507
1423
|
|
|
1508
|
-
__exportStar(__webpack_require__(
|
|
1424
|
+
__exportStar(__webpack_require__(42), exports);
|
|
1509
1425
|
|
|
1510
1426
|
__exportStar(__webpack_require__(43), exports);
|
|
1511
1427
|
|
|
@@ -1517,16 +1433,16 @@ __exportStar(__webpack_require__(46), exports);
|
|
|
1517
1433
|
|
|
1518
1434
|
__exportStar(__webpack_require__(47), exports);
|
|
1519
1435
|
|
|
1520
|
-
__exportStar(__webpack_require__(48), exports);
|
|
1521
|
-
|
|
1522
|
-
__exportStar(__webpack_require__(49), exports);
|
|
1523
|
-
|
|
1524
1436
|
__exportStar(__webpack_require__(21), exports);
|
|
1525
1437
|
|
|
1526
|
-
__exportStar(__webpack_require__(
|
|
1438
|
+
__exportStar(__webpack_require__(7), exports);
|
|
1527
1439
|
|
|
1528
1440
|
__exportStar(__webpack_require__(22), exports);
|
|
1529
1441
|
|
|
1442
|
+
__exportStar(__webpack_require__(48), exports);
|
|
1443
|
+
|
|
1444
|
+
__exportStar(__webpack_require__(49), exports);
|
|
1445
|
+
|
|
1530
1446
|
__exportStar(__webpack_require__(50), exports);
|
|
1531
1447
|
|
|
1532
1448
|
__exportStar(__webpack_require__(51), exports);
|
|
@@ -1535,9 +1451,16 @@ __exportStar(__webpack_require__(52), exports);
|
|
|
1535
1451
|
|
|
1536
1452
|
__exportStar(__webpack_require__(53), exports);
|
|
1537
1453
|
|
|
1538
|
-
|
|
1454
|
+
/***/ }),
|
|
1455
|
+
/* 40 */
|
|
1456
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1457
|
+
|
|
1458
|
+
"use strict";
|
|
1459
|
+
|
|
1539
1460
|
|
|
1540
|
-
|
|
1461
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1462
|
+
value: true
|
|
1463
|
+
});
|
|
1541
1464
|
|
|
1542
1465
|
/***/ }),
|
|
1543
1466
|
/* 41 */
|
|
@@ -1545,6 +1468,9 @@ __exportStar(__webpack_require__(55), exports);
|
|
|
1545
1468
|
|
|
1546
1469
|
"use strict";
|
|
1547
1470
|
|
|
1471
|
+
/**
|
|
1472
|
+
* A data structure used at runtime to wire up a visualization.
|
|
1473
|
+
*/
|
|
1548
1474
|
|
|
1549
1475
|
Object.defineProperty(exports, "__esModule", {
|
|
1550
1476
|
value: true
|
|
@@ -1556,9 +1482,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1556
1482
|
|
|
1557
1483
|
"use strict";
|
|
1558
1484
|
|
|
1559
|
-
/**
|
|
1560
|
-
* A data structure used at runtime to wire up a visualization.
|
|
1561
|
-
*/
|
|
1562
1485
|
|
|
1563
1486
|
Object.defineProperty(exports, "__esModule", {
|
|
1564
1487
|
value: true
|
|
@@ -1692,81 +1615,59 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1692
1615
|
"use strict";
|
|
1693
1616
|
|
|
1694
1617
|
|
|
1695
|
-
|
|
1696
|
-
value: true
|
|
1697
|
-
});
|
|
1698
|
-
|
|
1699
|
-
/***/ }),
|
|
1700
|
-
/* 55 */
|
|
1701
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1702
|
-
|
|
1703
|
-
"use strict";
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1707
|
-
value: true
|
|
1708
|
-
});
|
|
1709
|
-
|
|
1710
|
-
/***/ }),
|
|
1711
|
-
/* 56 */
|
|
1712
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1713
|
-
|
|
1714
|
-
"use strict";
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
var _slicedToArray = __webpack_require__(7);
|
|
1618
|
+
var _slicedToArray = __webpack_require__(5);
|
|
1718
1619
|
|
|
1719
1620
|
Object.defineProperty(exports, "__esModule", {
|
|
1720
1621
|
value: true
|
|
1721
1622
|
});
|
|
1722
1623
|
|
|
1723
|
-
var React = __webpack_require__(
|
|
1624
|
+
var React = __webpack_require__(1);
|
|
1724
1625
|
|
|
1725
|
-
var lodash_1 = __webpack_require__(
|
|
1626
|
+
var lodash_1 = __webpack_require__(2);
|
|
1726
1627
|
|
|
1727
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1628
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(55);
|
|
1728
1629
|
|
|
1729
1630
|
var Options_1 = __webpack_require__(16);
|
|
1730
1631
|
|
|
1731
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1632
|
+
var SanitizeProps_1 = __webpack_require__(56);
|
|
1732
1633
|
|
|
1733
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1634
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
1734
1635
|
|
|
1735
|
-
var moment_1 = __webpack_require__(
|
|
1636
|
+
var moment_1 = __webpack_require__(57);
|
|
1736
1637
|
|
|
1737
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
1638
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
1738
1639
|
|
|
1739
1640
|
var styled_components_1 = __webpack_require__(4);
|
|
1740
1641
|
|
|
1741
|
-
var hocUtils_1 = __webpack_require__(
|
|
1642
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
1742
1643
|
|
|
1743
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1644
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
1744
1645
|
|
|
1745
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
1646
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(58);
|
|
1746
1647
|
|
|
1747
|
-
var id_1 = __webpack_require__(
|
|
1648
|
+
var id_1 = __webpack_require__(30);
|
|
1748
1649
|
|
|
1749
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1650
|
+
var SplunkVisualization_1 = __webpack_require__(59);
|
|
1750
1651
|
|
|
1751
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1652
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
1752
1653
|
|
|
1753
|
-
var getSorting_1 = __webpack_require__(
|
|
1654
|
+
var getSorting_1 = __webpack_require__(37);
|
|
1754
1655
|
|
|
1755
|
-
var getPagination_1 = __webpack_require__(
|
|
1656
|
+
var getPagination_1 = __webpack_require__(38);
|
|
1756
1657
|
|
|
1757
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1658
|
+
var useDeepMemo_1 = __webpack_require__(60);
|
|
1758
1659
|
|
|
1759
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1660
|
+
var MissingPropsMessage_1 = __webpack_require__(61);
|
|
1760
1661
|
|
|
1761
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1662
|
+
var withEditModeCover_1 = __webpack_require__(62);
|
|
1762
1663
|
|
|
1763
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1664
|
+
var withPlaceholder_1 = __webpack_require__(63);
|
|
1764
1665
|
|
|
1765
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
1666
|
+
var useDownsampleDataSources_1 = __webpack_require__(64);
|
|
1766
1667
|
|
|
1767
1668
|
var dataUtils_1 = __webpack_require__(14);
|
|
1768
1669
|
|
|
1769
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
1670
|
+
var featureFlagUtils_1 = __webpack_require__(66);
|
|
1770
1671
|
/**
|
|
1771
1672
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1772
1673
|
* @param {DashboardVizOpts} opts
|
|
@@ -2098,37 +1999,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2098
1999
|
exports.default = withDashboardViz;
|
|
2099
2000
|
|
|
2100
2001
|
/***/ }),
|
|
2101
|
-
/*
|
|
2002
|
+
/* 55 */
|
|
2102
2003
|
/***/ (function(module, exports) {
|
|
2103
2004
|
|
|
2104
2005
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2105
2006
|
|
|
2106
2007
|
/***/ }),
|
|
2107
|
-
/*
|
|
2008
|
+
/* 56 */
|
|
2108
2009
|
/***/ (function(module, exports) {
|
|
2109
2010
|
|
|
2110
2011
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2111
2012
|
|
|
2112
2013
|
/***/ }),
|
|
2113
|
-
/*
|
|
2014
|
+
/* 57 */
|
|
2114
2015
|
/***/ (function(module, exports) {
|
|
2115
2016
|
|
|
2116
2017
|
module.exports = require("@splunk/moment");
|
|
2117
2018
|
|
|
2118
2019
|
/***/ }),
|
|
2119
|
-
/*
|
|
2020
|
+
/* 58 */
|
|
2120
2021
|
/***/ (function(module, exports) {
|
|
2121
2022
|
|
|
2122
2023
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2123
2024
|
|
|
2124
2025
|
/***/ }),
|
|
2125
|
-
/*
|
|
2026
|
+
/* 59 */
|
|
2126
2027
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2127
2028
|
|
|
2128
2029
|
"use strict";
|
|
2129
2030
|
|
|
2130
2031
|
|
|
2131
|
-
var _classCallCheck = __webpack_require__(
|
|
2032
|
+
var _classCallCheck = __webpack_require__(8);
|
|
2132
2033
|
|
|
2133
2034
|
Object.defineProperty(exports, "__esModule", {
|
|
2134
2035
|
value: true
|
|
@@ -2136,9 +2037,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2136
2037
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
2137
2038
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
2138
2039
|
|
|
2139
|
-
var T = __webpack_require__(
|
|
2040
|
+
var T = __webpack_require__(0);
|
|
2140
2041
|
|
|
2141
|
-
var lodash_1 = __webpack_require__(
|
|
2042
|
+
var lodash_1 = __webpack_require__(2);
|
|
2142
2043
|
|
|
2143
2044
|
var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2144
2045
|
|
|
@@ -2273,7 +2174,7 @@ SplunkVisualization.defaultProps = {
|
|
|
2273
2174
|
exports.default = SplunkVisualization;
|
|
2274
2175
|
|
|
2275
2176
|
/***/ }),
|
|
2276
|
-
/*
|
|
2177
|
+
/* 60 */
|
|
2277
2178
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2278
2179
|
|
|
2279
2180
|
"use strict";
|
|
@@ -2284,9 +2185,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2284
2185
|
});
|
|
2285
2186
|
exports.useDeepMemo = void 0;
|
|
2286
2187
|
|
|
2287
|
-
var react_1 = __webpack_require__(
|
|
2188
|
+
var react_1 = __webpack_require__(1);
|
|
2288
2189
|
|
|
2289
|
-
var lodash_1 = __webpack_require__(
|
|
2190
|
+
var lodash_1 = __webpack_require__(2);
|
|
2290
2191
|
/**
|
|
2291
2192
|
* This hook evaluates and stores the result of a passed function and only
|
|
2292
2193
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -2318,7 +2219,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
2318
2219
|
exports.useDeepMemo = useDeepMemo;
|
|
2319
2220
|
|
|
2320
2221
|
/***/ }),
|
|
2321
|
-
/*
|
|
2222
|
+
/* 61 */
|
|
2322
2223
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2323
2224
|
|
|
2324
2225
|
"use strict";
|
|
@@ -2329,13 +2230,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2329
2230
|
});
|
|
2330
2231
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
2331
2232
|
|
|
2332
|
-
var React = __webpack_require__(
|
|
2233
|
+
var React = __webpack_require__(1);
|
|
2333
2234
|
|
|
2334
|
-
var T = __webpack_require__(
|
|
2235
|
+
var T = __webpack_require__(0);
|
|
2335
2236
|
|
|
2336
|
-
var i18n_1 = __webpack_require__(
|
|
2237
|
+
var i18n_1 = __webpack_require__(3);
|
|
2337
2238
|
|
|
2338
|
-
var Message_1 = __webpack_require__(
|
|
2239
|
+
var Message_1 = __webpack_require__(11);
|
|
2339
2240
|
|
|
2340
2241
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
2341
2242
|
/**
|
|
@@ -2398,7 +2299,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
2398
2299
|
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
2399
2300
|
|
|
2400
2301
|
/***/ }),
|
|
2401
|
-
/*
|
|
2302
|
+
/* 62 */
|
|
2402
2303
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2403
2304
|
|
|
2404
2305
|
"use strict";
|
|
@@ -2408,7 +2309,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2408
2309
|
value: true
|
|
2409
2310
|
});
|
|
2410
2311
|
|
|
2411
|
-
var React = __webpack_require__(
|
|
2312
|
+
var React = __webpack_require__(1);
|
|
2412
2313
|
|
|
2413
2314
|
var styled_components_1 = __webpack_require__(4);
|
|
2414
2315
|
|
|
@@ -2419,7 +2320,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
2419
2320
|
componentId: "sc-1gsbnxb-0"
|
|
2420
2321
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2421
2322
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2422
|
-
'data-splunk-visualization-version': "26.
|
|
2323
|
+
'data-splunk-visualization-version': "26.4.0 - 04078274d"
|
|
2423
2324
|
}).withConfig({
|
|
2424
2325
|
displayName: "withEditModeCover__Blocker",
|
|
2425
2326
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2450,7 +2351,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
2450
2351
|
exports.default = withEditModeCover;
|
|
2451
2352
|
|
|
2452
2353
|
/***/ }),
|
|
2453
|
-
/*
|
|
2354
|
+
/* 63 */
|
|
2454
2355
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2455
2356
|
|
|
2456
2357
|
"use strict";
|
|
@@ -2460,15 +2361,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2460
2361
|
value: true
|
|
2461
2362
|
});
|
|
2462
2363
|
|
|
2463
|
-
var React = __webpack_require__(
|
|
2364
|
+
var React = __webpack_require__(1);
|
|
2464
2365
|
|
|
2465
2366
|
var colorUtils_1 = __webpack_require__(15);
|
|
2466
2367
|
|
|
2467
2368
|
var variables_1 = __webpack_require__(13);
|
|
2468
2369
|
|
|
2469
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2370
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
2470
2371
|
|
|
2471
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2372
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
2472
2373
|
|
|
2473
2374
|
var hocUtils_1 = __webpack_require__(23);
|
|
2474
2375
|
|
|
@@ -2514,27 +2415,30 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
2514
2415
|
exports.default = withPlaceholder;
|
|
2515
2416
|
|
|
2516
2417
|
/***/ }),
|
|
2517
|
-
/*
|
|
2418
|
+
/* 64 */
|
|
2518
2419
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2519
2420
|
|
|
2520
2421
|
"use strict";
|
|
2521
2422
|
|
|
2522
2423
|
|
|
2523
|
-
var _slicedToArray = __webpack_require__(
|
|
2424
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2524
2425
|
|
|
2525
2426
|
Object.defineProperty(exports, "__esModule", {
|
|
2526
2427
|
value: true
|
|
2527
2428
|
});
|
|
2528
2429
|
|
|
2529
|
-
var react_1 = __webpack_require__(
|
|
2430
|
+
var react_1 = __webpack_require__(1);
|
|
2530
2431
|
|
|
2531
|
-
var lodash_1 = __webpack_require__(
|
|
2432
|
+
var lodash_1 = __webpack_require__(2);
|
|
2532
2433
|
|
|
2533
2434
|
var dataUtils_1 = __webpack_require__(14);
|
|
2534
2435
|
|
|
2535
|
-
var usePrevious_1 = __webpack_require__(
|
|
2436
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
2437
|
+
|
|
2438
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
2536
2439
|
|
|
2537
|
-
|
|
2440
|
+
|
|
2441
|
+
var downsampleVizOptionProperties = ['nullValueDisplay'];
|
|
2538
2442
|
|
|
2539
2443
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
2540
2444
|
var dataSources = _ref.dataSources,
|
|
@@ -2548,8 +2452,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2548
2452
|
options: options,
|
|
2549
2453
|
context: context,
|
|
2550
2454
|
dataSources: dataSources
|
|
2551
|
-
});
|
|
2552
|
-
|
|
2455
|
+
}); // Extract viz options that impact downsampling.
|
|
2456
|
+
|
|
2457
|
+
var downsampleVizOptions = (0, react_1.useMemo)(function () {
|
|
2458
|
+
return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
|
|
2459
|
+
}, [options]);
|
|
2460
|
+
var downsampleDSOptions = (0, react_1.useMemo)(function () {
|
|
2461
|
+
return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
|
|
2462
|
+
}, [xAndYFieldsWithTypes, downsampleVizOptions]);
|
|
2463
|
+
var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
|
|
2553
2464
|
var previousDataSources = (0, usePrevious_1.default)(dataSources);
|
|
2554
2465
|
var previousThreshold = (0, usePrevious_1.default)(threshold);
|
|
2555
2466
|
|
|
@@ -2557,7 +2468,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2557
2468
|
return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
|
|
2558
2469
|
dataSources: dataSources,
|
|
2559
2470
|
threshold: threshold,
|
|
2560
|
-
options:
|
|
2471
|
+
options: downsampleDSOptions
|
|
2561
2472
|
}) : dataSources;
|
|
2562
2473
|
}),
|
|
2563
2474
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -2585,7 +2496,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2585
2496
|
return;
|
|
2586
2497
|
}
|
|
2587
2498
|
|
|
2588
|
-
if ((0, lodash_1.isEqual)(
|
|
2499
|
+
if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
|
|
2589
2500
|
return;
|
|
2590
2501
|
} // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
|
|
2591
2502
|
// while the viz is being resized
|
|
@@ -2593,29 +2504,29 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2593
2504
|
|
|
2594
2505
|
debouncedDownsampleDataSources({
|
|
2595
2506
|
dataSources: dataSources,
|
|
2596
|
-
options:
|
|
2507
|
+
options: downsampleDSOptions,
|
|
2597
2508
|
threshold: threshold
|
|
2598
2509
|
}); // need to detect if this runs as part of the initial render
|
|
2599
|
-
}, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled,
|
|
2510
|
+
}, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
|
|
2600
2511
|
return downsampledDataSources;
|
|
2601
2512
|
};
|
|
2602
2513
|
|
|
2603
2514
|
exports.default = useDownsampleDataSources;
|
|
2604
2515
|
|
|
2605
2516
|
/***/ }),
|
|
2606
|
-
/*
|
|
2517
|
+
/* 65 */
|
|
2607
2518
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2608
2519
|
|
|
2609
2520
|
"use strict";
|
|
2610
2521
|
|
|
2611
2522
|
|
|
2612
|
-
var _toConsumableArray = __webpack_require__(
|
|
2523
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
2613
2524
|
|
|
2614
2525
|
Object.defineProperty(exports, "__esModule", {
|
|
2615
2526
|
value: true
|
|
2616
2527
|
});
|
|
2617
2528
|
|
|
2618
|
-
var react_1 = __webpack_require__(
|
|
2529
|
+
var react_1 = __webpack_require__(1);
|
|
2619
2530
|
|
|
2620
2531
|
var Options_1 = __webpack_require__(16);
|
|
2621
2532
|
/**
|
|
@@ -2717,7 +2628,7 @@ var useGetXAndYFields = function useGetXAndYFields(_ref) {
|
|
|
2717
2628
|
exports.default = useGetXAndYFields;
|
|
2718
2629
|
|
|
2719
2630
|
/***/ }),
|
|
2720
|
-
/*
|
|
2631
|
+
/* 66 */
|
|
2721
2632
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2722
2633
|
|
|
2723
2634
|
"use strict";
|
|
@@ -2728,7 +2639,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2728
2639
|
});
|
|
2729
2640
|
exports.getFeatureFlag = void 0;
|
|
2730
2641
|
|
|
2731
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
2642
|
+
var FeatureFlags_1 = __webpack_require__(67);
|
|
2732
2643
|
|
|
2733
2644
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
2734
2645
|
// look for feature flag in context first
|
|
@@ -2752,69 +2663,68 @@ var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
|
2752
2663
|
exports.getFeatureFlag = getFeatureFlag;
|
|
2753
2664
|
|
|
2754
2665
|
/***/ }),
|
|
2755
|
-
/*
|
|
2666
|
+
/* 67 */
|
|
2756
2667
|
/***/ (function(module, exports) {
|
|
2757
2668
|
|
|
2758
2669
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
2759
2670
|
|
|
2760
2671
|
/***/ }),
|
|
2761
|
-
/*
|
|
2762
|
-
/*
|
|
2763
|
-
/*
|
|
2672
|
+
/* 68 */,
|
|
2673
|
+
/* 69 */,
|
|
2674
|
+
/* 70 */
|
|
2764
2675
|
/***/ (function(module, exports) {
|
|
2765
2676
|
|
|
2766
2677
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
2767
2678
|
|
|
2768
2679
|
/***/ }),
|
|
2769
|
-
/*
|
|
2770
|
-
/* 74 */
|
|
2680
|
+
/* 71 */
|
|
2771
2681
|
/***/ (function(module, exports) {
|
|
2772
2682
|
|
|
2773
2683
|
module.exports = require("@splunk/visualization-icons");
|
|
2774
2684
|
|
|
2775
2685
|
/***/ }),
|
|
2686
|
+
/* 72 */,
|
|
2687
|
+
/* 73 */,
|
|
2688
|
+
/* 74 */,
|
|
2776
2689
|
/* 75 */,
|
|
2777
2690
|
/* 76 */,
|
|
2778
2691
|
/* 77 */,
|
|
2779
2692
|
/* 78 */,
|
|
2780
2693
|
/* 79 */,
|
|
2781
|
-
/* 80
|
|
2782
|
-
/* 81 */,
|
|
2783
|
-
/* 82 */,
|
|
2784
|
-
/* 83 */
|
|
2694
|
+
/* 80 */
|
|
2785
2695
|
/***/ (function(module, exports) {
|
|
2786
2696
|
|
|
2787
2697
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
2788
2698
|
|
|
2789
2699
|
/***/ }),
|
|
2790
|
-
/*
|
|
2791
|
-
/*
|
|
2700
|
+
/* 81 */,
|
|
2701
|
+
/* 82 */
|
|
2792
2702
|
/***/ (function(module, exports) {
|
|
2793
2703
|
|
|
2794
2704
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
2795
2705
|
|
|
2796
2706
|
/***/ }),
|
|
2707
|
+
/* 83 */,
|
|
2708
|
+
/* 84 */,
|
|
2709
|
+
/* 85 */,
|
|
2797
2710
|
/* 86 */,
|
|
2798
2711
|
/* 87 */,
|
|
2799
2712
|
/* 88 */,
|
|
2800
2713
|
/* 89 */,
|
|
2801
2714
|
/* 90 */,
|
|
2802
|
-
/* 91
|
|
2803
|
-
/* 92 */,
|
|
2804
|
-
/* 93 */,
|
|
2805
|
-
/* 94 */
|
|
2715
|
+
/* 91 */
|
|
2806
2716
|
/***/ (function(module, exports) {
|
|
2807
2717
|
|
|
2808
2718
|
module.exports = require("@babel/runtime/helpers/inherits");
|
|
2809
2719
|
|
|
2810
2720
|
/***/ }),
|
|
2811
|
-
/*
|
|
2721
|
+
/* 92 */
|
|
2812
2722
|
/***/ (function(module, exports) {
|
|
2813
2723
|
|
|
2814
2724
|
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
2815
2725
|
|
|
2816
2726
|
/***/ }),
|
|
2817
|
-
/*
|
|
2727
|
+
/* 93 */
|
|
2818
2728
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2819
2729
|
|
|
2820
2730
|
"use strict";
|
|
@@ -2838,6 +2748,9 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
2838
2748
|
/* harmony default export */ __webpack_exports__["default"] = (VizStyleWrapper);
|
|
2839
2749
|
|
|
2840
2750
|
/***/ }),
|
|
2751
|
+
/* 94 */,
|
|
2752
|
+
/* 95 */,
|
|
2753
|
+
/* 96 */,
|
|
2841
2754
|
/* 97 */,
|
|
2842
2755
|
/* 98 */,
|
|
2843
2756
|
/* 99 */,
|
|
@@ -2852,22 +2765,19 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
2852
2765
|
/* 108 */,
|
|
2853
2766
|
/* 109 */,
|
|
2854
2767
|
/* 110 */,
|
|
2855
|
-
/* 111
|
|
2856
|
-
/* 112 */,
|
|
2857
|
-
/* 113 */,
|
|
2858
|
-
/* 114 */
|
|
2768
|
+
/* 111 */
|
|
2859
2769
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2860
2770
|
|
|
2861
2771
|
"use strict";
|
|
2862
2772
|
__webpack_require__.r(__webpack_exports__);
|
|
2863
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2773
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
2864
2774
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2865
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
2775
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
2866
2776
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2867
2777
|
|
|
2868
2778
|
|
|
2869
2779
|
var StaticBackgroundColorEditor = {
|
|
2870
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background'),
|
|
2780
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background color'),
|
|
2871
2781
|
option: 'backgroundColor',
|
|
2872
2782
|
editor: 'editor.color',
|
|
2873
2783
|
showEditor: function showEditor(_ref) {
|
|
@@ -2878,6 +2788,9 @@ var StaticBackgroundColorEditor = {
|
|
|
2878
2788
|
/* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
|
|
2879
2789
|
|
|
2880
2790
|
/***/ }),
|
|
2791
|
+
/* 112 */,
|
|
2792
|
+
/* 113 */,
|
|
2793
|
+
/* 114 */,
|
|
2881
2794
|
/* 115 */,
|
|
2882
2795
|
/* 116 */,
|
|
2883
2796
|
/* 117 */,
|
|
@@ -2927,26 +2840,21 @@ var StaticBackgroundColorEditor = {
|
|
|
2927
2840
|
/* 161 */,
|
|
2928
2841
|
/* 162 */,
|
|
2929
2842
|
/* 163 */,
|
|
2930
|
-
/* 164
|
|
2931
|
-
/* 165 */,
|
|
2932
|
-
/* 166 */,
|
|
2933
|
-
/* 167 */,
|
|
2934
|
-
/* 168 */,
|
|
2935
|
-
/* 169 */
|
|
2843
|
+
/* 164 */
|
|
2936
2844
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2937
2845
|
|
|
2938
2846
|
"use strict";
|
|
2939
2847
|
|
|
2940
2848
|
|
|
2941
|
-
var _classCallCheck = __webpack_require__(
|
|
2849
|
+
var _classCallCheck = __webpack_require__(8);
|
|
2942
2850
|
|
|
2943
|
-
var _createClass = __webpack_require__(
|
|
2851
|
+
var _createClass = __webpack_require__(24);
|
|
2944
2852
|
|
|
2945
|
-
var _inherits = __webpack_require__(
|
|
2853
|
+
var _inherits = __webpack_require__(91);
|
|
2946
2854
|
|
|
2947
|
-
var _possibleConstructorReturn = __webpack_require__(
|
|
2855
|
+
var _possibleConstructorReturn = __webpack_require__(92);
|
|
2948
2856
|
|
|
2949
|
-
var _getPrototypeOf = __webpack_require__(
|
|
2857
|
+
var _getPrototypeOf = __webpack_require__(82);
|
|
2950
2858
|
|
|
2951
2859
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2952
2860
|
|
|
@@ -2956,11 +2864,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2956
2864
|
value: true
|
|
2957
2865
|
});
|
|
2958
2866
|
|
|
2959
|
-
var React = __webpack_require__(
|
|
2867
|
+
var React = __webpack_require__(1);
|
|
2960
2868
|
|
|
2961
|
-
var lodash_1 = __webpack_require__(
|
|
2869
|
+
var lodash_1 = __webpack_require__(2);
|
|
2962
2870
|
|
|
2963
|
-
var SvgMutator_1 = __webpack_require__(
|
|
2871
|
+
var SvgMutator_1 = __webpack_require__(207);
|
|
2964
2872
|
/**
|
|
2965
2873
|
* This react component simply take an SVG document, and mutates it by applying data to the document according to
|
|
2966
2874
|
* dataBindings. The data (data prop) is processed by performing the mutation once for each 'row' of the data even though the data is formatted as columns.
|
|
@@ -3047,6 +2955,7 @@ var SvgChoroplethDynamic = /*#__PURE__*/function (_React$Component) {
|
|
|
3047
2955
|
renderCT: Date.now()
|
|
3048
2956
|
});
|
|
3049
2957
|
} catch (e) {
|
|
2958
|
+
// eslint-disable-next-line no-console
|
|
3050
2959
|
console.error(e);
|
|
3051
2960
|
}
|
|
3052
2961
|
}
|
|
@@ -3065,6 +2974,7 @@ var SvgChoroplethDynamic = /*#__PURE__*/function (_React$Component) {
|
|
|
3065
2974
|
|
|
3066
2975
|
if (svgNode) {
|
|
3067
2976
|
return React.createElement("div", {
|
|
2977
|
+
"data-test": "svgChoroplethDynamic",
|
|
3068
2978
|
style: {
|
|
3069
2979
|
width: width,
|
|
3070
2980
|
height: height
|
|
@@ -3087,6 +2997,11 @@ SvgChoroplethDynamic.defaultProps = {
|
|
|
3087
2997
|
};
|
|
3088
2998
|
|
|
3089
2999
|
/***/ }),
|
|
3000
|
+
/* 165 */,
|
|
3001
|
+
/* 166 */,
|
|
3002
|
+
/* 167 */,
|
|
3003
|
+
/* 168 */,
|
|
3004
|
+
/* 169 */,
|
|
3090
3005
|
/* 170 */,
|
|
3091
3006
|
/* 171 */,
|
|
3092
3007
|
/* 172 */,
|
|
@@ -3119,13 +3034,7 @@ SvgChoroplethDynamic.defaultProps = {
|
|
|
3119
3034
|
/* 199 */,
|
|
3120
3035
|
/* 200 */,
|
|
3121
3036
|
/* 201 */,
|
|
3122
|
-
/* 202
|
|
3123
|
-
/* 203 */,
|
|
3124
|
-
/* 204 */,
|
|
3125
|
-
/* 205 */,
|
|
3126
|
-
/* 206 */,
|
|
3127
|
-
/* 207 */,
|
|
3128
|
-
/* 208 */
|
|
3037
|
+
/* 202 */
|
|
3129
3038
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3130
3039
|
|
|
3131
3040
|
"use strict";
|
|
@@ -3149,33 +3058,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3149
3058
|
});
|
|
3150
3059
|
exports.useIconPlaceholder = exports.createProtocolHandlers = exports.PureSvgChoroplethDynamic = exports.PureChoroplethSvg = exports.config = void 0;
|
|
3151
3060
|
|
|
3152
|
-
var React = __webpack_require__(
|
|
3061
|
+
var React = __webpack_require__(1);
|
|
3153
3062
|
|
|
3154
|
-
var T = __webpack_require__(
|
|
3063
|
+
var T = __webpack_require__(0);
|
|
3155
3064
|
|
|
3156
|
-
var lodash_1 = __webpack_require__(
|
|
3065
|
+
var lodash_1 = __webpack_require__(2);
|
|
3157
3066
|
|
|
3158
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
3067
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
3159
3068
|
|
|
3160
|
-
var ImageContext_1 = __webpack_require__(
|
|
3069
|
+
var ImageContext_1 = __webpack_require__(203);
|
|
3161
3070
|
|
|
3162
|
-
var FileDownloader_1 = __webpack_require__(
|
|
3071
|
+
var FileDownloader_1 = __webpack_require__(204);
|
|
3163
3072
|
|
|
3164
|
-
var Downloader_1 = __webpack_require__(
|
|
3073
|
+
var Downloader_1 = __webpack_require__(205);
|
|
3165
3074
|
|
|
3166
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3075
|
+
var withDashboardViz_1 = __webpack_require__(54);
|
|
3167
3076
|
|
|
3168
|
-
var PureChoroplethSvg_1 = __webpack_require__(
|
|
3077
|
+
var PureChoroplethSvg_1 = __webpack_require__(206);
|
|
3169
3078
|
|
|
3170
|
-
var SvgChoroplethDynamic_1 = __webpack_require__(
|
|
3079
|
+
var SvgChoroplethDynamic_1 = __webpack_require__(164);
|
|
3171
3080
|
|
|
3172
|
-
var config_1 = __webpack_require__(
|
|
3081
|
+
var config_1 = __webpack_require__(211);
|
|
3173
3082
|
|
|
3174
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
3083
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
3175
3084
|
|
|
3176
|
-
var urlUtils_1 = __webpack_require__(
|
|
3085
|
+
var urlUtils_1 = __webpack_require__(212);
|
|
3177
3086
|
|
|
3178
|
-
var ErrorMessage_1 = __webpack_require__(
|
|
3087
|
+
var ErrorMessage_1 = __webpack_require__(213);
|
|
3179
3088
|
|
|
3180
3089
|
exports.config = config_1.default;
|
|
3181
3090
|
exports.PureChoroplethSvg = PureChoroplethSvg_1.default; // todo: need remove when deleting @splunk/react-visualizations package
|
|
@@ -3281,31 +3190,31 @@ var platformViz = (0, withDashboardViz_1.default)({
|
|
|
3281
3190
|
exports.default = platformViz;
|
|
3282
3191
|
|
|
3283
3192
|
/***/ }),
|
|
3284
|
-
/*
|
|
3193
|
+
/* 203 */
|
|
3285
3194
|
/***/ (function(module, exports) {
|
|
3286
3195
|
|
|
3287
3196
|
module.exports = require("@splunk/visualization-context/ImageContext");
|
|
3288
3197
|
|
|
3289
3198
|
/***/ }),
|
|
3290
|
-
/*
|
|
3199
|
+
/* 204 */
|
|
3291
3200
|
/***/ (function(module, exports) {
|
|
3292
3201
|
|
|
3293
3202
|
module.exports = require("@splunk/visualizations-shared/FileDownloader");
|
|
3294
3203
|
|
|
3295
3204
|
/***/ }),
|
|
3296
|
-
/*
|
|
3205
|
+
/* 205 */
|
|
3297
3206
|
/***/ (function(module, exports) {
|
|
3298
3207
|
|
|
3299
3208
|
module.exports = require("@splunk/visualizations-shared/Downloader");
|
|
3300
3209
|
|
|
3301
3210
|
/***/ }),
|
|
3302
|
-
/*
|
|
3211
|
+
/* 206 */
|
|
3303
3212
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3304
3213
|
|
|
3305
3214
|
"use strict";
|
|
3306
3215
|
|
|
3307
3216
|
|
|
3308
|
-
var _slicedToArray = __webpack_require__(
|
|
3217
|
+
var _slicedToArray = __webpack_require__(5);
|
|
3309
3218
|
|
|
3310
3219
|
var __rest = this && this.__rest || function (s, e) {
|
|
3311
3220
|
var t = {};
|
|
@@ -3325,29 +3234,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3325
3234
|
});
|
|
3326
3235
|
exports.computeSvgDynamicProps = void 0;
|
|
3327
3236
|
|
|
3328
|
-
var React = __webpack_require__(
|
|
3237
|
+
var React = __webpack_require__(1);
|
|
3329
3238
|
|
|
3330
3239
|
var styled_components_1 = __webpack_require__(4);
|
|
3331
3240
|
|
|
3332
|
-
var lodash_1 = __webpack_require__(
|
|
3241
|
+
var lodash_1 = __webpack_require__(2);
|
|
3333
3242
|
|
|
3334
3243
|
var style_1 = __webpack_require__(18);
|
|
3335
3244
|
|
|
3336
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
3245
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
3337
3246
|
|
|
3338
|
-
var SvgChoroplethDynamic_1 = __webpack_require__(
|
|
3247
|
+
var SvgChoroplethDynamic_1 = __webpack_require__(164);
|
|
3339
3248
|
|
|
3340
|
-
var VizStyleWrapper_1 = __webpack_require__(
|
|
3249
|
+
var VizStyleWrapper_1 = __webpack_require__(93);
|
|
3341
3250
|
|
|
3342
3251
|
var Container = styled_components_1.default.div.withConfig({
|
|
3343
3252
|
displayName: "PureChoroplethSvg__Container",
|
|
3344
|
-
componentId: "m24jrf-0"
|
|
3253
|
+
componentId: "sc-m24jrf-0"
|
|
3345
3254
|
})(["position:relative;flex-direction:column;flex:1;display:flex;", ";"], function (props) {
|
|
3346
3255
|
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
3347
3256
|
});
|
|
3348
3257
|
var ChoroplethSvgWrapper = styled_components_1.default.div.withConfig({
|
|
3349
3258
|
displayName: "PureChoroplethSvg__ChoroplethSvgWrapper",
|
|
3350
|
-
componentId: "m24jrf-1"
|
|
3259
|
+
componentId: "sc-m24jrf-1"
|
|
3351
3260
|
})(["min-height:0px;flex:1;position:relative;"]);
|
|
3352
3261
|
|
|
3353
3262
|
var computeSvgDynamicProps = function computeSvgDynamicProps(_a) {
|
|
@@ -3425,15 +3334,15 @@ PureChoroplethSvg.defaultProps = {
|
|
|
3425
3334
|
exports.default = (0, styled_components_1.withTheme)(PureChoroplethSvg);
|
|
3426
3335
|
|
|
3427
3336
|
/***/ }),
|
|
3428
|
-
/*
|
|
3337
|
+
/* 207 */
|
|
3429
3338
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3430
3339
|
|
|
3431
3340
|
"use strict";
|
|
3432
3341
|
|
|
3433
3342
|
|
|
3434
|
-
var _classCallCheck = __webpack_require__(
|
|
3343
|
+
var _classCallCheck = __webpack_require__(8);
|
|
3435
3344
|
|
|
3436
|
-
var _createClass = __webpack_require__(
|
|
3345
|
+
var _createClass = __webpack_require__(24);
|
|
3437
3346
|
|
|
3438
3347
|
Object.defineProperty(exports, "__esModule", {
|
|
3439
3348
|
value: true
|
|
@@ -3441,13 +3350,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3441
3350
|
exports.SvgMutator = exports.ERROR_NON_ATTRIBUTE_MUTATION = void 0;
|
|
3442
3351
|
/* eslint-disable no-param-reassign */
|
|
3443
3352
|
|
|
3444
|
-
var React = __webpack_require__(
|
|
3353
|
+
var React = __webpack_require__(1);
|
|
3445
3354
|
|
|
3446
|
-
var XPath = __webpack_require__(
|
|
3355
|
+
var XPath = __webpack_require__(208);
|
|
3447
3356
|
|
|
3448
|
-
var xmldom_1 = __webpack_require__(
|
|
3357
|
+
var xmldom_1 = __webpack_require__(209);
|
|
3449
3358
|
|
|
3450
|
-
var jexl = __webpack_require__(
|
|
3359
|
+
var jexl = __webpack_require__(210);
|
|
3451
3360
|
/**
|
|
3452
3361
|
* An error message indicating that a mutation has attempted to target anything other than SVG attribute(s)
|
|
3453
3362
|
* @type {string}
|
|
@@ -3854,25 +3763,25 @@ exports.SvgMutator = SvgMutator;
|
|
|
3854
3763
|
SvgMutator.serializer = new xmldom_1.XMLSerializer();
|
|
3855
3764
|
|
|
3856
3765
|
/***/ }),
|
|
3857
|
-
/*
|
|
3766
|
+
/* 208 */
|
|
3858
3767
|
/***/ (function(module, exports) {
|
|
3859
3768
|
|
|
3860
3769
|
module.exports = require("xpath");
|
|
3861
3770
|
|
|
3862
3771
|
/***/ }),
|
|
3863
|
-
/*
|
|
3772
|
+
/* 209 */
|
|
3864
3773
|
/***/ (function(module, exports) {
|
|
3865
3774
|
|
|
3866
3775
|
module.exports = require("@xmldom/xmldom");
|
|
3867
3776
|
|
|
3868
3777
|
/***/ }),
|
|
3869
|
-
/*
|
|
3778
|
+
/* 210 */
|
|
3870
3779
|
/***/ (function(module, exports) {
|
|
3871
3780
|
|
|
3872
3781
|
module.exports = require("jexl");
|
|
3873
3782
|
|
|
3874
3783
|
/***/ }),
|
|
3875
|
-
/*
|
|
3784
|
+
/* 211 */
|
|
3876
3785
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3877
3786
|
|
|
3878
3787
|
"use strict";
|
|
@@ -3882,27 +3791,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3882
3791
|
value: true
|
|
3883
3792
|
});
|
|
3884
3793
|
|
|
3885
|
-
var i18n_1 = __webpack_require__(
|
|
3794
|
+
var i18n_1 = __webpack_require__(3);
|
|
3886
3795
|
|
|
3887
|
-
var pick_1 = __webpack_require__(
|
|
3796
|
+
var pick_1 = __webpack_require__(29);
|
|
3888
3797
|
|
|
3889
3798
|
var variables_1 = __webpack_require__(13);
|
|
3890
3799
|
|
|
3891
|
-
var
|
|
3800
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
3892
3801
|
|
|
3893
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
3802
|
+
var PresetPalettes_1 = __webpack_require__(80);
|
|
3894
3803
|
|
|
3895
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3804
|
+
var visualization_icons_1 = __webpack_require__(71);
|
|
3896
3805
|
|
|
3897
|
-
var placeholders_1 = __webpack_require__(
|
|
3806
|
+
var placeholders_1 = __webpack_require__(70);
|
|
3898
3807
|
|
|
3899
|
-
var VizBehavior_1 = __webpack_require__(
|
|
3808
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
3900
3809
|
|
|
3901
|
-
var configUtils_1 = __webpack_require__(
|
|
3810
|
+
var configUtils_1 = __webpack_require__(26);
|
|
3902
3811
|
|
|
3903
3812
|
var VizCategory_1 = __webpack_require__(22);
|
|
3904
3813
|
|
|
3905
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
3814
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(111);
|
|
3906
3815
|
|
|
3907
3816
|
var dataContract = {
|
|
3908
3817
|
requiredDataSources: [],
|
|
@@ -3949,43 +3858,6 @@ var defaultContext = {
|
|
|
3949
3858
|
value: '#5C33FF'
|
|
3950
3859
|
}]
|
|
3951
3860
|
};
|
|
3952
|
-
var optionsSchema = {
|
|
3953
|
-
areaColors: {
|
|
3954
|
-
default: '> areaValues|rangeValue(areaColorsRangeConfig)',
|
|
3955
|
-
description: 'Specify the dataSource field that should be used to set the svg fill attribute of identified areas.',
|
|
3956
|
-
type: 'array',
|
|
3957
|
-
items: {
|
|
3958
|
-
type: 'string',
|
|
3959
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
3960
|
-
}
|
|
3961
|
-
},
|
|
3962
|
-
areaIds: {
|
|
3963
|
-
default: '> primary|seriesByType("string")',
|
|
3964
|
-
description: 'Specify the dataSource field that should be used to identify each area in the Choropleth svg, where the area has been tagged with an id field.',
|
|
3965
|
-
type: 'array',
|
|
3966
|
-
items: {
|
|
3967
|
-
type: 'string'
|
|
3968
|
-
}
|
|
3969
|
-
},
|
|
3970
|
-
areaValues: {
|
|
3971
|
-
default: '> primary|seriesByType("number")',
|
|
3972
|
-
description: 'Specify the dataSource field that indicates the values for the areas.',
|
|
3973
|
-
type: 'array',
|
|
3974
|
-
items: {
|
|
3975
|
-
type: 'number'
|
|
3976
|
-
}
|
|
3977
|
-
},
|
|
3978
|
-
backgroundColor: {
|
|
3979
|
-
default: '> themes.defaultBackgroundColor',
|
|
3980
|
-
description: 'the background color behind the SVG, title, and description.',
|
|
3981
|
-
type: 'string',
|
|
3982
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
3983
|
-
},
|
|
3984
|
-
svg: {
|
|
3985
|
-
description: 'Literal svg, or svg data URI.',
|
|
3986
|
-
type: 'string'
|
|
3987
|
-
}
|
|
3988
|
-
};
|
|
3989
3861
|
var themes = {
|
|
3990
3862
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
3991
3863
|
return (0, pick_1.default)({
|
|
@@ -4087,7 +3959,7 @@ var config = {
|
|
|
4087
3959
|
dataContract: dataContract,
|
|
4088
3960
|
size: size,
|
|
4089
3961
|
defaultContext: defaultContext,
|
|
4090
|
-
optionsSchema:
|
|
3962
|
+
optionsSchema: visualization_schemas_1.choroplethSvgOptionsSchema,
|
|
4091
3963
|
requiredProps: ['svg'],
|
|
4092
3964
|
editorConfig: editorConfig,
|
|
4093
3965
|
events: {
|
|
@@ -4102,7 +3974,7 @@ var config = {
|
|
|
4102
3974
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
4103
3975
|
|
|
4104
3976
|
/***/ }),
|
|
4105
|
-
/*
|
|
3977
|
+
/* 212 */
|
|
4106
3978
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4107
3979
|
|
|
4108
3980
|
"use strict";
|
|
@@ -4125,7 +3997,7 @@ var isValidUrl = function isValidUrl(value) {
|
|
|
4125
3997
|
exports.isValidUrl = isValidUrl;
|
|
4126
3998
|
|
|
4127
3999
|
/***/ }),
|
|
4128
|
-
/*
|
|
4000
|
+
/* 213 */
|
|
4129
4001
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4130
4002
|
|
|
4131
4003
|
"use strict";
|
|
@@ -4148,11 +4020,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4148
4020
|
value: true
|
|
4149
4021
|
});
|
|
4150
4022
|
|
|
4151
|
-
var React = __webpack_require__(
|
|
4023
|
+
var React = __webpack_require__(1);
|
|
4152
4024
|
|
|
4153
4025
|
var styled_components_1 = __webpack_require__(4);
|
|
4154
4026
|
|
|
4155
|
-
var visualization_icons_1 = __webpack_require__(
|
|
4027
|
+
var visualization_icons_1 = __webpack_require__(71);
|
|
4156
4028
|
|
|
4157
4029
|
var Container = styled_components_1.default.div.withConfig({
|
|
4158
4030
|
displayName: "ErrorMessage__Container",
|