@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
@@ -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 = 55);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 56);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -145,6 +145,7 @@ Object.defineProperty(exports, "__esModule", {
145
145
  });
146
146
  exports.VizBehavior = void 0;
147
147
  var VizBehavior;
148
+
148
149
  (function (VizBehavior) {
149
150
  /**
150
151
  * Dynamic Options Behavior.
@@ -164,6 +165,7 @@ var VizBehavior;
164
165
  * missing.
165
166
  * @type {string}
166
167
  */
168
+
167
169
  VizBehavior["PLACEHOLDER"] = "placeholder";
168
170
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
169
171
  VizBehavior["TRELLIS"] = "trellis";
@@ -192,24 +194,33 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
192
194
 
193
195
 
194
196
  var _toConsumableArray = __webpack_require__(1);
197
+
195
198
  var _defineProperty = __webpack_require__(7);
199
+
196
200
  var __rest = this && this.__rest || function (s, e) {
197
201
  var t = {};
202
+
198
203
  for (var p in s) {
199
204
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
200
205
  }
206
+
201
207
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
202
208
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
203
209
  }
204
210
  return t;
205
211
  };
212
+
206
213
  Object.defineProperty(exports, "__esModule", {
207
214
  value: true
208
215
  });
209
216
  exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
217
+
210
218
  var lodash_1 = __webpack_require__(6);
219
+
211
220
  var schemaUtils_1 = __webpack_require__(3);
221
+
212
222
  var VizBehavior_1 = __webpack_require__(2);
223
+
213
224
  var dynamicOptionsDSLType = {
214
225
  type: 'string',
215
226
  pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
@@ -219,20 +230,22 @@ var dynamicOptionsDSLType = {
219
230
  * @param optionsSchema a visualization's options schema
220
231
  * @returns an updated options schema that additionally allows strings starting with > for each option
221
232
  */
233
+
222
234
  function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
223
235
  var enhancedOptionsSchema = {};
224
236
  Object.keys(optionsSchema).forEach(function (key) {
225
237
  var _a = optionsSchema[key],
226
- title = _a.title,
227
- description = _a.description,
228
- readOnly = _a.readOnly,
229
- writeOnly = _a.writeOnly,
230
- examples = _a.examples,
231
- defaultValue = _a.default,
232
- type = _a.type,
233
- properties = _a.properties,
234
- patternProperties = _a.patternProperties,
235
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
238
+ title = _a.title,
239
+ description = _a.description,
240
+ readOnly = _a.readOnly,
241
+ writeOnly = _a.writeOnly,
242
+ examples = _a.examples,
243
+ defaultValue = _a.default,
244
+ type = _a.type,
245
+ properties = _a.properties,
246
+ patternProperties = _a.patternProperties,
247
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
248
+
236
249
  var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
237
250
  title: title
238
251
  }), description !== undefined && {
@@ -246,12 +259,14 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
246
259
  }), defaultValue !== undefined && {
247
260
  default: defaultValue
248
261
  });
262
+
249
263
  if (type === 'object') {
250
264
  enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
251
265
  type: type
252
266
  }), properties && {
253
267
  properties: enhanceOptionsSchemaWithDynamicOptions(properties)
254
268
  });
269
+
255
270
  if (patternProperties) {
256
271
  var enhancedPatternProperties = {};
257
272
  Object.keys(patternProperties).forEach(function (opt) {
@@ -269,6 +284,7 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
269
284
  });
270
285
  return enhancedOptionsSchema;
271
286
  }
287
+
272
288
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
273
289
  /**
274
290
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
@@ -277,11 +293,14 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
277
293
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
278
294
  * and containing `open: false` for all editor panels in editorConfig
279
295
  */
296
+
280
297
  function enhanceConfig(vizConfig) {
281
298
  var enhancedConfig = Object.assign({}, vizConfig);
299
+
282
300
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
283
301
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
284
302
  }
303
+
285
304
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
286
305
  return Object.assign(Object.assign({}, config), {
287
306
  open: config.open || false
@@ -289,6 +308,7 @@ function enhanceConfig(vizConfig) {
289
308
  });
290
309
  return enhancedConfig;
291
310
  }
311
+
292
312
  exports.enhanceConfig = enhanceConfig;
293
313
  /**
294
314
  * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
@@ -296,6 +316,7 @@ exports.enhanceConfig = enhanceConfig;
296
316
  * @param vizConfig a Visualization Config
297
317
  * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
298
318
  */
319
+
299
320
  function uncollapseEditorConfig(vizConfig) {
300
321
  var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
301
322
  editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
@@ -305,13 +326,16 @@ function uncollapseEditorConfig(vizConfig) {
305
326
  });
306
327
  return editorPanelUncollapsedConfig;
