@splunk/visualizations 25.9.1 → 25.11.0

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 (91) hide show
  1. package/Area.js +2 -2
  2. package/Area.js.map +1 -1
  3. package/Bar.js +2 -2
  4. package/Bar.js.map +1 -1
  5. package/Bubble.config.js +1 -1
  6. package/Bubble.config.js.map +1 -1
  7. package/Bubble.js +3 -3
  8. package/Bubble.js.map +1 -1
  9. package/ChoroplethSvg.config.js +2 -2
  10. package/ChoroplethSvg.config.js.map +1 -1
  11. package/ChoroplethSvg.js +11 -11
  12. package/ChoroplethSvg.js.map +1 -1
  13. package/Column.config.js +1 -1
  14. package/Column.config.js.map +1 -1
  15. package/Column.js +3 -3
  16. package/Column.js.map +1 -1
  17. package/Ellipse.config.js +1 -1
  18. package/Ellipse.config.js.map +1 -1
  19. package/Ellipse.js +14 -14
  20. package/Ellipse.js.map +1 -1
  21. package/Events.js +22 -20
  22. package/Events.js.map +1 -1
  23. package/FillerGauge.config.js +3 -3
  24. package/FillerGauge.config.js.map +1 -1
  25. package/FillerGauge.js +32 -22
  26. package/FillerGauge.js.map +1 -1
  27. package/Image.js +2 -2
  28. package/Image.js.map +1 -1
  29. package/Line.config.js +1 -1
  30. package/Line.config.js.map +1 -1
  31. package/Line.js +3 -3
  32. package/Line.js.map +1 -1
  33. package/LinkGraph.config.js +1 -1
  34. package/LinkGraph.config.js.map +1 -1
  35. package/LinkGraph.js +141 -109
  36. package/LinkGraph.js.map +1 -1
  37. package/Map.config.js +1 -1
  38. package/Map.config.js.map +1 -1
  39. package/Map.js +196 -139
  40. package/Map.js.map +1 -1
  41. package/Markdown.js +6 -6
  42. package/Markdown.js.map +1 -1
  43. package/MarkerGauge.config.js +2 -2
  44. package/MarkerGauge.config.js.map +1 -1
  45. package/MarkerGauge.js +32 -21
  46. package/MarkerGauge.js.map +1 -1
  47. package/ParallelCoordinates.config.js +2 -2
  48. package/ParallelCoordinates.config.js.map +1 -1
  49. package/ParallelCoordinates.js +5 -5
  50. package/ParallelCoordinates.js.map +1 -1
  51. package/Pie.js +10 -10
  52. package/Pie.js.map +1 -1
  53. package/Punchcard.config.js +1 -1
  54. package/Punchcard.config.js.map +1 -1
  55. package/Punchcard.js +5 -5
  56. package/Punchcard.js.map +1 -1
  57. package/Rectangle.config.js +1 -1
  58. package/Rectangle.config.js.map +1 -1
  59. package/Rectangle.js +13 -13
  60. package/Rectangle.js.map +1 -1
  61. package/Sankey.js +7 -7
  62. package/Sankey.js.map +1 -1
  63. package/Scatter.config.js +1 -1
  64. package/Scatter.config.js.map +1 -1
  65. package/Scatter.js +7 -5
  66. package/Scatter.js.map +1 -1
  67. package/SingleValue.config.js +3 -3
  68. package/SingleValue.config.js.map +1 -1
  69. package/SingleValue.js +8 -8
  70. package/SingleValue.js.map +1 -1
  71. package/SingleValueBasic.js +1 -1
  72. package/SingleValueBasic.js.map +1 -1
  73. package/SingleValueIcon.config.js +3 -3
  74. package/SingleValueIcon.config.js.map +1 -1
  75. package/SingleValueIcon.js +6 -6
  76. package/SingleValueIcon.js.map +1 -1
  77. package/SingleValueRadial.config.js +3 -3
  78. package/SingleValueRadial.config.js.map +1 -1
  79. package/SingleValueRadial.js +30 -19
  80. package/SingleValueRadial.js.map +1 -1
  81. package/Table.js +31 -27
  82. package/Table.js.map +1 -1
  83. package/common/GaugeValueMarker.js +20 -10
  84. package/common/GaugeValueMarker.js.map +1 -1
  85. package/common/utils/mapUtils.js +7 -4
  86. package/common/utils/mapUtils.js.map +1 -1
  87. package/common/utils/singleValueUtils.js +1 -1
  88. package/common/utils/singleValueUtils.js.map +1 -1
  89. package/common/withDashboardViz.js +2 -2
  90. package/common/withDashboardViz.js.map +1 -1
  91. package/package.json +21 -21
package/Table.js CHANGED
@@ -113,14 +113,14 @@ module.exports = require("@splunk/themes/variables");
113
113
 
114
114
  /***/ }),
115
115
 
