@splunk/visualizations 25.0.0 → 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_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.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 +166 -152
- package/Area.config.js.map +1 -1
- package/Area.js +362 -433
- package/Area.js.map +1 -1
- package/Bar.config.js +168 -148
- package/Bar.config.js.map +1 -1
- package/Bar.js +364 -429
- package/Bar.js.map +1 -1
- package/Bubble.config.js +155 -117
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +353 -400
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +112 -82
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +336 -391
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +164 -146
- package/Column.config.js.map +1 -1
- package/Column.js +360 -427
- package/Column.js.map +1 -1
- package/Ellipse.config.js +111 -80
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +317 -371
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +117 -86
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +324 -378
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +100 -76
- package/Image.config.js.map +1 -1
- package/Image.js +725 -789
- package/Image.js.map +1 -1
- package/Line.config.js +164 -137
- package/Line.config.js.map +1 -1
- package/Line.js +360 -418
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +137 -112
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +351 -410
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +140 -97
- package/Map.config.js.map +1 -1
- package/Map.js +517 -523
- package/Map.js.map +1 -1
- package/Markdown.config.js +138 -115
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +502 -553
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +218 -195
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2926 -3098
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +158 -133
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +319 -377
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +160 -136
- package/Pie.config.js.map +1 -1
- package/Pie.js +1316 -1492
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +164 -141
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +344 -404
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +280 -248
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +1247 -1303
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +175 -143
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +377 -426
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +156 -117
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +550 -601
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +147 -115
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +542 -598
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +19 -19
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +154 -120
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +373 -424
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +143 -111
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +612 -668
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +176 -152
- package/Table.config.js.map +1 -1
- package/Table.js +740 -797
- 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 -327
- 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 +42 -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/Line.config.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 = 49);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -98,14 +98,63 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
98
98
|
|
|
99
99
|
/***/ }),
|
|
100
100
|
/* 1 */
|
|
101
|
+
/***/ (function(module, exports) {
|
|
102
|
+
|
|
103
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
104
|
+
|
|
105
|
+
/***/ }),
|
|
106
|
+
/* 2 */
|
|
107
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
108
|
+
|
|
109
|
+
"use strict";
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
Object.defineProperty(exports, "__esModule", {
|
|
113
|
+
value: true
|
|
114
|
+
});
|
|
115
|
+
exports.VizBehavior = void 0;
|
|
116
|
+
var VizBehavior;
|
|
117
|
+
|
|
118
|
+
(function (VizBehavior) {
|
|
119
|
+
/**
|
|
120
|
+
* Dynamic Options Behavior.
|
|
121
|
+
* This allows visualization options to be powered by data
|
|
122
|
+
*
|
|
123
|
+
* **Example**
|
|
124
|
+
*
|
|
125
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
126
|
+
* would configure sparklineValues with an array of data points
|
|
127
|
+
* coming from the first series in the primary datasource
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
131
|
+
VizBehavior["EVENTS"] = "events";
|
|
132
|
+
/**
|
|
133
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
134
|
+
* missing.
|
|
135
|
+
* @type {string}
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
139
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
140
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
141
|
+
|
|
142
|
+
/***/ }),
|
|
143
|
+
/* 3 */
|
|
144
|
+
/***/ (function(module, exports) {
|
|
145
|
+
|
|
146
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
147
|
+
|
|
148
|
+
/***/ }),
|
|
149
|
+
/* 4 */
|
|
101
150
|
/***/ (function(module, exports, __webpack_require__) {
|
|
102
151
|
|
|
103
152
|
"use strict";
|
|
104
153
|
|
|
105
154
|
|
|
106
|
-
var _toConsumableArray = __webpack_require__(
|
|
155
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
107
156
|
|
|
108
|
-
var _defineProperty = __webpack_require__(
|
|
157
|
+
var _defineProperty = __webpack_require__(7);
|
|
109
158
|
|
|
110
159
|
var __rest = this && this.__rest || function (s, e) {
|
|
111
160
|
var t = {};
|
|
@@ -123,13 +172,13 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
123
172
|
Object.defineProperty(exports, "__esModule", {
|
|
124
173
|
value: true
|
|
125
174
|
});
|
|
126
|
-
exports.insertLayout = exports.
|
|
175
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
127
176
|
|
|
128
|
-
var lodash_1 = __webpack_require__(
|
|
177
|
+
var lodash_1 = __webpack_require__(6);
|
|
129
178
|
|
|
130
|
-
var schemaUtils_1 = __webpack_require__(
|
|
179
|
+
var schemaUtils_1 = __webpack_require__(3);
|
|
131
180
|
|
|
132
|
-
var VizBehavior_1 = __webpack_require__(
|
|
181
|
+
var VizBehavior_1 = __webpack_require__(2);
|
|
133
182
|
|
|
134
183
|
var dynamicOptionsDSLType = {
|
|
135
184
|
type: 'string',
|
|
@@ -198,8 +247,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
|
198
247
|
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
199
248
|
/**
|
|
200
249
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
250
|
+
* this function also collapse all editor panels
|
|
201
251
|
* @param vizConfig a Visualization Config
|
|
202
252
|
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
253
|
+
* and containing `open: false` for all editor panels in editorConfig
|
|
203
254
|
*/
|
|
204
255
|
|
|
205
256
|
function enhanceConfig(vizConfig) {
|
|
@@ -209,10 +260,33 @@ function enhanceConfig(vizConfig) {
|
|
|
209
260
|
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
210
261
|
}
|
|
211
262
|
|
|
263
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
264
|
+
return Object.assign(Object.assign({}, config), {
|
|
265
|
+
open: false
|
|
266
|
+
});
|
|
267
|
+
});
|
|
212
268
|
return enhancedConfig;
|
|
213
269
|
}
|
|
214
270
|
|
|
215
271
|
exports.enhanceConfig = enhanceConfig;
|
|
272
|
+
/**
|
|
273
|
+
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
274
|
+
* Created for editor unit tests
|
|
275
|
+
* @param vizConfig a Visualization Config
|
|
276
|
+
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
function uncollapseEditorConfig(vizConfig) {
|
|
280
|
+
var editorPanelUncollapsedConfig = vizConfig;
|
|
281
|
+
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
282
|
+
return Object.assign(Object.assign({}, config), {
|
|
283
|
+
open: true
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
return editorPanelUncollapsedConfig;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
216
290
|
|
|
217
291
|
function isDynamicOption(option) {
|
|
218
292
|
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
@@ -308,68 +382,20 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
308
382
|
exports.insertLayout = insertLayout;
|
|
309
383
|
|
|
310
384
|
/***/ }),
|
|
311
|
-
/*
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
315
|
-
|
|
316
|
-
/***/ }),
|
|
317
|
-
/* 3 */
|
|
318
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
319
|
-
|
|
320
|
-
"use strict";
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
Object.defineProperty(exports, "__esModule", {
|
|
324
|
-
value: true
|
|
325
|
-
});
|
|
326
|
-
exports.VizBehavior = void 0;
|
|
327
|
-
var VizBehavior;
|
|
328
|
-
|
|
329
|
-
(function (VizBehavior) {
|
|
330
|
-
/**
|
|
331
|
-
* Dynamic Options Behavior.
|
|
332
|
-
* This allows visualization options to be powered by data
|
|
333
|
-
*
|
|
334
|
-
* **Example**
|
|
335
|
-
*
|
|
336
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
337
|
-
* would configure sparklineValues with an array of data points
|
|
338
|
-
* coming from the first series in the primary datasource
|
|
339
|
-
*
|
|
340
|
-
*/
|
|
341
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
342
|
-
VizBehavior["EVENTS"] = "events";
|
|
343
|
-
/**
|
|
344
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
345
|
-
* missing.
|
|
346
|
-
* @type {string}
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
350
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
351
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
352
|
-
|
|
353
|
-
/***/ }),
|
|
354
|
-
/* 4 */
|
|
355
|
-
/***/ (function(module, exports) {
|
|
356
|
-
|
|
357
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
358
|
-
|
|
359
|
-
/***/ }),
|
|
360
|
-
/* 5 */
|
|
385
|
+
/* 5 */,
|
|
386
|
+
/* 6 */
|
|
361
387
|
/***/ (function(module, exports) {
|
|
362
388
|
|
|
363
389
|
module.exports = require("lodash");
|
|
364
390
|
|
|
365
391
|
/***/ }),
|
|
366
|
-
/*
|
|
392
|
+
/* 7 */
|
|
367
393
|
/***/ (function(module, exports) {
|
|
368
394
|
|
|
369
395
|
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
370
396
|
|
|
371
397
|
/***/ }),
|
|
372
|
-
/*
|
|
398
|
+
/* 8 */
|
|
373
399
|
/***/ (function(module, exports, __webpack_require__) {
|
|
374
400
|
|
|
375
401
|
"use strict";
|
|
@@ -397,37 +423,37 @@ var VizCategory;
|
|
|
397
423
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
398
424
|
|
|
399
425
|
/***/ }),
|
|
400
|
-
/*
|
|
426
|
+
/* 9 */
|
|
401
427
|
/***/ (function(module, exports) {
|
|
402
428
|
|
|
403
429
|
module.exports = require("@splunk/themes/pick");
|
|
404
430
|
|
|
405
431
|
/***/ }),
|
|
406
|
-
/*
|
|
432
|
+
/* 10 */
|
|
407
433
|
/***/ (function(module, exports) {
|
|
408
434
|
|
|
409
435
|
module.exports = require("@splunk/themes/variables");
|
|
410
436
|
|
|
411
437
|
/***/ }),
|
|
412
|
-
/*
|
|
438
|
+
/* 11 */
|
|
413
439
|
/***/ (function(module, exports) {
|
|
414
440
|
|
|
415
441
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
416
442
|
|
|
417
443
|
/***/ }),
|
|
418
|
-
/*
|
|
444
|
+
/* 12 */
|
|
419
445
|
/***/ (function(module, exports) {
|
|
420
446
|
|
|
421
447
|
module.exports = require("@splunk/visualization-icons");
|
|
422
448
|
|
|
423
449
|
/***/ }),
|
|
424
|
-
/*
|
|
450
|
+
/* 13 */
|
|
425
451
|
/***/ (function(module, exports) {
|
|
426
452
|
|
|
427
453
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
428
454
|
|
|
429
455
|
/***/ }),
|
|
430
|
-
/*
|
|
456
|
+
/* 14 */
|
|
431
457
|
/***/ (function(module, exports, __webpack_require__) {
|
|
432
458
|
|
|
433
459
|
"use strict";
|
|
@@ -457,14 +483,14 @@ var background = function background(_ref) {
|
|
|
457
483
|
exports.default = background;
|
|
458
484
|
|
|
459
485
|
/***/ }),
|
|
460
|
-
/*
|
|
461
|
-
/*
|
|
486
|
+
/* 15 */,
|
|
487
|
+
/* 16 */
|
|
462
488
|
/***/ (function(module, exports, __webpack_require__) {
|
|
463
489
|
|
|
464
490
|
"use strict";
|
|
465
491
|
|
|
466
492
|
|
|
467
|
-
var _toConsumableArray = __webpack_require__(
|
|
493
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
468
494
|
|
|
469
495
|
Object.defineProperty(exports, "__esModule", {
|
|
470
496
|
value: true
|
|
@@ -473,7 +499,7 @@ exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble =
|
|
|
473
499
|
|
|
474
500
|
var i18n_1 = __webpack_require__(0);
|
|
475
501
|
|
|
476
|
-
var configUtils_1 = __webpack_require__(
|
|
502
|
+
var configUtils_1 = __webpack_require__(4);
|
|
477
503
|
|
|
478
504
|
var AxesChartDataConfig = {
|
|
479
505
|
label: i18n_1._('Data configurations'),
|
|
@@ -514,15 +540,35 @@ exports.AxesChartDataConfigBar = {
|
|
|
514
540
|
};
|
|
515
541
|
exports.AxesChartDataConfigScatter = {
|
|
516
542
|
label: AxesChartDataConfig.label,
|
|
517
|
-
|
|
518
|
-
|
|
543
|
+
layout: [[{
|
|
544
|
+
label: i18n_1._('X'),
|
|
545
|
+
option: 'x',
|
|
546
|
+
editor: 'editor.columnSelector',
|
|
547
|
+
editorProps: {
|
|
548
|
+
dataSourceKey: 'primary'
|
|
549
|
+
}
|
|
550
|
+
}], [{
|
|
551
|
+
label: i18n_1._('Y'),
|
|
552
|
+
option: 'y',
|
|
553
|
+
editor: 'editor.columnSelector',
|
|
554
|
+
editorProps: {
|
|
555
|
+
dataSourceKey: 'primary'
|
|
556
|
+
}
|
|
557
|
+
}], [{
|
|
519
558
|
label: i18n_1._('Category'),
|
|
520
559
|
option: 'category',
|
|
521
560
|
editor: 'editor.columnSelector',
|
|
522
561
|
editorProps: {
|
|
523
562
|
dataSourceKey: 'primary'
|
|
524
563
|
}
|
|
525
|
-
}]
|
|
564
|
+
}], [{
|
|
565
|
+
label: i18n_1._('Result limit'),
|
|
566
|
+
option: 'resultLimit',
|
|
567
|
+
editor: 'editor.number',
|
|
568
|
+
editorProps: {
|
|
569
|
+
dataSourceKey: 'primary'
|
|
570
|
+
}
|
|
571
|
+
}]]
|
|
526
572
|
};
|
|
527
573
|
exports.AxesChartDataConfigBubble = {
|
|
528
574
|
label: exports.AxesChartDataConfigScatter.label,
|
|
@@ -557,7 +603,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
|
|
|
557
603
|
exports.default = AxesChartDataConfig;
|
|
558
604
|
|
|
559
605
|
/***/ }),
|
|
560
|
-
/*
|
|
606
|
+
/* 17 */
|
|
561
607
|
/***/ (function(module, exports, __webpack_require__) {
|
|
562
608
|
|
|
563
609
|
"use strict";
|
|
@@ -569,11 +615,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
569
615
|
|
|
570
616
|
var i18n_1 = __webpack_require__(0);
|
|
571
617
|
|
|
572
|
-
var pick_1 = __webpack_require__(
|
|
618
|
+
var pick_1 = __webpack_require__(9);
|
|
573
619
|
|
|
574
|
-
var variables_1 = __webpack_require__(
|
|
620
|
+
var variables_1 = __webpack_require__(10);
|
|
575
621
|
|
|
576
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
622
|
+
var BackgroundColor_1 = __webpack_require__(14);
|
|
577
623
|
|
|
578
624
|
var themes = {
|
|
579
625
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
@@ -590,28 +636,20 @@ var AxesChartColorAndStyle = {
|
|
|
590
636
|
label: i18n_1._('Color and style'),
|
|
591
637
|
layout: [BackgroundColor_1.default({
|
|
592
638
|
themes: themes
|
|
593
|
-
})
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
// [
|
|
603
|
-
// {
|
|
604
|
-
// label: _('Series colors by field name'),
|
|
605
|
-
// option: 'seriesColorsByField',
|
|
606
|
-
// editor: 'editor.seriesColorsByField',
|
|
607
|
-
// },
|
|
608
|
-
// ],
|
|
609
|
-
]
|
|
639
|
+
}), [{
|
|
640
|
+
label: i18n_1._('Series colors'),
|
|
641
|
+
option: 'seriesColors',
|
|
642
|
+
editor: 'editor.seriesColors'
|
|
643
|
+
}], [{
|
|
644
|
+
label: i18n_1._('Series colors by field name'),
|
|
645
|
+
option: 'seriesColorsByField',
|
|
646
|
+
editor: 'editor.seriesColorsByField'
|
|
647
|
+
}]]
|
|
610
648
|
};
|
|
611
649
|
exports.default = AxesChartColorAndStyle;
|
|
612
650
|
|
|
613
651
|
/***/ }),
|
|
614
|
-
/*
|
|
652
|
+
/* 18 */
|
|
615
653
|
/***/ (function(module, exports, __webpack_require__) {
|
|
616
654
|
|
|
617
655
|
"use strict";
|
|
@@ -675,13 +713,13 @@ var AxesChartLegend = {
|
|
|
675
713
|
exports.default = AxesChartLegend;
|
|
676
714
|
|
|
677
715
|
/***/ }),
|
|
678
|
-
/*
|
|
716
|
+
/* 19 */
|
|
679
717
|
/***/ (function(module, exports, __webpack_require__) {
|
|
680
718
|
|
|
681
719
|
"use strict";
|
|
682
720
|
|
|
683
721
|
|
|
684
|
-
var _toConsumableArray = __webpack_require__(
|
|
722
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
685
723
|
|
|
686
724
|
Object.defineProperty(exports, "__esModule", {
|
|
687
725
|
value: true
|
|
@@ -690,7 +728,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCo
|
|
|
690
728
|
|
|
691
729
|
var i18n_1 = __webpack_require__(0);
|
|
692
730
|
|
|
693
|
-
var configUtils_1 = __webpack_require__(
|
|
731
|
+
var configUtils_1 = __webpack_require__(4);
|
|
694
732
|
|
|
695
733
|
exports.AxesChartXGridAndLabelsCommon = {
|
|
696
734
|
label: i18n_1._('X-axis grid and labels'),
|
|
@@ -729,7 +767,7 @@ var AxesChartXGridAndLabels = {
|
|
|
729
767
|
layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
730
768
|
label: i18n_1._('Label rotation'),
|
|
731
769
|
option: 'xAxisLabelRotation',
|
|
732
|
-
editor: 'editor.
|
|
770
|
+
editor: 'editor.select',
|
|
733
771
|
editorProps: {
|
|
734
772
|
values: [{
|
|
735
773
|
label: i18n_1._('-90'),
|
|
@@ -963,7 +1001,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
963
1001
|
exports.default = AxesChartXGridAndLabels;
|
|
964
1002
|
|
|
965
1003
|
/***/ }),
|
|
966
|
-
/*
|
|
1004
|
+
/* 20 */
|
|
967
1005
|
/***/ (function(module, exports, __webpack_require__) {
|
|
968
1006
|
|
|
969
1007
|
"use strict";
|
|
@@ -1125,13 +1163,13 @@ var AxesChartYGridAndLabels = {
|
|
|
1125
1163
|
exports.default = AxesChartYGridAndLabels;
|
|
1126
1164
|
|
|
1127
1165
|
/***/ }),
|
|
1128
|
-
/*
|
|
1166
|
+
/* 21 */
|
|
1129
1167
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1130
1168
|
|
|
1131
1169
|
"use strict";
|
|
1132
1170
|
|
|
1133
1171
|
|
|
1134
|
-
var _toConsumableArray = __webpack_require__(
|
|
1172
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
1135
1173
|
|
|
1136
1174
|
Object.defineProperty(exports, "__esModule", {
|
|
1137
1175
|
value: true
|
|
@@ -1140,9 +1178,9 @@ exports.AxesChartDataDisplayColumn = exports.AxesChartDataDisplayBar = exports.A
|
|
|
1140
1178
|
|
|
1141
1179
|
var i18n_1 = __webpack_require__(0);
|
|
1142
1180
|
|
|
1143
|
-
var lodash_1 = __webpack_require__(
|
|
1181
|
+
var lodash_1 = __webpack_require__(6);
|
|
1144
1182
|
|
|
1145
|
-
var configUtils_1 = __webpack_require__(
|
|
1183
|
+
var configUtils_1 = __webpack_require__(4);
|
|
1146
1184
|
|
|
1147
1185
|
exports.AxesChartDataDisplayLine = {
|
|
1148
1186
|
label: i18n_1._('Data display'),
|
|
@@ -1178,13 +1216,6 @@ exports.AxesChartDataDisplayLine = {
|
|
|
1178
1216
|
value: 'minmax'
|
|
1179
1217
|
}]
|
|
1180
1218
|
}
|
|
1181
|
-
}], [{
|
|
1182
|
-
label: i18n_1._('Overlay fields'),
|
|
1183
|
-
option: 'overlayFields',
|
|
1184
|
-
editor: 'editor.columnMultiSelector',
|
|
1185
|
-
editorProps: {
|
|
1186
|
-
dataSourceKey: 'primary'
|
|
1187
|
-
}
|
|
1188
1219
|
}], [{
|
|
1189
1220
|
label: i18n_1._('Split series'),
|
|
1190
1221
|
option: 'showSplitSeries',
|
|
@@ -1204,7 +1235,7 @@ var AxesChartDataDisplay = {
|
|
|
1204
1235
|
layout: [[{
|
|
1205
1236
|
label: i18n_1._('Stack mode'),
|
|
1206
1237
|
option: 'stackMode',
|
|
1207
|
-
editor: 'editor.
|
|
1238
|
+
editor: 'editor.select',
|
|
1208
1239
|
editorProps: {
|
|
1209
1240
|
values: [{
|
|
1210
1241
|
label: i18n_1._('Not stacked'),
|
|
@@ -1224,7 +1255,7 @@ exports.AxesChartDataDisplayBar = {
|
|
|
1224
1255
|
layout: [[{
|
|
1225
1256
|
label: i18n_1._('Stack mode'),
|
|
1226
1257
|
option: 'stackMode',
|
|
1227
|
-
editor: 'editor.
|
|
1258
|
+
editor: 'editor.select',
|
|
1228
1259
|
editorProps: {
|
|
1229
1260
|
values: [{
|
|
1230
1261
|
label: i18n_1._('Not stacked'),
|
|
@@ -1263,7 +1294,7 @@ exports.AxesChartDataDisplayColumn = {
|
|
|
1263
1294
|
exports.default = AxesChartDataDisplay;
|
|
1264
1295
|
|
|
1265
1296
|
/***/ }),
|
|
1266
|
-
/*
|
|
1297
|
+
/* 22 */
|
|
1267
1298
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1268
1299
|
|
|
1269
1300
|
"use strict";
|
|
@@ -1289,10 +1320,6 @@ var axesChartY2GridAndLabels = {
|
|
|
1289
1320
|
var options = _ref.options;
|
|
1290
1321
|
return options.y2AxisTitleVisibility === 'show' || options.y2AxisTitleVisibility === undefined;
|
|
1291
1322
|
}
|
|
1292
|
-
}], [{
|
|
1293
|
-
label: i18n_1._('Show overlays on the y2-axis'),
|
|
1294
|
-
option: 'showOverlayY2Axis',
|
|
1295
|
-
editor: 'editor.checkbox'
|
|
1296
1323
|
}], [{
|
|
1297
1324
|
label: i18n_1._('Scale'),
|
|
1298
1325
|
option: 'y2AxisScale',
|
|
@@ -1433,7 +1460,6 @@ var axesChartY2GridAndLabels = {
|
|
|
1433
1460
|
exports.default = axesChartY2GridAndLabels;
|
|
1434
1461
|
|
|
1435
1462
|
/***/ }),
|
|
1436
|
-
/* 22 */,
|
|
1437
1463
|
/* 23 */,
|
|
1438
1464
|
/* 24 */,
|
|
1439
1465
|
/* 25 */,
|
|
@@ -1459,51 +1485,52 @@ exports.default = axesChartY2GridAndLabels;
|
|
|
1459
1485
|
/* 45 */,
|
|
1460
1486
|
/* 46 */,
|
|
1461
1487
|
/* 47 */,
|
|
1462
|
-
/* 48
|
|
1488
|
+
/* 48 */,
|
|
1489
|
+
/* 49 */
|
|
1463
1490
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1464
1491
|
|
|
1465
1492
|
"use strict";
|
|
1466
1493
|
|
|
1467
1494
|
|
|
1468
|
-
var _toConsumableArray = __webpack_require__(
|
|
1495
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
1469
1496
|
|
|
1470
1497
|
Object.defineProperty(exports, "__esModule", {
|
|
1471
1498
|
value: true
|
|
1472
1499
|
});
|
|
1473
1500
|
|
|
1474
|
-
var schemaUtils_1 = __webpack_require__(
|
|
1501
|
+
var schemaUtils_1 = __webpack_require__(3);
|
|
1475
1502
|
|
|
1476
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
1503
|
+
var visualization_color_palettes_1 = __webpack_require__(13);
|
|
1477
1504
|
|
|
1478
|
-
var visualization_icons_1 = __webpack_require__(
|
|
1505
|
+
var visualization_icons_1 = __webpack_require__(12);
|
|
1479
1506
|
|
|
1480
|
-
var placeholders_1 = __webpack_require__(
|
|
1507
|
+
var placeholders_1 = __webpack_require__(11);
|
|
1481
1508
|
|
|
1482
1509
|
var i18n_1 = __webpack_require__(0);
|
|
1483
1510
|
|
|
1484
|
-
var pick_1 = __webpack_require__(
|
|
1511
|
+
var pick_1 = __webpack_require__(9);
|
|
1485
1512
|
|
|
1486
|
-
var variables_1 = __webpack_require__(
|
|
1513
|
+
var variables_1 = __webpack_require__(10);
|
|
1487
1514
|
|
|
1488
|
-
var AxesChartDataConfig_1 = __webpack_require__(
|
|
1515
|
+
var AxesChartDataConfig_1 = __webpack_require__(16);
|
|
1489
1516
|
|
|
1490
|
-
var AxesChartDataDisplay_1 = __webpack_require__(
|
|
1517
|
+
var AxesChartDataDisplay_1 = __webpack_require__(21);
|
|
1491
1518
|
|
|
1492
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(
|
|
1519
|
+
var AxesChartColorAndStyle_1 = __webpack_require__(17);
|
|
1493
1520
|
|
|
1494
|
-
var AxesChartLegend_1 = __webpack_require__(
|
|
1521
|
+
var AxesChartLegend_1 = __webpack_require__(18);
|
|
1495
1522
|
|
|
1496
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(
|
|
1523
|
+
var AxesChartXGridAndLabels_1 = __webpack_require__(19);
|
|
1497
1524
|
|
|
1498
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(
|
|
1525
|
+
var AxesChartYGridAndLabels_1 = __webpack_require__(20);
|
|
1499
1526
|
|
|
1500
|
-
var AxesChartY2GridAndLabels_1 = __webpack_require__(
|
|
1527
|
+
var AxesChartY2GridAndLabels_1 = __webpack_require__(22);
|
|
1501
1528
|
|
|
1502
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1529
|
+
var VizBehavior_1 = __webpack_require__(2);
|
|
1503
1530
|
|
|
1504
|
-
var VizCategory_1 = __webpack_require__(
|
|
1531
|
+
var VizCategory_1 = __webpack_require__(8);
|
|
1505
1532
|
|
|
1506
|
-
var configUtils_1 = __webpack_require__(
|
|
1533
|
+
var configUtils_1 = __webpack_require__(4);
|
|
1507
1534
|
|
|
1508
1535
|
var dataContract = {
|
|
1509
1536
|
requiredDataSources: [{
|
|
@@ -1588,7 +1615,7 @@ var optionsSchema = {
|
|
|
1588
1615
|
backgroundColor: {
|
|
1589
1616
|
default: '> themes.defaultBackgroundColor',
|
|
1590
1617
|
description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
1591
|
-
pattern: schemaUtils_1.
|
|
1618
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1592
1619
|
type: 'string'
|
|
1593
1620
|
},
|
|
1594
1621
|
dataValuesDisplay: {
|