@splunk/visualizations 25.13.1 → 26.0.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.config.js +216 -216
- package/Area.config.js.map +1 -1
- package/Area.js +529 -561
- package/Area.js.map +1 -1
- package/Bar.config.js +213 -213
- package/Bar.config.js.map +1 -1
- package/Bar.js +394 -386
- package/Bar.js.map +1 -1
- package/Bubble.config.js +140 -140
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +313 -305
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +15 -15
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +149 -144
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +205 -205
- package/Column.config.js.map +1 -1
- package/Column.js +387 -379
- package/Column.js.map +1 -1
- package/Ellipse.config.js +45 -45
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +157 -144
- package/Ellipse.js.map +1 -1
- package/Events.config.js +11 -11
- package/Events.config.js.map +1 -1
- package/Events.js +273 -261
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +46 -46
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +267 -262
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +8 -8
- package/Image.config.js.map +1 -1
- package/Image.js +110 -104
- package/Image.js.map +1 -1
- package/Line.config.js +220 -220
- package/Line.config.js.map +1 -1
- package/Line.js +404 -396
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +27 -27
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +557 -548
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +71 -71
- package/Map.config.js.map +1 -1
- package/Map.js +471 -465
- package/Map.js.map +1 -1
- package/Markdown.config.js +23 -23
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +151 -145
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +84 -84
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +295 -289
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +23 -23
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +164 -162
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +24 -24
- package/Pie.config.js.map +1 -1
- package/Pie.js +233 -228
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +33 -33
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +278 -279
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +46 -46
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +154 -142
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +19 -19
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +281 -275
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +135 -135
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +304 -299
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +119 -119
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +359 -341
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +14 -14
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +117 -117
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +373 -371
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +157 -115
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1114 -540
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +50 -20
- package/SparkLine.js.map +1 -1
- package/Table.config.js +54 -54
- package/Table.config.js.map +1 -1
- package/Table.js +302 -286
- package/Table.js.map +1 -1
- package/common/Charting.js +41 -41
- package/common/Charting.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 +22 -22
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +32 -27
- 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 +14 -14
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +12 -12
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +112 -112
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +21 -15
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +10 -9
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +2 -2
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/layoutUtils.js +2 -2
- package/common/utils/layoutUtils.js.map +1 -1
- package/common/utils/mapUtils.js +84 -80
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +2 -2
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +27 -9
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +26 -26
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +107 -104
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +19 -19
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 = 467);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -116,57 +116,6 @@ module.exports = require("@splunk/visualizations-shared/Message");
|
|
|
116
116
|
/***/ 100:
|
|
117
117
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
118
118
|
|
|
119
|
-
"use strict";
|
|
120
|
-
__webpack_require__.r(__webpack_exports__);
|
|
121
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
|
|
122
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
123
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
124
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
|
|
125
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
129
|
-
var defaultContext = _ref.defaultContext,
|
|
130
|
-
defaultPalettesConfig = _ref.defaultPalettesConfig;
|
|
131
|
-
return {
|
|
132
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
|
|
133
|
-
option: 'majorColor',
|
|
134
|
-
context: 'majorColorEditorConfig',
|
|
135
|
-
editor: 'editor.dynamicColor',
|
|
136
|
-
showEditor: function showEditor(_ref2) {
|
|
137
|
-
var options = _ref2.options;
|
|
138
|
-
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
139
|
-
},
|
|
140
|
-
editorProps: {
|
|
141
|
-
labelPosition: 'top',
|
|
142
|
-
flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: major value'),
|
|
143
|
-
formatters: [{
|
|
144
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
|
|
145
|
-
value: 'rangeValue',
|
|
146
|
-
defaults: {
|
|
147
|
-
majorValue: defaultContext.majorColorConfig
|
|
148
|
-
}
|
|
149
|
-
}, {
|
|
150
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
151
|
-
value: 'matchValue',
|
|
152
|
-
defaults: {
|
|
153
|
-
majorValue: defaultContext.majorColorMatchConfig
|
|
154
|
-
}
|
|
155
|
-
}],
|
|
156
|
-
dataSelectors: [{
|
|
157
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
|
|
158
|
-
value: 'majorValue'
|
|
159
|
-
}],
|
|
160
|
-
defaultPalettesConfig: defaultPalettesConfig
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/***/ }),
|
|
166
|
-
|
|
167
|
-
/***/ 101:
|
|
168
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
169
|
-
|
|
170
119
|
"use strict";
|
|
171
120
|
__webpack_require__.r(__webpack_exports__);
|
|
172
121
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
|
|
@@ -209,7 +158,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
209
158
|
|
|
210
159
|
/***/ }),
|
|
211
160
|
|
|
212
|
-
/***/
|
|
161
|
+
/***/ 101:
|
|
213
162
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
214
163
|
|
|
215
164
|
"use strict";
|
|
@@ -264,7 +213,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
264
213
|
|
|
265
214
|
/***/ }),
|
|
266
215
|
|
|
267
|
-
/***/
|
|
216
|
+
/***/ 102:
|
|
268
217
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
269
218
|
|
|
270
219
|
"use strict";
|
|
@@ -315,7 +264,7 @@ var StaticMajorAndTrendLayout = [[{
|
|
|
315
264
|
|
|
316
265
|
/***/ }),
|
|
317
266
|
|
|
318
|
-
/***/
|
|
267
|
+
/***/ 103:
|
|
319
268
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
320
269
|
|
|
321
270
|
"use strict";
|
|
@@ -339,7 +288,7 @@ var StaticMajorColorEditor = {
|
|
|
339
288
|
|
|
340
289
|
/***/ }),
|
|
341
290
|
|
|
342
|
-
/***/
|
|
291
|
+
/***/ 104:
|
|
343
292
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
344
293
|
|
|
345
294
|
"use strict";
|
|
@@ -367,7 +316,7 @@ var StaticTrendColorEditor = {
|
|
|
367
316
|
|
|
368
317
|
/***/ }),
|
|
369
318
|
|
|
370
|
-
/***/
|
|
319
|
+
/***/ 105:
|
|
371
320
|
/***/ (function(module, exports, __webpack_require__) {
|
|
372
321
|
|
|
373
322
|
"use strict";
|
|
@@ -383,7 +332,7 @@ var FeatureFlagContext_1 = __webpack_require__(21);
|
|
|
383
332
|
var layoutUtils_1 = __webpack_require__(58);
|
|
384
333
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
385
334
|
exports.TrellisEditorConfig = [[{
|
|
386
|
-
label: i18n_1._('Trellis layout'),
|
|
335
|
+
label: (0, i18n_1._)('Trellis layout'),
|
|
387
336
|
option: 'splitByLayout',
|
|
388
337
|
editor: 'editor.toggle',
|
|
389
338
|
showEditor: function showEditor() {
|
|
@@ -392,7 +341,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
392
341
|
return isTrellisFeatureFlagOn;
|
|
393
342
|
}
|
|
394
343
|
}], [{
|
|
395
|
-
label: i18n_1._('Split by'),
|
|
344
|
+
label: (0, i18n_1._)('Split by'),
|
|
396
345
|
option: 'trellisSplitBy',
|
|
397
346
|
editor: 'editor.trellisSplitBy',
|
|
398
347
|
editorProps: {
|
|
@@ -405,13 +354,13 @@ exports.TrellisEditorConfig = [[{
|
|
|
405
354
|
return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
|
|
406
355
|
}
|
|
407
356
|
}], [{
|
|
408
|
-
label: i18n_1._('Number of columns'),
|
|
357
|
+
label: (0, i18n_1._)('Number of columns'),
|
|
409
358
|
option: 'trellisColumns',
|
|
410
359
|
editor: 'editor.number',
|
|
411
360
|
editorProps: {
|
|
412
361
|
min: 1
|
|
413
362
|
},
|
|
414
|
-
placeholder: i18n_1._('Auto'),
|
|
363
|
+
placeholder: (0, i18n_1._)('Auto'),
|
|
415
364
|
showEditor: function showEditor(_ref2) {
|
|
416
365
|
var options = _ref2.options;
|
|
417
366
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
@@ -419,7 +368,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
419
368
|
return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
|
|
420
369
|
}
|
|
421
370
|
}], [{
|
|
422
|
-
label: i18n_1._('Min column width'),
|
|
371
|
+
label: (0, i18n_1._)('Min column width'),
|
|
423
372
|
option: 'trellisMinColumnWidth',
|
|
424
373
|
editor: 'editor.number',
|
|
425
374
|
editorProps: {
|
|
@@ -432,7 +381,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
432
381
|
return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
|
|
433
382
|
}
|
|
434
383
|
}, {
|
|
435
|
-
label: i18n_1._('Row height'),
|
|
384
|
+
label: (0, i18n_1._)('Row height'),
|
|
436
385
|
option: 'trellisRowHeight',
|
|
437
386
|
editor: 'editor.number',
|
|
438
387
|
editorProps: {
|
|
@@ -445,7 +394,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
445
394
|
return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
|
|
446
395
|
}
|
|
447
396
|
}], [{
|
|
448
|
-
label: i18n_1._('Max number of components per page'),
|
|
397
|
+
label: (0, i18n_1._)('Max number of components per page'),
|
|
449
398
|
option: 'trellisPageCount',
|
|
450
399
|
editor: 'editor.number',
|
|
451
400
|
editorProps: {
|
|
@@ -459,7 +408,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
459
408
|
}
|
|
460
409
|
}]];
|
|
461
410
|
exports.TrellisBackgroundColorEditor = {
|
|
462
|
-
label: i18n_1._('Trellis background'),
|
|
411
|
+
label: (0, i18n_1._)('Trellis background'),
|
|
463
412
|
option: 'trellisBackgroundColor',
|
|
464
413
|
editor: 'editor.color',
|
|
465
414
|
showEditor: function showEditor(_ref6) {
|
|
@@ -472,7 +421,7 @@ exports.TrellisBackgroundColorEditor = {
|
|
|
472
421
|
|
|
473
422
|
/***/ }),
|
|
474
423
|
|
|
475
|
-
/***/
|
|
424
|
+
/***/ 106:
|
|
476
425
|
/***/ (function(module, exports, __webpack_require__) {
|
|
477
426
|
|
|
478
427
|
"use strict";
|
|
@@ -496,19 +445,19 @@ var React = __webpack_require__(1);
|
|
|
496
445
|
var react_1 = __webpack_require__(1);
|
|
497
446
|
var lodash_1 = __webpack_require__(3);
|
|
498
447
|
var styled_components_1 = __webpack_require__(4);
|
|
499
|
-
var Paginator_1 = __webpack_require__(
|
|
448
|
+
var Paginator_1 = __webpack_require__(93);
|
|
500
449
|
var i18n_1 = __webpack_require__(2);
|
|
501
|
-
var themes_1 = __webpack_require__(
|
|
450
|
+
var themes_1 = __webpack_require__(60);
|
|
502
451
|
var useSplunkTheme_1 = __webpack_require__(57);
|
|
503
452
|
var FeatureFlagContext_1 = __webpack_require__(21);
|
|
504
453
|
var SizeAwareWrapper_1 = __webpack_require__(19);
|
|
505
454
|
var style_1 = __webpack_require__(14);
|
|
506
455
|
var Message_1 = __webpack_require__(10);
|
|
507
|
-
var trellisUtils_1 = __webpack_require__(
|
|
508
|
-
var hocUtils_1 = __webpack_require__(
|
|
509
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
510
|
-
var Options_1 = __webpack_require__(
|
|
511
|
-
var trellisUtils_2 = __webpack_require__(
|
|
456
|
+
var trellisUtils_1 = __webpack_require__(83);
|
|
457
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
458
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
459
|
+
var Options_1 = __webpack_require__(30);
|
|
460
|
+
var trellisUtils_2 = __webpack_require__(107);
|
|
512
461
|
var layoutUtils_1 = __webpack_require__(58);
|
|
513
462
|
var TrellisContainer = styled_components_1.default.div.withConfig({
|
|
514
463
|
displayName: "withTrellis__TrellisContainer",
|
|
@@ -516,7 +465,7 @@ var TrellisContainer = styled_components_1.default.div.withConfig({
|
|
|
516
465
|
})(["overflow:hidden;display:flex;flex-direction:column;background-color:", ";", ";> [data-test='paginator']{align-self:flex-end;margin-bottom:10px;}"], function (props) {
|
|
517
466
|
return props.backgroundColor;
|
|
518
467
|
}, function (props) {
|
|
519
|
-
return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
|
|
468
|
+
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
520
469
|
});
|
|
521
470
|
var TrellisContainerGrid = styled_components_1.default.div.withConfig({
|
|
522
471
|
displayName: "withTrellis__TrellisContainerGrid",
|
|
@@ -535,7 +484,7 @@ var showErrorMessage = function showErrorMessage(errorCode, width, height) {
|
|
|
535
484
|
return React.createElement(Message_1.default, {
|
|
536
485
|
width: width,
|
|
537
486
|
height: height,
|
|
538
|
-
message: i18n_1._('Select a valid trellis split by field'),
|
|
487
|
+
message: (0, i18n_1._)('Select a valid trellis split by field'),
|
|
539
488
|
level: "info"
|
|
540
489
|
});
|
|
541
490
|
}
|
|
@@ -543,14 +492,14 @@ var showErrorMessage = function showErrorMessage(errorCode, width, height) {
|
|
|
543
492
|
return React.createElement(Message_1.default, {
|
|
544
493
|
width: width,
|
|
545
494
|
height: height,
|
|
546
|
-
message: i18n_1._('Unknown data split mode'),
|
|
495
|
+
message: (0, i18n_1._)('Unknown data split mode'),
|
|
547
496
|
level: "info"
|
|
548
497
|
});
|
|
549
498
|
}
|
|
550
499
|
return React.createElement(Message_1.default, {
|
|
551
500
|
width: width,
|
|
552
501
|
height: height,
|
|
553
|
-
message: i18n_1._('Error render in trellis'),
|
|
502
|
+
message: (0, i18n_1._)('Error render in trellis'),
|
|
554
503
|
level: "info"
|
|
555
504
|
});
|
|
556
505
|
};
|
|
@@ -561,8 +510,8 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
561
510
|
height = opts.height,
|
|
562
511
|
width = opts.width,
|
|
563
512
|
otherProps = __rest(opts, ["options", "height", "width"]);
|
|
564
|
-
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(Viz.config.optionsSchema, 'default');
|
|
565
|
-
var mergedOptions = hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions);
|
|
513
|
+
var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(Viz.config.optionsSchema, 'default');
|
|
514
|
+
var mergedOptions = (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions);
|
|
566
515
|
var trellisColumns = mergedOptions.trellisColumns,
|
|
567
516
|
trellisPageCount = mergedOptions.trellisPageCount,
|
|
568
517
|
trellisMinColumnWidth = mergedOptions.trellisMinColumnWidth,
|
|
@@ -573,28 +522,28 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
573
522
|
var pageCount = +trellisPageCount > 0 ? +trellisPageCount : defaultOptions.trellisPageCount;
|
|
574
523
|
var colMinWidth = trellisMinColumnWidth > 0 ? trellisMinColumnWidth : defaultOptions.trellisMinColumnWidth;
|
|
575
524
|
var rowHeight = trellisRowHeight > 0 ? trellisRowHeight : defaultOptions.trellisRowHeight;
|
|
576
|
-
var
|
|
577
|
-
|
|
578
|
-
pageNum =
|
|
579
|
-
setPageNum =
|
|
580
|
-
var
|
|
581
|
-
|
|
582
|
-
pagedData =
|
|
583
|
-
setPagedData =
|
|
525
|
+
var _ref = (0, react_1.useState)(1),
|
|
526
|
+
_ref2 = _slicedToArray(_ref, 2),
|
|
527
|
+
pageNum = _ref2[0],
|
|
528
|
+
setPageNum = _ref2[1];
|
|
529
|
+
var _ref3 = (0, react_1.useState)(null),
|
|
530
|
+
_ref4 = _slicedToArray(_ref3, 2),
|
|
531
|
+
pagedData = _ref4[0],
|
|
532
|
+
setPagedData = _ref4[1];
|
|
584
533
|
var splitByKeys = [];
|
|
585
534
|
var totalPages = 0;
|
|
586
535
|
var showPaginator = false;
|
|
587
536
|
var dataSources = otherProps.dataSources;
|
|
588
537
|
var theme = {
|
|
589
|
-
splunkThemeV1: useSplunkTheme_1.default()
|
|
538
|
+
splunkThemeV1: (0, useSplunkTheme_1.default)()
|
|
590
539
|
};
|
|
591
|
-
var
|
|
540
|
+
var _ref5 = (0, themes_1.getSettingsFromThemedProps)({
|
|
592
541
|
theme: theme
|
|
593
542
|
}),
|
|
594
|
-
currentThemeFamily =
|
|
595
|
-
currentThemeColorScheme =
|
|
596
|
-
currentThemeDensity =
|
|
597
|
-
var trellisBackgroundColor = react_1.useMemo(function () {
|
|
543
|
+
currentThemeFamily = _ref5.family,
|
|
544
|
+
currentThemeColorScheme = _ref5.colorScheme,
|
|
545
|
+
currentThemeDensity = _ref5.density;
|
|
546
|
+
var trellisBackgroundColor = (0, react_1.useMemo)(function () {
|
|
598
547
|
var themeFunc = function themeFunc(themeVar) {
|
|
599
548
|
var _a, _b;
|
|
600
549
|
return (_b = (_a = Viz.config.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
@@ -611,8 +560,8 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
611
560
|
}, {}, themeFunc);
|
|
612
561
|
return evaluated.trellisBackgroundColor;
|
|
613
562
|
}, [mergedOptions.trellisBackgroundColor, currentThemeFamily, currentThemeColorScheme, currentThemeDensity]);
|
|
614
|
-
var columns = lodash_1.get(dataSources, 'primary.data.columns', undefined);
|
|
615
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields', undefined);
|
|
563
|
+
var columns = (0, lodash_1.get)(dataSources, 'primary.data.columns', undefined);
|
|
564
|
+
var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields', undefined);
|
|
616
565
|
var noColumns = columns === undefined;
|
|
617
566
|
var noFields = fields === undefined;
|
|
618
567
|
var updateDataDisplay = function updateDataDisplay(currPage) {
|
|
@@ -625,15 +574,15 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
625
574
|
setPagedData(paged);
|
|
626
575
|
}
|
|
627
576
|
};
|
|
628
|
-
react_1.useEffect(function () {
|
|
577
|
+
(0, react_1.useEffect)(function () {
|
|
629
578
|
setPageNum(1);
|
|
630
579
|
updateDataDisplay(1);
|
|
631
580
|
}, [pageCount, trellisSplitBy]);
|
|
632
|
-
react_1.useEffect(function () {
|
|
581
|
+
(0, react_1.useEffect)(function () {
|
|
633
582
|
updateDataDisplay(pageNum);
|
|
634
583
|
}, [columns, fields, trellisSplitBy, pageNum, splitByLayout]);
|
|
635
|
-
var handlePageChange = react_1.useCallback(function (event,
|
|
636
|
-
var page =
|
|
584
|
+
var handlePageChange = (0, react_1.useCallback)(function (event, _ref6) {
|
|
585
|
+
var page = _ref6.page;
|
|
637
586
|
setPageNum(page);
|
|
638
587
|
}, [pageNum, pagedData]);
|
|
639
588
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
@@ -646,7 +595,7 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
646
595
|
return React.createElement(Message_1.default, {
|
|
647
596
|
width: width,
|
|
648
597
|
height: height,
|
|
649
|
-
message: i18n_1._('Loading'),
|
|
598
|
+
message: (0, i18n_1._)('Loading'),
|
|
650
599
|
level: "info"
|
|
651
600
|
});
|
|
652
601
|
}
|
|
@@ -654,11 +603,11 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
654
603
|
// The default value will be the first value in the individual splitBy field list or 'aggregations'
|
|
655
604
|
var currTrellisSplitBy = trellisSplitBy;
|
|
656
605
|
if (!trellisSplitBy || trellisSplitBy.length === 0) {
|
|
657
|
-
var splitByPossibleFields = trellisUtils_1.getAllPossibleSplitByFields(fields);
|
|
606
|
+
var splitByPossibleFields = (0, trellisUtils_1.getAllPossibleSplitByFields)(fields);
|
|
658
607
|
currTrellisSplitBy = splitByPossibleFields.fields && splitByPossibleFields.fields.length ? splitByPossibleFields.fields[0] : trellisUtils_2.AGGREGATIONS;
|
|
659
608
|
}
|
|
660
|
-
var splitMode = trellisUtils_1.getTrellisDataSplitterMode(fields);
|
|
661
|
-
var dataSplitResult = trellisUtils_2.getTrellisDataSourcesBySplitMode(splitMode, dataSources, currTrellisSplitBy);
|
|
609
|
+
var splitMode = (0, trellisUtils_1.getTrellisDataSplitterMode)(fields);
|
|
610
|
+
var dataSplitResult = (0, trellisUtils_2.getTrellisDataSourcesBySplitMode)(splitMode, dataSources, currTrellisSplitBy);
|
|
662
611
|
var modifiedDataSourceBySplitBy = dataSplitResult === null || dataSplitResult === void 0 ? void 0 : dataSplitResult.splitDataSources;
|
|
663
612
|
var dataSplitErrorCode = dataSplitResult === null || dataSplitResult === void 0 ? void 0 : dataSplitResult.errorCode;
|
|
664
613
|
if (!modifiedDataSourceBySplitBy || Object.keys(modifiedDataSourceBySplitBy).length === 0 || dataSplitErrorCode) {
|
|
@@ -684,10 +633,10 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
684
633
|
className: "child",
|
|
685
634
|
"data-test": "trellis-child",
|
|
686
635
|
key: "div-child-".concat(idx.toString())
|
|
687
|
-
}, React.createElement(SizeAwareWrapper_1.default, null, function (
|
|
688
|
-
var childWidth =
|
|
689
|
-
|
|
690
|
-
childHeight =
|
|
636
|
+
}, React.createElement(SizeAwareWrapper_1.default, null, function (_ref7) {
|
|
637
|
+
var childWidth = _ref7.childWidth,
|
|
638
|
+
_ref7$childHeight = _ref7.childHeight,
|
|
639
|
+
childHeight = _ref7$childHeight === void 0 ? rowHeight : _ref7$childHeight;
|
|
691
640
|
return React.createElement(Viz, Object.assign({}, otherProps, {
|
|
692
641
|
trellisKey: splitByKey,
|
|
693
642
|
trellisSplitBy: currTrellisSplitBy,
|
|
@@ -716,7 +665,7 @@ exports.default = withTrellis;
|
|
|
716
665
|
|
|
717
666
|
/***/ }),
|
|
718
667
|
|
|
719
|
-
/***/
|
|
668
|
+
/***/ 107:
|
|
720
669
|
/***/ (function(module, exports, __webpack_require__) {
|
|
721
670
|
|
|
722
671
|
"use strict";
|
|
@@ -728,7 +677,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
728
677
|
});
|
|
729
678
|
exports.getTrellisDataSourcesBySplitMode = exports.dataSourcesSplitByModeStatsorUnknown = exports.dataSourcesSplitByModeChart = exports.dataSourcesSplitByModeTimechart = exports.dataSourcesSplitByAggregationsStats = exports.dataSourcesSplitByAggregationsTimechartAndChart = exports.dataSourcesSplitByAggregationsUnknown = exports.AGGREGATIONS = void 0;
|
|
730
679
|
var lodash_1 = __webpack_require__(3);
|
|
731
|
-
var trellisUtils_1 = __webpack_require__(
|
|
680
|
+
var trellisUtils_1 = __webpack_require__(83);
|
|
732
681
|
exports.AGGREGATIONS = 'aggregations';
|
|
733
682
|
/**
|
|
734
683
|
* There can be certain SPL cmds that can produce dataSource without a specific field meta info (like group_by_rank, split_by_field etc),
|
|
@@ -749,7 +698,7 @@ var dataSourcesSplitByAggregationsUnknown = function dataSourcesSplitByAggregati
|
|
|
749
698
|
for (var i = 0; i < fields.length; i += 1) {
|
|
750
699
|
var fieldName = fields[i].name;
|
|
751
700
|
if (!(fieldName === null || fieldName === void 0 ? void 0 : fieldName.startsWith('_'))) {
|
|
752
|
-
splitDataSources[fieldName] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
701
|
+
splitDataSources[fieldName] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
753
702
|
splitDataSources[fieldName].primary.data.fields = [fields[i]];
|
|
754
703
|
splitDataSources[fieldName].primary.data.columns = [columns[i]];
|
|
755
704
|
}
|
|
@@ -771,12 +720,12 @@ var dataSourcesSplitByAggregationsTimechartAndChart = function dataSourcesSplitB
|
|
|
771
720
|
var splitByFields = [];
|
|
772
721
|
var errorCode = null;
|
|
773
722
|
if (typeof fields[0] !== 'string') {
|
|
774
|
-
splitByFields = trellisUtils_1.extractDataSourceAggregationKeysChart(fields);
|
|
723
|
+
splitByFields = (0, trellisUtils_1.extractDataSourceAggregationKeysChart)(fields);
|
|
775
724
|
}
|
|
776
725
|
if (splitByFields && splitByFields.length > 0) {
|
|
777
726
|
splitDataSources = {};
|
|
778
727
|
splitByFields.forEach(function (splitByField) {
|
|
779
|
-
splitDataSources[splitByField] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
728
|
+
splitDataSources[splitByField] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
780
729
|
splitDataSources[splitByField].primary.data.fields = [fields[0]];
|
|
781
730
|
splitDataSources[splitByField].primary.data.columns = [columns[0]];
|
|
782
731
|
fields.forEach(function (field, idx) {
|
|
@@ -795,7 +744,7 @@ var dataSourcesSplitByAggregationsTimechartAndChart = function dataSourcesSplitB
|
|
|
795
744
|
for (var i = 1; i < fields.length; i += 1) {
|
|
796
745
|
var fieldName = fields[i].name;
|
|
797
746
|
if (!(fieldName === null || fieldName === void 0 ? void 0 : fieldName.startsWith('_'))) {
|
|
798
|
-
splitDataSources[fieldName] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
747
|
+
splitDataSources[fieldName] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
799
748
|
splitDataSources[fieldName].primary.data.fields = [fields[0], fields[i]];
|
|
800
749
|
splitDataSources[fieldName].primary.data.columns = [columns[0], columns[i]];
|
|
801
750
|
}
|
|
@@ -817,12 +766,12 @@ var dataSourcesSplitByAggregationsStats = function dataSourcesSplitByAggregation
|
|
|
817
766
|
var splitByFields = [];
|
|
818
767
|
var errorCode = null;
|
|
819
768
|
if (typeof fields[0] !== 'string') {
|
|
820
|
-
splitByFields = trellisUtils_1.extractDataSourceAggregationKeysStats(fields);
|
|
769
|
+
splitByFields = (0, trellisUtils_1.extractDataSourceAggregationKeysStats)(fields);
|
|
821
770
|
}
|
|
822
771
|
if (splitByFields && splitByFields.length > 0) {
|
|
823
772
|
splitDataSources = {};
|
|
824
773
|
splitByFields.forEach(function (splitByField) {
|
|
825
|
-
splitDataSources[splitByField] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
774
|
+
splitDataSources[splitByField] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
826
775
|
splitDataSources[splitByField].primary.data.fields = [fields[0]];
|
|
827
776
|
splitDataSources[splitByField].primary.data.columns = [columns[0]];
|
|
828
777
|
var idx = fields.findIndex(function (field) {
|
|
@@ -850,11 +799,11 @@ var dataSourcesSplitByModeTimechart = function dataSourcesSplitByModeTimechart(d
|
|
|
850
799
|
var splitByFields = [];
|
|
851
800
|
var errorCode = null;
|
|
852
801
|
if (typeof fields[0] !== 'string') {
|
|
853
|
-
splitByFields = trellisUtils_1.extractSplitByFieldsChartFields(fields);
|
|
802
|
+
splitByFields = (0, trellisUtils_1.extractSplitByFieldsChartFields)(fields);
|
|
854
803
|
}
|
|
855
804
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
856
805
|
splitDataSources = {};
|
|
857
|
-
var dataSourceKeys = trellisUtils_1.extractDataSourceAggregationKeysChart(fields);
|
|
806
|
+
var dataSourceKeys = (0, trellisUtils_1.extractDataSourceAggregationKeysChart)(fields);
|
|
858
807
|
var valueKeys = [];
|
|
859
808
|
for (var i = 1; i < fields.length; i += 1) {
|
|
860
809
|
// not including internal fields
|
|
@@ -863,7 +812,7 @@ var dataSourcesSplitByModeTimechart = function dataSourcesSplitByModeTimechart(d
|
|
|
863
812
|
}
|
|
864
813
|
}
|
|
865
814
|
valueKeys.forEach(function (val) {
|
|
866
|
-
splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
815
|
+
splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
867
816
|
splitDataSources[val].primary.data.fields = [{
|
|
868
817
|
name: fields[0].name
|
|
869
818
|
}].concat(_toConsumableArray(dataSourceKeys.map(function (k) {
|
|
@@ -897,7 +846,7 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
|
|
|
897
846
|
var splitByFields = [];
|
|
898
847
|
var errorCode = null;
|
|
899
848
|
if (typeof fields[0] !== 'string') {
|
|
900
|
-
splitByFields = trellisUtils_1.extractSplitByFieldsChartFields(fields);
|
|
849
|
+
splitByFields = (0, trellisUtils_1.extractSplitByFieldsChartFields)(fields);
|
|
901
850
|
}
|
|
902
851
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
903
852
|
splitDataSources = {};
|
|
@@ -907,7 +856,7 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
|
|
|
907
856
|
var otherSplitBy = splitByFields.filter(function (f) {
|
|
908
857
|
return f !== splitBy;
|
|
909
858
|
});
|
|
910
|
-
var dataSourceKeys = trellisUtils_1.extractDataSourceAggregationKeysChart(fields);
|
|
859
|
+
var dataSourceKeys = (0, trellisUtils_1.extractDataSourceAggregationKeysChart)(fields);
|
|
911
860
|
var nonDataSourceAggregations = [];
|
|
912
861
|
if (!dataSourceKeys.length && fields[0].groupby_rank === '0' && fields.length && !fields[1].groupby_rank) {
|
|
913
862
|
/* check for another aggregation scenario where no key 'data_source' will be returned (applies for both chart and stats cmd)
|
|
@@ -935,9 +884,9 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
|
|
|
935
884
|
}
|
|
936
885
|
if (splitByFieldIdx === 0) {
|
|
937
886
|
// if splitBy is the first field, split row wise
|
|
938
|
-
var valueKeys = lodash_1.cloneDeep(columns[0]);
|
|
887
|
+
var valueKeys = (0, lodash_1.cloneDeep)(columns[0]);
|
|
939
888
|
valueKeys.forEach(function (val, idx) {
|
|
940
|
-
splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
889
|
+
splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
941
890
|
splitDataSources[val].primary.data.fields = [];
|
|
942
891
|
if (otherSplitBy.length) {
|
|
943
892
|
splitDataSources[val].primary.data.fields = [{
|
|
@@ -1045,7 +994,7 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
|
|
|
1045
994
|
_valueKeys.push(fields[_i2].splitby_value ? fields[_i2].splitby_value : fields[_i2].name);
|
|
1046
995
|
}
|
|
1047
996
|
_valueKeys.forEach(function (val) {
|
|
1048
|
-
splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
997
|
+
splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
1049
998
|
splitDataSources[val].primary.data.fields = [{
|
|
1050
999
|
name: otherSplitBy[0]
|
|
1051
1000
|
}].concat(_toConsumableArray(dataSourceKeys.map(function (k) {
|
|
@@ -1084,7 +1033,7 @@ var dataSourcesSplitByModeStatsorUnknown = function dataSourcesSplitByModeStatso
|
|
|
1084
1033
|
var splitByFields = [];
|
|
1085
1034
|
var errorCode = null;
|
|
1086
1035
|
if (typeof fields[0] !== 'string') {
|
|
1087
|
-
splitByFields = splitMode !== trellisUtils_1.UNKNOWN ? trellisUtils_1.extractSplitByFieldsForStats(fields) : trellisUtils_1.extractSplitByFieldsForUnknown(fields);
|
|
1036
|
+
splitByFields = splitMode !== trellisUtils_1.UNKNOWN ? (0, trellisUtils_1.extractSplitByFieldsForStats)(fields) : (0, trellisUtils_1.extractSplitByFieldsForUnknown)(fields);
|
|
1088
1037
|
}
|
|
1089
1038
|
var splitByIndex = fields === null || fields === void 0 ? void 0 : fields.findIndex(function (field) {
|
|
1090
1039
|
return field === splitBy || field.name === splitBy;
|
|
@@ -1099,12 +1048,12 @@ var dataSourcesSplitByModeStatsorUnknown = function dataSourcesSplitByModeStatso
|
|
|
1099
1048
|
splitDataSources[val].push(idx);
|
|
1100
1049
|
}
|
|
1101
1050
|
});
|
|
1102
|
-
var cloneFields = lodash_1.cloneDeep(fields);
|
|
1051
|
+
var cloneFields = (0, lodash_1.cloneDeep)(fields);
|
|
1103
1052
|
cloneFields.splice(splitByIndex, 1);
|
|
1104
1053
|
var valueKeys = Object.keys(splitDataSources);
|
|
1105
1054
|
valueKeys.forEach(function (val) {
|
|
1106
|
-
var valIndices = lodash_1.cloneDeep(splitDataSources[val]);
|
|
1107
|
-
splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
1055
|
+
var valIndices = (0, lodash_1.cloneDeep)(splitDataSources[val]);
|
|
1056
|
+
splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
|
|
1108
1057
|
splitDataSources[val].primary.data.fields = cloneFields;
|
|
1109
1058
|
splitDataSources[val].primary.data.columns = [];
|
|
1110
1059
|
columns.forEach(function (col, idx) {
|
|
@@ -1129,13 +1078,13 @@ var getTrellisDataSourcesBySplitMode = function getTrellisDataSourcesBySplitMode
|
|
|
1129
1078
|
var result = null;
|
|
1130
1079
|
try {
|
|
1131
1080
|
if (splitMode === trellisUtils_1.TIMECHART) {
|
|
1132
|
-
result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsTimechartAndChart(dataSources) : exports.dataSourcesSplitByModeTimechart(dataSources, trellisSplitBy);
|
|
1081
|
+
result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsTimechartAndChart)(dataSources) : (0, exports.dataSourcesSplitByModeTimechart)(dataSources, trellisSplitBy);
|
|
1133
1082
|
} else if (splitMode === trellisUtils_1.STATS) {
|
|
1134
|
-
result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsStats(dataSources) : exports.dataSourcesSplitByModeStatsorUnknown(dataSources, trellisSplitBy, trellisUtils_1.STATS);
|
|
1083
|
+
result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsStats)(dataSources) : (0, exports.dataSourcesSplitByModeStatsorUnknown)(dataSources, trellisSplitBy, trellisUtils_1.STATS);
|
|
1135
1084
|
} else if (splitMode === trellisUtils_1.CHART) {
|
|
1136
|
-
result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsTimechartAndChart(dataSources) : exports.dataSourcesSplitByModeChart(dataSources, trellisSplitBy);
|
|
1085
|
+
result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsTimechartAndChart)(dataSources) : (0, exports.dataSourcesSplitByModeChart)(dataSources, trellisSplitBy);
|
|
1137
1086
|
} else if (splitMode === trellisUtils_1.UNKNOWN) {
|
|
1138
|
-
result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsUnknown(dataSources) : exports.dataSourcesSplitByModeStatsorUnknown(dataSources, trellisSplitBy, trellisUtils_1.UNKNOWN);
|
|
1087
|
+
result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsUnknown)(dataSources) : (0, exports.dataSourcesSplitByModeStatsorUnknown)(dataSources, trellisSplitBy, trellisUtils_1.UNKNOWN);
|
|
1139
1088
|
}
|
|
1140
1089
|
} catch (ex) {
|
|
1141
1090
|
console.error('getTrellisDataSourcesBySplitMode ', ex);
|
|
@@ -1150,6 +1099,20 @@ exports.getTrellisDataSourcesBySplitMode = getTrellisDataSourcesBySplitMode;
|
|
|
1150
1099
|
|
|
1151
1100
|
/***/ }),
|
|
1152
1101
|
|
|
1102
|
+
/***/ 108:
|
|
1103
|
+
/***/ (function(module, exports) {
|
|
1104
|
+
|
|
1105
|
+
module.exports = require("lodash/pick");
|
|
1106
|
+
|
|
1107
|
+
/***/ }),
|
|
1108
|
+
|
|
1109
|
+
/***/ 109:
|
|
1110
|
+
/***/ (function(module, exports) {
|
|
1111
|
+
|
|
1112
|
+
module.exports = require("lodash/isEmpty");
|
|
1113
|
+
|
|
1114
|
+
/***/ }),
|
|
1115
|
+
|
|
1153
1116
|
/***/ 11:
|
|
1154
1117
|
/***/ (function(module, exports) {
|
|
1155
1118
|
|
|
@@ -1182,14 +1145,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
|
1182
1145
|
var width = _ref.width;
|
|
1183
1146
|
return {
|
|
1184
1147
|
style: {
|
|
1185
|
-
width: style_1.toPx(width)
|
|
1148
|
+
width: (0, style_1.toPx)(width)
|
|
1186
1149
|
}
|
|
1187
1150
|
};
|
|
1188
1151
|
}).withConfig({
|
|
1189
1152
|
displayName: "FixedSizeContainer__Item",
|
|
1190
1153
|
componentId: "sc-1yhgpod-0"
|
|
1191
1154
|
})(["position:relative;background-color:", "};"], function (props) {
|
|
1192
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
1155
|
+
return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
1193
1156
|
});
|
|
1194
1157
|
// Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
1195
1158
|
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
@@ -1197,16 +1160,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
|
1197
1160
|
height = _ref2.height;
|
|
1198
1161
|
return {
|
|
1199
1162
|
style: Object.assign(Object.assign({}, width && {
|
|
1200
|
-
width: style_1.toPx(width)
|
|
1163
|
+
width: (0, style_1.toPx)(width)
|
|
1201
1164
|
}), height && {
|
|
1202
|
-
height: style_1.toPx(height)
|
|
1165
|
+
height: (0, style_1.toPx)(height)
|
|
1203
1166
|
})
|
|
1204
1167
|
};
|
|
1205
1168
|
}).withConfig({
|
|
1206
1169
|
displayName: "FixedSizeContainer__FixSizeItem",
|
|
1207
1170
|
componentId: "sc-1yhgpod-1"
|
|
1208
1171
|
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
1209
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
1172
|
+
return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
1210
1173
|
});
|
|
1211
1174
|
var ItemContent = styled_components_1.default.div.withConfig({
|
|
1212
1175
|
displayName: "FixedSizeContainer__ItemContent",
|
|
@@ -1230,7 +1193,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
1230
1193
|
}
|
|
1231
1194
|
return React.createElement(FixSizeItem, {
|
|
1232
1195
|
"data-test": "fix-size-item",
|
|
1233
|
-
"data-splunk-visualization-version": "
|
|
1196
|
+
"data-splunk-visualization-version": "26.0.0 - 2f7458907",
|
|
1234
1197
|
width: width,
|
|
1235
1198
|
height: height,
|
|
1236
1199
|
backgroundColor: backgroundColor
|
|
@@ -1250,7 +1213,7 @@ exports.default = withFixedSizeContainer;
|
|
|
1250
1213
|
|
|
1251
1214
|
/***/ }),
|
|
1252
1215
|
|
|
1253
|
-
/***/
|
|
1216
|
+
/***/ 135:
|
|
1254
1217
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1255
1218
|
|
|
1256
1219
|
"use strict";
|
|
@@ -1295,6 +1258,57 @@ exports.defaultContext = {
|
|
|
1295
1258
|
|
|
1296
1259
|
/***/ }),
|
|
1297
1260
|
|
|
1261
|
+
/***/ 136:
|
|
1262
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1263
|
+
|
|
1264
|
+
"use strict";
|
|
1265
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1266
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
|
|
1267
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1268
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
1269
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
|
|
1270
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
1274
|
+
var defaultContext = _ref.defaultContext,
|
|
1275
|
+
defaultPalettesConfig = _ref.defaultPalettesConfig;
|
|
1276
|
+
return {
|
|
1277
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
|
|
1278
|
+
option: 'majorColor',
|
|
1279
|
+
context: 'majorColorEditorConfig',
|
|
1280
|
+
editor: 'editor.dynamicColor',
|
|
1281
|
+
showEditor: function showEditor(_ref2) {
|
|
1282
|
+
var options = _ref2.options;
|
|
1283
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
1284
|
+
},
|
|
1285
|
+
editorProps: {
|
|
1286
|
+
labelPosition: 'top',
|
|
1287
|
+
flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: major value'),
|
|
1288
|
+
formatters: [{
|
|
1289
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
|
|
1290
|
+
value: 'rangeValue',
|
|
1291
|
+
defaults: {
|
|
1292
|
+
majorValue: defaultContext.majorColorConfig
|
|
1293
|
+
}
|
|
1294
|
+
}, {
|
|
1295
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
1296
|
+
value: 'matchValue',
|
|
1297
|
+
defaults: {
|
|
1298
|
+
majorValue: defaultContext.majorColorMatchConfig
|
|
1299
|
+
}
|
|
1300
|
+
}],
|
|
1301
|
+
dataSelectors: [{
|
|
1302
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
|
|
1303
|
+
value: 'majorValue'
|
|
1304
|
+
}],
|
|
1305
|
+
defaultPalettesConfig: defaultPalettesConfig
|
|
1306
|
+
}
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1310
|
+
/***/ }),
|
|
1311
|
+
|
|
1298
1312
|
/***/ 14:
|
|
1299
1313
|
/***/ (function(module, exports) {
|
|
1300
1314
|
|
|
@@ -1528,8 +1542,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
|
1528
1542
|
*/
|
|
1529
1543
|
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
1530
1544
|
return presets.find(function (preset) {
|
|
1531
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
1532
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
1545
|
+
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
1546
|
+
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
1533
1547
|
var presetContextKeys = Object.keys(presetContext);
|
|
1534
1548
|
var presetOptionKeys = Object.keys(presetOptions);
|
|
1535
1549
|
// all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
@@ -1546,7 +1560,7 @@ exports.getInitialPreset = getInitialPreset;
|
|
|
1546
1560
|
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
1547
1561
|
*/
|
|
1548
1562
|
function generatePrecisionValues(numPrecisionValues) {
|
|
1549
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
1563
|
+
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
1550
1564
|
return {
|
|
1551
1565
|
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
1552
1566
|
value: i
|
|
@@ -1632,13 +1646,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1632
1646
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
1633
1647
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
1634
1648
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
1635
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
1649
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31);
|
|
1636
1650
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
1637
1651
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54);
|
|
1638
1652
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
1639
|
-
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
1653
|
+
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29);
|
|
1640
1654
|
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
1641
|
-
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
1655
|
+
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49);
|
|
1642
1656
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
|
|
1643
1657
|
|
|
1644
1658
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -2571,35 +2585,35 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
2571
2585
|
/***/ 25:
|
|
2572
2586
|
/***/ (function(module, exports) {
|
|
2573
2587
|
|
|
2574
|
-
module.exports = require("@splunk/
|
|
2588
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
2575
2589
|
|
|
2576
2590
|
/***/ }),
|
|
2577
2591
|
|
|
2578
2592
|
/***/ 26:
|
|
2579
2593
|
/***/ (function(module, exports) {
|
|
2580
2594
|
|
|
2581
|
-
module.exports = require("@splunk/
|
|
2595
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
2582
2596
|
|
|
2583
2597
|
/***/ }),
|
|
2584
2598
|
|
|
2585
2599
|
/***/ 27:
|
|
2586
2600
|
/***/ (function(module, exports) {
|
|
2587
2601
|
|
|
2588
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
2602
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
2589
2603
|
|
|
2590
2604
|
/***/ }),
|
|
2591
2605
|
|
|
2592
2606
|
/***/ 28:
|
|
2593
2607
|
/***/ (function(module, exports) {
|
|
2594
2608
|
|
|
2595
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
2609
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
2596
2610
|
|
|
2597
2611
|
/***/ }),
|
|
2598
2612
|
|
|
2599
2613
|
/***/ 29:
|
|
2600
2614
|
/***/ (function(module, exports) {
|
|
2601
2615
|
|
|
2602
|
-
module.exports = require("@splunk/
|
|
2616
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
2603
2617
|
|
|
2604
2618
|
/***/ }),
|
|
2605
2619
|
|
|
@@ -2613,11 +2627,18 @@ module.exports = require("lodash");
|
|
|
2613
2627
|
/***/ 30:
|
|
2614
2628
|
/***/ (function(module, exports) {
|
|
2615
2629
|
|
|
2616
|
-
module.exports = require("@splunk/
|
|
2630
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
2617
2631
|
|
|
2618
2632
|
/***/ }),
|
|
2619
2633
|
|
|
2620
2634
|
/***/ 31:
|
|
2635
|
+
/***/ (function(module, exports) {
|
|
2636
|
+
|
|
2637
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
2638
|
+
|
|
2639
|
+
/***/ }),
|
|
2640
|
+
|
|
2641
|
+
/***/ 32:
|
|
2621
2642
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2622
2643
|
|
|
2623
2644
|
"use strict";
|
|
@@ -2641,9 +2662,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
|
|
|
2641
2662
|
*/
|
|
2642
2663
|
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
2643
2664
|
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
2644
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
2665
|
+
var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
|
|
2645
2666
|
var noData = data === undefined;
|
|
2646
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
2667
|
+
var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
|
|
2647
2668
|
var noFields = fields === undefined;
|
|
2648
2669
|
return loading || noData || noFields;
|
|
2649
2670
|
};
|
|
@@ -2684,7 +2705,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
|
|
|
2684
2705
|
width: width,
|
|
2685
2706
|
height: height,
|
|
2686
2707
|
level: "warning",
|
|
2687
|
-
message: i18n_1._('No DataSource Connected')
|
|
2708
|
+
message: (0, i18n_1._)('No DataSource Connected')
|
|
2688
2709
|
});
|
|
2689
2710
|
};
|
|
2690
2711
|
IconPlaceholder.propTypes = propTypes;
|
|
@@ -2692,14 +2713,7 @@ IconPlaceholder.defaultProps = {
|
|
|
2692
2713
|
width: '100%',
|
|
2693
2714
|
height: 250
|
|
2694
2715
|
};
|
|
2695
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
2696
|
-
|
|
2697
|
-
/***/ }),
|
|
2698
|
-
|
|
2699
|
-
/***/ 32:
|
|
2700
|
-
/***/ (function(module, exports) {
|
|
2701
|
-
|
|
2702
|
-
module.exports = require("@splunk/ui-utils/id");
|
|
2716
|
+
exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
2703
2717
|
|
|
2704
2718
|
/***/ }),
|
|
2705
2719
|
|
|
@@ -2734,7 +2748,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
2734
2748
|
};
|
|
2735
2749
|
var onSort;
|
|
2736
2750
|
if (typeof onRequestParamsChange === 'function') {
|
|
2737
|
-
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
2751
|
+
if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
|
|
2738
2752
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
2739
2753
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
2740
2754
|
}
|
|
@@ -2743,7 +2757,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
2743
2757
|
var sortKey = _ref2.sortKey,
|
|
2744
2758
|
sortDir = _ref2.sortDir;
|
|
2745
2759
|
if (typeof sortKey === 'string') {
|
|
2746
|
-
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
2760
|
+
var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
2747
2761
|
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
2748
2762
|
offset: 0,
|
|
2749
2763
|
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
@@ -2794,7 +2808,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
2794
2808
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
2795
2809
|
var page = _ref2.page,
|
|
2796
2810
|
countArg = _ref2.count;
|
|
2797
|
-
var newParams = lodash_1.cloneDeep(requestParams);
|
|
2811
|
+
var newParams = (0, lodash_1.cloneDeep)(requestParams);
|
|
2798
2812
|
if (typeof countArg === 'number') {
|
|
2799
2813
|
newParams.count = countArg;
|
|
2800
2814
|
newParams.offset = 0;
|
|
@@ -2858,16 +2872,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2858
2872
|
var React = __webpack_require__(1);
|
|
2859
2873
|
var lodash_1 = __webpack_require__(3);
|
|
2860
2874
|
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
2861
|
-
var Options_1 = __webpack_require__(
|
|
2875
|
+
var Options_1 = __webpack_require__(30);
|
|
2862
2876
|
var SanitizeProps_1 = __webpack_require__(38);
|
|
2863
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2877
|
+
var TimezoneContext_1 = __webpack_require__(26);
|
|
2864
2878
|
var moment_1 = __webpack_require__(39);
|
|
2865
2879
|
var FeatureFlagContext_1 = __webpack_require__(21);
|
|
2866
2880
|
var styled_components_1 = __webpack_require__(4);
|
|
2867
|
-
var hocUtils_1 = __webpack_require__(
|
|
2868
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
2881
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
2882
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
2869
2883
|
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
2870
|
-
var id_1 = __webpack_require__(
|
|
2884
|
+
var id_1 = __webpack_require__(25);
|
|
2871
2885
|
var SplunkVisualization_1 = __webpack_require__(41);
|
|
2872
2886
|
var VizBehavior_1 = __webpack_require__(6);
|
|
2873
2887
|
var getSorting_1 = __webpack_require__(33);
|
|
@@ -2888,8 +2902,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2888
2902
|
computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
|
|
2889
2903
|
disableEditModeCover = opts.disableEditModeCover,
|
|
2890
2904
|
useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
|
|
2891
|
-
var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
|
|
2892
|
-
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
2905
|
+
var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
|
|
2906
|
+
var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
|
|
2893
2907
|
var DashboardViz = function DashboardViz(props) {
|
|
2894
2908
|
var _a;
|
|
2895
2909
|
var mode = props.mode,
|
|
@@ -2924,19 +2938,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2924
2938
|
return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
|
|
2925
2939
|
};
|
|
2926
2940
|
var bgColorFromTheme = themeFunc('defaultBackgroundColor');
|
|
2927
|
-
var
|
|
2941
|
+
var _ref = (0, getSettingsFromThemedProps_1.default)({
|
|
2928
2942
|
theme: theme
|
|
2929
2943
|
}),
|
|
2930
|
-
currentThemeFamily =
|
|
2931
|
-
currentThemeColorScheme =
|
|
2932
|
-
currentThemeDensity =
|
|
2944
|
+
currentThemeFamily = _ref.family,
|
|
2945
|
+
currentThemeColorScheme = _ref.colorScheme,
|
|
2946
|
+
currentThemeDensity = _ref.density;
|
|
2933
2947
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
2934
2948
|
var _React$useState = React.useState({}),
|
|
2935
2949
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
2936
2950
|
evaluatedOptionsAsync = _React$useState2[0],
|
|
2937
2951
|
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
2938
2952
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
2939
|
-
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
2953
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
|
|
2940
2954
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
2941
2955
|
visualizationID = _React$useState4[0];
|
|
2942
2956
|
var _React$useState5 = React.useState({}),
|
|
@@ -2947,16 +2961,17 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2947
2961
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
2948
2962
|
dataFramesInState = _React$useState8[0],
|
|
2949
2963
|
setDataFramesInState = _React$useState8[1];
|
|
2950
|
-
var _React$useState9 = React.useState(Boolean(featureFlagContext
|
|
2964
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
|
|
2951
2965
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
2952
2966
|
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
2953
2967
|
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
2954
|
-
|
|
2968
|
+
var isMounted = React.useRef(true);
|
|
2969
|
+
evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
|
|
2955
2970
|
try {
|
|
2956
2971
|
if (useAsyncEvaluatedOptions) {
|
|
2957
2972
|
var optionsToEvaluate = {
|
|
2958
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
2959
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
2973
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
2974
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
2960
2975
|
};
|
|
2961
2976
|
var asyncDynamicOptionsEvaluatorParams = {
|
|
2962
2977
|
visualizationID: visualizationID,
|
|
@@ -2967,10 +2982,10 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2967
2982
|
};
|
|
2968
2983
|
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
2969
2984
|
setEvaluatedOptionsAsync(results.results);
|
|
2970
|
-
}).catch(function (
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2985
|
+
}).catch(function () {
|
|
2986
|
+
if (isMounted.current) {
|
|
2987
|
+
setUseAsyncEvaluatedOptions(false);
|
|
2988
|
+
}
|
|
2974
2989
|
});
|
|
2975
2990
|
} else {
|
|
2976
2991
|
var dataFrames = dataFramesInState;
|
|
@@ -2980,8 +2995,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2980
2995
|
setDataFramesInState(dataFrames);
|
|
2981
2996
|
}
|
|
2982
2997
|
return Options_1.Options.evaluate({
|
|
2983
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
2984
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
2998
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
2999
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
2985
3000
|
}, dataSources, themeFunc, dataFrames);
|
|
2986
3001
|
}
|
|
2987
3002
|
} catch (e) {
|
|
@@ -3010,6 +3025,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3010
3025
|
React.useEffect(function () {
|
|
3011
3026
|
return function () {
|
|
3012
3027
|
if (useAsyncEvaluatedOptions) {
|
|
3028
|
+
isMounted.current = false;
|
|
3013
3029
|
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
3014
3030
|
}
|
|
3015
3031
|
};
|
|
@@ -3019,7 +3035,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3019
3035
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
3020
3036
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
3021
3037
|
supports = vizConfig.supports;
|
|
3022
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
3038
|
+
var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
|
|
3023
3039
|
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && vizConfig.key !== 'splunk.singlevalue' // For SV missing props msg is not displayed if required props majorValue is missing, instead this will be handled from the component, instead handled within component
|
|
3024
3040
|
) {
|
|
3025
3041
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -3035,7 +3051,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3035
3051
|
if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
|
|
3036
3052
|
var supportedEvents = vizConfig.events;
|
|
3037
3053
|
Object.keys(supportedEvents).forEach(function (eventName) {
|
|
3038
|
-
var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
|
|
3054
|
+
var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
|
|
3039
3055
|
eventCallbackProps[eventCallbackPropName] = null;
|
|
3040
3056
|
// todo: refactor single value and single value icon to send payload from viz
|
|
3041
3057
|
// then remove these lines
|
|
@@ -3078,19 +3094,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3078
3094
|
*/
|
|
3079
3095
|
var dataSourceMetadata = {};
|
|
3080
3096
|
var OptionKey = 'paginateDataSourceKey';
|
|
3081
|
-
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
3082
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
3083
|
-
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
3084
|
-
var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
3097
|
+
var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
3098
|
+
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
|
|
3099
|
+
var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
3100
|
+
var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
3085
3101
|
var handleRequestParamsChange = function handleRequestParamsChange(payload) {
|
|
3086
3102
|
return onRequestParamsChange(paginateDataSourceKey, payload);
|
|
3087
3103
|
};
|
|
3088
|
-
var sortParams = getSorting_1.getSortingParams({
|
|
3104
|
+
var sortParams = (0, getSorting_1.getSortingParams)({
|
|
3089
3105
|
requestParams: requestParams,
|
|
3090
3106
|
meta: meta,
|
|
3091
3107
|
onRequestParamsChange: handleRequestParamsChange
|
|
3092
3108
|
});
|
|
3093
|
-
var paginatorParams = getPagination_1.getPaginationParams({
|
|
3109
|
+
var paginatorParams = (0, getPagination_1.getPaginationParams)({
|
|
3094
3110
|
requestParams: requestParams,
|
|
3095
3111
|
meta: meta,
|
|
3096
3112
|
onRequestParamsChange: handleRequestParamsChange
|
|
@@ -3118,7 +3134,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3118
3134
|
// attach viz config
|
|
3119
3135
|
DashboardViz.config = vizConfig;
|
|
3120
3136
|
// @ts-ignore: TODO fix sc upgrade TS issues
|
|
3121
|
-
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
3137
|
+
return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
3122
3138
|
};
|
|
3123
3139
|
exports.default = withDashboardViz;
|
|
3124
3140
|
|
|
@@ -3362,8 +3378,8 @@ var lodash_1 = __webpack_require__(3);
|
|
|
3362
3378
|
* @param dependencies an array of dependencies
|
|
3363
3379
|
*/
|
|
3364
3380
|
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
3365
|
-
var ref = react_1.useRef();
|
|
3366
|
-
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
3381
|
+
var ref = (0, react_1.useRef)();
|
|
3382
|
+
if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
|
|
3367
3383
|
ref.current = {
|
|
3368
3384
|
dependencies: dependencies,
|
|
3369
3385
|
value: fn()
|
|
@@ -3407,7 +3423,7 @@ exports.isMissing = isMissing;
|
|
|
3407
3423
|
*/
|
|
3408
3424
|
var missingKeys = function missingKeys(keys, target) {
|
|
3409
3425
|
return keys.filter(function (k) {
|
|
3410
|
-
return exports.isMissing(target[k]);
|
|
3426
|
+
return (0, exports.isMissing)(target[k]);
|
|
3411
3427
|
});
|
|
3412
3428
|
};
|
|
3413
3429
|
exports.missingKeys = missingKeys;
|
|
@@ -3431,7 +3447,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
|
3431
3447
|
"data-test": "message",
|
|
3432
3448
|
width: width,
|
|
3433
3449
|
height: height,
|
|
3434
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
3450
|
+
message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
|
|
3435
3451
|
});
|
|
3436
3452
|
};
|
|
3437
3453
|
exports.MissingPropsMessage = MissingPropsMessage;
|
|
@@ -3440,7 +3456,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
3440
3456
|
width: '100%',
|
|
3441
3457
|
height: 250
|
|
3442
3458
|
};
|
|
3443
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
3459
|
+
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
3444
3460
|
|
|
3445
3461
|
/***/ }),
|
|
3446
3462
|
|
|
@@ -3461,7 +3477,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3461
3477
|
componentId: "sc-1gsbnxb-0"
|
|
3462
3478
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3463
3479
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3464
|
-
'data-splunk-visualization-version': "
|
|
3480
|
+
'data-splunk-visualization-version': "26.0.0 - 2f7458907"
|
|
3465
3481
|
}).withConfig({
|
|
3466
3482
|
displayName: "withEditModeCover__Blocker",
|
|
3467
3483
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3480,7 +3496,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
3480
3496
|
"data-test": "edit-mode-cover"
|
|
3481
3497
|
}));
|
|
3482
3498
|
};
|
|
3483
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
3499
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
3484
3500
|
Wrapper: Wrapper,
|
|
3485
3501
|
Visualization: Visualization
|
|
3486
3502
|
});
|
|
@@ -3490,7 +3506,7 @@ exports.default = withEditModeCover;
|
|
|
3490
3506
|
|
|
3491
3507
|
/***/ }),
|
|
3492
3508
|
|
|
3493
|
-
/***/
|
|
3509
|
+
/***/ 467:
|
|
3494
3510
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3495
3511
|
|
|
3496
3512
|
"use strict";
|
|
@@ -3510,11 +3526,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3510
3526
|
value: true
|
|
3511
3527
|
});
|
|
3512
3528
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
3513
|
-
var SingleValue_1 = __webpack_require__(
|
|
3529
|
+
var SingleValue_1 = __webpack_require__(489);
|
|
3514
3530
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
3515
3531
|
var singleValueUtils_1 = __webpack_require__(24);
|
|
3516
|
-
var config_1 = __webpack_require__(
|
|
3517
|
-
var withTrellis_1 = __webpack_require__(
|
|
3532
|
+
var config_1 = __webpack_require__(468);
|
|
3533
|
+
var withTrellis_1 = __webpack_require__(106);
|
|
3518
3534
|
exports.config = config_1.default;
|
|
3519
3535
|
exports.PureSingleValue = SingleValue_1.default;
|
|
3520
3536
|
var computeVizProps = function computeVizProps(_a) {
|
|
@@ -3538,12 +3554,12 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
3538
3554
|
}, props);
|
|
3539
3555
|
};
|
|
3540
3556
|
exports.computeVizProps = computeVizProps;
|
|
3541
|
-
var viz = withTrellis_1.default(withDashboardViz_1.default({
|
|
3557
|
+
var viz = (0, withTrellis_1.default)((0, withDashboardViz_1.default)({
|
|
3542
3558
|
ReactViz: SingleValue_1.default,
|
|
3543
3559
|
vizConfig: config_1.default,
|
|
3544
3560
|
computeVizProps: exports.computeVizProps,
|
|
3545
3561
|
useIconPlaceholder: function useIconPlaceholder(dataSources, loading) {
|
|
3546
|
-
return singleValueUtils_1.isLoadingOrNoColumns(dataSources, loading);
|
|
3562
|
+
return (0, singleValueUtils_1.isLoadingOrNoColumns)(dataSources, loading);
|
|
3547
3563
|
}
|
|
3548
3564
|
}));
|
|
3549
3565
|
exports.themes = config_1.default.themes;
|
|
@@ -3551,7 +3567,7 @@ exports.default = viz;
|
|
|
3551
3567
|
|
|
3552
3568
|
/***/ }),
|
|
3553
3569
|
|
|
3554
|
-
/***/
|
|
3570
|
+
/***/ 468:
|
|
3555
3571
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3556
3572
|
|
|
3557
3573
|
"use strict";
|
|
@@ -3563,23 +3579,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3563
3579
|
});
|
|
3564
3580
|
var i18n_1 = __webpack_require__(2);
|
|
3565
3581
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3566
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
3567
|
-
var variables_1 = __webpack_require__(
|
|
3582
|
+
var PresetPalettes_1 = __webpack_require__(61);
|
|
3583
|
+
var variables_1 = __webpack_require__(469);
|
|
3568
3584
|
var pick_1 = __webpack_require__(23);
|
|
3569
3585
|
var variables_2 = __webpack_require__(11);
|
|
3570
3586
|
var visualization_icons_1 = __webpack_require__(52);
|
|
3571
|
-
var placeholders_1 = __webpack_require__(
|
|
3572
|
-
var singleValueContext_1 = __webpack_require__(
|
|
3587
|
+
var placeholders_1 = __webpack_require__(50);
|
|
3588
|
+
var singleValueContext_1 = __webpack_require__(135);
|
|
3573
3589
|
var VizBehavior_1 = __webpack_require__(6);
|
|
3574
|
-
var DynamicMajorColorEditor_1 = __webpack_require__(
|
|
3575
|
-
var DynamicTrendColorEditor_1 = __webpack_require__(
|
|
3576
|
-
var DynamicBackgroundColorEditor_1 = __webpack_require__(
|
|
3577
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
3578
|
-
var StaticMajorColorEditor_1 = __webpack_require__(
|
|
3579
|
-
var StaticTrendColorEditor_1 = __webpack_require__(
|
|
3580
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
3590
|
+
var DynamicMajorColorEditor_1 = __webpack_require__(136);
|
|
3591
|
+
var DynamicTrendColorEditor_1 = __webpack_require__(100);
|
|
3592
|
+
var DynamicBackgroundColorEditor_1 = __webpack_require__(101);
|
|
3593
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(102);
|
|
3594
|
+
var StaticMajorColorEditor_1 = __webpack_require__(103);
|
|
3595
|
+
var StaticTrendColorEditor_1 = __webpack_require__(104);
|
|
3596
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(90);
|
|
3581
3597
|
var configUtils_1 = __webpack_require__(20);
|
|
3582
|
-
var TrellisEditors_1 = __webpack_require__(
|
|
3598
|
+
var TrellisEditors_1 = __webpack_require__(105);
|
|
3583
3599
|
var VizCategory_1 = __webpack_require__(35);
|
|
3584
3600
|
var layoutUtils_1 = __webpack_require__(58);
|
|
3585
3601
|
var dataContract = {
|
|
@@ -3662,7 +3678,7 @@ var optionsSchema = {
|
|
|
3662
3678
|
default: 'off',
|
|
3663
3679
|
description: 'Specify the layout method by which to display the visualization, which splits the data into individual visualizations based on a certain category.',
|
|
3664
3680
|
type: 'string',
|
|
3665
|
-
pattern: schemaUtils_1.getPattern([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
|
|
3681
|
+
pattern: (0, schemaUtils_1.getPattern)([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
|
|
3666
3682
|
enum: [layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]
|
|
3667
3683
|
},
|
|
3668
3684
|
sparklineAreaColor: {
|
|
@@ -3674,7 +3690,7 @@ var optionsSchema = {
|
|
|
3674
3690
|
sparklineDisplay: {
|
|
3675
3691
|
default: 'below',
|
|
3676
3692
|
description: 'Specify how to display a sparkline.',
|
|
3677
|
-
pattern: schemaUtils_1.getPattern(['before', 'after', 'below', 'off']),
|
|
3693
|
+
pattern: (0, schemaUtils_1.getPattern)(['before', 'after', 'below', 'off']),
|
|
3678
3694
|
type: 'string'
|
|
3679
3695
|
},
|
|
3680
3696
|
sparklineHighlightDots: {
|
|
@@ -3710,7 +3726,7 @@ var optionsSchema = {
|
|
|
3710
3726
|
trendDisplay: {
|
|
3711
3727
|
default: 'absolute',
|
|
3712
3728
|
description: 'Specify how to display the trend value.',
|
|
3713
|
-
pattern: schemaUtils_1.getPattern(['percent', 'absolute', 'off']),
|
|
3729
|
+
pattern: (0, schemaUtils_1.getPattern)(['percent', 'absolute', 'off']),
|
|
3714
3730
|
type: 'string'
|
|
3715
3731
|
},
|
|
3716
3732
|
trendFontSize: {
|
|
@@ -3771,7 +3787,7 @@ var optionsSchema = {
|
|
|
3771
3787
|
unitPosition: {
|
|
3772
3788
|
default: 'after',
|
|
3773
3789
|
description: 'Specify whether the unit text should appear before or after the major value.',
|
|
3774
|
-
pattern: schemaUtils_1.getPattern(['before', 'after']),
|
|
3790
|
+
pattern: (0, schemaUtils_1.getPattern)(['before', 'after']),
|
|
3775
3791
|
type: 'string'
|
|
3776
3792
|
}
|
|
3777
3793
|
};
|
|
@@ -3787,14 +3803,14 @@ var basePresetOptions = {
|
|
|
3787
3803
|
};
|
|
3788
3804
|
var presets = [{
|
|
3789
3805
|
// dummy context variables to allow for resetting of unused context states
|
|
3790
|
-
label: i18n_1._('None'),
|
|
3806
|
+
label: (0, i18n_1._)('None'),
|
|
3791
3807
|
name: 'singleValue.none',
|
|
3792
3808
|
value: {
|
|
3793
3809
|
context: Object.assign({}, basePresetContext),
|
|
3794
3810
|
options: Object.assign({}, basePresetOptions)
|
|
3795
3811
|
}
|
|
3796
3812
|
}, {
|
|
3797
|
-
label: i18n_1._('Major value'),
|
|
3813
|
+
label: (0, i18n_1._)('Major value'),
|
|
3798
3814
|
name: 'singleValue.majorValue',
|
|
3799
3815
|
value: {
|
|
3800
3816
|
context: Object.assign(Object.assign({}, basePresetContext), {
|
|
@@ -3805,7 +3821,7 @@ var presets = [{
|
|
|
3805
3821
|
})
|
|
3806
3822
|
}
|
|
3807
3823
|
}, {
|
|
3808
|
-
label: i18n_1._('Trend value'),
|
|
3824
|
+
label: (0, i18n_1._)('Trend value'),
|
|
3809
3825
|
name: 'singleValue.trend',
|
|
3810
3826
|
value: {
|
|
3811
3827
|
context: Object.assign(Object.assign({}, basePresetContext), {
|
|
@@ -3816,7 +3832,7 @@ var presets = [{
|
|
|
3816
3832
|
})
|
|
3817
3833
|
}
|
|
3818
3834
|
}, {
|
|
3819
|
-
label: i18n_1._('Major value and Trend value'),
|
|
3835
|
+
label: (0, i18n_1._)('Major value and Trend value'),
|
|
3820
3836
|
name: 'singleValue.majorValueAndTrend',
|
|
3821
3837
|
value: {
|
|
3822
3838
|
context: Object.assign(Object.assign({}, basePresetContext), {
|
|
@@ -3829,7 +3845,7 @@ var presets = [{
|
|
|
3829
3845
|
})
|
|
3830
3846
|
}
|
|
3831
3847
|
}, {
|
|
3832
|
-
label: i18n_1._('Background'),
|
|
3848
|
+
label: (0, i18n_1._)('Background'),
|
|
3833
3849
|
name: 'singleValue.background',
|
|
3834
3850
|
value: {
|
|
3835
3851
|
context: Object.assign(Object.assign({}, basePresetContext), {
|
|
@@ -3847,7 +3863,7 @@ var LIGHTMODE_SPARKLINE_AREA_COLOR = '#171D21';
|
|
|
3847
3863
|
var DARKMODE_SPARKLINE_AREA_COLOR = '#FFFFFF';
|
|
3848
3864
|
var themes = {
|
|
3849
3865
|
defaultFontColor: function defaultFontColor(props) {
|
|
3850
|
-
return pick_1.default({
|
|
3866
|
+
return (0, pick_1.default)({
|
|
3851
3867
|
enterprise: {
|
|
3852
3868
|
dark: variables_2.default.textColor(props),
|
|
3853
3869
|
light: variables_2.default.gray20(props)
|
|
@@ -3856,13 +3872,13 @@ var themes = {
|
|
|
3856
3872
|
})(props);
|
|
3857
3873
|
},
|
|
3858
3874
|
defaultBlockFontColor: function defaultBlockFontColor(props) {
|
|
3859
|
-
return pick_1.default({
|
|
3875
|
+
return (0, pick_1.default)({
|
|
3860
3876
|
enterprise: variables_2.default.white(props),
|
|
3861
3877
|
prisma: variables_2.default.contentColorActive(props)
|
|
3862
3878
|
})(props);
|
|
3863
3879
|
},
|
|
3864
3880
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
3865
|
-
return pick_1.default({
|
|
3881
|
+
return (0, pick_1.default)({
|
|
3866
3882
|
enterprise: {
|
|
3867
3883
|
dark: variables_2.default.black(props),
|
|
3868
3884
|
light: variables_2.default.backgroundColor(props)
|
|
@@ -3871,14 +3887,14 @@ var themes = {
|
|
|
3871
3887
|
})(props);
|
|
3872
3888
|
},
|
|
3873
3889
|
defaultSparklineStrokeColor: function defaultSparklineStrokeColor(props) {
|
|
3874
|
-
return pick_1.default({
|
|
3890
|
+
return (0, pick_1.default)({
|
|
3875
3891
|
enterprise: variables_2.default.textColor(props),
|
|
3876
3892
|
prisma: variables_2.default.contentColorActive(props)
|
|
3877
3893
|
})(props);
|
|
3878
3894
|
},
|
|
3879
3895
|
// TODO(fkurniawan): update with SCP-36839
|
|
3880
3896
|
sparklineSeverityColors: function sparklineSeverityColors(props) {
|
|
3881
|
-
return pick_1.default({
|
|
3897
|
+
return (0, pick_1.default)({
|
|
3882
3898
|
enterprise: {
|
|
3883
3899
|
dark: JSON.stringify({
|
|
3884
3900
|
none: {
|
|
@@ -3963,7 +3979,7 @@ var themes = {
|
|
|
3963
3979
|
},
|
|
3964
3980
|
// TODO(fkurniawan): update with SCP-36839
|
|
3965
3981
|
sparklineFillColor: function sparklineFillColor(props) {
|
|
3966
|
-
return pick_1.default({
|
|
3982
|
+
return (0, pick_1.default)({
|
|
3967
3983
|
enterprise: {
|
|
3968
3984
|
light: LIGHTMODE_SPARKLINE_AREA_COLOR,
|
|
3969
3985
|
dark: DARKMODE_SPARKLINE_AREA_COLOR
|
|
@@ -3973,9 +3989,9 @@ var themes = {
|
|
|
3973
3989
|
}
|
|
3974
3990
|
};
|
|
3975
3991
|
var editorConfig = [{
|
|
3976
|
-
label: i18n_1._('Data configurations'),
|
|
3992
|
+
label: (0, i18n_1._)('Data configurations'),
|
|
3977
3993
|
layout: [[{
|
|
3978
|
-
label: i18n_1._('Value'),
|
|
3994
|
+
label: (0, i18n_1._)('Value'),
|
|
3979
3995
|
editor: 'editor.columnSelector',
|
|
3980
3996
|
option: 'sparklineValues',
|
|
3981
3997
|
context: 'sparklineValuesContext',
|
|
@@ -3999,20 +4015,20 @@ var editorConfig = [{
|
|
|
3999
4015
|
}
|
|
4000
4016
|
}]]
|
|
4001
4017
|
}, {
|
|
4002
|
-
label: i18n_1._('Data display'),
|
|
4018
|
+
label: (0, i18n_1._)('Data display'),
|
|
4003
4019
|
layout: [].concat(_toConsumableArray(StaticMajorAndTrendLayout_1.default), [[{
|
|
4004
|
-
label: i18n_1._('Trend display'),
|
|
4020
|
+
label: (0, i18n_1._)('Trend display'),
|
|
4005
4021
|
option: 'trendDisplay',
|
|
4006
4022
|
editor: 'editor.select',
|
|
4007
4023
|
editorProps: {
|
|
4008
4024
|
values: [{
|
|
4009
|
-
label: i18n_1._('Percent'),
|
|
4025
|
+
label: (0, i18n_1._)('Percent'),
|
|
4010
4026
|
value: 'percent'
|
|
4011
4027
|
}, {
|
|
4012
|
-
label: i18n_1._('Absolute'),
|
|
4028
|
+
label: (0, i18n_1._)('Absolute'),
|
|
4013
4029
|
value: 'absolute'
|
|
4014
4030
|
}, {
|
|
4015
|
-
label: i18n_1._('Off'),
|
|
4031
|
+
label: (0, i18n_1._)('Off'),
|
|
4016
4032
|
value: 'off'
|
|
4017
4033
|
}]
|
|
4018
4034
|
},
|
|
@@ -4021,29 +4037,29 @@ var editorConfig = [{
|
|
|
4021
4037
|
return options.showValue || options.showValue === undefined;
|
|
4022
4038
|
}
|
|
4023
4039
|
}, {
|
|
4024
|
-
label: i18n_1._('Sparkline display'),
|
|
4040
|
+
label: (0, i18n_1._)('Sparkline display'),
|
|
4025
4041
|
option: 'sparklineDisplay',
|
|
4026
4042
|
editor: 'editor.select',
|
|
4027
4043
|
editorProps: {
|
|
4028
4044
|
values: [{
|
|
4029
|
-
label: i18n_1._('Off'),
|
|
4045
|
+
label: (0, i18n_1._)('Off'),
|
|
4030
4046
|
value: 'off'
|
|
4031
4047
|
}, {
|
|
4032
|
-
label: i18n_1._('Before'),
|
|
4048
|
+
label: (0, i18n_1._)('Before'),
|
|
4033
4049
|
value: 'before'
|
|
4034
4050
|
}, {
|
|
4035
|
-
label: i18n_1._('Below'),
|
|
4051
|
+
label: (0, i18n_1._)('Below'),
|
|
4036
4052
|
value: 'below'
|
|
4037
4053
|
}, {
|
|
4038
|
-
label: i18n_1._('After'),
|
|
4054
|
+
label: (0, i18n_1._)('After'),
|
|
4039
4055
|
value: 'after'
|
|
4040
4056
|
}]
|
|
4041
4057
|
}
|
|
4042
4058
|
}]], _toConsumableArray(TrellisEditors_1.TrellisEditorConfig))
|
|
4043
4059
|
}, {
|
|
4044
|
-
label: i18n_1._('Color and style'),
|
|
4060
|
+
label: (0, i18n_1._)('Color and style'),
|
|
4045
4061
|
layout: [[{
|
|
4046
|
-
label: i18n_1._('Dynamic elements'),
|
|
4062
|
+
label: (0, i18n_1._)('Dynamic elements'),
|
|
4047
4063
|
key: 'presetSelector',
|
|
4048
4064
|
editor: 'editor.presetSelector',
|
|
4049
4065
|
editorProps: {
|
|
@@ -4051,7 +4067,7 @@ var editorConfig = [{
|
|
|
4051
4067
|
value: function value(_ref3) {
|
|
4052
4068
|
var context = _ref3.context,
|
|
4053
4069
|
options = _ref3.options;
|
|
4054
|
-
var initialPreset = configUtils_1.getInitialPreset(context, options, presets);
|
|
4070
|
+
var initialPreset = (0, configUtils_1.getInitialPreset)(context, options, presets);
|
|
4055
4071
|
return initialPreset && initialPreset.label || null;
|
|
4056
4072
|
}
|
|
4057
4073
|
}
|
|
@@ -4059,14 +4075,14 @@ var editorConfig = [{
|
|
|
4059
4075
|
editorProps: {
|
|
4060
4076
|
themes: themes
|
|
4061
4077
|
}
|
|
4062
|
-
})], [DynamicMajorColorEditor_1.getDynamicMajorColorEditor({
|
|
4078
|
+
})], [(0, DynamicMajorColorEditor_1.getDynamicMajorColorEditor)({
|
|
4063
4079
|
defaultContext: singleValueContext_1.defaultContext,
|
|
4064
4080
|
defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
|
|
4065
4081
|
})], [Object.assign(Object.assign({}, StaticTrendColorEditor_1.default), {
|
|
4066
4082
|
editorProps: {
|
|
4067
4083
|
themes: themes
|
|
4068
4084
|
}
|
|
4069
|
-
})], [DynamicTrendColorEditor_1.getDynamicTrendColorEditor({
|
|
4085
|
+
})], [(0, DynamicTrendColorEditor_1.getDynamicTrendColorEditor)({
|
|
4070
4086
|
defaultContext: singleValueContext_1.defaultContext,
|
|
4071
4087
|
defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
|
|
4072
4088
|
})], [Object.assign(Object.assign({}, StaticBackgroundColorEditor_1.default), {
|
|
@@ -4077,29 +4093,29 @@ var editorConfig = [{
|
|
|
4077
4093
|
editorProps: {
|
|
4078
4094
|
themes: themes
|
|
4079
4095
|
}
|
|
4080
|
-
})], [DynamicBackgroundColorEditor_1.getDynamicBackgroundColorEditor({
|
|
4096
|
+
})], [(0, DynamicBackgroundColorEditor_1.getDynamicBackgroundColorEditor)({
|
|
4081
4097
|
defaultContext: singleValueContext_1.defaultContext,
|
|
4082
4098
|
defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
|
|
4083
4099
|
})], [{
|
|
4084
|
-
label: i18n_1._('Major value size (px)'),
|
|
4100
|
+
label: (0, i18n_1._)('Major value size (px)'),
|
|
4085
4101
|
option: 'majorFontSize',
|
|
4086
4102
|
editor: 'editor.number',
|
|
4087
4103
|
editorProps: {
|
|
4088
4104
|
min: 1
|
|
4089
4105
|
},
|
|
4090
|
-
placeholder: i18n_1._('Auto'),
|
|
4106
|
+
placeholder: (0, i18n_1._)('Auto'),
|
|
4091
4107
|
showEditor: function showEditor(_ref4) {
|
|
4092
4108
|
var options = _ref4.options;
|
|
4093
4109
|
return options.showValue || options.showValue === undefined;
|
|
4094
4110
|
}
|
|
4095
4111
|
}, {
|
|
4096
|
-
label: i18n_1._('Trend value size (px)'),
|
|
4112
|
+
label: (0, i18n_1._)('Trend value size (px)'),
|
|
4097
4113
|
option: 'trendFontSize',
|
|
4098
4114
|
editor: 'editor.number',
|
|
4099
4115
|
editorProps: {
|
|
4100
4116
|
min: 1
|
|
4101
4117
|
},
|
|
4102
|
-
placeholder: i18n_1._('Auto'),
|
|
4118
|
+
placeholder: (0, i18n_1._)('Auto'),
|
|
4103
4119
|
showEditor: function showEditor(_ref5) {
|
|
4104
4120
|
var options = _ref5.options;
|
|
4105
4121
|
return options.showValue || options.showValue === undefined;
|
|
@@ -4121,7 +4137,7 @@ var config = {
|
|
|
4121
4137
|
/**
|
|
4122
4138
|
* viz name
|
|
4123
4139
|
*/
|
|
4124
|
-
name: i18n_1._('Single value'),
|
|
4140
|
+
name: (0, i18n_1._)('Single value'),
|
|
4125
4141
|
category: VizCategory_1.VizCategory.SINGLE_VALUE,
|
|
4126
4142
|
/**
|
|
4127
4143
|
* viz icon
|
|
@@ -4143,11 +4159,11 @@ var config = {
|
|
|
4143
4159
|
themes: themes,
|
|
4144
4160
|
requiredProps: ['majorValue']
|
|
4145
4161
|
};
|
|
4146
|
-
exports.default = configUtils_1.enhanceConfig(config);
|
|
4162
|
+
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
4147
4163
|
|
|
4148
4164
|
/***/ }),
|
|
4149
4165
|
|
|
4150
|
-
/***/
|
|
4166
|
+
/***/ 469:
|
|
4151
4167
|
/***/ (function(module, exports) {
|
|
4152
4168
|
|
|
4153
4169
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
@@ -4166,7 +4182,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4166
4182
|
var React = __webpack_require__(1);
|
|
4167
4183
|
var colorUtils_1 = __webpack_require__(12);
|
|
4168
4184
|
var variables_1 = __webpack_require__(11);
|
|
4169
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
4185
|
+
var IconPlaceholder_1 = __webpack_require__(32);
|
|
4170
4186
|
var VizBehavior_1 = __webpack_require__(6);
|
|
4171
4187
|
var hocUtils_1 = __webpack_require__(15);
|
|
4172
4188
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
@@ -4181,7 +4197,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
4181
4197
|
height = props.height,
|
|
4182
4198
|
width = props.width;
|
|
4183
4199
|
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
4184
|
-
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
4200
|
+
var bgColorFromTheme = (0, colorUtils_1.isColor)(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
4185
4201
|
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
4186
4202
|
var iconColor = variables_1.default.contentColorActive(props);
|
|
4187
4203
|
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
@@ -4196,7 +4212,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
4196
4212
|
}
|
|
4197
4213
|
return React.createElement(Visualization, Object.assign({}, props));
|
|
4198
4214
|
};
|
|
4199
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
4215
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
4200
4216
|
Wrapper: Wrapper,
|
|
4201
4217
|
Visualization: Visualization
|
|
4202
4218
|
});
|
|
@@ -4213,7 +4229,7 @@ module.exports = require("@babel/runtime/helpers/extends");
|
|
|
4213
4229
|
|
|
4214
4230
|
/***/ }),
|
|
4215
4231
|
|
|
4216
|
-
/***/
|
|
4232
|
+
/***/ 489:
|
|
4217
4233
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4218
4234
|
|
|
4219
4235
|
"use strict";
|
|
@@ -4241,11 +4257,11 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
4241
4257
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
4242
4258
|
|
|
4243
4259
|
// EXTERNAL MODULE: external "lodash/pick"
|
|
4244
|
-
var pick_ = __webpack_require__(
|
|
4260
|
+
var pick_ = __webpack_require__(108);
|
|
4245
4261
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
|
|
4246
4262
|
|
|
4247
4263
|
// EXTERNAL MODULE: external "lodash/isEmpty"
|
|
4248
|
-
var isEmpty_ = __webpack_require__(
|
|
4264
|
+
var isEmpty_ = __webpack_require__(109);
|
|
4249
4265
|
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
4250
4266
|
|
|
4251
4267
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
|
|
@@ -4260,10 +4276,10 @@ var FeatureFlagContext_ = __webpack_require__(21);
|
|
|
4260
4276
|
var FeatureFlagContext_default = /*#__PURE__*/__webpack_require__.n(FeatureFlagContext_);
|
|
4261
4277
|
|
|
4262
4278
|
// EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
|
|
4263
|
-
var VizStyleWrapper = __webpack_require__(
|
|
4279
|
+
var VizStyleWrapper = __webpack_require__(73);
|
|
4264
4280
|
|
|
4265
4281
|
// EXTERNAL MODULE: ./src/common/components/TrellisTitle.tsx
|
|
4266
|
-
var TrellisTitle = __webpack_require__(
|
|
4282
|
+
var TrellisTitle = __webpack_require__(79);
|
|
4267
4283
|
|
|
4268
4284
|
// EXTERNAL MODULE: ./src/common/utils/layoutUtils.ts
|
|
4269
4285
|
var layoutUtils = __webpack_require__(58);
|
|
@@ -4273,10 +4289,10 @@ var defineProperty_ = __webpack_require__(7);
|
|
|
4273
4289
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
|
|
4274
4290
|
|
|
4275
4291
|
// EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
|
|
4276
|
-
var SingleValueBasic = __webpack_require__(
|
|
4292
|
+
var SingleValueBasic = __webpack_require__(81);
|
|
4277
4293
|
|
|
4278
4294
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
|
|
4279
|
-
var propUtils_ = __webpack_require__(
|
|
4295
|
+
var propUtils_ = __webpack_require__(29);
|
|
4280
4296
|
|
|
4281
4297
|
// EXTERNAL MODULE: ./src/SparkLine/SparkLine.jsx
|
|
4282
4298
|
var SparkLine = __webpack_require__(95);
|
|
@@ -4341,10 +4357,10 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
|
|
|
4341
4357
|
};
|
|
4342
4358
|
/* harmony default export */ var PureSingleValue_SingleValueSparkline = (SingleValueSparkline_SingleValueSparkline);
|
|
4343
4359
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/colorConstants"
|
|
4344
|
-
var colorConstants_ = __webpack_require__(
|
|
4360
|
+
var colorConstants_ = __webpack_require__(49);
|
|
4345
4361
|
|
|
4346
4362
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
|
|
4347
|
-
var numberUtils_ = __webpack_require__(
|
|
4363
|
+
var numberUtils_ = __webpack_require__(31);
|
|
4348
4364
|
|
|
4349
4365
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
4350
4366
|
var singleValueUtils = __webpack_require__(24);
|
|
@@ -5080,14 +5096,14 @@ SingleValue_SingleValue.defaultProps = {
|
|
|
5080
5096
|
/***/ 49:
|
|
5081
5097
|
/***/ (function(module, exports) {
|
|
5082
5098
|
|
|
5083
|
-
module.exports = require("@splunk/
|
|
5099
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
5084
5100
|
|
|
5085
5101
|
/***/ }),
|
|
5086
5102
|
|
|
5087
5103
|
/***/ 50:
|
|
5088
5104
|
/***/ (function(module, exports) {
|
|
5089
5105
|
|
|
5090
|
-
module.exports = require("@splunk/
|
|
5106
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
5091
5107
|
|
|
5092
5108
|
/***/ }),
|
|
5093
5109
|
|
|
@@ -5130,13 +5146,6 @@ var LAYOUT_TYPE;
|
|
|
5130
5146
|
|
|
5131
5147
|
/***/ }),
|
|
5132
5148
|
|
|
5133
|
-
/***/ 59:
|
|
5134
|
-
/***/ (function(module, exports) {
|
|
5135
|
-
|
|
5136
|
-
module.exports = require("@splunk/themes");
|
|
5137
|
-
|
|
5138
|
-
/***/ }),
|
|
5139
|
-
|
|
5140
5149
|
/***/ 6:
|
|
5141
5150
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5142
5151
|
|
|
@@ -5177,20 +5186,27 @@ var VizBehavior;
|
|
|
5177
5186
|
/***/ 60:
|
|
5178
5187
|
/***/ (function(module, exports) {
|
|
5179
5188
|
|
|
5180
|
-
module.exports = require("@splunk/
|
|
5189
|
+
module.exports = require("@splunk/themes");
|
|
5181
5190
|
|
|
5182
5191
|
/***/ }),
|
|
5183
5192
|
|
|
5184
5193
|
/***/ 61:
|
|
5185
5194
|
/***/ (function(module, exports) {
|
|
5186
5195
|
|
|
5187
|
-
module.exports = require("@splunk/
|
|
5196
|
+
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
5188
5197
|
|
|
5189
5198
|
/***/ }),
|
|
5190
5199
|
|
|
5191
5200
|
/***/ 62:
|
|
5192
5201
|
/***/ (function(module, exports) {
|
|
5193
5202
|
|
|
5203
|
+
module.exports = require("@splunk/react-ui/Popover");
|
|
5204
|
+
|
|
5205
|
+
/***/ }),
|
|
5206
|
+
|
|
5207
|
+
/***/ 63:
|
|
5208
|
+
/***/ (function(module, exports) {
|
|
5209
|
+
|
|
5194
5210
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
5195
5211
|
|
|
5196
5212
|
/***/ }),
|
|
@@ -5202,21 +5218,21 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
|
5202
5218
|
|
|
5203
5219
|
/***/ }),
|
|
5204
5220
|
|
|
5205
|
-
/***/
|
|
5221
|
+
/***/ 71:
|
|
5206
5222
|
/***/ (function(module, exports) {
|
|
5207
5223
|
|
|
5208
5224
|
module.exports = require("@babel/runtime/helpers/inherits");
|
|
5209
5225
|
|
|
5210
5226
|
/***/ }),
|
|
5211
5227
|
|
|
5212
|
-
/***/
|
|
5228
|
+
/***/ 72:
|
|
5213
5229
|
/***/ (function(module, exports) {
|
|
5214
5230
|
|
|
5215
5231
|
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
5216
5232
|
|
|
5217
5233
|
/***/ }),
|
|
5218
5234
|
|
|
5219
|
-
/***/
|
|
5235
|
+
/***/ 73:
|
|
5220
5236
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5221
5237
|
|
|
5222
5238
|
"use strict";
|
|
@@ -5241,7 +5257,7 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
5241
5257
|
|
|
5242
5258
|
/***/ }),
|
|
5243
5259
|
|
|
5244
|
-
/***/
|
|
5260
|
+
/***/ 79:
|
|
5245
5261
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5246
5262
|
|
|
5247
5263
|
"use strict";
|
|
@@ -5281,7 +5297,14 @@ exports.TrellisTitle = TrellisTitle;
|
|
|
5281
5297
|
|
|
5282
5298
|
/***/ }),
|
|
5283
5299
|
|
|
5284
|
-
/***/
|
|
5300
|
+
/***/ 8:
|
|
5301
|
+
/***/ (function(module, exports) {
|
|
5302
|
+
|
|
5303
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
5304
|
+
|
|
5305
|
+
/***/ }),
|
|
5306
|
+
|
|
5307
|
+
/***/ 81:
|
|
5285
5308
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5286
5309
|
|
|
5287
5310
|
"use strict";
|
|
@@ -5311,11 +5334,11 @@ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(exte
|
|
|
5311
5334
|
var singleValueUtils = __webpack_require__(24);
|
|
5312
5335
|
|
|
5313
5336
|
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowUp"
|
|
5314
|
-
var ArrowUp_ = __webpack_require__(
|
|
5337
|
+
var ArrowUp_ = __webpack_require__(84);
|
|
5315
5338
|
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
|
|
5316
5339
|
|
|
5317
5340
|
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowDown"
|
|
5318
|
-
var ArrowDown_ = __webpack_require__(
|
|
5341
|
+
var ArrowDown_ = __webpack_require__(85);
|
|
5319
5342
|
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
|
|
5320
5343
|
|
|
5321
5344
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
@@ -5390,7 +5413,7 @@ TrendValue_SingleValueContent.propTypes = {
|
|
|
5390
5413
|
};
|
|
5391
5414
|
/* harmony default export */ var TrendValue = (TrendValue_SingleValueContent);
|
|
5392
5415
|
// EXTERNAL MODULE: external "cssesc"
|
|
5393
|
-
var external_cssesc_ = __webpack_require__(
|
|
5416
|
+
var external_cssesc_ = __webpack_require__(86);
|
|
5394
5417
|
var external_cssesc_default = /*#__PURE__*/__webpack_require__.n(external_cssesc_);
|
|
5395
5418
|
|
|
5396
5419
|
// CONCATENATED MODULE: ./src/SingleValueBasic/MajorValue.jsx
|
|
@@ -5575,63 +5598,49 @@ var SingleValueTrendValue = TrendValue;
|
|
|
5575
5598
|
|
|
5576
5599
|
/***/ }),
|
|
5577
5600
|
|
|
5578
|
-
/***/
|
|
5579
|
-
/***/ (function(module, exports) {
|
|
5580
|
-
|
|
5581
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
5582
|
-
|
|
5583
|
-
/***/ }),
|
|
5584
|
-
|
|
5585
|
-
/***/ 80:
|
|
5601
|
+
/***/ 83:
|
|
5586
5602
|
/***/ (function(module, exports) {
|
|
5587
5603
|
|
|
5588
5604
|
module.exports = require("@splunk/visualizations-shared/trellisUtils");
|
|
5589
5605
|
|
|
5590
5606
|
/***/ }),
|
|
5591
5607
|
|
|
5592
|
-
/***/
|
|
5593
|
-
/***/ (function(module, exports) {
|
|
5594
|
-
|
|
5595
|
-
module.exports = require("lodash/pick");
|
|
5596
|
-
|
|
5597
|
-
/***/ }),
|
|
5598
|
-
|
|
5599
|
-
/***/ 82:
|
|
5608
|
+
/***/ 84:
|
|
5600
5609
|
/***/ (function(module, exports) {
|
|
5601
5610
|
|
|
5602
|
-
module.exports = require("
|
|
5611
|
+
module.exports = require("@splunk/react-icons/enterprise/ArrowUp");
|
|
5603
5612
|
|
|
5604
5613
|
/***/ }),
|
|
5605
5614
|
|
|
5606
|
-
/***/
|
|
5615
|
+
/***/ 85:
|
|
5607
5616
|
/***/ (function(module, exports) {
|
|
5608
5617
|
|
|
5609
|
-
module.exports = require("@splunk/react-icons/enterprise/
|
|
5618
|
+
module.exports = require("@splunk/react-icons/enterprise/ArrowDown");
|
|
5610
5619
|
|
|
5611
5620
|
/***/ }),
|
|
5612
5621
|
|
|
5613
|
-
/***/
|
|
5622
|
+
/***/ 86:
|
|
5614
5623
|
/***/ (function(module, exports) {
|
|
5615
5624
|
|
|
5616
|
-
module.exports = require("
|
|
5625
|
+
module.exports = require("cssesc");
|
|
5617
5626
|
|
|
5618
5627
|
/***/ }),
|
|
5619
5628
|
|
|
5620
|
-
/***/
|
|
5629
|
+
/***/ 87:
|
|
5621
5630
|
/***/ (function(module, exports) {
|
|
5622
5631
|
|
|
5623
|
-
module.exports = require("
|
|
5632
|
+
module.exports = require("@babel/runtime/helpers/assertThisInitialized");
|
|
5624
5633
|
|
|
5625
5634
|
/***/ }),
|
|
5626
5635
|
|
|
5627
|
-
/***/
|
|
5636
|
+
/***/ 9:
|
|
5628
5637
|
/***/ (function(module, exports) {
|
|
5629
5638
|
|
|
5630
|
-
module.exports = require("@babel/runtime/helpers/
|
|
5639
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
5631
5640
|
|
|
5632
5641
|
/***/ }),
|
|
5633
5642
|
|
|
5634
|
-
/***/
|
|
5643
|
+
/***/ 90:
|
|
5635
5644
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5636
5645
|
|
|
5637
5646
|
"use strict";
|
|
@@ -5655,14 +5664,7 @@ var StaticBackgroundColorEditor = {
|
|
|
5655
5664
|
|
|
5656
5665
|
/***/ }),
|
|
5657
5666
|
|
|
5658
|
-
/***/
|
|
5659
|
-
/***/ (function(module, exports) {
|
|
5660
|
-
|
|
5661
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
5662
|
-
|
|
5663
|
-
/***/ }),
|
|
5664
|
-
|
|
5665
|
-
/***/ 92:
|
|
5667
|
+
/***/ 93:
|
|
5666
5668
|
/***/ (function(module, exports) {
|
|
5667
5669
|
|
|
5668
5670
|
module.exports = require("@splunk/react-ui/Paginator");
|
|
@@ -5680,13 +5682,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5680
5682
|
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
|
|
5681
5683
|
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
|
|
5682
5684
|
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
|
|
5683
|
-
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
5685
|
+
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87);
|
|
5684
5686
|
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);
|
|
5685
|
-
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
5687
|
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71);
|
|
5686
5688
|
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
|
|
5687
|
-
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
5689
|
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(72);
|
|
5688
5690
|
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
|
|
5689
|
-
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
5691
|
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63);
|
|
5690
5692
|
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
|
|
5691
5693
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
|
|
5692
5694
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
|
|
@@ -5696,10 +5698,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5696
5698
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
5697
5699
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3);
|
|
5698
5700
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
|
|
5699
|
-
/* harmony import */ var
|
|
5700
|
-
/* harmony import */ var
|
|
5701
|
-
/* harmony import */ var
|
|
5702
|
-
/* harmony import */ var
|
|
5701
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4);
|
|
5702
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_11__);
|
|
5703
|
+
/* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62);
|
|
5704
|
+
/* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__);
|
|
5705
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2);
|
|
5706
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__);
|
|
5707
|
+
/* harmony import */ var _splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(25);
|
|
5708
|
+
/* harmony import */ var _splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14__);
|
|
5703
5709
|
|
|
5704
5710
|
|
|
5705
5711
|
|
|
@@ -5738,11 +5744,13 @@ function _isNativeReflectConstruct() {
|
|
|
5738
5744
|
|
|
5739
5745
|
|
|
5740
5746
|
|
|
5741
|
-
|
|
5747
|
+
|
|
5748
|
+
|
|
5749
|
+
var StyledSvg = styled_components__WEBPACK_IMPORTED_MODULE_11___default.a.svg.withConfig({
|
|
5742
5750
|
displayName: "SparkLine__StyledSvg",
|
|
5743
5751
|
componentId: "sc-5oplra-0"
|
|
5744
5752
|
})(["overflow:hidden;"]);
|
|
5745
|
-
var StyledTooltip =
|
|
5753
|
+
var StyledTooltip = styled_components__WEBPACK_IMPORTED_MODULE_11___default.a.div.withConfig({
|
|
5746
5754
|
displayName: "SparkLine__StyledTooltip",
|
|
5747
5755
|
componentId: "sc-5oplra-1"
|
|
5748
5756
|
})(["padding:3px 8px;font-size:12px;"]);
|
|
@@ -5768,6 +5776,7 @@ var SparkLine = /*#__PURE__*/function (_Component) {
|
|
|
5768
5776
|
rectArea: null,
|
|
5769
5777
|
tooltip: null
|
|
5770
5778
|
};
|
|
5779
|
+
_this.titleId = Object(_splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14__["createDOMID"])();
|
|
5771
5780
|
return _this;
|
|
5772
5781
|
}
|
|
5773
5782
|
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SparkLine, [{
|
|
@@ -6015,7 +6024,7 @@ var SparkLine = /*#__PURE__*/function (_Component) {
|
|
|
6015
6024
|
}, {
|
|
6016
6025
|
key: "renderTooltip",
|
|
6017
6026
|
value: function renderTooltip() {
|
|
6018
|
-
return this.state.anchor !== null && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(
|
|
6027
|
+
return this.state.anchor !== null && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12___default.a, {
|
|
6019
6028
|
"data-test": "tooltip",
|
|
6020
6029
|
open: this.state.open,
|
|
6021
6030
|
anchor: this.state.anchor,
|
|
@@ -6107,7 +6116,8 @@ var SparkLine = /*#__PURE__*/function (_Component) {
|
|
|
6107
6116
|
height = _this$props9.height,
|
|
6108
6117
|
isArea = _this$props9.isArea,
|
|
6109
6118
|
lineStrokeWidth = _this$props9.lineStrokeWidth,
|
|
6110
|
-
width = _this$props9.width
|
|
6119
|
+
width = _this$props9.width,
|
|
6120
|
+
title = _this$props9.title;
|
|
6111
6121
|
if (data.length === 0) {
|
|
6112
6122
|
return null;
|
|
6113
6123
|
}
|
|
@@ -6132,8 +6142,14 @@ var SparkLine = /*#__PURE__*/function (_Component) {
|
|
|
6132
6142
|
ref: elementRef
|
|
6133
6143
|
}, Object(lodash__WEBPACK_IMPORTED_MODULE_10__["omit"])(this.props, Object(lodash__WEBPACK_IMPORTED_MODULE_10__["keys"])(SparkLine.propTypes))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(StyledSvg, {
|
|
6134
6144
|
height: height,
|
|
6135
|
-
width: width
|
|
6136
|
-
|
|
6145
|
+
width: width,
|
|
6146
|
+
role: "img",
|
|
6147
|
+
"aria-labelledby": this.titleId,
|
|
6148
|
+
"data-test": "sparkline-svg"
|
|
6149
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("title", {
|
|
6150
|
+
id: this.titleId,
|
|
6151
|
+
"data-test": "sparkline-title"
|
|
6152
|
+
}, title || Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__["_"])('Source count over time sparkline trend')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("g", null, this.renderCursor(), this.renderPolyline(points), this.renderArea(points), dotsToShow ? this.renderEndDots(points, dotsToShow, xMargin) : null, showTooltip ? this.renderRect(points, xMargin) : null, showTooltip ? this.renderTooltip() : null)));
|
|
6137
6153
|
}
|
|
6138
6154
|
}]);
|
|
6139
6155
|
return SparkLine;
|
|
@@ -6210,7 +6226,9 @@ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Spa
|
|
|
6210
6226
|
/**
|
|
6211
6227
|
* The width of the container.
|
|
6212
6228
|
*/
|
|
6213
|
-
width: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.number.isRequired
|
|
6229
|
+
width: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.number.isRequired,
|
|
6230
|
+
/** Sets the a11y title text on sparkline. */
|
|
6231
|
+
title: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string
|
|
6214
6232
|
});
|
|
6215
6233
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(SparkLine, "defaultProps", {
|
|
6216
6234
|
acceptNull: false,
|