116
- /***/ 107:
116
+ /***/ 106:
117
117
  /***/ (function(module, exports) {
118
118
 
119
119
  module.exports = require("@splunk/react-ui/Table");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 108:
123
+ /***/ 107:
124
124
  /***/ (function(module, exports) {
125
125
 
126
126
  module.exports = require("@splunk/react-sparkline/Line");
@@ -141,7 +141,7 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
141
141
 
142
142
  /***/ }),
143
143
 
144
- /***/ 123:
144
+ /***/ 122:
145
145
  /***/ (function(module, exports) {
146
146
 
147
147
  module.exports = require("@splunk/react-ui/Message");
@@ -214,7 +214,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
214
214
  }
215
215
  return React.createElement(FixSizeItem, {
216
216
  "data-test": "fix-size-item",
217
- "data-splunk-visualization-version": "25.9.1 - 5ba41e723",
217
+ "data-splunk-visualization-version": "25.11.0 - 8b45fb274",
218
218
  width: width,
219
219
  height: height,
220
220
  backgroundColor: backgroundColor
@@ -1524,7 +1524,7 @@ var Cover = styled_components_1.default.div.withConfig({
1524
1524
  componentId: "sc-1gsbnxb-0"
1525
1525
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1526
1526
  var Blocker = styled_components_1.default.div.attrs({
1527
- 'data-splunk-visualization-version': "25.9.1 - 5ba41e723"
1527
+ 'data-splunk-visualization-version': "25.11.0 - 8b45fb274"
1528
1528
  }).withConfig({
1529
1529
  displayName: "withEditModeCover__Blocker",
1530
1530
  componentId: "sc-1gsbnxb-1"
@@ -2386,9 +2386,9 @@ var T = __webpack_require__(1);
2386
2386
  var lodash_1 = __webpack_require__(3);
2387
2387
  var styled_components_1 = __webpack_require__(4);
2388
2388
  var i18n_1 = __webpack_require__(2);
2389
- var Table_1 = __webpack_require__(107);
2389
+ var Table_1 = __webpack_require__(106);
2390
2390
  var Paginator_1 = __webpack_require__(87);
2391
- var Message_1 = __webpack_require__(123);
2391
+ var Message_1 = __webpack_require__(122);
2392
2392
  var colorUtils_1 = __webpack_require__(12);
2393
2393
  var style_1 = __webpack_require__(14);
2394
2394
  var pick_1 = __webpack_require__(23);
@@ -2422,11 +2422,14 @@ var TableHeadCell = styled_components_1.default(Table_1.default.HeadCell).withCo
2422
2422
  var VizTableContainer = styled_components_1.default.div.withConfig({
2423
2423
  displayName: "PureTable__VizTableContainer",
2424
2424
  componentId: "tovzjg-3"
2425
- })(["box-sizing:border-box;padding:", ";background-color:", ";display:flex;flex-flow:column nowrap;overflow:hidden;"], pick_1.default({
2425
+ })(["box-sizing:border-box;padding:", ";background-color:", ";display:flex;flex-flow:column nowrap;overflow:hidden;td,* > td:hover{color:", ";}"], pick_1.default({
2426
2426
  enterprise: variables_1.default.spacingHalf,
2427
2427
  prisma: variables_1.default.spacingSmall
2428
2428
  }), function (props) {
2429
2429
  return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
2430
+ }, function (_ref2) {
2431
+ var isCellClickable = _ref2.isCellClickable;
2432
+ return isCellClickable ? variables_1.default.linkColor : variables_1.default.textColor;
2430
2433
  });
2431
2434
  VizTableContainer.displayName = 'VizTableContainer';
2432
2435
  var PAGINATOR_CONTAINER_HEIGHT = 38;
@@ -2434,17 +2437,17 @@ var PAGINATOR_SPACING = 5;
2434
2437
  var SUITableContainer = styled_components_1.default.div.withConfig({
2435
2438
  displayName: "PureTable__SUITableContainer",
2436
2439
  componentId: "tovzjg-4"
2437
- })(["& *{font-family:", ";font-size:", ";line-height:", ";}box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " [data-test=\"main-table\"]{", "}"], function (props) {
2440
+ })(["& *{font-family:", ";font-size:", ";line-height:", ";}box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " [data-test=\"main-table\"]{", " td{white-space:pre-line;}}"], function (props) {
2438
2441
  return props.font;
2439
2442
  }, function (props) {
2440
2443
  return props.fontSize;
2441
2444
  }, function (props) {
2442
2445
  return props.lineHeight;
2443
- }, function (_ref2) {
2444
- var width = _ref2.width,
2445
- height = _ref2.height,
2446
- isPaging = _ref2.isPaging,
2447
- theme = _ref2.theme;
2446
+ }, function (_ref3) {
2447
+ var width = _ref3.width,
2448
+ height = _ref3.height,
2449
+ isPaging = _ref3.isPaging,
2450
+ theme = _ref3.theme;
2448
2451
  var padding = pick_1.default({
2449
2452
  enterprise: variables_1.default.spacingHalf({
2450
2453
  theme: theme
@@ -2460,17 +2463,17 @@ var SUITableContainer = styled_components_1.default.div.withConfig({
2460
2463
  width: width - paddingOffset,
2461
2464
  height: isPaging ? height - PAGINATOR_CONTAINER_HEIGHT - PAGINATOR_SPACING - paddingOffset : height - paddingOffset
2462
2465
  });
2463
- }, function (_ref3) {
2464
- var isPaging = _ref3.isPaging;
2465
- return isPaging && "\n margin-bottom: ".concat(PAGINATOR_SPACING, "px;\n ");
2466
2466
  }, function (_ref4) {
2467
- var headerStyle = _ref4.headerStyle;
2468
- return headerStyle && headerStyle.backgroundColor && styled_components_1.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & [data-test='head-cell'] {\n background-color: ", ";\n }\n "])), headerStyle.backgroundColor);
2467
+ var isPaging = _ref4.isPaging;
2468
+ return isPaging && "\n margin-bottom: ".concat(PAGINATOR_SPACING, "px;\n ");
2469
2469
  }, function (_ref5) {
2470
2470
  var headerStyle = _ref5.headerStyle;
2471
- return headerStyle && headerStyle.color && styled_components_1.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & [data-test='head-cell'] > div > span {\n color: ", ";\n }\n "])), headerStyle.color);
2471
+ return headerStyle && headerStyle.backgroundColor && styled_components_1.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & [data-test='head-cell'] {\n background-color: ", ";\n }\n "])), headerStyle.backgroundColor);
2472
2472
  }, function (_ref6) {
2473
- var isFullyFixed = _ref6.isFullyFixed;
2473
+ var headerStyle = _ref6.headerStyle;
2474
+ return headerStyle && headerStyle.color && styled_components_1.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & [data-test='head-cell'] > div > span {\n color: ", ";\n }\n "])), headerStyle.color);
2475
+ }, function (_ref7) {
2476
+ var isFullyFixed = _ref7.isFullyFixed;
2474
2477
  return isFullyFixed && styled_components_1.css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: fit-content;\n min-width: unset;\n "])));
2475
2478
  });
2476
2479
  SUITableContainer.displayName = 'SUITableContainer';
@@ -2710,13 +2713,14 @@ var PureTable = function PureTable(props) {
2710
2713
  }).length;
2711
2714
  var numberOfFixedHeaders = tableHeader.cells.filter(function (c) {
2712
2715
  return c.showCell;
2713
- }).filter(function (_ref7) {
2714
- var value = _ref7.value;
2716
+ }).filter(function (_ref8) {
2717
+ var value = _ref8.value;
2715
2718
  var _a, _b;
2716
2719
  return ((_a = columns[value]) === null || _a === void 0 ? void 0 : _a.width) && ((_b = columns[value]) === null || _b === void 0 ? void 0 : _b.width) !== 'auto';
2717
2720
  }).length;
2718
2721
  var isFullyFixed = numberOfHeaders === numberOfFixedHeaders;
2719
2722
  return React.createElement(VizTableContainer, {
2723
+ isCellClickable: Boolean(onCellClick),
2720
2724
  backgroundColor: backgroundColor,
2721
2725
  ref: containerRef
2722
2726
  }, React.createElement(SUITableContainer, {
@@ -3268,7 +3272,7 @@ Object.defineProperty(exports, "__esModule", {
3268
3272
  });
3269
3273
  exports.TextCell = void 0;
3270
3274
  var React = __webpack_require__(0);
3271
- var Table_1 = __webpack_require__(107);
3275
+ var Table_1 = __webpack_require__(106);
3272
3276
  var noop = function noop() {
3273
3277
  return undefined;
3274
3278
  };
@@ -3303,7 +3307,7 @@ Object.defineProperty(exports, "__esModule", {
3303
3307
  });
3304
3308
  exports.ArrayCell = void 0;
3305
3309
  var React = __webpack_require__(0);
3306
- var Table_1 = __webpack_require__(107);
3310
+ var Table_1 = __webpack_require__(106);
3307
3311
  var noop = function noop() {
3308
3312
  return undefined;
3309
3313
  };
@@ -3354,8 +3358,8 @@ Object.defineProperty(exports, "__esModule", {
3354
3358
  });
3355
3359
  exports.SparklineCell = exports.validSparklineTypes = void 0;
3356
3360
  var React = __webpack_require__(0);
3357
- var Table_1 = __webpack_require__(107);
3358
- var Line_1 = __webpack_require__(108);
3361
+ var Table_1 = __webpack_require__(106);
3362
+ var Line_1 = __webpack_require__(107);
3359
3363
  var paddingLeftRight = 5;
3360
3364
  var paddingTopBottom = 3;
3361
3365
  var parseSparklineData = function parseSparklineData(data) {