@splunk/visualizations 26.4.1 → 27.0.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 +1262 -1600
- package/Area.config.js.map +7 -1
- package/Area.js +3002 -4930
- package/Area.js.map +7 -1
- package/Bar.config.js +1247 -1574
- package/Bar.config.js.map +7 -1
- package/Bar.js +2921 -4843
- package/Bar.js.map +7 -1
- package/Bubble.config.js +896 -1213
- package/Bubble.config.js.map +7 -1
- package/Bubble.js +2517 -4483
- package/Bubble.js.map +7 -1
- package/ChoroplethSvg.config.js +282 -582
- package/ChoroplethSvg.config.js.map +7 -1
- package/ChoroplethSvg.js +2004 -3810
- package/ChoroplethSvg.js.map +7 -1
- package/Column.config.js +1208 -1541
- package/Column.config.js.map +7 -1
- package/Column.js +2930 -4886
- package/Column.js.map +7 -1
- package/Ellipse.config.js +443 -774
- package/Ellipse.config.js.map +7 -1
- package/Ellipse.js +1651 -3341
- package/Ellipse.js.map +7 -1
- package/Events.config.js +207 -492
- package/Events.config.js.map +7 -1
- package/Events.js +2615 -4649
- package/Events.js.map +7 -1
- package/FillerGauge.config.js +420 -775
- package/FillerGauge.config.js.map +7 -1
- package/FillerGauge.js +2137 -4578
- package/FillerGauge.js.map +7 -1
- package/Image.config.js +144 -411
- package/Image.config.js.map +7 -1
- package/Image.js +1395 -3048
- package/Image.js.map +7 -1
- package/Line.config.js +1278 -1625
- package/Line.config.js.map +7 -1
- package/Line.js +2954 -4926
- package/Line.js.map +7 -1
- package/LinkGraph.config.js +390 -632
- package/LinkGraph.config.js.map +7 -1
- package/LinkGraph.js +5243 -6190
- package/LinkGraph.js.map +7 -1
- package/MIGRATION.md +6 -0
- package/Map.config.js +501 -801
- package/Map.config.js.map +7 -1
- package/Map.js +3369 -5676
- package/Map.js.map +7 -1
- package/Markdown.config.js +232 -528
- package/Markdown.config.js.map +7 -1
- package/Markdown.js +1645 -3216
- package/Markdown.js.map +7 -1
- package/MarkerGauge.config.js +308 -613
- package/MarkerGauge.config.js.map +7 -1
- package/MarkerGauge.js +2189 -4535
- package/MarkerGauge.js.map +7 -1
- package/ParallelCoordinates.config.js +282 -581
- package/ParallelCoordinates.config.js.map +7 -1
- package/ParallelCoordinates.js +2023 -4720
- package/ParallelCoordinates.js.map +7 -1
- package/Pie.config.js +278 -547
- package/Pie.config.js.map +7 -1
- package/Pie.js +1996 -3990
- package/Pie.js.map +7 -1
- package/Punchcard.config.js +291 -578
- package/Punchcard.config.js.map +7 -1
- package/Punchcard.js +2709 -5042
- package/Punchcard.js.map +7 -1
- package/Rectangle.config.js +455 -770
- package/Rectangle.config.js.map +7 -1
- package/Rectangle.js +1638 -3262
- package/Rectangle.js.map +7 -1
- package/Sankey.config.js +291 -626
- package/Sankey.config.js.map +7 -1
- package/Sankey.js +2737 -4909
- package/Sankey.js.map +7 -1
- package/Scatter.config.js +876 -1194
- package/Scatter.config.js.map +7 -1
- package/Scatter.js +2529 -4477
- package/Scatter.js.map +7 -1
- package/SingleValue.config.js +819 -1251
- package/SingleValue.config.js.map +7 -1
- package/SingleValue.js +4203 -7413
- package/SingleValue.js.map +7 -1
- package/SingleValueBasic.js +382 -1527
- package/SingleValueBasic.js.map +7 -1
- package/SingleValueIcon.config.js +781 -1207
- package/SingleValueIcon.config.js.map +7 -1
- package/SingleValueIcon.js +3350 -6285
- package/SingleValueIcon.js.map +7 -1
- package/SingleValueRadial.config.js +708 -1119
- package/SingleValueRadial.config.js.map +7 -1
- package/SingleValueRadial.js +3808 -6965
- package/SingleValueRadial.js.map +7 -1
- package/SparkLine.js +439 -746
- package/SparkLine.js.map +7 -1
- package/Table.config.js +565 -879
- package/Table.config.js.map +7 -1
- package/Table.js +3277 -5381
- package/Table.js.map +7 -1
- package/common/Charting.js +481 -1468
- package/common/Charting.js.map +7 -1
- package/common/ChartingApi.js +46 -170
- package/common/ChartingApi.js.map +7 -1
- package/common/DocExampleWithVizSandbox.js +270 -473
- package/common/DocExampleWithVizSandbox.js.map +7 -1
- package/common/EventsDoc.js +172 -464
- package/common/EventsDoc.js.map +7 -1
- package/common/GaugeMajorTicks.js +249 -347
- package/common/GaugeMajorTicks.js.map +7 -1
- package/common/GaugeValueMarker.js +201 -311
- package/common/GaugeValueMarker.js.map +7 -1
- package/common/OptionsDoc.js +347 -912
- package/common/OptionsDoc.js.map +7 -1
- package/common/OverviewDoc.js +435 -769
- package/common/OverviewDoc.js.map +7 -1
- package/common/SplunkVisualization.js +116 -259
- package/common/SplunkVisualization.js.map +7 -1
- package/common/SplunkVisualizationApi.js +40 -156
- package/common/SplunkVisualizationApi.js.map +7 -1
- package/common/ThemesDoc.js +271 -420
- package/common/ThemesDoc.js.map +7 -1
- package/common/chartingUtils.js +140 -312
- package/common/chartingUtils.js.map +7 -1
- package/common/docUtils.js +148 -266
- package/common/docUtils.js.map +7 -1
- package/common/gaugeUtils.js +280 -808
- package/common/gaugeUtils.js.map +7 -1
- package/common/shapeUtils.js +106 -211
- package/common/shapeUtils.js.map +7 -1
- package/common/utils/configUtils.js +126 -252
- package/common/utils/configUtils.js.map +7 -1
- package/common/utils/dataUtils.js +217 -812
- package/common/utils/dataUtils.js.map +7 -1
- package/common/utils/featureFlagUtils.js +53 -133
- package/common/utils/featureFlagUtils.js.map +7 -1
- package/common/utils/hocUtils.js +32 -122
- package/common/utils/hocUtils.js.map +7 -1
- package/common/utils/mapUtils.js +502 -1337
- package/common/utils/mapUtils.js.map +7 -1
- package/common/utils/singleValueUtils.js +462 -1010
- package/common/utils/singleValueUtils.js.map +7 -1
- package/common/utils/testHelper.js +92 -146
- package/common/utils/testHelper.js.map +7 -1
- package/common/utils/trellisUtils.js +237 -489
- package/common/utils/trellisUtils.js.map +7 -1
- package/common/utils/urlUtils.js +28 -112
- package/common/utils/urlUtils.js.map +7 -1
- package/common/withDashboardViz.js +1168 -2438
- package/common/withDashboardViz.js.map +7 -1
- package/package.json +52 -43
package/Area.config.js
CHANGED
|
@@ -1,1491 +1,1158 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
37
|
-
/******/ __webpack_require__.m = modules;
|
|
38
|
-
/******/
|
|
39
|
-
/******/ // expose the module cache
|
|
40
|
-
/******/ __webpack_require__.c = installedModules;
|
|
41
|
-
/******/
|
|
42
|
-
/******/ // define getter function for harmony exports
|
|
43
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
44
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
45
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
46
|
-
/******/ }
|
|
47
|
-
/******/ };
|
|
48
|
-
/******/
|
|
49
|
-
/******/ // define __esModule on exports
|
|
50
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
51
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
52
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
53
|
-
/******/ }
|
|
54
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
55
|
-
/******/ };
|
|
56
|
-
/******/
|
|
57
|
-
/******/ // create a fake namespace object
|
|
58
|
-
/******/ // mode & 1: value is a module id, require it
|
|
59
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
60
|
-
/******/ // mode & 4: return value when already ns object
|
|
61
|
-
/******/ // mode & 8|1: behave like require
|
|
62
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
63
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
64
|
-
/******/ if(mode & 8) return value;
|
|
65
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
66
|
-
/******/ var ns = Object.create(null);
|
|
67
|
-
/******/ __webpack_require__.r(ns);
|
|
68
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
69
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
70
|
-
/******/ return ns;
|
|
71
|
-
/******/ };
|
|
72
|
-
/******/
|
|
73
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
74
|
-
/******/ __webpack_require__.n = function(module) {
|
|
75
|
-
/******/ var getter = module && module.__esModule ?
|
|
76
|
-
/******/ function getDefault() { return module['default']; } :
|
|
77
|
-
/******/ function getModuleExports() { return module; };
|
|
78
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
79
|
-
/******/ return getter;
|
|
80
|
-
/******/ };
|
|
81
|
-
/******/
|
|
82
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
83
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
84
|
-
/******/
|
|
85
|
-
/******/ // __webpack_public_path__
|
|
86
|
-
/******/ __webpack_require__.p = "";
|
|
87
|
-
/******/
|
|
88
|
-
/******/
|
|
89
|
-
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s = 39);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ([
|
|
94
|
-
/* 0 */
|
|
95
|
-
/***/ (function(module, exports) {
|
|
96
|
-
|
|
97
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
98
|
-
|
|
99
|
-
/***/ }),
|
|
100
|
-
/* 1 */
|
|
101
|
-
/***/ (function(module, exports) {
|
|
102
|
-
|
|
103
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
104
|
-
|
|
105
|
-
/***/ }),
|
|
106
|
-
/* 2 */
|
|
107
|
-
/***/ (function(module, exports) {
|
|
108
|
-
|
|
109
|
-
module.exports = require("@splunk/visualization-schemas");
|
|
110
|
-
|
|
111
|
-
/***/ }),
|
|
112
|
-
/* 3 */
|
|
113
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
114
|
-
|
|
115
|
-
"use strict";
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
119
|
-
|
|
120
|
-
Object.defineProperty(exports, "__esModule", {
|
|
121
|
-
value: true
|
|
122
|
-
});
|
|
123
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
124
|
-
|
|
125
|
-
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
129
|
-
|
|
130
|
-
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function get() {
|
|
133
|
-
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
/**
|
|
137
|
-
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
138
|
-
* this function also collapse all editor panels
|
|
139
|
-
* @param vizConfig a Visualization Config
|
|
140
|
-
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
141
|
-
* and containing `open: false` for all editor panels in editorConfig
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
function enhanceConfig(vizConfig) {
|
|
145
|
-
var enhancedConfig = Object.assign({}, vizConfig);
|
|
146
|
-
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
147
|
-
return Object.assign(Object.assign({}, config), {
|
|
148
|
-
open: config.open || false
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
return enhancedConfig;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
exports.enhanceConfig = enhanceConfig;
|
|
155
|
-
/**
|
|
156
|
-
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
157
|
-
* Created for editor unit tests
|
|
158
|
-
* @param vizConfig a Visualization Config
|
|
159
|
-
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
function uncollapseEditorConfig(vizConfig) {
|
|
163
|
-
var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
|
|
164
|
-
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
165
|
-
return Object.assign(Object.assign({}, config), {
|
|
166
|
-
open: true
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
return editorPanelUncollapsedConfig;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
173
|
-
|
|
174
|
-
function isDynamicOption(option) {
|
|
175
|
-
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
179
|
-
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
183
|
-
* 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
|
|
184
|
-
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
185
|
-
* the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
|
|
186
|
-
*
|
|
187
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
function hasCompatibleContexts(vizContext, presetContext) {
|
|
191
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
192
|
-
return presetContextKeys.every(function (contextKey) {
|
|
193
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
202
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
203
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
204
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
209
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
210
|
-
*
|
|
211
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
212
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
213
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
218
|
-
return presets.find(function (preset) {
|
|
219
|
-
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
220
|
-
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
221
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
222
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
223
|
-
// if not, then the preset is invalid in config.ts
|
|
224
|
-
|
|
225
|
-
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
226
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
exports.getInitialPreset = getInitialPreset;
|
|
231
|
-
/**
|
|
232
|
-
* generates number precision values for a Select editor
|
|
233
|
-
*
|
|
234
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
235
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
236
|
-
*/
|
|
237
|
-
|
|
238
|
-
function generatePrecisionValues(numPrecisionValues) {
|
|
239
|
-
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
240
|
-
return {
|
|
241
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
242
|
-
value: i
|
|
243
|
-
};
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
exports.generatePrecisionValues = generatePrecisionValues;
|
|
248
|
-
/**
|
|
249
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
250
|
-
*
|
|
251
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
252
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
253
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
254
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
255
|
-
*/
|
|
256
|
-
|
|
257
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
258
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
259
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
1
|
+
/* Copyright © 2020 Splunk Inc.
|
|
2
|
+
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
3
|
+
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defProps = Object.defineProperties;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
12
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
|
+
var __spreadValues = (a, b) => {
|
|
16
|
+
for (var prop in b || (b = {}))
|
|
17
|
+
if (__hasOwnProp.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
if (__getOwnPropSymbols)
|
|
20
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
21
|
+
if (__propIsEnum.call(b, prop))
|
|
22
|
+
__defNormalProp(a, prop, b[prop]);
|
|
23
|
+
}
|
|
24
|
+
return a;
|
|
25
|
+
};
|
|
26
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __export = (target, all) => {
|
|
28
|
+
for (var name in all)
|
|
29
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
30
|
+
};
|
|
31
|
+
var __copyProps = (to, from, except, desc) => {
|
|
32
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
33
|
+
for (let key of __getOwnPropNames(from))
|
|
34
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
35
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
260
36
|
}
|
|
261
|
-
|
|
262
|
-
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
37
|
+
return to;
|
|
263
38
|
};
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
Object.defineProperty(exports, "__esModule", {
|
|
282
|
-
value: true
|
|
39
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
40
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
41
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
42
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
43
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
44
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
45
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
46
|
+
mod
|
|
47
|
+
));
|
|
48
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
49
|
+
|
|
50
|
+
// src/Area/config.ts
|
|
51
|
+
var config_exports = {};
|
|
52
|
+
__export(config_exports, {
|
|
53
|
+
default: () => config_default
|
|
283
54
|
});
|
|
284
|
-
exports
|
|
285
|
-
var VizBehavior;
|
|
286
|
-
|
|
287
|
-
(function (VizBehavior) {
|
|
288
|
-
/**
|
|
289
|
-
* Dynamic Options Behavior.
|
|
290
|
-
* This allows visualization options to be powered by data
|
|
291
|
-
*
|
|
292
|
-
* **Example**
|
|
293
|
-
*
|
|
294
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
295
|
-
* would configure sparklineValues with an array of data points
|
|
296
|
-
* coming from the first series in the primary datasource
|
|
297
|
-
*
|
|
298
|
-
*/
|
|
299
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
300
|
-
VizBehavior["EVENTS"] = "events";
|
|
301
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
302
|
-
/**
|
|
303
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
304
|
-
* missing.
|
|
305
|
-
* @type {string}
|
|
306
|
-
*/
|
|
307
|
-
|
|
308
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
309
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
310
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
311
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
312
|
-
|
|
313
|
-
/***/ }),
|
|
314
|
-
/* 7 */
|
|
315
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
55
|
+
module.exports = __toCommonJS(config_exports);
|
|
316
56
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
value: true
|
|
57
|
+
// esm-externals:@splunk/visualization-icons
|
|
58
|
+
var visualization_icons_exports = {};
|
|
59
|
+
__export(visualization_icons_exports, {
|
|
60
|
+
default: () => visualization_icons_default
|
|
322
61
|
});
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
332
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
333
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
334
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
335
|
-
VizCategory["MISC"] = "misc";
|
|
336
|
-
VizCategory["FLOW"] = "Flow";
|
|
337
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
338
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
339
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
340
|
-
|
|
341
|
-
/***/ }),
|
|
342
|
-
/* 8 */
|
|
343
|
-
/***/ (function(module, exports) {
|
|
344
|
-
|
|
345
|
-
module.exports = require("@splunk/themes/pick");
|
|
346
|
-
|
|
347
|
-
/***/ }),
|
|
348
|
-
/* 9 */
|
|
349
|
-
/***/ (function(module, exports) {
|
|
350
|
-
|
|
351
|
-
module.exports = require("@splunk/themes/variables");
|
|
352
|
-
|
|
353
|
-
/***/ }),
|
|
354
|
-
/* 10 */
|
|
355
|
-
/***/ (function(module, exports) {
|
|
356
|
-
|
|
357
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
358
|
-
|
|
359
|
-
/***/ }),
|
|
360
|
-
/* 11 */
|
|
361
|
-
/***/ (function(module, exports) {
|
|
362
|
-
|
|
363
|
-
module.exports = require("@splunk/visualization-icons");
|
|
364
|
-
|
|
365
|
-
/***/ }),
|
|
366
|
-
/* 12 */
|
|
367
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
368
|
-
|
|
369
|
-
"use strict";
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
Object.defineProperty(exports, "__esModule", {
|
|
373
|
-
value: true
|
|
62
|
+
var defaultImport = __toESM(require("@splunk/visualization-icons"));
|
|
63
|
+
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
64
|
+
var visualization_icons_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
65
|
+
|
|
66
|
+
// esm-externals:@splunk/visualization-icons/placeholders
|
|
67
|
+
var placeholders_exports = {};
|
|
68
|
+
__export(placeholders_exports, {
|
|
69
|
+
default: () => placeholders_default
|
|
374
70
|
});
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
label: (0, i18n_1._)(label || 'Background color'),
|
|
384
|
-
option: 'backgroundColor',
|
|
385
|
-
editor: 'editor.color',
|
|
386
|
-
editorProps: {
|
|
387
|
-
labelPosition: labelPosition || 'top',
|
|
388
|
-
themes: themes
|
|
389
|
-
}
|
|
390
|
-
}];
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
exports.default = background;
|
|
394
|
-
|
|
395
|
-
/***/ }),
|
|
396
|
-
/* 13 */,
|
|
397
|
-
/* 14 */
|
|
398
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
399
|
-
|
|
400
|
-
"use strict";
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
404
|
-
|
|
405
|
-
Object.defineProperty(exports, "__esModule", {
|
|
406
|
-
value: true
|
|
71
|
+
var defaultImport2 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
72
|
+
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
73
|
+
var placeholders_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
74
|
+
|
|
75
|
+
// esm-externals:@splunk/visualization-schemas
|
|
76
|
+
var visualization_schemas_exports = {};
|
|
77
|
+
__export(visualization_schemas_exports, {
|
|
78
|
+
default: () => visualization_schemas_default
|
|
407
79
|
});
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
var
|
|
411
|
-
|
|
412
|
-
|
|
80
|
+
var defaultImport3 = __toESM(require("@splunk/visualization-schemas"));
|
|
81
|
+
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
82
|
+
var visualization_schemas_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
83
|
+
|
|
84
|
+
// esm-externals:@splunk/ui-utils/i18n
|
|
85
|
+
var i18n_exports = {};
|
|
86
|
+
__export(i18n_exports, {
|
|
87
|
+
default: () => i18n_default
|
|
88
|
+
});
|
|
89
|
+
var defaultImport4 = __toESM(require("@splunk/ui-utils/i18n"));
|
|
90
|
+
__reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
|
|
91
|
+
var i18n_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
92
|
+
|
|
93
|
+
// esm-externals:@splunk/themes/pick
|
|
94
|
+
var pick_exports = {};
|
|
95
|
+
__export(pick_exports, {
|
|
96
|
+
default: () => pick_default
|
|
97
|
+
});
|
|
98
|
+
var defaultImport5 = __toESM(require("@splunk/themes/pick"));
|
|
99
|
+
__reExport(pick_exports, require("@splunk/themes/pick"));
|
|
100
|
+
var pick_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
101
|
+
|
|
102
|
+
// esm-externals:@splunk/themes/variables
|
|
103
|
+
var variables_exports = {};
|
|
104
|
+
__export(variables_exports, {
|
|
105
|
+
default: () => variables_default
|
|
106
|
+
});
|
|
107
|
+
var defaultImport6 = __toESM(require("@splunk/themes/variables"));
|
|
108
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
109
|
+
var variables_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
110
|
+
|
|
111
|
+
// esm-externals:lodash
|
|
112
|
+
var lodash_exports = {};
|
|
113
|
+
__export(lodash_exports, {
|
|
114
|
+
default: () => lodash_default
|
|
115
|
+
});
|
|
116
|
+
var defaultImport7 = __toESM(require("lodash"));
|
|
117
|
+
__reExport(lodash_exports, require("lodash"));
|
|
118
|
+
var lodash_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
|
|
119
|
+
|
|
120
|
+
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
121
|
+
var configUtils_exports = {};
|
|
122
|
+
__export(configUtils_exports, {
|
|
123
|
+
default: () => configUtils_default
|
|
124
|
+
});
|
|
125
|
+
var defaultImport8 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
126
|
+
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
127
|
+
var configUtils_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
|
|
413
128
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
editorProps: {
|
|
421
|
-
dataSourceKey: 'primary',
|
|
422
|
-
supportsDSL: true,
|
|
423
|
-
expectedDataPrimitive: ['series']
|
|
424
|
-
}
|
|
425
|
-
}], [{
|
|
426
|
-
label: (0, i18n_1._)('Y'),
|
|
427
|
-
option: 'y',
|
|
428
|
-
editor: 'editor.columnMultiSelector',
|
|
429
|
-
editorProps: {
|
|
430
|
-
dataSourceKey: 'primary',
|
|
431
|
-
filterByTypes: ['number'],
|
|
432
|
-
supportsDSL: true,
|
|
433
|
-
expectedDataPrimitive: ['series', 'frame']
|
|
434
|
-
}
|
|
435
|
-
}], [{
|
|
436
|
-
label: (0, i18n_1._)('Result limit'),
|
|
437
|
-
option: 'resultLimit',
|
|
438
|
-
editor: 'editor.number',
|
|
439
|
-
editorProps: {
|
|
440
|
-
dataSourceKey: 'primary'
|
|
129
|
+
// src/common/utils/configUtils.ts
|
|
130
|
+
function enhanceConfig(vizConfig) {
|
|
131
|
+
const enhancedConfig = __spreadValues({}, vizConfig);
|
|
132
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
133
|
+
(config2) => {
|
|
134
|
+
return __spreadProps(__spreadValues({}, config2), { open: config2.open || false });
|
|
441
135
|
}
|
|
442
|
-
|
|
136
|
+
);
|
|
137
|
+
return enhancedConfig;
|
|
138
|
+
}
|
|
139
|
+
var insertLayout = (layout, index, ...layoutItems) => [
|
|
140
|
+
// copy part of the array before the specified index
|
|
141
|
+
...layout.slice(0, index),
|
|
142
|
+
// inserted layout item
|
|
143
|
+
...layoutItems,
|
|
144
|
+
// copy part of the array after the specified index
|
|
145
|
+
...layout.slice(index)
|
|
146
|
+
];
|
|
147
|
+
|
|
148
|
+
// src/common/editorConfig/AxesChartDataConfig.ts
|
|
149
|
+
var AxesChartDataConfig = {
|
|
150
|
+
label: (0, i18n_exports._)("Data configurations"),
|
|
151
|
+
layout: [
|
|
152
|
+
[
|
|
153
|
+
{
|
|
154
|
+
label: (0, i18n_exports._)("X"),
|
|
155
|
+
option: "x",
|
|
156
|
+
editor: "editor.columnSelector",
|
|
157
|
+
editorProps: {
|
|
158
|
+
dataSourceKey: "primary",
|
|
159
|
+
supportsDSL: true,
|
|
160
|
+
expectedDataPrimitive: ["series"]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
{
|
|
166
|
+
label: (0, i18n_exports._)("Y"),
|
|
167
|
+
option: "y",
|
|
168
|
+
editor: "editor.columnMultiSelector",
|
|
169
|
+
editorProps: {
|
|
170
|
+
dataSourceKey: "primary",
|
|
171
|
+
filterByTypes: ["number"],
|
|
172
|
+
supportsDSL: true,
|
|
173
|
+
expectedDataPrimitive: ["series", "frame"]
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
{
|
|
179
|
+
label: (0, i18n_exports._)("Result limit"),
|
|
180
|
+
option: "resultLimit",
|
|
181
|
+
editor: "editor.number",
|
|
182
|
+
editorProps: {
|
|
183
|
+
dataSourceKey: "primary"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
]
|
|
443
188
|
};
|
|
444
|
-
|
|
189
|
+
var AxesChartDataConfigBar = {
|
|
445
190
|
label: AxesChartDataConfig.label,
|
|
446
191
|
// insert Y2 after Y
|
|
447
|
-
layout:
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
192
|
+
layout: insertLayout(AxesChartDataConfig.layout, 2, [
|
|
193
|
+
{
|
|
194
|
+
label: (0, i18n_exports._)("Y2"),
|
|
195
|
+
option: "y2",
|
|
196
|
+
editor: "editor.columnMultiSelector",
|
|
197
|
+
editorProps: {
|
|
198
|
+
dataSourceKey: "primary",
|
|
199
|
+
filterByTypes: ["number"],
|
|
200
|
+
supportsDSL: true,
|
|
201
|
+
expectedDataPrimitive: ["series", "frame"]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
])
|
|
458
205
|
};
|
|
459
|
-
|
|
206
|
+
var AxesChartDataConfigScatter = {
|
|
460
207
|
label: AxesChartDataConfig.label,
|
|
461
|
-
layout: [
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
208
|
+
layout: [
|
|
209
|
+
[
|
|
210
|
+
{
|
|
211
|
+
label: (0, i18n_exports._)("X"),
|
|
212
|
+
option: "x",
|
|
213
|
+
editor: "editor.columnSelector",
|
|
214
|
+
editorProps: {
|
|
215
|
+
dataSourceKey: "primary",
|
|
216
|
+
supportsDSL: true,
|
|
217
|
+
expectedDataPrimitive: ["series"]
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
[
|
|
222
|
+
{
|
|
223
|
+
label: (0, i18n_exports._)("Y"),
|
|
224
|
+
option: "y",
|
|
225
|
+
editor: "editor.columnSelector",
|
|
226
|
+
editorProps: {
|
|
227
|
+
dataSourceKey: "primary",
|
|
228
|
+
filterByTypes: ["number"],
|
|
229
|
+
supportsDSL: true,
|
|
230
|
+
expectedDataPrimitive: ["series"]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
[
|
|
235
|
+
{
|
|
236
|
+
label: (0, i18n_exports._)("Category"),
|
|
237
|
+
option: "category",
|
|
238
|
+
editor: "editor.columnSelector",
|
|
239
|
+
editorProps: {
|
|
240
|
+
dataSourceKey: "primary",
|
|
241
|
+
supportsDSL: true,
|
|
242
|
+
expectedDataPrimitive: ["series"]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
[
|
|
247
|
+
{
|
|
248
|
+
label: (0, i18n_exports._)("Result limit"),
|
|
249
|
+
option: "resultLimit",
|
|
250
|
+
editor: "editor.number",
|
|
251
|
+
editorProps: {
|
|
252
|
+
dataSourceKey: "primary"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
]
|
|
497
257
|
};
|
|
498
|
-
|
|
499
|
-
label:
|
|
258
|
+
var AxesChartDataConfigBubble = {
|
|
259
|
+
label: AxesChartDataConfigScatter.label,
|
|
500
260
|
// layout: insert Size after Category
|
|
501
|
-
layout:
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
261
|
+
layout: insertLayout(AxesChartDataConfigScatter.layout, 3, [
|
|
262
|
+
{
|
|
263
|
+
label: (0, i18n_exports._)("Size"),
|
|
264
|
+
option: "size",
|
|
265
|
+
editor: "editor.columnSelector",
|
|
266
|
+
editorProps: {
|
|
267
|
+
dataSourceKey: "primary",
|
|
268
|
+
supportsDSL: true,
|
|
269
|
+
expectedDataPrimitive: ["series"]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
])
|
|
511
273
|
};
|
|
512
|
-
|
|
513
|
-
label:
|
|
514
|
-
layout: [
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
274
|
+
var AxesChartDataConfigAreaColumnLine = {
|
|
275
|
+
label: AxesChartDataConfigBar.label,
|
|
276
|
+
layout: [
|
|
277
|
+
...AxesChartDataConfigBar.layout,
|
|
278
|
+
[
|
|
279
|
+
{
|
|
280
|
+
label: (0, i18n_exports._)("Annotation x"),
|
|
281
|
+
option: "annotationX",
|
|
282
|
+
editor: "editor.columnSelector",
|
|
283
|
+
editorProps: {
|
|
284
|
+
dataSourceKey: "annotation",
|
|
285
|
+
supportsDSL: true,
|
|
286
|
+
expectedDataPrimitive: ["series"]
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
{
|
|
292
|
+
label: (0, i18n_exports._)("Annotation labels"),
|
|
293
|
+
option: "annotationLabel",
|
|
294
|
+
editor: "editor.columnSelector",
|
|
295
|
+
editorProps: {
|
|
296
|
+
dataSourceKey: "annotation",
|
|
297
|
+
supportsDSL: true,
|
|
298
|
+
expectedDataPrimitive: ["series"]
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
]
|
|
533
303
|
};
|
|
534
|
-
exports.default = AxesChartDataConfig;
|
|
535
|
-
|
|
536
|
-
/***/ }),
|
|
537
|
-
/* 15 */
|
|
538
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
539
304
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
305
|
+
// src/common/editorConfig/AxesChartDataDisplay.ts
|
|
306
|
+
var AxesChartDataDisplayLine = {
|
|
307
|
+
label: (0, i18n_exports._)("Data display"),
|
|
308
|
+
layout: [
|
|
309
|
+
[
|
|
310
|
+
{
|
|
311
|
+
label: (0, i18n_exports._)("Null value display"),
|
|
312
|
+
option: "nullValueDisplay",
|
|
313
|
+
editor: "editor.radioBar",
|
|
314
|
+
editorProps: {
|
|
315
|
+
values: [
|
|
316
|
+
{ label: (0, i18n_exports._)("Gaps"), value: "gaps" },
|
|
317
|
+
{ label: (0, i18n_exports._)("Zero"), value: "zero" },
|
|
318
|
+
{ label: (0, i18n_exports._)("Connect"), value: "connect" }
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
[
|
|
324
|
+
{
|
|
325
|
+
label: (0, i18n_exports._)("Data value display"),
|
|
326
|
+
option: "dataValuesDisplay",
|
|
327
|
+
editor: "editor.radioBar",
|
|
328
|
+
editorProps: {
|
|
329
|
+
values: [
|
|
330
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" },
|
|
331
|
+
{ label: (0, i18n_exports._)("All"), value: "all" },
|
|
332
|
+
{ label: (0, i18n_exports._)("Min/Max"), value: "minmax" }
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
[
|
|
338
|
+
{
|
|
339
|
+
label: (0, i18n_exports._)("Overlay fields"),
|
|
340
|
+
option: "overlayFields",
|
|
341
|
+
editor: "editor.columnMultiSelectionByFieldNameEditor",
|
|
342
|
+
editorProps: {
|
|
343
|
+
filterByTypes: ["number"]
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
{
|
|
349
|
+
label: (0, i18n_exports._)("Split series"),
|
|
350
|
+
option: "showSplitSeries",
|
|
351
|
+
editor: "editor.toggle"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
[
|
|
355
|
+
{
|
|
356
|
+
label: (0, i18n_exports._)("Independent y-axis for split series"),
|
|
357
|
+
option: "showIndependentYRanges",
|
|
358
|
+
editor: "editor.checkbox",
|
|
359
|
+
showEditor: ({ options }) => options.showSplitSeries
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
]
|
|
565
363
|
};
|
|
566
|
-
var
|
|
567
|
-
label:
|
|
568
|
-
layout: [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
364
|
+
var AxesChartDataDisplay = {
|
|
365
|
+
label: AxesChartDataDisplayLine.label,
|
|
366
|
+
layout: [
|
|
367
|
+
[
|
|
368
|
+
{
|
|
369
|
+
label: (0, i18n_exports._)("Stack mode"),
|
|
370
|
+
option: "stackMode",
|
|
371
|
+
editor: "editor.select",
|
|
372
|
+
editorProps: {
|
|
373
|
+
values: [
|
|
374
|
+
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
375
|
+
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
376
|
+
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
...AxesChartDataDisplayLine.layout
|
|
382
|
+
]
|
|
579
383
|
};
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
editor: 'editor.select',
|
|
601
|
-
editorProps: {
|
|
602
|
-
values: [{
|
|
603
|
-
label: (0, i18n_1._)('Right'),
|
|
604
|
-
value: 'right'
|
|
605
|
-
}, {
|
|
606
|
-
label: (0, i18n_1._)('Left'),
|
|
607
|
-
value: 'left'
|
|
608
|
-
}, {
|
|
609
|
-
label: (0, i18n_1._)('Top'),
|
|
610
|
-
value: 'top'
|
|
611
|
-
}, {
|
|
612
|
-
label: (0, i18n_1._)('Bottom'),
|
|
613
|
-
value: 'bottom'
|
|
614
|
-
}, {
|
|
615
|
-
label: (0, i18n_1._)('Off'),
|
|
616
|
-
value: 'off'
|
|
617
|
-
}]
|
|
618
|
-
}
|
|
619
|
-
}], [{
|
|
620
|
-
label: (0, i18n_1._)('Legend truncation'),
|
|
621
|
-
option: 'legendTruncation',
|
|
622
|
-
editor: 'editor.radioBar',
|
|
623
|
-
editorProps: {
|
|
624
|
-
values: [{
|
|
625
|
-
label: (0, i18n_1._)('A...'),
|
|
626
|
-
value: 'ellipsisEnd'
|
|
627
|
-
}, {
|
|
628
|
-
label: (0, i18n_1._)('A...Z'),
|
|
629
|
-
value: 'ellipsisMiddle'
|
|
630
|
-
}, {
|
|
631
|
-
label: (0, i18n_1._)('...Z'),
|
|
632
|
-
value: 'ellipsisStart'
|
|
633
|
-
}, {
|
|
634
|
-
label: (0, i18n_1._)('Off'),
|
|
635
|
-
value: 'ellipsisOff'
|
|
636
|
-
}]
|
|
637
|
-
},
|
|
638
|
-
showEditor: function showEditor(_ref) {
|
|
639
|
-
var options = _ref.options;
|
|
640
|
-
return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
|
|
641
|
-
}
|
|
642
|
-
}]]
|
|
384
|
+
var AxesChartDataDisplayBar = {
|
|
385
|
+
label: AxesChartDataDisplayLine.label,
|
|
386
|
+
layout: [
|
|
387
|
+
[
|
|
388
|
+
{
|
|
389
|
+
label: (0, i18n_exports._)("Stack mode"),
|
|
390
|
+
option: "stackMode",
|
|
391
|
+
editor: "editor.select",
|
|
392
|
+
editorProps: {
|
|
393
|
+
values: [
|
|
394
|
+
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
395
|
+
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
396
|
+
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
// remove nullValueDisplay
|
|
402
|
+
...(0, lodash_exports.drop)(AxesChartDataDisplayLine.layout)
|
|
403
|
+
]
|
|
643
404
|
};
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
option: 'xAxisTitleVisibility',
|
|
669
|
-
editor: 'editor.toggle'
|
|
670
|
-
}], [{
|
|
671
|
-
label: (0, i18n_1._)('Axis title text'),
|
|
672
|
-
option: 'xAxisTitleText',
|
|
673
|
-
editor: 'editor.text',
|
|
674
|
-
showEditor: function showEditor(_ref) {
|
|
675
|
-
var options = _ref.options;
|
|
676
|
-
return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
|
|
677
|
-
}
|
|
678
|
-
}], [{
|
|
679
|
-
label: (0, i18n_1._)('Label visibility'),
|
|
680
|
-
option: 'xAxisLabelVisibility',
|
|
681
|
-
editor: 'editor.radioBar',
|
|
682
|
-
editorProps: {
|
|
683
|
-
values: [{
|
|
684
|
-
label: (0, i18n_1._)('Auto'),
|
|
685
|
-
value: 'auto'
|
|
686
|
-
}, {
|
|
687
|
-
label: (0, i18n_1._)('Show'),
|
|
688
|
-
value: 'show'
|
|
689
|
-
}, {
|
|
690
|
-
label: (0, i18n_1._)('Hide'),
|
|
691
|
-
value: 'hide'
|
|
692
|
-
}]
|
|
693
|
-
}
|
|
694
|
-
}]]
|
|
405
|
+
var AxesChartDataDisplayColumn = {
|
|
406
|
+
label: AxesChartDataDisplayBar.label,
|
|
407
|
+
layout: [
|
|
408
|
+
...insertLayout(AxesChartDataDisplayBar.layout, 2, [
|
|
409
|
+
{
|
|
410
|
+
label: (0, i18n_exports._)("Show tooltip on hover"),
|
|
411
|
+
option: "showTooltip",
|
|
412
|
+
editor: "editor.checkbox"
|
|
413
|
+
}
|
|
414
|
+
]),
|
|
415
|
+
[
|
|
416
|
+
{
|
|
417
|
+
label: (0, i18n_exports._)("Column grouping mode"),
|
|
418
|
+
option: "columnGrouping",
|
|
419
|
+
editor: "editor.radioBar",
|
|
420
|
+
editorProps: {
|
|
421
|
+
values: [
|
|
422
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
423
|
+
{ label: (0, i18n_exports._)("Overlay"), value: "overlay" }
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
]
|
|
695
429
|
};
|
|
696
|
-
var
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
430
|
+
var AxesChartDataDisplay_default = AxesChartDataDisplay;
|
|
431
|
+
|
|
432
|
+
// src/common/editorConfig/BackgroundColor.ts
|
|
433
|
+
var background = ({
|
|
434
|
+
label,
|
|
435
|
+
themes: themes3,
|
|
436
|
+
labelPosition
|
|
437
|
+
}) => [
|
|
438
|
+
{
|
|
439
|
+
label: (0, i18n_exports._)(label || "Background color"),
|
|
440
|
+
option: "backgroundColor",
|
|
441
|
+
editor: "editor.color",
|
|
702
442
|
editorProps: {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
value: -90
|
|
706
|
-
}, {
|
|
707
|
-
label: (0, i18n_1._)('-45'),
|
|
708
|
-
value: -45
|
|
709
|
-
}, {
|
|
710
|
-
label: (0, i18n_1._)('0'),
|
|
711
|
-
value: 0
|
|
712
|
-
}, {
|
|
713
|
-
label: (0, i18n_1._)('45'),
|
|
714
|
-
value: 45
|
|
715
|
-
}, {
|
|
716
|
-
label: (0, i18n_1._)('90'),
|
|
717
|
-
value: 90
|
|
718
|
-
}]
|
|
719
|
-
},
|
|
720
|
-
showEditor: function showEditor(_ref2) {
|
|
721
|
-
var options = _ref2.options;
|
|
722
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
443
|
+
labelPosition: labelPosition || "top",
|
|
444
|
+
themes: themes3
|
|
723
445
|
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
editor: 'editor.number',
|
|
728
|
-
editorProps: {
|
|
729
|
-
min: 1,
|
|
730
|
-
max: 3
|
|
731
|
-
},
|
|
732
|
-
showEditor: function showEditor(_ref3) {
|
|
733
|
-
var options = _ref3.options;
|
|
734
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
735
|
-
}
|
|
736
|
-
}], [{
|
|
737
|
-
label: (0, i18n_1._)('Axis line visibility'),
|
|
738
|
-
option: 'xAxisLineVisibility',
|
|
739
|
-
editor: 'editor.checkbox'
|
|
740
|
-
}], [{
|
|
741
|
-
label: (0, i18n_1._)('Major gridlines'),
|
|
742
|
-
option: 'showXMajorGridLines',
|
|
743
|
-
editor: 'editor.checkbox'
|
|
744
|
-
}], [{
|
|
745
|
-
label: (0, i18n_1._)('Major tick visibility'),
|
|
746
|
-
option: 'xAxisMajorTickVisibility',
|
|
747
|
-
editor: 'editor.radioBar',
|
|
748
|
-
editorProps: {
|
|
749
|
-
values: [{
|
|
750
|
-
label: (0, i18n_1._)('Auto'),
|
|
751
|
-
value: 'auto'
|
|
752
|
-
}, {
|
|
753
|
-
label: (0, i18n_1._)('Show'),
|
|
754
|
-
value: 'show'
|
|
755
|
-
}, {
|
|
756
|
-
label: (0, i18n_1._)('Hide'),
|
|
757
|
-
value: 'hide'
|
|
758
|
-
}]
|
|
759
|
-
}
|
|
760
|
-
}], [{
|
|
761
|
-
label: (0, i18n_1._)('Major tick size (px)'),
|
|
762
|
-
option: 'xAxisMajorTickSize',
|
|
763
|
-
editor: 'editor.slider',
|
|
764
|
-
editorProps: {
|
|
765
|
-
min: 0,
|
|
766
|
-
max: 10,
|
|
767
|
-
step: 1
|
|
768
|
-
},
|
|
769
|
-
showEditor: function showEditor(_ref4) {
|
|
770
|
-
var options = _ref4.options;
|
|
771
|
-
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
772
|
-
}
|
|
773
|
-
}]])
|
|
774
|
-
};
|
|
775
|
-
exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
776
|
-
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
777
|
-
layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
|
|
778
|
-
label: (0, i18n_1._)('Axis scale'),
|
|
779
|
-
option: 'xAxisScale',
|
|
780
|
-
editor: 'editor.radioBar',
|
|
781
|
-
editorProps: {
|
|
782
|
-
values: [{
|
|
783
|
-
label: (0, i18n_1._)('Linear'),
|
|
784
|
-
value: 'linear'
|
|
785
|
-
}, {
|
|
786
|
-
label: (0, i18n_1._)('Log'),
|
|
787
|
-
value: 'log'
|
|
788
|
-
}]
|
|
789
|
-
}
|
|
790
|
-
}])), [[{
|
|
791
|
-
label: (0, i18n_1._)('Label rotation'),
|
|
792
|
-
option: 'xAxisLabelRotation',
|
|
793
|
-
editor: 'editor.select',
|
|
794
|
-
editorProps: {
|
|
795
|
-
values: [{
|
|
796
|
-
label: (0, i18n_1._)('-90'),
|
|
797
|
-
value: -90
|
|
798
|
-
}, {
|
|
799
|
-
label: (0, i18n_1._)('-45'),
|
|
800
|
-
value: -45
|
|
801
|
-
}, {
|
|
802
|
-
label: (0, i18n_1._)('0'),
|
|
803
|
-
value: 0
|
|
804
|
-
}, {
|
|
805
|
-
label: (0, i18n_1._)('45'),
|
|
806
|
-
value: 45
|
|
807
|
-
}, {
|
|
808
|
-
label: (0, i18n_1._)('90'),
|
|
809
|
-
value: 90
|
|
810
|
-
}]
|
|
811
|
-
},
|
|
812
|
-
showEditor: function showEditor(_ref5) {
|
|
813
|
-
var options = _ref5.options;
|
|
814
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
815
|
-
}
|
|
816
|
-
}], [{
|
|
817
|
-
label: (0, i18n_1._)('Round axis labels'),
|
|
818
|
-
option: 'showRoundedXAxisLabels',
|
|
819
|
-
editor: 'editor.checkbox',
|
|
820
|
-
showEditor: function showEditor(_ref6) {
|
|
821
|
-
var options = _ref6.options;
|
|
822
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
823
|
-
}
|
|
824
|
-
}], [{
|
|
825
|
-
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
826
|
-
option: 'xAxisAbbreviation',
|
|
827
|
-
editor: 'editor.checkbox',
|
|
828
|
-
showEditor: function showEditor(_ref7) {
|
|
829
|
-
var options = _ref7.options;
|
|
830
|
-
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
831
|
-
}
|
|
832
|
-
}], [{
|
|
833
|
-
label: (0, i18n_1._)('Include zero'),
|
|
834
|
-
option: 'showXAxisWithZero',
|
|
835
|
-
editor: 'editor.checkbox'
|
|
836
|
-
}], [{
|
|
837
|
-
label: (0, i18n_1._)('Extend to whole grid'),
|
|
838
|
-
option: 'showXAxisExtendedRange',
|
|
839
|
-
editor: 'editor.checkbox'
|
|
840
|
-
}], [{
|
|
841
|
-
label: (0, i18n_1._)('Minimum axis value'),
|
|
842
|
-
option: 'xAxisMin',
|
|
843
|
-
editor: 'editor.number'
|
|
844
|
-
}, {
|
|
845
|
-
label: (0, i18n_1._)('Maximum axis value'),
|
|
846
|
-
option: 'xAxisMax',
|
|
847
|
-
editor: 'editor.number'
|
|
848
|
-
}], [{
|
|
849
|
-
label: (0, i18n_1._)('Axis line visibility'),
|
|
850
|
-
option: 'xAxisLineVisibility',
|
|
851
|
-
editor: 'editor.checkbox'
|
|
852
|
-
}], // this option is disabled for bubble and scatter
|
|
853
|
-
// [
|
|
854
|
-
// {
|
|
855
|
-
// label: _('Major gridlines'),
|
|
856
|
-
// option: 'showXMajorGridLines',
|
|
857
|
-
// editor: 'editor.checkbox',
|
|
858
|
-
// },
|
|
859
|
-
// ],
|
|
860
|
-
[{
|
|
861
|
-
label: (0, i18n_1._)('Major tick visibility'),
|
|
862
|
-
option: 'xAxisMajorTickVisibility',
|
|
863
|
-
editor: 'editor.radioBar',
|
|
864
|
-
editorProps: {
|
|
865
|
-
values: [{
|
|
866
|
-
label: (0, i18n_1._)('Auto'),
|
|
867
|
-
value: 'auto'
|
|
868
|
-
}, {
|
|
869
|
-
label: (0, i18n_1._)('Show'),
|
|
870
|
-
value: 'show'
|
|
871
|
-
}, {
|
|
872
|
-
label: (0, i18n_1._)('Hide'),
|
|
873
|
-
value: 'hide'
|
|
874
|
-
}]
|
|
875
|
-
}
|
|
876
|
-
}], [{
|
|
877
|
-
label: (0, i18n_1._)('Major tick size (px)'),
|
|
878
|
-
option: 'xAxisMajorTickSize',
|
|
879
|
-
editor: 'editor.slider',
|
|
880
|
-
editorProps: {
|
|
881
|
-
min: 0,
|
|
882
|
-
max: 10,
|
|
883
|
-
step: 1
|
|
884
|
-
},
|
|
885
|
-
showEditor: function showEditor(_ref8) {
|
|
886
|
-
var options = _ref8.options;
|
|
887
|
-
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
888
|
-
}
|
|
889
|
-
}], [{
|
|
890
|
-
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
891
|
-
option: 'xAxisMajorTickInterval',
|
|
892
|
-
editor: 'editor.number',
|
|
893
|
-
showEditor: function showEditor(_ref9) {
|
|
894
|
-
var options = _ref9.options;
|
|
895
|
-
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
896
|
-
}
|
|
897
|
-
}], [{
|
|
898
|
-
label: (0, i18n_1._)('Minor gridlines'),
|
|
899
|
-
option: 'showXMinorGridLines',
|
|
900
|
-
editor: 'editor.checkbox'
|
|
901
|
-
}], [{
|
|
902
|
-
label: (0, i18n_1._)('Minor tick visibility'),
|
|
903
|
-
option: 'xAxisMinorTickVisibility',
|
|
904
|
-
editor: 'editor.radioBar',
|
|
905
|
-
editorProps: {
|
|
906
|
-
values: [{
|
|
907
|
-
label: (0, i18n_1._)('Auto'),
|
|
908
|
-
value: 'auto'
|
|
909
|
-
}, {
|
|
910
|
-
label: (0, i18n_1._)('Show'),
|
|
911
|
-
value: 'show'
|
|
912
|
-
}, {
|
|
913
|
-
label: (0, i18n_1._)('Hide'),
|
|
914
|
-
value: 'hide'
|
|
915
|
-
}]
|
|
916
|
-
}
|
|
917
|
-
}], [{
|
|
918
|
-
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
919
|
-
option: 'xAxisMinorTickSize',
|
|
920
|
-
editor: 'editor.slider',
|
|
921
|
-
editorProps: {
|
|
922
|
-
min: 0,
|
|
923
|
-
max: 10,
|
|
924
|
-
step: 1
|
|
925
|
-
},
|
|
926
|
-
showEditor: function showEditor(_ref10) {
|
|
927
|
-
var options = _ref10.options;
|
|
928
|
-
return options.xAxisMinorTickVisibility === 'show' || options.xAxisMinorTickVisibility === 'auto' || options.xAxisMinorTickVisibility === undefined;
|
|
929
|
-
}
|
|
930
|
-
}]])
|
|
931
|
-
};
|
|
932
|
-
exports.default = AxesChartXGridAndLabels;
|
|
933
|
-
|
|
934
|
-
/***/ }),
|
|
935
|
-
/* 18 */
|
|
936
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
937
|
-
|
|
938
|
-
"use strict";
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
Object.defineProperty(exports, "__esModule", {
|
|
942
|
-
value: true
|
|
943
|
-
});
|
|
944
|
-
|
|
945
|
-
var i18n_1 = __webpack_require__(0);
|
|
446
|
+
}
|
|
447
|
+
];
|
|
448
|
+
var BackgroundColor_default = background;
|
|
946
449
|
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}], [{
|
|
954
|
-
label: (0, i18n_1._)('Axis title text'),
|
|
955
|
-
option: 'yAxisTitleText',
|
|
956
|
-
editor: 'editor.text',
|
|
957
|
-
showEditor: function showEditor(_ref) {
|
|
958
|
-
var options = _ref.options;
|
|
959
|
-
return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
|
|
960
|
-
}
|
|
961
|
-
}], [{
|
|
962
|
-
label: (0, i18n_1._)('Scale'),
|
|
963
|
-
option: 'yAxisScale',
|
|
964
|
-
editor: 'editor.radioBar',
|
|
965
|
-
editorProps: {
|
|
966
|
-
values: [{
|
|
967
|
-
label: (0, i18n_1._)('Linear'),
|
|
968
|
-
value: 'linear'
|
|
969
|
-
}, {
|
|
970
|
-
label: (0, i18n_1._)('Log'),
|
|
971
|
-
value: 'log'
|
|
972
|
-
}]
|
|
973
|
-
}
|
|
974
|
-
}], [{
|
|
975
|
-
label: (0, i18n_1._)('Label visibility'),
|
|
976
|
-
option: 'yAxisLabelVisibility',
|
|
977
|
-
editor: 'editor.radioBar',
|
|
978
|
-
editorProps: {
|
|
979
|
-
values: [{
|
|
980
|
-
label: (0, i18n_1._)('Auto'),
|
|
981
|
-
value: 'auto'
|
|
982
|
-
}, {
|
|
983
|
-
label: (0, i18n_1._)('Show'),
|
|
984
|
-
value: 'show'
|
|
985
|
-
}, {
|
|
986
|
-
label: (0, i18n_1._)('Hide'),
|
|
987
|
-
value: 'hide'
|
|
988
|
-
}]
|
|
989
|
-
}
|
|
990
|
-
}], [{
|
|
991
|
-
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
992
|
-
option: 'yAxisAbbreviation',
|
|
993
|
-
editor: 'editor.checkbox',
|
|
994
|
-
showEditor: function showEditor(_ref2) {
|
|
995
|
-
var options = _ref2.options;
|
|
996
|
-
return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
|
|
997
|
-
}
|
|
998
|
-
}], [{
|
|
999
|
-
label: (0, i18n_1._)('Include zero'),
|
|
1000
|
-
option: 'showYAxisWithZero',
|
|
1001
|
-
editor: 'editor.checkbox'
|
|
1002
|
-
}], [{
|
|
1003
|
-
label: (0, i18n_1._)('Extend to whole grid'),
|
|
1004
|
-
option: 'showYAxisExtendedRange',
|
|
1005
|
-
editor: 'editor.checkbox'
|
|
1006
|
-
}], [{
|
|
1007
|
-
label: (0, i18n_1._)('Minimum axis value'),
|
|
1008
|
-
option: 'yAxisMin',
|
|
1009
|
-
editor: 'editor.number'
|
|
1010
|
-
}, {
|
|
1011
|
-
label: (0, i18n_1._)('Maximum axis value'),
|
|
1012
|
-
option: 'yAxisMax',
|
|
1013
|
-
editor: 'editor.number'
|
|
1014
|
-
}], [{
|
|
1015
|
-
label: (0, i18n_1._)('Axis line visibility'),
|
|
1016
|
-
option: 'yAxisLineVisibility',
|
|
1017
|
-
editor: 'editor.checkbox'
|
|
1018
|
-
}], [{
|
|
1019
|
-
label: (0, i18n_1._)('Major gridlines'),
|
|
1020
|
-
option: 'showYMajorGridLines',
|
|
1021
|
-
editor: 'editor.checkbox'
|
|
1022
|
-
}], [{
|
|
1023
|
-
label: (0, i18n_1._)('Major tick visibility'),
|
|
1024
|
-
option: 'yAxisMajorTickVisibility',
|
|
1025
|
-
editor: 'editor.radioBar',
|
|
1026
|
-
editorProps: {
|
|
1027
|
-
values: [{
|
|
1028
|
-
label: (0, i18n_1._)('Auto'),
|
|
1029
|
-
value: 'auto'
|
|
1030
|
-
}, {
|
|
1031
|
-
label: (0, i18n_1._)('Show'),
|
|
1032
|
-
value: 'show'
|
|
1033
|
-
}, {
|
|
1034
|
-
label: (0, i18n_1._)('Hide'),
|
|
1035
|
-
value: 'hide'
|
|
1036
|
-
}]
|
|
1037
|
-
}
|
|
1038
|
-
}], [{
|
|
1039
|
-
label: (0, i18n_1._)('Major tick size (px)'),
|
|
1040
|
-
option: 'yAxisMajorTickSize',
|
|
1041
|
-
editor: 'editor.slider',
|
|
1042
|
-
editorProps: {
|
|
1043
|
-
min: 0,
|
|
1044
|
-
max: 10,
|
|
1045
|
-
step: 1
|
|
1046
|
-
},
|
|
1047
|
-
showEditor: function showEditor(_ref3) {
|
|
1048
|
-
var options = _ref3.options;
|
|
1049
|
-
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
1050
|
-
}
|
|
1051
|
-
}], [{
|
|
1052
|
-
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
1053
|
-
option: 'yAxisMajorTickInterval',
|
|
1054
|
-
editor: 'editor.number',
|
|
1055
|
-
showEditor: function showEditor(_ref4) {
|
|
1056
|
-
var options = _ref4.options;
|
|
1057
|
-
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
1058
|
-
}
|
|
1059
|
-
}], [{
|
|
1060
|
-
label: (0, i18n_1._)('Minor gridlines'),
|
|
1061
|
-
option: 'showYMinorGridLines',
|
|
1062
|
-
editor: 'editor.checkbox'
|
|
1063
|
-
}], [{
|
|
1064
|
-
label: (0, i18n_1._)('Minor tick visibility'),
|
|
1065
|
-
option: 'yAxisMinorTickVisibility',
|
|
1066
|
-
editor: 'editor.radioBar',
|
|
1067
|
-
editorProps: {
|
|
1068
|
-
values: [{
|
|
1069
|
-
label: (0, i18n_1._)('Auto'),
|
|
1070
|
-
value: 'auto'
|
|
1071
|
-
}, {
|
|
1072
|
-
label: (0, i18n_1._)('Show'),
|
|
1073
|
-
value: 'show'
|
|
1074
|
-
}, {
|
|
1075
|
-
label: (0, i18n_1._)('Hide'),
|
|
1076
|
-
value: 'hide'
|
|
1077
|
-
}]
|
|
1078
|
-
}
|
|
1079
|
-
}], [{
|
|
1080
|
-
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
1081
|
-
option: 'yAxisMinorTickSize',
|
|
1082
|
-
editor: 'editor.slider',
|
|
1083
|
-
editorProps: {
|
|
1084
|
-
min: 0,
|
|
1085
|
-
max: 10,
|
|
1086
|
-
step: 1
|
|
450
|
+
// src/common/editorConfig/AxesChartColorAndStyle.ts
|
|
451
|
+
var themes = {
|
|
452
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
453
|
+
enterprise: {
|
|
454
|
+
dark: variables_default.black(props),
|
|
455
|
+
light: variables_default.backgroundColor(props)
|
|
1087
456
|
},
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
return options.yAxisMinorTickVisibility === 'show' || options.yAxisMinorTickVisibility === 'auto' || options.yAxisMinorTickVisibility === undefined;
|
|
1091
|
-
}
|
|
1092
|
-
}]]
|
|
457
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
458
|
+
})(props)
|
|
1093
459
|
};
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
var configUtils_1 = __webpack_require__(3);
|
|
460
|
+
var AxesChartColorAndStyle = {
|
|
461
|
+
label: (0, i18n_exports._)("Color and style"),
|
|
462
|
+
layout: [
|
|
463
|
+
BackgroundColor_default({ themes }),
|
|
464
|
+
[
|
|
465
|
+
{
|
|
466
|
+
label: (0, i18n_exports._)("Series colors"),
|
|
467
|
+
option: "seriesColors",
|
|
468
|
+
editor: "editor.seriesColors"
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
[
|
|
472
|
+
{
|
|
473
|
+
label: (0, i18n_exports._)("Series colors by field name"),
|
|
474
|
+
option: "seriesColorsByField",
|
|
475
|
+
editor: "editor.seriesColorsByField"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
]
|
|
479
|
+
};
|
|
480
|
+
var AxesChartColorAndStyle_default = AxesChartColorAndStyle;
|
|
1116
481
|
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
editor: 'editor.columnMultiSelectionByFieldNameEditor',
|
|
1155
|
-
editorProps: {
|
|
1156
|
-
filterByTypes: ['number']
|
|
1157
|
-
}
|
|
1158
|
-
}], [{
|
|
1159
|
-
label: (0, i18n_1._)('Split series'),
|
|
1160
|
-
option: 'showSplitSeries',
|
|
1161
|
-
editor: 'editor.toggle'
|
|
1162
|
-
}], [{
|
|
1163
|
-
label: (0, i18n_1._)('Independent y-axis for split series'),
|
|
1164
|
-
option: 'showIndependentYRanges',
|
|
1165
|
-
editor: 'editor.checkbox',
|
|
1166
|
-
showEditor: function showEditor(_ref) {
|
|
1167
|
-
var options = _ref.options;
|
|
1168
|
-
return options.showSplitSeries;
|
|
1169
|
-
}
|
|
1170
|
-
}]]
|
|
482
|
+
// src/common/editorConfig/AxesChartLegend.ts
|
|
483
|
+
var AxesChartLegend = {
|
|
484
|
+
label: (0, i18n_exports._)("Legend"),
|
|
485
|
+
layout: [
|
|
486
|
+
[
|
|
487
|
+
{
|
|
488
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
489
|
+
option: "legendDisplay",
|
|
490
|
+
editor: "editor.select",
|
|
491
|
+
editorProps: {
|
|
492
|
+
values: [
|
|
493
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
494
|
+
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
495
|
+
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
496
|
+
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
497
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
[
|
|
503
|
+
{
|
|
504
|
+
label: (0, i18n_exports._)("Legend truncation"),
|
|
505
|
+
option: "legendTruncation",
|
|
506
|
+
editor: "editor.radioBar",
|
|
507
|
+
editorProps: {
|
|
508
|
+
values: [
|
|
509
|
+
{ label: (0, i18n_exports._)("A..."), value: "ellipsisEnd" },
|
|
510
|
+
{ label: (0, i18n_exports._)("A...Z"), value: "ellipsisMiddle" },
|
|
511
|
+
{ label: (0, i18n_exports._)("...Z"), value: "ellipsisStart" },
|
|
512
|
+
{ label: (0, i18n_exports._)("Off"), value: "ellipsisOff" }
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
]
|
|
1171
519
|
};
|
|
1172
|
-
var
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
label: (0,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
520
|
+
var AxesChartLegend_default = AxesChartLegend;
|
|
521
|
+
|
|
522
|
+
// src/common/editorConfig/AxesChartXGridAndLabels.ts
|
|
523
|
+
var AxesChartXGridAndLabelsCommon = {
|
|
524
|
+
label: (0, i18n_exports._)("X-axis grid and labels"),
|
|
525
|
+
layout: [
|
|
526
|
+
[
|
|
527
|
+
{
|
|
528
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
529
|
+
option: "xAxisTitleVisibility",
|
|
530
|
+
editor: "editor.toggle"
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
[
|
|
534
|
+
{
|
|
535
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
536
|
+
option: "xAxisTitleText",
|
|
537
|
+
editor: "editor.text",
|
|
538
|
+
showEditor: ({ options }) => options.xAxisTitleVisibility === "show" || options.xAxisTitleVisibility === void 0
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
[
|
|
542
|
+
{
|
|
543
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
544
|
+
option: "xAxisLabelVisibility",
|
|
545
|
+
editor: "editor.radioBar",
|
|
546
|
+
editorProps: {
|
|
547
|
+
values: [
|
|
548
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
549
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
550
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
]
|
|
1191
556
|
};
|
|
1192
|
-
|
|
1193
|
-
label:
|
|
1194
|
-
layout: [
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
557
|
+
var AxesChartXGridAndLabels = {
|
|
558
|
+
label: AxesChartXGridAndLabelsCommon.label,
|
|
559
|
+
layout: [
|
|
560
|
+
...AxesChartXGridAndLabelsCommon.layout,
|
|
561
|
+
[
|
|
562
|
+
{
|
|
563
|
+
label: (0, i18n_exports._)("Label rotation"),
|
|
564
|
+
option: "xAxisLabelRotation",
|
|
565
|
+
editor: "editor.select",
|
|
566
|
+
editorProps: {
|
|
567
|
+
values: [
|
|
568
|
+
{ label: (0, i18n_exports._)("-90"), value: -90 },
|
|
569
|
+
{ label: (0, i18n_exports._)("-45"), value: -45 },
|
|
570
|
+
{ label: (0, i18n_exports._)("0"), value: 0 },
|
|
571
|
+
{ label: (0, i18n_exports._)("45"), value: 45 },
|
|
572
|
+
{ label: (0, i18n_exports._)("90"), value: 90 }
|
|
573
|
+
]
|
|
574
|
+
},
|
|
575
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
[
|
|
579
|
+
{
|
|
580
|
+
label: (0, i18n_exports._)("Number of time label parts"),
|
|
581
|
+
option: "xAxisMaxLabelParts",
|
|
582
|
+
editor: "editor.number",
|
|
583
|
+
editorProps: {
|
|
584
|
+
min: 1,
|
|
585
|
+
max: 3
|
|
586
|
+
},
|
|
587
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
[
|
|
591
|
+
{
|
|
592
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
593
|
+
option: "xAxisLineVisibility",
|
|
594
|
+
editor: "editor.checkbox"
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
[
|
|
598
|
+
{
|
|
599
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
600
|
+
option: "showXMajorGridLines",
|
|
601
|
+
editor: "editor.checkbox"
|
|
602
|
+
}
|
|
603
|
+
],
|
|
604
|
+
[
|
|
605
|
+
{
|
|
606
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
607
|
+
option: "xAxisMajorTickVisibility",
|
|
608
|
+
editor: "editor.radioBar",
|
|
609
|
+
editorProps: {
|
|
610
|
+
values: [
|
|
611
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
612
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
613
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
614
|
+
]
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
],
|
|
618
|
+
[
|
|
619
|
+
{
|
|
620
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
621
|
+
option: "xAxisMajorTickSize",
|
|
622
|
+
editor: "editor.slider",
|
|
623
|
+
editorProps: {
|
|
624
|
+
min: 0,
|
|
625
|
+
max: 10,
|
|
626
|
+
step: 1
|
|
627
|
+
},
|
|
628
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
]
|
|
1211
632
|
};
|
|
1212
|
-
|
|
1213
|
-
label:
|
|
1214
|
-
layout: [
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
633
|
+
var AxesChartXGridAndLabelsBubbleScatter = {
|
|
634
|
+
label: AxesChartXGridAndLabelsCommon.label,
|
|
635
|
+
layout: [
|
|
636
|
+
...insertLayout(AxesChartXGridAndLabelsCommon.layout, 2, [
|
|
637
|
+
{
|
|
638
|
+
label: (0, i18n_exports._)("Axis scale"),
|
|
639
|
+
option: "xAxisScale",
|
|
640
|
+
editor: "editor.radioBar",
|
|
641
|
+
editorProps: {
|
|
642
|
+
values: [
|
|
643
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
644
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
645
|
+
]
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
]),
|
|
649
|
+
[
|
|
650
|
+
{
|
|
651
|
+
label: (0, i18n_exports._)("Label rotation"),
|
|
652
|
+
option: "xAxisLabelRotation",
|
|
653
|
+
editor: "editor.select",
|
|
654
|
+
editorProps: {
|
|
655
|
+
values: [
|
|
656
|
+
{ label: (0, i18n_exports._)("-90"), value: -90 },
|
|
657
|
+
{ label: (0, i18n_exports._)("-45"), value: -45 },
|
|
658
|
+
{ label: (0, i18n_exports._)("0"), value: 0 },
|
|
659
|
+
{ label: (0, i18n_exports._)("45"), value: 45 },
|
|
660
|
+
{ label: (0, i18n_exports._)("90"), value: 90 }
|
|
661
|
+
]
|
|
662
|
+
},
|
|
663
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
[
|
|
667
|
+
{
|
|
668
|
+
label: (0, i18n_exports._)("Round axis labels"),
|
|
669
|
+
option: "showRoundedXAxisLabels",
|
|
670
|
+
editor: "editor.checkbox",
|
|
671
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
672
|
+
}
|
|
673
|
+
],
|
|
674
|
+
[
|
|
675
|
+
{
|
|
676
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
677
|
+
option: "xAxisAbbreviation",
|
|
678
|
+
editor: "editor.checkbox",
|
|
679
|
+
showEditor: ({ options }) => options.xAxisLabelVisibility === "show" || options.xAxisLabelVisibility === "auto" || options.xAxisLabelVisibility === void 0
|
|
680
|
+
}
|
|
681
|
+
],
|
|
682
|
+
[
|
|
683
|
+
{
|
|
684
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
685
|
+
option: "showXAxisWithZero",
|
|
686
|
+
editor: "editor.checkbox"
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
[
|
|
690
|
+
{
|
|
691
|
+
label: (0, i18n_exports._)("Extend to whole grid"),
|
|
692
|
+
option: "showXAxisExtendedRange",
|
|
693
|
+
editor: "editor.checkbox"
|
|
694
|
+
}
|
|
695
|
+
],
|
|
696
|
+
[
|
|
697
|
+
{
|
|
698
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
699
|
+
option: "xAxisMin",
|
|
700
|
+
editor: "editor.number"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
704
|
+
option: "xAxisMax",
|
|
705
|
+
editor: "editor.number"
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
[
|
|
709
|
+
{
|
|
710
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
711
|
+
option: "xAxisLineVisibility",
|
|
712
|
+
editor: "editor.checkbox"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
// this option is disabled for bubble and scatter
|
|
716
|
+
// [
|
|
717
|
+
// {
|
|
718
|
+
// label: _('Major gridlines'),
|
|
719
|
+
// option: 'showXMajorGridLines',
|
|
720
|
+
// editor: 'editor.checkbox',
|
|
721
|
+
// },
|
|
722
|
+
// ],
|
|
723
|
+
[
|
|
724
|
+
{
|
|
725
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
726
|
+
option: "xAxisMajorTickVisibility",
|
|
727
|
+
editor: "editor.radioBar",
|
|
728
|
+
editorProps: {
|
|
729
|
+
values: [
|
|
730
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
731
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
732
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
733
|
+
]
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
[
|
|
738
|
+
{
|
|
739
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
740
|
+
option: "xAxisMajorTickSize",
|
|
741
|
+
editor: "editor.slider",
|
|
742
|
+
editorProps: {
|
|
743
|
+
min: 0,
|
|
744
|
+
max: 10,
|
|
745
|
+
step: 1
|
|
746
|
+
},
|
|
747
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
748
|
+
}
|
|
749
|
+
],
|
|
750
|
+
[
|
|
751
|
+
{
|
|
752
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
753
|
+
option: "xAxisMajorTickInterval",
|
|
754
|
+
editor: "editor.number",
|
|
755
|
+
showEditor: ({ options }) => options.xAxisMajorTickVisibility === "show" || options.xAxisMajorTickVisibility === "auto" || options.xAxisMajorTickVisibility === void 0
|
|
756
|
+
}
|
|
757
|
+
],
|
|
758
|
+
[
|
|
759
|
+
{
|
|
760
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
761
|
+
option: "showXMinorGridLines",
|
|
762
|
+
editor: "editor.checkbox"
|
|
763
|
+
}
|
|
764
|
+
],
|
|
765
|
+
[
|
|
766
|
+
{
|
|
767
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
768
|
+
option: "xAxisMinorTickVisibility",
|
|
769
|
+
editor: "editor.radioBar",
|
|
770
|
+
editorProps: {
|
|
771
|
+
values: [
|
|
772
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
773
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
774
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
775
|
+
]
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
[
|
|
780
|
+
{
|
|
781
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
782
|
+
option: "xAxisMinorTickSize",
|
|
783
|
+
editor: "editor.slider",
|
|
784
|
+
editorProps: {
|
|
785
|
+
min: 0,
|
|
786
|
+
max: 10,
|
|
787
|
+
step: 1
|
|
788
|
+
},
|
|
789
|
+
showEditor: ({ options }) => options.xAxisMinorTickVisibility === "show" || options.xAxisMinorTickVisibility === "auto" || options.xAxisMinorTickVisibility === void 0
|
|
790
|
+
}
|
|
791
|
+
]
|
|
792
|
+
]
|
|
1232
793
|
};
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
/***/ }),
|
|
1236
|
-
/* 21 */
|
|
1237
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1238
|
-
|
|
1239
|
-
"use strict";
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1243
|
-
value: true
|
|
1244
|
-
});
|
|
794
|
+
var AxesChartXGridAndLabels_default = AxesChartXGridAndLabels;
|
|
1245
795
|
|
|
1246
|
-
|
|
796
|
+
// src/common/editorConfig/AxesChartYGridAndLabels.ts
|
|
797
|
+
var AxesChartYGridAndLabels = {
|
|
798
|
+
label: (0, i18n_exports._)("Y-axis grid and labels"),
|
|
799
|
+
layout: [
|
|
800
|
+
[
|
|
801
|
+
{
|
|
802
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
803
|
+
option: "yAxisTitleVisibility",
|
|
804
|
+
editor: "editor.toggle"
|
|
805
|
+
}
|
|
806
|
+
],
|
|
807
|
+
[
|
|
808
|
+
{
|
|
809
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
810
|
+
option: "yAxisTitleText",
|
|
811
|
+
editor: "editor.text",
|
|
812
|
+
showEditor: ({ options }) => options.yAxisTitleVisibility === "show" || options.yAxisTitleVisibility === void 0
|
|
813
|
+
}
|
|
814
|
+
],
|
|
815
|
+
[
|
|
816
|
+
{
|
|
817
|
+
label: (0, i18n_exports._)("Scale"),
|
|
818
|
+
option: "yAxisScale",
|
|
819
|
+
editor: "editor.radioBar",
|
|
820
|
+
editorProps: {
|
|
821
|
+
values: [
|
|
822
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
823
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
],
|
|
828
|
+
[
|
|
829
|
+
{
|
|
830
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
831
|
+
option: "yAxisLabelVisibility",
|
|
832
|
+
editor: "editor.radioBar",
|
|
833
|
+
editorProps: {
|
|
834
|
+
values: [
|
|
835
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
836
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
837
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
838
|
+
]
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
],
|
|
842
|
+
[
|
|
843
|
+
{
|
|
844
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
845
|
+
option: "yAxisAbbreviation",
|
|
846
|
+
editor: "editor.checkbox",
|
|
847
|
+
showEditor: ({ options }) => options.yAxisLabelVisibility === "show" || options.yAxisLabelVisibility === "auto" || options.yAxisLabelVisibility === void 0
|
|
848
|
+
}
|
|
849
|
+
],
|
|
850
|
+
[
|
|
851
|
+
{
|
|
852
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
853
|
+
option: "showYAxisWithZero",
|
|
854
|
+
editor: "editor.checkbox"
|
|
855
|
+
}
|
|
856
|
+
],
|
|
857
|
+
[
|
|
858
|
+
{
|
|
859
|
+
label: (0, i18n_exports._)("Extend to whole grid"),
|
|
860
|
+
option: "showYAxisExtendedRange",
|
|
861
|
+
editor: "editor.checkbox"
|
|
862
|
+
}
|
|
863
|
+
],
|
|
864
|
+
[
|
|
865
|
+
{
|
|
866
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
867
|
+
option: "yAxisMin",
|
|
868
|
+
editor: "editor.number"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
872
|
+
option: "yAxisMax",
|
|
873
|
+
editor: "editor.number"
|
|
874
|
+
}
|
|
875
|
+
],
|
|
876
|
+
[
|
|
877
|
+
{
|
|
878
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
879
|
+
option: "yAxisLineVisibility",
|
|
880
|
+
editor: "editor.checkbox"
|
|
881
|
+
}
|
|
882
|
+
],
|
|
883
|
+
[
|
|
884
|
+
{
|
|
885
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
886
|
+
option: "showYMajorGridLines",
|
|
887
|
+
editor: "editor.checkbox"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
[
|
|
891
|
+
{
|
|
892
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
893
|
+
option: "yAxisMajorTickVisibility",
|
|
894
|
+
editor: "editor.radioBar",
|
|
895
|
+
editorProps: {
|
|
896
|
+
values: [
|
|
897
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
898
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
899
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
],
|
|
904
|
+
[
|
|
905
|
+
{
|
|
906
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
907
|
+
option: "yAxisMajorTickSize",
|
|
908
|
+
editor: "editor.slider",
|
|
909
|
+
editorProps: {
|
|
910
|
+
min: 0,
|
|
911
|
+
max: 10,
|
|
912
|
+
step: 1
|
|
913
|
+
},
|
|
914
|
+
showEditor: ({ options }) => options.yAxisMajorTickVisibility === "show" || options.yAxisMajorTickVisibility === "auto" || options.yAxisMajorTickVisibility === void 0
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
[
|
|
918
|
+
{
|
|
919
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
920
|
+
option: "yAxisMajorTickInterval",
|
|
921
|
+
editor: "editor.number",
|
|
922
|
+
showEditor: ({ options }) => options.yAxisMajorTickVisibility === "show" || options.yAxisMajorTickVisibility === "auto" || options.yAxisMajorTickVisibility === void 0
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
[
|
|
926
|
+
{
|
|
927
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
928
|
+
option: "showYMinorGridLines",
|
|
929
|
+
editor: "editor.checkbox"
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
[
|
|
933
|
+
{
|
|
934
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
935
|
+
option: "yAxisMinorTickVisibility",
|
|
936
|
+
editor: "editor.radioBar",
|
|
937
|
+
editorProps: {
|
|
938
|
+
values: [
|
|
939
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
940
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
941
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
942
|
+
]
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
],
|
|
946
|
+
[
|
|
947
|
+
{
|
|
948
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
949
|
+
option: "yAxisMinorTickSize",
|
|
950
|
+
editor: "editor.slider",
|
|
951
|
+
editorProps: {
|
|
952
|
+
min: 0,
|
|
953
|
+
max: 10,
|
|
954
|
+
step: 1
|
|
955
|
+
},
|
|
956
|
+
showEditor: ({ options }) => options.yAxisMinorTickVisibility === "show" || options.yAxisMinorTickVisibility === "auto" || options.yAxisMinorTickVisibility === void 0
|
|
957
|
+
}
|
|
958
|
+
]
|
|
959
|
+
]
|
|
960
|
+
};
|
|
961
|
+
var AxesChartYGridAndLabels_default = AxesChartYGridAndLabels;
|
|
1247
962
|
|
|
963
|
+
// src/common/editorConfig/AxesChartY2GridAndLabels.ts
|
|
1248
964
|
var axesChartY2GridAndLabels = {
|
|
1249
|
-
label: (0,
|
|
1250
|
-
layout: [
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
label: (0,
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
label: (0,
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
965
|
+
label: (0, i18n_exports._)("Y2-axis grid and labels"),
|
|
966
|
+
layout: [
|
|
967
|
+
[
|
|
968
|
+
{
|
|
969
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
970
|
+
option: "y2AxisTitleVisibility",
|
|
971
|
+
editor: "editor.toggle"
|
|
972
|
+
}
|
|
973
|
+
],
|
|
974
|
+
[
|
|
975
|
+
{
|
|
976
|
+
label: (0, i18n_exports._)("Axis title"),
|
|
977
|
+
option: "y2AxisTitleText",
|
|
978
|
+
editor: "editor.text",
|
|
979
|
+
showEditor: ({ options }) => options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
[
|
|
983
|
+
{
|
|
984
|
+
label: (0, i18n_exports._)("Show overlays on the y2-axis"),
|
|
985
|
+
option: "showOverlayY2Axis",
|
|
986
|
+
editor: "editor.checkbox",
|
|
987
|
+
showEditor: ({ options }) => Array.isArray(options.overlayFields) && options.overlayFields.length > 0
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
[
|
|
991
|
+
{
|
|
992
|
+
label: (0, i18n_exports._)("Scale"),
|
|
993
|
+
option: "y2AxisScale",
|
|
994
|
+
editor: "editor.radioBar",
|
|
995
|
+
editorProps: {
|
|
996
|
+
values: [
|
|
997
|
+
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
998
|
+
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
999
|
+
]
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
],
|
|
1003
|
+
[
|
|
1004
|
+
{
|
|
1005
|
+
label: (0, i18n_exports._)("Label visibility"),
|
|
1006
|
+
option: "y2AxisLabelVisibility",
|
|
1007
|
+
editor: "editor.radioBar",
|
|
1008
|
+
editorProps: {
|
|
1009
|
+
values: [
|
|
1010
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1011
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1012
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1013
|
+
]
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
],
|
|
1017
|
+
[
|
|
1018
|
+
{
|
|
1019
|
+
label: (0, i18n_exports._)("Round axis labels"),
|
|
1020
|
+
option: "showRoundedY2AxisLabels",
|
|
1021
|
+
editor: "editor.checkbox",
|
|
1022
|
+
showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
|
|
1023
|
+
}
|
|
1024
|
+
],
|
|
1025
|
+
[
|
|
1026
|
+
{
|
|
1027
|
+
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
1028
|
+
option: "y2AxisAbbreviation",
|
|
1029
|
+
editor: "editor.checkbox",
|
|
1030
|
+
showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
[
|
|
1034
|
+
{
|
|
1035
|
+
label: (0, i18n_exports._)("Include zero"),
|
|
1036
|
+
option: "showY2AxisWithZero",
|
|
1037
|
+
editor: "editor.checkbox"
|
|
1038
|
+
}
|
|
1039
|
+
],
|
|
1040
|
+
[
|
|
1041
|
+
{
|
|
1042
|
+
label: (0, i18n_exports._)("Minimum axis value"),
|
|
1043
|
+
option: "y2AxisMin",
|
|
1044
|
+
editor: "editor.number"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
label: (0, i18n_exports._)("Maximum axis value"),
|
|
1048
|
+
option: "y2AxisMax",
|
|
1049
|
+
editor: "editor.number"
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
[
|
|
1053
|
+
{
|
|
1054
|
+
label: (0, i18n_exports._)("Axis line visibility"),
|
|
1055
|
+
option: "y2AxisLineVisibility",
|
|
1056
|
+
editor: "editor.checkbox"
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
[
|
|
1060
|
+
{
|
|
1061
|
+
label: (0, i18n_exports._)("Major gridlines"),
|
|
1062
|
+
option: "showY2MajorGridLines",
|
|
1063
|
+
editor: "editor.checkbox"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
[
|
|
1067
|
+
{
|
|
1068
|
+
label: (0, i18n_exports._)("Major tick visibility"),
|
|
1069
|
+
option: "y2AxisMajorTickVisibility",
|
|
1070
|
+
editor: "editor.radioBar",
|
|
1071
|
+
editorProps: {
|
|
1072
|
+
values: [
|
|
1073
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1074
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1075
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1076
|
+
]
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
[
|
|
1081
|
+
{
|
|
1082
|
+
label: (0, i18n_exports._)("Major tick size (px)"),
|
|
1083
|
+
option: "y2AxisMajorTickSize",
|
|
1084
|
+
editor: "editor.slider",
|
|
1085
|
+
editorProps: {
|
|
1086
|
+
min: 0,
|
|
1087
|
+
max: 10,
|
|
1088
|
+
step: 1
|
|
1089
|
+
},
|
|
1090
|
+
showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
[
|
|
1094
|
+
{
|
|
1095
|
+
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
1096
|
+
option: "y2AxisMajorTickInterval",
|
|
1097
|
+
editor: "editor.number",
|
|
1098
|
+
showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
|
|
1099
|
+
}
|
|
1100
|
+
],
|
|
1101
|
+
[
|
|
1102
|
+
{
|
|
1103
|
+
label: (0, i18n_exports._)("Minor gridlines"),
|
|
1104
|
+
option: "showY2MinorGridLines",
|
|
1105
|
+
editor: "editor.checkbox"
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
[
|
|
1109
|
+
{
|
|
1110
|
+
label: (0, i18n_exports._)("Minor tick visibility"),
|
|
1111
|
+
option: "y2AxisMinorTickVisibility",
|
|
1112
|
+
editor: "editor.radioBar",
|
|
1113
|
+
editorProps: {
|
|
1114
|
+
values: [
|
|
1115
|
+
{ label: (0, i18n_exports._)("Auto"), value: "auto" },
|
|
1116
|
+
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1117
|
+
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1118
|
+
]
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
],
|
|
1122
|
+
[
|
|
1123
|
+
{
|
|
1124
|
+
label: (0, i18n_exports._)("Minor tick size (px)"),
|
|
1125
|
+
option: "y2AxisMinorTickSize",
|
|
1126
|
+
editor: "editor.slider",
|
|
1127
|
+
editorProps: {
|
|
1128
|
+
min: 0,
|
|
1129
|
+
max: 10,
|
|
1130
|
+
step: 1
|
|
1131
|
+
},
|
|
1132
|
+
showEditor: ({ options }) => options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0
|
|
1133
|
+
}
|
|
1134
|
+
]
|
|
1135
|
+
]
|
|
1406
1136
|
};
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
/***/ }),
|
|
1410
|
-
/* 22 */,
|
|
1411
|
-
/* 23 */,
|
|
1412
|
-
/* 24 */,
|
|
1413
|
-
/* 25 */,
|
|
1414
|
-
/* 26 */,
|
|
1415
|
-
/* 27 */,
|
|
1416
|
-
/* 28 */,
|
|
1417
|
-
/* 29 */,
|
|
1418
|
-
/* 30 */,
|
|
1419
|
-
/* 31 */,
|
|
1420
|
-
/* 32 */,
|
|
1421
|
-
/* 33 */,
|
|
1422
|
-
/* 34 */,
|
|
1423
|
-
/* 35 */,
|
|
1424
|
-
/* 36 */,
|
|
1425
|
-
/* 37 */,
|
|
1426
|
-
/* 38 */,
|
|
1427
|
-
/* 39 */
|
|
1428
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1429
|
-
|
|
1430
|
-
"use strict";
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
1434
|
-
|
|
1435
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1436
|
-
value: true
|
|
1437
|
-
});
|
|
1438
|
-
|
|
1439
|
-
var visualization_icons_1 = __webpack_require__(11);
|
|
1440
|
-
|
|
1441
|
-
var placeholders_1 = __webpack_require__(10);
|
|
1442
|
-
|
|
1443
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
1444
|
-
|
|
1445
|
-
var i18n_1 = __webpack_require__(0);
|
|
1446
|
-
|
|
1447
|
-
var pick_1 = __webpack_require__(8);
|
|
1448
|
-
|
|
1449
|
-
var variables_1 = __webpack_require__(9);
|
|
1450
|
-
|
|
1451
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1452
|
-
|
|
1453
|
-
var VizCategory_1 = __webpack_require__(7);
|
|
1454
|
-
|
|
1455
|
-
var configUtils_1 = __webpack_require__(3);
|
|
1456
|
-
|
|
1457
|
-
var AxesChartDataConfig_1 = __webpack_require__(14);
|
|
1458
|
-
|
|
1459
|
-
var AxesChartDataDisplay_1 = __webpack_require__(20);
|
|
1460
|
-
|
|
1461
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(15);
|
|
1462
|
-
|
|
1463
|
-
var AxesChartLegend_1 = __webpack_require__(16);
|
|
1464
|
-
|
|
1465
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(17);
|
|
1466
|
-
|
|
1467
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(18);
|
|
1468
|
-
|
|
1469
|
-
var AxesChartY2GridAndLabels_1 = __webpack_require__(21);
|
|
1137
|
+
var AxesChartY2GridAndLabels_default = axesChartY2GridAndLabels;
|
|
1470
1138
|
|
|
1139
|
+
// src/Area/config.ts
|
|
1471
1140
|
var dataContract = {
|
|
1472
|
-
requiredDataSources: [
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1141
|
+
requiredDataSources: [
|
|
1142
|
+
{
|
|
1143
|
+
name: "primary",
|
|
1144
|
+
description: "DataSource that powers the visualization"
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
optionalDataSources: [
|
|
1148
|
+
{
|
|
1149
|
+
name: "annotation",
|
|
1150
|
+
description: "DataSource that populates event annotations"
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1480
1153
|
initialRequestParams: {
|
|
1481
|
-
primary: {
|
|
1482
|
-
|
|
1483
|
-
count: 10000
|
|
1484
|
-
},
|
|
1485
|
-
annotation: {
|
|
1486
|
-
offset: 0,
|
|
1487
|
-
count: 10000
|
|
1488
|
-
}
|
|
1154
|
+
primary: { offset: 0, count: 1e4 },
|
|
1155
|
+
annotation: { offset: 0, count: 1e4 }
|
|
1489
1156
|
}
|
|
1490
1157
|
};
|
|
1491
1158
|
var size = {
|
|
@@ -1493,174 +1160,169 @@ var size = {
|
|
|
1493
1160
|
initialHeight: 300
|
|
1494
1161
|
};
|
|
1495
1162
|
var defaultContext = {};
|
|
1496
|
-
var
|
|
1497
|
-
defaultBackgroundColor:
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
light: variables_1.default.backgroundColor(props)
|
|
1502
|
-
},
|
|
1503
|
-
prisma: variables_1.default.backgroundColorSidebar(props)
|
|
1504
|
-
})(props);
|
|
1505
|
-
}
|
|
1506
|
-
};
|
|
1507
|
-
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, AxesChartDataDisplay_1.default, {
|
|
1508
|
-
label: AxesChartColorAndStyle_1.default.label,
|
|
1509
|
-
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
|
|
1510
|
-
label: (0, i18n_1._)('Area opacity (0-1)'),
|
|
1511
|
-
option: 'areaOpacity',
|
|
1512
|
-
editor: 'editor.slider',
|
|
1513
|
-
editorProps: {
|
|
1514
|
-
min: 0,
|
|
1515
|
-
max: 1,
|
|
1516
|
-
step: 0.01
|
|
1517
|
-
}
|
|
1518
|
-
}], [{
|
|
1519
|
-
label: (0, i18n_1._)('Show area outlines'),
|
|
1520
|
-
option: 'showLines',
|
|
1521
|
-
editor: 'editor.checkbox'
|
|
1522
|
-
}], [{
|
|
1523
|
-
label: (0, i18n_1._)('Line width'),
|
|
1524
|
-
option: 'lineWidth',
|
|
1525
|
-
editor: 'editor.slider',
|
|
1526
|
-
editorProps: {
|
|
1527
|
-
min: 0.5,
|
|
1528
|
-
max: 8.0,
|
|
1529
|
-
step: 0.5
|
|
1163
|
+
var themes2 = {
|
|
1164
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
1165
|
+
enterprise: {
|
|
1166
|
+
dark: variables_default.black(props),
|
|
1167
|
+
light: variables_default.backgroundColor(props)
|
|
1530
1168
|
},
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1169
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
1170
|
+
})(props)
|
|
1171
|
+
};
|
|
1172
|
+
var editorConfig = [
|
|
1173
|
+
AxesChartDataConfigAreaColumnLine,
|
|
1174
|
+
AxesChartDataDisplay_default,
|
|
1175
|
+
{
|
|
1176
|
+
label: AxesChartColorAndStyle_default.label,
|
|
1177
|
+
layout: [
|
|
1178
|
+
...AxesChartColorAndStyle_default.layout,
|
|
1179
|
+
[
|
|
1180
|
+
{
|
|
1181
|
+
label: (0, i18n_exports._)("Area opacity (0-1)"),
|
|
1182
|
+
option: "areaOpacity",
|
|
1183
|
+
editor: "editor.slider",
|
|
1184
|
+
editorProps: {
|
|
1185
|
+
min: 0,
|
|
1186
|
+
max: 1,
|
|
1187
|
+
step: 0.01
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
],
|
|
1191
|
+
[
|
|
1192
|
+
{
|
|
1193
|
+
label: (0, i18n_exports._)("Show area outlines"),
|
|
1194
|
+
option: "showLines",
|
|
1195
|
+
editor: "editor.checkbox"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
[
|
|
1199
|
+
{
|
|
1200
|
+
label: (0, i18n_exports._)("Line width"),
|
|
1201
|
+
option: "lineWidth",
|
|
1202
|
+
editor: "editor.slider",
|
|
1203
|
+
editorProps: {
|
|
1204
|
+
min: 0.5,
|
|
1205
|
+
max: 8,
|
|
1206
|
+
step: 0.5
|
|
1207
|
+
},
|
|
1208
|
+
showEditor: ({ options }) => Array.isArray(options.overlayFields) && options.overlayFields.length > 0
|
|
1209
|
+
}
|
|
1210
|
+
],
|
|
1211
|
+
[
|
|
1212
|
+
{
|
|
1213
|
+
label: (0, i18n_exports._)("Annotation colors"),
|
|
1214
|
+
option: "annotationColor",
|
|
1215
|
+
editor: "editor.columnSelector",
|
|
1216
|
+
editorProps: {
|
|
1217
|
+
dataSourceKey: "annotation",
|
|
1218
|
+
supportsDSL: true,
|
|
1219
|
+
expectedDataPrimitive: ["series"]
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
]
|
|
1223
|
+
]
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
label: AxesChartLegend_default.label,
|
|
1227
|
+
layout: [
|
|
1228
|
+
[
|
|
1229
|
+
{
|
|
1230
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
1231
|
+
option: "legendDisplay",
|
|
1232
|
+
editor: "editor.select",
|
|
1233
|
+
editorProps: {
|
|
1234
|
+
values: [
|
|
1235
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
1236
|
+
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
1237
|
+
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
1238
|
+
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
1239
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
1240
|
+
],
|
|
1241
|
+
tooltip: (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display')
|
|
1242
|
+
},
|
|
1243
|
+
isDisabled: ({ options }) => options.legendMode === "seriesCompare"
|
|
1244
|
+
}
|
|
1245
|
+
],
|
|
1246
|
+
[
|
|
1247
|
+
{
|
|
1248
|
+
label: (0, i18n_exports._)("Legend truncation"),
|
|
1249
|
+
option: "legendTruncation",
|
|
1250
|
+
editor: "editor.radioBar",
|
|
1251
|
+
editorProps: {
|
|
1252
|
+
values: [
|
|
1253
|
+
{ label: (0, i18n_exports._)("A..."), value: "ellipsisEnd" },
|
|
1254
|
+
{ label: (0, i18n_exports._)("A...Z"), value: "ellipsisMiddle" },
|
|
1255
|
+
{ label: (0, i18n_exports._)("...Z"), value: "ellipsisStart" },
|
|
1256
|
+
{ label: (0, i18n_exports._)("Off"), value: "ellipsisOff" }
|
|
1257
|
+
]
|
|
1258
|
+
},
|
|
1259
|
+
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
|
|
1260
|
+
}
|
|
1261
|
+
],
|
|
1262
|
+
[
|
|
1263
|
+
{
|
|
1264
|
+
label: (0, i18n_exports._)("Legend mode"),
|
|
1265
|
+
option: "legendMode",
|
|
1266
|
+
editor: "editor.radioBar",
|
|
1267
|
+
editorProps: {
|
|
1268
|
+
values: [
|
|
1269
|
+
{ label: (0, i18n_exports._)("Standard"), value: "standard" },
|
|
1270
|
+
{ label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
|
|
1271
|
+
]
|
|
1272
|
+
},
|
|
1273
|
+
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
|
|
1274
|
+
}
|
|
1275
|
+
]
|
|
1276
|
+
]
|
|
1277
|
+
},
|
|
1278
|
+
AxesChartXGridAndLabels_default,
|
|
1279
|
+
AxesChartYGridAndLabels_default,
|
|
1280
|
+
AxesChartY2GridAndLabels_default
|
|
1281
|
+
];
|
|
1620
1282
|
var config = {
|
|
1621
1283
|
/**
|
|
1622
1284
|
* unique viz key
|
|
1623
1285
|
*/
|
|
1624
|
-
key:
|
|
1625
|
-
|
|
1286
|
+
key: "splunk.area",
|
|
1626
1287
|
/**
|
|
1627
1288
|
* viz name
|
|
1628
1289
|
*/
|
|
1629
|
-
name: (0,
|
|
1630
|
-
category:
|
|
1631
|
-
|
|
1290
|
+
name: (0, i18n_exports._)("Area"),
|
|
1291
|
+
category: "Trends" /* TRENDS */,
|
|
1632
1292
|
/**
|
|
1633
1293
|
* viz icon
|
|
1634
1294
|
*/
|
|
1635
|
-
icon:
|
|
1636
|
-
placeholderIcon:
|
|
1637
|
-
dataContract
|
|
1638
|
-
size
|
|
1639
|
-
defaultContext
|
|
1640
|
-
optionsSchema:
|
|
1641
|
-
editorConfig
|
|
1295
|
+
icon: visualization_icons_exports.Area,
|
|
1296
|
+
placeholderIcon: placeholders_exports.Area,
|
|
1297
|
+
dataContract,
|
|
1298
|
+
size,
|
|
1299
|
+
defaultContext,
|
|
1300
|
+
optionsSchema: visualization_schemas_exports.areaOptionsSchema,
|
|
1301
|
+
editorConfig,
|
|
1642
1302
|
events: {
|
|
1643
|
-
|
|
1644
|
-
description:
|
|
1303
|
+
"legend.click": {
|
|
1304
|
+
description: "triggered when user clicks on chart legend"
|
|
1645
1305
|
},
|
|
1646
|
-
|
|
1647
|
-
description:
|
|
1306
|
+
"point.click": {
|
|
1307
|
+
description: "triggered when user clicks on a point in the area chart"
|
|
1648
1308
|
},
|
|
1649
|
-
|
|
1650
|
-
description:
|
|
1309
|
+
"range.select": {
|
|
1310
|
+
description: "triggered when user makes a selection"
|
|
1651
1311
|
},
|
|
1652
|
-
|
|
1653
|
-
description:
|
|
1312
|
+
"point.mouseover": {
|
|
1313
|
+
description: "triggered when user hovers over a data point"
|
|
1654
1314
|
},
|
|
1655
|
-
|
|
1656
|
-
description:
|
|
1315
|
+
"point.mouseout": {
|
|
1316
|
+
description: "triggered when user moves out of a data point"
|
|
1657
1317
|
}
|
|
1658
1318
|
},
|
|
1659
|
-
supports: [
|
|
1660
|
-
|
|
1319
|
+
supports: [
|
|
1320
|
+
"dynamic-options" /* DYNAMIC_OPTIONS */,
|
|
1321
|
+
"placeholder" /* PLACEHOLDER */,
|
|
1322
|
+
"events" /* EVENTS */,
|
|
1323
|
+
"downsampling" /* DOWNSAMPLING */
|
|
1324
|
+
],
|
|
1325
|
+
themes: themes2
|
|
1661
1326
|
};
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
/***/ })
|
|
1665
|
-
/******/ ]);
|
|
1666
|
-
//# sourceMappingURL=Area.config.js.map
|
|
1327
|
+
var config_default = enhanceConfig(config);
|
|
1328
|
+
//# sourceMappingURL=Area.config.js.map
|