@splunk/visualizations 26.4.1 → 27.1.0

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