@splunk/visualizations 25.8.1 → 25.9.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 +2 -2
- package/Area.config.js.map +1 -1
- package/Area.js +25 -9
- package/Area.js.map +1 -1
- package/Bar.config.js +2 -2
- package/Bar.config.js.map +1 -1
- package/Bar.js +25 -9
- 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 +3 -3
- package/Column.config.js.map +1 -1
- package/Column.js +26 -10
- 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.js +20 -6
- package/FillerGauge.js.map +1 -1
- package/Image.js +20 -6
- package/Image.js.map +1 -1
- package/Line.config.js +12 -3
- package/Line.config.js.map +1 -1
- package/Line.js +37 -11
- package/Line.js.map +1 -1
- package/LinkGraph.js +29 -10
- package/LinkGraph.js.map +1 -1
- package/Map.js +21 -7
- package/Map.js.map +1 -1
- package/Markdown.config.js +1 -0
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +21 -6
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +20 -6
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +20 -6
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +23 -7
- package/Pie.js.map +1 -1
- package/Punchcard.js +20 -6
- package/Punchcard.js.map +1 -1
- package/README.internal.md +15 -5
- package/README.md +3 -1
- package/Rectangle.js +20 -6
- package/Rectangle.js.map +1 -1
- package/Sankey.js +20 -6
- package/Sankey.js.map +1 -1
- package/Scatter.js +23 -7
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +5 -5
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +25 -11
- package/SingleValue.js.map +1 -1
- package/SingleValueIcon.config.js +9 -7
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +29 -13
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +9 -7
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +29 -13
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +1 -1
- package/Table.config.js.map +1 -1
- package/Table.js +21 -7
- 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/withDashboardViz.js +20 -6
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +20 -20
package/Area.js
CHANGED
|
@@ -260,7 +260,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
260
260
|
}
|
|
261
261
|
return React.createElement(FixSizeItem, {
|
|
262
262
|
"data-test": "fix-size-item",
|
|
263
|
-
"data-splunk-visualization-version": "25.
|
|
263
|
+
"data-splunk-visualization-version": "25.9.0 - 933e6a539",
|
|
264
264
|
width: width,
|
|
265
265
|
height: height,
|
|
266
266
|
backgroundColor: backgroundColor
|
|
@@ -904,10 +904,18 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
904
904
|
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
905
905
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
906
906
|
visualizationID = _React$useState4[0];
|
|
907
|
-
var _React$useState5 = React.useState(
|
|
907
|
+
var _React$useState5 = React.useState({}),
|
|
908
908
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
909
|
-
|
|
910
|
-
|
|
909
|
+
dataSourcesInState = _React$useState6[0],
|
|
910
|
+
setDataSourcesInState = _React$useState6[1];
|
|
911
|
+
var _React$useState7 = React.useState(),
|
|
912
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
913
|
+
dataFramesInState = _React$useState8[0],
|
|
914
|
+
setDataFramesInState = _React$useState8[1];
|
|
915
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
916
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
917
|
+
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
918
|
+
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
911
919
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
912
920
|
try {
|
|
913
921
|
if (useAsyncEvaluatedOptions) {
|
|
@@ -930,10 +938,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
930
938
|
setUseAsyncEvaluatedOptions(false);
|
|
931
939
|
});
|
|
932
940
|
} else {
|
|
941
|
+
var dataFrames = dataFramesInState;
|
|
942
|
+
if (dataSources !== dataSourcesInState) {
|
|
943
|
+
setDataSourcesInState(dataSources);
|
|
944
|
+
dataFrames = Options_1.Options.dataFrameFromDataSource(dataSources);
|
|
945
|
+
setDataFramesInState(dataFrames);
|
|
946
|
+
}
|
|
933
947
|
return Options_1.Options.evaluate({
|
|
934
948
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
935
949
|
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
936
|
-
}, dataSources, themeFunc);
|
|
950
|
+
}, dataSources, themeFunc, dataFrames);
|
|
937
951
|
}
|
|
938
952
|
} catch (e) {
|
|
939
953
|
// eslint-disable-next-line no-console
|
|
@@ -1395,7 +1409,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1395
1409
|
componentId: "sc-1gsbnxb-0"
|
|
1396
1410
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1397
1411
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1398
|
-
'data-splunk-visualization-version': "25.
|
|
1412
|
+
'data-splunk-visualization-version': "25.9.0 - 933e6a539"
|
|
1399
1413
|
}).withConfig({
|
|
1400
1414
|
displayName: "withEditModeCover__Blocker",
|
|
1401
1415
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1997,7 +2011,9 @@ var Charting = function Charting(props) {
|
|
|
1997
2011
|
chart.current.prepareAndDraw(chartData, updatedOptions, function () {});
|
|
1998
2012
|
}
|
|
1999
2013
|
if (chart.current) {
|
|
2000
|
-
chart.current.
|
|
2014
|
+
if (Math.round(chart.current.height) !== Math.round(computedHeight) || Math.round(chart.current.width) !== Math.round(computedWidth)) {
|
|
2015
|
+
chart.current.resize(computedWidth, computedHeight);
|
|
2016
|
+
}
|
|
2001
2017
|
}
|
|
2002
2018
|
needsInit.current = false;
|
|
2003
2019
|
needsRedraw.current = false;
|
|
@@ -3537,7 +3553,7 @@ var optionsSchema = {
|
|
|
3537
3553
|
},
|
|
3538
3554
|
lineWidth: {
|
|
3539
3555
|
default: 2,
|
|
3540
|
-
description: 'Specify the line width (px) for
|
|
3556
|
+
description: 'Specify the line width (px) for overlay field lines.',
|
|
3541
3557
|
type: 'number'
|
|
3542
3558
|
},
|
|
3543
3559
|
nullValueDisplay: {
|
|
@@ -3728,7 +3744,7 @@ var optionsSchema = {
|
|
|
3728
3744
|
default: 3,
|
|
3729
3745
|
minimum: 1,
|
|
3730
3746
|
maximum: 3,
|
|
3731
|
-
description: 'Specify the maximum number of time-parts for a tick label. The 3 possible parts are year, month, and time.',
|
|
3747
|
+
description: 'Specify the maximum number of time-parts for a tick label. The 3 possible parts are year, month, and time. Values can range from 1 to 3.',
|
|
3732
3748
|
type: 'number'
|
|
3733
3749
|
},
|
|
3734
3750
|
yAxisScale: {
|