@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/FillerGauge.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 = 231);
|
|
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,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";
|
|
1539
1459
|
|
|
1540
|
-
|
|
1460
|
+
|
|
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);
|
|
2536
2437
|
|
|
2537
|
-
var useGetXAndYFields_1 = __webpack_require__(
|
|
2438
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
2439
|
+
|
|
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,38 +2663,32 @@ 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
|
-
/*
|
|
2672
|
+
/* 68 */
|
|
2762
2673
|
/***/ (function(module, exports) {
|
|
2763
2674
|
|
|
2764
2675
|
module.exports = require("@babel/runtime/helpers/extends");
|
|
2765
2676
|
|
|
2766
2677
|
/***/ }),
|
|
2767
|
-
/*
|
|
2678
|
+
/* 69 */
|
|
2768
2679
|
/***/ (function(module, exports) {
|
|
2769
2680
|
|
|
2770
2681
|
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
2771
2682
|
|
|
2772
2683
|
/***/ }),
|
|
2773
|
-
/*
|
|
2684
|
+
/* 70 */
|
|
2774
2685
|
/***/ (function(module, exports) {
|
|
2775
2686
|
|
|
2776
2687
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
2777
2688
|
|
|
2778
2689
|
/***/ }),
|
|
2779
|
-
/*
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
module.exports = require("@splunk/visualization-color-palettes");
|
|
2783
|
-
|
|
2784
|
-
/***/ }),
|
|
2785
|
-
/* 74 */,
|
|
2786
|
-
/* 75 */
|
|
2690
|
+
/* 71 */,
|
|
2691
|
+
/* 72 */
|
|
2787
2692
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2788
2693
|
|
|
2789
2694
|
"use strict";
|
|
@@ -2793,14 +2698,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2793
2698
|
value: true
|
|
2794
2699
|
});
|
|
2795
2700
|
|
|
2796
|
-
var i18n_1 = __webpack_require__(
|
|
2701
|
+
var i18n_1 = __webpack_require__(3);
|
|
2797
2702
|
|
|
2798
2703
|
var background = function background(_ref) {
|
|
2799
2704
|
var label = _ref.label,
|
|
2800
2705
|
themes = _ref.themes,
|
|
2801
2706
|
labelPosition = _ref.labelPosition;
|
|
2802
2707
|
return [{
|
|
2803
|
-
label: (0, i18n_1._)(label || 'Background'),
|
|
2708
|
+
label: (0, i18n_1._)(label || 'Background color'),
|
|
2804
2709
|
option: 'backgroundColor',
|
|
2805
2710
|
editor: 'editor.color',
|
|
2806
2711
|
editorProps: {
|
|
@@ -2813,19 +2718,27 @@ var background = function background(_ref) {
|
|
|
2813
2718
|
exports.default = background;
|
|
2814
2719
|
|
|
2815
2720
|
/***/ }),
|
|
2721
|
+
/* 73 */,
|
|
2722
|
+
/* 74 */
|
|
2723
|
+
/***/ (function(module, exports) {
|
|
2724
|
+
|
|
2725
|
+
module.exports = require("@splunk/visualization-color-palettes");
|
|
2726
|
+
|
|
2727
|
+
/***/ }),
|
|
2728
|
+
/* 75 */,
|
|
2816
2729
|
/* 76 */,
|
|
2817
2730
|
/* 77 */,
|
|
2818
2731
|
/* 78 */,
|
|
2819
2732
|
/* 79 */,
|
|
2820
|
-
/* 80
|
|
2821
|
-
/* 81 */,
|
|
2822
|
-
/* 82 */,
|
|
2823
|
-
/* 83 */
|
|
2733
|
+
/* 80 */
|
|
2824
2734
|
/***/ (function(module, exports) {
|
|
2825
2735
|
|
|
2826
2736
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
2827
2737
|
|
|
2828
2738
|
/***/ }),
|
|
2739
|
+
/* 81 */,
|
|
2740
|
+
/* 82 */,
|
|
2741
|
+
/* 83 */,
|
|
2829
2742
|
/* 84 */,
|
|
2830
2743
|
/* 85 */,
|
|
2831
2744
|
/* 86 */,
|
|
@@ -2860,27 +2773,24 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
|
|
|
2860
2773
|
/* 115 */,
|
|
2861
2774
|
/* 116 */,
|
|
2862
2775
|
/* 117 */,
|
|
2863
|
-
/* 118
|
|
2864
|
-
/* 119 */,
|
|
2865
|
-
/* 120 */,
|
|
2866
|
-
/* 121 */
|
|
2776
|
+
/* 118 */
|
|
2867
2777
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2868
2778
|
|
|
2869
2779
|
"use strict";
|
|
2870
2780
|
|
|
2871
2781
|
|
|
2872
|
-
var _toConsumableArray = __webpack_require__(
|
|
2782
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
2873
2783
|
|
|
2874
2784
|
Object.defineProperty(exports, "__esModule", {
|
|
2875
2785
|
value: true
|
|
2876
2786
|
});
|
|
2877
2787
|
exports.convertToGaugeProperties = exports.mapValueLabelDisplay = exports.mapToOldKey = exports.getGradientDimensions = exports.getGradientStops = exports.getGradientStopColors = exports.getGradientStopOffsets = exports.getGaugeRange = exports.validateRanges = exports.getSortedRanges = exports.getMarkerGaugeValueMarkerPositions = exports.getMarkerBarDimensions = exports.getFillerGaugeValueMarkerPositions = exports.getFillBarDimensions = exports.getGaugeBarHeight = exports.getGaugeBarWidth = exports.getGaugeBarStartPositions = exports.getGaugeBarLength = exports.assignGaugeColor = exports.getGaugeDimensions = exports.getGaugeStartPosition = exports.getGaugeLength = exports.getGaugeHeight = exports.getGaugeWidth = exports.FILL_THICKNESS = exports.GAUGE_THICKNESS = void 0;
|
|
2878
2788
|
|
|
2879
|
-
var lodash_1 = __webpack_require__(
|
|
2789
|
+
var lodash_1 = __webpack_require__(2);
|
|
2880
2790
|
|
|
2881
|
-
var colorConstants_1 = __webpack_require__(
|
|
2791
|
+
var colorConstants_1 = __webpack_require__(69);
|
|
2882
2792
|
|
|
2883
|
-
var i18n_1 = __webpack_require__(
|
|
2793
|
+
var i18n_1 = __webpack_require__(3);
|
|
2884
2794
|
|
|
2885
2795
|
exports.GAUGE_THICKNESS = 50;
|
|
2886
2796
|
exports.FILL_THICKNESS = 38;
|
|
@@ -3631,6 +3541,9 @@ var convertToGaugeProperties = function convertToGaugeProperties(originalOptions
|
|
|
3631
3541
|
exports.convertToGaugeProperties = convertToGaugeProperties;
|
|
3632
3542
|
|
|
3633
3543
|
/***/ }),
|
|
3544
|
+
/* 119 */,
|
|
3545
|
+
/* 120 */,
|
|
3546
|
+
/* 121 */,
|
|
3634
3547
|
/* 122 */,
|
|
3635
3548
|
/* 123 */,
|
|
3636
3549
|
/* 124 */,
|
|
@@ -3654,10 +3567,7 @@ exports.convertToGaugeProperties = convertToGaugeProperties;
|
|
|
3654
3567
|
/* 142 */,
|
|
3655
3568
|
/* 143 */,
|
|
3656
3569
|
/* 144 */,
|
|
3657
|
-
/* 145
|
|
3658
|
-
/* 146 */,
|
|
3659
|
-
/* 147 */,
|
|
3660
|
-
/* 148 */
|
|
3570
|
+
/* 145 */
|
|
3661
3571
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3662
3572
|
|
|
3663
3573
|
"use strict";
|
|
@@ -3667,7 +3577,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3667
3577
|
value: true
|
|
3668
3578
|
});
|
|
3669
3579
|
|
|
3670
|
-
var i18n_1 = __webpack_require__(
|
|
3580
|
+
var i18n_1 = __webpack_require__(3);
|
|
3671
3581
|
|
|
3672
3582
|
var gauge = {
|
|
3673
3583
|
label: (0, i18n_1._)('Data display'),
|
|
@@ -3721,22 +3631,22 @@ var gauge = {
|
|
|
3721
3631
|
exports.default = gauge;
|
|
3722
3632
|
|
|
3723
3633
|
/***/ }),
|
|
3724
|
-
/*
|
|
3634
|
+
/* 146 */
|
|
3725
3635
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3726
3636
|
|
|
3727
3637
|
"use strict";
|
|
3728
3638
|
__webpack_require__.r(__webpack_exports__);
|
|
3729
3639
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MajorTick", function() { return MajorTick; });
|
|
3730
3640
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionMajorTick", function() { return positionMajorTick; });
|
|
3731
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3641
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68);
|
|
3732
3642
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
3733
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3643
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
3734
3644
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3735
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
3645
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
|
3736
3646
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
3737
3647
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
|
|
3738
3648
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
|
3739
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
3649
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10);
|
|
3740
3650
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
3741
3651
|
|
|
3742
3652
|
|
|
@@ -3748,7 +3658,7 @@ var TICK_LENGTH_DELTA = 5;
|
|
|
3748
3658
|
var TICK_LABEL_PADDING_FACTOR = 3.2;
|
|
3749
3659
|
var MajorTickLine = styled_components__WEBPACK_IMPORTED_MODULE_3___default.a.line.withConfig({
|
|
3750
3660
|
displayName: "GaugeMajorTicks__MajorTickLine",
|
|
3751
|
-
componentId: "mchiad-0"
|
|
3661
|
+
componentId: "sc-mchiad-0"
|
|
3752
3662
|
})(["stroke:", ";stroke-width:2px;stroke-dasharray:", ";"], function (props) {
|
|
3753
3663
|
return props.majorTickStrokeColor;
|
|
3754
3664
|
}, function (props) {
|
|
@@ -3756,7 +3666,7 @@ var MajorTickLine = styled_components__WEBPACK_IMPORTED_MODULE_3___default.a.lin
|
|
|
3756
3666
|
});
|
|
3757
3667
|
var MajorTickLabel = styled_components__WEBPACK_IMPORTED_MODULE_3___default.a.text.withConfig({
|
|
3758
3668
|
displayName: "GaugeMajorTicks__MajorTickLabel",
|
|
3759
|
-
componentId: "mchiad-1"
|
|
3669
|
+
componentId: "sc-mchiad-1"
|
|
3760
3670
|
})(["font-size:12px;font-family:Splunk Platform Sans,sans-serif;line-height:19px;fill:", ";text-anchor:middle;text-align:center;"], function (props) {
|
|
3761
3671
|
return props.majorTickFillColor;
|
|
3762
3672
|
});
|
|
@@ -3977,22 +3887,22 @@ MajorTicks.defaultProps = {
|
|
|
3977
3887
|
/* harmony default export */ __webpack_exports__["default"] = (MajorTicks);
|
|
3978
3888
|
|
|
3979
3889
|
/***/ }),
|
|
3980
|
-
/*
|
|
3890
|
+
/* 147 */
|
|
3981
3891
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3982
3892
|
|
|
3983
3893
|
"use strict";
|
|
3984
3894
|
__webpack_require__.r(__webpack_exports__);
|
|
3985
3895
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionValueMarkerRect", function() { return positionValueMarkerRect; });
|
|
3986
3896
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionLabel", function() { return positionLabel; });
|
|
3987
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3897
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68);
|
|
3988
3898
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
3989
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3899
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
3990
3900
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3991
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
3901
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
|
3992
3902
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
3993
3903
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
|
|
3994
3904
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
|
3995
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
3905
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10);
|
|
3996
3906
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
3997
3907
|
|
|
3998
3908
|
|
|
@@ -4188,6 +4098,9 @@ ValueMarker.defaultProps = {
|
|
|
4188
4098
|
/* harmony default export */ __webpack_exports__["default"] = (ValueMarker);
|
|
4189
4099
|
|
|
4190
4100
|
/***/ }),
|
|
4101
|
+
/* 148 */,
|
|
4102
|
+
/* 149 */,
|
|
4103
|
+
/* 150 */,
|
|
4191
4104
|
/* 151 */,
|
|
4192
4105
|
/* 152 */,
|
|
4193
4106
|
/* 153 */,
|
|
@@ -4268,13 +4181,7 @@ ValueMarker.defaultProps = {
|
|
|
4268
4181
|
/* 228 */,
|
|
4269
4182
|
/* 229 */,
|
|
4270
4183
|
/* 230 */,
|
|
4271
|
-
/* 231
|
|
4272
|
-
/* 232 */,
|
|
4273
|
-
/* 233 */,
|
|
4274
|
-
/* 234 */,
|
|
4275
|
-
/* 235 */,
|
|
4276
|
-
/* 236 */,
|
|
4277
|
-
/* 237 */
|
|
4184
|
+
/* 231 */
|
|
4278
4185
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4279
4186
|
|
|
4280
4187
|
"use strict";
|
|
@@ -4298,15 +4205,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4298
4205
|
});
|
|
4299
4206
|
exports.themes = exports.computeVizProps = exports.PureFillerGauge = exports.config = void 0;
|
|
4300
4207
|
|
|
4301
|
-
var lodash_1 = __webpack_require__(
|
|
4208
|
+
var lodash_1 = __webpack_require__(2);
|
|
4302
4209
|
|
|
4303
|
-
var config_1 = __webpack_require__(
|
|
4210
|
+
var config_1 = __webpack_require__(232);
|
|
4304
4211
|
|
|
4305
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
4212
|
+
var withDashboardViz_1 = __webpack_require__(54);
|
|
4306
4213
|
|
|
4307
|
-
var FillerGauge_1 = __webpack_require__(
|
|
4214
|
+
var FillerGauge_1 = __webpack_require__(236);
|
|
4308
4215
|
|
|
4309
|
-
var gaugeUtils_1 = __webpack_require__(
|
|
4216
|
+
var gaugeUtils_1 = __webpack_require__(118);
|
|
4310
4217
|
|
|
4311
4218
|
exports.config = config_1.default;
|
|
4312
4219
|
exports.PureFillerGauge = FillerGauge_1.default;
|
|
@@ -4336,7 +4243,7 @@ exports.themes = config_1.default.themes;
|
|
|
4336
4243
|
exports.default = viz;
|
|
4337
4244
|
|
|
4338
4245
|
/***/ }),
|
|
4339
|
-
/*
|
|
4246
|
+
/* 232 */
|
|
4340
4247
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4341
4248
|
|
|
4342
4249
|
"use strict";
|
|
@@ -4346,35 +4253,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4346
4253
|
value: true
|
|
4347
4254
|
});
|
|
4348
4255
|
|
|
4349
|
-
var i18n_1 = __webpack_require__(
|
|
4256
|
+
var i18n_1 = __webpack_require__(3);
|
|
4350
4257
|
|
|
4351
|
-
var
|
|
4258
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
4352
4259
|
|
|
4353
|
-
var pick_1 = __webpack_require__(
|
|
4260
|
+
var pick_1 = __webpack_require__(29);
|
|
4354
4261
|
|
|
4355
4262
|
var variables_1 = __webpack_require__(13);
|
|
4356
4263
|
|
|
4357
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
4264
|
+
var visualization_color_palettes_1 = __webpack_require__(74);
|
|
4358
4265
|
|
|
4359
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
4266
|
+
var PresetPalettes_1 = __webpack_require__(80);
|
|
4360
4267
|
|
|
4361
|
-
var GaugeFiller_1 = __webpack_require__(
|
|
4268
|
+
var GaugeFiller_1 = __webpack_require__(233);
|
|
4362
4269
|
|
|
4363
|
-
var placeholders_1 = __webpack_require__(
|
|
4270
|
+
var placeholders_1 = __webpack_require__(70);
|
|
4364
4271
|
|
|
4365
|
-
var VizBehavior_1 = __webpack_require__(
|
|
4272
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
4366
4273
|
|
|
4367
4274
|
var VizCategory_1 = __webpack_require__(22);
|
|
4368
4275
|
|
|
4369
|
-
var configUtils_1 = __webpack_require__(
|
|
4276
|
+
var configUtils_1 = __webpack_require__(26);
|
|
4370
4277
|
|
|
4371
|
-
var Gauge_1 = __webpack_require__(
|
|
4278
|
+
var Gauge_1 = __webpack_require__(145);
|
|
4372
4279
|
|
|
4373
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
4280
|
+
var BackgroundColor_1 = __webpack_require__(72);
|
|
4374
4281
|
|
|
4375
|
-
var DynamicGaugeColorEditor_1 = __webpack_require__(
|
|
4282
|
+
var DynamicGaugeColorEditor_1 = __webpack_require__(234);
|
|
4376
4283
|
|
|
4377
|
-
var StaticGaugeColorEditor_1 = __webpack_require__(
|
|
4284
|
+
var StaticGaugeColorEditor_1 = __webpack_require__(235);
|
|
4378
4285
|
|
|
4379
4286
|
var dataContract = {
|
|
4380
4287
|
requiredDataSources: [{
|
|
@@ -4414,47 +4321,6 @@ var defaultContext = {
|
|
|
4414
4321
|
value: '#D41F1F'
|
|
4415
4322
|
}]
|
|
4416
4323
|
};
|
|
4417
|
-
var optionsSchema = {
|
|
4418
|
-
backgroundColor: {
|
|
4419
|
-
default: '> themes.defaultBackgroundColor',
|
|
4420
|
-
description: 'Specify the color used for the background. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
4421
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
4422
|
-
type: 'string'
|
|
4423
|
-
},
|
|
4424
|
-
gaugeColor: {
|
|
4425
|
-
default: visualization_color_palettes_1.CATEGORICAL[0],
|
|
4426
|
-
description: 'Specify the color for the gauge color of the filler gauge. You may use a dataSource to apply the color. The hex value format should be "#FFFFFF".',
|
|
4427
|
-
type: 'string'
|
|
4428
|
-
},
|
|
4429
|
-
labelDisplay: {
|
|
4430
|
-
default: 'number',
|
|
4431
|
-
description: 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',
|
|
4432
|
-
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
|
|
4433
|
-
type: 'string'
|
|
4434
|
-
},
|
|
4435
|
-
majorTickInterval: {
|
|
4436
|
-
description: 'Specify, in pixels, the spacing between major tick marks.',
|
|
4437
|
-
default: 'auto',
|
|
4438
|
-
type: ['string', 'number']
|
|
4439
|
-
},
|
|
4440
|
-
orientation: {
|
|
4441
|
-
default: 'vertical',
|
|
4442
|
-
description: 'Specify the axis orientation of the gauge.',
|
|
4443
|
-
pattern: (0, schemaUtils_1.getPattern)(['vertical', 'horizontal']),
|
|
4444
|
-
type: 'string'
|
|
4445
|
-
},
|
|
4446
|
-
value: {
|
|
4447
|
-
default: '> primary | seriesByType("number") | lastPoint()',
|
|
4448
|
-
description: 'Specify the dataSource applied to the value of the filler gauge.',
|
|
4449
|
-
type: 'number'
|
|
4450
|
-
},
|
|
4451
|
-
valueDisplay: {
|
|
4452
|
-
default: 'number',
|
|
4453
|
-
description: 'Specify whether to display the value as a number, percentage, or off.',
|
|
4454
|
-
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
|
|
4455
|
-
type: 'string'
|
|
4456
|
-
}
|
|
4457
|
-
};
|
|
4458
4324
|
var themes = {
|
|
4459
4325
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
4460
4326
|
return (0, pick_1.default)({
|
|
@@ -4613,7 +4479,7 @@ var config = {
|
|
|
4613
4479
|
dataContract: dataContract,
|
|
4614
4480
|
size: size,
|
|
4615
4481
|
defaultContext: defaultContext,
|
|
4616
|
-
optionsSchema:
|
|
4482
|
+
optionsSchema: visualization_schemas_1.fillerGaugeOptionsSchema,
|
|
4617
4483
|
editorConfig: editorConfig,
|
|
4618
4484
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
|
|
4619
4485
|
themes: themes
|
|
@@ -4621,13 +4487,13 @@ var config = {
|
|
|
4621
4487
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
4622
4488
|
|
|
4623
4489
|
/***/ }),
|
|
4624
|
-
/*
|
|
4490
|
+
/* 233 */
|
|
4625
4491
|
/***/ (function(module, exports) {
|
|
4626
4492
|
|
|
4627
4493
|
module.exports = require("@splunk/react-icons/enterprise/GaugeFiller");
|
|
4628
4494
|
|
|
4629
4495
|
/***/ }),
|
|
4630
|
-
/*
|
|
4496
|
+
/* 234 */
|
|
4631
4497
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4632
4498
|
|
|
4633
4499
|
"use strict";
|
|
@@ -4638,9 +4504,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4638
4504
|
});
|
|
4639
4505
|
exports.getDynamicGaugeColorEditor = void 0;
|
|
4640
4506
|
|
|
4641
|
-
var i18n_1 = __webpack_require__(
|
|
4507
|
+
var i18n_1 = __webpack_require__(3);
|
|
4642
4508
|
|
|
4643
|
-
var configUtils_1 = __webpack_require__(
|
|
4509
|
+
var configUtils_1 = __webpack_require__(28);
|
|
4644
4510
|
|
|
4645
4511
|
var getDynamicGaugeColorEditor = function getDynamicGaugeColorEditor(_ref) {
|
|
4646
4512
|
var defaultContext = _ref.defaultContext,
|
|
@@ -4676,7 +4542,7 @@ var getDynamicGaugeColorEditor = function getDynamicGaugeColorEditor(_ref) {
|
|
|
4676
4542
|
exports.getDynamicGaugeColorEditor = getDynamicGaugeColorEditor;
|
|
4677
4543
|
|
|
4678
4544
|
/***/ }),
|
|
4679
|
-
/*
|
|
4545
|
+
/* 235 */
|
|
4680
4546
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4681
4547
|
|
|
4682
4548
|
"use strict";
|
|
@@ -4686,9 +4552,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4686
4552
|
value: true
|
|
4687
4553
|
});
|
|
4688
4554
|
|
|
4689
|
-
var i18n_1 = __webpack_require__(
|
|
4555
|
+
var i18n_1 = __webpack_require__(3);
|
|
4690
4556
|
|
|
4691
|
-
var configUtils_1 = __webpack_require__(
|
|
4557
|
+
var configUtils_1 = __webpack_require__(28);
|
|
4692
4558
|
|
|
4693
4559
|
var StaticGaugeColorEditor = {
|
|
4694
4560
|
label: (0, i18n_1._)('Gauge'),
|
|
@@ -4702,13 +4568,13 @@ var StaticGaugeColorEditor = {
|
|
|
4702
4568
|
exports.default = StaticGaugeColorEditor;
|
|
4703
4569
|
|
|
4704
4570
|
/***/ }),
|
|
4705
|
-
/*
|
|
4571
|
+
/* 236 */
|
|
4706
4572
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4707
4573
|
|
|
4708
4574
|
"use strict";
|
|
4709
4575
|
|
|
4710
4576
|
|
|
4711
|
-
var _slicedToArray = __webpack_require__(
|
|
4577
|
+
var _slicedToArray = __webpack_require__(5);
|
|
4712
4578
|
|
|
4713
4579
|
var __rest = this && this.__rest || function (s, e) {
|
|
4714
4580
|
var t = {};
|
|
@@ -4728,31 +4594,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4728
4594
|
});
|
|
4729
4595
|
exports.AXIS_ORIENTATION_TYPES = void 0;
|
|
4730
4596
|
|
|
4731
|
-
var React = __webpack_require__(
|
|
4597
|
+
var React = __webpack_require__(1);
|
|
4732
4598
|
|
|
4733
|
-
var T = __webpack_require__(
|
|
4599
|
+
var T = __webpack_require__(0);
|
|
4734
4600
|
|
|
4735
4601
|
var styled_components_1 = __webpack_require__(4);
|
|
4736
4602
|
|
|
4737
|
-
var lodash_1 = __webpack_require__(
|
|
4603
|
+
var lodash_1 = __webpack_require__(2);
|
|
4738
4604
|
|
|
4739
|
-
var i18n_1 = __webpack_require__(
|
|
4605
|
+
var i18n_1 = __webpack_require__(3);
|
|
4740
4606
|
|
|
4741
4607
|
var style_1 = __webpack_require__(18);
|
|
4742
4608
|
|
|
4743
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
4609
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
4744
4610
|
|
|
4745
|
-
var Message_1 = __webpack_require__(
|
|
4611
|
+
var Message_1 = __webpack_require__(11);
|
|
4746
4612
|
|
|
4747
|
-
var gaugeUtils_1 = __webpack_require__(
|
|
4613
|
+
var gaugeUtils_1 = __webpack_require__(118);
|
|
4748
4614
|
|
|
4749
|
-
var GaugeMajorTicks_1 = __webpack_require__(
|
|
4615
|
+
var GaugeMajorTicks_1 = __webpack_require__(146);
|
|
4750
4616
|
|
|
4751
|
-
var GaugeValueMarker_1 = __webpack_require__(
|
|
4617
|
+
var GaugeValueMarker_1 = __webpack_require__(147);
|
|
4752
4618
|
|
|
4753
4619
|
var Container = styled_components_1.default.div.withConfig({
|
|
4754
4620
|
displayName: "FillerGauge__Container",
|
|
4755
|
-
componentId: "u356pd-0"
|
|
4621
|
+
componentId: "sc-u356pd-0"
|
|
4756
4622
|
})(["overflow:hidden;", ";background-color:", ";"], function (props) {
|
|
4757
4623
|
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
4758
4624
|
}, function (props) {
|
|
@@ -4760,19 +4626,19 @@ var Container = styled_components_1.default.div.withConfig({
|
|
|
4760
4626
|
});
|
|
4761
4627
|
var FillerGaugeWrapper = styled_components_1.default.div.withConfig({
|
|
4762
4628
|
displayName: "FillerGauge__FillerGaugeWrapper",
|
|
4763
|
-
componentId: "u356pd-1"
|
|
4629
|
+
componentId: "sc-u356pd-1"
|
|
4764
4630
|
})(["display:flex;justify-content:center;flex-direction:row;width:100%;height:100%;background-color:", ";"], function (props) {
|
|
4765
4631
|
return props.backgroundColor;
|
|
4766
4632
|
});
|
|
4767
4633
|
var FillerGaugeContainer = styled_components_1.default.div.withConfig({
|
|
4768
4634
|
displayName: "FillerGauge__FillerGaugeContainer",
|
|
4769
|
-
componentId: "u356pd-2"
|
|
4635
|
+
componentId: "sc-u356pd-2"
|
|
4770
4636
|
})(["overflow:hidden;position:relative;", ";"], function (props) {
|
|
4771
4637
|
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
4772
4638
|
});
|
|
4773
4639
|
var FillerGaugeSVG = styled_components_1.default.svg.withConfig({
|
|
4774
4640
|
displayName: "FillerGauge__FillerGaugeSVG",
|
|
4775
|
-
componentId: "u356pd-3"
|
|
4641
|
+
componentId: "sc-u356pd-3"
|
|
4776
4642
|
})(["", ";"], function (props) {
|
|
4777
4643
|
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
4778
4644
|
});
|
|
@@ -4780,7 +4646,7 @@ var BackgroundBar = styled_components_1.default.rect.attrs({
|
|
|
4780
4646
|
'data-test': 'background-bar-rect'
|
|
4781
4647
|
}).withConfig({
|
|
4782
4648
|
displayName: "FillerGauge__BackgroundBar",
|
|
4783
|
-
componentId: "u356pd-4"
|
|
4649
|
+
componentId: "sc-u356pd-4"
|
|
4784
4650
|
})(["fill:", ";"], function (props) {
|
|
4785
4651
|
return props.backgroundBarFillColor;
|
|
4786
4652
|
});
|
|
@@ -4788,7 +4654,7 @@ var FillBar = styled_components_1.default.rect.attrs({
|
|
|
4788
4654
|
'data-test': 'fill-bar-rect'
|
|
4789
4655
|
}).withConfig({
|
|
4790
4656
|
displayName: "FillerGauge__FillBar",
|
|
4791
|
-
componentId: "u356pd-5"
|
|
4657
|
+
componentId: "sc-u356pd-5"
|
|
4792
4658
|
})(["fill:", ";"], function (props) {
|
|
4793
4659
|
return props.color;
|
|
4794
4660
|
});
|