@splunk/visualizations 25.13.1 → 26.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/Area.config.js +318 -234
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +1131 -766
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +317 -233
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +1007 -594
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +234 -160
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +912 -509
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +80 -29
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +691 -319
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +308 -223
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +1011 -587
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +127 -62
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +576 -286
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +111 -29
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +998 -527
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +142 -73
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +962 -572
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +70 -26
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +524 -253
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +326 -242
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +1022 -606
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +99 -49
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +1184 -762
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +1082 -0
  46. package/Map.config.js +311 -167
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +1479 -873
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +93 -43
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +603 -332
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +163 -105
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +1025 -628
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +95 -41
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +993 -622
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +99 -46
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +847 -442
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +114 -62
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +1097 -633
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +131 -65
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +580 -288
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +103 -41
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +1128 -586
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +231 -157
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +904 -504
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +212 -142
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +1506 -956
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +294 -233
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +208 -138
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +1375 -914
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +252 -137
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +2194 -1069
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +172 -83
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +123 -70
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +1094 -590
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +147 -75
  103. package/common/Charting.js.map +1 -1
  104. package/common/ChartingApi.js +18 -7
  105. package/common/ChartingApi.js.map +1 -1
  106. package/common/EventsDoc.js +91 -36
  107. package/common/EventsDoc.js.map +1 -1
  108. package/common/GaugeMajorTicks.js +70 -60
  109. package/common/GaugeMajorTicks.js.map +1 -1
  110. package/common/GaugeValueMarker.js +45 -36
  111. package/common/GaugeValueMarker.js.map +1 -1
  112. package/common/OptionsDoc.js +177 -86
  113. package/common/OptionsDoc.js.map +1 -1
  114. package/common/OverviewDoc.js +65 -32
  115. package/common/OverviewDoc.js.map +1 -1
  116. package/common/SplunkVisualization.js +34 -7
  117. package/common/SplunkVisualization.js.map +1 -1
  118. package/common/SplunkVisualizationApi.js +10 -4
  119. package/common/SplunkVisualizationApi.js.map +1 -1
  120. package/common/ThemesDoc.js +41 -28
  121. package/common/ThemesDoc.js.map +1 -1
  122. package/common/chartingUtils.js +56 -24
  123. package/common/chartingUtils.js.map +1 -1
  124. package/common/docUtils.js +15 -5
  125. package/common/docUtils.js.map +1 -1
  126. package/common/gaugeUtils.js +238 -155
  127. package/common/gaugeUtils.js.map +1 -1
  128. package/common/shapeUtils.js +34 -16
  129. package/common/shapeUtils.js.map +1 -1
  130. package/common/utils/configUtils.js +59 -23
  131. package/common/utils/configUtils.js.map +1 -1
  132. package/common/utils/dataUtils.js +9 -4
  133. package/common/utils/dataUtils.js.map +1 -1
  134. package/common/utils/hocUtils.js +5 -3
  135. package/common/utils/hocUtils.js.map +1 -1
  136. package/common/utils/layoutUtils.js +3 -2
  137. package/common/utils/layoutUtils.js.map +1 -1
  138. package/common/utils/mapUtils.js +370 -206
  139. package/common/utils/mapUtils.js.map +1 -1
  140. package/common/utils/singleValueUtils.js +243 -198
  141. package/common/utils/singleValueUtils.js.map +1 -1
  142. package/common/utils/testHelper.js +36 -9
  143. package/common/utils/testHelper.js.map +1 -1
  144. package/common/utils/trellisUtils.js +87 -26
  145. package/common/utils/trellisUtils.js.map +1 -1
  146. package/common/utils/urlUtils.js +4 -2
  147. package/common/utils/urlUtils.js.map +1 -1
  148. package/common/withDashboardViz.js +375 -193
  149. package/common/withDashboardViz.js.map +1 -1
  150. package/package.json +25 -27
package/Bubble.config.js CHANGED
@@ -114,6 +114,7 @@ Object.defineProperty(exports, "__esModule", {
114
114
  });
115
115
  exports.VizBehavior = void 0;
116
116
  var VizBehavior;
117
+
117
118
  (function (VizBehavior) {
118
119
  /**
119
120
  * Dynamic Options Behavior.
@@ -133,6 +134,7 @@ var VizBehavior;
133
134
  * missing.
134
135
  * @type {string}
135
136
  */
137
+
136
138
  VizBehavior["PLACEHOLDER"] = "placeholder";
137
139
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
138
140
  VizBehavior["TRELLIS"] = "trellis";
@@ -152,24 +154,33 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
152
154
 
153
155
 
154
156
  var _toConsumableArray = __webpack_require__(1);
157
+
155
158
  var _defineProperty = __webpack_require__(7);
159
+
156
160
  var __rest = this && this.__rest || function (s, e) {
157
161
  var t = {};
162
+
158
163
  for (var p in s) {
159
164
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
160
165
  }
166
+
161
167
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
162
168
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
163
169
  }
164
170
  return t;
165
171
  };
172
+
166
173
  Object.defineProperty(exports, "__esModule", {
167
174
  value: true
168
175
  });
169
176
  exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
177
+
170
178
  var lodash_1 = __webpack_require__(6);
179
+
171
180
  var schemaUtils_1 = __webpack_require__(3);
181
+
172
182
  var VizBehavior_1 = __webpack_require__(2);
183
+
173
184
  var dynamicOptionsDSLType = {
174
185
  type: 'string',
175
186
  pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
@@ -179,20 +190,22 @@ var dynamicOptionsDSLType = {
179
190
  * @param optionsSchema a visualization's options schema
180
191
  * @returns an updated options schema that additionally allows strings starting with > for each option
181
192
  */
193
+
182
194
  function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
183
195
  var enhancedOptionsSchema = {};
184
196
  Object.keys(optionsSchema).forEach(function (key) {
185
197
  var _a = optionsSchema[key],
186
- title = _a.title,
187
- description = _a.description,
188
- readOnly = _a.readOnly,
189
- writeOnly = _a.writeOnly,
190
- examples = _a.examples,
191
- defaultValue = _a.default,
192
- type = _a.type,
193
- properties = _a.properties,
194
- patternProperties = _a.patternProperties,
195
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
198
+ title = _a.title,
199
+ description = _a.description,
200
+ readOnly = _a.readOnly,
201
+ writeOnly = _a.writeOnly,
202
+ examples = _a.examples,
203
+ defaultValue = _a.default,
204
+ type = _a.type,
205
+ properties = _a.properties,
206
+ patternProperties = _a.patternProperties,
207
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
208
+
196
209
  var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
197
210
  title: title
198
211
  }), description !== undefined && {
@@ -206,12 +219,14 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
206
219
  }), defaultValue !== undefined && {
207
220
  default: defaultValue
208
221
  });
222
+
209
223
  if (type === 'object') {
210
224
  enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
211
225
  type: type
212
226
  }), properties && {
213
227
  properties: enhanceOptionsSchemaWithDynamicOptions(properties)
214
228
  });
