@splunk/visualizations 25.8.1 → 25.9.1
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 +2 -2
- package/Area.config.js.map +1 -1
- package/Area.js +25 -9
- package/Area.js.map +1 -1
- package/Bar.config.js +3 -3
- package/Bar.config.js.map +1 -1
- package/Bar.js +26 -10
- package/Bar.js.map +1 -1
- package/Bubble.js +23 -7
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +20 -6
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +4 -4
- package/Column.config.js.map +1 -1
- package/Column.js +27 -11
- package/Column.js.map +1 -1
- package/Ellipse.js +20 -6
- package/Ellipse.js.map +1 -1
- package/Events.js +20 -6
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +1 -1
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +21 -7
- package/FillerGauge.js.map +1 -1
- package/Image.js +20 -6
- package/Image.js.map +1 -1
- package/Line.config.js +13 -4
- package/Line.config.js.map +1 -1
- package/Line.js +38 -12
- package/Line.js.map +1 -1
- package/LinkGraph.js +2117 -2472
- package/LinkGraph.js.map +1 -1
- package/Map.js +114 -93
- package/Map.js.map +1 -1
- package/Markdown.config.js +1 -0
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +40 -25
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +1 -1
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +29 -15
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +49 -35
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +1 -1
- package/Pie.config.js.map +1 -1
- package/Pie.js +32 -16
- package/Pie.js.map +1 -1
- package/Punchcard.js +143 -129
- package/Punchcard.js.map +1 -1
- package/README.internal.md +15 -5
- package/README.md +3 -1
- package/Rectangle.js +61 -47
- package/Rectangle.js.map +1 -1
- package/Sankey.js +34 -20
- package/Sankey.js.map +1 -1
- package/Scatter.js +74 -58
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +6 -6
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +41 -25
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +4 -4
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +10 -8
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +86 -70
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +10 -8
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +85 -69
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +1 -1
- package/Table.config.js.map +1 -1
- package/Table.js +54 -36
- package/Table.js.map +1 -1
- package/common/Charting.js +3 -1
- package/common/Charting.js.map +1 -1
- package/common/OptionsDoc.js +9 -6
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +5 -5
- package/common/OverviewDoc.js.map +1 -1
- package/common/withDashboardViz.js +20 -6
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +23 -23
package/SingleValue.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 461);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -157,7 +157,7 @@ var FeatureFlagContext_1 = __webpack_require__(20);
|
|
|
157
157
|
var layoutUtils_1 = __webpack_require__(58);
|
|
158
158
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
159
159
|
exports.TrellisEditorConfig = [[{
|
|
160
|
-
label: i18n_1._('Trellis
|
|
160
|
+
label: i18n_1._('Trellis layout'),
|
|
161
161
|
option: 'splitByLayout',
|
|
162
162
|
editor: 'editor.toggle',
|
|
163
163
|
showEditor: function showEditor() {
|
|
@@ -1011,7 +1011,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
return React.createElement(FixSizeItem, {
|
|
1013
1013
|
"data-test": "fix-size-item",
|
|
1014
|
-
"data-splunk-visualization-version": "25.
|
|
1014
|
+
"data-splunk-visualization-version": "25.9.1 - 5ba41e723",
|
|
1015
1015
|
width: width,
|
|
1016
1016
|
height: height,
|
|
1017
1017
|
backgroundColor: backgroundColor
|
|
@@ -2720,10 +2720,18 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2720
2720
|
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
2721
2721
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
2722
2722
|
visualizationID = _React$useState4[0];
|
|
2723
|
-
var _React$useState5 = React.useState(
|
|
2723
|
+
var _React$useState5 = React.useState({}),
|
|
2724
2724
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
2725
|
-
|
|
2726
|
-
|
|
2725
|
+
dataSourcesInState = _React$useState6[0],
|
|
2726
|
+
setDataSourcesInState = _React$useState6[1];
|
|
2727
|
+
var _React$useState7 = React.useState(),
|
|
2728
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
2729
|
+
dataFramesInState = _React$useState8[0],
|
|
2730
|
+
setDataFramesInState = _React$useState8[1];
|
|
2731
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
2732
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
2733
|
+
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
2734
|
+
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
2727
2735
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
2728
2736
|
try {
|
|
2729
2737
|
if (useAsyncEvaluatedOptions) {
|
|
@@ -2746,10 +2754,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2746
2754
|
setUseAsyncEvaluatedOptions(false);
|
|
2747
2755
|
});
|
|
2748
2756
|
} else {
|
|
2757
|
+
var dataFrames = dataFramesInState;
|
|
2758
|
+
if (dataSources !== dataSourcesInState) {
|
|
2759
|
+
setDataSourcesInState(dataSources);
|
|
2760
|
+
dataFrames = Options_1.Options.dataFrameFromDataSource(dataSources);
|
|
2761
|
+
setDataFramesInState(dataFrames);
|
|
2762
|
+
}
|
|
2749
2763
|
return Options_1.Options.evaluate({
|
|
2750
2764
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
2751
2765
|
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
2752
|
-
}, dataSources, themeFunc);
|
|
2766
|
+
}, dataSources, themeFunc, dataFrames);
|
|
2753
2767
|
}
|
|
2754
2768
|
} catch (e) {
|
|
2755
2769
|
// eslint-disable-next-line no-console
|
|
@@ -3228,7 +3242,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3228
3242
|
componentId: "sc-1gsbnxb-0"
|
|
3229
3243
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3230
3244
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3231
|
-
'data-splunk-visualization-version': "25.
|
|
3245
|
+
'data-splunk-visualization-version': "25.9.1 - 5ba41e723"
|
|
3232
3246
|
}).withConfig({
|
|
3233
3247
|
displayName: "withEditModeCover__Blocker",
|
|
3234
3248
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3257,7 +3271,7 @@ exports.default = withEditModeCover;
|
|
|
3257
3271
|
|
|
3258
3272
|
/***/ }),
|
|
3259
3273
|
|
|
3260
|
-
/***/
|
|
3274
|
+
/***/ 461:
|
|
3261
3275
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3262
3276
|
|
|
3263
3277
|
"use strict";
|
|
@@ -3277,10 +3291,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3277
3291
|
value: true
|
|
3278
3292
|
});
|
|
3279
3293
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
3280
|
-
var SingleValue_1 = __webpack_require__(
|
|
3294
|
+
var SingleValue_1 = __webpack_require__(482);
|
|
3281
3295
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
3282
3296
|
var singleValueUtils_1 = __webpack_require__(24);
|
|
3283
|
-
var config_1 = __webpack_require__(
|
|
3297
|
+
var config_1 = __webpack_require__(462);
|
|
3284
3298
|
var withTrellis_1 = __webpack_require__(102);
|
|
3285
3299
|
exports.config = config_1.default;
|
|
3286
3300
|
exports.PureSingleValue = SingleValue_1.default;
|
|
@@ -3318,7 +3332,7 @@ exports.default = viz;
|
|
|
3318
3332
|
|
|
3319
3333
|
/***/ }),
|
|
3320
3334
|
|
|
3321
|
-
/***/
|
|
3335
|
+
/***/ 462:
|
|
3322
3336
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3323
3337
|
|
|
3324
3338
|
"use strict";
|
|
@@ -3331,7 +3345,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3331
3345
|
var i18n_1 = __webpack_require__(2);
|
|
3332
3346
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3333
3347
|
var PresetPalettes_1 = __webpack_require__(60);
|
|
3334
|
-
var variables_1 = __webpack_require__(
|
|
3348
|
+
var variables_1 = __webpack_require__(463);
|
|
3335
3349
|
var pick_1 = __webpack_require__(23);
|
|
3336
3350
|
var variables_2 = __webpack_require__(10);
|
|
3337
3351
|
var visualization_icons_1 = __webpack_require__(51);
|
|
@@ -3397,7 +3411,7 @@ var optionsSchema = {
|
|
|
3397
3411
|
default: 0,
|
|
3398
3412
|
maximum: 20,
|
|
3399
3413
|
minimum: 0,
|
|
3400
|
-
description: 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3.
|
|
3414
|
+
description: 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. Values can range from 0 to 20.',
|
|
3401
3415
|
type: 'number'
|
|
3402
3416
|
},
|
|
3403
3417
|
shouldAbbreviateTrendValue: {
|
|
@@ -3496,26 +3510,26 @@ var optionsSchema = {
|
|
|
3496
3510
|
type: 'string'
|
|
3497
3511
|
},
|
|
3498
3512
|
trellisColumns: {
|
|
3499
|
-
description: 'Specify the number of visualizations to display in a given row of the trellis container. The remaining visualizations will wrap accordingly. If nothing is specified, it will be auto-set based on the trellisMinColumnWidth.',
|
|
3513
|
+
description: 'Specify the number of visualizations to display in a given row of the trellis container. The remaining visualizations will wrap accordingly. If nothing is specified, it will be auto-set based on the trellisMinColumnWidth. The minimum value is 1.',
|
|
3500
3514
|
type: 'number',
|
|
3501
3515
|
minimum: 1
|
|
3502
3516
|
},
|
|
3503
3517
|
trellisMinColumnWidth: {
|
|
3504
3518
|
default: 100,
|
|
3505
3519
|
minimum: 1,
|
|
3506
|
-
description: 'Specify the minimum width, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling.',
|
|
3520
|
+
description: 'Specify the minimum width, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1.',
|
|
3507
3521
|
type: 'number'
|
|
3508
3522
|
},
|
|
3509
3523
|
trellisPageCount: {
|
|
3510
3524
|
default: 20,
|
|
3511
3525
|
minimum: 1,
|
|
3512
|
-
description: 'Specify the maximum number of visualizations to display in a single page in the trellis container. The remaining visualizations will paginate accordingly.',
|
|
3526
|
+
description: 'Specify the maximum number of visualizations to display in a single page in the trellis container. The remaining visualizations will paginate accordingly. The minimum value is 1.',
|
|
3513
3527
|
type: 'number'
|
|
3514
3528
|
},
|
|
3515
3529
|
trellisRowHeight: {
|
|
3516
3530
|
default: 70,
|
|
3517
3531
|
minimum: 1,
|
|
3518
|
-
description: 'Specify the height, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling.',
|
|
3532
|
+
description: 'Specify the height, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1.',
|
|
3519
3533
|
type: 'number'
|
|
3520
3534
|
},
|
|
3521
3535
|
trellisSplitBy: {
|
|
@@ -3914,7 +3928,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
3914
3928
|
|
|
3915
3929
|
/***/ }),
|
|
3916
3930
|
|
|
3917
|
-
/***/
|
|
3931
|
+
/***/ 463:
|
|
3918
3932
|
/***/ (function(module, exports) {
|
|
3919
3933
|
|
|
3920
3934
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
@@ -3980,7 +3994,7 @@ module.exports = require("@splunk/visualization-icons/placeholders");
|
|
|
3980
3994
|
|
|
3981
3995
|
/***/ }),
|
|
3982
3996
|
|
|
3983
|
-
/***/
|
|
3997
|
+
/***/ 482:
|
|
3984
3998
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3985
3999
|
|
|
3986
4000
|
"use strict";
|
|
@@ -4258,7 +4272,9 @@ var getSparklineHeight = function getSparklineHeight(_ref7) {
|
|
|
4258
4272
|
var height = _ref7.height,
|
|
4259
4273
|
contentHeight = _ref7.contentHeight,
|
|
4260
4274
|
isSparklinePositionBelow = _ref7.isSparklinePositionBelow;
|
|
4261
|
-
|
|
4275
|
+
var belowPositionHeight = height - contentHeight;
|
|
4276
|
+
var sanitizedBelowPositionHeight = belowPositionHeight < 0 ? 0 : belowPositionHeight;
|
|
4277
|
+
return isSparklinePositionBelow ? sanitizedBelowPositionHeight : height;
|
|
4262
4278
|
};
|
|
4263
4279
|
|
|
4264
4280
|
/*
|
|
@@ -5047,11 +5063,11 @@ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(exte
|
|
|
5047
5063
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
5048
5064
|
var singleValueUtils = __webpack_require__(24);
|
|
5049
5065
|
|
|
5050
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
|
|
5066
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowUp"
|
|
5051
5067
|
var ArrowUp_ = __webpack_require__(79);
|
|
5052
5068
|
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
|
|
5053
5069
|
|
|
5054
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowDown"
|
|
5070
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowDown"
|
|
5055
5071
|
var ArrowDown_ = __webpack_require__(80);
|
|
5056
5072
|
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
|
|
5057
5073
|
|
|
@@ -5327,7 +5343,7 @@ module.exports = require("lodash/isEmpty");
|
|
|
5327
5343
|
/***/ 79:
|
|
5328
5344
|
/***/ (function(module, exports) {
|
|
5329
5345
|
|
|
5330
|
-
module.exports = require("@splunk/react-icons/ArrowUp");
|
|
5346
|
+
module.exports = require("@splunk/react-icons/enterprise/ArrowUp");
|
|
5331
5347
|
|
|
5332
5348
|
/***/ }),
|
|
5333
5349
|
|
|
@@ -5341,7 +5357,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
|
5341
5357
|
/***/ 80:
|
|
5342
5358
|
/***/ (function(module, exports) {
|
|
5343
5359
|
|
|
5344
|
-
module.exports = require("@splunk/react-icons/ArrowDown");
|
|
5360
|
+
module.exports = require("@splunk/react-icons/enterprise/ArrowDown");
|
|
5345
5361
|
|
|
5346
5362
|
/***/ }),
|
|
5347
5363
|
|