@splunk/visualizations 26.0.0 → 26.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/Area.config.js +102 -18
- package/Area.config.js.map +1 -1
- package/Area.js +618 -221
- package/Area.js.map +1 -1
- package/Bar.config.js +104 -20
- package/Bar.config.js.map +1 -1
- package/Bar.js +624 -219
- package/Bar.js.map +1 -1
- package/Bubble.config.js +94 -20
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +606 -211
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +65 -14
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +550 -183
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +103 -18
- package/Column.config.js.map +1 -1
- package/Column.js +637 -221
- package/Column.js.map +1 -1
- package/Ellipse.config.js +82 -17
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +425 -148
- package/Ellipse.js.map +1 -1
- package/Events.config.js +100 -18
- package/Events.config.js.map +1 -1
- package/Events.js +752 -293
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +96 -27
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +759 -374
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +62 -18
- package/Image.config.js.map +1 -1
- package/Image.js +419 -154
- package/Image.js.map +1 -1
- package/Line.config.js +106 -22
- package/Line.config.js.map +1 -1
- package/Line.js +631 -223
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +72 -22
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +632 -219
- package/LinkGraph.js.map +1 -1
- package/MIGRATION.md +1082 -0
- package/Map.config.js +241 -97
- package/Map.config.js.map +1 -1
- package/Map.js +1195 -595
- package/Map.js.map +1 -1
- package/Markdown.config.js +70 -20
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +460 -195
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +79 -21
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +802 -411
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +72 -18
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +853 -484
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +75 -22
- package/Pie.config.js.map +1 -1
- package/Pie.js +612 -212
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +81 -29
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +844 -379
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +85 -19
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +432 -152
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +84 -22
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +878 -342
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +96 -22
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +607 -212
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +94 -24
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +1182 -650
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +286 -225
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +92 -22
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +965 -506
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +99 -26
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1167 -616
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +126 -67
- package/SparkLine.js.map +1 -1
- package/Table.config.js +73 -20
- package/Table.config.js.map +1 -1
- package/Table.js +810 -322
- package/Table.js.map +1 -1
- package/common/Charting.js +107 -35
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +18 -7
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +76 -22
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +68 -58
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +43 -34
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +156 -65
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +33 -5
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +31 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +8 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +27 -14
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +44 -12
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +11 -1
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +173 -90
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +14 -2
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +49 -14
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +7 -2
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/hocUtils.js +3 -1
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/layoutUtils.js +1 -0
- package/common/utils/layoutUtils.js.map +1 -1
- package/common/utils/mapUtils.js +287 -127
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +241 -196
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +9 -0
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +61 -0
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -0
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +274 -95
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +16 -18
package/Bar.config.js
CHANGED
|
@@ -114,6 +114,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
114
114
|
});
|
|
115
115
|
exports.VizBehavior = void 0;
|
|
116
116
|
var VizBehavior;
|
|
117
|
+
|
|
117
118
|
(function (VizBehavior) {
|
|
118
119
|
/**
|
|
119
120
|
* Dynamic Options Behavior.
|
|
@@ -133,6 +134,7 @@ var VizBehavior;
|
|
|
133
134
|
* missing.
|
|
134
135
|
* @type {string}
|
|
135
136
|
*/
|
|
137
|
+
|
|
136
138
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
137
139
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
138
140
|
VizBehavior["TRELLIS"] = "trellis";
|
|
@@ -152,24 +154,33 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
152
154
|
|
|
153
155
|
|
|
154
156
|
var _toConsumableArray = __webpack_require__(1);
|
|
157
|
+
|
|
155
158
|
var _defineProperty = __webpack_require__(7);
|
|
159
|
+
|
|
156
160
|
var __rest = this && this.__rest || function (s, e) {
|
|
157
161
|
var t = {};
|
|
162
|
+
|
|
158
163
|
for (var p in s) {
|
|
159
164
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
160
165
|
}
|
|
166
|
+
|
|
161
167
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
162
168
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
163
169
|
}
|
|
164
170
|
return t;
|
|
165
171
|
};
|
|
172
|
+
|
|
166
173
|
Object.defineProperty(exports, "__esModule", {
|
|
167
174
|
value: true
|
|
168
175
|
});
|
|
169
176
|
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
177
|
+
|
|
170
178
|
var lodash_1 = __webpack_require__(6);
|
|
179
|
+
|
|
171
180
|
var schemaUtils_1 = __webpack_require__(3);
|
|
181
|
+
|
|
172
182
|
var VizBehavior_1 = __webpack_require__(2);
|
|
183
|
+
|
|
173
184
|
var dynamicOptionsDSLType = {
|
|
174
185
|
type: 'string',
|
|
175
186
|
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
@@ -179,20 +190,22 @@ var dynamicOptionsDSLType = {
|
|
|
179
190
|
* @param optionsSchema a visualization's options schema
|
|
180
191
|
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
181
192
|
*/
|
|
193
|
+
|
|
182
194
|
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
183
195
|
var enhancedOptionsSchema = {};
|
|
184
196
|
Object.keys(optionsSchema).forEach(function (key) {
|
|
185
197
|
var _a = optionsSchema[key],
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
198
|
+
title = _a.title,
|
|
199
|
+
description = _a.description,
|
|
200
|
+
readOnly = _a.readOnly,
|
|
201
|
+
writeOnly = _a.writeOnly,
|
|
202
|
+
examples = _a.examples,
|
|
203
|
+
defaultValue = _a.default,
|
|
204
|
+
type = _a.type,
|
|
205
|
+
properties = _a.properties,
|
|
206
|
+
patternProperties = _a.patternProperties,
|
|
207
|
+
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
208
|
+
|
|
196
209
|
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
197
210
|
title: title
|
|
198
211
|
}), description !== undefined && {
|
|
@@ -206,12 +219,14 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
|
206
219
|
}), defaultValue !== undefined && {
|
|
207
220
|
default: defaultValue
|
|
208
221
|
});
|
|
222
|
+
|
|
209
223
|
if (type === 'object') {
|
|
210
224
|
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
211
225
|
type: type
|
|
212
226
|
}), properties && {
|
|
213
227
|
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
214
228
|
});
|
|
229
|
+
|
|
215
230
|
if (patternProperties) {
|
|
216
231
|
var enhancedPatternProperties = {};
|
|
217
232
|
Object.keys(patternProperties).forEach(function (opt) {
|
|
@@ -229,6 +244,7 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
|
229
244
|
});
|
|
230
245
|
return enhancedOptionsSchema;
|
|
231
246
|
}
|
|
247
|
+
|
|
232
248
|
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
233
249
|
/**
|
|
234
250
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
@@ -237,11 +253,14 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
237
253
|
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
238
254
|
* and containing `open: false` for all editor panels in editorConfig
|
|
239
255
|
*/
|
|
256
|
+
|
|
240
257
|
function enhanceConfig(vizConfig) {
|
|
241
258
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
259
|
+
|
|
242
260
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
243
261
|
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
244
262
|
}
|
|
263
|
+
|
|
245
264
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
246
265
|
return Object.assign(Object.assign({}, config), {
|
|
247
266
|
open: config.open || false
|
|
@@ -249,6 +268,7 @@ function enhanceConfig(vizConfig) {
|
|
|
249
268
|
});
|
|
250
269
|
return enhancedConfig;
|
|
251
270
|
}
|
|
271
|
+
|
|
252
272
|
exports.enhanceConfig = enhanceConfig;
|
|
253
273
|
/**
|
|
254
274
|
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
@@ -256,6 +276,7 @@ exports.enhanceConfig = enhanceConfig;
|
|
|
256
276
|
* @param vizConfig a Visualization Config
|
|
257
277
|
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
258
278
|
*/
|
|
279
|
+
|
|
259
280
|
function uncollapseEditorConfig(vizConfig) {
|
|
260
281
|
var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
|
|
261
282
|
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
@@ -265,13 +286,16 @@ function uncollapseEditorConfig(vizConfig) {
|
|
|
265
286
|
});
|
|
266
287
|
return editorPanelUncollapsedConfig;
|
|
267
288
|
}
|
|
289
|
+
|
|
268
290
|
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
291
|
+
|
|
269
292
|
function isDynamicOption(option) {
|
|
270
293
|
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
271
294
|
}
|
|
272
|
-
|
|
273
|
-
// private helpers to improve readability of getInitialPreset
|
|
295
|
+
|
|
296
|
+
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
274
297
|
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
298
|
+
|
|
275
299
|
/**
|
|
276
300
|
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
277
301
|
* 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
|
|
@@ -280,6 +304,7 @@ exports.isDynamicOption = isDynamicOption;
|
|
|
280
304
|
*
|
|
281
305
|
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
282
306
|
*/
|
|
307
|
+
|
|
283
308
|
function hasCompatibleContexts(vizContext, presetContext) {
|
|
284
309
|
var presetContextKeys = Object.keys(presetContext);
|
|
285
310
|
return presetContextKeys.every(function (contextKey) {
|
|
@@ -289,6 +314,8 @@ function hasCompatibleContexts(vizContext, presetContext) {
|
|
|
289
314
|
/**
|
|
290
315
|
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
291
316
|
*/
|
|
317
|
+
|
|
318
|
+
|
|
292
319
|
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
293
320
|
var presetOptionKeys = Object.keys(presetOptions);
|
|
294
321
|
return presetOptionKeys.every(function (optionKey) {
|
|
@@ -303,18 +330,21 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
|
303
330
|
* @param {Object} vizOptions - the current vizOptions definition
|
|
304
331
|
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
305
332
|
*/
|
|
333
|
+
|
|
334
|
+
|
|
306
335
|
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
307
336
|
return presets.find(function (preset) {
|
|
308
337
|
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
309
338
|
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
310
339
|
var presetContextKeys = Object.keys(presetContext);
|
|
311
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
312
|
-
// all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
340
|
+
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
313
341
|
// if not, then the preset is invalid in config.ts
|
|
342
|
+
|
|
314
343
|
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
315
344
|
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
316
345
|
});
|
|
317
346
|
}
|
|
347
|
+
|
|
318
348
|
exports.getInitialPreset = getInitialPreset;
|
|
319
349
|
/**
|
|
320
350
|
* generates number precision values for a Select editor
|
|
@@ -322,6 +352,7 @@ exports.getInitialPreset = getInitialPreset;
|
|
|
322
352
|
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
323
353
|
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
324
354
|
*/
|
|
355
|
+
|
|
325
356
|
function generatePrecisionValues(numPrecisionValues) {
|
|
326
357
|
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
327
358
|
return {
|
|
@@ -330,6 +361,7 @@ function generatePrecisionValues(numPrecisionValues) {
|
|
|
330
361
|
};
|
|
331
362
|
});
|
|
332
363
|
}
|
|
364
|
+
|
|
333
365
|
exports.generatePrecisionValues = generatePrecisionValues;
|
|
334
366
|
/**
|
|
335
367
|
* insert layout in layout array, return a new layout array instead of updating the original
|
|
@@ -339,12 +371,15 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
339
371
|
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
340
372
|
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
341
373
|
*/
|
|
374
|
+
|
|
342
375
|
var insertLayout = function insertLayout(layout, index) {
|
|
343
376
|
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
344
377
|
layoutItems[_key - 2] = arguments[_key];
|
|
345
378
|
}
|
|
379
|
+
|
|
346
380
|
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
347
381
|
};
|
|
382
|
+
|
|
348
383
|
exports.insertLayout = insertLayout;
|
|
349
384
|
|
|
350
385
|
/***/ }),
|
|
@@ -372,6 +407,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
372
407
|
});
|
|
373
408
|
exports.VizCategory = void 0;
|
|
374
409
|
var VizCategory;
|
|
410
|
+
|
|
375
411
|
(function (VizCategory) {
|
|
376
412
|
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
377
413
|
VizCategory["TRENDS"] = "Trends";
|
|
@@ -421,11 +457,13 @@ module.exports = require("@splunk/visualization-icons");
|
|
|
421
457
|
Object.defineProperty(exports, "__esModule", {
|
|
422
458
|
value: true
|
|
423
459
|
});
|
|
460
|
+
|
|
424
461
|
var i18n_1 = __webpack_require__(0);
|
|
462
|
+
|
|
425
463
|
var background = function background(_ref) {
|
|
426
464
|
var label = _ref.label,
|
|
427
|
-
|
|
428
|
-
|
|
465
|
+
themes = _ref.themes,
|
|
466
|
+
labelPosition = _ref.labelPosition;
|
|
429
467
|
return [{
|
|
430
468
|
label: (0, i18n_1._)(label || 'Background'),
|
|
431
469
|
option: 'backgroundColor',
|
|
@@ -436,6 +474,7 @@ var background = function background(_ref) {
|
|
|
436
474
|
}
|
|
437
475
|
}];
|
|
438
476
|
};
|
|
477
|
+
|
|
439
478
|
exports.default = background;
|
|
440
479
|
|
|
441
480
|
/***/ }),
|
|
@@ -453,12 +492,16 @@ module.exports = require("@splunk/visualization-color-palettes");
|
|
|
453
492
|
|
|
454
493
|
|
|
455
494
|
var _toConsumableArray = __webpack_require__(1);
|
|
495
|
+
|
|
456
496
|
Object.defineProperty(exports, "__esModule", {
|
|
457
497
|
value: true
|
|
458
498
|
});
|
|
459
499
|
exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
|
|
500
|
+
|
|
460
501
|
var i18n_1 = __webpack_require__(0);
|
|
502
|
+
|
|
461
503
|
var configUtils_1 = __webpack_require__(4);
|
|
504
|
+
|
|
462
505
|
var AxesChartDataConfig = {
|
|
463
506
|
label: (0, i18n_1._)('Data configurations'),
|
|
464
507
|
layout: [[{
|
|
@@ -591,10 +634,15 @@ exports.default = AxesChartDataConfig;
|
|
|
591
634
|
Object.defineProperty(exports, "__esModule", {
|
|
592
635
|
value: true
|
|
593
636
|
});
|
|
637
|
+
|
|
594
638
|
var i18n_1 = __webpack_require__(0);
|
|
639
|
+
|
|
595
640
|
var pick_1 = __webpack_require__(9);
|
|
641
|
+
|
|
596
642
|
var variables_1 = __webpack_require__(10);
|
|
643
|
+
|
|
597
644
|
var BackgroundColor_1 = __webpack_require__(13);
|
|
645
|
+
|
|
598
646
|
var themes = {
|
|
599
647
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
600
648
|
return (0, pick_1.default)({
|
|
@@ -632,7 +680,9 @@ exports.default = AxesChartColorAndStyle;
|
|
|
632
680
|
Object.defineProperty(exports, "__esModule", {
|
|
633
681
|
value: true
|
|
634
682
|
});
|
|
683
|
+
|
|
635
684
|
var i18n_1 = __webpack_require__(0);
|
|
685
|
+
|
|
636
686
|
var AxesChartLegend = {
|
|
637
687
|
label: (0, i18n_1._)('Legend'),
|
|
638
688
|
layout: [[{
|
|
@@ -692,12 +742,16 @@ exports.default = AxesChartLegend;
|
|
|
692
742
|
|
|
693
743
|
|
|
694
744
|
var _toConsumableArray = __webpack_require__(1);
|
|
745
|
+
|
|
695
746
|
Object.defineProperty(exports, "__esModule", {
|
|
696
747
|
value: true
|
|
697
748
|
});
|
|
698
749
|
exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
|
|
750
|
+
|
|
699
751
|
var i18n_1 = __webpack_require__(0);
|
|
752
|
+
|
|
700
753
|
var configUtils_1 = __webpack_require__(4);
|
|
754
|
+
|
|
701
755
|
exports.AxesChartXGridAndLabelsCommon = {
|
|
702
756
|
label: (0, i18n_1._)('X-axis grid and labels'),
|
|
703
757
|
layout: [[{
|
|
@@ -886,8 +940,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
886
940
|
label: (0, i18n_1._)('Axis line visibility'),
|
|
887
941
|
option: 'xAxisLineVisibility',
|
|
888
942
|
editor: 'editor.checkbox'
|
|
889
|
-
}],
|
|
890
|
-
// this option is disabled for bubble and scatter
|
|
943
|
+
}], // this option is disabled for bubble and scatter
|
|
891
944
|
// [
|
|
892
945
|
// {
|
|
893
946
|
// label: _('Major gridlines'),
|
|
@@ -979,7 +1032,9 @@ exports.default = AxesChartXGridAndLabels;
|
|
|
979
1032
|
Object.defineProperty(exports, "__esModule", {
|
|
980
1033
|
value: true
|
|
981
1034
|
});
|
|
1035
|
+
|
|
982
1036
|
var i18n_1 = __webpack_require__(0);
|
|
1037
|
+
|
|
983
1038
|
var AxesChartYGridAndLabels = {
|
|
984
1039
|
label: (0, i18n_1._)('Y-axis grid and labels'),
|
|
985
1040
|
layout: [[{
|
|
@@ -1139,13 +1194,18 @@ exports.default = AxesChartYGridAndLabels;
|
|
|
1139
1194
|
|
|
1140
1195
|
|
|
1141
1196
|
var _toConsumableArray = __webpack_require__(1);
|
|
1197
|
+
|
|
1142
1198
|
Object.defineProperty(exports, "__esModule", {
|
|
1143
1199
|
value: true
|
|
1144
1200
|
});
|
|
1145
1201
|
exports.AxesChartDataDisplayColumn = exports.AxesChartDataDisplayBar = exports.AxesChartDataDisplayLine = void 0;
|
|
1202
|
+
|
|
1146
1203
|
var i18n_1 = __webpack_require__(0);
|
|
1204
|
+
|
|
1147
1205
|
var lodash_1 = __webpack_require__(6);
|
|
1206
|
+
|
|
1148
1207
|
var configUtils_1 = __webpack_require__(4);
|
|
1208
|
+
|
|
1149
1209
|
exports.AxesChartDataDisplayLine = {
|
|
1150
1210
|
label: (0, i18n_1._)('Data display'),
|
|
1151
1211
|
layout: [[{
|
|
@@ -1274,7 +1334,9 @@ exports.default = AxesChartDataDisplay;
|
|
|
1274
1334
|
Object.defineProperty(exports, "__esModule", {
|
|
1275
1335
|
value: true
|
|
1276
1336
|
});
|
|
1337
|
+
|
|
1277
1338
|
var i18n_1 = __webpack_require__(0);
|
|
1339
|
+
|
|
1278
1340
|
var axesChartY2GridAndLabels = {
|
|
1279
1341
|
label: (0, i18n_1._)('Y2-axis grid and labels'),
|
|
1280
1342
|
layout: [[{
|
|
@@ -1462,34 +1524,53 @@ exports.default = axesChartY2GridAndLabels;
|
|
|
1462
1524
|
|
|
1463
1525
|
|
|
1464
1526
|
var _toConsumableArray = __webpack_require__(1);
|
|
1527
|
+
|
|
1465
1528
|
Object.defineProperty(exports, "__esModule", {
|
|
1466
1529
|
value: true
|
|
1467
1530
|
});
|
|
1531
|
+
|
|
1468
1532
|
var visualization_icons_1 = __webpack_require__(12);
|
|
1533
|
+
|
|
1469
1534
|
var placeholders_1 = __webpack_require__(11);
|
|
1535
|
+
|
|
1470
1536
|
var schemaUtils_1 = __webpack_require__(3);
|
|
1537
|
+
|
|
1471
1538
|
var visualization_color_palettes_1 = __webpack_require__(14);
|
|
1539
|
+
|
|
1472
1540
|
var i18n_1 = __webpack_require__(0);
|
|
1541
|
+
|
|
1473
1542
|
var pick_1 = __webpack_require__(9);
|
|
1543
|
+
|
|
1474
1544
|
var variables_1 = __webpack_require__(10);
|
|
1545
|
+
|
|
1475
1546
|
var lodash_1 = __webpack_require__(6);
|
|
1547
|
+
|
|
1476
1548
|
var AxesChartDataConfig_1 = __webpack_require__(16);
|
|
1549
|
+
|
|
1477
1550
|
var AxesChartDataDisplay_1 = __webpack_require__(23);
|
|
1551
|
+
|
|
1478
1552
|
var AxesChartXGridAndLabels_1 = __webpack_require__(19);
|
|
1553
|
+
|
|
1479
1554
|
var AxesChartColorAndStyle_1 = __webpack_require__(17);
|
|
1555
|
+
|
|
1480
1556
|
var AxesChartLegend_1 = __webpack_require__(18);
|
|
1557
|
+
|
|
1481
1558
|
var AxesChartYGridAndLabels_1 = __webpack_require__(20);
|
|
1559
|
+
|
|
1482
1560
|
var AxesChartY2GridAndLabels_1 = __webpack_require__(24);
|
|
1561
|
+
|
|
1483
1562
|
var VizBehavior_1 = __webpack_require__(2);
|
|
1563
|
+
|
|
1484
1564
|
var VizCategory_1 = __webpack_require__(8);
|
|
1565
|
+
|
|
1485
1566
|
var configUtils_1 = __webpack_require__(4);
|
|
1567
|
+
|
|
1486
1568
|
var dataContract = {
|
|
1487
1569
|
requiredDataSources: [{
|
|
1488
1570
|
name: 'primary',
|
|
1489
1571
|
description: 'DataSource that powers the visualization'
|
|
1490
1572
|
}],
|
|
1491
|
-
optionalDataSources: [
|
|
1492
|
-
// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
|
|
1573
|
+
optionalDataSources: [// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
|
|
1493
1574
|
// {
|
|
1494
1575
|
// name: 'annotation',
|
|
1495
1576
|
// description: 'DataSource that populates event annotations',
|
|
@@ -1989,16 +2070,19 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
1989
2070
|
/**
|
|
1990
2071
|
* visualization configuration
|
|
1991
2072
|
*/
|
|
2073
|
+
|
|
1992
2074
|
var config = {
|
|
1993
2075
|
/**
|
|
1994
2076
|
* unique viz key
|
|
1995
2077
|
*/
|
|
1996
2078
|
key: 'splunk.bar',
|
|
2079
|
+
|
|
1997
2080
|
/**
|
|
1998
2081
|
* viz name
|
|
1999
2082
|
*/
|
|
2000
2083
|
name: (0, i18n_1._)('Bar'),
|
|
2001
2084
|
category: VizCategory_1.VizCategory.COMPARISONS,
|
|
2085
|
+
|
|
2002
2086
|
/**
|
|
2003
2087
|
* viz icon
|
|
2004
2088
|
*/
|