@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/Scatter.config.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 73);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 74);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -136,13 +136,15 @@ module.exports = require("@splunk/visualization-icons");
136
136
  Object.defineProperty(exports, "__esModule", {
137
137
  value: true
138
138
  });
139
+
139
140
  var i18n_1 = __webpack_require__(0);
141
+
140
142
  var background = function background(_ref) {
141
143
  var label = _ref.label,
142
- themes = _ref.themes,
143
- labelPosition = _ref.labelPosition;
144
+ themes = _ref.themes,
145
+ labelPosition = _ref.labelPosition;
144
146
  return [{
145
- label: i18n_1._(label || 'Background'),
147
+ label: (0, i18n_1._)(label || 'Background'),
146
148
  option: 'backgroundColor',
147
149
  editor: 'editor.color',
148
150
  editorProps: {
@@ -151,6 +153,7 @@ var background = function background(_ref) {
151
153
  }
152
154
  }];
153
155
  };
156
+
154
157
  exports.default = background;
155
158
 
156
159
  /***/ }),
@@ -169,16 +172,20 @@ module.exports = require("@splunk/visualization-color-palettes");
169
172
 
170
173
 
171
174
  var _toConsumableArray = __webpack_require__(1);
175
+
172
176
  Object.defineProperty(exports, "__esModule", {
173
177
  value: true
174
178
  });
175
179
  exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
180
+
176
181
  var i18n_1 = __webpack_require__(0);
182
+
177
183
  var configUtils_1 = __webpack_require__(4);
