@splunk/visualizations 27.1.0 → 27.2.1

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.
Files changed (52) hide show
  1. package/Area.js +2 -2
  2. package/Bar.js +2 -2
  3. package/Bubble.js +2 -2
  4. package/ChoroplethSvg.js +6 -9
  5. package/ChoroplethSvg.js.map +3 -3
  6. package/Column.js +2 -2
  7. package/Ellipse.js +2 -2
  8. package/Events.js +106 -491
  9. package/Events.js.map +4 -4
  10. package/FillerGauge.js +3 -3
  11. package/FillerGauge.js.map +3 -3
  12. package/Image.js +2 -2
  13. package/Line.js +2 -2
  14. package/LinkGraph.js +23 -18
  15. package/LinkGraph.js.map +2 -2
  16. package/Map.config.js +114 -72
  17. package/Map.config.js.map +4 -4
  18. package/Map.js +139 -86
  19. package/Map.js.map +4 -4
  20. package/Markdown.js +2 -2
  21. package/MarkerGauge.js +2 -2
  22. package/ParallelCoordinates.js +3 -3
  23. package/ParallelCoordinates.js.map +3 -3
  24. package/Pie.js +2 -2
  25. package/Punchcard.js +199 -26
  26. package/Punchcard.js.map +4 -4
  27. package/Rectangle.js +2 -2
  28. package/Sankey.js +2 -2
  29. package/Scatter.js +2 -2
  30. package/SingleValue.js +19 -9
  31. package/SingleValue.js.map +3 -3
  32. package/SingleValueBasic.js +1 -1
  33. package/SingleValueBasic.js.map +3 -3
  34. package/SingleValueIcon.js +380 -117
  35. package/SingleValueIcon.js.map +4 -4
  36. package/SingleValueRadial.js +16 -9
  37. package/SingleValueRadial.js.map +3 -3
  38. package/SparkLine.js +1 -1
  39. package/SparkLine.js.map +3 -3
  40. package/Table.js +15 -10
  41. package/Table.js.map +3 -3
  42. package/Timeline.config.js +418 -0
  43. package/Timeline.config.js.map +7 -0
  44. package/Timeline.js +3074 -0
  45. package/Timeline.js.map +7 -0
  46. package/common/OptionsDoc.js +2 -2
  47. package/common/OptionsDoc.js.map +1 -1
  48. package/common/utils/mapUtils.js.map +2 -2
  49. package/common/utils/singleValueUtils.js +18 -8
  50. package/common/utils/singleValueUtils.js.map +2 -2
  51. package/common/withDashboardViz.js +2 -2
  52. package/package.json +43 -31
