@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 = 76);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 77);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -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
  /***/ }),
@@ -377,6 +412,7 @@ Object.defineProperty(exports, "__esModule", {
377
412
  });
378
413
  exports.VizCategory = void 0;
379
414
  var VizCategory;
415
+
380
416
  (function (VizCategory) {
381
417
  VizCategory["SINGLE_VALUE"] = "Single Value";
382
418
  VizCategory["TRENDS"] = "Trends";
@@ -432,6 +468,7 @@ Object.defineProperty(exports, "__esModule", {
432
468
  });
433
469
  exports.LAYOUT_TYPE = void 0;
434
470
  var LAYOUT_TYPE;
471
+
435
472
  (function (LAYOUT_TYPE) {
436
473
  LAYOUT_TYPE["Off"] = "off";
437
474
  LAYOUT_TYPE["Trellis"] = "trellis";
@@ -472,56 +509,6 @@ module.exports = require("@splunk/visualizations-shared/colorConstants");
472
509
  /* 27 */
473
510
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
474
511
 
475
- "use strict";
476
- __webpack_require__.r(__webpack_exports__);
477
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
478
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
479
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
480
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
481
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
482
-
483
-
484
- var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
485
- var defaultContext = _ref.defaultContext,
486
- defaultPalettesConfig = _ref.defaultPalettesConfig;
487
- return {
488
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
489
- option: 'majorColor',
490
- context: 'majorColorEditorConfig',
491
- editor: 'editor.dynamicColor',
492
- showEditor: function showEditor(_ref2) {
493
- var options = _ref2.options;
494
- return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
495
- },
496
- editorProps: {
497
- labelPosition: 'top',
498
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: major value'),
499
- formatters: [{
500
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
501
- value: 'rangeValue',
502
- defaults: {
503
- majorValue: defaultContext.majorColorConfig
504
- }
505
- }, {
506
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
507
- value: 'matchValue',
508
- defaults: {
509
- majorValue: defaultContext.majorColorMatchConfig
510
- }
511
- }],
512
- dataSelectors: [{
513
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
514
- value: 'majorValue'
515
- }],
516
- defaultPalettesConfig: defaultPalettesConfig
517
- }
518
- };
519
- };
520
-
521
- /***/ }),
522
- /* 28 */
523
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
524
-
525
512
  "use strict";
526
513
  __webpack_require__.r(__webpack_exports__);
527
514
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
@@ -533,7 +520,7 @@ __webpack_require__.r(__webpack_exports__);
533
520
 
534
521
  var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
535
522
  var defaultContext = _ref.defaultContext,
536
- defaultPalettesConfig = _ref.defaultPalettesConfig;
523
+ defaultPalettesConfig = _ref.defaultPalettesConfig;
537
524
  return {
538
525
  label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend value'),
539
526
  option: 'trendColor',
@@ -563,7 +550,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
563
550
  };
564
551
 
565
552
  /***/ }),
566
- /* 29 */
553
+ /* 28 */
567
554
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
568
555
 
569
556
  "use strict";
@@ -577,7 +564,7 @@ __webpack_require__.r(__webpack_exports__);
577
564
 
578
565
  var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
579
566
  var defaultContext = _ref.defaultContext,
580
- defaultPalettesConfig = _ref.defaultPalettesConfig;
567
+ defaultPalettesConfig = _ref.defaultPalettesConfig;
581
568
  return {
582
569
  label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background'),
583
570
  option: 'backgroundColor',
@@ -617,7 +604,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
617
604
  };
618
605
 
619
606
  /***/ }),
620
- /* 30 */
607
+ /* 29 */
621
608
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
622
609
 
623
610
  "use strict";
@@ -667,7 +654,7 @@ var StaticMajorAndTrendLayout = [[{
667
654
  /* harmony default export */ __webpack_exports__["default"] = (StaticMajorAndTrendLayout);
668
655
 
669
656
  /***/ }),
670
- /* 31 */
657
+ /* 30 */
671
658
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
672
659
 
673
660
  "use strict";
@@ -690,7 +677,7 @@ var StaticMajorColorEditor = {
690
677
  /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
691
678
 
692
679
  /***/ }),
