@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/FillerGauge.js
CHANGED
|
@@ -985,7 +985,7 @@ var Cover = styled_components_default.div`
|
|
|
985
985
|
bottom: 0;
|
|
986
986
|
`;
|
|
987
987
|
var Blocker = styled_components_default.div.attrs({
|
|
988
|
-
"data-splunk-visualization-version": "28.2.
|
|
988
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1"
|
|
989
989
|
})`
|
|
990
990
|
position: relative;
|
|
991
991
|
width: 100%;
|
|
@@ -1033,14 +1033,18 @@ var FixSizeItem = styled_components_default.div.attrs(
|
|
|
1033
1033
|
({
|
|
1034
1034
|
width,
|
|
1035
1035
|
height
|
|
1036
|
-
}) =>
|
|
1037
|
-
|
|
1038
|
-
|
|
1036
|
+
}) => {
|
|
1037
|
+
const validHeight = typeof height === "number" ? Math.max(height, 1) : height;
|
|
1038
|
+
return {
|
|
1039
|
+
style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), validHeight && { height: (0, style_exports.toPx)(validHeight) })
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1039
1042
|
)`
|
|
1040
1043
|
position: relative;
|
|
1041
1044
|
flex-direction: column;
|
|
1042
1045
|
flex: 1;
|
|
1043
1046
|
display: flex;
|
|
1047
|
+
overflow: hidden !important;
|
|
1044
1048
|
background-color: ${(props) => (0, colorUtils_exports.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor}};
|
|
1045
1049
|
`;
|
|
1046
1050
|
var ItemContent = styled_components_default.div`
|
|
@@ -1053,6 +1057,7 @@ var FixSizeItemContent = styled_components_default.div`
|
|
|
1053
1057
|
flex: 1;
|
|
1054
1058
|
position: relative;
|
|
1055
1059
|
box-sizing: border-box;
|
|
1060
|
+
overflow: hidden !important;
|
|
1056
1061
|
`;
|
|
1057
1062
|
var withFixedSizeContainer = (Viz) => {
|
|
1058
1063
|
const FixedSizeContainer = (props) => {
|
|
@@ -1070,7 +1075,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1070
1075
|
FixSizeItem,
|
|
1071
1076
|
{
|
|
1072
1077
|
"data-test": "fix-size-item",
|
|
1073
|
-
"data-splunk-visualization-version": "28.2.
|
|
1078
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1",
|
|
1074
1079
|
width,
|
|
1075
1080
|
height,
|
|
1076
1081
|
backgroundColor
|
|
@@ -1099,12 +1104,6 @@ var IconPlaceholder = (props) => {
|
|
|
1099
1104
|
iconColor,
|
|
1100
1105
|
backgroundColor
|
|
1101
1106
|
} = props;
|
|
1102
|
-
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
1103
|
-
setContainerWidth(w);
|
|
1104
|
-
setContainerHeight(h);
|
|
1105
|
-
}, []);
|
|
1106
|
-
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
1107
|
-
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
1108
1107
|
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
1109
1108
|
if (icon) {
|
|
1110
1109
|
content = react_exports.createElement(icon, {
|
|
@@ -1121,7 +1120,7 @@ var IconPlaceholder = (props) => {
|
|
|
1121
1120
|
"data-test": "icon-placeholder"
|
|
1122
1121
|
});
|
|
1123
1122
|
}
|
|
1124
|
-
return /* @__PURE__ */ react_exports.createElement("div", { style: { width
|
|
1123
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width, height, background: backgroundColor } }, content);
|
|
1125
1124
|
};
|
|
1126
1125
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
1127
1126
|
|