@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/Events.js
CHANGED
|
@@ -489,7 +489,7 @@ var Cover = styled_components_default.div`
|
|
|
489
489
|
bottom: 0;
|
|
490
490
|
`;
|
|
491
491
|
var Blocker = styled_components_default.div.attrs({
|
|
492
|
-
"data-splunk-visualization-version": "28.2.
|
|
492
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1"
|
|
493
493
|
})`
|
|
494
494
|
position: relative;
|
|
495
495
|
width: 100%;
|
|
@@ -546,14 +546,18 @@ var FixSizeItem = styled_components_default.div.attrs(
|
|
|
546
546
|
({
|
|
547
547
|
width,
|
|
548
548
|
height
|
|
549
|
-
}) =>
|
|
550
|
-
|
|
551
|
-
|
|
549
|
+
}) => {
|
|
550
|
+
const validHeight = typeof height === "number" ? Math.max(height, 1) : height;
|
|
551
|
+
return {
|
|
552
|
+
style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), validHeight && { height: (0, style_exports.toPx)(validHeight) })
|
|
553
|
+
};
|
|
554
|
+
}
|
|
552
555
|
)`
|
|
553
556
|
position: relative;
|
|
554
557
|
flex-direction: column;
|
|
555
558
|
flex: 1;
|
|
556
559
|
display: flex;
|
|
560
|
+
overflow: hidden !important;
|
|
557
561
|
background-color: ${(props) => (0, colorUtils_exports.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor}};
|
|
558
562
|
`;
|
|
559
563
|
var ItemContent = styled_components_default.div`
|
|
@@ -566,6 +570,7 @@ var FixSizeItemContent = styled_components_default.div`
|
|
|
566
570
|
flex: 1;
|
|
567
571
|
position: relative;
|
|
568
572
|
box-sizing: border-box;
|
|
573
|
+
overflow: hidden !important;
|
|
569
574
|
`;
|
|
570
575
|
var withFixedSizeContainer = (Viz) => {
|
|
571
576
|
const FixedSizeContainer = (props) => {
|
|
@@ -583,7 +588,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
583
588
|
FixSizeItem,
|
|
584
589
|
{
|
|
585
590
|
"data-test": "fix-size-item",
|
|
586
|
-
"data-splunk-visualization-version": "28.2.
|
|
591
|
+
"data-splunk-visualization-version": "28.2.2 - b595a32f1",
|
|
587
592
|
width,
|
|
588
593
|
height,
|
|
589
594
|
backgroundColor
|
|
@@ -612,12 +617,6 @@ var IconPlaceholder = (props) => {
|
|
|
612
617
|
iconColor,
|
|
613
618
|
backgroundColor
|
|
614
619
|
} = props;
|
|
615
|
-
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
616
|
-
setContainerWidth(w);
|
|
617
|
-
setContainerHeight(h);
|
|
618
|
-
}, []);
|
|
619
|
-
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
620
|
-
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
621
620
|
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
622
621
|
if (icon) {
|
|
623
622
|
content = react_exports.createElement(icon, {
|
|
@@ -634,7 +633,7 @@ var IconPlaceholder = (props) => {
|
|
|
634
633
|
"data-test": "icon-placeholder"
|
|
635
634
|
});
|
|
636
635
|
}
|
|
637
|
-
return /* @__PURE__ */ react_exports.createElement("div", { style: { width
|
|
636
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width, height, background: backgroundColor } }, content);
|
|
638
637
|
};
|
|
639
638
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
640
639
|
|