@splunk/visualizations 25.0.0 → 25.0.1
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_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.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/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
- package/Area.config.js +26 -1
- package/Area.config.js.map +1 -1
- package/Area.js +49 -23
- package/Area.js.map +1 -1
- package/Bar.config.js +26 -1
- package/Bar.config.js.map +1 -1
- package/Bar.js +49 -23
- package/Bar.js.map +1 -1
- package/Bubble.config.js +26 -1
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +49 -23
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +27 -3
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +73 -48
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +26 -1
- package/Column.config.js.map +1 -1
- package/Column.js +49 -23
- package/Column.js.map +1 -1
- package/Ellipse.config.js +26 -1
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +58 -32
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +27 -2
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +60 -34
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +27 -3
- package/Image.config.js.map +1 -1
- package/Image.js +58 -34
- package/Image.js.map +1 -1
- package/Line.config.js +26 -1
- package/Line.config.js.map +1 -1
- package/Line.js +49 -23
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +26 -1
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +87 -61
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +42 -5
- package/Map.config.js.map +1 -1
- package/Map.js +100 -60
- package/Map.js.map +1 -1
- package/Markdown.config.js +28 -5
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +58 -35
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +31 -7
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2939 -3022
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +35 -10
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +61 -35
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +32 -8
- package/Pie.config.js.map +1 -1
- package/Pie.js +2242 -2330
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +28 -5
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +72 -48
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +28 -3
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +155 -130
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +30 -5
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +107 -82
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +29 -3
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +47 -22
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +33 -7
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +63 -38
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +2 -2
- package/SingleValueIcon.config.js +31 -5
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +71 -45
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +160 -165
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +112 -87
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +31 -6
- package/Table.config.js.map +1 -1
- package/Table.js +249 -224
- package/Table.js.map +1 -1
- package/common/OptionsDoc.js +26 -1
- package/common/OptionsDoc.js.map +1 -1
- package/common/utils/configUtils.js +26 -1
- package/common/utils/configUtils.js.map +1 -1
- package/common/withDashboardViz.js +2 -2
- package/package.json +10 -10
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 = 255);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -113,7 +113,14 @@ module.exports = require("@splunk/themes/variables");
|
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 11:
|
|
117
|
+
/***/ (function(module, exports) {
|
|
118
|
+
|
|
119
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ 110:
|
|
117
124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
118
125
|
|
|
119
126
|
"use strict";
|
|
@@ -158,14 +165,7 @@ exports.defaultContext = {
|
|
|
158
165
|
|
|
159
166
|
/***/ }),
|
|
160
167
|
|
|
161
|
-
/***/
|
|
162
|
-
/***/ (function(module, exports) {
|
|
163
|
-
|
|
164
|
-
module.exports = require("@splunk/visualizations-shared/Message");
|
|
165
|
-
|
|
166
|
-
/***/ }),
|
|
167
|
-
|
|
168
|
-
/***/ 110:
|
|
168
|
+
/***/ 111:
|
|
169
169
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
170
170
|
|
|
171
171
|
"use strict";
|
|
@@ -353,7 +353,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
353
353
|
|
|
354
354
|
return React.createElement(FixSizeItem, {
|
|
355
355
|
"data-test": "fix-size-item",
|
|
356
|
-
"data-splunk-visualization-version": "25.0.
|
|
356
|
+
"data-splunk-visualization-version": "25.0.1 - de10ad954",
|
|
357
357
|
width: width,
|
|
358
358
|
height: height,
|
|
359
359
|
backgroundColor: backgroundColor
|
|
@@ -442,7 +442,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
442
442
|
/* 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
443
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
444
444
|
/* 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__(
|
|
445
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
|
|
446
446
|
/* 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
447
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48);
|
|
448
448
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
@@ -1443,18 +1443,11 @@ module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
|
1443
1443
|
/***/ 23:
|
|
1444
1444
|
/***/ (function(module, exports) {
|
|
1445
1445
|
|
|
1446
|
-
module.exports = require("@babel/runtime/helpers/typeof");
|
|
1447
|
-
|
|
1448
|
-
/***/ }),
|
|
1449
|
-
|
|
1450
|
-
/***/ 24:
|
|
1451
|
-
/***/ (function(module, exports) {
|
|
1452
|
-
|
|
1453
1446
|
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1454
1447
|
|
|
1455
1448
|
/***/ }),
|
|
1456
1449
|
|
|
1457
|
-
/***/
|
|
1450
|
+
/***/ 24:
|
|
1458
1451
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1459
1452
|
|
|
1460
1453
|
"use strict";
|
|
@@ -1488,7 +1481,14 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
|
1488
1481
|
|
|
1489
1482
|
/***/ }),
|
|
1490
1483
|
|
|
1491
|
-
/***/
|
|
1484
|
+
/***/ 25:
|
|
1485
|
+
/***/ (function(module, exports) {
|
|
1486
|
+
|
|
1487
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
1488
|
+
|
|
1489
|
+
/***/ }),
|
|
1490
|
+
|
|
1491
|
+
/***/ 255:
|
|
1492
1492
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1493
1493
|
|
|
1494
1494
|
"use strict";
|
|
@@ -1499,13 +1499,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1499
1499
|
});
|
|
1500
1500
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
1501
1501
|
|
|
1502
|
-
var SingleValue_1 = __webpack_require__(
|
|
1502
|
+
var SingleValue_1 = __webpack_require__(278);
|
|
1503
1503
|
|
|
1504
1504
|
var withDashboardViz_1 = __webpack_require__(30);
|
|
1505
1505
|
|
|
1506
1506
|
var singleValueUtils_1 = __webpack_require__(19);
|
|
1507
1507
|
|
|
1508
|
-
var config_1 = __webpack_require__(
|
|
1508
|
+
var config_1 = __webpack_require__(256);
|
|
1509
1509
|
|
|
1510
1510
|
exports.config = config_1.default;
|
|
1511
1511
|
exports.PureSingleValue = SingleValue_1.default;
|
|
@@ -1544,7 +1544,7 @@ exports.default = viz;
|
|
|
1544
1544
|
|
|
1545
1545
|
/***/ }),
|
|
1546
1546
|
|
|
1547
|
-
/***/
|
|
1547
|
+
/***/ 256:
|
|
1548
1548
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1549
1549
|
|
|
1550
1550
|
"use strict";
|
|
@@ -1560,7 +1560,7 @@ var schemaUtils_1 = __webpack_require__(16);
|
|
|
1560
1560
|
|
|
1561
1561
|
var PresetPalettes_1 = __webpack_require__(53);
|
|
1562
1562
|
|
|
1563
|
-
var variables_1 = __webpack_require__(
|
|
1563
|
+
var variables_1 = __webpack_require__(257);
|
|
1564
1564
|
|
|
1565
1565
|
var pick_1 = __webpack_require__(20);
|
|
1566
1566
|
|
|
@@ -1570,7 +1570,7 @@ var visualization_icons_1 = __webpack_require__(46);
|
|
|
1570
1570
|
|
|
1571
1571
|
var placeholders_1 = __webpack_require__(45);
|
|
1572
1572
|
|
|
1573
|
-
var singleValueContext_1 = __webpack_require__(
|
|
1573
|
+
var singleValueContext_1 = __webpack_require__(110);
|
|
1574
1574
|
|
|
1575
1575
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1576
1576
|
|
|
@@ -1580,7 +1580,7 @@ var DynamicTrendColorEditor_1 = __webpack_require__(84);
|
|
|
1580
1580
|
|
|
1581
1581
|
var DynamicBackgroundColorEditor_1 = __webpack_require__(85);
|
|
1582
1582
|
|
|
1583
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
1583
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(111);
|
|
1584
1584
|
|
|
1585
1585
|
var StaticMajorColorEditor_1 = __webpack_require__(86);
|
|
1586
1586
|
|
|
@@ -1945,7 +1945,7 @@ var themes = {
|
|
|
1945
1945
|
var editorConfig = [{
|
|
1946
1946
|
label: i18n_1._('Selected Data Field'),
|
|
1947
1947
|
layout: [[{
|
|
1948
|
-
label: '',
|
|
1948
|
+
label: i18n_1._('Data field'),
|
|
1949
1949
|
editor: 'editor.columnSelector',
|
|
1950
1950
|
option: 'sparklineValues',
|
|
1951
1951
|
context: 'sparklineValuesContext',
|
|
@@ -1970,7 +1970,7 @@ var editorConfig = [{
|
|
|
1970
1970
|
}, {
|
|
1971
1971
|
label: i18n_1._('Sparkline'),
|
|
1972
1972
|
layout: [[{
|
|
1973
|
-
label: '',
|
|
1973
|
+
label: i18n_1._('Sparkline display'),
|
|
1974
1974
|
option: 'sparklineDisplay',
|
|
1975
1975
|
editor: 'editor.radioBar',
|
|
1976
1976
|
editorProps: {
|
|
@@ -2070,7 +2070,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2070
2070
|
|
|
2071
2071
|
/***/ }),
|
|
2072
2072
|
|
|
2073
|
-
/***/
|
|
2073
|
+
/***/ 257:
|
|
2074
2074
|
/***/ (function(module, exports) {
|
|
2075
2075
|
|
|
2076
2076
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
@@ -2240,7 +2240,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
2240
2240
|
|
|
2241
2241
|
/***/ }),
|
|
2242
2242
|
|
|
2243
|
-
/***/
|
|
2243
|
+
/***/ 278:
|
|
2244
2244
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2245
2245
|
|
|
2246
2246
|
"use strict";
|
|
@@ -2293,7 +2293,7 @@ var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_)
|
|
|
2293
2293
|
var SingleValueBasic = __webpack_require__(68);
|
|
2294
2294
|
|
|
2295
2295
|
// EXTERNAL MODULE: external "@splunk/react-sparkline/Line"
|
|
2296
|
-
var Line_ = __webpack_require__(
|
|
2296
|
+
var Line_ = __webpack_require__(91);
|
|
2297
2297
|
var Line_default = /*#__PURE__*/__webpack_require__.n(Line_);
|
|
2298
2298
|
|
|
2299
2299
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
|
|
@@ -2364,7 +2364,7 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
|
|
|
2364
2364
|
var colorConstants_ = __webpack_require__(43);
|
|
2365
2365
|
|
|
2366
2366
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
|
|
2367
|
-
var numberUtils_ = __webpack_require__(
|
|
2367
|
+
var numberUtils_ = __webpack_require__(23);
|
|
2368
2368
|
|
|
2369
2369
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
2370
2370
|
var singleValueUtils = __webpack_require__(19);
|
|
@@ -3233,7 +3233,7 @@ var getPagination_1 = __webpack_require__(28);
|
|
|
3233
3233
|
|
|
3234
3234
|
var useDeepMemo_1 = __webpack_require__(38);
|
|
3235
3235
|
|
|
3236
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
3236
|
+
var JSONSchemaUtils_1 = __webpack_require__(24);
|
|
3237
3237
|
|
|
3238
3238
|
var MissingPropsMessage_1 = __webpack_require__(39);
|
|
3239
3239
|
|
|
@@ -3830,7 +3830,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3830
3830
|
componentId: "sc-1gsbnxb-0"
|
|
3831
3831
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3832
3832
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3833
|
-
'data-splunk-visualization-version': "25.0.
|
|
3833
|
+
'data-splunk-visualization-version': "25.0.1 - de10ad954"
|
|
3834
3834
|
}).withConfig({
|
|
3835
3835
|
displayName: "withEditModeCover__Blocker",
|
|
3836
3836
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -4040,7 +4040,7 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
4040
4040
|
Object.defineProperty(exports, "__esModule", {
|
|
4041
4041
|
value: true
|
|
4042
4042
|
});
|
|
4043
|
-
exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
4043
|
+
exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
4044
4044
|
|
|
4045
4045
|
var lodash_1 = __webpack_require__(2);
|
|
4046
4046
|
|
|
@@ -4115,8 +4115,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
|
4115
4115
|
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
4116
4116
|
/**
|
|
4117
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
|
|
4118
4119
|
* @param vizConfig a Visualization Config
|
|
4119
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
|
|
4120
4122
|
*/
|
|
4121
4123
|
|
|
4122
4124
|
function enhanceConfig(vizConfig) {
|
|
@@ -4126,10 +4128,33 @@ function enhanceConfig(vizConfig) {
|
|
|
4126
4128
|
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
4127
4129
|
}
|
|
4128
4130
|
|
|
4131
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
4132
|
+
return Object.assign(Object.assign({}, config), {
|
|
4133
|
+
open: false
|
|
4134
|
+
});
|
|
4135
|
+
});
|
|
4129
4136
|
return enhancedConfig;
|
|
4130
4137
|
}
|
|
4131
4138
|
|
|
4132
4139
|
exports.enhanceConfig = enhanceConfig;
|
|
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
|
+
*/
|
|
4146
|
+
|
|
4147
|
+
function uncollapseEditorConfig(vizConfig) {
|
|
4148
|
+
var editorPanelUncollapsedConfig = vizConfig;
|
|
4149
|
+
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
4150
|
+
return Object.assign(Object.assign({}, config), {
|
|
4151
|
+
open: true
|
|
4152
|
+
});
|
|
4153
|
+
});
|
|
4154
|
+
return editorPanelUncollapsedConfig;
|
|
4155
|
+
}
|
|
4156
|
+
|
|
4157
|
+
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
4133
4158
|
|
|
4134
4159
|
function isDynamicOption(option) {
|
|
4135
4160
|
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
@@ -4623,7 +4648,7 @@ var StaticBackgroundColorEditor = {
|
|
|
4623
4648
|
"use strict";
|
|
4624
4649
|
|
|
4625
4650
|
|
|
4626
|
-
var _typeof = __webpack_require__(
|
|
4651
|
+
var _typeof = __webpack_require__(25);
|
|
4627
4652
|
|
|
4628
4653
|
Object.defineProperty(exports, "__esModule", {
|
|
4629
4654
|
value: true
|
|
@@ -4914,7 +4939,7 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
|
4914
4939
|
|
|
4915
4940
|
/***/ }),
|
|
4916
4941
|
|
|
4917
|
-
/***/
|
|
4942
|
+
/***/ 91:
|
|
4918
4943
|
/***/ (function(module, exports) {
|
|
4919
4944
|
|
|
4920
4945
|
module.exports = require("@splunk/react-sparkline/Line");
|