229
+
215
230
  if (patternProperties) {
216
231
  var enhancedPatternProperties = {};
217
232
  Object.keys(patternProperties).forEach(function (opt) {
@@ -229,6 +244,7 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
229
244
  });
230
245
  return enhancedOptionsSchema;
231
246
  }
247
+
232
248
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
233
249
  /**
234
250
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
@@ -237,11 +253,14 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
237
253
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
238
254
  * and containing `open: false` for all editor panels in editorConfig
239
255
  */
256
+
240
257
  function enhanceConfig(vizConfig) {
241
258
  var enhancedConfig = Object.assign({}, vizConfig);
259
+
242
260
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
243
261
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
244
262
  }
263
+
245
264
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
246
265
  return Object.assign(Object.assign({}, config), {
247
266
  open: config.open || false
@@ -249,6 +268,7 @@ function enhanceConfig(vizConfig) {
249
268
  });
250
269
  return enhancedConfig;
251
270
  }
271
+
252
272
  exports.enhanceConfig = enhanceConfig;
253
273
  /**
254
274
  * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
@@ -256,6 +276,7 @@ exports.enhanceConfig = enhanceConfig;
256
276
  * @param vizConfig a Visualization Config
257
277
  * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
258
278
  */
279
+
259
280
  function uncollapseEditorConfig(vizConfig) {
260
281
  var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
261
282
  editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
@@ -265,13 +286,16 @@ function uncollapseEditorConfig(vizConfig) {
265
286
  });
266
287
  return editorPanelUncollapsedConfig;
267
288
  }
289
+
268
290
  exports.uncollapseEditorConfig = uncollapseEditorConfig;
291
+
269
292
  function isDynamicOption(option) {
270
293
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
271
294
  }
272
- exports.isDynamicOption = isDynamicOption;
273
- // private helpers to improve readability of getInitialPreset
295
+
296
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
274
297
  // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
298
+
275
299
  /**
276
300
  * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
277
301
  * if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
@@ -280,6 +304,7 @@ exports.isDynamicOption = isDynamicOption;
280
304
  *
281
305
  * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
282
306
  */
