@splunk/visualizations 25.8.1 → 25.9.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.
- package/Area.config.js +2 -2
- package/Area.config.js.map +1 -1
- package/Area.js +25 -9
- package/Area.js.map +1 -1
- package/Bar.config.js +3 -3
- package/Bar.config.js.map +1 -1
- package/Bar.js +26 -10
- package/Bar.js.map +1 -1
- package/Bubble.js +23 -7
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +20 -6
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +4 -4
- package/Column.config.js.map +1 -1
- package/Column.js +27 -11
- package/Column.js.map +1 -1
- package/Ellipse.js +20 -6
- package/Ellipse.js.map +1 -1
- package/Events.js +20 -6
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +1 -1
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +21 -7
- package/FillerGauge.js.map +1 -1
- package/Image.js +20 -6
- package/Image.js.map +1 -1
- package/Line.config.js +13 -4
- package/Line.config.js.map +1 -1
- package/Line.js +38 -12
- package/Line.js.map +1 -1
- package/LinkGraph.js +2117 -2472
- package/LinkGraph.js.map +1 -1
- package/Map.js +114 -93
- package/Map.js.map +1 -1
- package/Markdown.config.js +1 -0
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +40 -25
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +1 -1
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +29 -15
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +49 -35
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +1 -1
- package/Pie.config.js.map +1 -1
- package/Pie.js +32 -16
- package/Pie.js.map +1 -1
- package/Punchcard.js +143 -129
- package/Punchcard.js.map +1 -1
- package/README.internal.md +15 -5
- package/README.md +3 -1
- package/Rectangle.js +61 -47
- package/Rectangle.js.map +1 -1
- package/Sankey.js +34 -20
- package/Sankey.js.map +1 -1
- package/Scatter.js +74 -58
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +6 -6
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +41 -25
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +4 -4
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +10 -8
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +86 -70
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +10 -8
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +85 -69
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +1 -1
- package/Table.config.js.map +1 -1
- package/Table.js +54 -36
- package/Table.js.map +1 -1
- package/common/Charting.js +3 -1
- package/common/Charting.js.map +1 -1
- package/common/OptionsDoc.js +9 -6
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +5 -5
- package/common/OverviewDoc.js.map +1 -1
- package/common/withDashboardViz.js +20 -6
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +23 -23
package/Punchcard.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 = 438);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -200,7 +200,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
200
200
|
}
|
|
201
201
|
return React.createElement(FixSizeItem, {
|
|
202
202
|
"data-test": "fix-size-item",
|
|
203
|
-
"data-splunk-visualization-version": "25.
|
|
203
|
+
"data-splunk-visualization-version": "25.9.1 - 5ba41e723",
|
|
204
204
|
width: width,
|
|
205
205
|
height: height,
|
|
206
206
|
backgroundColor: backgroundColor
|
|
@@ -896,10 +896,18 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
896
896
|
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
897
897
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
898
898
|
visualizationID = _React$useState4[0];
|
|
899
|
-
var _React$useState5 = React.useState(
|
|
899
|
+
var _React$useState5 = React.useState({}),
|
|
900
900
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
901
|
-
|
|
902
|
-
|
|
901
|
+
dataSourcesInState = _React$useState6[0],
|
|
902
|
+
setDataSourcesInState = _React$useState6[1];
|
|
903
|
+
var _React$useState7 = React.useState(),
|
|
904
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
905
|
+
dataFramesInState = _React$useState8[0],
|
|
906
|
+
setDataFramesInState = _React$useState8[1];
|
|
907
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
908
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
909
|
+
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
910
|
+
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
903
911
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
904
912
|
try {
|
|
905
913
|
if (useAsyncEvaluatedOptions) {
|
|
@@ -922,10 +930,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
922
930
|
setUseAsyncEvaluatedOptions(false);
|
|
923
931
|
});
|
|
924
932
|
} else {
|
|
933
|
+
var dataFrames = dataFramesInState;
|
|
934
|
+
if (dataSources !== dataSourcesInState) {
|
|
935
|
+
setDataSourcesInState(dataSources);
|
|
936
|
+
dataFrames = Options_1.Options.dataFrameFromDataSource(dataSources);
|
|
937
|
+
setDataFramesInState(dataFrames);
|
|
938
|
+
}
|
|
925
939
|
return Options_1.Options.evaluate({
|
|
926
940
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
927
941
|
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
928
|
-
}, dataSources, themeFunc);
|
|
942
|
+
}, dataSources, themeFunc, dataFrames);
|
|
929
943
|
}
|
|
930
944
|
} catch (e) {
|
|
931
945
|
// eslint-disable-next-line no-console
|
|
@@ -1279,46 +1293,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1279
1293
|
|
|
1280
1294
|
/***/ }),
|
|
1281
1295
|
|
|
1282
|
-
/***/
|
|
1283
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1284
|
-
|
|
1285
|
-
"use strict";
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1289
|
-
value: true
|
|
1290
|
-
});
|
|
1291
|
-
exports.useDeepMemo = void 0;
|
|
1292
|
-
var react_1 = __webpack_require__(0);
|
|
1293
|
-
var lodash_1 = __webpack_require__(3);
|
|
1294
|
-
/**
|
|
1295
|
-
* This hook evaluates and stores the result of a passed function and only
|
|
1296
|
-
* re-evaluates the function when passed dependencies change.
|
|
1297
|
-
*
|
|
1298
|
-
* It is different from the internal React useMemo in the following aspects:
|
|
1299
|
-
* - it only stores the last evaluated result
|
|
1300
|
-
* - it uses a deep equality check to determine if dependencies have changed
|
|
1301
|
-
*
|
|
1302
|
-
* Inspired by apollo-client's useDeepMemo
|
|
1303
|
-
*
|
|
1304
|
-
* @param fn the function to be executed and
|
|
1305
|
-
* @param dependencies an array of dependencies
|
|
1306
|
-
*/
|
|
1307
|
-
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
1308
|
-
var ref = react_1.useRef();
|
|
1309
|
-
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
1310
|
-
ref.current = {
|
|
1311
|
-
dependencies: dependencies,
|
|
1312
|
-
value: fn()
|
|
1313
|
-
};
|
|
1314
|
-
}
|
|
1315
|
-
return ref.current.value;
|
|
1316
|
-
};
|
|
1317
|
-
exports.useDeepMemo = useDeepMemo;
|
|
1318
|
-
|
|
1319
|
-
/***/ }),
|
|
1320
|
-
|
|
1321
|
-
/***/ 440:
|
|
1296
|
+
/***/ 438:
|
|
1322
1297
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1323
1298
|
|
|
1324
1299
|
"use strict";
|
|
@@ -1340,10 +1315,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1340
1315
|
exports.themes = exports.computeVizProps = exports.PurePunchcard = exports.config = void 0;
|
|
1341
1316
|
var lodash_1 = __webpack_require__(3);
|
|
1342
1317
|
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
1343
|
-
var config_1 = __webpack_require__(
|
|
1318
|
+
var config_1 = __webpack_require__(439);
|
|
1344
1319
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
1345
|
-
var Punchcard_1 = __webpack_require__(
|
|
1346
|
-
var punchcardUtils_1 = __webpack_require__(
|
|
1320
|
+
var Punchcard_1 = __webpack_require__(440);
|
|
1321
|
+
var punchcardUtils_1 = __webpack_require__(448);
|
|
1347
1322
|
exports.config = config_1.default;
|
|
1348
1323
|
exports.PurePunchcard = Punchcard_1.default;
|
|
1349
1324
|
var validOptions = Object.keys(exports.config.optionsSchema);
|
|
@@ -1382,7 +1357,7 @@ exports.default = viz;
|
|
|
1382
1357
|
|
|
1383
1358
|
/***/ }),
|
|
1384
1359
|
|
|
1385
|
-
/***/
|
|
1360
|
+
/***/ 439:
|
|
1386
1361
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1387
1362
|
|
|
1388
1363
|
"use strict";
|
|
@@ -1726,7 +1701,46 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
1726
1701
|
|
|
1727
1702
|
/***/ }),
|
|
1728
1703
|
|
|
1729
|
-
/***/
|
|
1704
|
+
/***/ 44:
|
|
1705
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1706
|
+
|
|
1707
|
+
"use strict";
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1711
|
+
value: true
|
|
1712
|
+
});
|
|
1713
|
+
exports.useDeepMemo = void 0;
|
|
1714
|
+
var react_1 = __webpack_require__(0);
|
|
1715
|
+
var lodash_1 = __webpack_require__(3);
|
|
1716
|
+
/**
|
|
1717
|
+
* This hook evaluates and stores the result of a passed function and only
|
|
1718
|
+
* re-evaluates the function when passed dependencies change.
|
|
1719
|
+
*
|
|
1720
|
+
* It is different from the internal React useMemo in the following aspects:
|
|
1721
|
+
* - it only stores the last evaluated result
|
|
1722
|
+
* - it uses a deep equality check to determine if dependencies have changed
|
|
1723
|
+
*
|
|
1724
|
+
* Inspired by apollo-client's useDeepMemo
|
|
1725
|
+
*
|
|
1726
|
+
* @param fn the function to be executed and
|
|
1727
|
+
* @param dependencies an array of dependencies
|
|
1728
|
+
*/
|
|
1729
|
+
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
1730
|
+
var ref = react_1.useRef();
|
|
1731
|
+
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
1732
|
+
ref.current = {
|
|
1733
|
+
dependencies: dependencies,
|
|
1734
|
+
value: fn()
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
return ref.current.value;
|
|
1738
|
+
};
|
|
1739
|
+
exports.useDeepMemo = useDeepMemo;
|
|
1740
|
+
|
|
1741
|
+
/***/ }),
|
|
1742
|
+
|
|
1743
|
+
/***/ 440:
|
|
1730
1744
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1731
1745
|
|
|
1732
1746
|
"use strict";
|
|
@@ -1745,11 +1759,11 @@ var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
|
1745
1759
|
var style_1 = __webpack_require__(14);
|
|
1746
1760
|
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
1747
1761
|
var punchcardUtils_1 = __webpack_require__(94);
|
|
1748
|
-
var sortUtils_1 = __webpack_require__(
|
|
1749
|
-
var PunchcardAxis_1 = __webpack_require__(
|
|
1750
|
-
var PunchcardChartArea_1 = __webpack_require__(
|
|
1751
|
-
var PunchcardLegend_1 = __webpack_require__(
|
|
1752
|
-
var PunchcardGridLines_1 = __webpack_require__(
|
|
1762
|
+
var sortUtils_1 = __webpack_require__(441);
|
|
1763
|
+
var PunchcardAxis_1 = __webpack_require__(442);
|
|
1764
|
+
var PunchcardChartArea_1 = __webpack_require__(443);
|
|
1765
|
+
var PunchcardLegend_1 = __webpack_require__(446);
|
|
1766
|
+
var PunchcardGridLines_1 = __webpack_require__(447);
|
|
1753
1767
|
var Container = styled_components_1.default.div.withConfig({
|
|
1754
1768
|
displayName: "Punchcard__Container",
|
|
1755
1769
|
componentId: "orvtgq-0"
|
|
@@ -2061,7 +2075,7 @@ exports.default = Punchcard;
|
|
|
2061
2075
|
|
|
2062
2076
|
/***/ }),
|
|
2063
2077
|
|
|
2064
|
-
/***/
|
|
2078
|
+
/***/ 441:
|
|
2065
2079
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2066
2080
|
|
|
2067
2081
|
"use strict";
|
|
@@ -2327,7 +2341,7 @@ var sortAxis = function sortAxis(axis) {
|
|
|
2327
2341
|
|
|
2328
2342
|
/***/ }),
|
|
2329
2343
|
|
|
2330
|
-
/***/
|
|
2344
|
+
/***/ 442:
|
|
2331
2345
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2332
2346
|
|
|
2333
2347
|
"use strict";
|
|
@@ -2419,7 +2433,7 @@ exports.default = PunchcardAxis;
|
|
|
2419
2433
|
|
|
2420
2434
|
/***/ }),
|
|
2421
2435
|
|
|
2422
|
-
/***/
|
|
2436
|
+
/***/ 443:
|
|
2423
2437
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2424
2438
|
|
|
2425
2439
|
"use strict";
|
|
@@ -2433,7 +2447,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2433
2447
|
var React = __webpack_require__(0);
|
|
2434
2448
|
var T = __webpack_require__(1);
|
|
2435
2449
|
var punchcardUtils_1 = __webpack_require__(94);
|
|
2436
|
-
var PunchcardRow_1 = __webpack_require__(
|
|
2450
|
+
var PunchcardRow_1 = __webpack_require__(444);
|
|
2437
2451
|
var PunchcardChartArea = function PunchcardChartArea(props) {
|
|
2438
2452
|
var showBubbleLabels = props.showBubbleLabels,
|
|
2439
2453
|
bubbleRowScale = props.bubbleRowScale,
|
|
@@ -2581,7 +2595,7 @@ exports.default = PunchcardChartArea;
|
|
|
2581
2595
|
|
|
2582
2596
|
/***/ }),
|
|
2583
2597
|
|
|
2584
|
-
/***/
|
|
2598
|
+
/***/ 444:
|
|
2585
2599
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2586
2600
|
|
|
2587
2601
|
"use strict";
|
|
@@ -2593,7 +2607,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2593
2607
|
var React = __webpack_require__(0);
|
|
2594
2608
|
var T = __webpack_require__(1);
|
|
2595
2609
|
var styled_components_1 = __webpack_require__(4);
|
|
2596
|
-
var PunchcardBubble_1 = __webpack_require__(
|
|
2610
|
+
var PunchcardBubble_1 = __webpack_require__(445);
|
|
2597
2611
|
var punchcardUtils_1 = __webpack_require__(94);
|
|
2598
2612
|
var PunchcardRow = function PunchcardRow(props) {
|
|
2599
2613
|
var showBubbleLabels = props.showBubbleLabels,
|
|
@@ -2706,7 +2720,7 @@ exports.default = styled_components_1.withTheme(PunchcardRow);
|
|
|
2706
2720
|
|
|
2707
2721
|
/***/ }),
|
|
2708
2722
|
|
|
2709
|
-
/***/
|
|
2723
|
+
/***/ 445:
|
|
2710
2724
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2711
2725
|
|
|
2712
2726
|
"use strict";
|
|
@@ -2873,7 +2887,7 @@ exports.default = PunchcardBubble;
|
|
|
2873
2887
|
|
|
2874
2888
|
/***/ }),
|
|
2875
2889
|
|
|
2876
|
-
/***/
|
|
2890
|
+
/***/ 446:
|
|
2877
2891
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2878
2892
|
|
|
2879
2893
|
"use strict";
|
|
@@ -2984,7 +2998,7 @@ exports.default = PunchcardLegend;
|
|
|
2984
2998
|
|
|
2985
2999
|
/***/ }),
|
|
2986
3000
|
|
|
2987
|
-
/***/
|
|
3001
|
+
/***/ 447:
|
|
2988
3002
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2989
3003
|
|
|
2990
3004
|
"use strict";
|
|
@@ -3061,6 +3075,69 @@ exports.default = PunchcardGridLines;
|
|
|
3061
3075
|
|
|
3062
3076
|
/***/ }),
|
|
3063
3077
|
|
|
3078
|
+
/***/ 448:
|
|
3079
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3080
|
+
|
|
3081
|
+
"use strict";
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3085
|
+
value: true
|
|
3086
|
+
});
|
|
3087
|
+
exports.convertToPunchcardProperties = exports.mapToOldKey = exports.punchcardOptionValuesMapping = void 0;
|
|
3088
|
+
var lodash_1 = __webpack_require__(3);
|
|
3089
|
+
var chartingUtils_1 = __webpack_require__(55);
|
|
3090
|
+
var punchcardOptionsMapping = {
|
|
3091
|
+
legendDisplay: 'showLegend',
|
|
3092
|
+
bubbleLabelDisplay: 'showBubbleLabels',
|
|
3093
|
+
showDefaultSort: 'useDefaultSort',
|
|
3094
|
+
bubbleSizeMethod: 'bubbleScale',
|
|
3095
|
+
showDynamicBubbleSize: 'isBubbleSizeDynamic',
|
|
3096
|
+
bubbleRadiusMax: 'maxBubbleRadius',
|
|
3097
|
+
bubbleRadiusMin: 'minBubbleRadius',
|
|
3098
|
+
bubbleSizeMax: 'maxBubbleSize',
|
|
3099
|
+
bubbleSizeMin: 'minBubbleSize'
|
|
3100
|
+
};
|
|
3101
|
+
// key value mapping of what options (and their corresponding values) which
|
|
3102
|
+
// we expose in config.ts to property values PurePunchcard understands
|
|
3103
|
+
exports.punchcardOptionValuesMapping = {
|
|
3104
|
+
showLegend: {
|
|
3105
|
+
right: true,
|
|
3106
|
+
off: false
|
|
3107
|
+
},
|
|
3108
|
+
showBubbleLabels: {
|
|
3109
|
+
off: 'none'
|
|
3110
|
+
},
|
|
3111
|
+
colorMode: {
|
|
3112
|
+
dynamic: 'sequential'
|
|
3113
|
+
}
|
|
3114
|
+
};
|
|
3115
|
+
/**
|
|
3116
|
+
* Helper method to update the option names which can be mapped to PurePunchcard options
|
|
3117
|
+
* @method mapToOldKey
|
|
3118
|
+
* @param {Object} options
|
|
3119
|
+
* @returns {Object}
|
|
3120
|
+
*/
|
|
3121
|
+
var mapToOldKey = function mapToOldKey(options) {
|
|
3122
|
+
return lodash_1.mapKeys(options, function (val, key) {
|
|
3123
|
+
return punchcardOptionsMapping[key] ? punchcardOptionsMapping[key] : key;
|
|
3124
|
+
});
|
|
3125
|
+
};
|
|
3126
|
+
exports.mapToOldKey = mapToOldKey;
|
|
3127
|
+
/**
|
|
3128
|
+
* Chained helper for mapping the option properties (and values) we expose in config.ts into property values that PurePunchcard accepts
|
|
3129
|
+
* This is for options that has new key name and can not directly be mapped with PurePunchcard props
|
|
3130
|
+
* @method convertToPunchcardProperties
|
|
3131
|
+
* @param {Object} originalOptions
|
|
3132
|
+
* @returns {Object}
|
|
3133
|
+
*/
|
|
3134
|
+
var convertToPunchcardProperties = function convertToPunchcardProperties(originalOptions) {
|
|
3135
|
+
return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(exports.punchcardOptionValuesMapping)).value();
|
|
3136
|
+
};
|
|
3137
|
+
exports.convertToPunchcardProperties = convertToPunchcardProperties;
|
|
3138
|
+
|
|
3139
|
+
/***/ }),
|
|
3140
|
+
|
|
3064
3141
|
/***/ 45:
|
|
3065
3142
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3066
3143
|
|
|
@@ -3130,69 +3207,6 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
3130
3207
|
|
|
3131
3208
|
/***/ }),
|
|
3132
3209
|
|
|
3133
|
-
/***/ 450:
|
|
3134
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3135
|
-
|
|
3136
|
-
"use strict";
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3140
|
-
value: true
|
|
3141
|
-
});
|
|
3142
|
-
exports.convertToPunchcardProperties = exports.mapToOldKey = exports.punchcardOptionValuesMapping = void 0;
|
|
3143
|
-
var lodash_1 = __webpack_require__(3);
|
|
3144
|
-
var chartingUtils_1 = __webpack_require__(55);
|
|
3145
|
-
var punchcardOptionsMapping = {
|
|
3146
|
-
legendDisplay: 'showLegend',
|
|
3147
|
-
bubbleLabelDisplay: 'showBubbleLabels',
|
|
3148
|
-
showDefaultSort: 'useDefaultSort',
|
|
3149
|
-
bubbleSizeMethod: 'bubbleScale',
|
|
3150
|
-
showDynamicBubbleSize: 'isBubbleSizeDynamic',
|
|
3151
|
-
bubbleRadiusMax: 'maxBubbleRadius',
|
|
3152
|
-
bubbleRadiusMin: 'minBubbleRadius',
|
|
3153
|
-
bubbleSizeMax: 'maxBubbleSize',
|
|
3154
|
-
bubbleSizeMin: 'minBubbleSize'
|
|
3155
|
-
};
|
|
3156
|
-
// key value mapping of what options (and their corresponding values) which
|
|
3157
|
-
// we expose in config.ts to property values PurePunchcard understands
|
|
3158
|
-
exports.punchcardOptionValuesMapping = {
|
|
3159
|
-
showLegend: {
|
|
3160
|
-
right: true,
|
|
3161
|
-
off: false
|
|
3162
|
-
},
|
|
3163
|
-
showBubbleLabels: {
|
|
3164
|
-
off: 'none'
|
|
3165
|
-
},
|
|
3166
|
-
colorMode: {
|
|
3167
|
-
dynamic: 'sequential'
|
|
3168
|
-
}
|
|
3169
|
-
};
|
|
3170
|
-
/**
|
|
3171
|
-
* Helper method to update the option names which can be mapped to PurePunchcard options
|
|
3172
|
-
* @method mapToOldKey
|
|
3173
|
-
* @param {Object} options
|
|
3174
|
-
* @returns {Object}
|
|
3175
|
-
*/
|
|
3176
|
-
var mapToOldKey = function mapToOldKey(options) {
|
|
3177
|
-
return lodash_1.mapKeys(options, function (val, key) {
|
|
3178
|
-
return punchcardOptionsMapping[key] ? punchcardOptionsMapping[key] : key;
|
|
3179
|
-
});
|
|
3180
|
-
};
|
|
3181
|
-
exports.mapToOldKey = mapToOldKey;
|
|
3182
|
-
/**
|
|
3183
|
-
* Chained helper for mapping the option properties (and values) we expose in config.ts into property values that PurePunchcard accepts
|
|
3184
|
-
* This is for options that has new key name and can not directly be mapped with PurePunchcard props
|
|
3185
|
-
* @method convertToPunchcardProperties
|
|
3186
|
-
* @param {Object} originalOptions
|
|
3187
|
-
* @returns {Object}
|
|
3188
|
-
*/
|
|
3189
|
-
var convertToPunchcardProperties = function convertToPunchcardProperties(originalOptions) {
|
|
3190
|
-
return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(exports.punchcardOptionValuesMapping)).value();
|
|
3191
|
-
};
|
|
3192
|
-
exports.convertToPunchcardProperties = convertToPunchcardProperties;
|
|
3193
|
-
|
|
3194
|
-
/***/ }),
|
|
3195
|
-
|
|
3196
3210
|
/***/ 46:
|
|
3197
3211
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3198
3212
|
|
|
@@ -3210,7 +3224,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3210
3224
|
componentId: "sc-1gsbnxb-0"
|
|
3211
3225
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3212
3226
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3213
|
-
'data-splunk-visualization-version': "25.
|
|
3227
|
+
'data-splunk-visualization-version': "25.9.1 - 5ba41e723"
|
|
3214
3228
|
}).withConfig({
|
|
3215
3229
|
displayName: "withEditModeCover__Blocker",
|
|
3216
3230
|
componentId: "sc-1gsbnxb-1"
|