package/Image.js CHANGED
@@ -603,7 +603,7 @@ var withFixedSizeContainer = (Viz) => {
603
603
  FixSizeItem,
604
604
  {
605
605
  "data-test": "fix-size-item",
606
- "data-splunk-visualization-version": "27.1.0 - fe8b048df",
606
+ "data-splunk-visualization-version": "27.2.1 - 41b7410be",
607
607
  width,
608
608
  height,
609
609
  backgroundColor
@@ -669,7 +669,7 @@ var Cover = styled_components_default.div`
669
669
  bottom: 0;
670
670
  `;
671
671
  var Blocker = styled_components_default.div.attrs({
672
- "data-splunk-visualization-version": "27.1.0 - fe8b048df"
672
+ "data-splunk-visualization-version": "27.2.1 - 41b7410be"
673
673
  })`
674
674
  position: relative;
675
675
  width: 100%;
package/Line.js CHANGED
@@ -2722,7 +2722,7 @@ var withFixedSizeContainer = (Viz) => {
2722
2722
  FixSizeItem,
2723
2723
  {
2724
2724
  "data-test": "fix-size-item",
2725
- "data-splunk-visualization-version": "27.1.0 - fe8b048df",
2725
+ "data-splunk-visualization-version": "27.2.1 - 41b7410be",
2726
2726
  width,
2727
2727
  height,
2728
2728
  backgroundColor
@@ -2788,7 +2788,7 @@ var Cover = styled_components_default.div`
2788
2788
  bottom: 0;
2789
2789
  `;
2790
2790
  var Blocker = styled_components_default.div.attrs({
2791
- "data-splunk-visualization-version": "27.1.0 - fe8b048df"
2791
+ "data-splunk-visualization-version": "27.2.1 - 41b7410be"
2792
2792
  })`
2793
2793
  position: relative;
2794
2794
  width: 100%;
package/LinkGraph.js CHANGED
@@ -3048,7 +3048,7 @@ var withFixedSizeContainer = (Viz) => {
3048
3048
  FixSizeItem,
3049
3049
  {
3050
3050
  "data-test": "fix-size-item",
3051
- "data-splunk-visualization-version": "27.1.0 - fe8b048df",
3051
+ "data-splunk-visualization-version": "27.2.1 - 41b7410be",
3052
3052
  width,
3053
3053
  height,
3054
3054
  backgroundColor
@@ -3118,7 +3118,7 @@ var Cover = styled_components_default.div`
3118
3118
  bottom: 0;
3119
3119
  `;
3120
3120
  var Blocker = styled_components_default.div.attrs({
3121
- "data-splunk-visualization-version": "27.1.0 - fe8b048df"
3121
+ "data-splunk-visualization-version": "27.2.1 - 41b7410be"
3122
3122
  })`
3123
3123
  position: relative;
3124
3124
  width: 100%;
@@ -4254,6 +4254,10 @@ var StyledViewport = styled_components_default.div`
4254
4254
  }
4255
4255
  }
4256
4256
 
4257
+ .node:focus {
4258
+ box-shadow: ${variables_default.focusShadow};
4259
+ }
4260
+
4257
4261
  .node.hovering {
4258
4262
  background: ${(props) => props.nodeHighlightColor};
4259
4263
  p:not(.badge) {
@@ -4752,7 +4756,9 @@ var Nodes = (props) => {
4752
4756
  style: { visibility: props.nodes[key].data.isHidden ? "hidden" : "visible" },
4753
4757
  onClick: () => props.onNodeClick(key),
4754
4758
  onMouseEnter: () => props.handleMouseEnterNode(key),
4755
- onMouseLeave: () => props.handleMouseLeave()
4759
+ onMouseLeave: () => props.handleMouseLeave(),
4760
+ onFocus: () => props.handleMouseEnterNode(key),
4761
+ onBlur: () => props.handleMouseLeave()
4756
4762
  },
4757
4763
  /* @__PURE__ */ react_exports.createElement(
4758
4764
  NodeToUse,
@@ -5111,6 +5117,7 @@ var StyledFields = styled_components_default.div`
5111
5117
  justify-content: space-between;
5112
5118
  align-items: center;
5113
5119
  max-height: 30px;
5120
+ z-index: 1;
5114
5121
 
5115
5122
  > div:last-child {
5116
5123
  margin-right: 16px;
@@ -5126,9 +5133,7 @@ var StyledFields = styled_components_default.div`
5126
5133
  background: transparent !important;
5127
5134
  padding: 0;
5128
5135
  border: none;
5129
- border-radius: !important;
5130
5136
  font-size: 12px !important;
5131
- box-shadow: none !important;
5132
5137
  }
5133
5138
 
5134
5139
  > button > span {
@@ -5230,7 +5235,18 @@ var PureLinkGraph = (props) => {
5230
5235
  width,
5231
5236
  "data-test": "link-graph"
5232
5237
  },
5233
- /* @__PURE__ */ react_exports.createElement(LinkGraphContainer, { "data-test-render-count": value, height, width }, /* @__PURE__ */ react_exports.createElement(
5238
+ /* @__PURE__ */ react_exports.createElement(LinkGraphContainer, { "data-test-render-count": value, height, width }, /* @__PURE__ */ react_exports.createElement(StyledFields, { nodeWidth, nodeSpacingX }, Object.keys(graphDataModelState.fields).map((field, index) => /* @__PURE__ */ react_exports.createElement(
5239
+ Field_default,
5240
+ {
5241
+ showNodeCounts,
5242
+ "data-test": `field-${index}`,
5243
+ key: field,
5244
+ onSort: (sortKey) => handleFieldSort(graphDataModelState.fields[field].value, sortKey),
5245
+ field: graphDataModelState.fields[field].value,
5246
+ width: nodeWidth,
5247
+ count: graphDataModelState.fields[field].count
5248
+ }
5249
+ ))), /* @__PURE__ */ react_exports.createElement(
5234
5250
  Graph_default,
5235
5251
  {
5236
5252
  linkColor,
@@ -5246,18 +5262,7 @@ var PureLinkGraph = (props) => {
5246
5262
  metadataFields,
5247
5263
  metadataColumns
5248
5264
  }
5249
- ), /* @__PURE__ */ react_exports.createElement(StyledFields, { nodeWidth, nodeSpacingX }, Object.keys(graphDataModelState.fields).map((field, index) => /* @__PURE__ */ react_exports.createElement(
5250
- Field_default,
5251
- {
5252
- showNodeCounts,
5253
- "data-test": `field-${index}`,
5254
- key: field,
5255
- onSort: (sortKey) => handleFieldSort(graphDataModelState.fields[field].value, sortKey),
5256
- field: graphDataModelState.fields[field].value,
5257
- width: nodeWidth,
5258
- count: graphDataModelState.fields[field].count
5259
- }
5260
- ))))
5265
+ ))
5261
5266
  );
5262
5267
  };
5263
5268
  PureLinkGraph.propTypes = {