@splunk/visualizations 25.0.1 → 25.1.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/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/Area.config.js +141 -152
- package/Area.config.js.map +1 -1
- package/Area.js +334 -431
- package/Area.js.map +1 -1
- package/Bar.config.js +143 -148
- package/Bar.config.js.map +1 -1
- package/Bar.js +336 -427
- package/Bar.js.map +1 -1
- package/Bubble.config.js +130 -117
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +325 -398
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +86 -80
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +305 -385
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +139 -146
- package/Column.config.js.map +1 -1
- package/Column.js +332 -425
- package/Column.js.map +1 -1
- package/Ellipse.config.js +86 -80
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +288 -368
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +91 -85
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +296 -376
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +74 -74
- package/Image.config.js.map +1 -1
- package/Image.js +710 -798
- package/Image.js.map +1 -1
- package/Line.config.js +139 -137
- package/Line.config.js.map +1 -1
- package/Line.js +332 -416
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +112 -112
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +320 -405
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +101 -95
- package/Map.config.js.map +1 -1
- package/Map.js +472 -518
- package/Map.js.map +1 -1
- package/Markdown.config.js +113 -113
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +500 -574
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +192 -193
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1200 -1289
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +138 -138
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +292 -376
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +133 -133
- package/Pie.config.js.map +1 -1
- package/Pie.js +496 -584
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +139 -139
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +315 -399
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +267 -260
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +499 -580
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +150 -143
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +316 -390
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +130 -117
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +547 -623
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +119 -113
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +523 -604
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +19 -19
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +128 -120
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +343 -420
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +215 -178
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +668 -749
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +150 -151
- package/Table.config.js.map +1 -1
- package/Table.js +772 -854
- package/Table.js.map +1 -1
- package/common/Charting.js +11 -11
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +12 -12
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +8 -8
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +8 -8
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +51 -352
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +22 -22
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +4 -4
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +13 -13
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +17 -18
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +6 -86
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/{JSONSchemaUtils.js → mapUtils.js} +89 -29
- package/common/utils/mapUtils.js.map +1 -0
- package/common/utils/singleValueUtils.js +14 -12
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +8 -8
- package/common/utils/testHelper.js.map +1 -1
- package/common/withDashboardViz.js +120 -207
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +12 -12
- package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
- package/common/utils/JSONSchemaUtils.js.map +0 -1
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 = 257);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -109,18 +109,18 @@ module.exports = require("react");
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@
|
|
112
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
116
|
/***/ 11:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
119
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
123
|
+
/***/ 111:
|
|
124
124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
125
125
|
|
|
126
126
|
"use strict";
|
|
@@ -165,12 +165,12 @@ exports.defaultContext = {
|
|
|
165
165
|
|
|
166
166
|
/***/ }),
|
|
167
167
|
|
|
168
|
-
/***/
|
|
168
|
+
/***/ 112:
|
|
169
169
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
170
170
|
|
|
171
171
|
"use strict";
|
|
172
172
|
__webpack_require__.r(__webpack_exports__);
|
|
173
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
173
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
174
174
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
175
175
|
|
|
176
176
|
var StaticMajorAndTrendLayout = [[{
|
|
@@ -265,20 +265,6 @@ var StaticMajorAndTrendLayout = [[{
|
|
|
265
265
|
/***/ }),
|
|
266
266
|
|
|
267
267
|
/***/ 12:
|
|
268
|
-
/***/ (function(module, exports) {
|
|
269
|
-
|
|
270
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
271
|
-
|
|
272
|
-
/***/ }),
|
|
273
|
-
|
|
274
|
-
/***/ 13:
|
|
275
|
-
/***/ (function(module, exports) {
|
|
276
|
-
|
|
277
|
-
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
278
|
-
|
|
279
|
-
/***/ }),
|
|
280
|
-
|
|
281
|
-
/***/ 14:
|
|
282
268
|
/***/ (function(module, exports, __webpack_require__) {
|
|
283
269
|
|
|
284
270
|
"use strict";
|
|
@@ -292,11 +278,11 @@ var React = __webpack_require__(1);
|
|
|
292
278
|
|
|
293
279
|
var styled_components_1 = __webpack_require__(4);
|
|
294
280
|
|
|
295
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
281
|
+
var SizeAwareWrapper_1 = __webpack_require__(19);
|
|
296
282
|
|
|
297
|
-
var style_1 = __webpack_require__(
|
|
283
|
+
var style_1 = __webpack_require__(14);
|
|
298
284
|
|
|
299
|
-
var colorUtils_1 = __webpack_require__(
|
|
285
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
300
286
|
|
|
301
287
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
302
288
|
var width = _ref.width;
|
|
@@ -353,7 +339,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
353
339
|
|
|
354
340
|
return React.createElement(FixSizeItem, {
|
|
355
341
|
"data-test": "fix-size-item",
|
|
356
|
-
"data-splunk-visualization-version": "25.0
|
|
342
|
+
"data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
|
|
357
343
|
width: width,
|
|
358
344
|
height: height,
|
|
359
345
|
backgroundColor: backgroundColor
|
|
@@ -375,35 +361,319 @@ exports.default = withFixedSizeContainer;
|
|
|
375
361
|
|
|
376
362
|
/***/ }),
|
|
377
363
|
|
|
378
|
-
/***/
|
|
364
|
+
/***/ 13:
|
|
365
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
366
|
+
|
|
367
|
+
"use strict";
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
Object.defineProperty(exports, "__esModule", {
|
|
371
|
+
value: true
|
|
372
|
+
});
|
|
373
|
+
exports.extendStaticWrapperProps = void 0;
|
|
374
|
+
/**
|
|
375
|
+
* @method extendStaticWrapperProps
|
|
376
|
+
* @param {Object} props
|
|
377
|
+
* @param {DashboardVizType} props.Wrapper
|
|
378
|
+
* @param {DashboardVizType} props.Visualization
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
382
|
+
var Wrapper = _ref.Wrapper,
|
|
383
|
+
Visualization = _ref.Visualization;
|
|
384
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
385
|
+
extendProperties.forEach(function (prop) {
|
|
386
|
+
if (Visualization[prop]) {
|
|
387
|
+
// eslint-disable-next-line no-param-reassign
|
|
388
|
+
Wrapper[prop] = Visualization[prop];
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
394
|
+
|
|
395
|
+
/***/ }),
|
|
396
|
+
|
|
397
|
+
/***/ 14:
|
|
379
398
|
/***/ (function(module, exports) {
|
|
380
399
|
|
|
381
400
|
module.exports = require("@splunk/visualizations-shared/style");
|
|
382
401
|
|
|
383
402
|
/***/ }),
|
|
384
403
|
|
|
385
|
-
/***/
|
|
404
|
+
/***/ 15:
|
|
386
405
|
/***/ (function(module, exports) {
|
|
387
406
|
|
|
388
407
|
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
389
408
|
|
|
390
409
|
/***/ }),
|
|
391
410
|
|
|
411
|
+
/***/ 16:
|
|
412
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
413
|
+
|
|
414
|
+
"use strict";
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
418
|
+
|
|
419
|
+
var _defineProperty = __webpack_require__(6);
|
|
420
|
+
|
|
421
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
422
|
+
var t = {};
|
|
423
|
+
|
|
424
|
+
for (var p in s) {
|
|
425
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
429
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
430
|
+
}
|
|
431
|
+
return t;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
Object.defineProperty(exports, "__esModule", {
|
|
435
|
+
value: true
|
|
436
|
+
});
|
|
437
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
438
|
+
|
|
439
|
+
var lodash_1 = __webpack_require__(3);
|
|
440
|
+
|
|
441
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
442
|
+
|
|
443
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
444
|
+
|
|
445
|
+
var dynamicOptionsDSLType = {
|
|
446
|
+
type: 'string',
|
|
447
|
+
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* Helper function to extend an options schema with dynamic options DSL
|
|
451
|
+
* @param optionsSchema a visualization's options schema
|
|
452
|
+
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
453
|
+
*/
|
|
454
|
+
|
|
455
|
+
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
456
|
+
var enhancedOptionsSchema = {};
|
|
457
|
+
Object.keys(optionsSchema).forEach(function (key) {
|
|
458
|
+
var _a = optionsSchema[key],
|
|
459
|
+
title = _a.title,
|
|
460
|
+
description = _a.description,
|
|
461
|
+
readOnly = _a.readOnly,
|
|
462
|
+
writeOnly = _a.writeOnly,
|
|
463
|
+
examples = _a.examples,
|
|
464
|
+
defaultValue = _a.default,
|
|
465
|
+
type = _a.type,
|
|
466
|
+
properties = _a.properties,
|
|
467
|
+
patternProperties = _a.patternProperties,
|
|
468
|
+
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
469
|
+
|
|
470
|
+
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
471
|
+
title: title
|
|
472
|
+
}), description !== undefined && {
|
|
473
|
+
description: description
|
|
474
|
+
}), readOnly !== undefined && {
|
|
475
|
+
readOnly: readOnly
|
|
476
|
+
}), writeOnly !== undefined && {
|
|
477
|
+
writeOnly: writeOnly
|
|
478
|
+
}), examples !== undefined && {
|
|
479
|
+
examples: examples
|
|
480
|
+
}), defaultValue !== undefined && {
|
|
481
|
+
default: defaultValue
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
if (type === 'object') {
|
|
485
|
+
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
486
|
+
type: type
|
|
487
|
+
}), properties && {
|
|
488
|
+
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
if (patternProperties) {
|
|
492
|
+
var enhancedPatternProperties = {};
|
|
493
|
+
Object.keys(patternProperties).forEach(function (opt) {
|
|
494
|
+
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
495
|
+
});
|
|
496
|
+
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
497
|
+
}
|
|
498
|
+
} else {
|
|
499
|
+
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
500
|
+
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
501
|
+
type: type
|
|
502
|
+
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
return enhancedOptionsSchema;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
510
|
+
/**
|
|
511
|
+
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
512
|
+
* this function also collapse all editor panels
|
|
513
|
+
* @param vizConfig a Visualization Config
|
|
514
|
+
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
515
|
+
* and containing `open: false` for all editor panels in editorConfig
|
|
516
|
+
*/
|
|
517
|
+
|
|
518
|
+
function enhanceConfig(vizConfig) {
|
|
519
|
+
var enhancedConfig = vizConfig;
|
|
520
|
+
|
|
521
|
+
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
522
|
+
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
526
|
+
return Object.assign(Object.assign({}, config), {
|
|
527
|
+
open: false
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
return enhancedConfig;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
exports.enhanceConfig = enhanceConfig;
|
|
534
|
+
/**
|
|
535
|
+
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
536
|
+
* Created for editor unit tests
|
|
537
|
+
* @param vizConfig a Visualization Config
|
|
538
|
+
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
539
|
+
*/
|
|
540
|
+
|
|
541
|
+
function uncollapseEditorConfig(vizConfig) {
|
|
542
|
+
var editorPanelUncollapsedConfig = vizConfig;
|
|
543
|
+
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
544
|
+
return Object.assign(Object.assign({}, config), {
|
|
545
|
+
open: true
|
|
546
|
+
});
|
|
547
|
+
});
|
|
548
|
+
return editorPanelUncollapsedConfig;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
552
|
+
|
|
553
|
+
function isDynamicOption(option) {
|
|
554
|
+
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
558
|
+
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
562
|
+
* if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
|
|
563
|
+
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
564
|
+
* the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
|
|
565
|
+
*
|
|
566
|
+
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
567
|
+
*/
|
|
568
|
+
|
|
569
|
+
function hasCompatibleContexts(vizContext, presetContext) {
|
|
570
|
+
var presetContextKeys = Object.keys(presetContext);
|
|
571
|
+
return presetContextKeys.every(function (contextKey) {
|
|
572
|
+
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
577
|
+
*/
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
581
|
+
var presetOptionKeys = Object.keys(presetOptions);
|
|
582
|
+
return presetOptionKeys.every(function (optionKey) {
|
|
583
|
+
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
588
|
+
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
589
|
+
*
|
|
590
|
+
* @param {Object} vizContext - the current vizContext definition
|
|
591
|
+
* @param {Object} vizOptions - the current vizOptions definition
|
|
592
|
+
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
593
|
+
*/
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
597
|
+
return presets.find(function (preset) {
|
|
598
|
+
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
599
|
+
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
600
|
+
var presetContextKeys = Object.keys(presetContext);
|
|
601
|
+
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
602
|
+
// if not, then the preset is invalid in config.ts
|
|
603
|
+
|
|
604
|
+
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
605
|
+
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
exports.getInitialPreset = getInitialPreset;
|
|
610
|
+
/**
|
|
611
|
+
* generates number precision values for a Select editor
|
|
612
|
+
*
|
|
613
|
+
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
614
|
+
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
615
|
+
*/
|
|
616
|
+
|
|
617
|
+
function generatePrecisionValues(numPrecisionValues) {
|
|
618
|
+
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
619
|
+
return {
|
|
620
|
+
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
621
|
+
value: i
|
|
622
|
+
};
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
exports.generatePrecisionValues = generatePrecisionValues;
|
|
627
|
+
/**
|
|
628
|
+
* insert layout in layout array, return a new layout array instead of updating the original
|
|
629
|
+
*
|
|
630
|
+
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
631
|
+
* @param {Number} index - the index to insert layout item(s)
|
|
632
|
+
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
633
|
+
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
634
|
+
*/
|
|
635
|
+
|
|
636
|
+
var insertLayout = function insertLayout(layout, index) {
|
|
637
|
+
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
638
|
+
layoutItems[_key - 2] = arguments[_key];
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
exports.insertLayout = insertLayout;
|
|
645
|
+
|
|
646
|
+
/***/ }),
|
|
647
|
+
|
|
392
648
|
/***/ 17:
|
|
393
649
|
/***/ (function(module, exports) {
|
|
394
650
|
|
|
395
|
-
module.exports = require("@
|
|
651
|
+
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
396
652
|
|
|
397
653
|
/***/ }),
|
|
398
654
|
|
|
399
655
|
/***/ 18:
|
|
400
656
|
/***/ (function(module, exports) {
|
|
401
657
|
|
|
402
|
-
module.exports = require("@
|
|
658
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
403
659
|
|
|
404
660
|
/***/ }),
|
|
405
661
|
|
|
406
662
|
/***/ 19:
|
|
663
|
+
/***/ (function(module, exports) {
|
|
664
|
+
|
|
665
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
666
|
+
|
|
667
|
+
/***/ }),
|
|
668
|
+
|
|
669
|
+
/***/ 2:
|
|
670
|
+
/***/ (function(module, exports) {
|
|
671
|
+
|
|
672
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
673
|
+
|
|
674
|
+
/***/ }),
|
|
675
|
+
|
|
676
|
+
/***/ 20:
|
|
407
677
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
408
678
|
|
|
409
679
|
"use strict";
|
|
@@ -438,15 +708,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
438
708
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
|
|
439
709
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
|
|
440
710
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
|
|
441
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
711
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
442
712
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
443
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
713
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
444
714
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
445
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
715
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
|
|
446
716
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
447
717
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48);
|
|
448
718
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
449
|
-
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
719
|
+
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23);
|
|
450
720
|
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
451
721
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43);
|
|
452
722
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
|
|
@@ -1412,83 +1682,42 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
1412
1682
|
|
|
1413
1683
|
/***/ }),
|
|
1414
1684
|
|
|
1415
|
-
/***/ 2:
|
|
1416
|
-
/***/ (function(module, exports) {
|
|
1417
|
-
|
|
1418
|
-
module.exports = require("lodash");
|
|
1419
|
-
|
|
1420
|
-
/***/ }),
|
|
1421
|
-
|
|
1422
|
-
/***/ 20:
|
|
1423
|
-
/***/ (function(module, exports) {
|
|
1424
|
-
|
|
1425
|
-
module.exports = require("@splunk/themes/pick");
|
|
1426
|
-
|
|
1427
|
-
/***/ }),
|
|
1428
|
-
|
|
1429
1685
|
/***/ 21:
|
|
1430
1686
|
/***/ (function(module, exports) {
|
|
1431
1687
|
|
|
1432
|
-
module.exports = require("@splunk/
|
|
1688
|
+
module.exports = require("@splunk/themes/pick");
|
|
1433
1689
|
|
|
1434
1690
|
/***/ }),
|
|
1435
1691
|
|
|
1436
1692
|
/***/ 22:
|
|
1437
1693
|
/***/ (function(module, exports) {
|
|
1438
1694
|
|
|
1439
|
-
module.exports = require("@splunk/
|
|
1695
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1440
1696
|
|
|
1441
1697
|
/***/ }),
|
|
1442
1698
|
|
|
1443
1699
|
/***/ 23:
|
|
1444
1700
|
/***/ (function(module, exports) {
|
|
1445
1701
|
|
|
1446
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
1702
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
1447
1703
|
|
|
1448
1704
|
/***/ }),
|
|
1449
1705
|
|
|
1450
1706
|
/***/ 24:
|
|
1451
|
-
/***/ (function(module, exports
|
|
1452
|
-
|
|
1453
|
-
"use strict";
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1457
|
-
value: true
|
|
1458
|
-
});
|
|
1459
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
1460
|
-
|
|
1461
|
-
var lodash_1 = __webpack_require__(2);
|
|
1462
|
-
|
|
1463
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
1464
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
1465
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
1466
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
1467
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
1468
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
1469
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
1470
|
-
|
|
1471
|
-
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
1472
|
-
accum[k] = nestedSchema;
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
return accum;
|
|
1477
|
-
}, {});
|
|
1478
|
-
};
|
|
1707
|
+
/***/ (function(module, exports) {
|
|
1479
1708
|
|
|
1480
|
-
exports
|
|
1709
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1481
1710
|
|
|
1482
1711
|
/***/ }),
|
|
1483
1712
|
|
|
1484
1713
|
/***/ 25:
|
|
1485
1714
|
/***/ (function(module, exports) {
|
|
1486
1715
|
|
|
1487
|
-
module.exports = require("@
|
|
1716
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1488
1717
|
|
|
1489
1718
|
/***/ }),
|
|
1490
1719
|
|
|
1491
|
-
/***/
|
|
1720
|
+
/***/ 257:
|
|
1492
1721
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1493
1722
|
|
|
1494
1723
|
"use strict";
|
|
@@ -1499,13 +1728,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1499
1728
|
});
|
|
1500
1729
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
1501
1730
|
|
|
1502
|
-
var SingleValue_1 = __webpack_require__(
|
|
1731
|
+
var SingleValue_1 = __webpack_require__(280);
|
|
1503
1732
|
|
|
1504
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
1733
|
+
var withDashboardViz_1 = __webpack_require__(31);
|
|
1505
1734
|
|
|
1506
|
-
var singleValueUtils_1 = __webpack_require__(
|
|
1735
|
+
var singleValueUtils_1 = __webpack_require__(20);
|
|
1507
1736
|
|
|
1508
|
-
var config_1 = __webpack_require__(
|
|
1737
|
+
var config_1 = __webpack_require__(258);
|
|
1509
1738
|
|
|
1510
1739
|
exports.config = config_1.default;
|
|
1511
1740
|
exports.PureSingleValue = SingleValue_1.default;
|
|
@@ -1544,7 +1773,7 @@ exports.default = viz;
|
|
|
1544
1773
|
|
|
1545
1774
|
/***/ }),
|
|
1546
1775
|
|
|
1547
|
-
/***/
|
|
1776
|
+
/***/ 258:
|
|
1548
1777
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1549
1778
|
|
|
1550
1779
|
"use strict";
|
|
@@ -1554,23 +1783,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1554
1783
|
value: true
|
|
1555
1784
|
});
|
|
1556
1785
|
|
|
1557
|
-
var i18n_1 = __webpack_require__(
|
|
1786
|
+
var i18n_1 = __webpack_require__(2);
|
|
1558
1787
|
|
|
1559
|
-
var schemaUtils_1 = __webpack_require__(
|
|
1788
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
1560
1789
|
|
|
1561
1790
|
var PresetPalettes_1 = __webpack_require__(53);
|
|
1562
1791
|
|
|
1563
|
-
var variables_1 = __webpack_require__(
|
|
1792
|
+
var variables_1 = __webpack_require__(259);
|
|
1564
1793
|
|
|
1565
|
-
var pick_1 = __webpack_require__(
|
|
1794
|
+
var pick_1 = __webpack_require__(21);
|
|
1566
1795
|
|
|
1567
|
-
var variables_2 = __webpack_require__(
|
|
1796
|
+
var variables_2 = __webpack_require__(8);
|
|
1568
1797
|
|
|
1569
1798
|
var visualization_icons_1 = __webpack_require__(46);
|
|
1570
1799
|
|
|
1571
1800
|
var placeholders_1 = __webpack_require__(45);
|
|
1572
1801
|
|
|
1573
|
-
var singleValueContext_1 = __webpack_require__(
|
|
1802
|
+
var singleValueContext_1 = __webpack_require__(111);
|
|
1574
1803
|
|
|
1575
1804
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1576
1805
|
|
|
@@ -1580,7 +1809,7 @@ var DynamicTrendColorEditor_1 = __webpack_require__(84);
|
|
|
1580
1809
|
|
|
1581
1810
|
var DynamicBackgroundColorEditor_1 = __webpack_require__(85);
|
|
1582
1811
|
|
|
1583
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
1812
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(112);
|
|
1584
1813
|
|
|
1585
1814
|
var StaticMajorColorEditor_1 = __webpack_require__(86);
|
|
1586
1815
|
|
|
@@ -1588,9 +1817,9 @@ var StaticTrendColorEditor_1 = __webpack_require__(87);
|
|
|
1588
1817
|
|
|
1589
1818
|
var StaticBackgroundColorEditor_1 = __webpack_require__(77);
|
|
1590
1819
|
|
|
1591
|
-
var configUtils_1 = __webpack_require__(
|
|
1820
|
+
var configUtils_1 = __webpack_require__(16);
|
|
1592
1821
|
|
|
1593
|
-
var VizCategory_1 = __webpack_require__(
|
|
1822
|
+
var VizCategory_1 = __webpack_require__(30);
|
|
1594
1823
|
|
|
1595
1824
|
var dataContract = {
|
|
1596
1825
|
requiredDataSources: [{
|
|
@@ -1671,7 +1900,7 @@ var optionsSchema = {
|
|
|
1671
1900
|
sparklineAreaColor: {
|
|
1672
1901
|
default: '> sparklineStrokeColor',
|
|
1673
1902
|
description: 'Specify the color for the sparkline area fill. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The graph area will have an opacity of 20% and will blend with the background color.',
|
|
1674
|
-
pattern: schemaUtils_1.
|
|
1903
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1675
1904
|
type: 'string'
|
|
1676
1905
|
},
|
|
1677
1906
|
sparklineDisplay: {
|
|
@@ -1972,7 +2201,7 @@ var editorConfig = [{
|
|
|
1972
2201
|
layout: [[{
|
|
1973
2202
|
label: i18n_1._('Sparkline display'),
|
|
1974
2203
|
option: 'sparklineDisplay',
|
|
1975
|
-
editor: 'editor.
|
|
2204
|
+
editor: 'editor.select',
|
|
1976
2205
|
editorProps: {
|
|
1977
2206
|
values: [{
|
|
1978
2207
|
label: i18n_1._('Off'),
|
|
@@ -2070,7 +2299,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2070
2299
|
|
|
2071
2300
|
/***/ }),
|
|
2072
2301
|
|
|
2073
|
-
/***/
|
|
2302
|
+
/***/ 259:
|
|
2074
2303
|
/***/ (function(module, exports) {
|
|
2075
2304
|
|
|
2076
2305
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
@@ -2078,6 +2307,13 @@ module.exports = require("@splunk/visualization-themes/variables");
|
|
|
2078
2307
|
/***/ }),
|
|
2079
2308
|
|
|
2080
2309
|
/***/ 26:
|
|
2310
|
+
/***/ (function(module, exports) {
|
|
2311
|
+
|
|
2312
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
2313
|
+
|
|
2314
|
+
/***/ }),
|
|
2315
|
+
|
|
2316
|
+
/***/ 27:
|
|
2081
2317
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2082
2318
|
|
|
2083
2319
|
"use strict";
|
|
@@ -2092,13 +2328,13 @@ var React = __webpack_require__(1);
|
|
|
2092
2328
|
|
|
2093
2329
|
var T = __webpack_require__(0);
|
|
2094
2330
|
|
|
2095
|
-
var lodash_1 = __webpack_require__(
|
|
2331
|
+
var lodash_1 = __webpack_require__(3);
|
|
2096
2332
|
|
|
2097
|
-
var i18n_1 = __webpack_require__(
|
|
2333
|
+
var i18n_1 = __webpack_require__(2);
|
|
2098
2334
|
|
|
2099
|
-
var Message_1 = __webpack_require__(
|
|
2335
|
+
var Message_1 = __webpack_require__(9);
|
|
2100
2336
|
|
|
2101
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2337
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
2102
2338
|
/**
|
|
2103
2339
|
* @method shouldShowIconPlaceholder
|
|
2104
2340
|
* @param {object} dataSources
|
|
@@ -2169,13 +2405,13 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
2169
2405
|
|
|
2170
2406
|
/***/ }),
|
|
2171
2407
|
|
|
2172
|
-
/***/
|
|
2408
|
+
/***/ 28:
|
|
2173
2409
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2174
2410
|
|
|
2175
2411
|
"use strict";
|
|
2176
2412
|
|
|
2177
2413
|
|
|
2178
|
-
var _defineProperty = __webpack_require__(
|
|
2414
|
+
var _defineProperty = __webpack_require__(6);
|
|
2179
2415
|
|
|
2180
2416
|
Object.defineProperty(exports, "__esModule", {
|
|
2181
2417
|
value: true
|
|
@@ -2184,9 +2420,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
|
2184
2420
|
|
|
2185
2421
|
var T = __webpack_require__(0);
|
|
2186
2422
|
|
|
2187
|
-
var lodash_1 = __webpack_require__(
|
|
2423
|
+
var lodash_1 = __webpack_require__(3);
|
|
2188
2424
|
|
|
2189
|
-
var DataSource_1 = __webpack_require__(
|
|
2425
|
+
var DataSource_1 = __webpack_require__(38);
|
|
2190
2426
|
|
|
2191
2427
|
exports.SortParamsPropTypes = T.shape({
|
|
2192
2428
|
currentSortKey: T.string,
|
|
@@ -2240,7 +2476,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
2240
2476
|
|
|
2241
2477
|
/***/ }),
|
|
2242
2478
|
|
|
2243
|
-
/***/
|
|
2479
|
+
/***/ 280:
|
|
2244
2480
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2245
2481
|
|
|
2246
2482
|
"use strict";
|
|
@@ -2276,28 +2512,28 @@ var isEmpty_ = __webpack_require__(71);
|
|
|
2276
2512
|
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
2277
2513
|
|
|
2278
2514
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
|
|
2279
|
-
var style_ = __webpack_require__(
|
|
2515
|
+
var style_ = __webpack_require__(14);
|
|
2280
2516
|
|
|
2281
2517
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
|
|
2282
|
-
var SizeAwareWrapper_ = __webpack_require__(
|
|
2518
|
+
var SizeAwareWrapper_ = __webpack_require__(19);
|
|
2283
2519
|
var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
|
|
2284
2520
|
|
|
2285
2521
|
// EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
|
|
2286
2522
|
var VizStyleWrapper = __webpack_require__(62);
|
|
2287
2523
|
|
|
2288
2524
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
|
|
2289
|
-
var defineProperty_ = __webpack_require__(
|
|
2525
|
+
var defineProperty_ = __webpack_require__(6);
|
|
2290
2526
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
|
|
2291
2527
|
|
|
2292
2528
|
// EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
|
|
2293
2529
|
var SingleValueBasic = __webpack_require__(68);
|
|
2294
2530
|
|
|
2295
2531
|
// EXTERNAL MODULE: external "@splunk/react-sparkline/Line"
|
|
2296
|
-
var Line_ = __webpack_require__(
|
|
2532
|
+
var Line_ = __webpack_require__(92);
|
|
2297
2533
|
var Line_default = /*#__PURE__*/__webpack_require__.n(Line_);
|
|
2298
2534
|
|
|
2299
2535
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
|
|
2300
|
-
var propUtils_ = __webpack_require__(
|
|
2536
|
+
var propUtils_ = __webpack_require__(23);
|
|
2301
2537
|
|
|
2302
2538
|
// CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/SingleValueSparkline.jsx
|
|
2303
2539
|
|
|
@@ -2364,10 +2600,10 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
|
|
|
2364
2600
|
var colorConstants_ = __webpack_require__(43);
|
|
2365
2601
|
|
|
2366
2602
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
|
|
2367
|
-
var numberUtils_ = __webpack_require__(
|
|
2603
|
+
var numberUtils_ = __webpack_require__(26);
|
|
2368
2604
|
|
|
2369
2605
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
2370
|
-
var singleValueUtils = __webpack_require__(
|
|
2606
|
+
var singleValueUtils = __webpack_require__(20);
|
|
2371
2607
|
|
|
2372
2608
|
// CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/utils/displayUtils.js
|
|
2373
2609
|
|
|
@@ -3096,7 +3332,7 @@ SingleValue_SingleValue.defaultProps = {
|
|
|
3096
3332
|
|
|
3097
3333
|
/***/ }),
|
|
3098
3334
|
|
|
3099
|
-
/***/
|
|
3335
|
+
/***/ 29:
|
|
3100
3336
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3101
3337
|
|
|
3102
3338
|
"use strict";
|
|
@@ -3109,7 +3345,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
|
3109
3345
|
|
|
3110
3346
|
var T = __webpack_require__(0);
|
|
3111
3347
|
|
|
3112
|
-
var lodash_1 = __webpack_require__(
|
|
3348
|
+
var lodash_1 = __webpack_require__(3);
|
|
3113
3349
|
|
|
3114
3350
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
3115
3351
|
isPaging: T.bool,
|
|
@@ -3161,7 +3397,14 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
3161
3397
|
|
|
3162
3398
|
/***/ }),
|
|
3163
3399
|
|
|
3164
|
-
/***/
|
|
3400
|
+
/***/ 3:
|
|
3401
|
+
/***/ (function(module, exports) {
|
|
3402
|
+
|
|
3403
|
+
module.exports = require("lodash");
|
|
3404
|
+
|
|
3405
|
+
/***/ }),
|
|
3406
|
+
|
|
3407
|
+
/***/ 30:
|
|
3165
3408
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3166
3409
|
|
|
3167
3410
|
"use strict";
|
|
@@ -3190,14 +3433,7 @@ var VizCategory;
|
|
|
3190
3433
|
|
|
3191
3434
|
/***/ }),
|
|
3192
3435
|
|
|
3193
|
-
/***/
|
|
3194
|
-
/***/ (function(module, exports) {
|
|
3195
|
-
|
|
3196
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
3197
|
-
|
|
3198
|
-
/***/ }),
|
|
3199
|
-
|
|
3200
|
-
/***/ 30:
|
|
3436
|
+
/***/ 31:
|
|
3201
3437
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3202
3438
|
|
|
3203
3439
|
"use strict";
|
|
@@ -3209,39 +3445,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3209
3445
|
|
|
3210
3446
|
var React = __webpack_require__(1);
|
|
3211
3447
|
|
|
3212
|
-
var lodash_1 = __webpack_require__(
|
|
3448
|
+
var lodash_1 = __webpack_require__(3);
|
|
3213
3449
|
|
|
3214
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
3450
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(32);
|
|
3215
3451
|
|
|
3216
|
-
var Options_1 = __webpack_require__(
|
|
3452
|
+
var Options_1 = __webpack_require__(33);
|
|
3217
3453
|
|
|
3218
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
3454
|
+
var SanitizeProps_1 = __webpack_require__(34);
|
|
3219
3455
|
|
|
3220
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
3456
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
3221
3457
|
|
|
3222
|
-
var moment_1 = __webpack_require__(
|
|
3458
|
+
var moment_1 = __webpack_require__(35);
|
|
3223
3459
|
|
|
3224
3460
|
var styled_components_1 = __webpack_require__(4);
|
|
3225
3461
|
|
|
3226
|
-
var
|
|
3462
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
3227
3463
|
|
|
3228
|
-
var
|
|
3464
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
3229
3465
|
|
|
3230
|
-
var
|
|
3466
|
+
var SplunkVisualization_1 = __webpack_require__(36);
|
|
3231
3467
|
|
|
3232
|
-
var
|
|
3468
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
3233
3469
|
|
|
3234
|
-
var
|
|
3470
|
+
var getSorting_1 = __webpack_require__(28);
|
|
3235
3471
|
|
|
3236
|
-
var
|
|
3472
|
+
var getPagination_1 = __webpack_require__(29);
|
|
3237
3473
|
|
|
3238
|
-
var
|
|
3474
|
+
var useDeepMemo_1 = __webpack_require__(39);
|
|
3239
3475
|
|
|
3240
|
-
var
|
|
3476
|
+
var MissingPropsMessage_1 = __webpack_require__(40);
|
|
3241
3477
|
|
|
3242
|
-
var
|
|
3478
|
+
var withEditModeCover_1 = __webpack_require__(41);
|
|
3243
3479
|
|
|
3244
|
-
var
|
|
3480
|
+
var withPlaceholder_1 = __webpack_require__(42);
|
|
3245
3481
|
/**
|
|
3246
3482
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
3247
3483
|
* @param {DashboardVizOpts} opts
|
|
@@ -3443,41 +3679,41 @@ exports.default = withDashboardViz;
|
|
|
3443
3679
|
|
|
3444
3680
|
/***/ }),
|
|
3445
3681
|
|
|
3446
|
-
/***/
|
|
3682
|
+
/***/ 32:
|
|
3447
3683
|
/***/ (function(module, exports) {
|
|
3448
3684
|
|
|
3449
3685
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
3450
3686
|
|
|
3451
3687
|
/***/ }),
|
|
3452
3688
|
|
|
3453
|
-
/***/
|
|
3689
|
+
/***/ 33:
|
|
3454
3690
|
/***/ (function(module, exports) {
|
|
3455
3691
|
|
|
3456
3692
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
3457
3693
|
|
|
3458
3694
|
/***/ }),
|
|
3459
3695
|
|
|
3460
|
-
/***/
|
|
3696
|
+
/***/ 34:
|
|
3461
3697
|
/***/ (function(module, exports) {
|
|
3462
3698
|
|
|
3463
3699
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
3464
3700
|
|
|
3465
3701
|
/***/ }),
|
|
3466
3702
|
|
|
3467
|
-
/***/
|
|
3703
|
+
/***/ 35:
|
|
3468
3704
|
/***/ (function(module, exports) {
|
|
3469
3705
|
|
|
3470
3706
|
module.exports = require("@splunk/moment");
|
|
3471
3707
|
|
|
3472
3708
|
/***/ }),
|
|
3473
3709
|
|
|
3474
|
-
/***/
|
|
3710
|
+
/***/ 36:
|
|
3475
3711
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3476
3712
|
|
|
3477
3713
|
"use strict";
|
|
3478
3714
|
|
|
3479
3715
|
|
|
3480
|
-
var _classCallCheck = __webpack_require__(
|
|
3716
|
+
var _classCallCheck = __webpack_require__(10);
|
|
3481
3717
|
|
|
3482
3718
|
Object.defineProperty(exports, "__esModule", {
|
|
3483
3719
|
value: true
|
|
@@ -3487,9 +3723,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
|
3487
3723
|
|
|
3488
3724
|
var T = __webpack_require__(0);
|
|
3489
3725
|
|
|
3490
|
-
var lodash_1 = __webpack_require__(
|
|
3726
|
+
var lodash_1 = __webpack_require__(3);
|
|
3491
3727
|
|
|
3492
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
3728
|
+
var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
3493
3729
|
|
|
3494
3730
|
|
|
3495
3731
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -3623,15 +3859,15 @@ exports.default = SplunkVisualization;
|
|
|
3623
3859
|
|
|
3624
3860
|
/***/ }),
|
|
3625
3861
|
|
|
3626
|
-
/***/
|
|
3862
|
+
/***/ 37:
|
|
3627
3863
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3628
3864
|
|
|
3629
3865
|
"use strict";
|
|
3630
3866
|
|
|
3631
3867
|
|
|
3632
|
-
var _classCallCheck = __webpack_require__(
|
|
3868
|
+
var _classCallCheck = __webpack_require__(10);
|
|
3633
3869
|
|
|
3634
|
-
var _createClass = __webpack_require__(
|
|
3870
|
+
var _createClass = __webpack_require__(18);
|
|
3635
3871
|
|
|
3636
3872
|
Object.defineProperty(exports, "__esModule", {
|
|
3637
3873
|
value: true
|
|
@@ -3661,7 +3897,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
3661
3897
|
|
|
3662
3898
|
/***/ }),
|
|
3663
3899
|
|
|
3664
|
-
/***/
|
|
3900
|
+
/***/ 38:
|
|
3665
3901
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3666
3902
|
|
|
3667
3903
|
"use strict";
|
|
@@ -3675,7 +3911,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
3675
3911
|
|
|
3676
3912
|
/***/ }),
|
|
3677
3913
|
|
|
3678
|
-
/***/
|
|
3914
|
+
/***/ 39:
|
|
3679
3915
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3680
3916
|
|
|
3681
3917
|
"use strict";
|
|
@@ -3688,7 +3924,7 @@ exports.useDeepMemo = void 0;
|
|
|
3688
3924
|
|
|
3689
3925
|
var react_1 = __webpack_require__(1);
|
|
3690
3926
|
|
|
3691
|
-
var lodash_1 = __webpack_require__(
|
|
3927
|
+
var lodash_1 = __webpack_require__(3);
|
|
3692
3928
|
/**
|
|
3693
3929
|
* This hook evaluates and stores the result of a passed function and only
|
|
3694
3930
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -3721,7 +3957,14 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
3721
3957
|
|
|
3722
3958
|
/***/ }),
|
|
3723
3959
|
|
|
3724
|
-
/***/
|
|
3960
|
+
/***/ 4:
|
|
3961
|
+
/***/ (function(module, exports) {
|
|
3962
|
+
|
|
3963
|
+
module.exports = require("styled-components");
|
|
3964
|
+
|
|
3965
|
+
/***/ }),
|
|
3966
|
+
|
|
3967
|
+
/***/ 40:
|
|
3725
3968
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3726
3969
|
|
|
3727
3970
|
"use strict";
|
|
@@ -3736,11 +3979,11 @@ var React = __webpack_require__(1);
|
|
|
3736
3979
|
|
|
3737
3980
|
var T = __webpack_require__(0);
|
|
3738
3981
|
|
|
3739
|
-
var i18n_1 = __webpack_require__(
|
|
3982
|
+
var i18n_1 = __webpack_require__(2);
|
|
3740
3983
|
|
|
3741
|
-
var Message_1 = __webpack_require__(
|
|
3984
|
+
var Message_1 = __webpack_require__(9);
|
|
3742
3985
|
|
|
3743
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
3986
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
3744
3987
|
/**
|
|
3745
3988
|
* @method isMissing
|
|
3746
3989
|
* @param {any} v
|
|
@@ -3802,14 +4045,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
3802
4045
|
|
|
3803
4046
|
/***/ }),
|
|
3804
4047
|
|
|
3805
|
-
/***/
|
|
3806
|
-
/***/ (function(module, exports) {
|
|
3807
|
-
|
|
3808
|
-
module.exports = require("styled-components");
|
|
3809
|
-
|
|
3810
|
-
/***/ }),
|
|
3811
|
-
|
|
3812
|
-
/***/ 40:
|
|
4048
|
+
/***/ 41:
|
|
3813
4049
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3814
4050
|
|
|
3815
4051
|
"use strict";
|
|
@@ -3823,14 +4059,14 @@ var React = __webpack_require__(1);
|
|
|
3823
4059
|
|
|
3824
4060
|
var styled_components_1 = __webpack_require__(4);
|
|
3825
4061
|
|
|
3826
|
-
var hocUtils_1 = __webpack_require__(
|
|
4062
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
3827
4063
|
|
|
3828
4064
|
var Cover = styled_components_1.default.div.withConfig({
|
|
3829
4065
|
displayName: "withEditModeCover__Cover",
|
|
3830
4066
|
componentId: "sc-1gsbnxb-0"
|
|
3831
4067
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3832
4068
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3833
|
-
'data-splunk-visualization-version': "25.0
|
|
4069
|
+
'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
|
|
3834
4070
|
}).withConfig({
|
|
3835
4071
|
displayName: "withEditModeCover__Blocker",
|
|
3836
4072
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3862,13 +4098,6 @@ exports.default = withEditModeCover;
|
|
|
3862
4098
|
|
|
3863
4099
|
/***/ }),
|
|
3864
4100
|
|
|
3865
|
-
/***/ 41:
|
|
3866
|
-
/***/ (function(module, exports) {
|
|
3867
|
-
|
|
3868
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
3869
|
-
|
|
3870
|
-
/***/ }),
|
|
3871
|
-
|
|
3872
4101
|
/***/ 42:
|
|
3873
4102
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3874
4103
|
|
|
@@ -3881,15 +4110,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3881
4110
|
|
|
3882
4111
|
var React = __webpack_require__(1);
|
|
3883
4112
|
|
|
3884
|
-
var colorUtils_1 = __webpack_require__(
|
|
4113
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
3885
4114
|
|
|
3886
|
-
var variables_1 = __webpack_require__(
|
|
4115
|
+
var variables_1 = __webpack_require__(8);
|
|
3887
4116
|
|
|
3888
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
4117
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
3889
4118
|
|
|
3890
4119
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3891
4120
|
|
|
3892
|
-
var hocUtils_1 = __webpack_require__(
|
|
4121
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
3893
4122
|
|
|
3894
4123
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3895
4124
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -3908,346 +4137,116 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
3908
4137
|
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);
|
|
3909
4138
|
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
3910
4139
|
var iconColor = variables_1.default.contentColorActive(props);
|
|
3911
|
-
|
|
3912
|
-
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
3913
|
-
return React.createElement(IconPlaceholder_1.default, {
|
|
3914
|
-
"data-test": "icon-placeholder",
|
|
3915
|
-
icon: icon,
|
|
3916
|
-
width: width,
|
|
3917
|
-
height: height,
|
|
3918
|
-
backgroundColor: bgColorFromTheme,
|
|
3919
|
-
iconColor: iconColor
|
|
3920
|
-
});
|
|
3921
|
-
}
|
|
3922
|
-
|
|
3923
|
-
return React.createElement(Visualization, Object.assign({}, props));
|
|
3924
|
-
};
|
|
3925
|
-
|
|
3926
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
3927
|
-
Wrapper: Wrapper,
|
|
3928
|
-
Visualization: Visualization
|
|
3929
|
-
});
|
|
3930
|
-
return Wrapper;
|
|
3931
|
-
};
|
|
3932
|
-
|
|
3933
|
-
exports.default = withPlaceholder;
|
|
3934
|
-
|
|
3935
|
-
/***/ }),
|
|
3936
|
-
|
|
3937
|
-
/***/ 43:
|
|
3938
|
-
/***/ (function(module, exports) {
|
|
3939
|
-
|
|
3940
|
-
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3941
|
-
|
|
3942
|
-
/***/ }),
|
|
3943
|
-
|
|
3944
|
-
/***/ 45:
|
|
3945
|
-
/***/ (function(module, exports) {
|
|
3946
|
-
|
|
3947
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3948
|
-
|
|
3949
|
-
/***/ }),
|
|
3950
|
-
|
|
3951
|
-
/***/ 46:
|
|
3952
|
-
/***/ (function(module, exports) {
|
|
3953
|
-
|
|
3954
|
-
module.exports = require("@splunk/visualization-icons");
|
|
3955
|
-
|
|
3956
|
-
/***/ }),
|
|
3957
|
-
|
|
3958
|
-
/***/ 47:
|
|
3959
|
-
/***/ (function(module, exports) {
|
|
3960
|
-
|
|
3961
|
-
module.exports = require("@babel/runtime/helpers/extends");
|
|
3962
|
-
|
|
3963
|
-
/***/ }),
|
|
3964
|
-
|
|
3965
|
-
/***/ 48:
|
|
3966
|
-
/***/ (function(module, exports) {
|
|
3967
|
-
|
|
3968
|
-
module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
3969
|
-
|
|
3970
|
-
/***/ }),
|
|
3971
|
-
|
|
3972
|
-
/***/ 5:
|
|
3973
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3974
|
-
|
|
3975
|
-
"use strict";
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3979
|
-
value: true
|
|
3980
|
-
});
|
|
3981
|
-
exports.VizBehavior = void 0;
|
|
3982
|
-
var VizBehavior;
|
|
3983
|
-
|
|
3984
|
-
(function (VizBehavior) {
|
|
3985
|
-
/**
|
|
3986
|
-
* Dynamic Options Behavior.
|
|
3987
|
-
* This allows visualization options to be powered by data
|
|
3988
|
-
*
|
|
3989
|
-
* **Example**
|
|
3990
|
-
*
|
|
3991
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
3992
|
-
* would configure sparklineValues with an array of data points
|
|
3993
|
-
* coming from the first series in the primary datasource
|
|
3994
|
-
*
|
|
3995
|
-
*/
|
|
3996
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
3997
|
-
VizBehavior["EVENTS"] = "events";
|
|
3998
|
-
/**
|
|
3999
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
4000
|
-
* missing.
|
|
4001
|
-
* @type {string}
|
|
4002
|
-
*/
|
|
4003
|
-
|
|
4004
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
4005
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
4006
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
4007
|
-
|
|
4008
|
-
/***/ }),
|
|
4009
|
-
|
|
4010
|
-
/***/ 53:
|
|
4011
|
-
/***/ (function(module, exports) {
|
|
4012
|
-
|
|
4013
|
-
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
4014
|
-
|
|
4015
|
-
/***/ }),
|
|
4016
|
-
|
|
4017
|
-
/***/ 6:
|
|
4018
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4019
|
-
|
|
4020
|
-
"use strict";
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
var _toConsumableArray = __webpack_require__(9);
|
|
4024
|
-
|
|
4025
|
-
var _defineProperty = __webpack_require__(7);
|
|
4026
|
-
|
|
4027
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
4028
|
-
var t = {};
|
|
4029
|
-
|
|
4030
|
-
for (var p in s) {
|
|
4031
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4032
|
-
}
|
|
4033
|
-
|
|
4034
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
4035
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
4036
|
-
}
|
|
4037
|
-
return t;
|
|
4038
|
-
};
|
|
4039
|
-
|
|
4040
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4041
|
-
value: true
|
|
4042
|
-
});
|
|
4043
|
-
exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
4044
|
-
|
|
4045
|
-
var lodash_1 = __webpack_require__(2);
|
|
4046
|
-
|
|
4047
|
-
var schemaUtils_1 = __webpack_require__(16);
|
|
4048
|
-
|
|
4049
|
-
var VizBehavior_1 = __webpack_require__(5);
|
|
4050
|
-
|
|
4051
|
-
var dynamicOptionsDSLType = {
|
|
4052
|
-
type: 'string',
|
|
4053
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
4054
|
-
};
|
|
4055
|
-
/**
|
|
4056
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
4057
|
-
* @param optionsSchema a visualization's options schema
|
|
4058
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
4059
|
-
*/
|
|
4060
|
-
|
|
4061
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
4062
|
-
var enhancedOptionsSchema = {};
|
|
4063
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
4064
|
-
var _a = optionsSchema[key],
|
|
4065
|
-
title = _a.title,
|
|
4066
|
-
description = _a.description,
|
|
4067
|
-
readOnly = _a.readOnly,
|
|
4068
|
-
writeOnly = _a.writeOnly,
|
|
4069
|
-
examples = _a.examples,
|
|
4070
|
-
defaultValue = _a.default,
|
|
4071
|
-
type = _a.type,
|
|
4072
|
-
properties = _a.properties,
|
|
4073
|
-
patternProperties = _a.patternProperties,
|
|
4074
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
4075
|
-
|
|
4076
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
4077
|
-
title: title
|
|
4078
|
-
}), description !== undefined && {
|
|
4079
|
-
description: description
|
|
4080
|
-
}), readOnly !== undefined && {
|
|
4081
|
-
readOnly: readOnly
|
|
4082
|
-
}), writeOnly !== undefined && {
|
|
4083
|
-
writeOnly: writeOnly
|
|
4084
|
-
}), examples !== undefined && {
|
|
4085
|
-
examples: examples
|
|
4086
|
-
}), defaultValue !== undefined && {
|
|
4087
|
-
default: defaultValue
|
|
4088
|
-
});
|
|
4089
|
-
|
|
4090
|
-
if (type === 'object') {
|
|
4091
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
4092
|
-
type: type
|
|
4093
|
-
}), properties && {
|
|
4094
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
4095
|
-
});
|
|
4096
|
-
|
|
4097
|
-
if (patternProperties) {
|
|
4098
|
-
var enhancedPatternProperties = {};
|
|
4099
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
4100
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
4101
|
-
});
|
|
4102
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
4103
|
-
}
|
|
4104
|
-
} else {
|
|
4105
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
4106
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
4107
|
-
type: type
|
|
4108
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
4140
|
+
|
|
4141
|
+
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
4142
|
+
return React.createElement(IconPlaceholder_1.default, {
|
|
4143
|
+
"data-test": "icon-placeholder",
|
|
4144
|
+
icon: icon,
|
|
4145
|
+
width: width,
|
|
4146
|
+
height: height,
|
|
4147
|
+
backgroundColor: bgColorFromTheme,
|
|
4148
|
+
iconColor: iconColor
|
|
4109
4149
|
});
|
|
4110
4150
|
}
|
|
4151
|
+
|
|
4152
|
+
return React.createElement(Visualization, Object.assign({}, props));
|
|
4153
|
+
};
|
|
4154
|
+
|
|
4155
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
4156
|
+
Wrapper: Wrapper,
|
|
4157
|
+
Visualization: Visualization
|
|
4111
4158
|
});
|
|
4112
|
-
return
|
|
4113
|
-
}
|
|
4159
|
+
return Wrapper;
|
|
4160
|
+
};
|
|
4114
4161
|
|
|
4115
|
-
exports.
|
|
4116
|
-
/**
|
|
4117
|
-
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
4118
|
-
* this function also collapse all editor panels
|
|
4119
|
-
* @param vizConfig a Visualization Config
|
|
4120
|
-
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
4121
|
-
* and containing `open: false` for all editor panels in editorConfig
|
|
4122
|
-
*/
|
|
4162
|
+
exports.default = withPlaceholder;
|
|
4123
4163
|
|
|
4124
|
-
|
|
4125
|
-
var enhancedConfig = vizConfig;
|
|
4164
|
+
/***/ }),
|
|
4126
4165
|
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
}
|
|
4166
|
+
/***/ 43:
|
|
4167
|
+
/***/ (function(module, exports) {
|
|
4130
4168
|
|
|
4131
|
-
|
|
4132
|
-
return Object.assign(Object.assign({}, config), {
|
|
4133
|
-
open: false
|
|
4134
|
-
});
|
|
4135
|
-
});
|
|
4136
|
-
return enhancedConfig;
|
|
4137
|
-
}
|
|
4169
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
4138
4170
|
|
|
4139
|
-
|
|
4140
|
-
/**
|
|
4141
|
-
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
4142
|
-
* Created for editor unit tests
|
|
4143
|
-
* @param vizConfig a Visualization Config
|
|
4144
|
-
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
4145
|
-
*/
|
|
4171
|
+
/***/ }),
|
|
4146
4172
|
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
4150
|
-
return Object.assign(Object.assign({}, config), {
|
|
4151
|
-
open: true
|
|
4152
|
-
});
|
|
4153
|
-
});
|
|
4154
|
-
return editorPanelUncollapsedConfig;
|
|
4155
|
-
}
|
|
4173
|
+
/***/ 45:
|
|
4174
|
+
/***/ (function(module, exports) {
|
|
4156
4175
|
|
|
4157
|
-
exports
|
|
4176
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
4158
4177
|
|
|
4159
|
-
|
|
4160
|
-
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
4161
|
-
}
|
|
4178
|
+
/***/ }),
|
|
4162
4179
|
|
|
4163
|
-
|
|
4164
|
-
|
|
4180
|
+
/***/ 46:
|
|
4181
|
+
/***/ (function(module, exports) {
|
|
4165
4182
|
|
|
4166
|
-
|
|
4167
|
-
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
4168
|
-
* if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
|
|
4169
|
-
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
4170
|
-
* the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
|
|
4171
|
-
*
|
|
4172
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
4173
|
-
*/
|
|
4183
|
+
module.exports = require("@splunk/visualization-icons");
|
|
4174
4184
|
|
|
4175
|
-
|
|
4176
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
4177
|
-
return presetContextKeys.every(function (contextKey) {
|
|
4178
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
4179
|
-
});
|
|
4180
|
-
}
|
|
4181
|
-
/**
|
|
4182
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
4183
|
-
*/
|
|
4185
|
+
/***/ }),
|
|
4184
4186
|
|
|
4187
|
+
/***/ 47:
|
|
4188
|
+
/***/ (function(module, exports) {
|
|
4185
4189
|
|
|
4186
|
-
|
|
4187
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
4188
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
4189
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
4190
|
-
});
|
|
4191
|
-
}
|
|
4192
|
-
/**
|
|
4193
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
4194
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
4195
|
-
*
|
|
4196
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
4197
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
4198
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
4199
|
-
*/
|
|
4190
|
+
module.exports = require("@babel/runtime/helpers/extends");
|
|
4200
4191
|
|
|
4192
|
+
/***/ }),
|
|
4201
4193
|
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
4205
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
4206
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
4207
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
4208
|
-
// if not, then the preset is invalid in config.ts
|
|
4194
|
+
/***/ 48:
|
|
4195
|
+
/***/ (function(module, exports) {
|
|
4209
4196
|
|
|
4210
|
-
|
|
4211
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
4212
|
-
});
|
|
4213
|
-
}
|
|
4197
|
+
module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
4214
4198
|
|
|
4215
|
-
|
|
4216
|
-
/**
|
|
4217
|
-
* generates number precision values for a Select editor
|
|
4218
|
-
*
|
|
4219
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
4220
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
4221
|
-
*/
|
|
4199
|
+
/***/ }),
|
|
4222
4200
|
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
return {
|
|
4226
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
4227
|
-
value: i
|
|
4228
|
-
};
|
|
4229
|
-
});
|
|
4230
|
-
}
|
|
4201
|
+
/***/ 5:
|
|
4202
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4231
4203
|
|
|
4232
|
-
|
|
4233
|
-
/**
|
|
4234
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
4235
|
-
*
|
|
4236
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
4237
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
4238
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
4239
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
4240
|
-
*/
|
|
4204
|
+
"use strict";
|
|
4241
4205
|
|
|
4242
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
4243
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
4244
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
4245
|
-
}
|
|
4246
4206
|
|
|
4247
|
-
|
|
4248
|
-
|
|
4207
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4208
|
+
value: true
|
|
4209
|
+
});
|
|
4210
|
+
exports.VizBehavior = void 0;
|
|
4211
|
+
var VizBehavior;
|
|
4249
4212
|
|
|
4250
|
-
|
|
4213
|
+
(function (VizBehavior) {
|
|
4214
|
+
/**
|
|
4215
|
+
* Dynamic Options Behavior.
|
|
4216
|
+
* This allows visualization options to be powered by data
|
|
4217
|
+
*
|
|
4218
|
+
* **Example**
|
|
4219
|
+
*
|
|
4220
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
4221
|
+
* would configure sparklineValues with an array of data points
|
|
4222
|
+
* coming from the first series in the primary datasource
|
|
4223
|
+
*
|
|
4224
|
+
*/
|
|
4225
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
4226
|
+
VizBehavior["EVENTS"] = "events";
|
|
4227
|
+
/**
|
|
4228
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
4229
|
+
* missing.
|
|
4230
|
+
* @type {string}
|
|
4231
|
+
*/
|
|
4232
|
+
|
|
4233
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
4234
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
4235
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
4236
|
+
|
|
4237
|
+
/***/ }),
|
|
4238
|
+
|
|
4239
|
+
/***/ 53:
|
|
4240
|
+
/***/ (function(module, exports) {
|
|
4241
|
+
|
|
4242
|
+
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
4243
|
+
|
|
4244
|
+
/***/ }),
|
|
4245
|
+
|
|
4246
|
+
/***/ 6:
|
|
4247
|
+
/***/ (function(module, exports) {
|
|
4248
|
+
|
|
4249
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
4251
4250
|
|
|
4252
4251
|
/***/ }),
|
|
4253
4252
|
|
|
@@ -4302,7 +4301,7 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
4302
4301
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
4303
4302
|
|
|
4304
4303
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
4305
|
-
var singleValueUtils = __webpack_require__(
|
|
4304
|
+
var singleValueUtils = __webpack_require__(20);
|
|
4306
4305
|
|
|
4307
4306
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
|
|
4308
4307
|
var ArrowUp_ = __webpack_require__(72);
|
|
@@ -4579,7 +4578,7 @@ var SingleValueTrendValue = TrendValue;
|
|
|
4579
4578
|
/***/ 7:
|
|
4580
4579
|
/***/ (function(module, exports) {
|
|
4581
4580
|
|
|
4582
|
-
module.exports = require("@babel/runtime/helpers/
|
|
4581
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
4583
4582
|
|
|
4584
4583
|
/***/ }),
|
|
4585
4584
|
|
|
@@ -4623,10 +4622,10 @@ module.exports = require("cssesc");
|
|
|
4623
4622
|
|
|
4624
4623
|
"use strict";
|
|
4625
4624
|
__webpack_require__.r(__webpack_exports__);
|
|
4626
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4625
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
4627
4626
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4628
|
-
/* harmony import */ var
|
|
4629
|
-
/* harmony import */ var
|
|
4627
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
4628
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4630
4629
|
|
|
4631
4630
|
|
|
4632
4631
|
var StaticBackgroundColorEditor = {
|
|
@@ -4635,7 +4634,7 @@ var StaticBackgroundColorEditor = {
|
|
|
4635
4634
|
editor: 'editor.color',
|
|
4636
4635
|
showEditor: function showEditor(_ref) {
|
|
4637
4636
|
var options = _ref.options;
|
|
4638
|
-
return !Object(
|
|
4637
|
+
return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
|
|
4639
4638
|
}
|
|
4640
4639
|
};
|
|
4641
4640
|
/* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
|
|
@@ -4643,89 +4642,9 @@ var StaticBackgroundColorEditor = {
|
|
|
4643
4642
|
/***/ }),
|
|
4644
4643
|
|
|
4645
4644
|
/***/ 8:
|
|
4646
|
-
/***/ (function(module, exports
|
|
4647
|
-
|
|
4648
|
-
"use strict";
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
var _typeof = __webpack_require__(25);
|
|
4652
|
-
|
|
4653
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4654
|
-
value: true
|
|
4655
|
-
});
|
|
4656
|
-
exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
|
|
4657
|
-
|
|
4658
|
-
var lodash_1 = __webpack_require__(2);
|
|
4659
|
-
|
|
4660
|
-
var mapUtils_1 = __webpack_require__(41);
|
|
4661
|
-
/**
|
|
4662
|
-
* @method extendStaticWrapperProps
|
|
4663
|
-
* @param {Object} props
|
|
4664
|
-
* @param {DashboardVizType} props.Wrapper
|
|
4665
|
-
* @param {DashboardVizType} props.Visualization
|
|
4666
|
-
*/
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
4670
|
-
var Wrapper = _ref.Wrapper,
|
|
4671
|
-
Visualization = _ref.Visualization;
|
|
4672
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
4673
|
-
extendProperties.forEach(function (prop) {
|
|
4674
|
-
if (Visualization[prop]) {
|
|
4675
|
-
// eslint-disable-next-line no-param-reassign
|
|
4676
|
-
Wrapper[prop] = Visualization[prop];
|
|
4677
|
-
}
|
|
4678
|
-
});
|
|
4679
|
-
};
|
|
4680
|
-
|
|
4681
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
4682
|
-
/**
|
|
4683
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
4684
|
-
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays of primitives will be preserved if already present in the resultant merged object
|
|
4685
|
-
* this prevents default arrays of primitives from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one).
|
|
4686
|
-
* Array of objects gets merged with the defaults, where the defaults can be an array of objects. Closest matching default object from the defaults list based on key - value pair
|
|
4687
|
-
* will be used for merging defaults for each object in the array. If no closest match found, first object in default array list used for merging.
|
|
4688
|
-
*
|
|
4689
|
-
* @method deepMergeWithArrayPrimitiveOverrides
|
|
4690
|
-
* @param {Object} initial - target object to merge values into
|
|
4691
|
-
* @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
|
|
4692
|
-
*
|
|
4693
|
-
* @returns {Object}
|
|
4694
|
-
*/
|
|
4695
|
-
|
|
4696
|
-
var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
|
|
4697
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
4698
|
-
|
|
4699
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4700
|
-
sources[_key - 1] = arguments[_key];
|
|
4701
|
-
}
|
|
4702
|
-
|
|
4703
|
-
sources.forEach(function (sourceToApply) {
|
|
4704
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
4705
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
4706
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
4707
|
-
}
|
|
4708
|
-
|
|
4709
|
-
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
4710
|
-
clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
4711
|
-
} else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
|
|
4712
|
-
// If option is an array of objects
|
|
4713
|
-
for (var i = 0; i < clone[sourceKey].length; i += 1) {
|
|
4714
|
-
if (_typeof(clone[sourceKey][i]) === 'object') {
|
|
4715
|
-
var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
|
|
4716
|
-
|
|
4717
|
-
if (closestMatchIdx > -1) {
|
|
4718
|
-
clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
|
|
4719
|
-
}
|
|
4720
|
-
}
|
|
4721
|
-
}
|
|
4722
|
-
}
|
|
4723
|
-
});
|
|
4724
|
-
});
|
|
4725
|
-
return clone;
|
|
4726
|
-
};
|
|
4645
|
+
/***/ (function(module, exports) {
|
|
4727
4646
|
|
|
4728
|
-
exports
|
|
4647
|
+
module.exports = require("@splunk/themes/variables");
|
|
4729
4648
|
|
|
4730
4649
|
/***/ }),
|
|
4731
4650
|
|
|
@@ -4735,10 +4654,10 @@ exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverri
|
|
|
4735
4654
|
"use strict";
|
|
4736
4655
|
__webpack_require__.r(__webpack_exports__);
|
|
4737
4656
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
|
|
4738
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4657
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
4739
4658
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4740
|
-
/* harmony import */ var
|
|
4741
|
-
/* harmony import */ var
|
|
4659
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
4660
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4742
4661
|
|
|
4743
4662
|
|
|
4744
4663
|
var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
@@ -4751,7 +4670,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
4751
4670
|
editor: 'editor.dynamicColor',
|
|
4752
4671
|
showEditor: function showEditor(_ref2) {
|
|
4753
4672
|
var options = _ref2.options;
|
|
4754
|
-
return Object(
|
|
4673
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
4755
4674
|
},
|
|
4756
4675
|
editorProps: {
|
|
4757
4676
|
labelPosition: 'left',
|
|
@@ -4786,10 +4705,10 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
4786
4705
|
"use strict";
|
|
4787
4706
|
__webpack_require__.r(__webpack_exports__);
|
|
4788
4707
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
|
|
4789
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4708
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
4790
4709
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4791
|
-
/* harmony import */ var
|
|
4792
|
-
/* harmony import */ var
|
|
4710
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
4711
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4793
4712
|
|
|
4794
4713
|
|
|
4795
4714
|
var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
@@ -4802,7 +4721,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
4802
4721
|
editor: 'editor.dynamicColor',
|
|
4803
4722
|
showEditor: function showEditor(_ref2) {
|
|
4804
4723
|
var options = _ref2.options;
|
|
4805
|
-
return Object(
|
|
4724
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
|
|
4806
4725
|
},
|
|
4807
4726
|
editorProps: {
|
|
4808
4727
|
labelPosition: 'left',
|
|
@@ -4831,10 +4750,10 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
4831
4750
|
"use strict";
|
|
4832
4751
|
__webpack_require__.r(__webpack_exports__);
|
|
4833
4752
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
|
|
4834
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4753
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
4835
4754
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4836
|
-
/* harmony import */ var
|
|
4837
|
-
/* harmony import */ var
|
|
4755
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
4756
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4838
4757
|
|
|
4839
4758
|
|
|
4840
4759
|
var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
|
|
@@ -4847,7 +4766,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
4847
4766
|
editor: 'editor.dynamicColor',
|
|
4848
4767
|
showEditor: function showEditor(_ref2) {
|
|
4849
4768
|
var options = _ref2.options;
|
|
4850
|
-
return Object(
|
|
4769
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
|
|
4851
4770
|
},
|
|
4852
4771
|
editorProps: {
|
|
4853
4772
|
labelPosition: 'left',
|
|
@@ -4885,10 +4804,10 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
4885
4804
|
|
|
4886
4805
|
"use strict";
|
|
4887
4806
|
__webpack_require__.r(__webpack_exports__);
|
|
4888
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4807
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
4889
4808
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4890
|
-
/* harmony import */ var
|
|
4891
|
-
/* harmony import */ var
|
|
4809
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
4810
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4892
4811
|
|
|
4893
4812
|
|
|
4894
4813
|
var StaticMajorColorEditor = {
|
|
@@ -4897,7 +4816,7 @@ var StaticMajorColorEditor = {
|
|
|
4897
4816
|
editor: 'editor.color',
|
|
4898
4817
|
showEditor: function showEditor(_ref) {
|
|
4899
4818
|
var options = _ref.options;
|
|
4900
|
-
return !Object(
|
|
4819
|
+
return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
4901
4820
|
}
|
|
4902
4821
|
};
|
|
4903
4822
|
/* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
|
|
@@ -4909,10 +4828,10 @@ var StaticMajorColorEditor = {
|
|
|
4909
4828
|
|
|
4910
4829
|
"use strict";
|
|
4911
4830
|
__webpack_require__.r(__webpack_exports__);
|
|
4912
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4831
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
4913
4832
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4914
|
-
/* harmony import */ var
|
|
4915
|
-
/* harmony import */ var
|
|
4833
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
4834
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4916
4835
|
|
|
4917
4836
|
|
|
4918
4837
|
var StaticTrendColorEditor = {
|
|
@@ -4921,7 +4840,7 @@ var StaticTrendColorEditor = {
|
|
|
4921
4840
|
editor: 'editor.color',
|
|
4922
4841
|
showEditor: function showEditor(_ref) {
|
|
4923
4842
|
var options = _ref.options;
|
|
4924
|
-
return !Object(
|
|
4843
|
+
return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
|
|
4925
4844
|
},
|
|
4926
4845
|
isDisabled: function isDisabled(_ref2) {
|
|
4927
4846
|
var options = _ref2.options;
|
|
@@ -4935,11 +4854,11 @@ var StaticTrendColorEditor = {
|
|
|
4935
4854
|
/***/ 9:
|
|
4936
4855
|
/***/ (function(module, exports) {
|
|
4937
4856
|
|
|
4938
|
-
module.exports = require("@
|
|
4857
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
4939
4858
|
|
|
4940
4859
|
/***/ }),
|
|
4941
4860
|
|
|
4942
|
-
/***/
|
|
4861
|
+
/***/ 92:
|
|
4943
4862
|
/***/ (function(module, exports) {
|
|
4944
4863
|
|
|
4945
4864
|
module.exports = require("@splunk/react-sparkline/Line");
|