@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.
- package/Area.js +2 -2
- package/Area.js.map +1 -1
- package/Bar.config.js +1 -1
- package/Bar.config.js.map +1 -1
- package/Bar.js +3 -3
- package/Bar.js.map +1 -1
- package/Bubble.js +2 -2
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +2 -2
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +1 -1
- package/Column.config.js.map +1 -1
- package/Column.js +3 -3
- package/Column.js.map +1 -1
- package/Ellipse.js +2 -2
- package/Ellipse.js.map +1 -1
- package/Events.js +2 -2
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +1 -1
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +3 -3
- package/FillerGauge.js.map +1 -1
- package/Image.js +2 -2
- package/Image.js.map +1 -1
- package/Line.config.js +1 -1
- package/Line.config.js.map +1 -1
- package/Line.js +3 -3
- package/Line.js.map +1 -1
- package/LinkGraph.js +2219 -2561
- package/LinkGraph.js.map +1 -1
- package/Map.js +100 -91
- package/Map.js.map +1 -1
- package/Markdown.js +21 -21
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +1 -1
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +11 -11
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +31 -31
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +1 -1
- package/Pie.config.js.map +1 -1
- package/Pie.js +11 -11
- package/Pie.js.map +1 -1
- package/Punchcard.js +125 -125
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +43 -43
- package/Rectangle.js.map +1 -1
- package/Sankey.js +16 -16
- package/Sankey.js.map +1 -1
- package/Scatter.js +53 -53
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +1 -1
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +18 -16
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +4 -4
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +1 -1
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +59 -59
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +1 -1
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +58 -58
- package/SingleValueRadial.js.map +1 -1
- package/Table.js +54 -46
- package/Table.js.map +1 -1
- package/common/OverviewDoc.js +5 -5
- package/common/OverviewDoc.js.map +1 -1
- package/common/utils/mapUtils.js +3 -1
- package/common/utils/mapUtils.js.map +1 -1
- package/common/withDashboardViz.js +2 -2
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +22 -22
package/Table.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 = 472);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -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.
|
|
217
|
+
"data-splunk-visualization-version": "25.10.0 - 8d01deb08",
|
|
218
218
|
width: width,
|
|
219
219
|
height: height,
|
|
220
220
|
backgroundColor: backgroundColor
|
|
@@ -321,10 +321,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
321
321
|
exports.config = exports.PureTable = exports.themes = exports.computeVizProps = void 0;
|
|
322
322
|
var lodash_1 = __webpack_require__(3);
|
|
323
323
|
var colorUtils_1 = __webpack_require__(12);
|
|
324
|
-
var config_1 = __webpack_require__(
|
|
324
|
+
var config_1 = __webpack_require__(473);
|
|
325
325
|
exports.config = config_1.default;
|
|
326
326
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
327
|
-
var PureTable_1 = __webpack_require__(
|
|
327
|
+
var PureTable_1 = __webpack_require__(474);
|
|
328
328
|
exports.PureTable = PureTable_1.default;
|
|
329
329
|
var computeVizProps = function computeVizProps(_a) {
|
|
330
330
|
var props = __rest(_a, []);
|
|
@@ -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.
|
|
1527
|
+
'data-splunk-visualization-version': "25.10.0 - 8d01deb08"
|
|
1528
1528
|
}).withConfig({
|
|
1529
1529
|
displayName: "withEditModeCover__Blocker",
|
|
1530
1530
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1605,7 +1605,7 @@ exports.default = withPlaceholder;
|
|
|
1605
1605
|
|
|
1606
1606
|
/***/ }),
|
|
1607
1607
|
|
|
1608
|
-
/***/
|
|
1608
|
+
/***/ 472:
|
|
1609
1609
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1610
1610
|
|
|
1611
1611
|
"use strict";
|
|
@@ -1646,7 +1646,7 @@ Object.defineProperty(exports, "default", {
|
|
|
1646
1646
|
|
|
1647
1647
|
/***/ }),
|
|
1648
1648
|
|
|
1649
|
-
/***/
|
|
1649
|
+
/***/ 473:
|
|
1650
1650
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1651
1651
|
|
|
1652
1652
|
"use strict";
|
|
@@ -2358,7 +2358,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2358
2358
|
|
|
2359
2359
|
/***/ }),
|
|
2360
2360
|
|
|
2361
|
-
/***/
|
|
2361
|
+
/***/ 474:
|
|
2362
2362
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2363
2363
|
|
|
2364
2364
|
"use strict";
|
|
@@ -2393,15 +2393,15 @@ var colorUtils_1 = __webpack_require__(12);
|
|
|
2393
2393
|
var style_1 = __webpack_require__(14);
|
|
2394
2394
|
var pick_1 = __webpack_require__(23);
|
|
2395
2395
|
var variables_1 = __webpack_require__(10);
|
|
2396
|
-
var hooks_1 = __webpack_require__(
|
|
2396
|
+
var hooks_1 = __webpack_require__(475);
|
|
2397
2397
|
var consts_1 = __webpack_require__(134);
|
|
2398
|
-
var cells_1 = __webpack_require__(
|
|
2398
|
+
var cells_1 = __webpack_require__(476);
|
|
2399
2399
|
var getPagination_1 = __webpack_require__(34);
|
|
2400
2400
|
var getSorting_1 = __webpack_require__(33);
|
|
2401
2401
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
2402
2402
|
// debounce was imported this way due to typing
|
|
2403
2403
|
// eslint-disable-next-line import/order
|
|
2404
|
-
var debounce = __webpack_require__(
|
|
2404
|
+
var debounce = __webpack_require__(481);
|
|
2405
2405
|
exports.MINIMUM_COLUMN_SIZE = 30;
|
|
2406
2406
|
exports.INITIAL_UNSET_COLUMN_WIDTH = 90;
|
|
2407
2407
|
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
@@ -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;
|
|
@@ -2440,11 +2443,11 @@ var SUITableContainer = styled_components_1.default.div.withConfig({
|
|
|
2440
2443
|
return props.fontSize;
|
|
2441
2444
|
}, function (props) {
|
|
2442
2445
|
return props.lineHeight;
|
|
2443
|
-
}, function (
|
|
2444
|
-
var width =
|
|
2445
|
-
height =
|
|
2446
|
-
isPaging =
|
|
2447
|
-
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
|
|
2468
|
-
return
|
|
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.
|
|
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
|
|
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';
|
|
@@ -2490,7 +2493,8 @@ var withEmptyTableMessage = function withEmptyTableMessage(Viz) {
|
|
|
2490
2493
|
showInternalFields = props.showInternalFields,
|
|
2491
2494
|
tableFormat = props.tableFormat,
|
|
2492
2495
|
columnFormat = props.columnFormat,
|
|
2493
|
-
paginatorParams = props.paginatorParams
|
|
2496
|
+
paginatorParams = props.paginatorParams,
|
|
2497
|
+
count = props.count;
|
|
2494
2498
|
var _hooks_1$useTable = hooks_1.useTable({
|
|
2495
2499
|
headers: headers,
|
|
2496
2500
|
table: table,
|
|
@@ -2505,7 +2509,8 @@ var withEmptyTableMessage = function withEmptyTableMessage(Viz) {
|
|
|
2505
2509
|
data: lodash_1.cloneDeep(tableFormat.data)
|
|
2506
2510
|
}),
|
|
2507
2511
|
columnFormat: columnFormat,
|
|
2508
|
-
paginationOffset: paginatorParams === null || paginatorParams === void 0 ? void 0 : paginatorParams.current
|
|
2512
|
+
paginationOffset: paginatorParams === null || paginatorParams === void 0 ? void 0 : paginatorParams.current,
|
|
2513
|
+
count: count
|
|
2509
2514
|
}),
|
|
2510
2515
|
tableHeader = _hooks_1$useTable.tableHeader,
|
|
2511
2516
|
tableBody = _hooks_1$useTable.tableBody;
|
|
@@ -2708,13 +2713,14 @@ var PureTable = function PureTable(props) {
|
|
|
2708
2713
|
}).length;
|
|
2709
2714
|
var numberOfFixedHeaders = tableHeader.cells.filter(function (c) {
|
|
2710
2715
|
return c.showCell;
|
|
2711
|
-
}).filter(function (
|
|
2712
|
-
var value =
|
|
2716
|
+
}).filter(function (_ref8) {
|
|
2717
|
+
var value = _ref8.value;
|
|
2713
2718
|
var _a, _b;
|
|
2714
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';
|
|
2715
2720
|
}).length;
|
|
2716
2721
|
var isFullyFixed = numberOfHeaders === numberOfFixedHeaders;
|
|
2717
2722
|
return React.createElement(VizTableContainer, {
|
|
2723
|
+
isCellClickable: Boolean(onCellClick),
|
|
2718
2724
|
backgroundColor: backgroundColor,
|
|
2719
2725
|
ref: containerRef
|
|
2720
2726
|
}, React.createElement(SUITableContainer, {
|
|
@@ -2854,7 +2860,7 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
|
|
|
2854
2860
|
|
|
2855
2861
|
/***/ }),
|
|
2856
2862
|
|
|
2857
|
-
/***/
|
|
2863
|
+
/***/ 475:
|
|
2858
2864
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2859
2865
|
|
|
2860
2866
|
"use strict";
|
|
@@ -3077,12 +3083,14 @@ var useTable = function useTable() {
|
|
|
3077
3083
|
_tableArgs$columnForm = tableArgs.columnFormat,
|
|
3078
3084
|
columnFormat = _tableArgs$columnForm === void 0 ? {} : _tableArgs$columnForm,
|
|
3079
3085
|
_tableArgs$pagination = tableArgs.paginationOffset,
|
|
3080
|
-
paginationOffset = _tableArgs$pagination === void 0 ? 0 : _tableArgs$pagination
|
|
3086
|
+
paginationOffset = _tableArgs$pagination === void 0 ? 0 : _tableArgs$pagination,
|
|
3087
|
+
_tableArgs$count = tableArgs.count,
|
|
3088
|
+
count = _tableArgs$count === void 0 ? 0 : _tableArgs$count;
|
|
3081
3089
|
var longestColumnLength = Math.max.apply(Math, _toConsumableArray(table.map(function (column) {
|
|
3082
3090
|
return column.length;
|
|
3083
3091
|
})));
|
|
3084
3092
|
if (showRowNumbers) {
|
|
3085
|
-
var correctedPaginationOffset = Math.max(0, (paginationOffset - 1) *
|
|
3093
|
+
var correctedPaginationOffset = Math.max(0, (paginationOffset - 1) * count);
|
|
3086
3094
|
headers = ['#'].concat(_toConsumableArray(headers));
|
|
3087
3095
|
table = [Array.from({
|
|
3088
3096
|
length: longestColumnLength
|
|
@@ -3199,7 +3207,7 @@ exports.useTable = useTable;
|
|
|
3199
3207
|
|
|
3200
3208
|
/***/ }),
|
|
3201
3209
|
|
|
3202
|
-
/***/
|
|
3210
|
+
/***/ 476:
|
|
3203
3211
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3204
3212
|
|
|
3205
3213
|
"use strict";
|
|
@@ -3225,14 +3233,14 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
|
3225
3233
|
Object.defineProperty(exports, "__esModule", {
|
|
3226
3234
|
value: true
|
|
3227
3235
|
});
|
|
3236
|
+
__exportStar(__webpack_require__(477), exports);
|
|
3237
|
+
__exportStar(__webpack_require__(478), exports);
|
|
3228
3238
|
__exportStar(__webpack_require__(479), exports);
|
|
3229
3239
|
__exportStar(__webpack_require__(480), exports);
|
|
3230
|
-
__exportStar(__webpack_require__(481), exports);
|
|
3231
|
-
__exportStar(__webpack_require__(482), exports);
|
|
3232
3240
|
|
|
3233
3241
|
/***/ }),
|
|
3234
3242
|
|
|
3235
|
-
/***/
|
|
3243
|
+
/***/ 477:
|
|
3236
3244
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3237
3245
|
|
|
3238
3246
|
"use strict";
|
|
@@ -3253,14 +3261,7 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
3253
3261
|
|
|
3254
3262
|
/***/ }),
|
|
3255
3263
|
|
|
3256
|
-
/***/
|
|
3257
|
-
/***/ (function(module, exports) {
|
|
3258
|
-
|
|
3259
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3260
|
-
|
|
3261
|
-
/***/ }),
|
|
3262
|
-
|
|
3263
|
-
/***/ 480:
|
|
3264
|
+
/***/ 478:
|
|
3264
3265
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3265
3266
|
|
|
3266
3267
|
"use strict";
|
|
@@ -3295,7 +3296,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
3295
3296
|
|
|
3296
3297
|
/***/ }),
|
|
3297
3298
|
|
|
3298
|
-
/***/
|
|
3299
|
+
/***/ 479:
|
|
3299
3300
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3300
3301
|
|
|
3301
3302
|
"use strict";
|
|
@@ -3338,7 +3339,14 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
3338
3339
|
|
|
3339
3340
|
/***/ }),
|
|
3340
3341
|
|
|
3341
|
-
/***/
|
|
3342
|
+
/***/ 48:
|
|
3343
|
+
/***/ (function(module, exports) {
|
|
3344
|
+
|
|
3345
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3346
|
+
|
|
3347
|
+
/***/ }),
|
|
3348
|
+
|
|
3349
|
+
/***/ 480:
|
|
3342
3350
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3343
3351
|
|
|
3344
3352
|
"use strict";
|
|
@@ -3429,7 +3437,7 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
3429
3437
|
|
|
3430
3438
|
/***/ }),
|
|
3431
3439
|
|
|
3432
|
-
/***/
|
|
3440
|
+
/***/ 481:
|
|
3433
3441
|
/***/ (function(module, exports) {
|
|
3434
3442
|
|
|
3435
3443
|
module.exports = require("lodash/debounce");
|