184
+
178
185
  var AxesChartDataConfig = {
179
- label: i18n_1._('Data configurations'),
186
+ label: (0, i18n_1._)('Data configurations'),
180
187
  layout: [[{
181
- label: i18n_1._('X'),
188
+ label: (0, i18n_1._)('X'),
182
189
  option: 'x',
183
190
  editor: 'editor.columnSelector',
184
191
  editorProps: {
@@ -187,7 +194,7 @@ var AxesChartDataConfig = {
187
194
  expectedDataPrimitive: ['series']
188
195
  }
189
196
  }], [{
190
- label: i18n_1._('Y'),
197
+ label: (0, i18n_1._)('Y'),
191
198
  option: 'y',
192
199
  editor: 'editor.columnMultiSelector',
193
200
  editorProps: {
@@ -197,7 +204,7 @@ var AxesChartDataConfig = {
197
204
  expectedDataPrimitive: ['series', 'frame']
198
205
  }
199
206
  }], [{
200
- label: i18n_1._('Result limit'),
207
+ label: (0, i18n_1._)('Result limit'),
201
208
  option: 'resultLimit',
202
209
  editor: 'editor.number',
203
210
  editorProps: {
@@ -208,8 +215,8 @@ var AxesChartDataConfig = {
208
215
  exports.AxesChartDataConfigBar = {
209
216
  label: AxesChartDataConfig.label,
210
217
  // insert Y2 after Y
211
- layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
212
- label: i18n_1._('Y2'),
218
+ layout: (0, configUtils_1.insertLayout)(AxesChartDataConfig.layout, 2, [{
219
+ label: (0, i18n_1._)('Y2'),
213
220
  option: 'y2',
214
221
  editor: 'editor.columnMultiSelector',
215
222
  editorProps: {
@@ -223,7 +230,7 @@ exports.AxesChartDataConfigBar = {
223
230
  exports.AxesChartDataConfigScatter = {
224
231
  label: AxesChartDataConfig.label,
225
232
  layout: [[{
226
- label: i18n_1._('X'),
233
+ label: (0, i18n_1._)('X'),
227
234
  option: 'x',
228
235
  editor: 'editor.columnSelector',
229
236
  editorProps: {
@@ -232,7 +239,7 @@ exports.AxesChartDataConfigScatter = {
232
239
  expectedDataPrimitive: ['series']
233
240
  }
234
241
  }], [{
235
- label: i18n_1._('Y'),
242
+ label: (0, i18n_1._)('Y'),
236
243
  option: 'y',
237
244
  editor: 'editor.columnSelector',
238
245
  editorProps: {
@@ -242,7 +249,7 @@ exports.AxesChartDataConfigScatter = {
242
249
  expectedDataPrimitive: ['series']
243
250
  }
244
251
  }], [{
245
- label: i18n_1._('Category'),
252
+ label: (0, i18n_1._)('Category'),
246
253
  option: 'category',
247
254
  editor: 'editor.columnSelector',
248
255
  editorProps: {
@@ -251,7 +258,7 @@ exports.AxesChartDataConfigScatter = {
251
258
  expectedDataPrimitive: ['series']
252
259
  }
253
260
  }], [{
254
- label: i18n_1._('Result limit'),
261
+ label: (0, i18n_1._)('Result limit'),
255
262
  option: 'resultLimit',
256
263
  editor: 'editor.number',
257
264
  editorProps: {
@@ -262,8 +269,8 @@ exports.AxesChartDataConfigScatter = {
262
269
  exports.AxesChartDataConfigBubble = {
263
270
  label: exports.AxesChartDataConfigScatter.label,
264
271
  // layout: insert Size after Category
265
- layout: configUtils_1.insertLayout(exports.AxesChartDataConfigScatter.layout, 3, [{
266
- label: i18n_1._('Size'),
272
+ layout: (0, configUtils_1.insertLayout)(exports.AxesChartDataConfigScatter.layout, 3, [{
273
+ label: (0, i18n_1._)('Size'),
267
274
  option: 'size',
268
275
  editor: 'editor.columnSelector',
269
276
  editorProps: {
@@ -276,7 +283,7 @@ exports.AxesChartDataConfigBubble = {
276
283
  exports.AxesChartDataConfigAreaColumnLine = {
277
284
  label: exports.AxesChartDataConfigBar.label,
278
285
  layout: [].concat(_toConsumableArray(exports.AxesChartDataConfigBar.layout), [[{
279
- label: i18n_1._('Annotation x'),
286
+ label: (0, i18n_1._)('Annotation x'),
280
287
  option: 'annotationX',
281
288
  editor: 'editor.columnSelector',
282
289
  editorProps: {
@@ -285,7 +292,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
285
292
  expectedDataPrimitive: ['series']
286
293
  }
287
294
  }], [{
288
- label: i18n_1._('Annotation labels'),
295
+ label: (0, i18n_1._)('Annotation labels'),
289
296
  option: 'annotationLabel',
290
297
  editor: 'editor.columnSelector',
291
298
  editorProps: {
@@ -308,13 +315,18 @@ exports.default = AxesChartDataConfig;
308
315
  Object.defineProperty(exports, "__esModule", {
309
316
  value: true
310
317
  });
318
+
311
319
  var i18n_1 = __webpack_require__(0);
320
+
312
321
  var pick_1 = __webpack_require__(9);
322
+
313
323
  var variables_1 = __webpack_require__(10);
324
+
314
325
  var BackgroundColor_1 = __webpack_require__(13);
326
+
315
327
  var themes = {
316
328
  defaultBackgroundColor: function defaultBackgroundColor(props) {
317
- return pick_1.default({
329
+ return (0, pick_1.default)({
318
330
  enterprise: {
319
331
  dark: variables_1.default.black(props),
320
332
  light: variables_1.default.backgroundColor(props)
@@ -324,15 +336,15 @@ var themes = {
324
336
  }
325
337
  };
326
338
  var AxesChartColorAndStyle = {
327
- label: i18n_1._('Color and style'),
328
- layout: [BackgroundColor_1.default({
339
+ label: (0, i18n_1._)('Color and style'),
340
+ layout: [(0, BackgroundColor_1.default)({
329
341
  themes: themes
330
342
  }), [{
331
- label: i18n_1._('Series colors'),
343
+ label: (0, i18n_1._)('Series colors'),
332
344
  option: 'seriesColors',
333
345
  editor: 'editor.seriesColors'
334
346
  }], [{
335
- label: i18n_1._('Series colors by field name'),
347
+ label: (0, i18n_1._)('Series colors by field name'),
336
348
  option: 'seriesColorsByField',
337
349
  editor: 'editor.seriesColorsByField'
338
350
  }]]
@@ -350,47 +362,49 @@ exports.default = AxesChartColorAndStyle;
350
362
  Object.defineProperty(exports, "__esModule", {
351
363
  value: true
352
364
  });
365
+
353
366
  var i18n_1 = __webpack_require__(0);
367
+
354
368
  var AxesChartLegend = {
355
- label: i18n_1._('Legend'),
369
+ label: (0, i18n_1._)('Legend'),
356
370
  layout: [[{
357
- label: i18n_1._('Legend display'),
371
+ label: (0, i18n_1._)('Legend display'),
358
372
  option: 'legendDisplay',
359
373
  editor: 'editor.select',
360
374
  editorProps: {
361
375
  values: [{
362
- label: i18n_1._('Right'),
376
+ label: (0, i18n_1._)('Right'),
363
377
  value: 'right'
364
378
  }, {
365
- label: i18n_1._('Left'),
379
+ label: (0, i18n_1._)('Left'),
366
380
  value: 'left'
367
381
  }, {
368
- label: i18n_1._('Top'),
382
+ label: (0, i18n_1._)('Top'),
369
383
  value: 'top'
370
384
  }, {
371
- label: i18n_1._('Bottom'),
385
+ label: (0, i18n_1._)('Bottom'),
372
386
  value: 'bottom'
373
387
  }, {
374
- label: i18n_1._('Off'),
388
+ label: (0, i18n_1._)('Off'),
375
389
  value: 'off'
376
390
  }]
377
391
  }
378
392
  }], [{
379
- label: i18n_1._('Legend truncation'),
393
+ label: (0, i18n_1._)('Legend truncation'),
380
394
  option: 'legendTruncation',
381
395
  editor: 'editor.radioBar',
382
396
  editorProps: {
383
397
  values: [{
384
- label: i18n_1._('A...'),
398
+ label: (0, i18n_1._)('A...'),
385
399
  value: 'ellipsisEnd'
386
400
  }, {
387
- label: i18n_1._('A...Z'),
401
+ label: (0, i18n_1._)('A...Z'),
388
402
  value: 'ellipsisMiddle'
389
403
  }, {
390
- label: i18n_1._('...Z'),
404
+ label: (0, i18n_1._)('...Z'),
391
405
  value: 'ellipsisStart'
392
406
  }, {
393
- label: i18n_1._('Off'),
407
+ label: (0, i18n_1._)('Off'),
394
408
  value: 'ellipsisOff'
395
409
  }]
396
410
  },
@@ -411,20 +425,24 @@ exports.default = AxesChartLegend;
411
425
 
412
426
 
413
427
  var _toConsumableArray = __webpack_require__(1);
428
+
414
429
  Object.defineProperty(exports, "__esModule", {
415
430
  value: true
416
431
  });
417
432
  exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
433
+
418
434
  var i18n_1 = __webpack_require__(0);
435
+
419
436
  var configUtils_1 = __webpack_require__(4);
437
+
420
438
  exports.AxesChartXGridAndLabelsCommon = {
421
- label: i18n_1._('X-axis grid and labels'),
439
+ label: (0, i18n_1._)('X-axis grid and labels'),
422
440
  layout: [[{
423
- label: i18n_1._('Axis title'),
441
+ label: (0, i18n_1._)('Axis title'),
424
442
  option: 'xAxisTitleVisibility',
425
443
  editor: 'editor.toggle'
426
444
  }], [{
427
- label: i18n_1._('Axis title text'),
445
+ label: (0, i18n_1._)('Axis title text'),
428
446
  option: 'xAxisTitleText',
429
447
  editor: 'editor.text',
430
448
  showEditor: function showEditor(_ref) {
@@ -432,18 +450,18 @@ exports.AxesChartXGridAndLabelsCommon = {
432
450
  return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
433
451
  }
434
452
  }], [{
435
- label: i18n_1._('Label visibility'),
453
+ label: (0, i18n_1._)('Label visibility'),
436
454
  option: 'xAxisLabelVisibility',
437
455
  editor: 'editor.radioBar',
438
456
  editorProps: {
439
457
  values: [{
440
- label: i18n_1._('Auto'),
458
+ label: (0, i18n_1._)('Auto'),
441
459
  value: 'auto'
442
460
  }, {
443
- label: i18n_1._('Show'),
461
+ label: (0, i18n_1._)('Show'),
444
462
  value: 'show'
445
463
  }, {
446
- label: i18n_1._('Hide'),
464
+ label: (0, i18n_1._)('Hide'),
447
465
  value: 'hide'
448
466
  }]
449
467
  }
@@ -452,24 +470,24 @@ exports.AxesChartXGridAndLabelsCommon = {
452
470
  var AxesChartXGridAndLabels = {
453
471
  label: exports.AxesChartXGridAndLabelsCommon.label,
454
472
  layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
455
- label: i18n_1._('Label rotation'),
473
+ label: (0, i18n_1._)('Label rotation'),
456
474
  option: 'xAxisLabelRotation',
457
475
  editor: 'editor.select',
458
476
  editorProps: {
459
477
  values: [{
460
- label: i18n_1._('-90'),
478
+ label: (0, i18n_1._)('-90'),
461
479
  value: -90
462
480
  }, {
463
- label: i18n_1._('-45'),
481
+ label: (0, i18n_1._)('-45'),
464
482
  value: -45
465
483
  }, {
466
- label: i18n_1._('0'),
484
+ label: (0, i18n_1._)('0'),
467
485
  value: 0
468
486
  }, {
469
- label: i18n_1._('45'),
487
+ label: (0, i18n_1._)('45'),
470
488
  value: 45
471
489
  }, {
472
- label: i18n_1._('90'),
490
+ label: (0, i18n_1._)('90'),
473
491
  value: 90
474
492
  }]
475
493
  },
@@ -478,7 +496,7 @@ var AxesChartXGridAndLabels = {
478
496
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
479
497
  }
480
498
  }], [{
481
- label: i18n_1._('Number of time label parts'),
499
+ label: (0, i18n_1._)('Number of time label parts'),
482
500
  option: 'xAxisMaxLabelParts',
483
501
  editor: 'editor.number',
484
502
  editorProps: {
@@ -490,31 +508,31 @@ var AxesChartXGridAndLabels = {
490
508
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
491
509
  }
492
510
  }], [{
493
- label: i18n_1._('Axis line visibility'),
511
+ label: (0, i18n_1._)('Axis line visibility'),
494
512
  option: 'xAxisLineVisibility',
495
513
  editor: 'editor.checkbox'
496
514
  }], [{
497
- label: i18n_1._('Major gridlines'),
515
+ label: (0, i18n_1._)('Major gridlines'),
498
516
  option: 'showXMajorGridLines',
499
517
  editor: 'editor.checkbox'
500
518
  }], [{
501
- label: i18n_1._('Major tick visibility'),
519
+ label: (0, i18n_1._)('Major tick visibility'),
502
520
  option: 'xAxisMajorTickVisibility',
503
521
  editor: 'editor.radioBar',
504
522
  editorProps: {
505
523
  values: [{
506
- label: i18n_1._('Auto'),
524
+ label: (0, i18n_1._)('Auto'),
507
525
  value: 'auto'
508
526
  }, {
509
- label: i18n_1._('Show'),
527
+ label: (0, i18n_1._)('Show'),
510
528
  value: 'show'
511
529
  }, {
512
- label: i18n_1._('Hide'),
530
+ label: (0, i18n_1._)('Hide'),
513
531
  value: 'hide'
514
532
  }]
515
533
  }
516
534
  }], [{
517
- label: i18n_1._('Major tick size (px)'),
535
+ label: (0, i18n_1._)('Major tick size (px)'),
518
536
  option: 'xAxisMajorTickSize',
519
537
  editor: 'editor.slider',
520
538
  editorProps: {
@@ -530,38 +548,38 @@ var AxesChartXGridAndLabels = {
530
548
  };
531
549
  exports.AxesChartXGridAndLabelsBubbleScatter = {
532
550
  label: exports.AxesChartXGridAndLabelsCommon.label,
533
- layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
534
- label: i18n_1._('Axis scale'),
551
+ layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
552
+ label: (0, i18n_1._)('Axis scale'),
535
553
  option: 'xAxisScale',
536
554
  editor: 'editor.radioBar',
537
555
  editorProps: {
538
556
  values: [{
539
- label: i18n_1._('Linear'),
557
+ label: (0, i18n_1._)('Linear'),
540
558
  value: 'linear'
541
559
  }, {
542
- label: i18n_1._('Log'),
560
+ label: (0, i18n_1._)('Log'),
543
561
  value: 'log'
544
562
  }]
545
563
  }
546
564
  }])), [[{
547
- label: i18n_1._('Label rotation'),
565
+ label: (0, i18n_1._)('Label rotation'),
548
566
  option: 'xAxisLabelRotation',
549
567
  editor: 'editor.select',
550
568
  editorProps: {
551
569
  values: [{
552
- label: i18n_1._('-90'),
570
+ label: (0, i18n_1._)('-90'),
553
571
  value: -90
554
572
  }, {
555
- label: i18n_1._('-45'),
573
+ label: (0, i18n_1._)('-45'),
556
574
  value: -45
557
575
  }, {
558
- label: i18n_1._('0'),
576
+ label: (0, i18n_1._)('0'),
559
577
  value: 0
560
578
  }, {
561
- label: i18n_1._('45'),
579
+ label: (0, i18n_1._)('45'),
562
580
  value: 45
563
581
  }, {
564
- label: i18n_1._('90'),
582
+ label: (0, i18n_1._)('90'),
565
583
  value: 90
566
584
  }]
567
585
  },
@@ -570,7 +588,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
570
588
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
571
589
  }
572
590
  }], [{
573
- label: i18n_1._('Round axis labels'),
591
+ label: (0, i18n_1._)('Round axis labels'),
574
592
  option: 'showRoundedXAxisLabels',
575
593
  editor: 'editor.checkbox',
576
594
  showEditor: function showEditor(_ref6) {
@@ -578,7 +596,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
578
596
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
579
597
  }
580
598
  }], [{
581
- label: i18n_1._('SI prefix abbreviation for labels'),
599
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
582
600
  option: 'xAxisAbbreviation',
583
601
  editor: 'editor.checkbox',
584
602
  showEditor: function showEditor(_ref7) {
@@ -586,27 +604,26 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
586
604
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
587
605
  }
588
606
  }], [{
589
- label: i18n_1._('Include zero'),
607
+ label: (0, i18n_1._)('Include zero'),
590
608
  option: 'showXAxisWithZero',
591
609
  editor: 'editor.checkbox'
592
610
  }], [{
593
- label: i18n_1._('Extend to whole grid'),
611
+ label: (0, i18n_1._)('Extend to whole grid'),
594
612
  option: 'showXAxisExtendedRange',
595
613
  editor: 'editor.checkbox'
596
614
  }], [{
597
- label: i18n_1._('Minimum axis value'),
615
+ label: (0, i18n_1._)('Minimum axis value'),
598
616
  option: 'xAxisMin',
599
617
  editor: 'editor.number'
600
618
  }, {
601
- label: i18n_1._('Maximum axis value'),
619
+ label: (0, i18n_1._)('Maximum axis value'),
602
620
  option: 'xAxisMax',
603
621
  editor: 'editor.number'
604
622
  }], [{
605
- label: i18n_1._('Axis line visibility'),
623
+ label: (0, i18n_1._)('Axis line visibility'),
606
624
  option: 'xAxisLineVisibility',
607
625
  editor: 'editor.checkbox'
608
- }],
609
- // this option is disabled for bubble and scatter
626
+ }], // this option is disabled for bubble and scatter
610
627
  // [
611
628
  // {
612
629
  // label: _('Major gridlines'),
@@ -615,23 +632,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
615
632
  // },
616
633
  // ],
617
634
  [{
618
- label: i18n_1._('Major tick visibility'),
635
+ label: (0, i18n_1._)('Major tick visibility'),
619
636
  option: 'xAxisMajorTickVisibility',
620
637
  editor: 'editor.radioBar',
621
638
  editorProps: {
622
639
  values: [{
623
- label: i18n_1._('Auto'),
640
+ label: (0, i18n_1._)('Auto'),
624
641
  value: 'auto'
625
642
  }, {
626
- label: i18n_1._('Show'),
643
+ label: (0, i18n_1._)('Show'),
627
644
  value: 'show'
628
645
  }, {
629
- label: i18n_1._('Hide'),
646
+ label: (0, i18n_1._)('Hide'),
630
647
  value: 'hide'
631
648
  }]
632
649
  }
633
650
  }], [{
634
- label: i18n_1._('Major tick size (px)'),
651
+ label: (0, i18n_1._)('Major tick size (px)'),
635
652
  option: 'xAxisMajorTickSize',
636
653
  editor: 'editor.slider',
637
654
  editorProps: {
@@ -644,7 +661,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
644
661
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
645
662
  }
646
663
  }], [{
647
- label: i18n_1._('Major tick interval spacing'),
664
+ label: (0, i18n_1._)('Major tick interval spacing'),
648
665
  option: 'xAxisMajorTickInterval',
649
666
  editor: 'editor.number',
650
667
  showEditor: function showEditor(_ref9) {
@@ -652,27 +669,27 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
652
669
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
653
670
  }
654
671
  }], [{
655
- label: i18n_1._('Minor gridlines'),
672
+ label: (0, i18n_1._)('Minor gridlines'),
656
673
  option: 'showXMinorGridLines',
657
674
  editor: 'editor.checkbox'
658
675
  }], [{
659
- label: i18n_1._('Minor tick visibility'),
676
+ label: (0, i18n_1._)('Minor tick visibility'),
660
677
  option: 'xAxisMinorTickVisibility',
661
678
  editor: 'editor.radioBar',
662
679
  editorProps: {
663
680
  values: [{
664
- label: i18n_1._('Auto'),
681
+ label: (0, i18n_1._)('Auto'),
665
682
  value: 'auto'
666
683
  }, {
667
- label: i18n_1._('Show'),
684
+ label: (0, i18n_1._)('Show'),
668
685
  value: 'show'
669
686
  }, {
670
- label: i18n_1._('Hide'),
687
+ label: (0, i18n_1._)('Hide'),
671
688
  value: 'hide'
672
689
  }]
673
690
  }
674
691
  }], [{
675
- label: i18n_1._('Minor tick size (px)'),
692
+ label: (0, i18n_1._)('Minor tick size (px)'),
676
693
  option: 'xAxisMinorTickSize',
677
694
  editor: 'editor.slider',
678
695
  editorProps: {
@@ -701,6 +718,7 @@ Object.defineProperty(exports, "__esModule", {
701
718
  });
702
719
  exports.VizBehavior = void 0;
703
720
  var VizBehavior;
721
+
704
722
  (function (VizBehavior) {
705
723
  /**
706
724
  * Dynamic Options Behavior.
@@ -720,6 +738,7 @@ var VizBehavior;
720
738
  * missing.
721
739
  * @type {string}
722
740
  */
741
+
723
742
  VizBehavior["PLACEHOLDER"] = "placeholder";
724
743
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
725
744
  VizBehavior["TRELLIS"] = "trellis";
@@ -736,15 +755,17 @@ var VizBehavior;
736
755
  Object.defineProperty(exports, "__esModule", {
737
756
  value: true
738
757
  });
758
+
739
759
  var i18n_1 = __webpack_require__(0);
760
+
740
761
  var AxesChartYGridAndLabels = {
741
- label: i18n_1._('Y-axis grid and labels'),
762
+ label: (0, i18n_1._)('Y-axis grid and labels'),
742
763
  layout: [[{
743
- label: i18n_1._('Axis title'),
764
+ label: (0, i18n_1._)('Axis title'),
744
765
  option: 'yAxisTitleVisibility',
745
766
  editor: 'editor.toggle'
746
767
  }], [{
747
- label: i18n_1._('Axis title text'),
768
+ label: (0, i18n_1._)('Axis title text'),
748
769
  option: 'yAxisTitleText',
749
770
  editor: 'editor.text',
750
771
  showEditor: function showEditor(_ref) {
@@ -752,36 +773,36 @@ var AxesChartYGridAndLabels = {
752
773
  return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
753
774
  }
754
775
  }], [{
755
- label: i18n_1._('Scale'),
776
+ label: (0, i18n_1._)('Scale'),
756
777
  option: 'yAxisScale',
757
778
  editor: 'editor.radioBar',
758
779
  editorProps: {
759
780
  values: [{
760
- label: i18n_1._('Linear'),
781
+ label: (0, i18n_1._)('Linear'),
761
782
  value: 'linear'
762
783
  }, {
763
- label: i18n_1._('Log'),
784
+ label: (0, i18n_1._)('Log'),
764
785
  value: 'log'
765
786
  }]
766
787
  }
767
788
  }], [{
768
- label: i18n_1._('Label visibility'),
789
+ label: (0, i18n_1._)('Label visibility'),
769
790
  option: 'yAxisLabelVisibility',
770
791
  editor: 'editor.radioBar',
771
792
  editorProps: {
772
793
  values: [{
773
- label: i18n_1._('Auto'),
794
+ label: (0, i18n_1._)('Auto'),
774
795
  value: 'auto'
775
796
  }, {
776
- label: i18n_1._('Show'),
797
+ label: (0, i18n_1._)('Show'),
777
798
  value: 'show'
778
799
  }, {
779
- label: i18n_1._('Hide'),
800
+ label: (0, i18n_1._)('Hide'),
780
801
  value: 'hide'
781
802
  }]
782
803
  }
783
804
  }], [{
784
- label: i18n_1._('SI prefix abbreviation for labels'),
805
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
785
806
  option: 'yAxisAbbreviation',
786
807
  editor: 'editor.checkbox',
787
808
  showEditor: function showEditor(_ref2) {
@@ -789,47 +810,47 @@ var AxesChartYGridAndLabels = {
789
810
  return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
790
811
  }
791
812
  }], [{
792
- label: i18n_1._('Include zero'),
813
+ label: (0, i18n_1._)('Include zero'),
793
814
  option: 'showYAxisWithZero',
794
815
  editor: 'editor.checkbox'
795
816
  }], [{
796
- label: i18n_1._('Extend to whole grid'),
817
+ label: (0, i18n_1._)('Extend to whole grid'),
797
818
  option: 'showYAxisExtendedRange',
798
819
  editor: 'editor.checkbox'
799
820
  }], [{
800
- label: i18n_1._('Minimum axis value'),
821
+ label: (0, i18n_1._)('Minimum axis value'),
801
822
  option: 'yAxisMin',
802
823
  editor: 'editor.number'
803
824
  }, {
804
- label: i18n_1._('Maximum axis value'),
825
+ label: (0, i18n_1._)('Maximum axis value'),
805
826
  option: 'yAxisMax',
806
827
  editor: 'editor.number'
807
828
  }], [{
808
- label: i18n_1._('Axis line visibility'),
829
+ label: (0, i18n_1._)('Axis line visibility'),
809
830
  option: 'yAxisLineVisibility',
810
831
  editor: 'editor.checkbox'
811
832
  }], [{
812
- label: i18n_1._('Major gridlines'),
833
+ label: (0, i18n_1._)('Major gridlines'),
813
834
  option: 'showYMajorGridLines',
814
835
  editor: 'editor.checkbox'
815
836
  }], [{
816
- label: i18n_1._('Major tick visibility'),
837
+ label: (0, i18n_1._)('Major tick visibility'),
817
838
  option: 'yAxisMajorTickVisibility',
818
839
  editor: 'editor.radioBar',
819
840
  editorProps: {
820
841
  values: [{
821
- label: i18n_1._('Auto'),
842
+ label: (0, i18n_1._)('Auto'),
822
843
  value: 'auto'
823
844
  }, {
824
- label: i18n_1._('Show'),
845
+ label: (0, i18n_1._)('Show'),
825
846
  value: 'show'
826
847
  }, {
827
- label: i18n_1._('Hide'),
848
+ label: (0, i18n_1._)('Hide'),
828
849
  value: 'hide'
829
850
  }]
830
851
  }
831
852
  }], [{
832
- label: i18n_1._('Major tick size (px)'),
853
+ label: (0, i18n_1._)('Major tick size (px)'),
833
854
  option: 'yAxisMajorTickSize',
834
855
  editor: 'editor.slider',
835
856
  editorProps: {
@@ -842,7 +863,7 @@ var AxesChartYGridAndLabels = {
842
863
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
843
864
  }
844
865
  }], [{
845
- label: i18n_1._('Major tick interval spacing'),
866
+ label: (0, i18n_1._)('Major tick interval spacing'),
846
867
  option: 'yAxisMajorTickInterval',
847
868
  editor: 'editor.number',
848
869
  showEditor: function showEditor(_ref4) {
@@ -850,27 +871,27 @@ var AxesChartYGridAndLabels = {
850
871
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
851
872
  }
852
873
  }], [{
853
- label: i18n_1._('Minor gridlines'),
874
+ label: (0, i18n_1._)('Minor gridlines'),
854
875
  option: 'showYMinorGridLines',
855
876
  editor: 'editor.checkbox'
856
877
  }], [{
857
- label: i18n_1._('Minor tick visibility'),
878
+ label: (0, i18n_1._)('Minor tick visibility'),
858
879
  option: 'yAxisMinorTickVisibility',
859
880
  editor: 'editor.radioBar',
860
881
  editorProps: {
861
882
  values: [{
862
- label: i18n_1._('Auto'),
883
+ label: (0, i18n_1._)('Auto'),
863
884
  value: 'auto'
864
885
  }, {
865
- label: i18n_1._('Show'),
886
+ label: (0, i18n_1._)('Show'),
866
887
  value: 'show'
867
888
  }, {
868
- label: i18n_1._('Hide'),
889
+ label: (0, i18n_1._)('Hide'),
869
890
  value: 'hide'
870
891
  }]
871
892
  }
872
893
  }], [{
873
- label: i18n_1._('Minor tick size (px)'),
894
+ label: (0, i18n_1._)('Minor tick size (px)'),
874
895
  option: 'yAxisMinorTickSize',
875
896
  editor: 'editor.slider',
876
897
  editorProps: {
@@ -902,24 +923,33 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
902
923
 
903
924
 
904
925
  var _toConsumableArray = __webpack_require__(1);
926
+
905
927
  var _defineProperty = __webpack_require__(7);
928
+
906
929
  var __rest = this && this.__rest || function (s, e) {
907
930
  var t = {};
931
+
908
932
  for (var p in s) {
909
933
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
910
934
  }
935
+
911
936
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
912
937
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
913
938
  }
914
939
  return t;
915
940
  };
941
+
916
942
  Object.defineProperty(exports, "__esModule", {
917
943
  value: true
918
944
  });
919
945
  exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
946
+
920
947
  var lodash_1 = __webpack_require__(6);
948
+
921
949
  var schemaUtils_1 = __webpack_require__(3);
950
+
922
951
  var VizBehavior_1 = __webpack_require__(2);
952
+
923
953
  var dynamicOptionsDSLType = {
924
954
  type: 'string',
925
955
  pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
@@ -929,20 +959,22 @@ var dynamicOptionsDSLType = {
929
959
  * @param optionsSchema a visualization's options schema
930
960
  * @returns an updated options schema that additionally allows strings starting with > for each option
931
961
  */
962
+
932
963
  function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
933
964
  var enhancedOptionsSchema = {};
934
965
  Object.keys(optionsSchema).forEach(function (key) {
935
966
  var _a = optionsSchema[key],
936
- title = _a.title,
937
- description = _a.description,
938
- readOnly = _a.readOnly,
939
- writeOnly = _a.writeOnly,
940
- examples = _a.examples,
941
- defaultValue = _a.default,
942
- type = _a.type,
943
- properties = _a.properties,
944
- patternProperties = _a.patternProperties,
945
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
967
+ title = _a.title,
968
+ description = _a.description,
969
+ readOnly = _a.readOnly,
970
+ writeOnly = _a.writeOnly,
971
+ examples = _a.examples,
972
+ defaultValue = _a.default,
973
+ type = _a.type,
974
+ properties = _a.properties,
975
+ patternProperties = _a.patternProperties,
976
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
977
+
946
978
  var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
947
979
  title: title
948
980
  }), description !== undefined && {
@@ -956,12 +988,14 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
956
988
  }), defaultValue !== undefined && {
957
989
  default: defaultValue
958
990
  });
991
+
959
992
  if (type === 'object') {
960
993
  enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
961
994
  type: type
962
995
  }), properties && {
963
996
  properties: enhanceOptionsSchemaWithDynamicOptions(properties)
964
997
  });
998
+
965
999
  if (patternProperties) {
966
1000
  var enhancedPatternProperties = {};
967
1001
  Object.keys(patternProperties).forEach(function (opt) {
@@ -979,6 +1013,7 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
979
1013
  });
980
1014
  return enhancedOptionsSchema;
981
1015
  }
1016
+
982
1017
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
983
1018
  /**
984
1019
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
@@ -987,11 +1022,14 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
987
1022
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
988
1023
  * and containing `open: false` for all editor panels in editorConfig
989
1024
  */
1025
+
990
1026
  function enhanceConfig(vizConfig) {
991
1027
  var enhancedConfig = Object.assign({}, vizConfig);
1028
+
992
1029
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
993
1030
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
994
1031
  }
1032
+
995
1033
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
996
1034
  return Object.assign(Object.assign({}, config), {
997
1035
  open: config.open || false
@@ -999,6 +1037,7 @@ function enhanceConfig(vizConfig) {
999
1037
  });
1000
1038
  return enhancedConfig;
1001
1039
  }
1040
+
1002
1041
  exports.enhanceConfig = enhanceConfig;
1003
1042
  /**
1004
1043
  * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
@@ -1006,6 +1045,7 @@ exports.enhanceConfig = enhanceConfig;
1006
1045
  * @param vizConfig a Visualization Config
1007
1046
  * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
1008
1047
  */
1048
+
1009
1049
  function uncollapseEditorConfig(vizConfig) {
1010
1050
  var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
1011
1051
  editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
@@ -1015,13 +1055,16 @@ function uncollapseEditorConfig(vizConfig) {
1015
1055
  });
1016
1056
  return editorPanelUncollapsedConfig;
1017
1057
  }
1058
+
1018
1059
  exports.uncollapseEditorConfig = uncollapseEditorConfig;
1060
+
1019
1061
  function isDynamicOption(option) {
1020
1062
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
1021
1063
  }
1022
- exports.isDynamicOption = isDynamicOption;
1023
- // private helpers to improve readability of getInitialPreset
1064
+
1065
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
1024
1066
  // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
1067
+
1025
1068
  /**
1026
1069
  * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
1027
1070
  * 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
@@ -1030,6 +1073,7 @@ exports.isDynamicOption = isDynamicOption;
1030
1073
  *
1031
1074
  * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
1032
1075
  */
1076
+
1033
1077
  function hasCompatibleContexts(vizContext, presetContext) {
1034
1078
  var presetContextKeys = Object.keys(presetContext);
1035
1079
  return presetContextKeys.every(function (contextKey) {
@@ -1039,6 +1083,8 @@ function hasCompatibleContexts(vizContext, presetContext) {
1039
1083
  /**
1040
1084
  * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
1041
1085
  */
1086
+
1087
+
1042
1088
  function hasCompatibleOptions(vizOptions, presetOptions) {
1043
1089
  var presetOptionKeys = Object.keys(presetOptions);
1044
1090
  return presetOptionKeys.every(function (optionKey) {
@@ -1053,18 +1099,21 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
1053
1099
  * @param {Object} vizOptions - the current vizOptions definition
1054
1100
  * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
1055
1101
  */
1102
+
1103
+
1056
1104
  function getInitialPreset(vizContext, vizOptions, presets) {
1057
1105
  return presets.find(function (preset) {
1058
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
1059
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
1106
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
1107
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
1060
1108
  var presetContextKeys = Object.keys(presetContext);
1061
- var presetOptionKeys = Object.keys(presetOptions);
1062
- // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
1109
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
1063
1110
  // if not, then the preset is invalid in config.ts
1111
+
1064
1112
  if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
1065
1113
  return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
1066
1114
  });
1067
1115
  }
1116
+
1068
1117
  exports.getInitialPreset = getInitialPreset;
1069
1118
  /**
1070
1119
  * generates number precision values for a Select editor
@@ -1072,14 +1121,16 @@ exports.getInitialPreset = getInitialPreset;
1072
1121
  * @param {Number} numPrecisionValues - number of integer precision values to generate
1073
1122
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
1074
1123
  */
1124
+
1075
1125
  function generatePrecisionValues(numPrecisionValues) {
1076
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
1126
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
1077
1127
  return {
1078
1128
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
1079
1129
  value: i
1080
1130
  };
1081
1131
  });
1082
1132
  }
1133
+
1083
1134
  exports.generatePrecisionValues = generatePrecisionValues;
1084
1135
  /**
1085
1136
  * insert layout in layout array, return a new layout array instead of updating the original
@@ -1089,12 +1140,15 @@ exports.generatePrecisionValues = generatePrecisionValues;
1089
1140
  * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
1090
1141
  * @returns {EditorLayoutConfig[][]} new editor layout with insertion
1091
1142
  */
1143
+
1092
1144
  var insertLayout = function insertLayout(layout, index) {
1093
1145
  for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1094
1146
  layoutItems[_key - 2] = arguments[_key];
1095
1147
  }
1148
+
1096
1149
  return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
1097
1150
  };
1151
+
1098
1152
  exports.insertLayout = insertLayout;
1099
1153
 
1100
1154
  /***/ }),
@@ -1113,39 +1167,55 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
1113
1167
 
1114
1168
  /***/ }),
1115
1169
 
1116
- /***/ 73:
1170
+ /***/ 74:
1117
1171
  /***/ (function(module, exports, __webpack_require__) {
1118
1172
 
1119
1173
  "use strict";
1120
1174
 
1121
1175
 
1122
1176
  var _toConsumableArray = __webpack_require__(1);
1177
+
1123
1178
  Object.defineProperty(exports, "__esModule", {
1124
1179
  value: true
1125
1180
  });
1126
1181
  exports.optionsSchema = void 0;
1182
+
1127
1183
  var visualization_icons_1 = __webpack_require__(12);
1184
+
1128
1185
  var placeholders_1 = __webpack_require__(11);
1186
+
1129
1187
  var pick_1 = __webpack_require__(9);
1188
+
1130
1189
  var variables_1 = __webpack_require__(10);
1190
+
1131
1191
  var schemaUtils_1 = __webpack_require__(3);
1192
+
1132
1193
  var visualization_color_palettes_1 = __webpack_require__(14);
1194
+
1133
1195
  var i18n_1 = __webpack_require__(0);
1196
+
1134
1197
  var VizBehavior_1 = __webpack_require__(2);
1198
+
1135
1199
  var VizCategory_1 = __webpack_require__(8);
1200
+
1136
1201
  var configUtils_1 = __webpack_require__(4);
1202
+
1137
1203
  var AxesChartDataConfig_1 = __webpack_require__(16);
1204
+
1138
1205
  var AxesChartXGridAndLabels_1 = __webpack_require__(19);
1206
+
1139
1207
  var AxesChartColorAndStyle_1 = __webpack_require__(17);
1208
+
1140
1209
  var AxesChartLegend_1 = __webpack_require__(18);
1210
+
1141
1211
  var AxesChartYGridAndLabels_1 = __webpack_require__(20);
1212
+
1142
1213
  var dataContract = {
1143
1214
  requiredDataSources: [{
1144
1215
  name: 'primary',
1145
1216
  description: 'DataSource that powers the visualization'
1146
1217
  }],
1147
- optionalDataSources: [
1148
- // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1218
+ optionalDataSources: [// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1149
1219
  // {
1150
1220
  // name: 'annotation',
1151
1221
  // description: 'DataSource that populates event annotations',
@@ -1216,13 +1286,13 @@ exports.optionsSchema = {
1216
1286
  legendDisplay: {
1217
1287
  default: 'right',
1218
1288
  description: 'Specify the location of the legend on the panel.',
1219
- pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
1289
+ pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1220
1290
  type: 'string'
1221
1291
  },
1222
1292
  legendTruncation: {
1223
1293
  default: 'ellipsisEnd',
1224
1294
  description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
1225
- pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1295
+ pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1226
1296
  type: 'string'
1227
1297
  },
1228
1298
  markerSize: {
@@ -1303,40 +1373,40 @@ exports.optionsSchema = {
1303
1373
  default: 'off',
1304
1374
  description: 'Specify whether to abbreviate large x-axis values with the closest SI prefix.',
1305
1375
  enum: ['off', 'auto'],
1306
- pattern: schemaUtils_1.getPattern(['auto', 'off']),
1376
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1307
1377
  type: 'string'
1308
1378
  },
1309
1379
  yAxisAbbreviation: {
1310
1380
  default: 'auto',
1311
1381
  description: 'Specify whether to abbreviate large y-axis values with the closest SI prefix.',
1312
1382
  enum: ['off', 'auto'],
1313
- pattern: schemaUtils_1.getPattern(['auto', 'off']),
1383
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1314
1384
  type: 'string'
1315
1385
  },
1316
1386
  xAxisLabelVisibility: {
1317
1387
  default: 'auto',
1318
1388
  description: 'Specify whether to show or hide labels on the x-axis.',
1319
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1389
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1320
1390
  type: 'string'
1321
1391
  },
1322
1392
  yAxisLabelVisibility: {
1323
1393
  default: 'auto',
1324
1394
  description: 'Specify whether to show or hide labels on the y-axis.',
1325
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1395
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1326
1396
  type: 'string'
1327
1397
  },
1328
1398
  xAxisLineVisibility: {
1329
1399
  default: 'hide',
1330
1400
  description: 'Specify whether to show or hide the x-axis line.',
1331
1401
  enum: ['hide', 'show'],
1332
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1402
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1333
1403
  type: 'string'
1334
1404
  },
1335
1405
  yAxisLineVisibility: {
1336
1406
  default: 'hide',
1337
1407
  description: 'Specify whether to show or hide the y-axis line.',
1338
1408
  enum: ['hide', 'show'],
1339
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1409
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1340
1410
  type: 'string'
1341
1411
  },
1342
1412
  xAxisMajorTickInterval: {
@@ -1372,25 +1442,25 @@ exports.optionsSchema = {
1372
1442
  xAxisMajorTickVisibility: {
1373
1443
  default: 'auto',
1374
1444
  description: 'Specify whether to show or hide major tick marks on the x-axis.',
1375
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1445
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1376
1446
  type: 'string'
1377
1447
  },
1378
1448
  yAxisMajorTickVisibility: {
1379
1449
  default: 'auto',
1380
1450
  description: 'Specify whether to show or hide major tick marks on the y-axis.',
1381
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1451
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1382
1452
  type: 'string'
1383
1453
  },
1384
1454
  xAxisMinorTickVisibility: {
1385
1455
  default: 'auto',
1386
1456
  description: 'Specify whether to show or hide minor tick marks on the x-axis .',
1387
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1457
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1388
1458
  type: 'string'
1389
1459
  },
1390
1460
  yAxisMinorTickVisibility: {
1391
1461
  default: 'auto',
1392
1462
  description: 'Specify whether to show or hide minor tick marks on the y-axis.',
1393
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
1463
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1394
1464
  type: 'string'
1395
1465
  },
1396
1466
  xAxisMax: {
@@ -1416,13 +1486,13 @@ exports.optionsSchema = {
1416
1486
  xAxisScale: {
1417
1487
  default: 'linear',
1418
1488
  description: 'Specify the type of scale that applies to a numerical x-axis.',
1419
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
1489
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1420
1490
  type: 'string'
1421
1491
  },
1422
1492
  yAxisScale: {
1423
1493
  default: 'linear',
1424
1494
  description: 'Specify the type of scale that applies to a numerical y-axis.',
1425
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
1495
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1426
1496
  type: 'string'
1427
1497
  },
1428
1498
  xAxisTitleText: {
@@ -1437,20 +1507,20 @@ exports.optionsSchema = {
1437
1507
  default: 'show',
1438
1508
  description: 'Specify whether to show or hide the title of the x-axis.',
1439
1509
  enum: ['hide', 'show'],
1440
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1510
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1441
1511
  type: 'string'
1442
1512
  },
1443
1513
  yAxisTitleVisibility: {
1444
1514
  default: 'show',
1445
1515
  description: 'Specify whether to show or hide the title of the y-axis.',
1446
1516
  enum: ['hide', 'show'],
1447
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
1517
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1448
1518
  type: 'string'
1449
1519
  }
1450
1520
  };
1451
1521
  var themes = {
1452
1522
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1453
- return pick_1.default({
1523
+ return (0, pick_1.default)({
1454
1524
  enterprise: {
1455
1525
  dark: variables_1.default.black(props),
1456
1526
  light: variables_1.default.backgroundColor(props)
@@ -1462,14 +1532,14 @@ var themes = {
1462
1532
  var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigScatter, {
1463
1533
  label: AxesChartColorAndStyle_1.default.label,
1464
1534
  layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout.slice(0, 2)), [[{
1465
- label: i18n_1._('Series colors by category name'),
1535
+ label: (0, i18n_1._)('Series colors by category name'),
1466
1536
  option: 'seriesColorsByField',
1467
1537
  editor: 'editor.seriesColorsByField',
1468
1538
  editorProps: {
1469
1539
  isCategorical: true
1470
1540
  }
1471
1541
  }], [{
1472
- label: i18n_1._('Marker size'),
1542
+ label: (0, i18n_1._)('Marker size'),
1473
1543
  option: 'markerSize',
1474
1544
  editor: 'editor.slider',
1475
1545
  editorProps: {
@@ -1482,16 +1552,19 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigScatter, {
1482
1552
  /**
1483
1553
  * visualization configuration
1484
1554
  */
1555
+
1485
1556
  var config = {
1486
1557
  /**
1487
1558
  * unique viz key
1488
1559
  */
1489
1560
  key: 'splunk.scatter',
1561
+
1490
1562
  /**
1491
1563
  * viz name
1492
1564
  */
1493
- name: i18n_1._('Scatter'),
1565
+ name: (0, i18n_1._)('Scatter'),
1494
1566
  category: VizCategory_1.VizCategory.CORRELATION,
1567
+
1495
1568
  /**
1496
1569
  * viz icon
1497
1570
  */
@@ -1513,7 +1586,7 @@ var config = {
1513
1586
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
1514
1587
  themes: themes
1515
1588
  };
1516
- exports.default = configUtils_1.enhanceConfig(config);
1589
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
1517
1590
 
1518
1591
  /***/ }),
1519
1592
 
@@ -1528,6 +1601,7 @@ Object.defineProperty(exports, "__esModule", {
1528
1601
  });
1529
1602
  exports.VizCategory = void 0;
1530
1603
  var VizCategory;
1604
+
1531
1605
  (function (VizCategory) {
1532
1606
  VizCategory["SINGLE_VALUE"] = "Single Value";
1533
1607
  VizCategory["TRENDS"] = "Trends";