@splunk/visualizations 25.9.0 → 25.10.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 (75) hide show
  1. package/Area.js +2 -2
  2. package/Area.js.map +1 -1
  3. package/Bar.config.js +1 -1
  4. package/Bar.config.js.map +1 -1
  5. package/Bar.js +3 -3
  6. package/Bar.js.map +1 -1
  7. package/Bubble.js +2 -2
  8. package/Bubble.js.map +1 -1
  9. package/ChoroplethSvg.js +2 -2
  10. package/ChoroplethSvg.js.map +1 -1
  11. package/Column.config.js +1 -1
  12. package/Column.config.js.map +1 -1
  13. package/Column.js +3 -3
  14. package/Column.js.map +1 -1
  15. package/Ellipse.js +2 -2
  16. package/Ellipse.js.map +1 -1
  17. package/Events.js +2 -2
  18. package/Events.js.map +1 -1
  19. package/FillerGauge.config.js +1 -1
  20. package/FillerGauge.config.js.map +1 -1
  21. package/FillerGauge.js +3 -3
  22. package/FillerGauge.js.map +1 -1
  23. package/Image.js +2 -2
  24. package/Image.js.map +1 -1
  25. package/Line.config.js +1 -1
  26. package/Line.config.js.map +1 -1
  27. package/Line.js +3 -3
  28. package/Line.js.map +1 -1
  29. package/LinkGraph.js +2219 -2561
  30. package/LinkGraph.js.map +1 -1
  31. package/Map.js +100 -91
  32. package/Map.js.map +1 -1
  33. package/Markdown.js +21 -21
  34. package/Markdown.js.map +1 -1
  35. package/MarkerGauge.config.js +1 -1
  36. package/MarkerGauge.config.js.map +1 -1
  37. package/MarkerGauge.js +11 -11
  38. package/MarkerGauge.js.map +1 -1
  39. package/ParallelCoordinates.js +31 -31
  40. package/ParallelCoordinates.js.map +1 -1
  41. package/Pie.config.js +1 -1
  42. package/Pie.config.js.map +1 -1
  43. package/Pie.js +11 -11
  44. package/Pie.js.map +1 -1
  45. package/Punchcard.js +125 -125
  46. package/Punchcard.js.map +1 -1
  47. package/Rectangle.js +43 -43
  48. package/Rectangle.js.map +1 -1
  49. package/Sankey.js +16 -16
  50. package/Sankey.js.map +1 -1
  51. package/Scatter.js +53 -53
  52. package/Scatter.js.map +1 -1
  53. package/SingleValue.config.js +1 -1
  54. package/SingleValue.config.js.map +1 -1
  55. package/SingleValue.js +18 -16
  56. package/SingleValue.js.map +1 -1
  57. package/SingleValueBasic.js +4 -4
  58. package/SingleValueBasic.js.map +1 -1
  59. package/SingleValueIcon.config.js +1 -1
  60. package/SingleValueIcon.config.js.map +1 -1
  61. package/SingleValueIcon.js +59 -59
  62. package/SingleValueIcon.js.map +1 -1
  63. package/SingleValueRadial.config.js +1 -1
  64. package/SingleValueRadial.config.js.map +1 -1
  65. package/SingleValueRadial.js +58 -58
  66. package/SingleValueRadial.js.map +1 -1
  67. package/Table.js +54 -46
  68. package/Table.js.map +1 -1
  69. package/common/OverviewDoc.js +5 -5
  70. package/common/OverviewDoc.js.map +1 -1
  71. package/common/utils/mapUtils.js +3 -1
  72. package/common/utils/mapUtils.js.map +1 -1
  73. package/common/withDashboardViz.js +2 -2
  74. package/common/withDashboardViz.js.map +1 -1
  75. package/package.json +22 -22
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 = 440);
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.9.0 - 933e6a539",
203
+ "data-splunk-visualization-version": "25.10.0 - 8d01deb08",
204
204
  width: width,
205
205
  height: height,
