@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/SingleValueRadial.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 = 469);
|
|
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() {
|
|
@@ -1004,7 +1004,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
return React.createElement(FixSizeItem, {
|
|
1006
1006
|
"data-test": "fix-size-item",
|
|
1007
|
-
"data-splunk-visualization-version": "25.
|
|
1007
|
+
"data-splunk-visualization-version": "25.9.1 - 5ba41e723",
|
|
1008
1008
|
width: width,
|
|
1009
1009
|
height: height,
|
|
1010
1010
|
backgroundColor: backgroundColor
|
|
@@ -2668,10 +2668,18 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2668
2668
|
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
2669
2669
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
2670
2670
|
visualizationID = _React$useState4[0];
|
|
2671
|
-
var _React$useState5 = React.useState(
|
|
2671
|
+
var _React$useState5 = React.useState({}),
|
|
2672
2672
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
2673
|
-
|
|
2674
|
-
|
|
2673
|
+
dataSourcesInState = _React$useState6[0],
|
|
2674
|
+
setDataSourcesInState = _React$useState6[1];
|
|
2675
|
+
var _React$useState7 = React.useState(),
|
|
2676
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
2677
|
+
dataFramesInState = _React$useState8[0],
|
|
2678
|
+
setDataFramesInState = _React$useState8[1];
|
|
2679
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
2680
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
2681
|
+
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
2682
|
+
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
2675
2683
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
2676
2684
|
try {
|
|
2677
2685
|
if (useAsyncEvaluatedOptions) {
|
|
@@ -2694,10 +2702,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2694
2702
|
setUseAsyncEvaluatedOptions(false);
|
|
2695
2703
|
});
|
|
2696
2704
|
} else {
|
|
2705
|
+
var dataFrames = dataFramesInState;
|
|
2706
|
+
if (dataSources !== dataSourcesInState) {
|
|
2707
|
+
setDataSourcesInState(dataSources);
|
|
2708
|
+
dataFrames = Options_1.Options.dataFrameFromDataSource(dataSources);
|
|
2709
|
+
setDataFramesInState(dataFrames);
|
|
2710
|
+
}
|
|
2697
2711
|
return Options_1.Options.evaluate({
|
|
2698
2712
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
2699
2713
|
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
2700
|
-
}, dataSources, themeFunc);
|
|
2714
|
+
}, dataSources, themeFunc, dataFrames);
|
|
2701
2715
|
}
|
|
2702
2716
|
} catch (e) {
|
|
2703
2717
|
// eslint-disable-next-line no-console
|
|
@@ -3176,7 +3190,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3176
3190
|
componentId: "sc-1gsbnxb-0"
|
|
3177
3191
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3178
3192
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3179
|
-
'data-splunk-visualization-version': "25.
|
|
3193
|
+
'data-splunk-visualization-version': "25.9.1 - 5ba41e723"
|
|
3180
3194
|
}).withConfig({
|
|
3181
3195
|
displayName: "withEditModeCover__Blocker",
|
|
3182
3196
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3205,6 +3219,52 @@ exports.default = withEditModeCover;
|
|
|
3205
3219
|
|
|
3206
3220
|
/***/ }),
|
|
3207
3221
|
|
|
3222
|
+
/***/ 469:
|
|
3223
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3224
|
+
|
|
3225
|
+
"use strict";
|
|
3226
|
+
|
|
3227
|
+
|
|
3228
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
3229
|
+
var t = {};
|
|
3230
|
+
for (var p in s) {
|
|
3231
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
3232
|
+
}
|
|
3233
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3234
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
3235
|
+
}
|
|
3236
|
+
return t;
|
|
3237
|
+
};
|
|
3238
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3239
|
+
value: true
|
|
3240
|
+
});
|
|
3241
|
+
exports.themes = exports.computeVizProps = exports.PureSingleValueRadialThemes = exports.PureSingleValueRadial = exports.config = void 0;
|
|
3242
|
+
var SingleValueRadial_1 = __webpack_require__(484);
|
|
3243
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
3244
|
+
var config_1 = __webpack_require__(470);
|
|
3245
|
+
var withTrellis_1 = __webpack_require__(102);
|
|
3246
|
+
exports.config = config_1.default;
|
|
3247
|
+
exports.PureSingleValueRadial = SingleValueRadial_1.default;
|
|
3248
|
+
// TODO: proper theming support for SVR when we come back to SVR viz
|
|
3249
|
+
exports.PureSingleValueRadialThemes = {};
|
|
3250
|
+
var computeVizProps = function computeVizProps(_a) {
|
|
3251
|
+
var trellisKey = _a.trellisKey,
|
|
3252
|
+
props = __rest(_a, ["trellisKey"]);
|
|
3253
|
+
return Object.assign({
|
|
3254
|
+
trellisKey: trellisKey
|
|
3255
|
+
}, props);
|
|
3256
|
+
};
|
|
3257
|
+
exports.computeVizProps = computeVizProps;
|
|
3258
|
+
var viz = withTrellis_1.default(withDashboardViz_1.default({
|
|
3259
|
+
ReactViz: SingleValueRadial_1.default,
|
|
3260
|
+
vizConfig: config_1.default,
|
|
3261
|
+
computeVizProps: exports.computeVizProps
|
|
3262
|
+
}));
|
|
3263
|
+
exports.themes = config_1.default.themes;
|
|
3264
|
+
exports.default = viz;
|
|
3265
|
+
|
|
3266
|
+
/***/ }),
|
|
3267
|
+
|
|
3208
3268
|
/***/ 47:
|
|
3209
3269
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3210
3270
|
|
|
@@ -3257,53 +3317,7 @@ exports.default = withPlaceholder;
|
|
|
3257
3317
|
|
|
3258
3318
|
/***/ }),
|
|
3259
3319
|
|
|
3260
|
-
/***/
|
|
3261
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3262
|
-
|
|
3263
|
-
"use strict";
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
3267
|
-
var t = {};
|
|
3268
|
-
for (var p in s) {
|
|
3269
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
3270
|
-
}
|
|
3271
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3272
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
3273
|
-
}
|
|
3274
|
-
return t;
|
|
3275
|
-
};
|
|
3276
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3277
|
-
value: true
|
|
3278
|
-
});
|
|
3279
|
-
exports.themes = exports.computeVizProps = exports.PureSingleValueRadialThemes = exports.PureSingleValueRadial = exports.config = void 0;
|
|
3280
|
-
var SingleValueRadial_1 = __webpack_require__(486);
|
|
3281
|
-
var withDashboardViz_1 = __webpack_require__(36);
|
|
3282
|
-
var config_1 = __webpack_require__(472);
|
|
3283
|
-
var withTrellis_1 = __webpack_require__(102);
|
|
3284
|
-
exports.config = config_1.default;
|
|
3285
|
-
exports.PureSingleValueRadial = SingleValueRadial_1.default;
|
|
3286
|
-
// TODO: proper theming support for SVR when we come back to SVR viz
|
|
3287
|
-
exports.PureSingleValueRadialThemes = {};
|
|
3288
|
-
var computeVizProps = function computeVizProps(_a) {
|
|
3289
|
-
var trellisKey = _a.trellisKey,
|
|
3290
|
-
props = __rest(_a, ["trellisKey"]);
|
|
3291
|
-
return Object.assign({
|
|
3292
|
-
trellisKey: trellisKey
|
|
3293
|
-
}, props);
|
|
3294
|
-
};
|
|
3295
|
-
exports.computeVizProps = computeVizProps;
|
|
3296
|
-
var viz = withTrellis_1.default(withDashboardViz_1.default({
|
|
3297
|
-
ReactViz: SingleValueRadial_1.default,
|
|
3298
|
-
vizConfig: config_1.default,
|
|
3299
|
-
computeVizProps: exports.computeVizProps
|
|
3300
|
-
}));
|
|
3301
|
-
exports.themes = config_1.default.themes;
|
|
3302
|
-
exports.default = viz;
|
|
3303
|
-
|
|
3304
|
-
/***/ }),
|
|
3305
|
-
|
|
3306
|
-
/***/ 472:
|
|
3320
|
+
/***/ 470:
|
|
3307
3321
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3308
3322
|
|
|
3309
3323
|
"use strict";
|
|
@@ -3330,7 +3344,7 @@ var DynamicBackgroundColorEditor_1 = __webpack_require__(97);
|
|
|
3330
3344
|
var StaticMajorColorEditor_1 = __webpack_require__(99);
|
|
3331
3345
|
var StaticTrendColorEditor_1 = __webpack_require__(100);
|
|
3332
3346
|
var StaticBackgroundColorEditor_1 = __webpack_require__(84);
|
|
3333
|
-
var RadialBackgroundColor_1 = __webpack_require__(
|
|
3347
|
+
var RadialBackgroundColor_1 = __webpack_require__(471);
|
|
3334
3348
|
var TrellisEditors_1 = __webpack_require__(101);
|
|
3335
3349
|
var layoutUtils_1 = __webpack_require__(58);
|
|
3336
3350
|
var dataContract = {
|
|
@@ -3414,7 +3428,7 @@ var optionsSchema = {
|
|
|
3414
3428
|
default: 0,
|
|
3415
3429
|
maximum: 20,
|
|
3416
3430
|
minimum: 0,
|
|
3417
|
-
description: 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3.
|
|
3431
|
+
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.',
|
|
3418
3432
|
type: 'number'
|
|
3419
3433
|
},
|
|
3420
3434
|
radialBackgroundColor: {
|
|
@@ -3470,24 +3484,26 @@ var optionsSchema = {
|
|
|
3470
3484
|
type: 'string'
|
|
3471
3485
|
},
|
|
3472
3486
|
trellisColumns: {
|
|
3473
|
-
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.',
|
|
3487
|
+
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.',
|
|
3474
3488
|
type: 'number',
|
|
3475
|
-
minimum:
|
|
3489
|
+
minimum: 1
|
|
3476
3490
|
},
|
|
3477
3491
|
trellisMinColumnWidth: {
|
|
3478
3492
|
default: 100,
|
|
3479
|
-
|
|
3493
|
+
minimum: 1,
|
|
3494
|
+
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.',
|
|
3480
3495
|
type: 'number'
|
|
3481
3496
|
},
|
|
3482
3497
|
trellisPageCount: {
|
|
3483
3498
|
default: 20,
|
|
3484
|
-
minimum:
|
|
3485
|
-
description: 'Specify the maximum number of visualizations to display in a single page in the trellis container. The remaining visualizations will paginate accordingly.',
|
|
3499
|
+
minimum: 1,
|
|
3500
|
+
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.',
|
|
3486
3501
|
type: 'number'
|
|
3487
3502
|
},
|
|
3488
3503
|
trellisRowHeight: {
|
|
3489
3504
|
default: 70,
|
|
3490
|
-
|
|
3505
|
+
minimum: 1,
|
|
3506
|
+
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.',
|
|
3491
3507
|
type: 'number'
|
|
3492
3508
|
},
|
|
3493
3509
|
trellisSplitBy: {
|
|
@@ -3731,7 +3747,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
3731
3747
|
|
|
3732
3748
|
/***/ }),
|
|
3733
3749
|
|
|
3734
|
-
/***/
|
|
3750
|
+
/***/ 471:
|
|
3735
3751
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3736
3752
|
|
|
3737
3753
|
"use strict";
|
|
@@ -3766,7 +3782,7 @@ module.exports = require("@splunk/visualization-icons/placeholders");
|
|
|
3766
3782
|
|
|
3767
3783
|
/***/ }),
|
|
3768
3784
|
|
|
3769
|
-
/***/
|
|
3785
|
+
/***/ 484:
|
|
3770
3786
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3771
3787
|
|
|
3772
3788
|
"use strict";
|
|
@@ -4666,11 +4682,11 @@ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(exte
|
|
|
4666
4682
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
4667
4683
|
var singleValueUtils = __webpack_require__(24);
|
|
4668
4684
|
|
|
4669
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
|
|
4685
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowUp"
|
|
4670
4686
|
var ArrowUp_ = __webpack_require__(79);
|
|
4671
4687
|
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
|
|
4672
4688
|
|
|
4673
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowDown"
|
|
4689
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowDown"
|
|
4674
4690
|
var ArrowDown_ = __webpack_require__(80);
|
|
4675
4691
|
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
|
|
4676
4692
|
|
|
@@ -4946,7 +4962,7 @@ module.exports = require("lodash/isEmpty");
|
|
|
4946
4962
|
/***/ 79:
|
|
4947
4963
|
/***/ (function(module, exports) {
|
|
4948
4964
|
|
|
4949
|
-
module.exports = require("@splunk/react-icons/ArrowUp");
|
|
4965
|
+
module.exports = require("@splunk/react-icons/enterprise/ArrowUp");
|
|
4950
4966
|
|
|
4951
4967
|
/***/ }),
|
|
4952
4968
|
|
|
@@ -4960,7 +4976,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
|
4960
4976
|
/***/ 80:
|
|
4961
4977
|
/***/ (function(module, exports) {
|
|
4962
4978
|
|
|
4963
|
-
module.exports = require("@splunk/react-icons/ArrowDown");
|
|
4979
|
+
module.exports = require("@splunk/react-icons/enterprise/ArrowDown");
|
|
4964
4980
|
|
|
4965
4981
|
/***/ }),
|
|
4966
4982
|
|