@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/Ellipse.js
CHANGED
|
@@ -923,7 +923,7 @@ var Cover = styled_components_default.div`
|
|
|
923
923
|
bottom: 0;
|
|
924
924
|
`;
|
|
925
925
|
var Blocker = styled_components_default.div.attrs({
|
|
926
|
-
"data-splunk-visualization-version": "28.2.
|
|
926
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1"
|
|
927
927
|
})`
|
|
928
928
|
position: relative;
|
|
929
929
|
width: 100%;
|
|
@@ -971,14 +971,18 @@ var FixSizeItem = styled_components_default.div.attrs(
|
|
|
971
971
|
({
|
|
972
972
|
width,
|
|
973
973
|
height
|
|
974
|
-
}) =>
|
|
975
|
-
|
|
976
|
-
|
|
974
|
+
}) => {
|
|
975
|
+
const validHeight = typeof height === "number" ? Math.max(height, 1) : height;
|
|
976
|
+
return {
|
|
977
|
+
style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), validHeight && { height: (0, style_exports.toPx)(validHeight) })
|
|
978
|
+
};
|
|
979
|
+
}
|
|
977
980
|
)`
|
|
978
981
|
position: relative;
|
|
979
982
|
flex-direction: column;
|
|
980
983
|
flex: 1;
|
|
981
984
|
display: flex;
|
|
985
|
+
overflow: hidden !important;
|
|
982
986
|
background-color: ${(props) => (0, colorUtils_exports.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor}};
|
|
983
987
|
`;
|
|
984
988
|
var ItemContent = styled_components_default.div`
|
|
@@ -991,6 +995,7 @@ var FixSizeItemContent = styled_components_default.div`
|
|
|
991
995
|
flex: 1;
|
|
992
996
|
position: relative;
|
|
993
997
|
box-sizing: border-box;
|
|
998
|
+
overflow: hidden !important;
|
|
994
999
|
`;
|
|
995
1000
|
var withFixedSizeContainer = (Viz) => {
|
|
996
1001
|
const FixedSizeContainer = (props) => {
|
|
@@ -1008,7 +1013,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1008
1013
|
FixSizeItem,
|
|
1009
1014
|
{
|
|
1010
1015
|
"data-test": "fix-size-item",
|
|
1011
|
-
"data-splunk-visualization-version": "28.2.
|
|
1016
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1",
|
|
1012
1017
|
width,
|
|
1013
1018
|
height,
|
|
1014
1019
|
backgroundColor
|
|
@@ -1037,12 +1042,6 @@ var IconPlaceholder = (props) => {
|
|
|
1037
1042
|
iconColor,
|
|
1038
1043
|
backgroundColor
|
|
1039
1044
|
} = props;
|
|
1040
|
-
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
1041
|
-
setContainerWidth(w);
|
|
1042
|
-
setContainerHeight(h);
|
|
1043
|
-
}, []);
|
|
1044
|
-
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
1045
|
-
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
1046
1045
|
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
1047
1046
|
if (icon) {
|
|
1048
1047
|
content = react_exports.createElement(icon, {
|
|
@@ -1059,7 +1058,7 @@ var IconPlaceholder = (props) => {
|
|
|
1059
1058
|
"data-test": "icon-placeholder"
|
|
1060
1059
|
});
|
|
1061
1060
|
}
|
|
1062
|
-
return /* @__PURE__ */ react_exports.createElement("div", { style: { width
|
|
1061
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width, height, background: backgroundColor } }, content);
|
|
1063
1062
|
};
|
|
1064
1063
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
1065
1064
|
|