307
328
  }
329
+
308
330
  exports.uncollapseEditorConfig = uncollapseEditorConfig;
331
+
309
332
  function isDynamicOption(option) {
310
333
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
311
334
  }
312
- exports.isDynamicOption = isDynamicOption;
313
- // private helpers to improve readability of getInitialPreset
335
+
336
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
314
337
  // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
338
+
315
339
  /**
316
340
  * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
317
341
  * 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
@@ -320,6 +344,7 @@ exports.isDynamicOption = isDynamicOption;
320
344
  *
321
345
  * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
322
346
  */
347
+
323
348
  function hasCompatibleContexts(vizContext, presetContext) {
324
349
  var presetContextKeys = Object.keys(presetContext);
325
350
  return presetContextKeys.every(function (contextKey) {
@@ -329,6 +354,8 @@ function hasCompatibleContexts(vizContext, presetContext) {
329
354
  /**
330
355
  * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
331
356
  */
357
+
358
+
332
359
  function hasCompatibleOptions(vizOptions, presetOptions) {
333
360
  var presetOptionKeys = Object.keys(presetOptions);
334
361
  return presetOptionKeys.every(function (optionKey) {
@@ -343,18 +370,21 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
343
370
  * @param {Object} vizOptions - the current vizOptions definition
344
371
  * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
345
372
  */
373
+
374
+
346
375
  function getInitialPreset(vizContext, vizOptions, presets) {
347
376
  return presets.find(function (preset) {
348
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
349
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
377
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
378
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
350
379
  var presetContextKeys = Object.keys(presetContext);
351
- var presetOptionKeys = Object.keys(presetOptions);
352
- // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
380
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
353
381
  // if not, then the preset is invalid in config.ts
382
+
354
383
  if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
355
384
  return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
356
385
  });
357
386
  }
387
+
358
388
  exports.getInitialPreset = getInitialPreset;
359
389
  /**
360
390
  * generates number precision values for a Select editor
@@ -362,14 +392,16 @@ exports.getInitialPreset = getInitialPreset;
362
392
  * @param {Number} numPrecisionValues - number of integer precision values to generate
363
393
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
364
394
  */
395
+
365
396
  function generatePrecisionValues(numPrecisionValues) {
366
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
397
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
367
398
  return {
368
399
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
369
400
  value: i
370
401
  };
371
402
  });
372
403
  }
404
+
373
405
  exports.generatePrecisionValues = generatePrecisionValues;
374
406
  /**
375
407
  * insert layout in layout array, return a new layout array instead of updating the original
@@ -379,45 +411,61 @@ exports.generatePrecisionValues = generatePrecisionValues;
379
411
  * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
380
412
  * @returns {EditorLayoutConfig[][]} new editor layout with insertion
381
413
  */
414
+
382
415
  var insertLayout = function insertLayout(layout, index) {
383
416
  for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
384
417
  layoutItems[_key - 2] = arguments[_key];
385
418
  }
419
+
386
420
  return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
387
421
  };
422
+
388
423
  exports.insertLayout = insertLayout;
389
424
 
390
425
  /***/ }),
391
426
 
392
- /***/ 55:
427
+ /***/ 56:
393
428
  /***/ (function(module, exports, __webpack_require__) {
394
429
 
395
430
  "use strict";
396
431
 
397
432
 
398
433
  var _toConsumableArray = __webpack_require__(1);
434
+
399
435
  Object.defineProperty(exports, "__esModule", {
400
436
  value: true
401
437
  });
438
+
402
439
  var lodash_1 = __webpack_require__(6);
440
+
403
441
  var visualization_icons_1 = __webpack_require__(12);
442
+
404
443
  var placeholders_1 = __webpack_require__(11);
444
+
405
445
  var schemaUtils_1 = __webpack_require__(3);
446
+
406
447
  var i18n_1 = __webpack_require__(0);
448
+
407
449
  var pick_1 = __webpack_require__(9);
450
+
408
451
  var variables_1 = __webpack_require__(10);
452
+
409
453
  var colorConstants_1 = __webpack_require__(26);
454
+
410
455
  var visualization_color_palettes_1 = __webpack_require__(14);
456
+
411
457
  var configUtils_1 = __webpack_require__(4);
458
+
412
459
  var VizCategory_1 = __webpack_require__(8);
460
+
413
461
  var VizBehavior_1 = __webpack_require__(2);
462
+
414
463
  var dataContract = {
415
464
  requiredDataSources: [{
416
465
  name: 'primary',
417
466
  description: 'DataSource that powers the visualization'
418
467
  }],
419
- optionalDataSources: [
420
- // {
468
+ optionalDataSources: [// {
421
469
  // name: 'metadata',
422
470
  // description: 'Used buy the ES team along side the feature flag `LinkGraph.showNodeMetaData`',
423
471
  // },
@@ -531,7 +579,7 @@ var optionsSchema = {
531
579
  };
532
580
  var themes = {
533
581
  defaultBackgroundColor: function defaultBackgroundColor(props) {
534
- return pick_1.default({
582
+ return (0, pick_1.default)({
535
583
  enterprise: {
536
584
  dark: variables_1.default.black(props),
537
585
  light: variables_1.default.backgroundColor(props)
@@ -540,7 +588,7 @@ var themes = {
540
588
  })(props);
541
589
  },
542
590
  defaultNodeColor: function defaultNodeColor(props) {
543
- return pick_1.default({
591
+ return (0, pick_1.default)({
544
592
  enterprise: {
545
593
  dark: variables_1.default.backgroundColorDialog(props),
546
594
  light: variables_1.default.gray96(props)
@@ -549,38 +597,37 @@ var themes = {
549
597
  })(props);
550
598
  },
551
599
  inverseDefaultNodeColor: function inverseDefaultNodeColor(props) {
552
- return pick_1.default({
600
+ return (0, pick_1.default)({
553
601
  enterprise: {
554
602
  dark: variables_1.default.contentColorInverted(props),
555
603
  light: variables_1.default.white(props) // equal to textColor in enterpriseDark
556
- },
557
604
 
605
+ },
558
606
  prisma: variables_1.default.contentColorInverted(props)
559
607
  })(props);
560
608
  },
561
609
  textColor: function textColor(props) {
562
- return pick_1.default({
610
+ return (0, pick_1.default)({
563
611
  enterprise: variables_1.default.textColor(props),
564
612
  prisma: variables_1.default.contentColorDefault(props)
565
613
  })(props);
566
614
  },
567
615
  inverseTextColor: function inverseTextColor(props) {
568
- return pick_1.default({
616
+ return (0, pick_1.default)({
569
617
  enterprise: {
570
618
  dark: variables_1.default.contentColorInverted(props),
571
619
  light: variables_1.default.white(props) // equal to textColor in enterpriseDark
572
- },
573
620
 
621
+ },
574
622
  prisma: variables_1.default.contentColorInverted(props)
575
623
  })(props);
576
624
  }
577
625
  };
578
626
  var EDITOR_LABEL_WIDTH = 140;
579
- var backgroundColorPaletteSet = new Set([].concat(_toConsumableArray(colorConstants_1.COLOR_EDITOR_PALETTE), _toConsumableArray(lodash_1.map(themes, function (t) {
580
- return lodash_1.get(t, 'defaultBackgroundColor');
627
+ var backgroundColorPaletteSet = new Set([].concat(_toConsumableArray(colorConstants_1.COLOR_EDITOR_PALETTE), _toConsumableArray((0, lodash_1.map)(themes, function (t) {
628
+ return (0, lodash_1.get)(t, 'defaultBackgroundColor');
581
629
  }))));
582
- var editorConfig = [
583
- // {
630
+ var editorConfig = [// {
584
631
  // label: _('Data'),
585
632
  // layout: [
586
633
  // [
@@ -597,9 +644,9 @@ var editorConfig = [
597
644
  // ],
598
645
  // },
599
646
  {
600
- label: i18n_1._('Data configurations'),
647
+ label: (0, i18n_1._)('Data configurations'),
601
648
  layout: [[{
602
- label: i18n_1._('Result limit'),
649
+ label: (0, i18n_1._)('Result limit'),
603
650
  option: 'resultLimit',
604
651
  editor: 'editor.number',
605
652
  editorProps: {
@@ -609,9 +656,9 @@ var editorConfig = [
609
656
  }
610
657
  }]]
611
658
  }, {
612
- label: i18n_1._('Data display'),
659
+ label: (0, i18n_1._)('Data display'),
613
660
  layout: [[{
614
- label: i18n_1._('Show node counts'),
661
+ label: (0, i18n_1._)('Show node counts'),
615
662
  option: 'showNodeCounts',
616
663
  editor: 'editor.checkbox',
617
664
  editorProps: {
@@ -620,7 +667,7 @@ var editorConfig = [
620
667
  palette: _toConsumableArray(backgroundColorPaletteSet)
621
668
  }
622
669
  }], [{
623
- label: i18n_1._('Show value counts'),
670
+ label: (0, i18n_1._)('Show value counts'),
624
671
  option: 'showValueCounts',
625
672
  editor: 'editor.checkbox',
626
673
  editorProps: {
@@ -630,9 +677,9 @@ var editorConfig = [
630
677
  }
631
678
  }]]
632
679
  }, {
633
- label: i18n_1._('Color and style'),
680
+ label: (0, i18n_1._)('Color and style'),
634
681
  layout: [[{
635
- label: i18n_1._('Nodes'),
682
+ label: (0, i18n_1._)('Nodes'),
636
683
  option: 'nodeColor',
637
684
  editor: 'editor.color',
638
685
  editorProps: {
@@ -641,7 +688,7 @@ var editorConfig = [
641
688
  palette: _toConsumableArray(backgroundColorPaletteSet)
642
689
  }
643
690
  }], [{
644
- label: i18n_1._('Selected nodes'),
691
+ label: (0, i18n_1._)('Selected nodes'),
645
692
  option: 'nodeHighlightColor',
646
693
  editor: 'editor.color',
647
694
  editorProps: {
@@ -650,7 +697,7 @@ var editorConfig = [
650
697
  palette: _toConsumableArray(backgroundColorPaletteSet)
651
698
  }
652
699
  }], [{
653
- label: i18n_1._('Links'),
700
+ label: (0, i18n_1._)('Links'),
654
701
  option: 'linkColor',
655
702
  editor: 'editor.color',
656
703
  editorProps: {
@@ -659,7 +706,7 @@ var editorConfig = [
659
706
  palette: _toConsumableArray(backgroundColorPaletteSet)
660
707
  }
661
708
  }], [{
662
- label: i18n_1._('Background'),
709
+ label: (0, i18n_1._)('Background'),
663
710
  option: 'backgroundColor',
664
711
  editor: 'editor.color',
665
712
  editorProps: {
@@ -668,7 +715,7 @@ var editorConfig = [
668
715
  palette: _toConsumableArray(backgroundColorPaletteSet)
669
716
  }
670
717
  }], [{
671
- label: i18n_1._('Node width'),
718
+ label: (0, i18n_1._)('Node width'),
672
719
  option: 'nodeWidth',
673
720
  editor: 'editor.number',
674
721
  editorProps: {
@@ -678,7 +725,7 @@ var editorConfig = [
678
725
  labelWidth: EDITOR_LABEL_WIDTH
679
726
  }
680
727
  }, {
681
- label: i18n_1._('Node height'),
728
+ label: (0, i18n_1._)('Node height'),
682
729
  option: 'nodeHeight',
683
730
  editor: 'editor.number',
684
731
  editorProps: {
@@ -688,7 +735,7 @@ var editorConfig = [
688
735
  labelWidth: EDITOR_LABEL_WIDTH
689
736
  }
690
737
  }], [{
691
- label: i18n_1._('Vertical spacing'),
738
+ label: (0, i18n_1._)('Vertical spacing'),
692
739
  option: 'nodeSpacingY',
693
740
  editor: 'editor.number',
694
741
  editorProps: {
@@ -698,7 +745,7 @@ var editorConfig = [
698
745
  labelWidth: EDITOR_LABEL_WIDTH
699
746
  }
700
747
  }, {
701
- label: i18n_1._('Horizontal spacing'),
748
+ label: (0, i18n_1._)('Horizontal spacing'),
702
749
  option: 'nodeSpacingX',
703
750
  editor: 'editor.number',
704
751
  editorProps: {
@@ -708,7 +755,7 @@ var editorConfig = [
708
755
  labelWidth: EDITOR_LABEL_WIDTH
709
756
  }
710
757
  }], [{
711
- label: i18n_1._('Link width'),
758
+ label: (0, i18n_1._)('Link width'),
712
759
  option: 'linkWidth',
713
760
  editor: 'editor.number',
714
761
  editorProps: {
@@ -724,12 +771,14 @@ var config = {
724
771
  * unique viz key
725
772
  */
726
773
  key: 'splunk.linkgraph',
774
+
727
775
  /**
728
776
  * viz name
729
777
  */
730
- name: i18n_1._('Link graph'),
778
+ name: (0, i18n_1._)('Link graph'),
731
779
  category: VizCategory_1.VizCategory.FLOW,
732
780
  status: 'preview',
781
+
733
782
  /**
734
783
  * viz icon
735
784
  */
@@ -751,7 +800,7 @@ var config = {
751
800
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS, VizBehavior_1.VizBehavior.PLACEHOLDER],
752
801
  themes: themes
753
802
  };
754
- exports.default = configUtils_1.enhanceConfig(config);
803
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
755
804
 
756
805
  /***/ }),
757
806
 
@@ -780,6 +829,7 @@ Object.defineProperty(exports, "__esModule", {
780
829
  });
781
830
  exports.VizCategory = void 0;
782
831
  var VizCategory;
832
+
783
833
  (function (VizCategory) {
784
834
  VizCategory["SINGLE_VALUE"] = "Single Value";
785
835
  VizCategory["TRENDS"] = "Trends";