693
- /* 32 */
680
+ /* 31 */
694
681
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
695
682
 
696
683
  "use strict";
@@ -717,7 +704,7 @@ var StaticTrendColorEditor = {
717
704
  /* harmony default export */ __webpack_exports__["default"] = (StaticTrendColorEditor);
718
705
 
719
706
  /***/ }),
720
- /* 33 */
707
+ /* 32 */
721
708
  /***/ (function(module, exports, __webpack_require__) {
722
709
 
723
710
  "use strict";
@@ -727,13 +714,19 @@ Object.defineProperty(exports, "__esModule", {
727
714
  value: true
728
715
  });
729
716
  exports.TrellisBackgroundColorEditor = exports.TrellisEditorConfig = void 0;
730
- var React = __webpack_require__(34);
717
+
718
+ var React = __webpack_require__(33);
719
+
731
720
  var i18n_1 = __webpack_require__(0);
732
- var FeatureFlagContext_1 = __webpack_require__(35);
721
+
722
+ var FeatureFlagContext_1 = __webpack_require__(34);
723
+
733
724
  var layoutUtils_1 = __webpack_require__(22);
734
725
  /* eslint-disable react-hooks/rules-of-hooks */
726
+
727
+
735
728
  exports.TrellisEditorConfig = [[{
736
- label: i18n_1._('Trellis layout'),
729
+ label: (0, i18n_1._)('Trellis layout'),
737
730
  option: 'splitByLayout',
738
731
  editor: 'editor.toggle',
739
732
  showEditor: function showEditor() {
@@ -742,7 +735,7 @@ exports.TrellisEditorConfig = [[{
742
735
  return isTrellisFeatureFlagOn;
743
736
  }
744
737
  }], [{
745
- label: i18n_1._('Split by'),
738
+ label: (0, i18n_1._)('Split by'),
746
739
  option: 'trellisSplitBy',
747
740
  editor: 'editor.trellisSplitBy',
748
741
  editorProps: {
@@ -755,13 +748,13 @@ exports.TrellisEditorConfig = [[{
755
748
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
756
749
  }
757
750
  }], [{
758
- label: i18n_1._('Number of columns'),
751
+ label: (0, i18n_1._)('Number of columns'),
759
752
  option: 'trellisColumns',
760
753
  editor: 'editor.number',
761
754
  editorProps: {
762
755
  min: 1
763
756
  },
764
- placeholder: i18n_1._('Auto'),
757
+ placeholder: (0, i18n_1._)('Auto'),
765
758
  showEditor: function showEditor(_ref2) {
766
759
  var options = _ref2.options;
767
760
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
@@ -769,7 +762,7 @@ exports.TrellisEditorConfig = [[{
769
762
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
770
763
  }
771
764
  }], [{
772
- label: i18n_1._('Min column width'),
765
+ label: (0, i18n_1._)('Min column width'),
773
766
  option: 'trellisMinColumnWidth',
774
767
  editor: 'editor.number',
775
768
  editorProps: {
@@ -782,7 +775,7 @@ exports.TrellisEditorConfig = [[{
782
775
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
783
776
  }
784
777
  }, {
785
- label: i18n_1._('Row height'),
778
+ label: (0, i18n_1._)('Row height'),
786
779
  option: 'trellisRowHeight',
787
780
  editor: 'editor.number',
788
781
  editorProps: {
@@ -795,7 +788,7 @@ exports.TrellisEditorConfig = [[{
795
788
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
796
789
  }
797
790
  }], [{
798
- label: i18n_1._('Max number of components per page'),
791
+ label: (0, i18n_1._)('Max number of components per page'),
799
792
  option: 'trellisPageCount',
800
793
  editor: 'editor.number',
801
794
  editorProps: {
@@ -809,7 +802,7 @@ exports.TrellisEditorConfig = [[{
809
802
  }
810
803
  }]];
811
804
  exports.TrellisBackgroundColorEditor = {
812
- label: i18n_1._('Trellis background'),
805
+ label: (0, i18n_1._)('Trellis background'),
813
806
  option: 'trellisBackgroundColor',
814
807
  editor: 'editor.color',
815
808
  showEditor: function showEditor(_ref6) {
@@ -821,24 +814,24 @@ exports.TrellisBackgroundColorEditor = {
821
814
  };
822
815
 
823
816
  /***/ }),
824
- /* 34 */
817
+ /* 33 */
825
818
  /***/ (function(module, exports) {
826
819
 
827
820
  module.exports = require("react");
828
821
 
829
822
  /***/ }),
830
- /* 35 */
823
+ /* 34 */
831
824
  /***/ (function(module, exports) {
832
825
 
833
826
  module.exports = require("@splunk/visualization-context/FeatureFlagContext");
834
827
 
835
828
  /***/ }),
829
+ /* 35 */,
836
830
  /* 36 */,
837
831
  /* 37 */,
838
832
  /* 38 */,
839
833
  /* 39 */,
840
- /* 40 */,
841
- /* 41 */
834
+ /* 40 */
842
835
  /***/ (function(module, exports, __webpack_require__) {
843
836
 
844
837
  "use strict";
@@ -881,6 +874,56 @@ exports.defaultContext = {
881
874
  }]
882
875
  };
883
876
 
877
+ /***/ }),
878
+ /* 41 */
879
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
880
+
881
+ "use strict";
882
+ __webpack_require__.r(__webpack_exports__);
883
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
884
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
885
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
886
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
887
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
888
+
889
+
890
+ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
891
+ var defaultContext = _ref.defaultContext,
892
+ defaultPalettesConfig = _ref.defaultPalettesConfig;
893
+ return {
894
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
895
+ option: 'majorColor',
896
+ context: 'majorColorEditorConfig',
897
+ editor: 'editor.dynamicColor',
898
+ showEditor: function showEditor(_ref2) {
899
+ var options = _ref2.options;
900
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
901
+ },
902
+ editorProps: {
903
+ labelPosition: 'top',
904
+ flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: major value'),
905
+ formatters: [{
906
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
907
+ value: 'rangeValue',
908
+ defaults: {
909
+ majorValue: defaultContext.majorColorConfig
910
+ }
911
+ }, {
912
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
913
+ value: 'matchValue',
914
+ defaults: {
915
+ majorValue: defaultContext.majorColorMatchConfig
916
+ }
917
+ }],
918
+ dataSelectors: [{
919
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
920
+ value: 'majorValue'
921
+ }],
922
+ defaultPalettesConfig: defaultPalettesConfig
923
+ }
924
+ };
925
+ };
926
+
884
927
  /***/ }),
885
928
  /* 42 */,
886
929
  /* 43 */,
@@ -916,36 +959,59 @@ exports.defaultContext = {
916
959
  /* 73 */,
917
960
  /* 74 */,
918
961
  /* 75 */,
919
- /* 76 */
962
+ /* 76 */,
963
+ /* 77 */
920
964
  /***/ (function(module, exports, __webpack_require__) {
921
965
 
922
966
  "use strict";
923
967
 
924
968
 
925
969
  var _toConsumableArray = __webpack_require__(1);
970
+
926
971
  Object.defineProperty(exports, "__esModule", {
927
972
  value: true
928
973
  });
974
+
929
975
  var i18n_1 = __webpack_require__(0);
976
+
930
977
  var schemaUtils_1 = __webpack_require__(3);
978
+
931
979
  var PresetPalettes_1 = __webpack_require__(15);
980
+
932
981
  var pick_1 = __webpack_require__(9);
982
+
933
983
  var variables_1 = __webpack_require__(10);
984
+
934
985
  var configUtils_1 = __webpack_require__(5);
935
- var singleValueContext_1 = __webpack_require__(41);
936
- var StaticMajorAndTrendLayout_1 = __webpack_require__(30);
986
+
987
+ var singleValueContext_1 = __webpack_require__(40);
988
+
989
+ var StaticMajorAndTrendLayout_1 = __webpack_require__(29);
990
+
937
991
  var StaticBackgroundColorEditor_1 = __webpack_require__(25);
938
- var StaticIconColorEditor_1 = __webpack_require__(77);
939
- var StaticMajorColorEditor_1 = __webpack_require__(31);
940
- var StaticTrendColorEditor_1 = __webpack_require__(32);
941
- var DynamicMajorColorEditor_1 = __webpack_require__(27);
942
- var DynamicTrendColorEditor_1 = __webpack_require__(28);
943
- var DynamicBackgroundColorEditor_1 = __webpack_require__(29);
944
- var TrellisEditors_1 = __webpack_require__(33);
992
+
993
+ var StaticIconColorEditor_1 = __webpack_require__(78);
994
+
995
+ var StaticMajorColorEditor_1 = __webpack_require__(30);
996
+
997
+ var StaticTrendColorEditor_1 = __webpack_require__(31);
998
+
999
+ var DynamicMajorColorEditor_1 = __webpack_require__(41);
1000
+
1001
+ var DynamicTrendColorEditor_1 = __webpack_require__(27);
1002
+
1003
+ var DynamicBackgroundColorEditor_1 = __webpack_require__(28);
1004
+
1005
+ var TrellisEditors_1 = __webpack_require__(32);
1006
+
945
1007
  var VizBehavior_1 = __webpack_require__(2);
1008
+
946
1009
  var configUtils_2 = __webpack_require__(4);
1010
+
947
1011
  var VizCategory_1 = __webpack_require__(8);
1012
+
948
1013
  var layoutUtils_1 = __webpack_require__(22);
1014
+
949
1015
  var dataContract = {
950
1016
  requiredDataSources: [{
951
1017
  name: 'primary',
@@ -1037,7 +1103,7 @@ var optionsSchema = {
1037
1103
  default: 'off',
1038
1104
  description: 'Specify the layout method by which to display the visualization, which splits the data into individual visualizations based on a certain category.',
1039
1105
  type: 'string',
1040
- pattern: schemaUtils_1.getPattern([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
1106
+ pattern: (0, schemaUtils_1.getPattern)([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
1041
1107
  enum: [layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]
1042
1108
  },
1043
1109
  trendColor: {
@@ -1049,7 +1115,7 @@ var optionsSchema = {
1049
1115
  trendDisplay: {
1050
1116
  default: 'absolute',
1051
1117
  description: 'Specify whether the trend value is displayed as a percentage or an absolute count.',
1052
- pattern: schemaUtils_1.getPattern(['off', 'percent', 'absolute']),
1118
+ pattern: (0, schemaUtils_1.getPattern)(['off', 'percent', 'absolute']),
1053
1119
  type: 'string'
1054
1120
  },
1055
1121
  trendFontSize: {
@@ -1105,7 +1171,7 @@ var optionsSchema = {
1105
1171
  unitPosition: {
1106
1172
  default: 'after',
1107
1173
  description: 'Specify whether the unit text should appear before or after the major value.',
1108
- pattern: schemaUtils_1.getPattern(['before', 'after']),
1174
+ pattern: (0, schemaUtils_1.getPattern)(['before', 'after']),
1109
1175
  type: 'string'
1110
1176
  }
1111
1177
  };
@@ -1123,14 +1189,14 @@ var basePresetOptions = {
1123
1189
  };
1124
1190
  var presets = [{
1125
1191
  // dummy context variables to allow for resetting of unused context states
1126
- label: i18n_1._('None'),
1192
+ label: (0, i18n_1._)('None'),
1127
1193
  name: 'singleValueIcon.none',
1128
1194
  value: {
1129
1195
  context: Object.assign({}, basePresetContext),
1130
1196
  options: Object.assign({}, basePresetOptions)
1131
1197
  }
1132
1198
  }, {
1133
- label: i18n_1._('Icon'),
1199
+ label: (0, i18n_1._)('Icon'),
1134
1200
  name: 'singleValueIcon.icon',
1135
1201
  value: {
1136
1202
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -1141,7 +1207,7 @@ var presets = [{
1141
1207
  })
1142
1208
  }
1143
1209
  }, {
1144
- label: i18n_1._('Major value'),
1210
+ label: (0, i18n_1._)('Major value'),
1145
1211
  name: 'singleValueIcon.majorValue',
1146
1212
  value: {
1147
1213
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -1152,7 +1218,7 @@ var presets = [{
1152
1218
  })
1153
1219
  }
1154
1220
  }, {
1155
- label: i18n_1._('Trend value'),
1221
+ label: (0, i18n_1._)('Trend value'),
1156
1222
  name: 'singleValueIcon.trend',
1157
1223
  value: {
1158
1224
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -1163,7 +1229,7 @@ var presets = [{
1163
1229
  })
1164
1230
  }
1165
1231
  }, {
1166
- label: i18n_1._('Icon and Major value'),
1232
+ label: (0, i18n_1._)('Icon and Major value'),
1167
1233
  name: 'singleValueIcon.iconAndMajorValue',
1168
1234
  value: {
1169
1235
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -1176,7 +1242,7 @@ var presets = [{
1176
1242
  })
1177
1243
  }
1178
1244
  }, {
1179
- label: i18n_1._('Background'),
1245
+ label: (0, i18n_1._)('Background'),
1180
1246
  name: 'singleValueIcon.background',
1181
1247
  value: {
1182
1248
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -1192,9 +1258,10 @@ var presets = [{
1192
1258
  * common theme variables such as enterprise.defaultFontColor
1193
1259
  * that are repeated in multiple viz config themes should be DRYd up.
1194
1260
  */
1261
+
1195
1262
  var themes = {
1196
1263
  defaultFontColor: function defaultFontColor(props) {
1197
- return pick_1.default({
1264
+ return (0, pick_1.default)({
1198
1265
  enterprise: {
1199
1266
  dark: variables_1.default.textColor(props),
1200
1267
  light: variables_1.default.gray20(props)
@@ -1203,16 +1270,16 @@ var themes = {
1203
1270
  })(props);
1204
1271
  },
1205
1272
  defaultBlockFontColor: function defaultBlockFontColor(props) {
1206
- return pick_1.default({
1273
+ return (0, pick_1.default)({
1207
1274
  enterprise: variables_1.default.white(props),
1208
1275
  prisma: variables_1.default.contentColorActive(props)
1209
1276
  })(props);
1210
1277
  }
1211
1278
  };
1212
1279
  var editorConfig = [{
1213
- label: i18n_1._('Data configurations'),
1280
+ label: (0, i18n_1._)('Data configurations'),
1214
1281
  layout: [[{
1215
- label: i18n_1._('Value'),
1282
+ label: (0, i18n_1._)('Value'),
1216
1283
  editor: 'editor.columnSelector',
1217
1284
  option: 'majorValue',
1218
1285
  context: 'valuesContext',
@@ -1235,24 +1302,24 @@ var editorConfig = [{
1235
1302
  }
1236
1303
  }]]
1237
1304
  }, {
1238
- label: i18n_1._('Data display'),
1305
+ label: (0, i18n_1._)('Data display'),
1239
1306
  layout: [[{
1240
- label: i18n_1._('Show major and trend value'),
1307
+ label: (0, i18n_1._)('Show major and trend value'),
1241
1308
  option: 'showValue',
1242
1309
  editor: 'editor.toggle'
1243
1310
  }]].concat(_toConsumableArray(StaticMajorAndTrendLayout_1.default), [[{
1244
- label: i18n_1._('Trend display'),
1311
+ label: (0, i18n_1._)('Trend display'),
1245
1312
  option: 'trendDisplay',
1246
1313
  editor: 'editor.select',
1247
1314
  editorProps: {
1248
1315
  values: [{
1249
- label: i18n_1._('Percent'),
1316
+ label: (0, i18n_1._)('Percent'),
1250
1317
  value: 'percent'
1251
1318
  }, {
1252
- label: i18n_1._('Absolute'),
1319
+ label: (0, i18n_1._)('Absolute'),
1253
1320
  value: 'absolute'
1254
1321
  }, {
1255
- label: i18n_1._('Off'),
1322
+ label: (0, i18n_1._)('Off'),
1256
1323
  value: 'off'
1257
1324
  }]
1258
1325
  },
@@ -1262,51 +1329,51 @@ var editorConfig = [{
1262
1329
  }
1263
1330
  }]], _toConsumableArray(TrellisEditors_1.TrellisEditorConfig))
1264
1331
  }, {
1265
- label: i18n_1._('Color and style'),
1332
+ label: (0, i18n_1._)('Color and style'),
1266
1333
  layout: [[{
1267
- label: i18n_1._('Dynamic elements'),
1334
+ label: (0, i18n_1._)('Dynamic elements'),
1268
1335
  key: 'presetSelector',
1269
1336
  editor: 'editor.presetSelector',
1270
1337
  editorProps: {
1271
1338
  presets: presets,
1272
1339
  value: function value(_ref3) {
1273
1340
  var context = _ref3.context,
1274
- options = _ref3.options;
1275
- var initialPreset = configUtils_2.getInitialPreset(context, options, presets);
1341
+ options = _ref3.options;
1342
+ var initialPreset = (0, configUtils_2.getInitialPreset)(context, options, presets);
1276
1343
  return initialPreset && initialPreset.label || null;
1277
1344
  }
1278
1345
  }
1279
1346
  }], StaticIconColorEditor_1.default, [{
1280
- label: i18n_1._('Icon'),
1347
+ label: (0, i18n_1._)('Icon'),
1281
1348
  option: 'iconColor',
1282
1349
  context: 'iconColorEditorConfig',
1283
1350
  editor: 'editor.dynamicColor',
1284
1351
  showEditor: function showEditor(_ref4) {
1285
1352
  var options = _ref4.options;
1286
- return configUtils_1.isDynamicOption(options.iconColor);
1353
+ return (0, configUtils_1.isDynamicOption)(options.iconColor);
1287
1354
  },
1288
1355
  editorProps: {
1289
1356
  labelPosition: 'top',
1290
1357
  flyoutTitle: 'Dynamic coloring: icon',
1291
1358
  formatters: [{
1292
- label: i18n_1._('Ranges'),
1359
+ label: (0, i18n_1._)('Ranges'),
1293
1360
  value: 'rangeValue',
1294
1361
  defaults: {
1295
1362
  trendValue: singleValueContext_1.defaultContext.trendColorConfig,
1296
1363
  majorValue: singleValueContext_1.defaultContext.majorColorConfig
1297
1364
  }
1298
1365
  }, {
1299
- label: i18n_1._('Matches'),
1366
+ label: (0, i18n_1._)('Matches'),
1300
1367
  value: 'matchValue',
1301
1368
  defaults: {
1302
1369
  majorValue: singleValueContext_1.defaultContext.majorColorMatchConfig
1303
1370
  }
1304
1371
  }],
1305
1372
  dataSelectors: [{
1306
- label: i18n_1._('Major value'),
1373
+ label: (0, i18n_1._)('Major value'),
1307
1374
  value: 'majorValue'
1308
1375
  }, {
1309
- label: i18n_1._('Trend'),
1376
+ label: (0, i18n_1._)('Trend'),
1310
1377
  value: 'trendValue'
1311
1378
  }],
1312
1379
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
@@ -1315,14 +1382,14 @@ var editorConfig = [{
1315
1382
  editorProps: {
1316
1383
  themes: themes
1317
1384
  }
1318
- })], [DynamicMajorColorEditor_1.getDynamicMajorColorEditor({
1385
+ })], [(0, DynamicMajorColorEditor_1.getDynamicMajorColorEditor)({
1319
1386
  defaultContext: singleValueContext_1.defaultContext,
1320
1387
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
1321
1388
  })], [Object.assign(Object.assign({}, StaticTrendColorEditor_1.default), {
1322
1389
  editorProps: {
1323
1390
  themes: themes
1324
1391
  }
1325
- })], [DynamicTrendColorEditor_1.getDynamicTrendColorEditor({
1392
+ })], [(0, DynamicTrendColorEditor_1.getDynamicTrendColorEditor)({
1326
1393
  defaultContext: singleValueContext_1.defaultContext,
1327
1394
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
1328
1395
  })], [Object.assign(Object.assign({}, StaticBackgroundColorEditor_1.default), {
@@ -1333,29 +1400,29 @@ var editorConfig = [{
1333
1400
  editorProps: {
1334
1401
  themes: themes
1335
1402
  }
1336
- })], [DynamicBackgroundColorEditor_1.getDynamicBackgroundColorEditor({
1403
+ })], [(0, DynamicBackgroundColorEditor_1.getDynamicBackgroundColorEditor)({
1337
1404
  defaultContext: singleValueContext_1.defaultContext,
1338
1405
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
1339
1406
  })], [{
1340
- label: i18n_1._('Major value size (px)'),
1407
+ label: (0, i18n_1._)('Major value size (px)'),
1341
1408
  option: 'majorFontSize',
1342
1409
  editor: 'editor.number',
1343
1410
  editorProps: {
1344
1411
  min: 1
1345
1412
  },
1346
- placeholder: i18n_1._('Auto'),
1413
+ placeholder: (0, i18n_1._)('Auto'),
1347
1414
  showEditor: function showEditor(_ref5) {
1348
1415
  var options = _ref5.options;
1349
1416
  return options.showValue || options.showValue === undefined;
1350
1417
  }
1351
1418
  }, {
1352
- label: i18n_1._('Trend value size (px)'),
1419
+ label: (0, i18n_1._)('Trend value size (px)'),
1353
1420
  option: 'trendFontSize',
1354
1421
  editor: 'editor.number',
1355
1422
  editorProps: {
1356
1423
  min: 1
1357
1424
  },
1358
- placeholder: i18n_1._('Auto'),
1425
+ placeholder: (0, i18n_1._)('Auto'),
1359
1426
  showEditor: function showEditor(_ref6) {
1360
1427
  var options = _ref6.options;
1361
1428
  return options.showValue || options.showValue === undefined;
@@ -1369,16 +1436,19 @@ var editorConfig = [{
1369
1436
  /**
1370
1437
  * visualization configuration
1371
1438
  */
1439
+
1372
1440
  var config = {
1373
1441
  /**
1374
1442
  * unique viz key
1375
1443
  */
1376
1444
  key: 'splunk.singlevalueicon',
1445
+
1377
1446
  /**
1378
1447
  * viz name
1379
1448
  */
1380
- name: i18n_1._('Single value icon'),
1449
+ name: (0, i18n_1._)('Single value icon'),
1381
1450
  category: VizCategory_1.VizCategory.SINGLE_VALUE,
1451
+
1382
1452
  /**
1383
1453
  * viz icon
1384
1454
  */
@@ -1397,10 +1467,10 @@ var config = {
1397
1467
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS, VizBehavior_1.VizBehavior.TRELLIS],
1398
1468
  themes: themes
1399
1469
  };
1400
- exports.default = configUtils_2.enhanceConfig(config);
1470
+ exports.default = (0, configUtils_2.enhanceConfig)(config);
1401
1471
 
1402
1472
  /***/ }),
1403
- /* 77 */
1473
+ /* 78 */
1404
1474
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1405
1475
 
1406
1476
  "use strict";