@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/Area.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: {
|
|
@@ -1461,26 +1523,45 @@ exports.default = axesChartY2GridAndLabels;
|
|
|
1461
1523
|
|
|
1462
1524
|
|
|
1463
1525
|
var _toConsumableArray = __webpack_require__(1);
|
|
1526
|
+
|
|
1464
1527
|
Object.defineProperty(exports, "__esModule", {
|
|
1465
1528
|
value: true
|
|
1466
1529
|
});
|
|
1530
|
+
|
|
1467
1531
|
var visualization_icons_1 = __webpack_require__(12);
|
|
1532
|
+
|
|
1468
1533
|
var placeholders_1 = __webpack_require__(11);
|
|
1534
|
+
|
|
1469
1535
|
var schemaUtils_1 = __webpack_require__(3);
|
|
1536
|
+
|
|
1470
1537
|
var visualization_color_palettes_1 = __webpack_require__(14);
|
|
1538
|
+
|
|
1471
1539
|
var i18n_1 = __webpack_require__(0);
|
|
1540
|
+
|
|
1472
1541
|
var pick_1 = __webpack_require__(9);
|
|
1542
|
+
|
|
1473
1543
|
var variables_1 = __webpack_require__(10);
|
|
1544
|
+
|
|
1474
1545
|
var VizBehavior_1 = __webpack_require__(2);
|
|
1546
|
+
|
|
1475
1547
|
var VizCategory_1 = __webpack_require__(8);
|
|
1548
|
+
|
|
1476
1549
|
var configUtils_1 = __webpack_require__(4);
|
|
1550
|
+
|
|
1477
1551
|
var AxesChartDataConfig_1 = __webpack_require__(16);
|
|
1552
|
+
|
|
1478
1553
|
var AxesChartDataDisplay_1 = __webpack_require__(23);
|
|
1554
|
+
|
|
1479
1555
|
var AxesChartColorAndStyle_1 = __webpack_require__(17);
|
|
1556
|
+
|
|
1480
1557
|
var AxesChartLegend_1 = __webpack_require__(18);
|
|
1558
|
+
|
|
1481
1559
|
var AxesChartXGridAndLabels_1 = __webpack_require__(19);
|
|
1560
|
+
|
|
1482
1561
|
var AxesChartYGridAndLabels_1 = __webpack_require__(20);
|
|
1562
|
+
|
|
1483
1563
|
var AxesChartY2GridAndLabels_1 = __webpack_require__(24);
|
|
1564
|
+
|
|
1484
1565
|
var dataContract = {
|
|
1485
1566
|
requiredDataSources: [{
|
|
1486
1567
|
name: 'primary',
|
|
@@ -1575,13 +1656,13 @@ var optionsSchema = {
|
|
|
1575
1656
|
dataValuesDisplay: {
|
|
1576
1657
|
description: 'Specify the labels to display. Enter "all" to show labels for all data points, "off" to show no labels, or "minmax" to show high and low values.',
|
|
1577
1658
|
type: 'string',
|
|
1578
|
-
pattern: schemaUtils_1.getPattern(['off', 'all', 'minmax']),
|
|
1659
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
|
|
1579
1660
|
default: 'off'
|
|
1580
1661
|
},
|
|
1581
1662
|
legendDisplay: {
|
|
1582
1663
|
default: 'right',
|
|
1583
1664
|
description: 'Specify the location of the legend on the panel. You must select the Standard legend mode to make this change.',
|
|
1584
|
-
pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
|
|
1665
|
+
pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
|
|
1585
1666
|
type: 'string'
|
|
1586
1667
|
},
|
|
1587
1668
|
legendLabels: {
|
|
@@ -1594,13 +1675,13 @@ var optionsSchema = {
|
|
|
1594
1675
|
legendMode: {
|
|
1595
1676
|
default: 'standard',
|
|
1596
1677
|
description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
|
|
1597
|
-
pattern: schemaUtils_1.getPattern(['standard', 'seriesCompare']),
|
|
1678
|
+
pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
|
|
1598
1679
|
type: 'string'
|
|
1599
1680
|
},
|
|
1600
1681
|
legendTruncation: {
|
|
1601
1682
|
default: 'ellipsisEnd',
|
|
1602
1683
|
description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
|
|
1603
|
-
pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
1684
|
+
pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
1604
1685
|
type: 'string'
|
|
1605
1686
|
},
|
|
1606
1687
|
lineWidth: {
|
|
@@ -1611,7 +1692,7 @@ var optionsSchema = {
|
|
|
1611
1692
|
nullValueDisplay: {
|
|
1612
1693
|
default: 'gaps',
|
|
1613
1694
|
description: 'Specify the handling of null values for area and line charts .',
|
|
1614
|
-
pattern: schemaUtils_1.getPattern(['gaps', 'zero', 'connect']),
|
|
1695
|
+
pattern: (0, schemaUtils_1.getPattern)(['gaps', 'zero', 'connect']),
|
|
1615
1696
|
type: 'string'
|
|
1616
1697
|
},
|
|
1617
1698
|
resultLimit: {
|
|
@@ -1634,7 +1715,7 @@ var optionsSchema = {
|
|
|
1634
1715
|
stackMode: {
|
|
1635
1716
|
description: 'Specify stack mode.',
|
|
1636
1717
|
type: 'string',
|
|
1637
|
-
pattern: schemaUtils_1.getPattern(['auto', 'stacked', 'stacked100']),
|
|
1718
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'stacked', 'stacked100']),
|
|
1638
1719
|
default: 'auto'
|
|
1639
1720
|
},
|
|
1640
1721
|
showIndependentYRanges: {
|
|
@@ -1701,40 +1782,40 @@ var optionsSchema = {
|
|
|
1701
1782
|
xAxisLabelVisibility: {
|
|
1702
1783
|
default: 'auto',
|
|
1703
1784
|
description: 'Specify whether to show labels on the x-axis.',
|
|
1704
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1785
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1705
1786
|
type: 'string'
|
|
1706
1787
|
},
|
|
1707
1788
|
yAxisLabelVisibility: {
|
|
1708
1789
|
default: 'auto',
|
|
1709
1790
|
description: 'Specify whether to show labels on the y-axis.',
|
|
1710
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1791
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1711
1792
|
type: 'string'
|
|
1712
1793
|
},
|
|
1713
1794
|
y2AxisLabelVisibility: {
|
|
1714
1795
|
default: 'auto',
|
|
1715
1796
|
description: 'Specify whether to show labels on the second y-axis.',
|
|
1716
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1797
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1717
1798
|
type: 'string'
|
|
1718
1799
|
},
|
|
1719
1800
|
xAxisLineVisibility: {
|
|
1720
1801
|
default: 'hide',
|
|
1721
1802
|
description: 'Specify whether to show the x-axis line.',
|
|
1722
1803
|
enum: ['hide', 'show'],
|
|
1723
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1804
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1724
1805
|
type: 'string'
|
|
1725
1806
|
},
|
|
1726
1807
|
yAxisLineVisibility: {
|
|
1727
1808
|
default: 'hide',
|
|
1728
1809
|
description: 'Specify whether to show the y-axis line.',
|
|
1729
1810
|
enum: ['hide', 'show'],
|
|
1730
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1811
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1731
1812
|
type: 'string'
|
|
1732
1813
|
},
|
|
1733
1814
|
y2AxisLineVisibility: {
|
|
1734
1815
|
default: 'hide',
|
|
1735
1816
|
description: 'Specify whether to show the second y-axis line.',
|
|
1736
1817
|
enum: ['hide', 'show'],
|
|
1737
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1818
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1738
1819
|
type: 'string'
|
|
1739
1820
|
},
|
|
1740
1821
|
xAxisMajorTickSize: {
|
|
@@ -1765,31 +1846,31 @@ var optionsSchema = {
|
|
|
1765
1846
|
xAxisMajorTickVisibility: {
|
|
1766
1847
|
default: 'auto',
|
|
1767
1848
|
description: 'Specify whether to show major tick marks on the x-axis.',
|
|
1768
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1849
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1769
1850
|
type: 'string'
|
|
1770
1851
|
},
|
|
1771
1852
|
yAxisMajorTickVisibility: {
|
|
1772
1853
|
default: 'auto',
|
|
1773
1854
|
description: 'Specify whether to show major tick marks on the y-axis.',
|
|
1774
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1855
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1775
1856
|
type: 'string'
|
|
1776
1857
|
},
|
|
1777
1858
|
y2AxisMajorTickVisibility: {
|
|
1778
1859
|
default: 'auto',
|
|
1779
1860
|
description: 'Specify whether to show major tick marks on the second y-axis.',
|
|
1780
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1861
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1781
1862
|
type: 'string'
|
|
1782
1863
|
},
|
|
1783
1864
|
yAxisMinorTickVisibility: {
|
|
1784
1865
|
default: 'auto',
|
|
1785
1866
|
description: 'Specify whether to show minor tick marks on the y-axis.',
|
|
1786
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1867
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1787
1868
|
type: 'string'
|
|
1788
1869
|
},
|
|
1789
1870
|
y2AxisMinorTickVisibility: {
|
|
1790
1871
|
default: 'auto',
|
|
1791
1872
|
description: 'Specify whether to show minor tick marks on the second y-axis.',
|
|
1792
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1873
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1793
1874
|
type: 'string'
|
|
1794
1875
|
},
|
|
1795
1876
|
xAxisMaxLabelParts: {
|
|
@@ -1801,13 +1882,13 @@ var optionsSchema = {
|
|
|
1801
1882
|
},
|
|
1802
1883
|
yAxisScale: {
|
|
1803
1884
|
type: 'string',
|
|
1804
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
1885
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1805
1886
|
description: 'Specify the type of scale that applies to a numerical y-axis.',
|
|
1806
1887
|
default: 'linear'
|
|
1807
1888
|
},
|
|
1808
1889
|
y2AxisScale: {
|
|
1809
1890
|
type: 'string',
|
|
1810
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
1891
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1811
1892
|
description: 'Specify the type of scale that applies to a numerical second y-axis.',
|
|
1812
1893
|
default: 'linear'
|
|
1813
1894
|
},
|
|
@@ -1827,35 +1908,35 @@ var optionsSchema = {
|
|
|
1827
1908
|
default: 'show',
|
|
1828
1909
|
description: 'Specify whether to show the title of the x-axis.',
|
|
1829
1910
|
enum: ['hide', 'show'],
|
|
1830
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1911
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1831
1912
|
type: 'string'
|
|
1832
1913
|
},
|
|
1833
1914
|
yAxisTitleVisibility: {
|
|
1834
1915
|
default: 'show',
|
|
1835
1916
|
description: 'Specify whether to show the title of the y-axis.',
|
|
1836
1917
|
enum: ['hide', 'show'],
|
|
1837
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1918
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1838
1919
|
type: 'string'
|
|
1839
1920
|
},
|
|
1840
1921
|
y2AxisTitleVisibility: {
|
|
1841
1922
|
default: 'show',
|
|
1842
1923
|
description: 'Specify whether to show the title of the second y-axis.',
|
|
1843
1924
|
enum: ['hide', 'show'],
|
|
1844
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1925
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1845
1926
|
type: 'string'
|
|
1846
1927
|
},
|
|
1847
1928
|
yAxisAbbreviation: {
|
|
1848
1929
|
default: 'auto',
|
|
1849
1930
|
description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
|
|
1850
1931
|
enum: ['auto', 'off'],
|
|
1851
|
-
pattern: schemaUtils_1.getPattern(['off', 'auto']),
|
|
1932
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
1852
1933
|
type: 'string'
|
|
1853
1934
|
},
|
|
1854
1935
|
y2AxisAbbreviation: {
|
|
1855
1936
|
default: 'auto',
|
|
1856
1937
|
description: 'Specify whether to abbreviate large second y-axis values with the closest International System of Units (SI) prefix.',
|
|
1857
1938
|
enum: ['auto', 'off'],
|
|
1858
|
-
pattern: schemaUtils_1.getPattern(['off', 'auto']),
|
|
1939
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
1859
1940
|
type: 'string'
|
|
1860
1941
|
},
|
|
1861
1942
|
yAxisMajorTickInterval: {
|
|
@@ -1916,7 +1997,7 @@ var optionsSchema = {
|
|
|
1916
1997
|
};
|
|
1917
1998
|
var themes = {
|
|
1918
1999
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
1919
|
-
return pick_1.default({
|
|
2000
|
+
return (0, pick_1.default)({
|
|
1920
2001
|
enterprise: {
|
|
1921
2002
|
dark: variables_1.default.black(props),
|
|
1922
2003
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -1928,7 +2009,7 @@ var themes = {
|
|
|
1928
2009
|
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, AxesChartDataDisplay_1.default, {
|
|
1929
2010
|
label: AxesChartColorAndStyle_1.default.label,
|
|
1930
2011
|
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
|
|
1931
|
-
label: i18n_1._('Area opacity (0-1)'),
|
|
2012
|
+
label: (0, i18n_1._)('Area opacity (0-1)'),
|
|
1932
2013
|
option: 'areaOpacity',
|
|
1933
2014
|
editor: 'editor.slider',
|
|
1934
2015
|
editorProps: {
|
|
@@ -1937,11 +2018,11 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
|
|
|
1937
2018
|
step: 0.01
|
|
1938
2019
|
}
|
|
1939
2020
|
}], [{
|
|
1940
|
-
label: i18n_1._('Show area outlines'),
|
|
2021
|
+
label: (0, i18n_1._)('Show area outlines'),
|
|
1941
2022
|
option: 'showLines',
|
|
1942
2023
|
editor: 'editor.checkbox'
|
|
1943
2024
|
}], [{
|
|
1944
|
-
label: i18n_1._('Line width'),
|
|
2025
|
+
label: (0, i18n_1._)('Line width'),
|
|
1945
2026
|
option: 'lineWidth',
|
|
1946
2027
|
editor: 'editor.slider',
|
|
1947
2028
|
editorProps: {
|
|
@@ -1954,7 +2035,7 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
|
|
|
1954
2035
|
return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
|
|
1955
2036
|
}
|
|
1956
2037
|
}], [{
|
|
1957
|
-
label: i18n_1._('Annotation colors'),
|
|
2038
|
+
label: (0, i18n_1._)('Annotation colors'),
|
|
1958
2039
|
option: 'annotationColor',
|
|
1959
2040
|
editor: 'editor.columnSelector',
|
|
1960
2041
|
editorProps: {
|
|
@@ -1966,48 +2047,48 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
|
|
|
1966
2047
|
}, {
|
|
1967
2048
|
label: AxesChartLegend_1.default.label,
|
|
1968
2049
|
layout: [[{
|
|
1969
|
-
label: i18n_1._('Legend display'),
|
|
2050
|
+
label: (0, i18n_1._)('Legend display'),
|
|
1970
2051
|
option: 'legendDisplay',
|
|
1971
2052
|
editor: 'editor.select',
|
|
1972
2053
|
editorProps: {
|
|
1973
2054
|
values: [{
|
|
1974
|
-
label: i18n_1._('Right'),
|
|
2055
|
+
label: (0, i18n_1._)('Right'),
|
|
1975
2056
|
value: 'right'
|
|
1976
2057
|
}, {
|
|
1977
|
-
label: i18n_1._('Left'),
|
|
2058
|
+
label: (0, i18n_1._)('Left'),
|
|
1978
2059
|
value: 'left'
|
|
1979
2060
|
}, {
|
|
1980
|
-
label: i18n_1._('Top'),
|
|
2061
|
+
label: (0, i18n_1._)('Top'),
|
|
1981
2062
|
value: 'top'
|
|
1982
2063
|
}, {
|
|
1983
|
-
label: i18n_1._('Bottom'),
|
|
2064
|
+
label: (0, i18n_1._)('Bottom'),
|
|
1984
2065
|
value: 'bottom'
|
|
1985
2066
|
}, {
|
|
1986
|
-
label: i18n_1._('Off'),
|
|
2067
|
+
label: (0, i18n_1._)('Off'),
|
|
1987
2068
|
value: 'off'
|
|
1988
2069
|
}],
|
|
1989
|
-
tooltip: i18n_1._('Legend mode must be "Standard" to configure legend display')
|
|
2070
|
+
tooltip: (0, i18n_1._)('Legend mode must be "Standard" to configure legend display')
|
|
1990
2071
|
},
|
|
1991
2072
|
isDisabled: function isDisabled(_ref2) {
|
|
1992
2073
|
var options = _ref2.options;
|
|
1993
2074
|
return options.legendMode === 'seriesCompare';
|
|
1994
2075
|
}
|
|
1995
2076
|
}], [{
|
|
1996
|
-
label: i18n_1._('Legend truncation'),
|
|
2077
|
+
label: (0, i18n_1._)('Legend truncation'),
|
|
1997
2078
|
option: 'legendTruncation',
|
|
1998
2079
|
editor: 'editor.radioBar',
|
|
1999
2080
|
editorProps: {
|
|
2000
2081
|
values: [{
|
|
2001
|
-
label: i18n_1._('A...'),
|
|
2082
|
+
label: (0, i18n_1._)('A...'),
|
|
2002
2083
|
value: 'ellipsisEnd'
|
|
2003
2084
|
}, {
|
|
2004
|
-
label: i18n_1._('A...Z'),
|
|
2085
|
+
label: (0, i18n_1._)('A...Z'),
|
|
2005
2086
|
value: 'ellipsisMiddle'
|
|
2006
2087
|
}, {
|
|
2007
|
-
label: i18n_1._('...Z'),
|
|
2088
|
+
label: (0, i18n_1._)('...Z'),
|
|
2008
2089
|
value: 'ellipsisStart'
|
|
2009
2090
|
}, {
|
|
2010
|
-
label: i18n_1._('Off'),
|
|
2091
|
+
label: (0, i18n_1._)('Off'),
|
|
2011
2092
|
value: 'ellipsisOff'
|
|
2012
2093
|
}]
|
|
2013
2094
|
},
|
|
@@ -2016,15 +2097,15 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
|
|
|
2016
2097
|
return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
|
|
2017
2098
|
}
|
|
2018
2099
|
}], [{
|
|
2019
|
-
label: i18n_1._('Legend mode'),
|
|
2100
|
+
label: (0, i18n_1._)('Legend mode'),
|
|
2020
2101
|
option: 'legendMode',
|
|
2021
2102
|
editor: 'editor.radioBar',
|
|
2022
2103
|
editorProps: {
|
|
2023
2104
|
values: [{
|
|
2024
|
-
label: i18n_1._('Standard'),
|
|
2105
|
+
label: (0, i18n_1._)('Standard'),
|
|
2025
2106
|
value: 'standard'
|
|
2026
2107
|
}, {
|
|
2027
|
-
label: i18n_1._('Compare series'),
|
|
2108
|
+
label: (0, i18n_1._)('Compare series'),
|
|
2028
2109
|
value: 'seriesCompare'
|
|
2029
2110
|
}]
|
|
2030
2111
|
},
|
|
@@ -2037,16 +2118,19 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
|
|
|
2037
2118
|
/**
|
|
2038
2119
|
* visualization configuration
|
|
2039
2120
|
*/
|
|
2121
|
+
|
|
2040
2122
|
var config = {
|
|
2041
2123
|
/**
|
|
2042
2124
|
* unique viz key
|
|
2043
2125
|
*/
|
|
2044
2126
|
key: 'splunk.area',
|
|
2127
|
+
|
|
2045
2128
|
/**
|
|
2046
2129
|
* viz name
|
|
2047
2130
|
*/
|
|
2048
|
-
name: i18n_1._('Area'),
|
|
2131
|
+
name: (0, i18n_1._)('Area'),
|
|
2049
2132
|
category: VizCategory_1.VizCategory.TRENDS,
|
|
2133
|
+
|
|
2050
2134
|
/**
|
|
2051
2135
|
* viz icon
|
|
2052
2136
|
*/
|
|
@@ -2077,7 +2161,7 @@ var config = {
|
|
|
2077
2161
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER, VizBehavior_1.VizBehavior.EVENTS],
|
|
2078
2162
|
themes: themes
|
|
2079
2163
|
};
|
|
2080
|
-
exports.default = configUtils_1.enhanceConfig(config);
|
|
2164
|
+
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
2081
2165
|
|
|
2082
2166
|
/***/ })
|
|
2083
2167
|
/******/ ]);
|