206
206
  backgroundColor: backgroundColor
@@ -1293,46 +1293,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1293
1293
 
1294
1294
  /***/ }),
1295
1295
 
1296
- /***/ 44:
1297
- /***/ (function(module, exports, __webpack_require__) {
1298
-
1299
- "use strict";
1300
-
1301
-
1302
- Object.defineProperty(exports, "__esModule", {
1303
- value: true
1304
- });
1305
- exports.useDeepMemo = void 0;
1306
- var react_1 = __webpack_require__(0);
1307
- var lodash_1 = __webpack_require__(3);
1308
- /**
1309
- * This hook evaluates and stores the result of a passed function and only
1310
- * re-evaluates the function when passed dependencies change.
1311
- *
1312
- * It is different from the internal React useMemo in the following aspects:
1313
- * - it only stores the last evaluated result
1314
- * - it uses a deep equality check to determine if dependencies have changed
1315
- *
1316
- * Inspired by apollo-client's useDeepMemo
1317
- *
1318
- * @param fn the function to be executed and
1319
- * @param dependencies an array of dependencies
1320
- */
1321
- var useDeepMemo = function useDeepMemo(fn, dependencies) {
1322
- var ref = react_1.useRef();
1323
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1324
- ref.current = {
1325
- dependencies: dependencies,
1326
- value: fn()
1327
- };
1328
- }
1329
- return ref.current.value;
1330
- };
1331
- exports.useDeepMemo = useDeepMemo;
1332
-
1333
- /***/ }),
1334
-
1335
- /***/ 440:
1296
+ /***/ 438:
1336
1297
  /***/ (function(module, exports, __webpack_require__) {
1337
1298
 
1338
1299
  "use strict";
@@ -1354,10 +1315,10 @@ Object.defineProperty(exports, "__esModule", {
1354
1315
  exports.themes = exports.computeVizProps = exports.PurePunchcard = exports.config = void 0;
1355
1316
  var lodash_1 = __webpack_require__(3);
1356
1317
  var visualization_color_palettes_1 = __webpack_require__(50);
1357
- var config_1 = __webpack_require__(441);
1318
+ var config_1 = __webpack_require__(439);
1358
1319
  var withDashboardViz_1 = __webpack_require__(36);
1359
- var Punchcard_1 = __webpack_require__(442);
1360
- var punchcardUtils_1 = __webpack_require__(450);
1320
+ var Punchcard_1 = __webpack_require__(440);
1321
+ var punchcardUtils_1 = __webpack_require__(448);
1361
1322
  exports.config = config_1.default;
1362
1323
  exports.PurePunchcard = Punchcard_1.default;
1363
1324
  var validOptions = Object.keys(exports.config.optionsSchema);
@@ -1396,7 +1357,7 @@ exports.default = viz;
1396
1357
 
1397
1358
  /***/ }),
1398
1359
 
1399
- /***/ 441:
1360
+ /***/ 439:
1400
1361
  /***/ (function(module, exports, __webpack_require__) {
1401
1362
 
1402
1363
  "use strict";
@@ -1740,7 +1701,46 @@ exports.default = configUtils_1.enhanceConfig(config);
1740
1701
 
1741
1702
  /***/ }),
1742
1703
 
1743
- /***/ 442:
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:
1744
1744
  /***/ (function(module, exports, __webpack_require__) {
1745
1745
 
1746
1746
  "use strict";
@@ -1759,11 +1759,11 @@ var SizeAwareWrapper_1 = __webpack_require__(18);
1759
1759
  var style_1 = __webpack_require__(14);
1760
1760
  var visualization_color_palettes_1 = __webpack_require__(50);
1761
1761
  var punchcardUtils_1 = __webpack_require__(94);
1762
- var sortUtils_1 = __webpack_require__(443);
1763
- var PunchcardAxis_1 = __webpack_require__(444);
1764
- var PunchcardChartArea_1 = __webpack_require__(445);
1765
- var PunchcardLegend_1 = __webpack_require__(448);
1766
- var PunchcardGridLines_1 = __webpack_require__(449);
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);
1767
1767
  var Container = styled_components_1.default.div.withConfig({
1768
1768
  displayName: "Punchcard__Container",
1769
1769
  componentId: "orvtgq-0"
@@ -2075,7 +2075,7 @@ exports.default = Punchcard;
2075
2075
 
2076
2076
  /***/ }),
2077
2077
 
2078
- /***/ 443:
2078
+ /***/ 441:
2079
2079
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2080
2080
 
2081
2081
  "use strict";
@@ -2341,7 +2341,7 @@ var sortAxis = function sortAxis(axis) {
2341
2341
 
2342
2342
  /***/ }),
2343
2343
 
2344
- /***/ 444:
2344
+ /***/ 442:
2345
2345
  /***/ (function(module, exports, __webpack_require__) {
2346
2346
 
2347
2347
  "use strict";
@@ -2433,7 +2433,7 @@ exports.default = PunchcardAxis;
2433
2433
 
2434
2434
  /***/ }),
2435
2435
 
2436
- /***/ 445:
2436
+ /***/ 443:
2437
2437
  /***/ (function(module, exports, __webpack_require__) {
2438
2438
 
2439
2439
  "use strict";
@@ -2447,7 +2447,7 @@ Object.defineProperty(exports, "__esModule", {
2447
2447
  var React = __webpack_require__(0);
2448
2448
  var T = __webpack_require__(1);
2449
2449
  var punchcardUtils_1 = __webpack_require__(94);
2450
- var PunchcardRow_1 = __webpack_require__(446);
2450
+ var PunchcardRow_1 = __webpack_require__(444);
2451
2451
  var PunchcardChartArea = function PunchcardChartArea(props) {
2452
2452
  var showBubbleLabels = props.showBubbleLabels,
2453
2453
  bubbleRowScale = props.bubbleRowScale,
@@ -2595,7 +2595,7 @@ exports.default = PunchcardChartArea;
2595
2595
 
2596
2596
  /***/ }),
2597
2597
 
2598
- /***/ 446:
2598
+ /***/ 444:
2599
2599
  /***/ (function(module, exports, __webpack_require__) {
2600
2600
 
2601
2601
  "use strict";
@@ -2607,7 +2607,7 @@ Object.defineProperty(exports, "__esModule", {
2607
2607
  var React = __webpack_require__(0);
2608
2608
  var T = __webpack_require__(1);
2609
2609
  var styled_components_1 = __webpack_require__(4);
2610
- var PunchcardBubble_1 = __webpack_require__(447);
2610
+ var PunchcardBubble_1 = __webpack_require__(445);
2611
2611
  var punchcardUtils_1 = __webpack_require__(94);
2612
2612
  var PunchcardRow = function PunchcardRow(props) {
2613
2613
  var showBubbleLabels = props.showBubbleLabels,
@@ -2720,7 +2720,7 @@ exports.default = styled_components_1.withTheme(PunchcardRow);
2720
2720
 
2721
2721
  /***/ }),
2722
2722
 
2723
- /***/ 447:
2723
+ /***/ 445:
2724
2724
  /***/ (function(module, exports, __webpack_require__) {
2725
2725
 
2726
2726
  "use strict";
@@ -2887,7 +2887,7 @@ exports.default = PunchcardBubble;
2887
2887
 
2888
2888
  /***/ }),
2889
2889
 
2890
- /***/ 448:
2890
+ /***/ 446:
2891
2891
  /***/ (function(module, exports, __webpack_require__) {
2892
2892
 
2893
2893
  "use strict";
@@ -2998,7 +2998,7 @@ exports.default = PunchcardLegend;
2998
2998
 
2999
2999
  /***/ }),
3000
3000
 
3001
- /***/ 449:
3001
+ /***/ 447:
3002
3002
  /***/ (function(module, exports, __webpack_require__) {
3003
3003
 
3004
3004
  "use strict";
@@ -3075,6 +3075,69 @@ exports.default = PunchcardGridLines;
3075
3075
 
3076
3076
  /***/ }),
3077
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
+
3078
3141
  /***/ 45:
3079
3142
  /***/ (function(module, exports, __webpack_require__) {
3080
3143
 
@@ -3144,69 +3207,6 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3144
3207
 
3145
3208
  /***/ }),
3146
3209
 
3147
- /***/ 450:
3148
- /***/ (function(module, exports, __webpack_require__) {
3149
-
3150
- "use strict";
3151
-
3152
-
3153
- Object.defineProperty(exports, "__esModule", {
3154
- value: true
3155
- });
3156
- exports.convertToPunchcardProperties = exports.mapToOldKey = exports.punchcardOptionValuesMapping = void 0;
3157
- var lodash_1 = __webpack_require__(3);
3158
- var chartingUtils_1 = __webpack_require__(55);
3159
- var punchcardOptionsMapping = {
3160
- legendDisplay: 'showLegend',
3161
- bubbleLabelDisplay: 'showBubbleLabels',
3162
- showDefaultSort: 'useDefaultSort',
3163
- bubbleSizeMethod: 'bubbleScale',
3164
- showDynamicBubbleSize: 'isBubbleSizeDynamic',
3165
- bubbleRadiusMax: 'maxBubbleRadius',
3166
- bubbleRadiusMin: 'minBubbleRadius',
3167
- bubbleSizeMax: 'maxBubbleSize',
3168
- bubbleSizeMin: 'minBubbleSize'
3169
- };
3170
- // key value mapping of what options (and their corresponding values) which
3171
- // we expose in config.ts to property values PurePunchcard understands
3172
- exports.punchcardOptionValuesMapping = {
3173
- showLegend: {
3174
- right: true,
3175
- off: false
3176
- },
3177
- showBubbleLabels: {
3178
- off: 'none'
3179
- },
3180
- colorMode: {
3181
- dynamic: 'sequential'
3182
- }
3183
- };
3184
- /**
3185
- * Helper method to update the option names which can be mapped to PurePunchcard options
3186
- * @method mapToOldKey
3187
- * @param {Object} options
3188
- * @returns {Object}
3189
- */
3190
- var mapToOldKey = function mapToOldKey(options) {
3191
- return lodash_1.mapKeys(options, function (val, key) {
3192
- return punchcardOptionsMapping[key] ? punchcardOptionsMapping[key] : key;
3193
- });
3194
- };
3195
- exports.mapToOldKey = mapToOldKey;
3196
- /**
3197
- * Chained helper for mapping the option properties (and values) we expose in config.ts into property values that PurePunchcard accepts
3198
- * This is for options that has new key name and can not directly be mapped with PurePunchcard props
3199
- * @method convertToPunchcardProperties
3200
- * @param {Object} originalOptions
3201
- * @returns {Object}
3202
- */
3203
- var convertToPunchcardProperties = function convertToPunchcardProperties(originalOptions) {
3204
- return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(exports.punchcardOptionValuesMapping)).value();
3205
- };
3206
- exports.convertToPunchcardProperties = convertToPunchcardProperties;
3207
-
3208
- /***/ }),
3209
-
3210
3210
  /***/ 46:
3211
3211
  /***/ (function(module, exports, __webpack_require__) {
3212
3212
 
@@ -3224,7 +3224,7 @@ var Cover = styled_components_1.default.div.withConfig({
3224
3224
  componentId: "sc-1gsbnxb-0"
3225
3225
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3226
3226
  var Blocker = styled_components_1.default.div.attrs({
3227
- 'data-splunk-visualization-version': "25.9.0 - 933e6a539"
3227
+ 'data-splunk-visualization-version': "25.10.0 - 8d01deb08"
3228
3228
  }).withConfig({
3229
3229
  displayName: "withEditModeCover__Blocker",
3230
3230
  componentId: "sc-1gsbnxb-1"