@splunk/visualizations 27.5.1 → 27.5.3
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.js +2 -2
- package/Area.js.map +2 -2
- package/Bar.js +2 -2
- package/Bar.js.map +2 -2
- package/Bubble.js +2 -2
- package/Bubble.js.map +2 -2
- package/CHANGELOG.external.md +16 -5
- package/ChoroplethSvg.js +2 -2
- package/Column.js +2 -2
- package/Column.js.map +2 -2
- package/Ellipse.js +2 -2
- package/Events.js +2 -2
- package/FillerGauge.js +2 -2
- package/Image.js +2 -2
- package/Line.js +2 -2
- package/Line.js.map +2 -2
- package/LinkGraph.js +2 -2
- package/Map.js +22 -8
- package/Map.js.map +2 -2
- package/Markdown.js +2 -2
- package/MarkerGauge.js +2 -2
- package/ParallelCoordinates.js +2 -2
- package/Pie.js +2 -2
- package/Pie.js.map +2 -2
- package/Punchcard.js +2 -2
- package/Rectangle.js +2 -2
- package/Sankey.js +2 -2
- package/Scatter.js +2 -2
- package/Scatter.js.map +2 -2
- package/SingleValue.js +2 -2
- package/SingleValueIcon.js +2 -2
- package/SingleValueRadial.js +2 -2
- package/Table.js +33 -10
- package/Table.js.map +3 -3
- package/Timeline.js +2 -2
- package/common/Charting.js.map +2 -2
- package/common/utils/mapUtils.js.map +2 -2
- package/common/withDashboardViz.js +2 -2
- package/package.json +14 -14
package/LinkGraph.js
CHANGED
|
@@ -3048,7 +3048,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
3048
3048
|
FixSizeItem,
|
|
3049
3049
|
{
|
|
3050
3050
|
"data-test": "fix-size-item",
|
|
3051
|
-
"data-splunk-visualization-version": "27.5.
|
|
3051
|
+
"data-splunk-visualization-version": "27.5.3 - 73f6615d1",
|
|
3052
3052
|
width,
|
|
3053
3053
|
height,
|
|
3054
3054
|
backgroundColor
|
|
@@ -3118,7 +3118,7 @@ var Cover = styled_components_default.div`
|
|
|
3118
3118
|
bottom: 0;
|
|
3119
3119
|
`;
|
|
3120
3120
|
var Blocker = styled_components_default.div.attrs({
|
|
3121
|
-
"data-splunk-visualization-version": "27.5.
|
|
3121
|
+
"data-splunk-visualization-version": "27.5.3 - 73f6615d1"
|
|
3122
3122
|
})`
|
|
3123
3123
|
position: relative;
|
|
3124
3124
|
width: 100%;
|
package/Map.js
CHANGED
|
@@ -496,10 +496,11 @@ var sortByValuesField = (bubbleLayer) => {
|
|
|
496
496
|
bubbleLayer.bubbleSize.unshift(bubbleLayer.bubbleSize.splice(index, 1)[0]);
|
|
497
497
|
};
|
|
498
498
|
var bakeBubbleData = (layer) => {
|
|
499
|
-
var _a;
|
|
500
|
-
if (!
|
|
499
|
+
var _a, _b, _c;
|
|
500
|
+
if (!((_a = layer == null ? void 0 : layer.bubbleSize) == null ? void 0 : _a.length) || !((_b = layer == null ? void 0 : layer.latitude) == null ? void 0 : _b.length) || !((_c = layer == null ? void 0 : layer.longitude) == null ? void 0 : _c.length)) {
|
|
501
501
|
return null;
|
|
502
502
|
}
|
|
503
|
+
const hasGeobinData = Array.isArray(layer.geobin) && layer.geobin.length > 0;
|
|
503
504
|
const sanitizedBubbleSize = sanitizeValues(layer.bubbleSize);
|
|
504
505
|
let transposedBubbleSize;
|
|
505
506
|
let transposedSanitizedBubbleSize;
|
|
@@ -521,14 +522,14 @@ var bakeBubbleData = (layer) => {
|
|
|
521
522
|
return null;
|
|
522
523
|
}
|
|
523
524
|
const data = layer.latitude.map((lat, i) => ({
|
|
524
|
-
zoom: getZoomLevelFromGeobin(layer.geobin[i]),
|
|
525
|
+
zoom: hasGeobinData ? getZoomLevelFromGeobin(layer.geobin[i]) : null,
|
|
525
526
|
values: transposedBubbleSize[i],
|
|
526
527
|
sanitizedValues: transposedSanitizedBubbleSize[i],
|
|
527
528
|
coordinates: [layer.longitude[i], lat],
|
|
528
529
|
metadata: layer.metadata ? layer.metadata[i] : {}
|
|
529
530
|
})).filter((d) => Boolean(d.values));
|
|
530
531
|
let min = (0, lodash_exports.sum)(transposedSanitizedBubbleSize[0]);
|
|
531
|
-
let max =
|
|
532
|
+
let max = min;
|
|
532
533
|
transposedSanitizedBubbleSize.forEach((row) => {
|
|
533
534
|
const bubbleSize = (0, lodash_exports.sum)(row);
|
|
534
535
|
max = bubbleSize > max ? bubbleSize : max;
|
|
@@ -1047,7 +1048,8 @@ var BubbleLayer = (props) => {
|
|
|
1047
1048
|
const dynamicColors = bubbleLayer.dataColors;
|
|
1048
1049
|
const dataToRender = react_exports.useMemo(
|
|
1049
1050
|
() => data.reduce((acc, datum, i) => {
|
|
1050
|
-
|
|
1051
|
+
const shouldRender = datum.zoom === null || datum.zoom === void 0 || datum.zoom === roundedZoom;
|
|
1052
|
+
if (shouldRender) {
|
|
1051
1053
|
acc.push({ data: datum, idx: i });
|
|
1052
1054
|
}
|
|
1053
1055
|
return acc;
|
|
@@ -1262,7 +1264,7 @@ var ClusterLayer = ({
|
|
|
1262
1264
|
}
|
|
1263
1265
|
);
|
|
1264
1266
|
}
|
|
1265
|
-
if ((clusterLayer == null ? void 0 : clusterLayer.type) === visualization_schemas_exports.LAYER_TYPE.Bubble &&
|
|
1267
|
+
if ((clusterLayer == null ? void 0 : clusterLayer.type) === visualization_schemas_exports.LAYER_TYPE.Bubble && Array.isArray(clusterLayer.bubbleSize)) {
|
|
1266
1268
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1267
1269
|
BubbleLayer_default,
|
|
1268
1270
|
{
|
|
@@ -1746,12 +1748,22 @@ var PureMap = (props) => {
|
|
|
1746
1748
|
style: mapStyle,
|
|
1747
1749
|
center: lngLatCenter,
|
|
1748
1750
|
zoom: zoomLevel,
|
|
1751
|
+
attributionControl: false,
|
|
1749
1752
|
cooperativeGestures: {
|
|
1750
1753
|
windowsHelpText: (0, i18n_exports._)("Use Ctrl + scroll to zoom map"),
|
|
1751
1754
|
macHelpText: (0, i18n_exports._)("Use \u2318 + scroll to zoom map"),
|
|
1752
1755
|
mobileHelpText: (0, i18n_exports._)("Use two fingers to move the map")
|
|
1753
1756
|
}
|
|
1754
1757
|
}, getZoomConstraintsFromTileConfig(mapStyle, baseLayerTileServer)));
|
|
1758
|
+
const mapContainer = basemapContainer.current;
|
|
1759
|
+
const markMapBusy = () => {
|
|
1760
|
+
mapContainer.dataset.mapIdle = "false";
|
|
1761
|
+
};
|
|
1762
|
+
map.current.on("movestart", markMapBusy);
|
|
1763
|
+
map.current.on("dataloading", markMapBusy);
|
|
1764
|
+
map.current.on("idle", () => {
|
|
1765
|
+
mapContainer.dataset.mapIdle = "true";
|
|
1766
|
+
});
|
|
1755
1767
|
map.current.on("load", () => {
|
|
1756
1768
|
if ((layers == null ? void 0 : layers.length) > 0 && center === void 0 && zoom === void 0) {
|
|
1757
1769
|
setMapMinZoom(map.current.getZoom());
|
|
@@ -1774,6 +1786,7 @@ var PureMap = (props) => {
|
|
|
1774
1786
|
onOptionsChangeProxy({ center: [newCenter.lat, newCenter.lng], zoom: map.current.getZoom() });
|
|
1775
1787
|
});
|
|
1776
1788
|
map.current.on("resize", () => {
|
|
1789
|
+
markMapBusy();
|
|
1777
1790
|
const mapZoomLevel = map.current.getZoom();
|
|
1778
1791
|
if (currentZoomLevelRef.current <= mapMinZoomRef.current && mapZoomLevel !== mapMinZoomRef.current) {
|
|
1779
1792
|
setMapMinZoom(mapZoomLevel);
|
|
@@ -1907,6 +1920,7 @@ var PureMap = (props) => {
|
|
|
1907
1920
|
{
|
|
1908
1921
|
"aria-label": title || (0, i18n_exports._)("Map"),
|
|
1909
1922
|
className: "puremap",
|
|
1923
|
+
"data-map-idle": "false",
|
|
1910
1924
|
width,
|
|
1911
1925
|
height,
|
|
1912
1926
|
backgroundColor,
|
|
@@ -2870,7 +2884,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2870
2884
|
FixSizeItem,
|
|
2871
2885
|
{
|
|
2872
2886
|
"data-test": "fix-size-item",
|
|
2873
|
-
"data-splunk-visualization-version": "27.5.
|
|
2887
|
+
"data-splunk-visualization-version": "27.5.3 - 73f6615d1",
|
|
2874
2888
|
width,
|
|
2875
2889
|
height,
|
|
2876
2890
|
backgroundColor
|
|
@@ -2936,7 +2950,7 @@ var Cover = styled_components_default.div`
|
|
|
2936
2950
|
bottom: 0;
|
|
2937
2951
|
`;
|
|
2938
2952
|
var Blocker = styled_components_default.div.attrs({
|
|
2939
|
-
"data-splunk-visualization-version": "27.5.
|
|
2953
|
+
"data-splunk-visualization-version": "27.5.3 - 73f6615d1"
|
|
2940
2954
|
})`
|
|
2941
2955
|
position: relative;
|
|
2942
2956
|
width: 100%;
|