307
+
283
308
  function hasCompatibleContexts(vizContext, presetContext) {
284
309
  var presetContextKeys = Object.keys(presetContext);
285
310
  return presetContextKeys.every(function (contextKey) {
@@ -289,6 +314,8 @@ function hasCompatibleContexts(vizContext, presetContext) {
289
314
  /**
290
315
  * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
291
316
  */
317
+
318
+
292
319
  function hasCompatibleOptions(vizOptions, presetOptions) {
293
320
  var presetOptionKeys = Object.keys(presetOptions);
294
321
  return presetOptionKeys.every(function (optionKey) {
@@ -303,18 +330,21 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
303
330
  * @param {Object} vizOptions - the current vizOptions definition
304
331
  * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
305
332
  */
333
+
334
+
306
335
  function getInitialPreset(vizContext, vizOptions, presets) {
307
336
  return presets.find(function (preset) {
308
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
309
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
337
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
338
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
310
339
  var presetContextKeys = Object.keys(presetContext);
311
- var presetOptionKeys = Object.keys(presetOptions);
312
- // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
340
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
313
341
  // if not, then the preset is invalid in config.ts
342
+
314
343
  if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
315
344
  return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
316
345
  });
317
346
  }
347
+
318
348
  exports.getInitialPreset = getInitialPreset;
319
349
  /**
320
350
  * generates number precision values for a Select editor
@@ -322,14 +352,16 @@ exports.getInitialPreset = getInitialPreset;
322
352
  * @param {Number} numPrecisionValues - number of integer precision values to generate
323
353
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
324
354
  */
355
+
325
356
  function generatePrecisionValues(numPrecisionValues) {
326
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
357
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
327
358
  return {
328
359
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
329
360
  value: i
330
361
  };
331
362
  });
332
363
  }
364
+
333
365
  exports.generatePrecisionValues = generatePrecisionValues;
334
366
  /**
335
367
  * insert layout in layout array, return a new layout array instead of updating the original
@@ -339,12 +371,15 @@ exports.generatePrecisionValues = generatePrecisionValues;
339
371
  * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
340
372
  * @returns {EditorLayoutConfig[][]} new editor layout with insertion
341
373
  */
374
+
342
375
  var insertLayout = function insertLayout(layout, index) {
343
376
  for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
344
377
  layoutItems[_key - 2] = arguments[_key];
345
378
  }
379
+
346
380
  return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
347
381
  };
382
+
348
383
  exports.insertLayout = insertLayout;
349
384
 
350
385
  /***/ }),
@@ -372,6 +407,7 @@ Object.defineProperty(exports, "__esModule", {
372
407
  });
373
408
  exports.VizCategory = void 0;
374
409
  var VizCategory;
410
+
375
411
  (function (VizCategory) {
376
412
  VizCategory["SINGLE_VALUE"] = "Single Value";
377
413
  VizCategory["TRENDS"] = "Trends";
@@ -421,13 +457,15 @@ module.exports = require("@splunk/visualization-icons");
421
457
  Object.defineProperty(exports, "__esModule", {
422
458
  value: true
423
459
  });
460
+
424
461
  var i18n_1 = __webpack_require__(0);
462
+
425
463
  var background = function background(_ref) {
426
464
  var label = _ref.label,
427
- themes = _ref.themes,
428
- labelPosition = _ref.labelPosition;
465
+ themes = _ref.themes,
466
+ labelPosition = _ref.labelPosition;
429
467
  return [{
430
- label: i18n_1._(label || 'Background'),
468
+ label: (0, i18n_1._)(label || 'Background'),
431
469
  option: 'backgroundColor',
432
470
  editor: 'editor.color',
433
471
  editorProps: {
@@ -436,6 +474,7 @@ var background = function background(_ref) {
436
474
  }
437
475
  }];
438
476
  };
477
+
439
478
  exports.default = background;
440
479
 
441
480
  /***/ }),
@@ -453,16 +492,20 @@ module.exports = require("@splunk/visualization-color-palettes");
453
492
 
454
493
 
455
494
  var _toConsumableArray = __webpack_require__(1);
495
+
456
496
  Object.defineProperty(exports, "__esModule", {
457
497
  value: true
458
498
  });
459
499
  exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
500
+
460
501
  var i18n_1 = __webpack_require__(0);
502
+
461
503
  var configUtils_1 = __webpack_require__(4);
504
+
462
505
  var AxesChartDataConfig = {
463
- label: i18n_1._('Data configurations'),
506
+ label: (0, i18n_1._)('Data configurations'),
464
507
  layout: [[{
465
- label: i18n_1._('X'),
508
+ label: (0, i18n_1._)('X'),
466
509
  option: 'x',
467
510
  editor: 'editor.columnSelector',
468
511
  editorProps: {
@@ -471,7 +514,7 @@ var AxesChartDataConfig = {
471
514
  expectedDataPrimitive: ['series']
472
515
  }
473
516
  }], [{
474
- label: i18n_1._('Y'),
517
+ label: (0, i18n_1._)('Y'),
475
518
  option: 'y',
476
519
  editor: 'editor.columnMultiSelector',
477
520
  editorProps: {
@@ -481,7 +524,7 @@ var AxesChartDataConfig = {
481
524
  expectedDataPrimitive: ['series', 'frame']
482
525
  }
483
526
  }], [{
484
- label: i18n_1._('Result limit'),
527
+ label: (0, i18n_1._)('Result limit'),
485
528
  option: 'resultLimit',
486
529
  editor: 'editor.number',
487
530
  editorProps: {
@@ -492,8 +535,8 @@ var AxesChartDataConfig = {
492
535
  exports.AxesChartDataConfigBar = {
493
536
  label: AxesChartDataConfig.label,
494
537
  // insert Y2 after Y
495
- layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
496
- label: i18n_1._('Y2'),
538
+ layout: (0, configUtils_1.insertLayout)(AxesChartDataConfig.layout, 2, [{
539
+ label: (0, i18n_1._)('Y2'),
497
540
  option: 'y2',
498
541
  editor: 'editor.columnMultiSelector',
499
542
  editorProps: {
@@ -507,7 +550,7 @@ exports.AxesChartDataConfigBar = {
507
550
  exports.AxesChartDataConfigScatter = {
508
551
  label: AxesChartDataConfig.label,
509
552
  layout: [[{
510
- label: i18n_1._('X'),
553
+ label: (0, i18n_1._)('X'),
511
554
  option: 'x',
512
555
  editor: 'editor.columnSelector',
513
556
  editorProps: {
@@ -516,7 +559,7 @@ exports.AxesChartDataConfigScatter = {
516
559
  expectedDataPrimitive: ['series']
517
560
  }
518
561
  }], [{
519
- label: i18n_1._('Y'),
562
+ label: (0, i18n_1._)('Y'),
520
563
  option: 'y',
521
564
  editor: 'editor.columnSelector',
522
565
  editorProps: {
@@ -526,7 +569,7 @@ exports.AxesChartDataConfigScatter = {
526
569
  expectedDataPrimitive: ['series']
527
570
  }
528
571
  }], [{
529
- label: i18n_1._('Category'),
572
+ label: (0, i18n_1._)('Category'),
530
573
  option: 'category',
531
574
  editor: 'editor.columnSelector',
532
575
  editorProps: {
@@ -535,7 +578,7 @@ exports.AxesChartDataConfigScatter = {
535
578
  expectedDataPrimitive: ['series']
536
579
  }
537
580
  }], [{
538
- label: i18n_1._('Result limit'),
581
+ label: (0, i18n_1._)('Result limit'),
539
582
  option: 'resultLimit',
540
583
  editor: 'editor.number',
541
584
  editorProps: {
@@ -546,8 +589,8 @@ exports.AxesChartDataConfigScatter = {
546
589
  exports.AxesChartDataConfigBubble = {
547
590
  label: exports.AxesChartDataConfigScatter.label,
548
591
  // layout: insert Size after Category
549
- layout: configUtils_1.insertLayout(exports.AxesChartDataConfigScatter.layout, 3, [{
550
- label: i18n_1._('Size'),
592
+ layout: (0, configUtils_1.insertLayout)(exports.AxesChartDataConfigScatter.layout, 3, [{
593
+ label: (0, i18n_1._)('Size'),
551
594
  option: 'size',
552
595
  editor: 'editor.columnSelector',
553
596
  editorProps: {
@@ -560,7 +603,7 @@ exports.AxesChartDataConfigBubble = {
560
603
  exports.AxesChartDataConfigAreaColumnLine = {
561
604
  label: exports.AxesChartDataConfigBar.label,
562
605
  layout: [].concat(_toConsumableArray(exports.AxesChartDataConfigBar.layout), [[{
563
- label: i18n_1._('Annotation x'),
606
+ label: (0, i18n_1._)('Annotation x'),
564
607
  option: 'annotationX',
565
608
  editor: 'editor.columnSelector',
566
609
  editorProps: {
@@ -569,7 +612,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
569
612
  expectedDataPrimitive: ['series']
570
613
  }
571
614
  }], [{
572
- label: i18n_1._('Annotation labels'),
615
+ label: (0, i18n_1._)('Annotation labels'),
573
616
  option: 'annotationLabel',
574
617
  editor: 'editor.columnSelector',
575
618
  editorProps: {
@@ -591,13 +634,18 @@ exports.default = AxesChartDataConfig;
591
634
  Object.defineProperty(exports, "__esModule", {
592
635
  value: true
593
636
  });
637
+
594
638
  var i18n_1 = __webpack_require__(0);
639
+
595
640
  var pick_1 = __webpack_require__(9);
641
+
596
642
  var variables_1 = __webpack_require__(10);
643
+
597
644
  var BackgroundColor_1 = __webpack_require__(13);
645
+
598
646
  var themes = {
599
647
  defaultBackgroundColor: function defaultBackgroundColor(props) {
600
- return pick_1.default({
648
+ return (0, pick_1.default)({
601
649
  enterprise: {
602
650
  dark: variables_1.default.black(props),
603
651
  light: variables_1.default.backgroundColor(props)
@@ -607,15 +655,15 @@ var themes = {
607
655
  }
608
656
  };
609
657
  var AxesChartColorAndStyle = {
610
- label: i18n_1._('Color and style'),
611
- layout: [BackgroundColor_1.default({
658
+ label: (0, i18n_1._)('Color and style'),
659
+ layout: [(0, BackgroundColor_1.default)({
612
660
  themes: themes
613
661
  }), [{
614
- label: i18n_1._('Series colors'),
662
+ label: (0, i18n_1._)('Series colors'),
615
663
  option: 'seriesColors',
616
664
  editor: 'editor.seriesColors'
617
665
  }], [{
618
- label: i18n_1._('Series colors by field name'),
666
+ label: (0, i18n_1._)('Series colors by field name'),
619
667
  option: 'seriesColorsByField',
620
668
  editor: 'editor.seriesColorsByField'
621
669
  }]]
@@ -632,47 +680,49 @@ exports.default = AxesChartColorAndStyle;
632
680
  Object.defineProperty(exports, "__esModule", {
633
681
  value: true
634
682
  });
683
+
635
684
  var i18n_1 = __webpack_require__(0);
685
+
636
686
  var AxesChartLegend = {
637
- label: i18n_1._('Legend'),
687
+ label: (0, i18n_1._)('Legend'),
638
688
  layout: [[{
639
- label: i18n_1._('Legend display'),
689
+ label: (0, i18n_1._)('Legend display'),
640
690
  option: 'legendDisplay',
641
691
  editor: 'editor.select',
642
692
  editorProps: {
643
693
  values: [{
644
- label: i18n_1._('Right'),
694
+ label: (0, i18n_1._)('Right'),
645
695
  value: 'right'
646
696
  }, {
647
- label: i18n_1._('Left'),
697
+ label: (0, i18n_1._)('Left'),
648
698
  value: 'left'
649
699
  }, {
650
- label: i18n_1._('Top'),
700
+ label: (0, i18n_1._)('Top'),
651
701
  value: 'top'
652
702
  }, {
653
- label: i18n_1._('Bottom'),
703
+ label: (0, i18n_1._)('Bottom'),
654
704
  value: 'bottom'
655
705
  }, {
656
- label: i18n_1._('Off'),
706
+ label: (0, i18n_1._)('Off'),
657
707
  value: 'off'
658
708
  }]
659
709
  }
660
710
  }], [{
661
- label: i18n_1._('Legend truncation'),
711
+ label: (0, i18n_1._)('Legend truncation'),
662
712
  option: 'legendTruncation',
663
713
  editor: 'editor.radioBar',
664
714
  editorProps: {
665
715
  values: [{
666
- label: i18n_1._('A...'),
716
+ label: (0, i18n_1._)('A...'),
667
717
  value: 'ellipsisEnd'
668
718
  }, {
669
- label: i18n_1._('A...Z'),
719
+ label: (0, i18n_1._)('A...Z'),
670
720
  value: 'ellipsisMiddle'
671
721
  }, {
672
- label: i18n_1._('...Z'),
722
+ label: (0, i18n_1._)('...Z'),
673
723
  value: 'ellipsisStart'
674
724
  }, {
675
- label: i18n_1._('Off'),
725
+ label: (0, i18n_1._)('Off'),
676
726
  value: 'ellipsisOff'
677
727
  }]
678
728
  },
@@ -692,20 +742,24 @@ exports.default = AxesChartLegend;
692
742
 
693
743
 
694
744
  var _toConsumableArray = __webpack_require__(1);
745
+
695
746
  Object.defineProperty(exports, "__esModule", {
696
747
  value: true
697
748
  });
698
749
  exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
750
+
699
751
  var i18n_1 = __webpack_require__(0);
752
+
700
753
  var configUtils_1 = __webpack_require__(4);
754
+
701
755
  exports.AxesChartXGridAndLabelsCommon = {
702
- label: i18n_1._('X-axis grid and labels'),
756
+ label: (0, i18n_1._)('X-axis grid and labels'),
703
757
  layout: [[{
704
- label: i18n_1._('Axis title'),
758
+ label: (0, i18n_1._)('Axis title'),
705
759
  option: 'xAxisTitleVisibility',
706
760
  editor: 'editor.toggle'
707
761
  }], [{
708
- label: i18n_1._('Axis title text'),
762
+ label: (0, i18n_1._)('Axis title text'),
709
763
  option: 'xAxisTitleText',
710
764
  editor: 'editor.text',
711
765
  showEditor: function showEditor(_ref) {
@@ -713,18 +767,18 @@ exports.AxesChartXGridAndLabelsCommon = {
713
767
  return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
714
768
  }
715
769
  }], [{
716
- label: i18n_1._('Label visibility'),
770
+ label: (0, i18n_1._)('Label visibility'),
717
771
  option: 'xAxisLabelVisibility',
718
772
  editor: 'editor.radioBar',
719
773
  editorProps: {
720
774
  values: [{
721
- label: i18n_1._('Auto'),
775
+ label: (0, i18n_1._)('Auto'),
722
776
  value: 'auto'
723
777
  }, {
724
- label: i18n_1._('Show'),
778
+ label: (0, i18n_1._)('Show'),
725
779
  value: 'show'
726
780
  }, {
727
- label: i18n_1._('Hide'),
781
+ label: (0, i18n_1._)('Hide'),
728
782
  value: 'hide'
729
783
  }]
730
784
  }
@@ -733,24 +787,24 @@ exports.AxesChartXGridAndLabelsCommon = {
733
787
  var AxesChartXGridAndLabels = {
734
788
  label: exports.AxesChartXGridAndLabelsCommon.label,
735
789
  layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
736
- label: i18n_1._('Label rotation'),
790
+ label: (0, i18n_1._)('Label rotation'),
737
791
  option: 'xAxisLabelRotation',
738
792
  editor: 'editor.select',
739
793
  editorProps: {
740
794
  values: [{
741
- label: i18n_1._('-90'),
795
+ label: (0, i18n_1._)('-90'),
742
796
  value: -90
743
797
  }, {
744
- label: i18n_1._('-45'),
798
+ label: (0, i18n_1._)('-45'),
745
799
  value: -45
746
800
  }, {
747
- label: i18n_1._('0'),
801
+ label: (0, i18n_1._)('0'),
748
802
  value: 0
749
803
  }, {
750
- label: i18n_1._('45'),
804
+ label: (0, i18n_1._)('45'),
751
805
  value: 45
752
806
  }, {
753
- label: i18n_1._('90'),
807
+ label: (0, i18n_1._)('90'),
754
808
  value: 90
755
809
  }]
756
810
  },
@@ -759,7 +813,7 @@ var AxesChartXGridAndLabels = {
759
813
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
760
814
  }
761
815
  }], [{
762
- label: i18n_1._('Number of time label parts'),
816
+ label: (0, i18n_1._)('Number of time label parts'),
763
817
  option: 'xAxisMaxLabelParts',
764
818
  editor: 'editor.number',
765
819
  editorProps: {
@@ -771,31 +825,31 @@ var AxesChartXGridAndLabels = {
771
825
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
772
826
  }
773
827
  }], [{
774
- label: i18n_1._('Axis line visibility'),
828
+ label: (0, i18n_1._)('Axis line visibility'),
775
829
  option: 'xAxisLineVisibility',
776
830
  editor: 'editor.checkbox'
777
831
  }], [{
778
- label: i18n_1._('Major gridlines'),
832
+ label: (0, i18n_1._)('Major gridlines'),
779
833
  option: 'showXMajorGridLines',
780
834
  editor: 'editor.checkbox'
781
835
  }], [{
782
- label: i18n_1._('Major tick visibility'),
836
+ label: (0, i18n_1._)('Major tick visibility'),
783
837
  option: 'xAxisMajorTickVisibility',
784
838
  editor: 'editor.radioBar',
785
839
  editorProps: {
786
840
  values: [{
787
- label: i18n_1._('Auto'),
841
+ label: (0, i18n_1._)('Auto'),
788
842
  value: 'auto'
789
843
  }, {
790
- label: i18n_1._('Show'),
844
+ label: (0, i18n_1._)('Show'),
791
845
  value: 'show'
792
846
  }, {
793
- label: i18n_1._('Hide'),
847
+ label: (0, i18n_1._)('Hide'),
794
848
  value: 'hide'
795
849
  }]
796
850
  }
797
851
  }], [{
798
- label: i18n_1._('Major tick size (px)'),
852
+ label: (0, i18n_1._)('Major tick size (px)'),
799
853
  option: 'xAxisMajorTickSize',
800
854
  editor: 'editor.slider',
801
855
  editorProps: {
@@ -811,38 +865,38 @@ var AxesChartXGridAndLabels = {
811
865
  };
812
866
  exports.AxesChartXGridAndLabelsBubbleScatter = {
813
867
  label: exports.AxesChartXGridAndLabelsCommon.label,
814
- layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
815
- label: i18n_1._('Axis scale'),
868
+ layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
869
+ label: (0, i18n_1._)('Axis scale'),
816
870
  option: 'xAxisScale',
817
871
  editor: 'editor.radioBar',
818
872
  editorProps: {
819
873
  values: [{
820
- label: i18n_1._('Linear'),
874
+ label: (0, i18n_1._)('Linear'),
821
875
  value: 'linear'
822
876
  }, {
823
- label: i18n_1._('Log'),
877
+ label: (0, i18n_1._)('Log'),
824
878
  value: 'log'
825
879
  }]
826
880
  }
827
881
  }])), [[{
828
- label: i18n_1._('Label rotation'),
882
+ label: (0, i18n_1._)('Label rotation'),
829
883
  option: 'xAxisLabelRotation',
830
884
  editor: 'editor.select',
831
885
  editorProps: {
832
886
  values: [{
833
- label: i18n_1._('-90'),
887
+ label: (0, i18n_1._)('-90'),
834
888
  value: -90
835
889
  }, {
836
- label: i18n_1._('-45'),
890
+ label: (0, i18n_1._)('-45'),
837
891
  value: -45
838
892
  }, {
839
- label: i18n_1._('0'),
893
+ label: (0, i18n_1._)('0'),
840
894
  value: 0
841
895
  }, {
842
- label: i18n_1._('45'),
896
+ label: (0, i18n_1._)('45'),
843
897
  value: 45
844
898
  }, {
845
- label: i18n_1._('90'),
899
+ label: (0, i18n_1._)('90'),
846
900
  value: 90
847
901
  }]
848
902
  },
@@ -851,7 +905,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
851
905
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
852
906
  }
853
907
  }], [{
854
- label: i18n_1._('Round axis labels'),
908
+ label: (0, i18n_1._)('Round axis labels'),
855
909
  option: 'showRoundedXAxisLabels',
856
910
  editor: 'editor.checkbox',
857
911
  showEditor: function showEditor(_ref6) {
@@ -859,7 +913,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
859
913
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
860
914
  }
861
915
  }], [{
862
- label: i18n_1._('SI prefix abbreviation for labels'),
916
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
863
917
  option: 'xAxisAbbreviation',
864
918
  editor: 'editor.checkbox',
865
919
  showEditor: function showEditor(_ref7) {
@@ -867,27 +921,26 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
867
921
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
868
922
  }
869
923
  }], [{
870
- label: i18n_1._('Include zero'),
924
+ label: (0, i18n_1._)('Include zero'),
871
925
  option: 'showXAxisWithZero',
872
926
  editor: 'editor.checkbox'
873
927
  }], [{
874
- label: i18n_1._('Extend to whole grid'),
928
+ label: (0, i18n_1._)('Extend to whole grid'),
875
929
  option: 'showXAxisExtendedRange',
876
930
  editor: 'editor.checkbox'
877
931
  }], [{
878
- label: i18n_1._('Minimum axis value'),
932
+ label: (0, i18n_1._)('Minimum axis value'),
879
933
  option: 'xAxisMin',
880
934
  editor: 'editor.number'
881
935
  }, {
882
- label: i18n_1._('Maximum axis value'),
936
+ label: (0, i18n_1._)('Maximum axis value'),
883
937
  option: 'xAxisMax',
884
938
  editor: 'editor.number'
885
939
  }], [{
886
- label: i18n_1._('Axis line visibility'),
940
+ label: (0, i18n_1._)('Axis line visibility'),
887
941
  option: 'xAxisLineVisibility',
888
942
  editor: 'editor.checkbox'
889
- }],
890
- // this option is disabled for bubble and scatter
943
+ }], // this option is disabled for bubble and scatter
891
944
  // [
892
945
  // {
893
946
  // label: _('Major gridlines'),
@@ -896,23 +949,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
896
949
  // },
897
950
  // ],
898
951
  [{
899
- label: i18n_1._('Major tick visibility'),
952
+ label: (0, i18n_1._)('Major tick visibility'),
900
953
  option: 'xAxisMajorTickVisibility',
901
954
  editor: 'editor.radioBar',
902
955
  editorProps: {
903
956
  values: [{
904
- label: i18n_1._('Auto'),
957
+ label: (0, i18n_1._)('Auto'),
905
958
  value: 'auto'
906
959
  }, {
907
- label: i18n_1._('Show'),
960
+ label: (0, i18n_1._)('Show'),
908
961
  value: 'show'
909
962
  }, {
910
- label: i18n_1._('Hide'),
963
+ label: (0, i18n_1._)('Hide'),
911
964
  value: 'hide'
912
965
  }]
913
966
  }
914
967
  }], [{
915
- label: i18n_1._('Major tick size (px)'),
968
+ label: (0, i18n_1._)('Major tick size (px)'),
916
969
  option: 'xAxisMajorTickSize',
917
970
  editor: 'editor.slider',
918
971
  editorProps: {
@@ -925,7 +978,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
925
978
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
926
979
  }
927
980
  }], [{
928
- label: i18n_1._('Major tick interval spacing'),
981
+ label: (0, i18n_1._)('Major tick interval spacing'),
929
982
  option: 'xAxisMajorTickInterval',
930
983
  editor: 'editor.number',
931
984
  showEditor: function showEditor(_ref9) {
@@ -933,27 +986,27 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
933
986
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
934
987
  }
935
988
  }], [{
936
- label: i18n_1._('Minor gridlines'),
989
+ label: (0, i18n_1._)('Minor gridlines'),
937
990
  option: 'showXMinorGridLines',
938
991
  editor: 'editor.checkbox'
939
992
  }], [{
940
- label: i18n_1._('Minor tick visibility'),
993
+ label: (0, i18n_1._)('Minor tick visibility'),
941
994
  option: 'xAxisMinorTickVisibility',
942
995
  editor: 'editor.radioBar',
943
996
  editorProps: {
944
997
  values: [{
945
- label: i18n_1._('Auto'),
998
+ label: (0, i18n_1._)('Auto'),
946
999
  value: 'auto'
947
1000
  }, {
948
- label: i18n_1._('Show'),
1001
+ label: (0, i18n_1._)('Show'),
949
1002
  value: 'show'
950
1003
  }, {
951
- label: i18n_1._('Hide'),
1004
+ label: (0, i18n_1._)('Hide'),
952
1005
  value: 'hide'
953
1006
  }]
954
1007
  }
955
1008
  }], [{
956
- label: i18n_1._('Minor tick size (px)'),
1009
+ label: (0, i18n_1._)('Minor tick size (px)'),
957
1010
  option: 'xAxisMinorTickSize',
958
1011
  editor: 'editor.slider',
959
1012
  editorProps: {
@@ -979,15 +1032,17 @@ exports.default = AxesChartXGridAndLabels;
979
1032
  Object.defineProperty(exports, "__esModule", {
980
1033
  value: true
981
1034
  });
1035
+
982
1036
  var i18n_1 = __webpack_require__(0);
1037
+
983
1038
  var AxesChartYGridAndLabels = {
984
- label: i18n_1._('Y-axis grid and labels'),
1039
+ label: (0, i18n_1._)('Y-axis grid and labels'),
985
1040
  layout: [[{
986
- label: i18n_1._('Axis title'),
1041
+ label: (0, i18n_1._)('Axis title'),
987
1042
  option: 'yAxisTitleVisibility',
988
1043
  editor: 'editor.toggle'
989
1044
  }], [{
990
- label: i18n_1._('Axis title text'),
1045
+ label: (0, i18n_1._)('Axis title text'),
991
1046
  option: 'yAxisTitleText',
992
1047
  editor: 'editor.text',
993
1048
  showEditor: function showEditor(_ref) {
@@ -995,36 +1050,36 @@ var AxesChartYGridAndLabels = {
995
1050
  return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
996
1051
  }
997
1052
  }], [{
998
- label: i18n_1._('Scale'),
1053
+ label: (0, i18n_1._)('Scale'),
999
1054
  option: 'yAxisScale',
1000
1055
  editor: 'editor.radioBar',
1001
1056
  editorProps: {
1002
1057
  values: [{
1003
- label: i18n_1._('Linear'),
1058
+ label: (0, i18n_1._)('Linear'),
1004
1059
  value: 'linear'
1005
1060
  }, {
1006
- label: i18n_1._('Log'),
1061
+ label: (0, i18n_1._)('Log'),
1007
1062
  value: 'log'
1008
1063
  }]
1009
1064
  }
1010
1065
  }], [{
1011
- label: i18n_1._('Label visibility'),
1066
+ label: (0, i18n_1._)('Label visibility'),
1012
1067
  option: 'yAxisLabelVisibility',
1013
1068
  editor: 'editor.radioBar',
1014
1069
  editorProps: {
1015
1070
  values: [{
1016
- label: i18n_1._('Auto'),
1071
+ label: (0, i18n_1._)('Auto'),
1017
1072
  value: 'auto'
1018
1073
  }, {
1019
- label: i18n_1._('Show'),
1074
+ label: (0, i18n_1._)('Show'),
1020
1075
  value: 'show'
1021
1076
  }, {
1022
- label: i18n_1._('Hide'),
1077
+ label: (0, i18n_1._)('Hide'),
1023
1078
  value: 'hide'
1024
1079
  }]
1025
1080
  }
1026
1081
  }], [{
1027
- label: i18n_1._('SI prefix abbreviation for labels'),
1082
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
1028
1083
  option: 'yAxisAbbreviation',
1029
1084
  editor: 'editor.checkbox',
1030
1085
  showEditor: function showEditor(_ref2) {
@@ -1032,47 +1087,47 @@ var AxesChartYGridAndLabels = {
1032
1087
  return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
1033
1088
  }
1034
1089
  }], [{
1035
- label: i18n_1._('Include zero'),
1090
+ label: (0, i18n_1._)('Include zero'),
1036
1091
  option: 'showYAxisWithZero',
1037
1092
  editor: 'editor.checkbox'
1038
1093
  }], [{
1039
- label: i18n_1._('Extend to whole grid'),
1094
+ label: (0, i18n_1._)('Extend to whole grid'),
1040
1095
  option: 'showYAxisExtendedRange',
1041
1096
  editor: 'editor.checkbox'
1042
1097
  }], [{
1043
- label: i18n_1._('Minimum axis value'),
1098
+ label: (0, i18n_1._)('Minimum axis value'),
1044
1099
  option: 'yAxisMin',
1045
1100
  editor: 'editor.number'
1046
1101
  }, {
1047
- label: i18n_1._('Maximum axis value'),
1102
+ label: (0, i18n_1._)('Maximum axis value'),
1048
1103
  option: 'yAxisMax',
1049
1104
  editor: 'editor.number'
1050
1105
  }], [{
1051
- label: i18n_1._('Axis line visibility'),
1106
+ label: (0, i18n_1._)('Axis line visibility'),
1052
1107
  option: 'yAxisLineVisibility',
1053
1108
  editor: 'editor.checkbox'
1054
1109
  }], [{
1055
- label: i18n_1._('Major gridlines'),
1110
+ label: (0, i18n_1._)('Major gridlines'),
1056
1111
  option: 'showYMajorGridLines',
1057
1112
  editor: 'editor.checkbox'
1058
1113
  }], [{
1059
- label: i18n_1._('Major tick visibility'),
1114
+ label: (0, i18n_1._)('Major tick visibility'),
1060
1115
  option: 'yAxisMajorTickVisibility',
1061
1116
  editor: 'editor.radioBar',
1062
1117
  editorProps: {
1063
1118
  values: [{
1064
- label: i18n_1._('Auto'),
1119
+ label: (0, i18n_1._)('Auto'),
1065
1120
  value: 'auto'
1066
1121
  }, {
1067
- label: i18n_1._('Show'),
1122
+ label: (0, i18n_1._)('Show'),
1068
1123
  value: 'show'
1069
1124
  }, {
1070
- label: i18n_1._('Hide'),
1125
+ label: (0, i18n_1._)('Hide'),
1071
1126
  value: 'hide'
1072
1127
  }]
1073
1128
  }
1074
1129
  }], [{
1075
- label: i18n_1._('Major tick size (px)'),
1130
+ label: (0, i18n_1._)('Major tick size (px)'),
1076
1131
  option: 'yAxisMajorTickSize',
1077
1132
  editor: 'editor.slider',
1078
1133
  editorProps: {
@@ -1085,7 +1140,7 @@ var AxesChartYGridAndLabels = {
1085
1140
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
1086
1141
  }
1087
1142
  }], [{
1088
- label: i18n_1._('Major tick interval spacing'),
1143
+ label: (0, i18n_1._)('Major tick interval spacing'),
1089
1144
  option: 'yAxisMajorTickInterval',
1090
1145
  editor: 'editor.number',
1091
1146
  showEditor: function showEditor(_ref4) {
@@ -1093,27 +1148,27 @@ var AxesChartYGridAndLabels = {
1093
1148
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
1094
1149
  }
1095
1150
  }], [{
1096
- label: i18n_1._('Minor gridlines'),
1151
+ label: (0, i18n_1._)('Minor gridlines'),
1097
1152
  option: 'showYMinorGridLines',
1098
1153
  editor: 'editor.checkbox'
1099
1154
  }], [{
1100
- label: i18n_1._('Minor tick visibility'),
1155
+ label: (0, i18n_1._)('Minor tick visibility'),
1101
1156
  option: 'yAxisMinorTickVisibility',
1102
1157
  editor: 'editor.radioBar',
1103
1158
  editorProps: {
1104
1159
  values: [{
1105
- label: i18n_1._('Auto'),
1160
+ label: (0, i18n_1._)('Auto'),
1106
1161
  value: 'auto'
1107
1162
  }, {
1108
- label: i18n_1._('Show'),
1163
+ label: (0, i18n_1._)('Show'),
1109
1164
  value: 'show'
1110
1165
  }, {
1111
- label: i18n_1._('Hide'),
1166
+ label: (0, i18n_1._)('Hide'),
1112
1167
  value: 'hide'
1113
1168
  }]
1114
1169
  }
1115
1170
  }], [{
1116
- label: i18n_1._('Minor tick size (px)'),
1171
+ label: (0, i18n_1._)('Minor tick size (px)'),
1117
1172
  option: 'yAxisMinorTickSize',
1118
1173
  editor: 'editor.slider',
1119
1174
  editorProps: {
@@ -1160,31 +1215,47 @@ exports.default = AxesChartYGridAndLabels;
1160
1215
 
1161
1216
 
1162
1217
  var _toConsumableArray = __webpack_require__(1);
1218
+
1163
1219
  Object.defineProperty(exports, "__esModule", {
1164
1220
  value: true
1165
1221
  });
1222
+
1166
1223
  var visualization_icons_1 = __webpack_require__(12);
1224
+
1167
1225
  var placeholders_1 = __webpack_require__(11);
1226
+
1168
1227
  var schemaUtils_1 = __webpack_require__(3);
1228
+
1169
1229
  var visualization_color_palettes_1 = __webpack_require__(14);
1230
+
1170
1231
  var pick_1 = __webpack_require__(9);
1232
+
1171
1233
  var variables_1 = __webpack_require__(10);
1234
+
1172
1235
  var i18n_1 = __webpack_require__(0);
1236
+
1173
1237
  var AxesChartDataConfig_1 = __webpack_require__(16);
1238
+
1174
1239
  var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1240
+
1175
1241
  var AxesChartColorAndStyle_1 = __webpack_require__(17);
1242
+
1176
1243
  var AxesChartLegend_1 = __webpack_require__(18);
1244
+
1177
1245
  var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1246
+
1178
1247
  var VizBehavior_1 = __webpack_require__(2);
1248
+
1179
1249
  var VizCategory_1 = __webpack_require__(8);
1250
+
1180
1251
  var configUtils_1 = __webpack_require__(4);
1252
+
1181
1253
  var dataContract = {
1182
1254
  requiredDataSources: [{
1183
1255
  name: 'primary',
1184
1256
  description: 'DataSource that powers the visualization'
1185
1257
  }],
1186
- optionalDataSources: [
1187
- // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1258
+ optionalDataSources: [// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1188
1259
  // {
1189
1260
  // name: 'annotation',
1190
1261
  // description: 'DataSource that populates event annotations',
@@ -1273,19 +1344,19 @@ var optionsSchema = {
1273
1344
  bubbleSizeMethod: {
1274
1345
  default: 'area',
1275
1346
  description: 'Specify how bubble size is measured.',
1276
- pattern: schemaUtils_1.getPattern(['area', 'diameter']),
1347
+ pattern: (0, schemaUtils_1.getPattern)(['area', 'diameter']),
1277
1348
  type: 'string'
1278
1349
  },
1279
1350
  legendDisplay: {
1280
1351
  default: 'right',
1281
1352
  description: 'Specify the location of the legend on the panel.',
1282
- pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
1353
+ pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1283
1354
  type: 'string'
1284
1355
  },
1285
1356
  legendTruncation: {
1286
1357
  default: 'ellipsisEnd',
1287
1358
  description: 'Specify where to use ellipsis to replace legend labels that overflow the layout.',
1288
- pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1359
+ pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1289
1360
  type: 'string'
1290
1361
  },
1291
1362
  resultLimit: {
@@ -1361,40 +1432,40 @@ var optionsSchema = {
1361
1432
  default: 'off',
1362
1433
  description: 'Specify whether to abbreviate large x-axis values with the closest International System of Units (SI) prefix.',
1363
1434
  enum: ['off', 'auto'],
1364
- pattern: schemaUtils_1.getPattern(['auto', 'off']),
1435
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1365
1436
  type: 'string'
1366
1437
  },
1367
1438
  yAxisAbbreviation: {
1368
1439
  default: 'auto',
1369
1440
  description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
1370
1441
  enum: ['off', 'auto'],
1371
- pattern: schemaUtils_1.getPattern(['auto', 'off']),
1442
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1372
1443
  type: 'string'
1373
1444
  },
1374
1445
  xAxisLabelVisibility: {
1375
1446
  default: 'auto',
1376
1447
  description: 'Specify whether to show or hide labels on the x-axis.',
1377
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1448
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1378
1449
  type: 'string'
1379
1450
  },
1380
1451
  yAxisLabelVisibility: {
1381
1452
  default: 'auto',
1382
1453
  description: 'Specify whether to show or hide labels on the y-axis.',
1383
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1454
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1384
1455
  type: 'string'
1385
1456
  },
1386
1457
  xAxisLineVisibility: {
1387
1458
  default: 'hide',
1388
1459
  description: 'Specify whether to show the x-axis line.',
1389
1460
  enum: ['hide', 'show'],
1390
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1461
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1391
1462
  type: 'string'
1392
1463
  },
1393
1464
  yAxisLineVisibility: {
1394
1465
  default: 'hide',
1395
1466
  description: 'Specify whether to show the y-axis line.',
1396
1467
  enum: ['hide', 'show'],
1397
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1468
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1398
1469
  type: 'string'
1399
1470
  },
1400
1471
  xAxisMajorTickInterval: {
@@ -1430,25 +1501,25 @@ var optionsSchema = {
1430
1501
  xAxisMajorTickVisibility: {
1431
1502
  default: 'auto',
1432
1503
  description: 'Specify whether to show or hide major tick marks on the x-axis.',
1433
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1504
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1434
1505
  type: 'string'
1435
1506
  },
1436
1507
  yAxisMajorTickVisibility: {
1437
1508
  default: 'auto',
1438
1509
  description: 'Specify whether to show or hide major tick marks on the y-axis.',
1439
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1510
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1440
1511
  type: 'string'
1441
1512
  },
1442
1513
  xAxisMinorTickVisibility: {
1443
1514
  default: 'auto',
1444
1515
  description: 'Specify whether to show or hide minor tick marks on the x-axis .',
1445
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1516
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1446
1517
  type: 'string'
1447
1518
  },
1448
1519
  yAxisMinorTickVisibility: {
1449
1520
  default: 'auto',
1450
1521
  description: 'Specify whether to show or hide minor tick marks on the y-axis.',
1451
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1522
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1452
1523
  type: 'string'
1453
1524
  },
1454
1525
  xAxisMax: {
@@ -1474,13 +1545,13 @@ var optionsSchema = {
1474
1545
  xAxisScale: {
1475
1546
  default: 'linear',
1476
1547
  description: 'Specify the type of scale that applies to a numerical x-axis.',
1477
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
1548
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1478
1549
  type: 'string'
1479
1550
  },
1480
1551
  yAxisScale: {
1481
1552
  default: 'linear',
1482
1553
  description: 'Specify the type of scale that applies to a numerical y-axis.',
1483
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
1554
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1484
1555
  type: 'string'
1485
1556
  },
1486
1557
  xAxisTitleText: {
@@ -1495,20 +1566,20 @@ var optionsSchema = {
1495
1566
  default: 'show',
1496
1567
  description: 'Specify whether to hide the title of the x-axis.',
1497
1568
  enum: ['hide', 'show'],
1498
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1569
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1499
1570
  type: 'string'
1500
1571
  },
1501
1572
  yAxisTitleVisibility: {
1502
1573
  default: 'show',
1503
1574
  description: 'Specify whether to hide the title of the y-axis.',
1504
1575
  enum: ['hide', 'show'],
1505
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1576
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1506
1577
  type: 'string'
1507
1578
  }
1508
1579
  };
1509
1580
  var themes = {
1510
1581
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1511
- return pick_1.default({
1582
+ return (0, pick_1.default)({
1512
1583
  enterprise: {
1513
1584
  dark: variables_1.default.black(props),
1514
1585
  light: variables_1.default.backgroundColor(props)
@@ -1520,14 +1591,14 @@ var themes = {
1520
1591
  var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBubble, {
1521
1592
  label: AxesChartColorAndStyle_1.default.label,
1522
1593
  layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout.slice(0, 2)), [[{
1523
- label: i18n_1._('Series colors by category name'),
1594
+ label: (0, i18n_1._)('Series colors by category name'),
1524
1595
  option: 'seriesColorsByField',
1525
1596
  editor: 'editor.seriesColorsByField',
1526
1597
  editorProps: {
1527
1598
  isCategorical: true
1528
1599
  }
1529
1600
  }], [{
1530
- label: i18n_1._('Maximum bubble size'),
1601
+ label: (0, i18n_1._)('Maximum bubble size'),
1531
1602
  option: 'bubbleSizeMax',
1532
1603
  editor: 'editor.slider',
1533
1604
  editorProps: {
@@ -1536,7 +1607,7 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBubble, {
1536
1607
  step: 1
1537
1608
  }
1538
1609
  }], [{
1539
- label: i18n_1._('Minimum bubble size'),
1610
+ label: (0, i18n_1._)('Minimum bubble size'),
1540
1611
  option: 'bubbleSizeMin',
1541
1612
  editor: 'editor.slider',
1542
1613
  editorProps: {
@@ -1545,15 +1616,15 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBubble, {
1545
1616
  step: 1
1546
1617
  }
1547
1618
  }], [{
1548
- label: i18n_1._('Calculation method for bubble size'),
1619
+ label: (0, i18n_1._)('Calculation method for bubble size'),
1549
1620
  option: 'bubbleSizeMethod',
1550
1621
  editor: 'editor.radioBar',
1551
1622
  editorProps: {
1552
1623
  values: [{
1553
- label: i18n_1._('Area'),
1624
+ label: (0, i18n_1._)('Area'),
1554
1625
  value: 'area'
1555
1626
  }, {
1556
- label: i18n_1._('Diameter'),
1627
+ label: (0, i18n_1._)('Diameter'),
1557
1628
  value: 'diameter'
1558
1629
  }]
1559
1630
  }
@@ -1562,16 +1633,19 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBubble, {
1562
1633
  /**
1563
1634
  * visualization configuration
1564
1635
  */
1636
+
1565
1637
  var config = {
1566
1638
  /**
1567
1639
  * unique viz key
1568
1640
  */
1569
1641
  key: 'splunk.bubble',
1642
+
1570
1643
  /**
1571
1644
  * viz name
1572
1645
  */
1573
- name: i18n_1._('Bubble'),
1646
+ name: (0, i18n_1._)('Bubble'),
1574
1647
  category: VizCategory_1.VizCategory.CORRELATION,
1648
+
1575
1649
  /**
1576
1650
  * viz icon
1577
1651
  */
@@ -1593,7 +1667,7 @@ var config = {
1593
1667
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER, VizBehavior_1.VizBehavior.EVENTS],
1594
1668
  themes: themes
1595
1669
  };
1596
- exports.default = configUtils_1.enhanceConfig(config);
1670
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
1597
1671
 
1598
1672
  /***/ })
1599
1673
  /******/ ]);