@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/Table.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 = 75);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -100,14 +100,94 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
|
+
/***/ (function(module, exports) {
|
|
104
|
+
|
|
105
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
106
|
+
|
|
107
|
+
/***/ }),
|
|
108
|
+
|
|
109
|
+
/***/ 10:
|
|
110
|
+
/***/ (function(module, exports) {
|
|
111
|
+
|
|
112
|
+
module.exports = require("@splunk/themes/variables");
|
|
113
|
+
|
|
114
|
+
/***/ }),
|
|
115
|
+
|
|
116
|
+
/***/ 11:
|
|
117
|
+
/***/ (function(module, exports) {
|
|
118
|
+
|
|
119
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ 12:
|
|
124
|
+
/***/ (function(module, exports) {
|
|
125
|
+
|
|
126
|
+
module.exports = require("@splunk/visualization-icons");
|
|
127
|
+
|
|
128
|
+
/***/ }),
|
|
129
|
+
|
|
130
|
+
/***/ 2:
|
|
131
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
132
|
+
|
|
133
|
+
"use strict";
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
Object.defineProperty(exports, "__esModule", {
|
|
137
|
+
value: true
|
|
138
|
+
});
|
|
139
|
+
exports.VizBehavior = void 0;
|
|
140
|
+
var VizBehavior;
|
|
141
|
+
|
|
142
|
+
(function (VizBehavior) {
|
|
143
|
+
/**
|
|
144
|
+
* Dynamic Options Behavior.
|
|
145
|
+
* This allows visualization options to be powered by data
|
|
146
|
+
*
|
|
147
|
+
* **Example**
|
|
148
|
+
*
|
|
149
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
150
|
+
* would configure sparklineValues with an array of data points
|
|
151
|
+
* coming from the first series in the primary datasource
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
155
|
+
VizBehavior["EVENTS"] = "events";
|
|
156
|
+
/**
|
|
157
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
158
|
+
* missing.
|
|
159
|
+
* @type {string}
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
163
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
164
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
165
|
+
|
|
166
|
+
/***/ }),
|
|
167
|
+
|
|
168
|
+
/***/ 25:
|
|
169
|
+
/***/ (function(module, exports) {
|
|
170
|
+
|
|
171
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
172
|
+
|
|
173
|
+
/***/ }),
|
|
174
|
+
|
|
175
|
+
/***/ 3:
|
|
176
|
+
/***/ (function(module, exports) {
|
|
177
|
+
|
|
178
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
179
|
+
|
|
180
|
+
/***/ }),
|
|
181
|
+
|
|
182
|
+
/***/ 4:
|
|
103
183
|
/***/ (function(module, exports, __webpack_require__) {
|
|
104
184
|
|
|
105
185
|
"use strict";
|
|
106
186
|
|
|
107
187
|
|
|
108
|
-
var _toConsumableArray = __webpack_require__(
|
|
188
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
109
189
|
|
|
110
|
-
var _defineProperty = __webpack_require__(
|
|
190
|
+
var _defineProperty = __webpack_require__(7);
|
|
111
191
|
|
|
112
192
|
var __rest = this && this.__rest || function (s, e) {
|
|
113
193
|
var t = {};
|
|
@@ -125,13 +205,13 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
125
205
|
Object.defineProperty(exports, "__esModule", {
|
|
126
206
|
value: true
|
|
127
207
|
});
|
|
128
|
-
exports.insertLayout = exports.
|
|
208
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
129
209
|
|
|
130
|
-
var lodash_1 = __webpack_require__(
|
|
210
|
+
var lodash_1 = __webpack_require__(6);
|
|
131
211
|
|
|
132
|
-
var schemaUtils_1 = __webpack_require__(
|
|
212
|
+
var schemaUtils_1 = __webpack_require__(3);
|
|
133
213
|
|
|
134
|
-
var VizBehavior_1 = __webpack_require__(
|
|
214
|
+
var VizBehavior_1 = __webpack_require__(2);
|
|
135
215
|
|
|
136
216
|
var dynamicOptionsDSLType = {
|
|
137
217
|
type: 'string',
|
|
@@ -200,8 +280,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
|
200
280
|
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
201
281
|
/**
|
|
202
282
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
283
|
+
* this function also collapse all editor panels
|
|
203
284
|
* @param vizConfig a Visualization Config
|
|
204
285
|
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
286
|
+
* and containing `open: false` for all editor panels in editorConfig
|
|
205
287
|
*/
|
|
206
288
|
|
|
207
289
|
function enhanceConfig(vizConfig) {
|
|
@@ -211,10 +293,33 @@ function enhanceConfig(vizConfig) {
|
|
|
211
293
|
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
212
294
|
}
|
|
213
295
|
|
|
296
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
297
|
+
return Object.assign(Object.assign({}, config), {
|
|
298
|
+
open: false
|
|
299
|
+
});
|
|
300
|
+
});
|
|
214
301
|
return enhancedConfig;
|
|
215
302
|
}
|
|
216
303
|
|
|
217
304
|
exports.enhanceConfig = enhanceConfig;
|
|
305
|
+
/**
|
|
306
|
+
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
307
|
+
* Created for editor unit tests
|
|
308
|
+
* @param vizConfig a Visualization Config
|
|
309
|
+
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
function uncollapseEditorConfig(vizConfig) {
|
|
313
|
+
var editorPanelUncollapsedConfig = vizConfig;
|
|
314
|
+
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
315
|
+
return Object.assign(Object.assign({}, config), {
|
|
316
|
+
open: true
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
return editorPanelUncollapsedConfig;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
218
323
|
|
|
219
324
|
function isDynamicOption(option) {
|
|
220
325
|
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
@@ -311,129 +416,27 @@ exports.insertLayout = insertLayout;
|
|
|
311
416
|
|
|
312
417
|
/***/ }),
|
|
313
418
|
|
|
314
|
-
/***/
|
|
315
|
-
/***/ (function(module, exports) {
|
|
316
|
-
|
|
317
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
318
|
-
|
|
319
|
-
/***/ }),
|
|
320
|
-
|
|
321
|
-
/***/ 11:
|
|
322
|
-
/***/ (function(module, exports) {
|
|
323
|
-
|
|
324
|
-
module.exports = require("@splunk/visualization-icons");
|
|
325
|
-
|
|
326
|
-
/***/ }),
|
|
327
|
-
|
|
328
|
-
/***/ 2:
|
|
329
|
-
/***/ (function(module, exports) {
|
|
330
|
-
|
|
331
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
332
|
-
|
|
333
|
-
/***/ }),
|
|
334
|
-
|
|
335
|
-
/***/ 24:
|
|
336
|
-
/***/ (function(module, exports) {
|
|
337
|
-
|
|
338
|
-
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
339
|
-
|
|
340
|
-
/***/ }),
|
|
341
|
-
|
|
342
|
-
/***/ 3:
|
|
343
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
344
|
-
|
|
345
|
-
"use strict";
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
Object.defineProperty(exports, "__esModule", {
|
|
349
|
-
value: true
|
|
350
|
-
});
|
|
351
|
-
exports.VizBehavior = void 0;
|
|
352
|
-
var VizBehavior;
|
|
353
|
-
|
|
354
|
-
(function (VizBehavior) {
|
|
355
|
-
/**
|
|
356
|
-
* Dynamic Options Behavior.
|
|
357
|
-
* This allows visualization options to be powered by data
|
|
358
|
-
*
|
|
359
|
-
* **Example**
|
|
360
|
-
*
|
|
361
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
362
|
-
* would configure sparklineValues with an array of data points
|
|
363
|
-
* coming from the first series in the primary datasource
|
|
364
|
-
*
|
|
365
|
-
*/
|
|
366
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
367
|
-
VizBehavior["EVENTS"] = "events";
|
|
368
|
-
/**
|
|
369
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
370
|
-
* missing.
|
|
371
|
-
* @type {string}
|
|
372
|
-
*/
|
|
373
|
-
|
|
374
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
375
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
376
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
377
|
-
|
|
378
|
-
/***/ }),
|
|
379
|
-
|
|
380
|
-
/***/ 4:
|
|
381
|
-
/***/ (function(module, exports) {
|
|
382
|
-
|
|
383
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
384
|
-
|
|
385
|
-
/***/ }),
|
|
386
|
-
|
|
387
|
-
/***/ 5:
|
|
419
|
+
/***/ 6:
|
|
388
420
|
/***/ (function(module, exports) {
|
|
389
421
|
|
|
390
422
|
module.exports = require("lodash");
|
|
391
423
|
|
|
392
424
|
/***/ }),
|
|
393
425
|
|
|
394
|
-
/***/
|
|
426
|
+
/***/ 7:
|
|
395
427
|
/***/ (function(module, exports) {
|
|
396
428
|
|
|
397
429
|
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
398
430
|
|
|
399
431
|
/***/ }),
|
|
400
432
|
|
|
401
|
-
/***/
|
|
433
|
+
/***/ 75:
|
|
402
434
|
/***/ (function(module, exports, __webpack_require__) {
|
|
403
435
|
|
|
404
436
|
"use strict";
|
|
405
437
|
|
|
406
438
|
|
|
407
|
-
|
|
408
|
-
value: true
|
|
409
|
-
});
|
|
410
|
-
exports.VizCategory = void 0;
|
|
411
|
-
var VizCategory;
|
|
412
|
-
|
|
413
|
-
(function (VizCategory) {
|
|
414
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
415
|
-
VizCategory["TRENDS"] = "Trends";
|
|
416
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
417
|
-
VizCategory["TABLE"] = "Table";
|
|
418
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
419
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
420
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
421
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
422
|
-
VizCategory["MISC"] = "misc";
|
|
423
|
-
VizCategory["FLOW"] = "Flow";
|
|
424
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
425
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
426
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
427
|
-
|
|
428
|
-
/***/ }),
|
|
429
|
-
|
|
430
|
-
/***/ 73:
|
|
431
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
432
|
-
|
|
433
|
-
"use strict";
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
var _toConsumableArray = __webpack_require__(2);
|
|
439
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
437
440
|
|
|
438
441
|
Object.defineProperty(exports, "__esModule", {
|
|
439
442
|
value: true
|
|
@@ -441,27 +444,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
441
444
|
|
|
442
445
|
var i18n_1 = __webpack_require__(0);
|
|
443
446
|
|
|
444
|
-
var lodash_1 = __webpack_require__(
|
|
447
|
+
var lodash_1 = __webpack_require__(6);
|
|
445
448
|
|
|
446
|
-
var schemaUtils_1 = __webpack_require__(
|
|
449
|
+
var schemaUtils_1 = __webpack_require__(3);
|
|
447
450
|
|
|
448
|
-
var colorConstants_1 = __webpack_require__(
|
|
451
|
+
var colorConstants_1 = __webpack_require__(25);
|
|
449
452
|
|
|
450
|
-
var visualization_icons_1 = __webpack_require__(
|
|
453
|
+
var visualization_icons_1 = __webpack_require__(12);
|
|
451
454
|
|
|
452
|
-
var placeholders_1 = __webpack_require__(
|
|
455
|
+
var placeholders_1 = __webpack_require__(11);
|
|
453
456
|
|
|
454
|
-
var variables_1 = __webpack_require__(
|
|
457
|
+
var variables_1 = __webpack_require__(10);
|
|
455
458
|
|
|
456
|
-
var pick_1 = __webpack_require__(
|
|
459
|
+
var pick_1 = __webpack_require__(9);
|
|
457
460
|
|
|
458
|
-
var configUtils_1 = __webpack_require__(
|
|
461
|
+
var configUtils_1 = __webpack_require__(4);
|
|
459
462
|
|
|
460
|
-
var VizBehavior_1 = __webpack_require__(
|
|
463
|
+
var VizBehavior_1 = __webpack_require__(2);
|
|
461
464
|
|
|
462
|
-
var consts_1 = __webpack_require__(
|
|
465
|
+
var consts_1 = __webpack_require__(76);
|
|
463
466
|
|
|
464
|
-
var VizCategory_1 = __webpack_require__(
|
|
467
|
+
var VizCategory_1 = __webpack_require__(8);
|
|
465
468
|
|
|
466
469
|
var dataContract = {
|
|
467
470
|
requiredDataSources: [{
|
|
@@ -603,11 +606,11 @@ var optionsSchema = {
|
|
|
603
606
|
backgroundColor: {
|
|
604
607
|
default: '> themes.defaultBackgroundColor',
|
|
605
608
|
description: 'Specify the color for the background. You might use a data source 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".',
|
|
606
|
-
pattern: schemaUtils_1.
|
|
609
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
607
610
|
type: 'string'
|
|
608
611
|
},
|
|
609
612
|
columnFormat: {
|
|
610
|
-
description: '
|
|
613
|
+
description: 'Lets you format an individual column in a table. Specify a column in a table as a field, followed by a property. For more information, see the Column Format Align - Left example on the Examples page.',
|
|
611
614
|
type: 'object',
|
|
612
615
|
patternProperties: {
|
|
613
616
|
'.*': {
|
|
@@ -651,7 +654,7 @@ var optionsSchema = {
|
|
|
651
654
|
type: 'array',
|
|
652
655
|
items: {
|
|
653
656
|
type: 'string',
|
|
654
|
-
pattern: schemaUtils_1.
|
|
657
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
655
658
|
}
|
|
656
659
|
},
|
|
657
660
|
rowColors: {
|
|
@@ -659,7 +662,7 @@ var optionsSchema = {
|
|
|
659
662
|
type: 'array',
|
|
660
663
|
items: {
|
|
661
664
|
type: 'string',
|
|
662
|
-
pattern: schemaUtils_1.
|
|
665
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
663
666
|
}
|
|
664
667
|
},
|
|
665
668
|
sparklineAreaColors: {
|
|
@@ -667,7 +670,7 @@ var optionsSchema = {
|
|
|
667
670
|
type: 'array',
|
|
668
671
|
items: {
|
|
669
672
|
type: 'string',
|
|
670
|
-
pattern: schemaUtils_1.
|
|
673
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
671
674
|
}
|
|
672
675
|
},
|
|
673
676
|
sparklineColors: {
|
|
@@ -675,7 +678,7 @@ var optionsSchema = {
|
|
|
675
678
|
type: 'array',
|
|
676
679
|
items: {
|
|
677
680
|
type: 'string',
|
|
678
|
-
pattern: schemaUtils_1.
|
|
681
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
679
682
|
}
|
|
680
683
|
},
|
|
681
684
|
sparklineTypes: {
|
|
@@ -769,7 +772,7 @@ var optionsSchema = {
|
|
|
769
772
|
}
|
|
770
773
|
},
|
|
771
774
|
tableFormat: {
|
|
772
|
-
description: '
|
|
775
|
+
description: 'Lets you set global options for a table.',
|
|
773
776
|
type: 'object',
|
|
774
777
|
properties: {
|
|
775
778
|
align: {
|
|
@@ -818,12 +821,12 @@ var optionsSchema = {
|
|
|
818
821
|
headerBackgroundColor: {
|
|
819
822
|
default: '> themes.defaultHeaderBackgroundColor',
|
|
820
823
|
description: 'Specify the table header background color using a hexadecimal code. For example, "#FFFFFF".',
|
|
821
|
-
pattern: schemaUtils_1.
|
|
824
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
822
825
|
type: 'string'
|
|
823
826
|
},
|
|
824
827
|
headerColor: {
|
|
825
828
|
description: 'Specify the table header text color using a hexadecimal code. For example, "#FFFFFF".',
|
|
826
|
-
pattern: schemaUtils_1.
|
|
829
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
827
830
|
type: 'string'
|
|
828
831
|
},
|
|
829
832
|
rowBackgroundColors: {
|
|
@@ -834,7 +837,7 @@ var optionsSchema = {
|
|
|
834
837
|
type: 'array',
|
|
835
838
|
items: {
|
|
836
839
|
type: 'string',
|
|
837
|
-
pattern: schemaUtils_1.
|
|
840
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
838
841
|
}
|
|
839
842
|
}
|
|
840
843
|
},
|
|
@@ -856,7 +859,7 @@ var optionsSchema = {
|
|
|
856
859
|
type: 'array',
|
|
857
860
|
items: {
|
|
858
861
|
type: 'string',
|
|
859
|
-
pattern: schemaUtils_1.
|
|
862
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
860
863
|
}
|
|
861
864
|
}
|
|
862
865
|
},
|
|
@@ -867,7 +870,7 @@ var optionsSchema = {
|
|
|
867
870
|
type: 'array',
|
|
868
871
|
items: {
|
|
869
872
|
type: 'string',
|
|
870
|
-
pattern: schemaUtils_1.
|
|
873
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
871
874
|
}
|
|
872
875
|
}
|
|
873
876
|
},
|
|
@@ -970,10 +973,19 @@ var editorConfig = [{
|
|
|
970
973
|
labelPosition: 'left',
|
|
971
974
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
972
975
|
}
|
|
976
|
+
}], [{
|
|
977
|
+
key: 'backgroundColor',
|
|
978
|
+
editor: 'editor.tableBackgroundColor',
|
|
979
|
+
editorProps: {
|
|
980
|
+
themes: themes,
|
|
981
|
+
labelPosition: 'left',
|
|
982
|
+
labelWidth: EDITOR_LABEL_WIDTH,
|
|
983
|
+
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
984
|
+
}
|
|
973
985
|
}], [{
|
|
974
986
|
label: i18n_1._('Header Row'),
|
|
975
987
|
option: 'headerVisibility',
|
|
976
|
-
editor: 'editor.
|
|
988
|
+
editor: 'editor.select',
|
|
977
989
|
editorProps: {
|
|
978
990
|
values: [{
|
|
979
991
|
label: i18n_1._('Inline'),
|
|
@@ -985,18 +997,8 @@ var editorConfig = [{
|
|
|
985
997
|
label: i18n_1._('Hidden'),
|
|
986
998
|
value: 'none'
|
|
987
999
|
}],
|
|
988
|
-
labelPosition: 'left',
|
|
989
1000
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
990
1001
|
}
|
|
991
|
-
}], [{
|
|
992
|
-
key: 'backgroundColor',
|
|
993
|
-
editor: 'editor.tableBackgroundColor',
|
|
994
|
-
editorProps: {
|
|
995
|
-
themes: themes,
|
|
996
|
-
labelPosition: 'left',
|
|
997
|
-
labelWidth: EDITOR_LABEL_WIDTH,
|
|
998
|
-
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
999
|
-
}
|
|
1000
1002
|
}], [{
|
|
1001
1003
|
option: 'font',
|
|
1002
1004
|
label: i18n_1._('Font'),
|
|
@@ -1037,7 +1039,7 @@ var editorConfig = [{
|
|
|
1037
1039
|
}, {
|
|
1038
1040
|
label: i18n_1._('Column Formatting'),
|
|
1039
1041
|
layout: [[{
|
|
1040
|
-
label: i18n_1._(''),
|
|
1042
|
+
label: i18n_1._('Column-specific formatting'),
|
|
1041
1043
|
editor: 'editor.tableColumnFormatter',
|
|
1042
1044
|
editorProps: {
|
|
1043
1045
|
// Table column coloring does not adhere to same DSL structure as other dynamically colored options
|
|
@@ -1154,7 +1156,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
1154
1156
|
|
|
1155
1157
|
/***/ }),
|
|
1156
1158
|
|
|
1157
|
-
/***/
|
|
1159
|
+
/***/ 76:
|
|
1158
1160
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1159
1161
|
|
|
1160
1162
|
"use strict";
|
|
@@ -1174,16 +1176,38 @@ exports.validFontSizes = ['extraSmall', 'small', 'default', 'large'];
|
|
|
1174
1176
|
/***/ }),
|
|
1175
1177
|
|
|
1176
1178
|
/***/ 8:
|
|
1177
|
-
/***/ (function(module, exports) {
|
|
1179
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1178
1180
|
|
|
1179
|
-
|
|
1181
|
+
"use strict";
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1185
|
+
value: true
|
|
1186
|
+
});
|
|
1187
|
+
exports.VizCategory = void 0;
|
|
1188
|
+
var VizCategory;
|
|
1189
|
+
|
|
1190
|
+
(function (VizCategory) {
|
|
1191
|
+
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
1192
|
+
VizCategory["TRENDS"] = "Trends";
|
|
1193
|
+
VizCategory["COMPARISONS"] = "Comparisons";
|
|
1194
|
+
VizCategory["TABLE"] = "Table";
|
|
1195
|
+
VizCategory["GAUGE"] = "Gauge";
|
|
1196
|
+
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
1197
|
+
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
1198
|
+
VizCategory["SHAPES"] = "Shapes";
|
|
1199
|
+
VizCategory["MISC"] = "misc";
|
|
1200
|
+
VizCategory["FLOW"] = "Flow";
|
|
1201
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
1202
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
1203
|
+
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
1180
1204
|
|
|
1181
1205
|
/***/ }),
|
|
1182
1206
|
|
|
1183
1207
|
/***/ 9:
|
|
1184
1208
|
/***/ (function(module, exports) {
|
|
1185
1209
|
|
|
1186
|
-
module.exports = require("@splunk/themes/
|
|
1210
|
+
module.exports = require("@splunk/themes/pick");
|
|
1187
1211
|
|
|
1188
1212
|
/***/ })
|
|
1189
1213
|
|