@splunk/visualizations 24.0.0 → 24.1.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.
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Background_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_First_And_Last.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_Some.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Fields_Columns.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Handles_Large_Data_Set.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Width.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Height.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Highlight_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_X.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_Y.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Width.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Result_Limit.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Node_Counts_False.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Value_Counts_False.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Width_Height.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_IANA_timezone.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_serialized_timezone.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_utc_timezone.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Basic_LinkGraph.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_First_and_Last_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_First_to_the_Last_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_Last_to_the_First_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Highlight_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Result_Limit_3.png +0 -0
- package/Area.config.js +4 -0
- package/Area.config.js.map +1 -1
- package/Area.js +57 -44
- package/Area.js.map +1 -1
- package/Bar.js +46 -37
- package/Bar.js.map +1 -1
- package/Bubble.js +39 -30
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +40 -39
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +46 -37
- package/Column.js.map +1 -1
- package/Ellipse.config.js +0 -4
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +20 -23
- package/Ellipse.js.map +1 -1
- package/FillerGauge.js +24 -23
- package/FillerGauge.js.map +1 -1
- package/Image.js +12 -12
- package/Image.js.map +1 -1
- package/Line.js +46 -37
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +48 -1
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +118 -54
- package/LinkGraph.js.map +1 -1
- package/Markdown.config.js +0 -4
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +11 -15
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +26 -25
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +29 -28
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +0 -4
- package/Pie.config.js.map +1 -1
- package/Pie.js +36 -31
- package/Pie.js.map +1 -1
- package/Punchcard.js +51 -50
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +0 -4
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +26 -30
- package/Rectangle.js.map +1 -1
- package/Sankey.js +51 -50
- package/Sankey.js.map +1 -1
- package/Scatter.js +168 -158
- package/Scatter.js.map +1 -1
- package/SingleValue.js +67 -67
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +8 -8
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.js +55 -54
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.js +85 -85
- package/SingleValueRadial.js.map +1 -1
- package/Table.js +66 -66
- package/Table.js.map +1 -1
- package/common/Charting.js +19 -10
- package/common/Charting.js.map +1 -1
- package/common/EventsDoc.js +3 -2
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +2 -2
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +9 -8
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +22 -22
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +2 -2
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +2 -2
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +7 -7
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/withDashboardViz.js +29 -28
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +9 -9
package/Line.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 170);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -1834,8 +1834,6 @@ module.exports = require("@splunk/charting-bundle");
|
|
|
1834
1834
|
"use strict";
|
|
1835
1835
|
|
|
1836
1836
|
|
|
1837
|
-
var _this = this;
|
|
1838
|
-
|
|
1839
1837
|
Object.defineProperty(exports, "__esModule", {
|
|
1840
1838
|
value: true
|
|
1841
1839
|
});
|
|
@@ -1861,17 +1859,19 @@ __webpack_require__(52); // fixme, @splunk/charting should be refactor to use lo
|
|
|
1861
1859
|
|
|
1862
1860
|
var charting_bundle_1 = __webpack_require__(47);
|
|
1863
1861
|
|
|
1862
|
+
var TimezoneContext_1 = __webpack_require__(53);
|
|
1863
|
+
|
|
1864
1864
|
var style_1 = __webpack_require__(13);
|
|
1865
1865
|
|
|
1866
1866
|
var styled_components_1 = __webpack_require__(4);
|
|
1867
1867
|
|
|
1868
1868
|
var Message_1 = __webpack_require__(9);
|
|
1869
1869
|
|
|
1870
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
1870
|
+
var useSplunkTheme_1 = __webpack_require__(54);
|
|
1871
1871
|
|
|
1872
|
-
var themeUtils_1 = __webpack_require__(
|
|
1872
|
+
var themeUtils_1 = __webpack_require__(55);
|
|
1873
1873
|
|
|
1874
|
-
var ChartingApi_1 = __webpack_require__(
|
|
1874
|
+
var ChartingApi_1 = __webpack_require__(56);
|
|
1875
1875
|
|
|
1876
1876
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
1877
1877
|
|
|
@@ -1967,6 +1967,7 @@ var Charting = function Charting(props) {
|
|
|
1967
1967
|
var chart = react_1.useRef();
|
|
1968
1968
|
var needsRedraw = react_1.useRef(true);
|
|
1969
1969
|
var api = react_1.useRef(new ChartingApi_1.ChartingApiFunctional(chart));
|
|
1970
|
+
var timezone = react_1.useContext(TimezoneContext_1.default);
|
|
1970
1971
|
|
|
1971
1972
|
var computeChartingSize = function computeChartingSize() {
|
|
1972
1973
|
if (container.current) {
|
|
@@ -1996,6 +1997,7 @@ var Charting = function Charting(props) {
|
|
|
1996
1997
|
onPointMouseOver = props.onPointMouseOver,
|
|
1997
1998
|
onEventTrigger = props.onEventTrigger;
|
|
1998
1999
|
var prevOptions = usePrevious(options);
|
|
2000
|
+
var prevTimezone = usePrevious(timezone);
|
|
1999
2001
|
|
|
2000
2002
|
var handleClick = function handleClick(chartEvent, type) {
|
|
2001
2003
|
var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
|
|
@@ -2079,9 +2081,9 @@ var Charting = function Charting(props) {
|
|
|
2079
2081
|
var computedChartSize = computeChartingSize();
|
|
2080
2082
|
var computedWidth = computedChartSize.width;
|
|
2081
2083
|
var computedHeight = computedChartSize.height;
|
|
2082
|
-
var serializedTimezone =
|
|
2083
|
-
var ianaTimezone =
|
|
2084
|
-
var utcOffset =
|
|
2084
|
+
var serializedTimezone = timezone === null || timezone === void 0 ? void 0 : timezone.serializedTimezone;
|
|
2085
|
+
var ianaTimezone = timezone === null || timezone === void 0 ? void 0 : timezone.ianaTimezone;
|
|
2086
|
+
var utcOffset = timezone === null || timezone === void 0 ? void 0 : timezone.utcOffset;
|
|
2085
2087
|
|
|
2086
2088
|
if (!computedWidth || !computedHeight) {
|
|
2087
2089
|
return;
|
|
@@ -2177,7 +2179,8 @@ var Charting = function Charting(props) {
|
|
|
2177
2179
|
react_1.useEffect(function () {
|
|
2178
2180
|
// TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
|
|
2179
2181
|
// seems like redraw doesn't suffice to update the background colors
|
|
2180
|
-
if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) ||
|
|
2182
|
+
if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) || // timezone is a simple object so this comparison should be fast
|
|
2183
|
+
JSON.stringify(prevTimezone) !== JSON.stringify(timezone) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
|
|
2181
2184
|
needsInit.current = true;
|
|
2182
2185
|
}
|
|
2183
2186
|
|
|
@@ -2185,7 +2188,7 @@ var Charting = function Charting(props) {
|
|
|
2185
2188
|
// otherwise a noop would occur if the onContainerMount drawChart is re-invoked when dimensions change
|
|
2186
2189
|
|
|
2187
2190
|
drawChart();
|
|
2188
|
-
}, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), themeKey, onClick]);
|
|
2191
|
+
}, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), timezone === null || timezone === void 0 ? void 0 : timezone.ianaTimezone, timezone === null || timezone === void 0 ? void 0 : timezone.utcOffset, timezone === null || timezone === void 0 ? void 0 : timezone.serializedTimezone, themeKey, onClick]);
|
|
2189
2192
|
return React.createElement(ChartingContainer, {
|
|
2190
2193
|
style: style,
|
|
2191
2194
|
ref: onContainerMount,
|
|
@@ -2262,16 +2265,22 @@ module.exports = require("@splunk/visualizations-shared/i18n");
|
|
|
2262
2265
|
/* 53 */
|
|
2263
2266
|
/***/ (function(module, exports) {
|
|
2264
2267
|
|
|
2265
|
-
module.exports = require("@splunk/
|
|
2268
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
2266
2269
|
|
|
2267
2270
|
/***/ }),
|
|
2268
2271
|
/* 54 */
|
|
2269
2272
|
/***/ (function(module, exports) {
|
|
2270
2273
|
|
|
2271
|
-
module.exports = require("@splunk/
|
|
2274
|
+
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
2272
2275
|
|
|
2273
2276
|
/***/ }),
|
|
2274
2277
|
/* 55 */
|
|
2278
|
+
/***/ (function(module, exports) {
|
|
2279
|
+
|
|
2280
|
+
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
2281
|
+
|
|
2282
|
+
/***/ }),
|
|
2283
|
+
/* 56 */
|
|
2275
2284
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2276
2285
|
|
|
2277
2286
|
"use strict";
|
|
@@ -2339,14 +2348,14 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
|
|
|
2339
2348
|
exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
2340
2349
|
|
|
2341
2350
|
/***/ }),
|
|
2342
|
-
/*
|
|
2351
|
+
/* 57 */
|
|
2343
2352
|
/***/ (function(module, exports) {
|
|
2344
2353
|
|
|
2345
2354
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
2346
2355
|
|
|
2347
2356
|
/***/ }),
|
|
2348
|
-
/*
|
|
2349
|
-
/*
|
|
2357
|
+
/* 58 */,
|
|
2358
|
+
/* 59 */
|
|
2350
2359
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2351
2360
|
|
|
2352
2361
|
"use strict";
|
|
@@ -2373,7 +2382,7 @@ var axes = {
|
|
|
2373
2382
|
exports.default = axes;
|
|
2374
2383
|
|
|
2375
2384
|
/***/ }),
|
|
2376
|
-
/*
|
|
2385
|
+
/* 60 */
|
|
2377
2386
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2378
2387
|
|
|
2379
2388
|
"use strict";
|
|
@@ -2433,7 +2442,6 @@ var legend = {
|
|
|
2433
2442
|
exports.default = legend;
|
|
2434
2443
|
|
|
2435
2444
|
/***/ }),
|
|
2436
|
-
/* 60 */,
|
|
2437
2445
|
/* 61 */,
|
|
2438
2446
|
/* 62 */,
|
|
2439
2447
|
/* 63 */,
|
|
@@ -2457,25 +2465,25 @@ exports.default = legend;
|
|
|
2457
2465
|
/* 81 */,
|
|
2458
2466
|
/* 82 */,
|
|
2459
2467
|
/* 83 */,
|
|
2460
|
-
/* 84
|
|
2468
|
+
/* 84 */,
|
|
2469
|
+
/* 85 */
|
|
2461
2470
|
/***/ (function(module, exports) {
|
|
2462
2471
|
|
|
2463
2472
|
module.exports = require("@splunk/react-icons/MissingValueSkipped");
|
|
2464
2473
|
|
|
2465
2474
|
/***/ }),
|
|
2466
|
-
/*
|
|
2475
|
+
/* 86 */
|
|
2467
2476
|
/***/ (function(module, exports) {
|
|
2468
2477
|
|
|
2469
2478
|
module.exports = require("@splunk/react-icons/MissingValueZero");
|
|
2470
2479
|
|
|
2471
2480
|
/***/ }),
|
|
2472
|
-
/*
|
|
2481
|
+
/* 87 */
|
|
2473
2482
|
/***/ (function(module, exports) {
|
|
2474
2483
|
|
|
2475
2484
|
module.exports = require("@splunk/react-icons/MissingValueJoin");
|
|
2476
2485
|
|
|
2477
2486
|
/***/ }),
|
|
2478
|
-
/* 87 */,
|
|
2479
2487
|
/* 88 */,
|
|
2480
2488
|
/* 89 */,
|
|
2481
2489
|
/* 90 */,
|
|
@@ -2505,7 +2513,8 @@ module.exports = require("@splunk/react-icons/MissingValueJoin");
|
|
|
2505
2513
|
/* 114 */,
|
|
2506
2514
|
/* 115 */,
|
|
2507
2515
|
/* 116 */,
|
|
2508
|
-
/* 117
|
|
2516
|
+
/* 117 */,
|
|
2517
|
+
/* 118 */
|
|
2509
2518
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2510
2519
|
|
|
2511
2520
|
"use strict";
|
|
@@ -2537,15 +2546,15 @@ var Charting_1 = __webpack_require__(50);
|
|
|
2537
2546
|
|
|
2538
2547
|
var charting_bundle_1 = __webpack_require__(47);
|
|
2539
2548
|
|
|
2540
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
2549
|
+
var simpleXMLOptions_1 = __webpack_require__(57);
|
|
2541
2550
|
|
|
2542
|
-
var config_1 = __webpack_require__(
|
|
2551
|
+
var config_1 = __webpack_require__(171);
|
|
2543
2552
|
|
|
2544
2553
|
exports.config = config_1.default;
|
|
2545
2554
|
|
|
2546
2555
|
var withDashboardViz_1 = __webpack_require__(27);
|
|
2547
2556
|
|
|
2548
|
-
var lineUtils_1 = __webpack_require__(
|
|
2557
|
+
var lineUtils_1 = __webpack_require__(172);
|
|
2549
2558
|
|
|
2550
2559
|
var chartingUtils_1 = __webpack_require__(46);
|
|
2551
2560
|
|
|
@@ -2627,7 +2636,6 @@ exports.themes = themes;
|
|
|
2627
2636
|
exports.default = Line;
|
|
2628
2637
|
|
|
2629
2638
|
/***/ }),
|
|
2630
|
-
/* 118 */,
|
|
2631
2639
|
/* 119 */,
|
|
2632
2640
|
/* 120 */,
|
|
2633
2641
|
/* 121 */,
|
|
@@ -2678,7 +2686,8 @@ exports.default = Line;
|
|
|
2678
2686
|
/* 166 */,
|
|
2679
2687
|
/* 167 */,
|
|
2680
2688
|
/* 168 */,
|
|
2681
|
-
/* 169
|
|
2689
|
+
/* 169 */,
|
|
2690
|
+
/* 170 */
|
|
2682
2691
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2683
2692
|
|
|
2684
2693
|
"use strict";
|
|
@@ -2708,9 +2717,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2708
2717
|
});
|
|
2709
2718
|
exports.default = void 0;
|
|
2710
2719
|
|
|
2711
|
-
__exportStar(__webpack_require__(
|
|
2720
|
+
__exportStar(__webpack_require__(118), exports);
|
|
2712
2721
|
|
|
2713
|
-
var Line_1 = __webpack_require__(
|
|
2722
|
+
var Line_1 = __webpack_require__(118);
|
|
2714
2723
|
|
|
2715
2724
|
Object.defineProperty(exports, "default", {
|
|
2716
2725
|
enumerable: true,
|
|
@@ -2720,7 +2729,7 @@ Object.defineProperty(exports, "default", {
|
|
|
2720
2729
|
});
|
|
2721
2730
|
|
|
2722
2731
|
/***/ }),
|
|
2723
|
-
/*
|
|
2732
|
+
/* 171 */
|
|
2724
2733
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2725
2734
|
|
|
2726
2735
|
"use strict";
|
|
@@ -2738,19 +2747,19 @@ var visualization_icons_1 = __webpack_require__(42);
|
|
|
2738
2747
|
|
|
2739
2748
|
var i18n_1 = __webpack_require__(3);
|
|
2740
2749
|
|
|
2741
|
-
var MissingValueSkipped_1 = __webpack_require__(
|
|
2750
|
+
var MissingValueSkipped_1 = __webpack_require__(85);
|
|
2742
2751
|
|
|
2743
|
-
var MissingValueZero_1 = __webpack_require__(
|
|
2752
|
+
var MissingValueZero_1 = __webpack_require__(86);
|
|
2744
2753
|
|
|
2745
|
-
var MissingValueJoin_1 = __webpack_require__(
|
|
2754
|
+
var MissingValueJoin_1 = __webpack_require__(87);
|
|
2746
2755
|
|
|
2747
2756
|
var pick_1 = __webpack_require__(20);
|
|
2748
2757
|
|
|
2749
2758
|
var variables_1 = __webpack_require__(19);
|
|
2750
2759
|
|
|
2751
|
-
var Axes_1 = __webpack_require__(
|
|
2760
|
+
var Axes_1 = __webpack_require__(59);
|
|
2752
2761
|
|
|
2753
|
-
var Legend_1 = __webpack_require__(
|
|
2762
|
+
var Legend_1 = __webpack_require__(60);
|
|
2754
2763
|
|
|
2755
2764
|
var BackgroundColor_1 = __webpack_require__(45);
|
|
2756
2765
|
|
|
@@ -3294,7 +3303,7 @@ var config = {
|
|
|
3294
3303
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
3295
3304
|
|
|
3296
3305
|
/***/ }),
|
|
3297
|
-
/*
|
|
3306
|
+
/* 172 */
|
|
3298
3307
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3299
3308
|
|
|
3300
3309
|
"use strict";
|