@splunk/visualizations 25.13.1 → 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 +318 -234
- package/Area.config.js.map +1 -1
- package/Area.js +1131 -766
- package/Area.js.map +1 -1
- package/Bar.config.js +317 -233
- package/Bar.config.js.map +1 -1
- package/Bar.js +1007 -594
- package/Bar.js.map +1 -1
- package/Bubble.config.js +234 -160
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +912 -509
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +80 -29
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +691 -319
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +308 -223
- package/Column.config.js.map +1 -1
- package/Column.js +1011 -587
- package/Column.js.map +1 -1
- package/Ellipse.config.js +127 -62
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +576 -286
- package/Ellipse.js.map +1 -1
- package/Events.config.js +111 -29
- package/Events.config.js.map +1 -1
- package/Events.js +998 -527
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +142 -73
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +962 -572
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +70 -26
- package/Image.config.js.map +1 -1
- package/Image.js +524 -253
- package/Image.js.map +1 -1
- package/Line.config.js +326 -242
- package/Line.config.js.map +1 -1
- package/Line.js +1022 -606
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +99 -49
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +1184 -762
- package/LinkGraph.js.map +1 -1
- package/MIGRATION.md +1082 -0
- package/Map.config.js +311 -167
- package/Map.config.js.map +1 -1
- package/Map.js +1479 -873
- package/Map.js.map +1 -1
- package/Markdown.config.js +93 -43
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +603 -332
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +163 -105
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1025 -628
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +95 -41
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +993 -622
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +99 -46
- package/Pie.config.js.map +1 -1
- package/Pie.js +847 -442
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +114 -62
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +1097 -633
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +131 -65
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +580 -288
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +103 -41
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +1128 -586
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +231 -157
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +904 -504
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +212 -142
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +1506 -956
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +294 -233
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +208 -138
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +1375 -914
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +252 -137
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +2194 -1069
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +172 -83
- package/SparkLine.js.map +1 -1
- package/Table.config.js +123 -70
- package/Table.config.js.map +1 -1
- package/Table.js +1094 -590
- package/Table.js.map +1 -1
- package/common/Charting.js +147 -75
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +18 -7
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +91 -36
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +70 -60
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +45 -36
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +177 -86
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +65 -32
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +34 -7
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +10 -4
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +41 -28
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +56 -24
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +15 -5
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +238 -155
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +34 -16
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +59 -23
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +9 -4
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/hocUtils.js +5 -3
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/layoutUtils.js +3 -2
- package/common/utils/layoutUtils.js.map +1 -1
- package/common/utils/mapUtils.js +370 -206
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +243 -198
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +36 -9
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +87 -26
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +4 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +375 -193
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +25 -27
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
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
309
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
337
|
+
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
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,14 +352,16 @@ 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
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
357
|
+
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
327
358
|
return {
|
|
328
359
|
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
329
360
|
value: i
|
|
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,13 +457,15 @@ 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
|
-
label: i18n_1._(label || 'Background'),
|
|
468
|
+
label: (0, i18n_1._)(label || 'Background'),
|
|
431
469
|
option: 'backgroundColor',
|
|
432
470
|
editor: 'editor.color',
|
|
433
471
|
editorProps: {
|
|
@@ -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,16 +492,20 @@ 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
|
-
label: i18n_1._('Data configurations'),
|
|
506
|
+
label: (0, i18n_1._)('Data configurations'),
|
|
464
507
|
layout: [[{
|
|
465
|
-
label: i18n_1._('X'),
|
|
508
|
+
label: (0, i18n_1._)('X'),
|
|
466
509
|
option: 'x',
|
|
467
510
|
editor: 'editor.columnSelector',
|
|
468
511
|
editorProps: {
|
|
@@ -471,7 +514,7 @@ var AxesChartDataConfig = {
|
|
|
471
514
|
expectedDataPrimitive: ['series']
|
|
472
515
|
}
|
|
473
516
|
}], [{
|
|
474
|
-
label: i18n_1._('Y'),
|
|
517
|
+
label: (0, i18n_1._)('Y'),
|
|
475
518
|
option: 'y',
|
|
476
519
|
editor: 'editor.columnMultiSelector',
|
|
477
520
|
editorProps: {
|
|
@@ -481,7 +524,7 @@ var AxesChartDataConfig = {
|
|
|
481
524
|
expectedDataPrimitive: ['series', 'frame']
|
|
482
525
|
}
|
|
483
526
|
}], [{
|
|
484
|
-
label: i18n_1._('Result limit'),
|
|
527
|
+
label: (0, i18n_1._)('Result limit'),
|
|
485
528
|
option: 'resultLimit',
|
|
486
529
|
editor: 'editor.number',
|
|
487
530
|
editorProps: {
|
|
@@ -492,8 +535,8 @@ var AxesChartDataConfig = {
|
|
|
492
535
|
exports.AxesChartDataConfigBar = {
|
|
493
536
|
label: AxesChartDataConfig.label,
|
|
494
537
|
// insert Y2 after Y
|
|
495
|
-
layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
|
|
496
|
-
label: i18n_1._('Y2'),
|
|
538
|
+
layout: (0, configUtils_1.insertLayout)(AxesChartDataConfig.layout, 2, [{
|
|
539
|
+
label: (0, i18n_1._)('Y2'),
|
|
497
540
|
option: 'y2',
|
|
498
541
|
editor: 'editor.columnMultiSelector',
|
|
499
542
|
editorProps: {
|
|
@@ -507,7 +550,7 @@ exports.AxesChartDataConfigBar = {
|
|
|
507
550
|
exports.AxesChartDataConfigScatter = {
|
|
508
551
|
label: AxesChartDataConfig.label,
|
|
509
552
|
layout: [[{
|
|
510
|
-
label: i18n_1._('X'),
|
|
553
|
+
label: (0, i18n_1._)('X'),
|
|
511
554
|
option: 'x',
|
|
512
555
|
editor: 'editor.columnSelector',
|
|
513
556
|
editorProps: {
|
|
@@ -516,7 +559,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
516
559
|
expectedDataPrimitive: ['series']
|
|
517
560
|
}
|
|
518
561
|
}], [{
|
|
519
|
-
label: i18n_1._('Y'),
|
|
562
|
+
label: (0, i18n_1._)('Y'),
|
|
520
563
|
option: 'y',
|
|
521
564
|
editor: 'editor.columnSelector',
|
|
522
565
|
editorProps: {
|
|
@@ -526,7 +569,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
526
569
|
expectedDataPrimitive: ['series']
|
|
527
570
|
}
|
|
528
571
|
}], [{
|
|
529
|
-
label: i18n_1._('Category'),
|
|
572
|
+
label: (0, i18n_1._)('Category'),
|
|
530
573
|
option: 'category',
|
|
531
574
|
editor: 'editor.columnSelector',
|
|
532
575
|
editorProps: {
|
|
@@ -535,7 +578,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
535
578
|
expectedDataPrimitive: ['series']
|
|
536
579
|
}
|
|
537
580
|
}], [{
|
|
538
|
-
label: i18n_1._('Result limit'),
|
|
581
|
+
label: (0, i18n_1._)('Result limit'),
|
|
539
582
|
option: 'resultLimit',
|
|
540
583
|
editor: 'editor.number',
|
|
541
584
|
editorProps: {
|
|
@@ -546,8 +589,8 @@ exports.AxesChartDataConfigScatter = {
|
|
|
546
589
|
exports.AxesChartDataConfigBubble = {
|
|
547
590
|
label: exports.AxesChartDataConfigScatter.label,
|
|
548
591
|
// layout: insert Size after Category
|
|
549
|
-
layout: configUtils_1.insertLayout(exports.AxesChartDataConfigScatter.layout, 3, [{
|
|
550
|
-
label: i18n_1._('Size'),
|
|
592
|
+
layout: (0, configUtils_1.insertLayout)(exports.AxesChartDataConfigScatter.layout, 3, [{
|
|
593
|
+
label: (0, i18n_1._)('Size'),
|
|
551
594
|
option: 'size',
|
|
552
595
|
editor: 'editor.columnSelector',
|
|
553
596
|
editorProps: {
|
|
@@ -560,7 +603,7 @@ exports.AxesChartDataConfigBubble = {
|
|
|
560
603
|
exports.AxesChartDataConfigAreaColumnLine = {
|
|
561
604
|
label: exports.AxesChartDataConfigBar.label,
|
|
562
605
|
layout: [].concat(_toConsumableArray(exports.AxesChartDataConfigBar.layout), [[{
|
|
563
|
-
label: i18n_1._('Annotation x'),
|
|
606
|
+
label: (0, i18n_1._)('Annotation x'),
|
|
564
607
|
option: 'annotationX',
|
|
565
608
|
editor: 'editor.columnSelector',
|
|
566
609
|
editorProps: {
|
|
@@ -569,7 +612,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
|
|
|
569
612
|
expectedDataPrimitive: ['series']
|
|
570
613
|
}
|
|
571
614
|
}], [{
|
|
572
|
-
label: i18n_1._('Annotation labels'),
|
|
615
|
+
label: (0, i18n_1._)('Annotation labels'),
|
|
573
616
|
option: 'annotationLabel',
|
|
574
617
|
editor: 'editor.columnSelector',
|
|
575
618
|
editorProps: {
|
|
@@ -591,13 +634,18 @@ 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
|
-
return pick_1.default({
|
|
648
|
+
return (0, pick_1.default)({
|
|
601
649
|
enterprise: {
|
|
602
650
|
dark: variables_1.default.black(props),
|
|
603
651
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -607,15 +655,15 @@ var themes = {
|
|
|
607
655
|
}
|
|
608
656
|
};
|
|
609
657
|
var AxesChartColorAndStyle = {
|
|
610
|
-
label: i18n_1._('Color and style'),
|
|
611
|
-
layout: [BackgroundColor_1.default({
|
|
658
|
+
label: (0, i18n_1._)('Color and style'),
|
|
659
|
+
layout: [(0, BackgroundColor_1.default)({
|
|
612
660
|
themes: themes
|
|
613
661
|
}), [{
|
|
614
|
-
label: i18n_1._('Series colors'),
|
|
662
|
+
label: (0, i18n_1._)('Series colors'),
|
|
615
663
|
option: 'seriesColors',
|
|
616
664
|
editor: 'editor.seriesColors'
|
|
617
665
|
}], [{
|
|
618
|
-
label: i18n_1._('Series colors by field name'),
|
|
666
|
+
label: (0, i18n_1._)('Series colors by field name'),
|
|
619
667
|
option: 'seriesColorsByField',
|
|
620
668
|
editor: 'editor.seriesColorsByField'
|
|
621
669
|
}]]
|
|
@@ -632,47 +680,49 @@ 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
|
-
label: i18n_1._('Legend'),
|
|
687
|
+
label: (0, i18n_1._)('Legend'),
|
|
638
688
|
layout: [[{
|
|
639
|
-
label: i18n_1._('Legend display'),
|
|
689
|
+
label: (0, i18n_1._)('Legend display'),
|
|
640
690
|
option: 'legendDisplay',
|
|
641
691
|
editor: 'editor.select',
|
|
642
692
|
editorProps: {
|
|
643
693
|
values: [{
|
|
644
|
-
label: i18n_1._('Right'),
|
|
694
|
+
label: (0, i18n_1._)('Right'),
|
|
645
695
|
value: 'right'
|
|
646
696
|
}, {
|
|
647
|
-
label: i18n_1._('Left'),
|
|
697
|
+
label: (0, i18n_1._)('Left'),
|
|
648
698
|
value: 'left'
|
|
649
699
|
}, {
|
|
650
|
-
label: i18n_1._('Top'),
|
|
700
|
+
label: (0, i18n_1._)('Top'),
|
|
651
701
|
value: 'top'
|
|
652
702
|
}, {
|
|
653
|
-
label: i18n_1._('Bottom'),
|
|
703
|
+
label: (0, i18n_1._)('Bottom'),
|
|
654
704
|
value: 'bottom'
|
|
655
705
|
}, {
|
|
656
|
-
label: i18n_1._('Off'),
|
|
706
|
+
label: (0, i18n_1._)('Off'),
|
|
657
707
|
value: 'off'
|
|
658
708
|
}]
|
|
659
709
|
}
|
|
660
710
|
}], [{
|
|
661
|
-
label: i18n_1._('Legend truncation'),
|
|
711
|
+
label: (0, i18n_1._)('Legend truncation'),
|
|
662
712
|
option: 'legendTruncation',
|
|
663
713
|
editor: 'editor.radioBar',
|
|
664
714
|
editorProps: {
|
|
665
715
|
values: [{
|
|
666
|
-
label: i18n_1._('A...'),
|
|
716
|
+
label: (0, i18n_1._)('A...'),
|
|
667
717
|
value: 'ellipsisEnd'
|
|
668
718
|
}, {
|
|
669
|
-
label: i18n_1._('A...Z'),
|
|
719
|
+
label: (0, i18n_1._)('A...Z'),
|
|
670
720
|
value: 'ellipsisMiddle'
|
|
671
721
|
}, {
|
|
672
|
-
label: i18n_1._('...Z'),
|
|
722
|
+
label: (0, i18n_1._)('...Z'),
|
|
673
723
|
value: 'ellipsisStart'
|
|
674
724
|
}, {
|
|
675
|
-
label: i18n_1._('Off'),
|
|
725
|
+
label: (0, i18n_1._)('Off'),
|
|
676
726
|
value: 'ellipsisOff'
|
|
677
727
|
}]
|
|
678
728
|
},
|
|
@@ -692,20 +742,24 @@ 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
|
-
label: i18n_1._('X-axis grid and labels'),
|
|
756
|
+
label: (0, i18n_1._)('X-axis grid and labels'),
|
|
703
757
|
layout: [[{
|
|
704
|
-
label: i18n_1._('Axis title'),
|
|
758
|
+
label: (0, i18n_1._)('Axis title'),
|
|
705
759
|
option: 'xAxisTitleVisibility',
|
|
706
760
|
editor: 'editor.toggle'
|
|
707
761
|
}], [{
|
|
708
|
-
label: i18n_1._('Axis title text'),
|
|
762
|
+
label: (0, i18n_1._)('Axis title text'),
|
|
709
763
|
option: 'xAxisTitleText',
|
|
710
764
|
editor: 'editor.text',
|
|
711
765
|
showEditor: function showEditor(_ref) {
|
|
@@ -713,18 +767,18 @@ exports.AxesChartXGridAndLabelsCommon = {
|
|
|
713
767
|
return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
|
|
714
768
|
}
|
|
715
769
|
}], [{
|
|
716
|
-
label: i18n_1._('Label visibility'),
|
|
770
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
717
771
|
option: 'xAxisLabelVisibility',
|
|
718
772
|
editor: 'editor.radioBar',
|
|
719
773
|
editorProps: {
|
|
720
774
|
values: [{
|
|
721
|
-
label: i18n_1._('Auto'),
|
|
775
|
+
label: (0, i18n_1._)('Auto'),
|
|
722
776
|
value: 'auto'
|
|
723
777
|
}, {
|
|
724
|
-
label: i18n_1._('Show'),
|
|
778
|
+
label: (0, i18n_1._)('Show'),
|
|
725
779
|
value: 'show'
|
|
726
780
|
}, {
|
|
727
|
-
label: i18n_1._('Hide'),
|
|
781
|
+
label: (0, i18n_1._)('Hide'),
|
|
728
782
|
value: 'hide'
|
|
729
783
|
}]
|
|
730
784
|
}
|
|
@@ -733,24 +787,24 @@ exports.AxesChartXGridAndLabelsCommon = {
|
|
|
733
787
|
var AxesChartXGridAndLabels = {
|
|
734
788
|
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
735
789
|
layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
736
|
-
label: i18n_1._('Label rotation'),
|
|
790
|
+
label: (0, i18n_1._)('Label rotation'),
|
|
737
791
|
option: 'xAxisLabelRotation',
|
|
738
792
|
editor: 'editor.select',
|
|
739
793
|
editorProps: {
|
|
740
794
|
values: [{
|
|
741
|
-
label: i18n_1._('-90'),
|
|
795
|
+
label: (0, i18n_1._)('-90'),
|
|
742
796
|
value: -90
|
|
743
797
|
}, {
|
|
744
|
-
label: i18n_1._('-45'),
|
|
798
|
+
label: (0, i18n_1._)('-45'),
|
|
745
799
|
value: -45
|
|
746
800
|
}, {
|
|
747
|
-
label: i18n_1._('0'),
|
|
801
|
+
label: (0, i18n_1._)('0'),
|
|
748
802
|
value: 0
|
|
749
803
|
}, {
|
|
750
|
-
label: i18n_1._('45'),
|
|
804
|
+
label: (0, i18n_1._)('45'),
|
|
751
805
|
value: 45
|
|
752
806
|
}, {
|
|
753
|
-
label: i18n_1._('90'),
|
|
807
|
+
label: (0, i18n_1._)('90'),
|
|
754
808
|
value: 90
|
|
755
809
|
}]
|
|
756
810
|
},
|
|
@@ -759,7 +813,7 @@ var AxesChartXGridAndLabels = {
|
|
|
759
813
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
760
814
|
}
|
|
761
815
|
}], [{
|
|
762
|
-
label: i18n_1._('Number of time label parts'),
|
|
816
|
+
label: (0, i18n_1._)('Number of time label parts'),
|
|
763
817
|
option: 'xAxisMaxLabelParts',
|
|
764
818
|
editor: 'editor.number',
|
|
765
819
|
editorProps: {
|
|
@@ -771,31 +825,31 @@ var AxesChartXGridAndLabels = {
|
|
|
771
825
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
772
826
|
}
|
|
773
827
|
}], [{
|
|
774
|
-
label: i18n_1._('Axis line visibility'),
|
|
828
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
775
829
|
option: 'xAxisLineVisibility',
|
|
776
830
|
editor: 'editor.checkbox'
|
|
777
831
|
}], [{
|
|
778
|
-
label: i18n_1._('Major gridlines'),
|
|
832
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
779
833
|
option: 'showXMajorGridLines',
|
|
780
834
|
editor: 'editor.checkbox'
|
|
781
835
|
}], [{
|
|
782
|
-
label: i18n_1._('Major tick visibility'),
|
|
836
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
783
837
|
option: 'xAxisMajorTickVisibility',
|
|
784
838
|
editor: 'editor.radioBar',
|
|
785
839
|
editorProps: {
|
|
786
840
|
values: [{
|
|
787
|
-
label: i18n_1._('Auto'),
|
|
841
|
+
label: (0, i18n_1._)('Auto'),
|
|
788
842
|
value: 'auto'
|
|
789
843
|
}, {
|
|
790
|
-
label: i18n_1._('Show'),
|
|
844
|
+
label: (0, i18n_1._)('Show'),
|
|
791
845
|
value: 'show'
|
|
792
846
|
}, {
|
|
793
|
-
label: i18n_1._('Hide'),
|
|
847
|
+
label: (0, i18n_1._)('Hide'),
|
|
794
848
|
value: 'hide'
|
|
795
849
|
}]
|
|
796
850
|
}
|
|
797
851
|
}], [{
|
|
798
|
-
label: i18n_1._('Major tick size (px)'),
|
|
852
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
799
853
|
option: 'xAxisMajorTickSize',
|
|
800
854
|
editor: 'editor.slider',
|
|
801
855
|
editorProps: {
|
|
@@ -811,38 +865,38 @@ var AxesChartXGridAndLabels = {
|
|
|
811
865
|
};
|
|
812
866
|
exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
813
867
|
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
814
|
-
layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
|
|
815
|
-
label: i18n_1._('Axis scale'),
|
|
868
|
+
layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
|
|
869
|
+
label: (0, i18n_1._)('Axis scale'),
|
|
816
870
|
option: 'xAxisScale',
|
|
817
871
|
editor: 'editor.radioBar',
|
|
818
872
|
editorProps: {
|
|
819
873
|
values: [{
|
|
820
|
-
label: i18n_1._('Linear'),
|
|
874
|
+
label: (0, i18n_1._)('Linear'),
|
|
821
875
|
value: 'linear'
|
|
822
876
|
}, {
|
|
823
|
-
label: i18n_1._('Log'),
|
|
877
|
+
label: (0, i18n_1._)('Log'),
|
|
824
878
|
value: 'log'
|
|
825
879
|
}]
|
|
826
880
|
}
|
|
827
881
|
}])), [[{
|
|
828
|
-
label: i18n_1._('Label rotation'),
|
|
882
|
+
label: (0, i18n_1._)('Label rotation'),
|
|
829
883
|
option: 'xAxisLabelRotation',
|
|
830
884
|
editor: 'editor.select',
|
|
831
885
|
editorProps: {
|
|
832
886
|
values: [{
|
|
833
|
-
label: i18n_1._('-90'),
|
|
887
|
+
label: (0, i18n_1._)('-90'),
|
|
834
888
|
value: -90
|
|
835
889
|
}, {
|
|
836
|
-
label: i18n_1._('-45'),
|
|
890
|
+
label: (0, i18n_1._)('-45'),
|
|
837
891
|
value: -45
|
|
838
892
|
}, {
|
|
839
|
-
label: i18n_1._('0'),
|
|
893
|
+
label: (0, i18n_1._)('0'),
|
|
840
894
|
value: 0
|
|
841
895
|
}, {
|
|
842
|
-
label: i18n_1._('45'),
|
|
896
|
+
label: (0, i18n_1._)('45'),
|
|
843
897
|
value: 45
|
|
844
898
|
}, {
|
|
845
|
-
label: i18n_1._('90'),
|
|
899
|
+
label: (0, i18n_1._)('90'),
|
|
846
900
|
value: 90
|
|
847
901
|
}]
|
|
848
902
|
},
|
|
@@ -851,7 +905,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
851
905
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
852
906
|
}
|
|
853
907
|
}], [{
|
|
854
|
-
label: i18n_1._('Round axis labels'),
|
|
908
|
+
label: (0, i18n_1._)('Round axis labels'),
|
|
855
909
|
option: 'showRoundedXAxisLabels',
|
|
856
910
|
editor: 'editor.checkbox',
|
|
857
911
|
showEditor: function showEditor(_ref6) {
|
|
@@ -859,7 +913,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
859
913
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
860
914
|
}
|
|
861
915
|
}], [{
|
|
862
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
916
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
863
917
|
option: 'xAxisAbbreviation',
|
|
864
918
|
editor: 'editor.checkbox',
|
|
865
919
|
showEditor: function showEditor(_ref7) {
|
|
@@ -867,27 +921,26 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
867
921
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
868
922
|
}
|
|
869
923
|
}], [{
|
|
870
|
-
label: i18n_1._('Include zero'),
|
|
924
|
+
label: (0, i18n_1._)('Include zero'),
|
|
871
925
|
option: 'showXAxisWithZero',
|
|
872
926
|
editor: 'editor.checkbox'
|
|
873
927
|
}], [{
|
|
874
|
-
label: i18n_1._('Extend to whole grid'),
|
|
928
|
+
label: (0, i18n_1._)('Extend to whole grid'),
|
|
875
929
|
option: 'showXAxisExtendedRange',
|
|
876
930
|
editor: 'editor.checkbox'
|
|
877
931
|
}], [{
|
|
878
|
-
label: i18n_1._('Minimum axis value'),
|
|
932
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
879
933
|
option: 'xAxisMin',
|
|
880
934
|
editor: 'editor.number'
|
|
881
935
|
}, {
|
|
882
|
-
label: i18n_1._('Maximum axis value'),
|
|
936
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
883
937
|
option: 'xAxisMax',
|
|
884
938
|
editor: 'editor.number'
|
|
885
939
|
}], [{
|
|
886
|
-
label: i18n_1._('Axis line visibility'),
|
|
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'),
|
|
@@ -896,23 +949,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
896
949
|
// },
|
|
897
950
|
// ],
|
|
898
951
|
[{
|
|
899
|
-
label: i18n_1._('Major tick visibility'),
|
|
952
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
900
953
|
option: 'xAxisMajorTickVisibility',
|
|
901
954
|
editor: 'editor.radioBar',
|
|
902
955
|
editorProps: {
|
|
903
956
|
values: [{
|
|
904
|
-
label: i18n_1._('Auto'),
|
|
957
|
+
label: (0, i18n_1._)('Auto'),
|
|
905
958
|
value: 'auto'
|
|
906
959
|
}, {
|
|
907
|
-
label: i18n_1._('Show'),
|
|
960
|
+
label: (0, i18n_1._)('Show'),
|
|
908
961
|
value: 'show'
|
|
909
962
|
}, {
|
|
910
|
-
label: i18n_1._('Hide'),
|
|
963
|
+
label: (0, i18n_1._)('Hide'),
|
|
911
964
|
value: 'hide'
|
|
912
965
|
}]
|
|
913
966
|
}
|
|
914
967
|
}], [{
|
|
915
|
-
label: i18n_1._('Major tick size (px)'),
|
|
968
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
916
969
|
option: 'xAxisMajorTickSize',
|
|
917
970
|
editor: 'editor.slider',
|
|
918
971
|
editorProps: {
|
|
@@ -925,7 +978,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
925
978
|
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
926
979
|
}
|
|
927
980
|
}], [{
|
|
928
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
981
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
929
982
|
option: 'xAxisMajorTickInterval',
|
|
930
983
|
editor: 'editor.number',
|
|
931
984
|
showEditor: function showEditor(_ref9) {
|
|
@@ -933,27 +986,27 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
933
986
|
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
934
987
|
}
|
|
935
988
|
}], [{
|
|
936
|
-
label: i18n_1._('Minor gridlines'),
|
|
989
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
937
990
|
option: 'showXMinorGridLines',
|
|
938
991
|
editor: 'editor.checkbox'
|
|
939
992
|
}], [{
|
|
940
|
-
label: i18n_1._('Minor tick visibility'),
|
|
993
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
941
994
|
option: 'xAxisMinorTickVisibility',
|
|
942
995
|
editor: 'editor.radioBar',
|
|
943
996
|
editorProps: {
|
|
944
997
|
values: [{
|
|
945
|
-
label: i18n_1._('Auto'),
|
|
998
|
+
label: (0, i18n_1._)('Auto'),
|
|
946
999
|
value: 'auto'
|
|
947
1000
|
}, {
|
|
948
|
-
label: i18n_1._('Show'),
|
|
1001
|
+
label: (0, i18n_1._)('Show'),
|
|
949
1002
|
value: 'show'
|
|
950
1003
|
}, {
|
|
951
|
-
label: i18n_1._('Hide'),
|
|
1004
|
+
label: (0, i18n_1._)('Hide'),
|
|
952
1005
|
value: 'hide'
|
|
953
1006
|
}]
|
|
954
1007
|
}
|
|
955
1008
|
}], [{
|
|
956
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
1009
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
957
1010
|
option: 'xAxisMinorTickSize',
|
|
958
1011
|
editor: 'editor.slider',
|
|
959
1012
|
editorProps: {
|
|
@@ -979,15 +1032,17 @@ 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
|
-
label: i18n_1._('Y-axis grid and labels'),
|
|
1039
|
+
label: (0, i18n_1._)('Y-axis grid and labels'),
|
|
985
1040
|
layout: [[{
|
|
986
|
-
label: i18n_1._('Axis title'),
|
|
1041
|
+
label: (0, i18n_1._)('Axis title'),
|
|
987
1042
|
option: 'yAxisTitleVisibility',
|
|
988
1043
|
editor: 'editor.toggle'
|
|
989
1044
|
}], [{
|
|
990
|
-
label: i18n_1._('Axis title text'),
|
|
1045
|
+
label: (0, i18n_1._)('Axis title text'),
|
|
991
1046
|
option: 'yAxisTitleText',
|
|
992
1047
|
editor: 'editor.text',
|
|
993
1048
|
showEditor: function showEditor(_ref) {
|
|
@@ -995,36 +1050,36 @@ var AxesChartYGridAndLabels = {
|
|
|
995
1050
|
return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
|
|
996
1051
|
}
|
|
997
1052
|
}], [{
|
|
998
|
-
label: i18n_1._('Scale'),
|
|
1053
|
+
label: (0, i18n_1._)('Scale'),
|
|
999
1054
|
option: 'yAxisScale',
|
|
1000
1055
|
editor: 'editor.radioBar',
|
|
1001
1056
|
editorProps: {
|
|
1002
1057
|
values: [{
|
|
1003
|
-
label: i18n_1._('Linear'),
|
|
1058
|
+
label: (0, i18n_1._)('Linear'),
|
|
1004
1059
|
value: 'linear'
|
|
1005
1060
|
}, {
|
|
1006
|
-
label: i18n_1._('Log'),
|
|
1061
|
+
label: (0, i18n_1._)('Log'),
|
|
1007
1062
|
value: 'log'
|
|
1008
1063
|
}]
|
|
1009
1064
|
}
|
|
1010
1065
|
}], [{
|
|
1011
|
-
label: i18n_1._('Label visibility'),
|
|
1066
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
1012
1067
|
option: 'yAxisLabelVisibility',
|
|
1013
1068
|
editor: 'editor.radioBar',
|
|
1014
1069
|
editorProps: {
|
|
1015
1070
|
values: [{
|
|
1016
|
-
label: i18n_1._('Auto'),
|
|
1071
|
+
label: (0, i18n_1._)('Auto'),
|
|
1017
1072
|
value: 'auto'
|
|
1018
1073
|
}, {
|
|
1019
|
-
label: i18n_1._('Show'),
|
|
1074
|
+
label: (0, i18n_1._)('Show'),
|
|
1020
1075
|
value: 'show'
|
|
1021
1076
|
}, {
|
|
1022
|
-
label: i18n_1._('Hide'),
|
|
1077
|
+
label: (0, i18n_1._)('Hide'),
|
|
1023
1078
|
value: 'hide'
|
|
1024
1079
|
}]
|
|
1025
1080
|
}
|
|
1026
1081
|
}], [{
|
|
1027
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
1082
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
1028
1083
|
option: 'yAxisAbbreviation',
|
|
1029
1084
|
editor: 'editor.checkbox',
|
|
1030
1085
|
showEditor: function showEditor(_ref2) {
|
|
@@ -1032,47 +1087,47 @@ var AxesChartYGridAndLabels = {
|
|
|
1032
1087
|
return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
|
|
1033
1088
|
}
|
|
1034
1089
|
}], [{
|
|
1035
|
-
label: i18n_1._('Include zero'),
|
|
1090
|
+
label: (0, i18n_1._)('Include zero'),
|
|
1036
1091
|
option: 'showYAxisWithZero',
|
|
1037
1092
|
editor: 'editor.checkbox'
|
|
1038
1093
|
}], [{
|
|
1039
|
-
label: i18n_1._('Extend to whole grid'),
|
|
1094
|
+
label: (0, i18n_1._)('Extend to whole grid'),
|
|
1040
1095
|
option: 'showYAxisExtendedRange',
|
|
1041
1096
|
editor: 'editor.checkbox'
|
|
1042
1097
|
}], [{
|
|
1043
|
-
label: i18n_1._('Minimum axis value'),
|
|
1098
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
1044
1099
|
option: 'yAxisMin',
|
|
1045
1100
|
editor: 'editor.number'
|
|
1046
1101
|
}, {
|
|
1047
|
-
label: i18n_1._('Maximum axis value'),
|
|
1102
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
1048
1103
|
option: 'yAxisMax',
|
|
1049
1104
|
editor: 'editor.number'
|
|
1050
1105
|
}], [{
|
|
1051
|
-
label: i18n_1._('Axis line visibility'),
|
|
1106
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
1052
1107
|
option: 'yAxisLineVisibility',
|
|
1053
1108
|
editor: 'editor.checkbox'
|
|
1054
1109
|
}], [{
|
|
1055
|
-
label: i18n_1._('Major gridlines'),
|
|
1110
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
1056
1111
|
option: 'showYMajorGridLines',
|
|
1057
1112
|
editor: 'editor.checkbox'
|
|
1058
1113
|
}], [{
|
|
1059
|
-
label: i18n_1._('Major tick visibility'),
|
|
1114
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
1060
1115
|
option: 'yAxisMajorTickVisibility',
|
|
1061
1116
|
editor: 'editor.radioBar',
|
|
1062
1117
|
editorProps: {
|
|
1063
1118
|
values: [{
|
|
1064
|
-
label: i18n_1._('Auto'),
|
|
1119
|
+
label: (0, i18n_1._)('Auto'),
|
|
1065
1120
|
value: 'auto'
|
|
1066
1121
|
}, {
|
|
1067
|
-
label: i18n_1._('Show'),
|
|
1122
|
+
label: (0, i18n_1._)('Show'),
|
|
1068
1123
|
value: 'show'
|
|
1069
1124
|
}, {
|
|
1070
|
-
label: i18n_1._('Hide'),
|
|
1125
|
+
label: (0, i18n_1._)('Hide'),
|
|
1071
1126
|
value: 'hide'
|
|
1072
1127
|
}]
|
|
1073
1128
|
}
|
|
1074
1129
|
}], [{
|
|
1075
|
-
label: i18n_1._('Major tick size (px)'),
|
|
1130
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
1076
1131
|
option: 'yAxisMajorTickSize',
|
|
1077
1132
|
editor: 'editor.slider',
|
|
1078
1133
|
editorProps: {
|
|
@@ -1085,7 +1140,7 @@ var AxesChartYGridAndLabels = {
|
|
|
1085
1140
|
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
1086
1141
|
}
|
|
1087
1142
|
}], [{
|
|
1088
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
1143
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
1089
1144
|
option: 'yAxisMajorTickInterval',
|
|
1090
1145
|
editor: 'editor.number',
|
|
1091
1146
|
showEditor: function showEditor(_ref4) {
|
|
@@ -1093,27 +1148,27 @@ var AxesChartYGridAndLabels = {
|
|
|
1093
1148
|
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
1094
1149
|
}
|
|
1095
1150
|
}], [{
|
|
1096
|
-
label: i18n_1._('Minor gridlines'),
|
|
1151
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
1097
1152
|
option: 'showYMinorGridLines',
|
|
1098
1153
|
editor: 'editor.checkbox'
|
|
1099
1154
|
}], [{
|
|
1100
|
-
label: i18n_1._('Minor tick visibility'),
|
|
1155
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
1101
1156
|
option: 'yAxisMinorTickVisibility',
|
|
1102
1157
|
editor: 'editor.radioBar',
|
|
1103
1158
|
editorProps: {
|
|
1104
1159
|
values: [{
|
|
1105
|
-
label: i18n_1._('Auto'),
|
|
1160
|
+
label: (0, i18n_1._)('Auto'),
|
|
1106
1161
|
value: 'auto'
|
|
1107
1162
|
}, {
|
|
1108
|
-
label: i18n_1._('Show'),
|
|
1163
|
+
label: (0, i18n_1._)('Show'),
|
|
1109
1164
|
value: 'show'
|
|
1110
1165
|
}, {
|
|
1111
|
-
label: i18n_1._('Hide'),
|
|
1166
|
+
label: (0, i18n_1._)('Hide'),
|
|
1112
1167
|
value: 'hide'
|
|
1113
1168
|
}]
|
|
1114
1169
|
}
|
|
1115
1170
|
}], [{
|
|
1116
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
1171
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
1117
1172
|
option: 'yAxisMinorTickSize',
|
|
1118
1173
|
editor: 'editor.slider',
|
|
1119
1174
|
editorProps: {
|
|
@@ -1139,60 +1194,65 @@ 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
|
-
label: i18n_1._('Data display'),
|
|
1210
|
+
label: (0, i18n_1._)('Data display'),
|
|
1151
1211
|
layout: [[{
|
|
1152
|
-
label: i18n_1._('Null value display'),
|
|
1212
|
+
label: (0, i18n_1._)('Null value display'),
|
|
1153
1213
|
option: 'nullValueDisplay',
|
|
1154
1214
|
editor: 'editor.radioBar',
|
|
1155
1215
|
editorProps: {
|
|
1156
1216
|
values: [{
|
|
1157
|
-
label: i18n_1._('Gaps'),
|
|
1217
|
+
label: (0, i18n_1._)('Gaps'),
|
|
1158
1218
|
value: 'gaps'
|
|
1159
1219
|
}, {
|
|
1160
|
-
label: i18n_1._('Zero'),
|
|
1220
|
+
label: (0, i18n_1._)('Zero'),
|
|
1161
1221
|
value: 'zero'
|
|
1162
1222
|
}, {
|
|
1163
|
-
label: i18n_1._('Connect'),
|
|
1223
|
+
label: (0, i18n_1._)('Connect'),
|
|
1164
1224
|
value: 'connect'
|
|
1165
1225
|
}]
|
|
1166
1226
|
}
|
|
1167
1227
|
}], [{
|
|
1168
|
-
label: i18n_1._('Data value display'),
|
|
1228
|
+
label: (0, i18n_1._)('Data value display'),
|
|
1169
1229
|
option: 'dataValuesDisplay',
|
|
1170
1230
|
editor: 'editor.radioBar',
|
|
1171
1231
|
editorProps: {
|
|
1172
1232
|
values: [{
|
|
1173
|
-
label: i18n_1._('Off'),
|
|
1233
|
+
label: (0, i18n_1._)('Off'),
|
|
1174
1234
|
value: 'off'
|
|
1175
1235
|
}, {
|
|
1176
|
-
label: i18n_1._('All'),
|
|
1236
|
+
label: (0, i18n_1._)('All'),
|
|
1177
1237
|
value: 'all'
|
|
1178
1238
|
}, {
|
|
1179
|
-
label: i18n_1._('Min/Max'),
|
|
1239
|
+
label: (0, i18n_1._)('Min/Max'),
|
|
1180
1240
|
value: 'minmax'
|
|
1181
1241
|
}]
|
|
1182
1242
|
}
|
|
1183
1243
|
}], [{
|
|
1184
|
-
label: i18n_1._('Overlay fields'),
|
|
1244
|
+
label: (0, i18n_1._)('Overlay fields'),
|
|
1185
1245
|
option: 'overlayFields',
|
|
1186
1246
|
editor: 'editor.columnMultiSelectionByFieldNameEditor',
|
|
1187
1247
|
editorProps: {
|
|
1188
1248
|
filterByTypes: ['number']
|
|
1189
1249
|
}
|
|
1190
1250
|
}], [{
|
|
1191
|
-
label: i18n_1._('Split series'),
|
|
1251
|
+
label: (0, i18n_1._)('Split series'),
|
|
1192
1252
|
option: 'showSplitSeries',
|
|
1193
1253
|
editor: 'editor.toggle'
|
|
1194
1254
|
}], [{
|
|
1195
|
-
label: i18n_1._('Independent y-axis for split series'),
|
|
1255
|
+
label: (0, i18n_1._)('Independent y-axis for split series'),
|
|
1196
1256
|
option: 'showIndependentYRanges',
|
|
1197
1257
|
editor: 'editor.checkbox',
|
|
1198
1258
|
showEditor: function showEditor(_ref) {
|
|
@@ -1204,18 +1264,18 @@ exports.AxesChartDataDisplayLine = {
|
|
|
1204
1264
|
var AxesChartDataDisplay = {
|
|
1205
1265
|
label: exports.AxesChartDataDisplayLine.label,
|
|
1206
1266
|
layout: [[{
|
|
1207
|
-
label: i18n_1._('Stack mode'),
|
|
1267
|
+
label: (0, i18n_1._)('Stack mode'),
|
|
1208
1268
|
option: 'stackMode',
|
|
1209
1269
|
editor: 'editor.select',
|
|
1210
1270
|
editorProps: {
|
|
1211
1271
|
values: [{
|
|
1212
|
-
label: i18n_1._('Not stacked'),
|
|
1272
|
+
label: (0, i18n_1._)('Not stacked'),
|
|
1213
1273
|
value: 'auto'
|
|
1214
1274
|
}, {
|
|
1215
|
-
label: i18n_1._('Stacked'),
|
|
1275
|
+
label: (0, i18n_1._)('Stacked'),
|
|
1216
1276
|
value: 'stacked'
|
|
1217
1277
|
}, {
|
|
1218
|
-
label: i18n_1._('Stacked 100%'),
|
|
1278
|
+
label: (0, i18n_1._)('Stacked 100%'),
|
|
1219
1279
|
value: 'stacked100'
|
|
1220
1280
|
}]
|
|
1221
1281
|
}
|
|
@@ -1224,39 +1284,39 @@ var AxesChartDataDisplay = {
|
|
|
1224
1284
|
exports.AxesChartDataDisplayBar = {
|
|
1225
1285
|
label: exports.AxesChartDataDisplayLine.label,
|
|
1226
1286
|
layout: [[{
|
|
1227
|
-
label: i18n_1._('Stack mode'),
|
|
1287
|
+
label: (0, i18n_1._)('Stack mode'),
|
|
1228
1288
|
option: 'stackMode',
|
|
1229
1289
|
editor: 'editor.select',
|
|
1230
1290
|
editorProps: {
|
|
1231
1291
|
values: [{
|
|
1232
|
-
label: i18n_1._('Not stacked'),
|
|
1292
|
+
label: (0, i18n_1._)('Not stacked'),
|
|
1233
1293
|
value: 'auto'
|
|
1234
1294
|
}, {
|
|
1235
|
-
label: i18n_1._('Stacked'),
|
|
1295
|
+
label: (0, i18n_1._)('Stacked'),
|
|
1236
1296
|
value: 'stacked'
|
|
1237
1297
|
}, {
|
|
1238
|
-
label: i18n_1._('Stacked 100%'),
|
|
1298
|
+
label: (0, i18n_1._)('Stacked 100%'),
|
|
1239
1299
|
value: 'stacked100'
|
|
1240
1300
|
}]
|
|
1241
1301
|
}
|
|
1242
|
-
}]].concat(_toConsumableArray(lodash_1.drop(exports.AxesChartDataDisplayLine.layout)))
|
|
1302
|
+
}]].concat(_toConsumableArray((0, lodash_1.drop)(exports.AxesChartDataDisplayLine.layout)))
|
|
1243
1303
|
};
|
|
1244
1304
|
exports.AxesChartDataDisplayColumn = {
|
|
1245
1305
|
label: exports.AxesChartDataDisplayBar.label,
|
|
1246
|
-
layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartDataDisplayBar.layout, 2, [{
|
|
1247
|
-
label: i18n_1._('Show tooltip on hover'),
|
|
1306
|
+
layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartDataDisplayBar.layout, 2, [{
|
|
1307
|
+
label: (0, i18n_1._)('Show tooltip on hover'),
|
|
1248
1308
|
option: 'showTooltip',
|
|
1249
1309
|
editor: 'editor.checkbox'
|
|
1250
1310
|
}])), [[{
|
|
1251
|
-
label: i18n_1._('Column grouping mode'),
|
|
1311
|
+
label: (0, i18n_1._)('Column grouping mode'),
|
|
1252
1312
|
option: 'columnGrouping',
|
|
1253
1313
|
editor: 'editor.radioBar',
|
|
1254
1314
|
editorProps: {
|
|
1255
1315
|
values: [{
|
|
1256
|
-
label: i18n_1._('Auto'),
|
|
1316
|
+
label: (0, i18n_1._)('Auto'),
|
|
1257
1317
|
value: 'auto'
|
|
1258
1318
|
}, {
|
|
1259
|
-
label: i18n_1._('Overlay'),
|
|
1319
|
+
label: (0, i18n_1._)('Overlay'),
|
|
1260
1320
|
value: 'overlay'
|
|
1261
1321
|
}]
|
|
1262
1322
|
}
|
|
@@ -1274,15 +1334,17 @@ 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
|
-
label: i18n_1._('Y2-axis grid and labels'),
|
|
1341
|
+
label: (0, i18n_1._)('Y2-axis grid and labels'),
|
|
1280
1342
|
layout: [[{
|
|
1281
|
-
label: i18n_1._('Axis title'),
|
|
1343
|
+
label: (0, i18n_1._)('Axis title'),
|
|
1282
1344
|
option: 'y2AxisTitleVisibility',
|
|
1283
1345
|
editor: 'editor.toggle'
|
|
1284
1346
|
}], [{
|
|
1285
|
-
label: i18n_1._('Axis title'),
|
|
1347
|
+
label: (0, i18n_1._)('Axis title'),
|
|
1286
1348
|
option: 'y2AxisTitleText',
|
|
1287
1349
|
editor: 'editor.text',
|
|
1288
1350
|
showEditor: function showEditor(_ref) {
|
|
@@ -1290,7 +1352,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1290
1352
|
return options.y2AxisTitleVisibility === 'show' || options.y2AxisTitleVisibility === undefined;
|
|
1291
1353
|
}
|
|
1292
1354
|
}], [{
|
|
1293
|
-
label: i18n_1._('Show overlays on the y2-axis'),
|
|
1355
|
+
label: (0, i18n_1._)('Show overlays on the y2-axis'),
|
|
1294
1356
|
option: 'showOverlayY2Axis',
|
|
1295
1357
|
editor: 'editor.checkbox',
|
|
1296
1358
|
showEditor: function showEditor(_ref2) {
|
|
@@ -1298,36 +1360,36 @@ var axesChartY2GridAndLabels = {
|
|
|
1298
1360
|
return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
|
|
1299
1361
|
}
|
|
1300
1362
|
}], [{
|
|
1301
|
-
label: i18n_1._('Scale'),
|
|
1363
|
+
label: (0, i18n_1._)('Scale'),
|
|
1302
1364
|
option: 'y2AxisScale',
|
|
1303
1365
|
editor: 'editor.radioBar',
|
|
1304
1366
|
editorProps: {
|
|
1305
1367
|
values: [{
|
|
1306
|
-
label: i18n_1._('Linear'),
|
|
1368
|
+
label: (0, i18n_1._)('Linear'),
|
|
1307
1369
|
value: 'linear'
|
|
1308
1370
|
}, {
|
|
1309
|
-
label: i18n_1._('Log'),
|
|
1371
|
+
label: (0, i18n_1._)('Log'),
|
|
1310
1372
|
value: 'log'
|
|
1311
1373
|
}]
|
|
1312
1374
|
}
|
|
1313
1375
|
}], [{
|
|
1314
|
-
label: i18n_1._('Label visibility'),
|
|
1376
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
1315
1377
|
option: 'y2AxisLabelVisibility',
|
|
1316
1378
|
editor: 'editor.radioBar',
|
|
1317
1379
|
editorProps: {
|
|
1318
1380
|
values: [{
|
|
1319
|
-
label: i18n_1._('Auto'),
|
|
1381
|
+
label: (0, i18n_1._)('Auto'),
|
|
1320
1382
|
value: 'auto'
|
|
1321
1383
|
}, {
|
|
1322
|
-
label: i18n_1._('Show'),
|
|
1384
|
+
label: (0, i18n_1._)('Show'),
|
|
1323
1385
|
value: 'show'
|
|
1324
1386
|
}, {
|
|
1325
|
-
label: i18n_1._('Hide'),
|
|
1387
|
+
label: (0, i18n_1._)('Hide'),
|
|
1326
1388
|
value: 'hide'
|
|
1327
1389
|
}]
|
|
1328
1390
|
}
|
|
1329
1391
|
}], [{
|
|
1330
|
-
label: i18n_1._('Round axis labels'),
|
|
1392
|
+
label: (0, i18n_1._)('Round axis labels'),
|
|
1331
1393
|
option: 'showRoundedY2AxisLabels',
|
|
1332
1394
|
editor: 'editor.checkbox',
|
|
1333
1395
|
showEditor: function showEditor(_ref3) {
|
|
@@ -1335,7 +1397,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1335
1397
|
return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
|
|
1336
1398
|
}
|
|
1337
1399
|
}], [{
|
|
1338
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
1400
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
1339
1401
|
option: 'y2AxisAbbreviation',
|
|
1340
1402
|
editor: 'editor.checkbox',
|
|
1341
1403
|
showEditor: function showEditor(_ref4) {
|
|
@@ -1343,43 +1405,43 @@ var axesChartY2GridAndLabels = {
|
|
|
1343
1405
|
return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
|
|
1344
1406
|
}
|
|
1345
1407
|
}], [{
|
|
1346
|
-
label: i18n_1._('Include zero'),
|
|
1408
|
+
label: (0, i18n_1._)('Include zero'),
|
|
1347
1409
|
option: 'showY2AxisWithZero',
|
|
1348
1410
|
editor: 'editor.checkbox'
|
|
1349
1411
|
}], [{
|
|
1350
|
-
label: i18n_1._('Minimum axis value'),
|
|
1412
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
1351
1413
|
option: 'y2AxisMin',
|
|
1352
1414
|
editor: 'editor.number'
|
|
1353
1415
|
}, {
|
|
1354
|
-
label: i18n_1._('Maximum axis value'),
|
|
1416
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
1355
1417
|
option: 'y2AxisMax',
|
|
1356
1418
|
editor: 'editor.number'
|
|
1357
1419
|
}], [{
|
|
1358
|
-
label: i18n_1._('Axis line visibility'),
|
|
1420
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
1359
1421
|
option: 'y2AxisLineVisibility',
|
|
1360
1422
|
editor: 'editor.checkbox'
|
|
1361
1423
|
}], [{
|
|
1362
|
-
label: i18n_1._('Major gridlines'),
|
|
1424
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
1363
1425
|
option: 'showY2MajorGridLines',
|
|
1364
1426
|
editor: 'editor.checkbox'
|
|
1365
1427
|
}], [{
|
|
1366
|
-
label: i18n_1._('Major tick visibility'),
|
|
1428
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
1367
1429
|
option: 'y2AxisMajorTickVisibility',
|
|
1368
1430
|
editor: 'editor.radioBar',
|
|
1369
1431
|
editorProps: {
|
|
1370
1432
|
values: [{
|
|
1371
|
-
label: i18n_1._('Auto'),
|
|
1433
|
+
label: (0, i18n_1._)('Auto'),
|
|
1372
1434
|
value: 'auto'
|
|
1373
1435
|
}, {
|
|
1374
|
-
label: i18n_1._('Show'),
|
|
1436
|
+
label: (0, i18n_1._)('Show'),
|
|
1375
1437
|
value: 'show'
|
|
1376
1438
|
}, {
|
|
1377
|
-
label: i18n_1._('Hide'),
|
|
1439
|
+
label: (0, i18n_1._)('Hide'),
|
|
1378
1440
|
value: 'hide'
|
|
1379
1441
|
}]
|
|
1380
1442
|
}
|
|
1381
1443
|
}], [{
|
|
1382
|
-
label: i18n_1._('Major tick size (px)'),
|
|
1444
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
1383
1445
|
option: 'y2AxisMajorTickSize',
|
|
1384
1446
|
editor: 'editor.slider',
|
|
1385
1447
|
editorProps: {
|
|
@@ -1392,7 +1454,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1392
1454
|
return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
|
|
1393
1455
|
}
|
|
1394
1456
|
}], [{
|
|
1395
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
1457
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
1396
1458
|
option: 'y2AxisMajorTickInterval',
|
|
1397
1459
|
editor: 'editor.number',
|
|
1398
1460
|
showEditor: function showEditor(_ref6) {
|
|
@@ -1400,27 +1462,27 @@ var axesChartY2GridAndLabels = {
|
|
|
1400
1462
|
return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
|
|
1401
1463
|
}
|
|
1402
1464
|
}], [{
|
|
1403
|
-
label: i18n_1._('Minor gridlines'),
|
|
1465
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
1404
1466
|
option: 'showY2MinorGridLines',
|
|
1405
1467
|
editor: 'editor.checkbox'
|
|
1406
1468
|
}], [{
|
|
1407
|
-
label: i18n_1._('Minor tick visibility'),
|
|
1469
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
1408
1470
|
option: 'y2AxisMinorTickVisibility',
|
|
1409
1471
|
editor: 'editor.radioBar',
|
|
1410
1472
|
editorProps: {
|
|
1411
1473
|
values: [{
|
|
1412
|
-
label: i18n_1._('Auto'),
|
|
1474
|
+
label: (0, i18n_1._)('Auto'),
|
|
1413
1475
|
value: 'auto'
|
|
1414
1476
|
}, {
|
|
1415
|
-
label: i18n_1._('Show'),
|
|
1477
|
+
label: (0, i18n_1._)('Show'),
|
|
1416
1478
|
value: 'show'
|
|
1417
1479
|
}, {
|
|
1418
|
-
label: i18n_1._('Hide'),
|
|
1480
|
+
label: (0, i18n_1._)('Hide'),
|
|
1419
1481
|
value: 'hide'
|
|
1420
1482
|
}]
|
|
1421
1483
|
}
|
|
1422
1484
|
}], [{
|
|
1423
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
1485
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
1424
1486
|
option: 'y2AxisMinorTickSize',
|
|
1425
1487
|
editor: 'editor.slider',
|
|
1426
1488
|
editorProps: {
|
|
@@ -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',
|
|
@@ -1562,13 +1643,13 @@ var optionsSchema = {
|
|
|
1562
1643
|
dataValuesDisplay: {
|
|
1563
1644
|
default: 'off',
|
|
1564
1645
|
description: 'Specify the labels to display. Enter "all" to show lables for all data points, "off" to show no labels, or "minmax to show high and low values".',
|
|
1565
|
-
pattern: schemaUtils_1.getPattern(['off', 'all', 'minmax']),
|
|
1646
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
|
|
1566
1647
|
type: 'string'
|
|
1567
1648
|
},
|
|
1568
1649
|
legendDisplay: {
|
|
1569
1650
|
default: 'right',
|
|
1570
1651
|
description: 'Specify the location of the legend on the panel.',
|
|
1571
|
-
pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
|
|
1652
|
+
pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
|
|
1572
1653
|
type: 'string'
|
|
1573
1654
|
},
|
|
1574
1655
|
legendLabels: {
|
|
@@ -1581,13 +1662,13 @@ var optionsSchema = {
|
|
|
1581
1662
|
legendMode: {
|
|
1582
1663
|
default: 'standard',
|
|
1583
1664
|
description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
|
|
1584
|
-
pattern: schemaUtils_1.getPattern(['standard', 'seriesCompare']),
|
|
1665
|
+
pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
|
|
1585
1666
|
type: 'string'
|
|
1586
1667
|
},
|
|
1587
1668
|
legendTruncation: {
|
|
1588
1669
|
default: 'ellipsisEnd',
|
|
1589
1670
|
description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
|
|
1590
|
-
pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
1671
|
+
pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
1591
1672
|
type: 'string'
|
|
1592
1673
|
},
|
|
1593
1674
|
lineWidth: {
|
|
@@ -1619,7 +1700,7 @@ var optionsSchema = {
|
|
|
1619
1700
|
stackMode: {
|
|
1620
1701
|
default: 'auto',
|
|
1621
1702
|
description: 'Specify stack mode.',
|
|
1622
|
-
pattern: schemaUtils_1.getPattern(['auto', 'stacked', 'stacked100']),
|
|
1703
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'stacked', 'stacked100']),
|
|
1623
1704
|
type: 'string'
|
|
1624
1705
|
},
|
|
1625
1706
|
showIndependentYRanges: {
|
|
@@ -1675,40 +1756,40 @@ var optionsSchema = {
|
|
|
1675
1756
|
xAxisLabelVisibility: {
|
|
1676
1757
|
default: 'auto',
|
|
1677
1758
|
description: 'Specify whether to show labels on the x-axis.',
|
|
1678
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1759
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1679
1760
|
type: 'string'
|
|
1680
1761
|
},
|
|
1681
1762
|
yAxisLabelVisibility: {
|
|
1682
1763
|
default: 'auto',
|
|
1683
1764
|
description: 'Specify whether to show labels on the y-axis.',
|
|
1684
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1765
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1685
1766
|
type: 'string'
|
|
1686
1767
|
},
|
|
1687
1768
|
y2AxisLabelVisibility: {
|
|
1688
1769
|
default: 'auto',
|
|
1689
1770
|
description: 'Specify whether to show labels on the second y-axis.',
|
|
1690
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1771
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1691
1772
|
type: 'string'
|
|
1692
1773
|
},
|
|
1693
1774
|
xAxisLineVisibility: {
|
|
1694
1775
|
default: 'hide',
|
|
1695
1776
|
description: 'Specify whether to show the x-axis line.',
|
|
1696
1777
|
enum: ['hide', 'show'],
|
|
1697
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1778
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1698
1779
|
type: 'string'
|
|
1699
1780
|
},
|
|
1700
1781
|
yAxisLineVisibility: {
|
|
1701
1782
|
default: 'hide',
|
|
1702
1783
|
description: 'Specify whether to show the y-axis line.',
|
|
1703
1784
|
enum: ['hide', 'show'],
|
|
1704
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1785
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1705
1786
|
type: 'string'
|
|
1706
1787
|
},
|
|
1707
1788
|
y2AxisLineVisibility: {
|
|
1708
1789
|
default: 'hide',
|
|
1709
1790
|
description: 'Specify whether to show the second y-axis line.',
|
|
1710
1791
|
enum: ['hide', 'show'],
|
|
1711
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1792
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1712
1793
|
type: 'string'
|
|
1713
1794
|
},
|
|
1714
1795
|
xAxisMajorTickSize: {
|
|
@@ -1739,31 +1820,31 @@ var optionsSchema = {
|
|
|
1739
1820
|
xAxisMajorTickVisibility: {
|
|
1740
1821
|
default: 'auto',
|
|
1741
1822
|
description: 'Specify whether to show major tick marks on the x-axis.',
|
|
1742
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1823
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1743
1824
|
type: 'string'
|
|
1744
1825
|
},
|
|
1745
1826
|
yAxisMajorTickVisibility: {
|
|
1746
1827
|
default: 'auto',
|
|
1747
1828
|
description: 'Specify whether to show major tick marks on the y-axis.',
|
|
1748
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1829
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1749
1830
|
type: 'string'
|
|
1750
1831
|
},
|
|
1751
1832
|
y2AxisMajorTickVisibility: {
|
|
1752
1833
|
default: 'auto',
|
|
1753
1834
|
description: 'Specify whether to show major tick marks on the second y-axis.',
|
|
1754
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1835
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1755
1836
|
type: 'string'
|
|
1756
1837
|
},
|
|
1757
1838
|
yAxisMinorTickVisibility: {
|
|
1758
1839
|
default: 'auto',
|
|
1759
1840
|
description: 'Specify whether to show minor tick marks on the y-axis.',
|
|
1760
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1841
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1761
1842
|
type: 'string'
|
|
1762
1843
|
},
|
|
1763
1844
|
y2AxisMinorTickVisibility: {
|
|
1764
1845
|
default: 'auto',
|
|
1765
1846
|
description: 'Specify whether to show minor tick marks on the second y-axis.',
|
|
1766
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1847
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1767
1848
|
type: 'string'
|
|
1768
1849
|
},
|
|
1769
1850
|
xAxisMaxLabelParts: {
|
|
@@ -1776,13 +1857,13 @@ var optionsSchema = {
|
|
|
1776
1857
|
yAxisScale: {
|
|
1777
1858
|
default: 'linear',
|
|
1778
1859
|
description: 'Specify the type of scale that applies to a numerical y-axis.',
|
|
1779
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
1860
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1780
1861
|
type: 'string'
|
|
1781
1862
|
},
|
|
1782
1863
|
y2AxisScale: {
|
|
1783
1864
|
default: 'linear',
|
|
1784
1865
|
description: 'Specify the type of scale that applies to a numerical second y-axis.',
|
|
1785
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
1866
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1786
1867
|
type: 'string'
|
|
1787
1868
|
},
|
|
1788
1869
|
xAxisTitleText: {
|
|
@@ -1801,35 +1882,35 @@ var optionsSchema = {
|
|
|
1801
1882
|
default: 'show',
|
|
1802
1883
|
description: 'Specify whether to show the title of the x-axis.',
|
|
1803
1884
|
enum: ['hide', 'show'],
|
|
1804
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1885
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1805
1886
|
type: 'string'
|
|
1806
1887
|
},
|
|
1807
1888
|
yAxisTitleVisibility: {
|
|
1808
1889
|
default: 'show',
|
|
1809
1890
|
description: 'Specify whether to show the title of the y-axis.',
|
|
1810
1891
|
enum: ['hide', 'show'],
|
|
1811
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1892
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1812
1893
|
type: 'string'
|
|
1813
1894
|
},
|
|
1814
1895
|
y2AxisTitleVisibility: {
|
|
1815
1896
|
default: 'show',
|
|
1816
1897
|
description: 'Specify whether to show the title of the second y-axis.',
|
|
1817
1898
|
enum: ['hide', 'show'],
|
|
1818
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1899
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1819
1900
|
type: 'string'
|
|
1820
1901
|
},
|
|
1821
1902
|
yAxisAbbreviation: {
|
|
1822
1903
|
default: 'auto',
|
|
1823
1904
|
description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
|
|
1824
1905
|
enum: ['auto', 'off'],
|
|
1825
|
-
pattern: schemaUtils_1.getPattern(['off', 'auto']),
|
|
1906
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
1826
1907
|
type: 'string'
|
|
1827
1908
|
},
|
|
1828
1909
|
y2AxisAbbreviation: {
|
|
1829
1910
|
default: 'auto',
|
|
1830
1911
|
description: 'Specify whether to abbreviate large y2-axis values with the closest International System of Units (SI) prefix.',
|
|
1831
1912
|
enum: ['auto', 'off'],
|
|
1832
|
-
pattern: schemaUtils_1.getPattern(['off', 'auto']),
|
|
1913
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
1833
1914
|
type: 'string'
|
|
1834
1915
|
},
|
|
1835
1916
|
yAxisMajorTickInterval: {
|
|
@@ -1883,7 +1964,7 @@ var optionsSchema = {
|
|
|
1883
1964
|
};
|
|
1884
1965
|
var themes = {
|
|
1885
1966
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
1886
|
-
return pick_1.default({
|
|
1967
|
+
return (0, pick_1.default)({
|
|
1887
1968
|
enterprise: {
|
|
1888
1969
|
dark: variables_1.default.black(props),
|
|
1889
1970
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -1892,17 +1973,17 @@ var themes = {
|
|
|
1892
1973
|
})(props);
|
|
1893
1974
|
}
|
|
1894
1975
|
};
|
|
1895
|
-
var updatedAxesChartLegend = lodash_1.cloneDeep(AxesChartLegend_1.default);
|
|
1976
|
+
var updatedAxesChartLegend = (0, lodash_1.cloneDeep)(AxesChartLegend_1.default);
|
|
1896
1977
|
updatedAxesChartLegend.layout.push([{
|
|
1897
|
-
label: i18n_1._('Legend mode'),
|
|
1978
|
+
label: (0, i18n_1._)('Legend mode'),
|
|
1898
1979
|
option: 'legendMode',
|
|
1899
1980
|
editor: 'editor.radioBar',
|
|
1900
1981
|
editorProps: {
|
|
1901
1982
|
values: [{
|
|
1902
|
-
label: i18n_1._('Standard'),
|
|
1983
|
+
label: (0, i18n_1._)('Standard'),
|
|
1903
1984
|
value: 'standard'
|
|
1904
1985
|
}, {
|
|
1905
|
-
label: i18n_1._('Compare series'),
|
|
1986
|
+
label: (0, i18n_1._)('Compare series'),
|
|
1906
1987
|
value: 'seriesCompare'
|
|
1907
1988
|
}]
|
|
1908
1989
|
}
|
|
@@ -1910,7 +1991,7 @@ updatedAxesChartLegend.layout.push([{
|
|
|
1910
1991
|
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataDisplay_1.AxesChartDataDisplayBar, {
|
|
1911
1992
|
label: AxesChartColorAndStyle_1.default.label,
|
|
1912
1993
|
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
|
|
1913
|
-
label: i18n_1._('Line width'),
|
|
1994
|
+
label: (0, i18n_1._)('Line width'),
|
|
1914
1995
|
option: 'lineWidth',
|
|
1915
1996
|
editor: 'editor.slider',
|
|
1916
1997
|
editorProps: {
|
|
@@ -1923,18 +2004,18 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
1923
2004
|
return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
|
|
1924
2005
|
}
|
|
1925
2006
|
}], [{
|
|
1926
|
-
label: i18n_1._('Series spacing'),
|
|
2007
|
+
label: (0, i18n_1._)('Series spacing'),
|
|
1927
2008
|
option: 'seriesSpacing',
|
|
1928
2009
|
editor: 'editor.number'
|
|
1929
2010
|
}], [{
|
|
1930
|
-
label: i18n_1._('Bar spacing'),
|
|
2011
|
+
label: (0, i18n_1._)('Bar spacing'),
|
|
1931
2012
|
option: 'barSpacing',
|
|
1932
2013
|
editor: 'editor.number'
|
|
1933
2014
|
}]])
|
|
1934
2015
|
}, updatedAxesChartLegend, {
|
|
1935
|
-
label: i18n_1._('X-axis grid and labels (vertical axis)'),
|
|
2016
|
+
label: (0, i18n_1._)('X-axis grid and labels (vertical axis)'),
|
|
1936
2017
|
layout: [].concat(_toConsumableArray(AxesChartXGridAndLabels_1.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
1937
|
-
label: i18n_1._('Number of time label parts'),
|
|
2018
|
+
label: (0, i18n_1._)('Number of time label parts'),
|
|
1938
2019
|
option: 'xAxisMaxLabelParts',
|
|
1939
2020
|
editor: 'editor.number',
|
|
1940
2021
|
editorProps: {
|
|
@@ -1946,31 +2027,31 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
1946
2027
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
1947
2028
|
}
|
|
1948
2029
|
}], [{
|
|
1949
|
-
label: i18n_1._('Axis line visibility'),
|
|
2030
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
1950
2031
|
option: 'xAxisLineVisibility',
|
|
1951
2032
|
editor: 'editor.checkbox'
|
|
1952
2033
|
}], [{
|
|
1953
|
-
label: i18n_1._('Major gridlines'),
|
|
2034
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
1954
2035
|
option: 'showXMajorGridLines',
|
|
1955
2036
|
editor: 'editor.checkbox'
|
|
1956
2037
|
}], [{
|
|
1957
|
-
label: i18n_1._('Major tick visibility'),
|
|
2038
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
1958
2039
|
option: 'xAxisMajorTickVisibility',
|
|
1959
2040
|
editor: 'editor.radioBar',
|
|
1960
2041
|
editorProps: {
|
|
1961
2042
|
values: [{
|
|
1962
|
-
label: i18n_1._('Auto'),
|
|
2043
|
+
label: (0, i18n_1._)('Auto'),
|
|
1963
2044
|
value: 'auto'
|
|
1964
2045
|
}, {
|
|
1965
|
-
label: i18n_1._('Show'),
|
|
2046
|
+
label: (0, i18n_1._)('Show'),
|
|
1966
2047
|
value: 'show'
|
|
1967
2048
|
}, {
|
|
1968
|
-
label: i18n_1._('Hide'),
|
|
2049
|
+
label: (0, i18n_1._)('Hide'),
|
|
1969
2050
|
value: 'hide'
|
|
1970
2051
|
}]
|
|
1971
2052
|
}
|
|
1972
2053
|
}], [{
|
|
1973
|
-
label: i18n_1._('Major tick size (px)'),
|
|
2054
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
1974
2055
|
option: 'xAxisMajorTickSize',
|
|
1975
2056
|
editor: 'editor.slider',
|
|
1976
2057
|
editorProps: {
|
|
@@ -1984,21 +2065,24 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
1984
2065
|
}
|
|
1985
2066
|
}]])
|
|
1986
2067
|
}, Object.assign(Object.assign({}, AxesChartYGridAndLabels_1.default), {
|
|
1987
|
-
label: i18n_1._('Y-axis grid and labels (horizontal axis)')
|
|
2068
|
+
label: (0, i18n_1._)('Y-axis grid and labels (horizontal axis)')
|
|
1988
2069
|
}), AxesChartY2GridAndLabels_1.default];
|
|
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
|
-
name: i18n_1._('Bar'),
|
|
2083
|
+
name: (0, i18n_1._)('Bar'),
|
|
2001
2084
|
category: VizCategory_1.VizCategory.COMPARISONS,
|
|
2085
|
+
|
|
2002
2086
|
/**
|
|
2003
2087
|
* viz icon
|
|
2004
2088
|
*/
|
|
@@ -2026,7 +2110,7 @@ var config = {
|
|
|
2026
2110
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER, VizBehavior_1.VizBehavior.EVENTS],
|
|
2027
2111
|
themes: themes
|
|
2028
2112
|
};
|
|
2029
|
-
exports.default = configUtils_1.enhanceConfig(config);
|
|
2113
|
+
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
2030
2114
|
|
|
2031
2115
|
/***/ })
|
|
2032
2116
|
/******/ ]);
|