@splunk/visualizations 28.2.0 → 28.2.2
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 +11 -12
- package/Area.js.map +2 -2
- package/Bar.js +11 -12
- package/Bar.js.map +2 -2
- package/Bubble.js +11 -12
- package/Bubble.js.map +2 -2
- package/CHANGELOG.external.md +36 -0
- package/ChoroplethSvg.js +11 -12
- package/ChoroplethSvg.js.map +2 -2
- package/Column.js +11 -12
- package/Column.js.map +2 -2
- package/Ellipse.js +11 -12
- package/Ellipse.js.map +2 -2
- package/Events.js +11 -12
- package/Events.js.map +2 -2
- package/FillerGauge.js +11 -12
- package/FillerGauge.js.map +2 -2
- package/Image.js +11 -12
- package/Image.js.map +2 -2
- package/Line.js +11 -12
- package/Line.js.map +2 -2
- package/LinkGraph.js +11 -12
- package/LinkGraph.js.map +2 -2
- package/Map.js +11 -12
- package/Map.js.map +2 -2
- package/Markdown.js +11 -12
- package/Markdown.js.map +2 -2
- package/MarkerGauge.js +11 -12
- package/MarkerGauge.js.map +2 -2
- package/ParallelCoordinates.js +11 -12
- package/ParallelCoordinates.js.map +2 -2
- package/Pie.js +11 -12
- package/Pie.js.map +2 -2
- package/Punchcard.js +11 -12
- package/Punchcard.js.map +2 -2
- package/Rectangle.js +11 -12
- package/Rectangle.js.map +2 -2
- package/Sankey.js +11 -12
- package/Sankey.js.map +2 -2
- package/Scatter.js +11 -12
- package/Scatter.js.map +2 -2
- package/SingleValue.js +11 -12
- package/SingleValue.js.map +2 -2
- package/SingleValueIcon.js +11 -12
- package/SingleValueIcon.js.map +2 -2
- package/SingleValueRadial.js +11 -12
- package/SingleValueRadial.js.map +2 -2
- package/Table.js +105 -43
- package/Table.js.map +3 -3
- package/Timeline.js +11 -12
- package/Timeline.js.map +2 -2
- package/common/withDashboardViz.js +11 -12
- package/common/withDashboardViz.js.map +2 -2
- package/dist/types/Table/PureTable.d.ts.map +1 -1
- package/dist/types/Table/cells/ArrayCell.d.ts.map +1 -1
- package/dist/types/Table/cells/TextCell.d.ts.map +1 -1
- package/dist/types/Table/hooks.d.ts +2 -1
- package/dist/types/Table/hooks.d.ts.map +1 -1
- package/dist/types/common/components/IconPlaceholder.d.ts.map +1 -1
- package/dist/types/common/hocs/FixedSizeContainer.d.ts.map +1 -1
- package/package.json +15 -15
package/Bar.js
CHANGED
|
@@ -2736,7 +2736,7 @@ var Cover = styled_components_default.div`
|
|
|
2736
2736
|
bottom: 0;
|
|
2737
2737
|
`;
|
|
2738
2738
|
var Blocker = styled_components_default.div.attrs({
|
|
2739
|
-
"data-splunk-visualization-version": "28.2.
|
|
2739
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1"
|
|
2740
2740
|
})`
|
|
2741
2741
|
position: relative;
|
|
2742
2742
|
width: 100%;
|
|
@@ -2775,14 +2775,18 @@ var FixSizeItem = styled_components_default.div.attrs(
|
|
|
2775
2775
|
({
|
|
2776
2776
|
width,
|
|
2777
2777
|
height
|
|
2778
|
-
}) =>
|
|
2779
|
-
|
|
2780
|
-
|
|
2778
|
+
}) => {
|
|
2779
|
+
const validHeight = typeof height === "number" ? Math.max(height, 1) : height;
|
|
2780
|
+
return {
|
|
2781
|
+
style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), validHeight && { height: (0, style_exports.toPx)(validHeight) })
|
|
2782
|
+
};
|
|
2783
|
+
}
|
|
2781
2784
|
)`
|
|
2782
2785
|
position: relative;
|
|
2783
2786
|
flex-direction: column;
|
|
2784
2787
|
flex: 1;
|
|
2785
2788
|
display: flex;
|
|
2789
|
+
overflow: hidden !important;
|
|
2786
2790
|
background-color: ${(props) => (0, colorUtils_exports.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor}};
|
|
2787
2791
|
`;
|
|
2788
2792
|
var ItemContent = styled_components_default.div`
|
|
@@ -2795,6 +2799,7 @@ var FixSizeItemContent = styled_components_default.div`
|
|
|
2795
2799
|
flex: 1;
|
|
2796
2800
|
position: relative;
|
|
2797
2801
|
box-sizing: border-box;
|
|
2802
|
+
overflow: hidden !important;
|
|
2798
2803
|
`;
|
|
2799
2804
|
var withFixedSizeContainer = (Viz) => {
|
|
2800
2805
|
const FixedSizeContainer = (props) => {
|
|
@@ -2812,7 +2817,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2812
2817
|
FixSizeItem,
|
|
2813
2818
|
{
|
|
2814
2819
|
"data-test": "fix-size-item",
|
|
2815
|
-
"data-splunk-visualization-version": "28.2.
|
|
2820
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1",
|
|
2816
2821
|
width,
|
|
2817
2822
|
height,
|
|
2818
2823
|
backgroundColor
|
|
@@ -2841,12 +2846,6 @@ var IconPlaceholder = (props) => {
|
|
|
2841
2846
|
iconColor,
|
|
2842
2847
|
backgroundColor
|
|
2843
2848
|
} = props;
|
|
2844
|
-
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
2845
|
-
setContainerWidth(w);
|
|
2846
|
-
setContainerHeight(h);
|
|
2847
|
-
}, []);
|
|
2848
|
-
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
2849
|
-
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
2850
2849
|
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
2851
2850
|
if (icon) {
|
|
2852
2851
|
content = react_exports.createElement(icon, {
|
|
@@ -2863,7 +2862,7 @@ var IconPlaceholder = (props) => {
|
|
|
2863
2862
|
"data-test": "icon-placeholder"
|
|
2864
2863
|
});
|
|
2865
2864
|
}
|
|
2866
|
-
return /* @__PURE__ */ react_exports.createElement("div", { style: { width
|
|
2865
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width, height, background: backgroundColor } }, content);
|
|
2867
2866
|
};
|
|
2868
2867
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
2869
2868
|
|