@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/Image.js
CHANGED
|
@@ -601,7 +601,7 @@ var Cover = styled_components_default.div`
|
|
|
601
601
|
bottom: 0;
|
|
602
602
|
`;
|
|
603
603
|
var Blocker = styled_components_default.div.attrs({
|
|
604
|
-
"data-splunk-visualization-version": "28.2.
|
|
604
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1"
|
|
605
605
|
})`
|
|
606
606
|
position: relative;
|
|
607
607
|
width: 100%;
|
|
@@ -649,14 +649,18 @@ var FixSizeItem = styled_components_default.div.attrs(
|
|
|
649
649
|
({
|
|
650
650
|
width,
|
|
651
651
|
height
|
|
652
|
-
}) =>
|
|
653
|
-
|
|
654
|
-
|
|
652
|
+
}) => {
|
|
653
|
+
const validHeight = typeof height === "number" ? Math.max(height, 1) : height;
|
|
654
|
+
return {
|
|
655
|
+
style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), validHeight && { height: (0, style_exports.toPx)(validHeight) })
|
|
656
|
+
};
|
|
657
|
+
}
|
|
655
658
|
)`
|
|
656
659
|
position: relative;
|
|
657
660
|
flex-direction: column;
|
|
658
661
|
flex: 1;
|
|
659
662
|
display: flex;
|
|
663
|
+
overflow: hidden !important;
|
|
660
664
|
background-color: ${(props) => (0, colorUtils_exports.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor}};
|
|
661
665
|
`;
|
|
662
666
|
var ItemContent = styled_components_default.div`
|
|
@@ -669,6 +673,7 @@ var FixSizeItemContent = styled_components_default.div`
|
|
|
669
673
|
flex: 1;
|
|
670
674
|
position: relative;
|
|
671
675
|
box-sizing: border-box;
|
|
676
|
+
overflow: hidden !important;
|
|
672
677
|
`;
|
|
673
678
|
var withFixedSizeContainer = (Viz) => {
|
|
674
679
|
const FixedSizeContainer = (props) => {
|
|
@@ -686,7 +691,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
686
691
|
FixSizeItem,
|
|
687
692
|
{
|
|
688
693
|
"data-test": "fix-size-item",
|
|
689
|
-
"data-splunk-visualization-version": "28.2.
|
|
694
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1",
|
|
690
695
|
width,
|
|
691
696
|
height,
|
|
692
697
|
backgroundColor
|
|
@@ -715,12 +720,6 @@ var IconPlaceholder = (props) => {
|
|
|
715
720
|
iconColor,
|
|
716
721
|
backgroundColor
|
|
717
722
|
} = props;
|
|
718
|
-
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
719
|
-
setContainerWidth(w);
|
|
720
|
-
setContainerHeight(h);
|
|
721
|
-
}, []);
|
|
722
|
-
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
723
|
-
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
724
723
|
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
725
724
|
if (icon) {
|
|
726
725
|
content = react_exports.createElement(icon, {
|
|
@@ -737,7 +736,7 @@ var IconPlaceholder = (props) => {
|
|
|
737
736
|
"data-test": "icon-placeholder"
|
|
738
737
|
});
|
|
739
738
|
}
|
|
740
|
-
return /* @__PURE__ */ react_exports.createElement("div", { style: { width
|
|
739
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width, height, background: backgroundColor } }, content);
|
|
741
740
|
};
|
|
742
741
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
743
742
|
|