@splunk/visualizations 24.1.0 → 24.2.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 +137 -117
- package/Area.js.map +1 -1
- package/Bar.js +130 -110
- package/Bar.js.map +1 -1
- package/Bubble.js +123 -103
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +121 -101
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +130 -110
- package/Column.js.map +1 -1
- package/Ellipse.js +95 -75
- package/Ellipse.js.map +1 -1
- package/FillerGauge.js +114 -94
- package/FillerGauge.js.map +1 -1
- package/Image.js +85 -64
- package/Image.js.map +1 -1
- package/Line.js +130 -110
- package/Line.js.map +1 -1
- package/LinkGraph.js +137 -117
- package/LinkGraph.js.map +1 -1
- package/Markdown.js +86 -65
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +111 -91
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +119 -99
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +117 -97
- package/Pie.js.map +1 -1
- package/Punchcard.js +147 -127
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +103 -82
- package/Rectangle.js.map +1 -1
- package/Sankey.js +138 -118
- package/Sankey.js.map +1 -1
- package/Scatter.js +218 -197
- package/Scatter.js.map +1 -1
- package/SingleValue.js +313 -292
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +20 -20
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.js +144 -124
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.js +278 -257
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +9 -1
- package/Table.config.js.map +1 -1
- package/Table.js +291 -262
- package/Table.js.map +1 -1
- package/common/Charting.js +22 -21
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +15 -14
- 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 +7 -6
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +22 -22
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +16 -16
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +4 -4
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +13 -13
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/version.js +110 -0
- package/common/version.js.map +1 -0
- package/common/withDashboardViz.js +67 -47
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +14 -13
- package/scripts/generateVersion.js +13 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueRadial_Trend_Indicator_Position_pushed_below_value_does_not_fit_inside_of_radial.png +0 -0
package/SingleValue.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 = 233);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -113,7 +113,7 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 103:
|
|
117
117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
118
118
|
|
|
119
119
|
"use strict";
|
|
@@ -154,7 +154,7 @@ exports.defaultContext = {
|
|
|
154
154
|
|
|
155
155
|
/***/ }),
|
|
156
156
|
|
|
157
|
-
/***/
|
|
157
|
+
/***/ 104:
|
|
158
158
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
159
159
|
|
|
160
160
|
"use strict";
|
|
@@ -274,12 +274,14 @@ var React = __webpack_require__(1);
|
|
|
274
274
|
|
|
275
275
|
var styled_components_1 = __webpack_require__(4);
|
|
276
276
|
|
|
277
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
277
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
278
278
|
|
|
279
|
-
var style_1 = __webpack_require__(
|
|
279
|
+
var style_1 = __webpack_require__(14);
|
|
280
280
|
|
|
281
281
|
var colorUtils_1 = __webpack_require__(11);
|
|
282
282
|
|
|
283
|
+
var version_1 = __webpack_require__(13);
|
|
284
|
+
|
|
283
285
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
284
286
|
var width = _ref.width;
|
|
285
287
|
return {
|
|
@@ -335,6 +337,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
335
337
|
|
|
336
338
|
return React.createElement(FixSizeItem, {
|
|
337
339
|
"data-test": "fix-size-item",
|
|
340
|
+
"data-splunk-visualization-version": version_1.version,
|
|
338
341
|
width: width,
|
|
339
342
|
height: height,
|
|
340
343
|
backgroundColor: backgroundColor
|
|
@@ -357,20 +360,34 @@ exports.default = withFixedSizeContainer;
|
|
|
357
360
|
/***/ }),
|
|
358
361
|
|
|
359
362
|
/***/ 13:
|
|
363
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
364
|
+
|
|
365
|
+
"use strict";
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
Object.defineProperty(exports, "__esModule", {
|
|
369
|
+
value: true
|
|
370
|
+
});
|
|
371
|
+
exports.version = void 0;
|
|
372
|
+
exports.version = '24.2.0';
|
|
373
|
+
|
|
374
|
+
/***/ }),
|
|
375
|
+
|
|
376
|
+
/***/ 14:
|
|
360
377
|
/***/ (function(module, exports) {
|
|
361
378
|
|
|
362
379
|
module.exports = require("@splunk/visualizations-shared/style");
|
|
363
380
|
|
|
364
381
|
/***/ }),
|
|
365
382
|
|
|
366
|
-
/***/
|
|
383
|
+
/***/ 15:
|
|
367
384
|
/***/ (function(module, exports) {
|
|
368
385
|
|
|
369
386
|
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
370
387
|
|
|
371
388
|
/***/ }),
|
|
372
389
|
|
|
373
|
-
/***/
|
|
390
|
+
/***/ 16:
|
|
374
391
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
375
392
|
|
|
376
393
|
"use strict";
|
|
@@ -409,13 +426,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
409
426
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
410
427
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
411
428
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
412
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
429
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
|
|
413
430
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
414
|
-
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
431
|
+
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45);
|
|
415
432
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
416
|
-
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
433
|
+
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19);
|
|
417
434
|
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
418
|
-
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
435
|
+
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41);
|
|
419
436
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
|
|
420
437
|
|
|
421
438
|
|
|
@@ -1379,31 +1396,24 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
1379
1396
|
|
|
1380
1397
|
/***/ }),
|
|
1381
1398
|
|
|
1382
|
-
/***/ 16:
|
|
1383
|
-
/***/ (function(module, exports) {
|
|
1384
|
-
|
|
1385
|
-
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1386
|
-
|
|
1387
|
-
/***/ }),
|
|
1388
|
-
|
|
1389
1399
|
/***/ 17:
|
|
1390
1400
|
/***/ (function(module, exports) {
|
|
1391
1401
|
|
|
1392
|
-
module.exports = require("@
|
|
1402
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1393
1403
|
|
|
1394
1404
|
/***/ }),
|
|
1395
1405
|
|
|
1396
1406
|
/***/ 18:
|
|
1397
1407
|
/***/ (function(module, exports) {
|
|
1398
1408
|
|
|
1399
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
1409
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
1400
1410
|
|
|
1401
1411
|
/***/ }),
|
|
1402
1412
|
|
|
1403
1413
|
/***/ 19:
|
|
1404
1414
|
/***/ (function(module, exports) {
|
|
1405
1415
|
|
|
1406
|
-
module.exports = require("@splunk/
|
|
1416
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
1407
1417
|
|
|
1408
1418
|
/***/ }),
|
|
1409
1419
|
|
|
@@ -1417,96 +1427,32 @@ module.exports = require("lodash");
|
|
|
1417
1427
|
/***/ 20:
|
|
1418
1428
|
/***/ (function(module, exports) {
|
|
1419
1429
|
|
|
1420
|
-
module.exports = require("@splunk/themes/
|
|
1430
|
+
module.exports = require("@splunk/themes/variables");
|
|
1421
1431
|
|
|
1422
1432
|
/***/ }),
|
|
1423
1433
|
|
|
1424
1434
|
/***/ 21:
|
|
1425
1435
|
/***/ (function(module, exports) {
|
|
1426
1436
|
|
|
1427
|
-
module.exports = require("@splunk/
|
|
1437
|
+
module.exports = require("@splunk/themes/pick");
|
|
1428
1438
|
|
|
1429
1439
|
/***/ }),
|
|
1430
1440
|
|
|
1431
1441
|
/***/ 22:
|
|
1432
1442
|
/***/ (function(module, exports) {
|
|
1433
1443
|
|
|
1434
|
-
module.exports = require("@
|
|
1444
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1435
1445
|
|
|
1436
1446
|
/***/ }),
|
|
1437
1447
|
|
|
1438
1448
|
/***/ 23:
|
|
1439
|
-
/***/ (function(module, exports
|
|
1440
|
-
|
|
1441
|
-
"use strict";
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
var _defineProperty = __webpack_require__(7);
|
|
1445
|
-
|
|
1446
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1447
|
-
value: true
|
|
1448
|
-
});
|
|
1449
|
-
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1450
|
-
|
|
1451
|
-
var T = __webpack_require__(0);
|
|
1452
|
-
|
|
1453
|
-
var lodash_1 = __webpack_require__(2);
|
|
1454
|
-
|
|
1455
|
-
var DataSource_1 = __webpack_require__(33);
|
|
1456
|
-
|
|
1457
|
-
exports.SortParamsPropTypes = T.shape({
|
|
1458
|
-
currentSortKey: T.string,
|
|
1459
|
-
currentSortDir: T.oneOf(DataSource_1.validSortDirs),
|
|
1460
|
-
onSort: T.func
|
|
1461
|
-
});
|
|
1462
|
-
|
|
1463
|
-
var getSortingParams = function getSortingParams(_ref) {
|
|
1464
|
-
var requestParams = _ref.requestParams,
|
|
1465
|
-
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
1466
|
-
var currentSortKey;
|
|
1467
|
-
var currentSortDir;
|
|
1468
|
-
var nextSortDirMap = {
|
|
1469
|
-
asc: 'desc',
|
|
1470
|
-
desc: 'asc',
|
|
1471
|
-
none: 'asc'
|
|
1472
|
-
};
|
|
1473
|
-
var onSort;
|
|
1474
|
-
|
|
1475
|
-
if (lodash_1.isFunction(onRequestParamsChange)) {
|
|
1476
|
-
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
1477
|
-
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
1478
|
-
currentSortDir = requestParams.sort[currentSortKey];
|
|
1479
|
-
} // undid memoization since there is a dependency on requestParams, which is a deeply nested object
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
onSort = function onSort(e, _ref2) {
|
|
1483
|
-
var sortKey = _ref2.sortKey,
|
|
1484
|
-
sortDir = _ref2.sortDir;
|
|
1485
|
-
|
|
1486
|
-
if (typeof sortKey === 'string') {
|
|
1487
|
-
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
1488
|
-
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
1489
|
-
offset: 0,
|
|
1490
|
-
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
1491
|
-
}));
|
|
1492
|
-
} else {
|
|
1493
|
-
onRequestParamsChange(requestParams);
|
|
1494
|
-
}
|
|
1495
|
-
};
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
return {
|
|
1499
|
-
currentSortKey: currentSortKey,
|
|
1500
|
-
currentSortDir: currentSortDir,
|
|
1501
|
-
onSort: onSort
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1449
|
+
/***/ (function(module, exports) {
|
|
1504
1450
|
|
|
1505
|
-
exports
|
|
1451
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
1506
1452
|
|
|
1507
1453
|
/***/ }),
|
|
1508
1454
|
|
|
1509
|
-
/***/
|
|
1455
|
+
/***/ 233:
|
|
1510
1456
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1511
1457
|
|
|
1512
1458
|
"use strict";
|
|
@@ -1517,13 +1463,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1517
1463
|
});
|
|
1518
1464
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
1519
1465
|
|
|
1520
|
-
var SingleValue_1 = __webpack_require__(
|
|
1466
|
+
var SingleValue_1 = __webpack_require__(256);
|
|
1521
1467
|
|
|
1522
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
1468
|
+
var withDashboardViz_1 = __webpack_require__(28);
|
|
1523
1469
|
|
|
1524
|
-
var singleValueUtils_1 = __webpack_require__(
|
|
1470
|
+
var singleValueUtils_1 = __webpack_require__(16);
|
|
1525
1471
|
|
|
1526
|
-
var config_1 = __webpack_require__(
|
|
1472
|
+
var config_1 = __webpack_require__(234);
|
|
1527
1473
|
|
|
1528
1474
|
exports.config = config_1.default;
|
|
1529
1475
|
exports.PureSingleValue = SingleValue_1.default;
|
|
@@ -1562,7 +1508,7 @@ exports.default = viz;
|
|
|
1562
1508
|
|
|
1563
1509
|
/***/ }),
|
|
1564
1510
|
|
|
1565
|
-
/***/
|
|
1511
|
+
/***/ 234:
|
|
1566
1512
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1567
1513
|
|
|
1568
1514
|
"use strict";
|
|
@@ -1574,39 +1520,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1574
1520
|
|
|
1575
1521
|
var i18n_1 = __webpack_require__(3);
|
|
1576
1522
|
|
|
1577
|
-
var schemaUtils_1 = __webpack_require__(
|
|
1523
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
1578
1524
|
|
|
1579
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
1525
|
+
var PresetPalettes_1 = __webpack_require__(49);
|
|
1580
1526
|
|
|
1581
|
-
var variables_1 = __webpack_require__(
|
|
1527
|
+
var variables_1 = __webpack_require__(235);
|
|
1582
1528
|
|
|
1583
|
-
var pick_1 = __webpack_require__(
|
|
1529
|
+
var pick_1 = __webpack_require__(21);
|
|
1584
1530
|
|
|
1585
|
-
var variables_2 = __webpack_require__(
|
|
1531
|
+
var variables_2 = __webpack_require__(20);
|
|
1586
1532
|
|
|
1587
|
-
var visualization_icons_1 = __webpack_require__(
|
|
1533
|
+
var visualization_icons_1 = __webpack_require__(43);
|
|
1588
1534
|
|
|
1589
|
-
var singleValueContext_1 = __webpack_require__(
|
|
1535
|
+
var singleValueContext_1 = __webpack_require__(103);
|
|
1590
1536
|
|
|
1591
1537
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1592
1538
|
|
|
1593
|
-
var DynamicMajorColorEditor_1 = __webpack_require__(
|
|
1539
|
+
var DynamicMajorColorEditor_1 = __webpack_require__(77);
|
|
1594
1540
|
|
|
1595
|
-
var DynamicTrendColorEditor_1 = __webpack_require__(
|
|
1541
|
+
var DynamicTrendColorEditor_1 = __webpack_require__(78);
|
|
1596
1542
|
|
|
1597
|
-
var DynamicBackgroundColorEditor_1 = __webpack_require__(
|
|
1543
|
+
var DynamicBackgroundColorEditor_1 = __webpack_require__(79);
|
|
1598
1544
|
|
|
1599
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
1545
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(104);
|
|
1600
1546
|
|
|
1601
|
-
var StaticMajorColorEditor_1 = __webpack_require__(
|
|
1547
|
+
var StaticMajorColorEditor_1 = __webpack_require__(80);
|
|
1602
1548
|
|
|
1603
|
-
var StaticTrendColorEditor_1 = __webpack_require__(
|
|
1549
|
+
var StaticTrendColorEditor_1 = __webpack_require__(81);
|
|
1604
1550
|
|
|
1605
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
1551
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(69);
|
|
1606
1552
|
|
|
1607
1553
|
var configUtils_1 = __webpack_require__(6);
|
|
1608
1554
|
|
|
1609
|
-
var VizCategory_1 = __webpack_require__(
|
|
1555
|
+
var VizCategory_1 = __webpack_require__(27);
|
|
1610
1556
|
|
|
1611
1557
|
var dataContract = {
|
|
1612
1558
|
requiredDataSources: [{
|
|
@@ -2085,7 +2031,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2085
2031
|
|
|
2086
2032
|
/***/ }),
|
|
2087
2033
|
|
|
2088
|
-
/***/
|
|
2034
|
+
/***/ 235:
|
|
2089
2035
|
/***/ (function(module, exports) {
|
|
2090
2036
|
|
|
2091
2037
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
@@ -2098,6 +2044,77 @@ module.exports = require("@splunk/visualization-themes/variables");
|
|
|
2098
2044
|
"use strict";
|
|
2099
2045
|
|
|
2100
2046
|
|
|
2047
|
+
var _defineProperty = __webpack_require__(7);
|
|
2048
|
+
|
|
2049
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2050
|
+
value: true
|
|
2051
|
+
});
|
|
2052
|
+
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
2053
|
+
|
|
2054
|
+
var T = __webpack_require__(0);
|
|
2055
|
+
|
|
2056
|
+
var lodash_1 = __webpack_require__(2);
|
|
2057
|
+
|
|
2058
|
+
var DataSource_1 = __webpack_require__(34);
|
|
2059
|
+
|
|
2060
|
+
exports.SortParamsPropTypes = T.shape({
|
|
2061
|
+
currentSortKey: T.string,
|
|
2062
|
+
currentSortDir: T.oneOf(DataSource_1.validSortDirs),
|
|
2063
|
+
onSort: T.func
|
|
2064
|
+
});
|
|
2065
|
+
|
|
2066
|
+
var getSortingParams = function getSortingParams(_ref) {
|
|
2067
|
+
var requestParams = _ref.requestParams,
|
|
2068
|
+
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
2069
|
+
var currentSortKey;
|
|
2070
|
+
var currentSortDir;
|
|
2071
|
+
var nextSortDirMap = {
|
|
2072
|
+
asc: 'desc',
|
|
2073
|
+
desc: 'asc',
|
|
2074
|
+
none: 'asc'
|
|
2075
|
+
};
|
|
2076
|
+
var onSort;
|
|
2077
|
+
|
|
2078
|
+
if (lodash_1.isFunction(onRequestParamsChange)) {
|
|
2079
|
+
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
2080
|
+
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
2081
|
+
currentSortDir = requestParams.sort[currentSortKey];
|
|
2082
|
+
} // undid memoization since there is a dependency on requestParams, which is a deeply nested object
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
onSort = function onSort(e, _ref2) {
|
|
2086
|
+
var sortKey = _ref2.sortKey,
|
|
2087
|
+
sortDir = _ref2.sortDir;
|
|
2088
|
+
|
|
2089
|
+
if (typeof sortKey === 'string') {
|
|
2090
|
+
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
2091
|
+
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
2092
|
+
offset: 0,
|
|
2093
|
+
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
2094
|
+
}));
|
|
2095
|
+
} else {
|
|
2096
|
+
onRequestParamsChange(requestParams);
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
return {
|
|
2102
|
+
currentSortKey: currentSortKey,
|
|
2103
|
+
currentSortDir: currentSortDir,
|
|
2104
|
+
onSort: onSort
|
|
2105
|
+
};
|
|
2106
|
+
};
|
|
2107
|
+
|
|
2108
|
+
exports.getSortingParams = getSortingParams;
|
|
2109
|
+
|
|
2110
|
+
/***/ }),
|
|
2111
|
+
|
|
2112
|
+
/***/ 25:
|
|
2113
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2114
|
+
|
|
2115
|
+
"use strict";
|
|
2116
|
+
|
|
2117
|
+
|
|
2101
2118
|
Object.defineProperty(exports, "__esModule", {
|
|
2102
2119
|
value: true
|
|
2103
2120
|
});
|
|
@@ -2157,96 +2174,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
2157
2174
|
|
|
2158
2175
|
/***/ }),
|
|
2159
2176
|
|
|
2160
|
-
/***/
|
|
2161
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2162
|
-
|
|
2163
|
-
"use strict";
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2167
|
-
value: true
|
|
2168
|
-
});
|
|
2169
|
-
exports.shouldShowIconPlaceholder = void 0;
|
|
2170
|
-
|
|
2171
|
-
var React = __webpack_require__(1);
|
|
2172
|
-
|
|
2173
|
-
var T = __webpack_require__(0);
|
|
2174
|
-
|
|
2175
|
-
var lodash_1 = __webpack_require__(2);
|
|
2176
|
-
|
|
2177
|
-
var i18n_1 = __webpack_require__(3);
|
|
2178
|
-
|
|
2179
|
-
var Message_1 = __webpack_require__(9);
|
|
2180
|
-
|
|
2181
|
-
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
2182
|
-
/**
|
|
2183
|
-
* @method shouldShowIconPlaceholder
|
|
2184
|
-
* @param {object} dataSources
|
|
2185
|
-
* @param {boolean} loading
|
|
2186
|
-
* @returns {boolean}
|
|
2187
|
-
*/
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
2191
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
2192
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
2193
|
-
var noData = data === undefined;
|
|
2194
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
2195
|
-
var noFields = fields === undefined;
|
|
2196
|
-
return loading || noData || noFields;
|
|
2197
|
-
};
|
|
2198
|
-
|
|
2199
|
-
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
2200
|
-
var propTypes = {
|
|
2201
|
-
icon: T.func,
|
|
2202
|
-
width: T.oneOfType([T.string, T.number]),
|
|
2203
|
-
height: T.oneOfType([T.string, T.number]),
|
|
2204
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
2205
|
-
backgroundColor: T.string
|
|
2206
|
-
};
|
|
2207
|
-
/**
|
|
2208
|
-
* @method IconPlaceholder
|
|
2209
|
-
* @param {IconPlaceholderProps} props
|
|
2210
|
-
* @returns {React.ReactElement}
|
|
2211
|
-
*/
|
|
2212
|
-
|
|
2213
|
-
var IconPlaceholder = function IconPlaceholder(props) {
|
|
2214
|
-
var width = props.width,
|
|
2215
|
-
height = props.height,
|
|
2216
|
-
icon = props.icon;
|
|
2217
|
-
|
|
2218
|
-
if (icon) {
|
|
2219
|
-
return React.createElement(icon, {
|
|
2220
|
-
style: {
|
|
2221
|
-
left: '50%',
|
|
2222
|
-
top: '50%',
|
|
2223
|
-
color: 'grey',
|
|
2224
|
-
position: 'absolute',
|
|
2225
|
-
transform: 'translate(-50%, -50%)'
|
|
2226
|
-
},
|
|
2227
|
-
width: '50%',
|
|
2228
|
-
height: '50%'
|
|
2229
|
-
});
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
return React.createElement(Message_1.default, {
|
|
2233
|
-
width: width,
|
|
2234
|
-
height: height,
|
|
2235
|
-
level: "warning",
|
|
2236
|
-
message: i18n_1._('No DataSource Connected')
|
|
2237
|
-
});
|
|
2238
|
-
};
|
|
2239
|
-
|
|
2240
|
-
IconPlaceholder.propTypes = propTypes;
|
|
2241
|
-
IconPlaceholder.defaultProps = {
|
|
2242
|
-
width: '100%',
|
|
2243
|
-
height: 250
|
|
2244
|
-
};
|
|
2245
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
2246
|
-
|
|
2247
|
-
/***/ }),
|
|
2248
|
-
|
|
2249
|
-
/***/ 255:
|
|
2177
|
+
/***/ 256:
|
|
2250
2178
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2251
2179
|
|
|
2252
2180
|
"use strict";
|
|
@@ -2258,7 +2186,7 @@ __webpack_require__.d(__webpack_exports__, "CONTENT_OVERFLOW_FADEOUT_AREA_PX", f
|
|
|
2258
2186
|
__webpack_require__.d(__webpack_exports__, "DEFAULT_CONTENT_HEIGHT_ALLOCATION_RATIO", function() { return /* binding */ DEFAULT_CONTENT_HEIGHT_ALLOCATION_RATIO; });
|
|
2259
2187
|
|
|
2260
2188
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/extends"
|
|
2261
|
-
var extends_ = __webpack_require__(
|
|
2189
|
+
var extends_ = __webpack_require__(44);
|
|
2262
2190
|
var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
|
|
2263
2191
|
|
|
2264
2192
|
// EXTERNAL MODULE: external "react"
|
|
@@ -2274,36 +2202,36 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
2274
2202
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
2275
2203
|
|
|
2276
2204
|
// EXTERNAL MODULE: external "lodash/pick"
|
|
2277
|
-
var pick_ = __webpack_require__(
|
|
2205
|
+
var pick_ = __webpack_require__(64);
|
|
2278
2206
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
|
|
2279
2207
|
|
|
2280
2208
|
// EXTERNAL MODULE: external "lodash/isEmpty"
|
|
2281
|
-
var isEmpty_ = __webpack_require__(
|
|
2209
|
+
var isEmpty_ = __webpack_require__(65);
|
|
2282
2210
|
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
2283
2211
|
|
|
2284
2212
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
|
|
2285
|
-
var style_ = __webpack_require__(
|
|
2213
|
+
var style_ = __webpack_require__(14);
|
|
2286
2214
|
|
|
2287
2215
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
|
|
2288
|
-
var SizeAwareWrapper_ = __webpack_require__(
|
|
2216
|
+
var SizeAwareWrapper_ = __webpack_require__(18);
|
|
2289
2217
|
var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
|
|
2290
2218
|
|
|
2291
2219
|
// EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
|
|
2292
|
-
var VizStyleWrapper = __webpack_require__(
|
|
2220
|
+
var VizStyleWrapper = __webpack_require__(59);
|
|
2293
2221
|
|
|
2294
2222
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
|
|
2295
2223
|
var defineProperty_ = __webpack_require__(7);
|
|
2296
2224
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
|
|
2297
2225
|
|
|
2298
2226
|
// EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
|
|
2299
|
-
var SingleValueBasic = __webpack_require__(
|
|
2227
|
+
var SingleValueBasic = __webpack_require__(63);
|
|
2300
2228
|
|
|
2301
2229
|
// EXTERNAL MODULE: external "@splunk/react-sparkline/Line"
|
|
2302
|
-
var Line_ = __webpack_require__(
|
|
2230
|
+
var Line_ = __webpack_require__(84);
|
|
2303
2231
|
var Line_default = /*#__PURE__*/__webpack_require__.n(Line_);
|
|
2304
2232
|
|
|
2305
2233
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
|
|
2306
|
-
var propUtils_ = __webpack_require__(
|
|
2234
|
+
var propUtils_ = __webpack_require__(19);
|
|
2307
2235
|
|
|
2308
2236
|
// CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/SingleValueSparkline.jsx
|
|
2309
2237
|
|
|
@@ -2367,13 +2295,13 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
|
|
|
2367
2295
|
};
|
|
2368
2296
|
/* harmony default export */ var PureSingleValue_SingleValueSparkline = (SingleValueSparkline_SingleValueSparkline);
|
|
2369
2297
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/colorConstants"
|
|
2370
|
-
var colorConstants_ = __webpack_require__(
|
|
2298
|
+
var colorConstants_ = __webpack_require__(41);
|
|
2371
2299
|
|
|
2372
2300
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
|
|
2373
|
-
var numberUtils_ = __webpack_require__(
|
|
2301
|
+
var numberUtils_ = __webpack_require__(22);
|
|
2374
2302
|
|
|
2375
2303
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
2376
|
-
var singleValueUtils = __webpack_require__(
|
|
2304
|
+
var singleValueUtils = __webpack_require__(16);
|
|
2377
2305
|
|
|
2378
2306
|
// CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/utils/displayUtils.js
|
|
2379
2307
|
|
|
@@ -3108,6 +3036,95 @@ SingleValue_SingleValue.defaultProps = {
|
|
|
3108
3036
|
"use strict";
|
|
3109
3037
|
|
|
3110
3038
|
|
|
3039
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3040
|
+
value: true
|
|
3041
|
+
});
|
|
3042
|
+
exports.shouldShowIconPlaceholder = void 0;
|
|
3043
|
+
|
|
3044
|
+
var React = __webpack_require__(1);
|
|
3045
|
+
|
|
3046
|
+
var T = __webpack_require__(0);
|
|
3047
|
+
|
|
3048
|
+
var lodash_1 = __webpack_require__(2);
|
|
3049
|
+
|
|
3050
|
+
var i18n_1 = __webpack_require__(3);
|
|
3051
|
+
|
|
3052
|
+
var Message_1 = __webpack_require__(9);
|
|
3053
|
+
|
|
3054
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
3055
|
+
/**
|
|
3056
|
+
* @method shouldShowIconPlaceholder
|
|
3057
|
+
* @param {object} dataSources
|
|
3058
|
+
* @param {boolean} loading
|
|
3059
|
+
* @returns {boolean}
|
|
3060
|
+
*/
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
3064
|
+
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
3065
|
+
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
3066
|
+
var noData = data === undefined;
|
|
3067
|
+
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
3068
|
+
var noFields = fields === undefined;
|
|
3069
|
+
return loading || noData || noFields;
|
|
3070
|
+
};
|
|
3071
|
+
|
|
3072
|
+
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
3073
|
+
var propTypes = {
|
|
3074
|
+
icon: T.func,
|
|
3075
|
+
width: T.oneOfType([T.string, T.number]),
|
|
3076
|
+
height: T.oneOfType([T.string, T.number]),
|
|
3077
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
3078
|
+
backgroundColor: T.string
|
|
3079
|
+
};
|
|
3080
|
+
/**
|
|
3081
|
+
* @method IconPlaceholder
|
|
3082
|
+
* @param {IconPlaceholderProps} props
|
|
3083
|
+
* @returns {React.ReactElement}
|
|
3084
|
+
*/
|
|
3085
|
+
|
|
3086
|
+
var IconPlaceholder = function IconPlaceholder(props) {
|
|
3087
|
+
var width = props.width,
|
|
3088
|
+
height = props.height,
|
|
3089
|
+
icon = props.icon;
|
|
3090
|
+
|
|
3091
|
+
if (icon) {
|
|
3092
|
+
return React.createElement(icon, {
|
|
3093
|
+
style: {
|
|
3094
|
+
left: '50%',
|
|
3095
|
+
top: '50%',
|
|
3096
|
+
color: 'grey',
|
|
3097
|
+
position: 'absolute',
|
|
3098
|
+
transform: 'translate(-50%, -50%)'
|
|
3099
|
+
},
|
|
3100
|
+
width: '50%',
|
|
3101
|
+
height: '50%'
|
|
3102
|
+
});
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
return React.createElement(Message_1.default, {
|
|
3106
|
+
width: width,
|
|
3107
|
+
height: height,
|
|
3108
|
+
level: "warning",
|
|
3109
|
+
message: i18n_1._('No DataSource Connected')
|
|
3110
|
+
});
|
|
3111
|
+
};
|
|
3112
|
+
|
|
3113
|
+
IconPlaceholder.propTypes = propTypes;
|
|
3114
|
+
IconPlaceholder.defaultProps = {
|
|
3115
|
+
width: '100%',
|
|
3116
|
+
height: 250
|
|
3117
|
+
};
|
|
3118
|
+
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
3119
|
+
|
|
3120
|
+
/***/ }),
|
|
3121
|
+
|
|
3122
|
+
/***/ 27:
|
|
3123
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3124
|
+
|
|
3125
|
+
"use strict";
|
|
3126
|
+
|
|
3127
|
+
|
|
3111
3128
|
Object.defineProperty(exports, "__esModule", {
|
|
3112
3129
|
value: true
|
|
3113
3130
|
});
|
|
@@ -3131,7 +3148,7 @@ var VizCategory;
|
|
|
3131
3148
|
|
|
3132
3149
|
/***/ }),
|
|
3133
3150
|
|
|
3134
|
-
/***/
|
|
3151
|
+
/***/ 28:
|
|
3135
3152
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3136
3153
|
|
|
3137
3154
|
"use strict";
|
|
@@ -3145,31 +3162,31 @@ var React = __webpack_require__(1);
|
|
|
3145
3162
|
|
|
3146
3163
|
var lodash_1 = __webpack_require__(2);
|
|
3147
3164
|
|
|
3148
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
3165
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(29);
|
|
3149
3166
|
|
|
3150
|
-
var Options_1 = __webpack_require__(
|
|
3167
|
+
var Options_1 = __webpack_require__(30);
|
|
3151
3168
|
|
|
3152
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
3169
|
+
var SanitizeProps_1 = __webpack_require__(31);
|
|
3153
3170
|
|
|
3154
3171
|
var styled_components_1 = __webpack_require__(4);
|
|
3155
3172
|
|
|
3156
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
3173
|
+
var SplunkVisualization_1 = __webpack_require__(32);
|
|
3157
3174
|
|
|
3158
3175
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3159
3176
|
|
|
3160
|
-
var getSorting_1 = __webpack_require__(
|
|
3177
|
+
var getSorting_1 = __webpack_require__(24);
|
|
3161
3178
|
|
|
3162
|
-
var getPagination_1 = __webpack_require__(
|
|
3179
|
+
var getPagination_1 = __webpack_require__(25);
|
|
3163
3180
|
|
|
3164
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
3181
|
+
var useDeepMemo_1 = __webpack_require__(35);
|
|
3165
3182
|
|
|
3166
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
3183
|
+
var JSONSchemaUtils_1 = __webpack_require__(36);
|
|
3167
3184
|
|
|
3168
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
3185
|
+
var MissingPropsMessage_1 = __webpack_require__(37);
|
|
3169
3186
|
|
|
3170
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
3187
|
+
var withEditModeCover_1 = __webpack_require__(38);
|
|
3171
3188
|
|
|
3172
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
3189
|
+
var withPlaceholder_1 = __webpack_require__(39);
|
|
3173
3190
|
|
|
3174
3191
|
var hocUtils_1 = __webpack_require__(8);
|
|
3175
3192
|
/**
|
|
@@ -3355,35 +3372,35 @@ exports.default = withDashboardViz;
|
|
|
3355
3372
|
|
|
3356
3373
|
/***/ }),
|
|
3357
3374
|
|
|
3358
|
-
/***/
|
|
3375
|
+
/***/ 29:
|
|
3359
3376
|
/***/ (function(module, exports) {
|
|
3360
3377
|
|
|
3361
3378
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
3362
3379
|
|
|
3363
3380
|
/***/ }),
|
|
3364
3381
|
|
|
3365
|
-
/***/
|
|
3382
|
+
/***/ 3:
|
|
3366
3383
|
/***/ (function(module, exports) {
|
|
3367
3384
|
|
|
3368
|
-
module.exports = require("@splunk/
|
|
3385
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
3369
3386
|
|
|
3370
3387
|
/***/ }),
|
|
3371
3388
|
|
|
3372
|
-
/***/
|
|
3389
|
+
/***/ 30:
|
|
3373
3390
|
/***/ (function(module, exports) {
|
|
3374
3391
|
|
|
3375
|
-
module.exports = require("@splunk/
|
|
3392
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
3376
3393
|
|
|
3377
3394
|
/***/ }),
|
|
3378
3395
|
|
|
3379
|
-
/***/
|
|
3396
|
+
/***/ 31:
|
|
3380
3397
|
/***/ (function(module, exports) {
|
|
3381
3398
|
|
|
3382
3399
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
3383
3400
|
|
|
3384
3401
|
/***/ }),
|
|
3385
3402
|
|
|
3386
|
-
/***/
|
|
3403
|
+
/***/ 32:
|
|
3387
3404
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3388
3405
|
|
|
3389
3406
|
"use strict";
|
|
@@ -3401,7 +3418,7 @@ var T = __webpack_require__(0);
|
|
|
3401
3418
|
|
|
3402
3419
|
var lodash_1 = __webpack_require__(2);
|
|
3403
3420
|
|
|
3404
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
3421
|
+
var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
3405
3422
|
|
|
3406
3423
|
|
|
3407
3424
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -3535,7 +3552,7 @@ exports.default = SplunkVisualization;
|
|
|
3535
3552
|
|
|
3536
3553
|
/***/ }),
|
|
3537
3554
|
|
|
3538
|
-
/***/
|
|
3555
|
+
/***/ 33:
|
|
3539
3556
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3540
3557
|
|
|
3541
3558
|
"use strict";
|
|
@@ -3543,7 +3560,7 @@ exports.default = SplunkVisualization;
|
|
|
3543
3560
|
|
|
3544
3561
|
var _classCallCheck = __webpack_require__(10);
|
|
3545
3562
|
|
|
3546
|
-
var _createClass = __webpack_require__(
|
|
3563
|
+
var _createClass = __webpack_require__(17);
|
|
3547
3564
|
|
|
3548
3565
|
Object.defineProperty(exports, "__esModule", {
|
|
3549
3566
|
value: true
|
|
@@ -3573,7 +3590,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
3573
3590
|
|
|
3574
3591
|
/***/ }),
|
|
3575
3592
|
|
|
3576
|
-
/***/
|
|
3593
|
+
/***/ 34:
|
|
3577
3594
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3578
3595
|
|
|
3579
3596
|
"use strict";
|
|
@@ -3587,7 +3604,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
3587
3604
|
|
|
3588
3605
|
/***/ }),
|
|
3589
3606
|
|
|
3590
|
-
/***/
|
|
3607
|
+
/***/ 35:
|
|
3591
3608
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3592
3609
|
|
|
3593
3610
|
"use strict";
|
|
@@ -3633,7 +3650,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
3633
3650
|
|
|
3634
3651
|
/***/ }),
|
|
3635
3652
|
|
|
3636
|
-
/***/
|
|
3653
|
+
/***/ 36:
|
|
3637
3654
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3638
3655
|
|
|
3639
3656
|
"use strict";
|
|
@@ -3667,7 +3684,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
|
3667
3684
|
|
|
3668
3685
|
/***/ }),
|
|
3669
3686
|
|
|
3670
|
-
/***/
|
|
3687
|
+
/***/ 37:
|
|
3671
3688
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3672
3689
|
|
|
3673
3690
|
"use strict";
|
|
@@ -3748,7 +3765,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
3748
3765
|
|
|
3749
3766
|
/***/ }),
|
|
3750
3767
|
|
|
3751
|
-
/***/
|
|
3768
|
+
/***/ 38:
|
|
3752
3769
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3753
3770
|
|
|
3754
3771
|
"use strict";
|
|
@@ -3764,11 +3781,15 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
3764
3781
|
|
|
3765
3782
|
var hocUtils_1 = __webpack_require__(8);
|
|
3766
3783
|
|
|
3784
|
+
var version_1 = __webpack_require__(13);
|
|
3785
|
+
|
|
3767
3786
|
var Cover = styled_components_1.default.div.withConfig({
|
|
3768
3787
|
displayName: "withEditModeCover__Cover",
|
|
3769
3788
|
componentId: "sc-1gsbnxb-0"
|
|
3770
3789
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3771
|
-
var Blocker = styled_components_1.default.div.
|
|
3790
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
3791
|
+
'data-splunk-visualization-version': version_1.version
|
|
3792
|
+
}).withConfig({
|
|
3772
3793
|
displayName: "withEditModeCover__Blocker",
|
|
3773
3794
|
componentId: "sc-1gsbnxb-1"
|
|
3774
3795
|
})(["position:relative;width:100%;height:100%;"]);
|
|
@@ -3798,7 +3819,7 @@ exports.default = withEditModeCover;
|
|
|
3798
3819
|
|
|
3799
3820
|
/***/ }),
|
|
3800
3821
|
|
|
3801
|
-
/***/
|
|
3822
|
+
/***/ 39:
|
|
3802
3823
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3803
3824
|
|
|
3804
3825
|
"use strict";
|
|
@@ -3812,7 +3833,7 @@ var React = __webpack_require__(1);
|
|
|
3812
3833
|
|
|
3813
3834
|
var colorUtils_1 = __webpack_require__(11);
|
|
3814
3835
|
|
|
3815
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
3836
|
+
var IconPlaceholder_1 = __webpack_require__(26);
|
|
3816
3837
|
|
|
3817
3838
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3818
3839
|
|
|
@@ -3865,35 +3886,35 @@ module.exports = require("styled-components");
|
|
|
3865
3886
|
|
|
3866
3887
|
/***/ }),
|
|
3867
3888
|
|
|
3868
|
-
/***/
|
|
3889
|
+
/***/ 41:
|
|
3869
3890
|
/***/ (function(module, exports) {
|
|
3870
3891
|
|
|
3871
3892
|
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3872
3893
|
|
|
3873
3894
|
/***/ }),
|
|
3874
3895
|
|
|
3875
|
-
/***/
|
|
3896
|
+
/***/ 43:
|
|
3876
3897
|
/***/ (function(module, exports) {
|
|
3877
3898
|
|
|
3878
3899
|
module.exports = require("@splunk/visualization-icons");
|
|
3879
3900
|
|
|
3880
3901
|
/***/ }),
|
|
3881
3902
|
|
|
3882
|
-
/***/
|
|
3903
|
+
/***/ 44:
|
|
3883
3904
|
/***/ (function(module, exports) {
|
|
3884
3905
|
|
|
3885
3906
|
module.exports = require("@babel/runtime/helpers/extends");
|
|
3886
3907
|
|
|
3887
3908
|
/***/ }),
|
|
3888
3909
|
|
|
3889
|
-
/***/
|
|
3910
|
+
/***/ 45:
|
|
3890
3911
|
/***/ (function(module, exports) {
|
|
3891
3912
|
|
|
3892
3913
|
module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
3893
3914
|
|
|
3894
3915
|
/***/ }),
|
|
3895
3916
|
|
|
3896
|
-
/***/
|
|
3917
|
+
/***/ 49:
|
|
3897
3918
|
/***/ (function(module, exports) {
|
|
3898
3919
|
|
|
3899
3920
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
@@ -3938,7 +3959,7 @@ var VizBehavior;
|
|
|
3938
3959
|
|
|
3939
3960
|
/***/ }),
|
|
3940
3961
|
|
|
3941
|
-
/***/
|
|
3962
|
+
/***/ 59:
|
|
3942
3963
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3943
3964
|
|
|
3944
3965
|
"use strict";
|
|
@@ -3990,7 +4011,7 @@ exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOp
|
|
|
3990
4011
|
|
|
3991
4012
|
var lodash_1 = __webpack_require__(2);
|
|
3992
4013
|
|
|
3993
|
-
var schemaUtils_1 = __webpack_require__(
|
|
4014
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
3994
4015
|
|
|
3995
4016
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3996
4017
|
|
|
@@ -4154,7 +4175,7 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
4154
4175
|
|
|
4155
4176
|
/***/ }),
|
|
4156
4177
|
|
|
4157
|
-
/***/
|
|
4178
|
+
/***/ 63:
|
|
4158
4179
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4159
4180
|
|
|
4160
4181
|
"use strict";
|
|
@@ -4165,7 +4186,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4165
4186
|
__webpack_require__.d(__webpack_exports__, "SingleValueTrendValue", function() { return /* binding */ SingleValueTrendValue; });
|
|
4166
4187
|
|
|
4167
4188
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/extends"
|
|
4168
|
-
var extends_ = __webpack_require__(
|
|
4189
|
+
var extends_ = __webpack_require__(44);
|
|
4169
4190
|
var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
|
|
4170
4191
|
|
|
4171
4192
|
// EXTERNAL MODULE: external "react"
|
|
@@ -4181,14 +4202,14 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
4181
4202
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
4182
4203
|
|
|
4183
4204
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
4184
|
-
var singleValueUtils = __webpack_require__(
|
|
4205
|
+
var singleValueUtils = __webpack_require__(16);
|
|
4185
4206
|
|
|
4186
4207
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
|
|
4187
|
-
var ArrowUp_ = __webpack_require__(
|
|
4208
|
+
var ArrowUp_ = __webpack_require__(66);
|
|
4188
4209
|
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
|
|
4189
4210
|
|
|
4190
4211
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowDown"
|
|
4191
|
-
var ArrowDown_ = __webpack_require__(
|
|
4212
|
+
var ArrowDown_ = __webpack_require__(67);
|
|
4192
4213
|
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
|
|
4193
4214
|
|
|
4194
4215
|
// CONCATENATED MODULE: ./src/SingleValueBasic/TrendValue.jsx
|
|
@@ -4258,7 +4279,7 @@ TrendValue_SingleValueContent.propTypes = {
|
|
|
4258
4279
|
};
|
|
4259
4280
|
/* harmony default export */ var TrendValue = (TrendValue_SingleValueContent);
|
|
4260
4281
|
// EXTERNAL MODULE: external "cssesc"
|
|
4261
|
-
var external_cssesc_ = __webpack_require__(
|
|
4282
|
+
var external_cssesc_ = __webpack_require__(68);
|
|
4262
4283
|
var external_cssesc_default = /*#__PURE__*/__webpack_require__.n(external_cssesc_);
|
|
4263
4284
|
|
|
4264
4285
|
// CONCATENATED MODULE: ./src/SingleValueBasic/MajorValue.jsx
|
|
@@ -4443,42 +4464,42 @@ var SingleValueTrendValue = TrendValue;
|
|
|
4443
4464
|
|
|
4444
4465
|
/***/ }),
|
|
4445
4466
|
|
|
4446
|
-
/***/
|
|
4467
|
+
/***/ 64:
|
|
4447
4468
|
/***/ (function(module, exports) {
|
|
4448
4469
|
|
|
4449
4470
|
module.exports = require("lodash/pick");
|
|
4450
4471
|
|
|
4451
4472
|
/***/ }),
|
|
4452
4473
|
|
|
4453
|
-
/***/
|
|
4474
|
+
/***/ 65:
|
|
4454
4475
|
/***/ (function(module, exports) {
|
|
4455
4476
|
|
|
4456
4477
|
module.exports = require("lodash/isEmpty");
|
|
4457
4478
|
|
|
4458
4479
|
/***/ }),
|
|
4459
4480
|
|
|
4460
|
-
/***/
|
|
4481
|
+
/***/ 66:
|
|
4461
4482
|
/***/ (function(module, exports) {
|
|
4462
4483
|
|
|
4463
4484
|
module.exports = require("@splunk/react-icons/ArrowUp");
|
|
4464
4485
|
|
|
4465
4486
|
/***/ }),
|
|
4466
4487
|
|
|
4467
|
-
/***/
|
|
4488
|
+
/***/ 67:
|
|
4468
4489
|
/***/ (function(module, exports) {
|
|
4469
4490
|
|
|
4470
4491
|
module.exports = require("@splunk/react-icons/ArrowDown");
|
|
4471
4492
|
|
|
4472
4493
|
/***/ }),
|
|
4473
4494
|
|
|
4474
|
-
/***/
|
|
4495
|
+
/***/ 68:
|
|
4475
4496
|
/***/ (function(module, exports) {
|
|
4476
4497
|
|
|
4477
4498
|
module.exports = require("cssesc");
|
|
4478
4499
|
|
|
4479
4500
|
/***/ }),
|
|
4480
4501
|
|
|
4481
|
-
/***/
|
|
4502
|
+
/***/ 69:
|
|
4482
4503
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4483
4504
|
|
|
4484
4505
|
"use strict";
|
|
@@ -4509,7 +4530,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
|
4509
4530
|
|
|
4510
4531
|
/***/ }),
|
|
4511
4532
|
|
|
4512
|
-
/***/
|
|
4533
|
+
/***/ 77:
|
|
4513
4534
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4514
4535
|
|
|
4515
4536
|
"use strict";
|
|
@@ -4562,7 +4583,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
4562
4583
|
|
|
4563
4584
|
/***/ }),
|
|
4564
4585
|
|
|
4565
|
-
/***/
|
|
4586
|
+
/***/ 78:
|
|
4566
4587
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4567
4588
|
|
|
4568
4589
|
"use strict";
|
|
@@ -4607,7 +4628,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
4607
4628
|
|
|
4608
4629
|
/***/ }),
|
|
4609
4630
|
|
|
4610
|
-
/***/
|
|
4631
|
+
/***/ 79:
|
|
4611
4632
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4612
4633
|
|
|
4613
4634
|
"use strict";
|
|
@@ -4664,37 +4685,13 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
4664
4685
|
|
|
4665
4686
|
/***/ }),
|
|
4666
4687
|
|
|
4667
|
-
/***/ 79:
|
|
4668
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4669
|
-
|
|
4670
|
-
"use strict";
|
|
4671
|
-
__webpack_require__.r(__webpack_exports__);
|
|
4672
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
4673
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4674
|
-
/* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
4675
|
-
/* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
var StaticMajorColorEditor = {
|
|
4679
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Major Value'),
|
|
4680
|
-
option: 'majorColor',
|
|
4681
|
-
editor: 'editor.color',
|
|
4682
|
-
showEditor: function showEditor(_ref) {
|
|
4683
|
-
var options = _ref.options;
|
|
4684
|
-
return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
4685
|
-
}
|
|
4686
|
-
};
|
|
4687
|
-
/* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
|
|
4688
|
-
|
|
4689
|
-
/***/ }),
|
|
4690
|
-
|
|
4691
4688
|
/***/ 8:
|
|
4692
4689
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4693
4690
|
|
|
4694
4691
|
"use strict";
|
|
4695
4692
|
|
|
4696
4693
|
|
|
4697
|
-
var _typeof = __webpack_require__(
|
|
4694
|
+
var _typeof = __webpack_require__(23);
|
|
4698
4695
|
|
|
4699
4696
|
Object.defineProperty(exports, "__esModule", {
|
|
4700
4697
|
value: true
|
|
@@ -4772,6 +4769,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4772
4769
|
/* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4773
4770
|
|
|
4774
4771
|
|
|
4772
|
+
var StaticMajorColorEditor = {
|
|
4773
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Major Value'),
|
|
4774
|
+
option: 'majorColor',
|
|
4775
|
+
editor: 'editor.color',
|
|
4776
|
+
showEditor: function showEditor(_ref) {
|
|
4777
|
+
var options = _ref.options;
|
|
4778
|
+
return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
4779
|
+
}
|
|
4780
|
+
};
|
|
4781
|
+
/* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
|
|
4782
|
+
|
|
4783
|
+
/***/ }),
|
|
4784
|
+
|
|
4785
|
+
/***/ 81:
|
|
4786
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4787
|
+
|
|
4788
|
+
"use strict";
|
|
4789
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4790
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
4791
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4792
|
+
/* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
4793
|
+
/* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4794
|
+
|
|
4795
|
+
|
|
4775
4796
|
var StaticTrendColorEditor = {
|
|
4776
4797
|
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Trend'),
|
|
4777
4798
|
option: 'trendColor',
|
|
@@ -4789,7 +4810,7 @@ var StaticTrendColorEditor = {
|
|
|
4789
4810
|
|
|
4790
4811
|
/***/ }),
|
|
4791
4812
|
|
|
4792
|
-
/***/
|
|
4813
|
+
/***/ 84:
|
|
4793
4814
|
/***/ (function(module, exports) {
|
|
4794
4815
|
|
|
4795
4816
|
module.exports = require("@splunk/react-sparkline/Line");
|