@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.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 = 461);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 464);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -136,40 +136,46 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
136
136
  Object.defineProperty(exports, "__esModule", {
137
137
  value: true
138
138
  });
139
+
139
140
  var React = __webpack_require__(1);
141
+
140
142
  var styled_components_1 = __webpack_require__(4);
143
+
141
144
  var SizeAwareWrapper_1 = __webpack_require__(19);
145
+
142
146
  var style_1 = __webpack_require__(14);
147
+
143
148
  var colorUtils_1 = __webpack_require__(12);
149
+
144
150
  var Item = styled_components_1.default.div.attrs(function (_ref) {
145
151
  var width = _ref.width;
146
152
  return {
147
153
  style: {
148
- width: style_1.toPx(width)
154
+ width: (0, style_1.toPx)(width)
149
155
  }
150
156
  };
151
157
  }).withConfig({
152
158
  displayName: "FixedSizeContainer__Item",
153
159
  componentId: "sc-1yhgpod-0"
154
160
  })(["position:relative;background-color:", "};"], function (props) {
155
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
156
- });
157
- // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
161
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
162
+ }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
163
+
158
164
  var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
159
165
  var width = _ref2.width,
160
- height = _ref2.height;
166
+ height = _ref2.height;
161
167
  return {
162
168
  style: Object.assign(Object.assign({}, width && {
163
- width: style_1.toPx(width)
169
+ width: (0, style_1.toPx)(width)
164
170
  }), height && {
165
- height: style_1.toPx(height)
171
+ height: (0, style_1.toPx)(height)
166
172
  })
167
173
  };
168
174
  }).withConfig({
169
175
  displayName: "FixedSizeContainer__FixSizeItem",
170
176
  componentId: "sc-1yhgpod-1"
171
177
  })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
172
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
178
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
173
179
  });
174
180
  var ItemContent = styled_components_1.default.div.withConfig({
175
181
  displayName: "FixedSizeContainer__ItemContent",
@@ -179,11 +185,13 @@ var FixSizeItemContent = styled_components_1.default.div.withConfig({
179
185
  displayName: "FixedSizeContainer__FixSizeItemContent",
180
186
  componentId: "sc-1yhgpod-3"
181
187
  })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
188
+
182
189
  var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
183
190
  var FixedSizeContainer = function FixedSizeContainer(props) {
184
191
  var width = props.width,
185
- height = props.height,
186
- backgroundColor = props.backgroundColor;
192
+ height = props.height,
193
+ backgroundColor = props.backgroundColor;
194
+
187
195
  if (!height) {
188
196
  return React.createElement(Item, {
189
197
  "data-test": "item",
@@ -191,24 +199,27 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
191
199
  backgroundColor: backgroundColor
192
200
  }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
193
201
  }
202
+
194
203
  return React.createElement(FixSizeItem, {
195
204
  "data-test": "fix-size-item",
196
- "data-splunk-visualization-version": "25.13.1 - ea48ec41e",
205
+ "data-splunk-visualization-version": "26.1.0 - fc8bf8d77",
197
206
  width: width,
198
207
  height: height,
199
208
  backgroundColor: backgroundColor
200
209
  }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
201
210
  var newWidth = _ref3.width,
202
- newHeight = _ref3.height;
211
+ newHeight = _ref3.height;
203
212
  return React.createElement(Viz, Object.assign({}, props, {
204
213
  width: newWidth,
205
214
  height: newHeight
206
215
  }));
207
216
  })));
208
217
  };
218
+
209
219
  FixedSizeContainer.displayName = 'withFixedSizeContainer';
210
220
  return FixedSizeContainer;
211
221
  };
222
+
212
223
  exports.default = withFixedSizeContainer;
213
224
 
214
225
  /***/ }),
@@ -236,9 +247,10 @@ exports.extendStaticWrapperProps = void 0;
236
247
  * @param {DashboardVizType} props.Wrapper
237
248
  * @param {DashboardVizType} props.Visualization
238
249
  */
250
+
239
251
  var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
240
252
  var Wrapper = _ref.Wrapper,
241
- Visualization = _ref.Visualization;
253
+ Visualization = _ref.Visualization;
242
254
  var extendProperties = ['propTypes', 'defaultProps', 'config'];
243
255
  extendProperties.forEach(function (prop) {
244
256
  if (Visualization[prop]) {
@@ -247,6 +259,7 @@ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
247
259
  }
248
260
  });
249
261
  };
262
+
250
263
  exports.extendStaticWrapperProps = extendStaticWrapperProps;
251
264
 
252
265
  /***/ }),
@@ -258,7 +271,7 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
258
271
 
259
272
  /***/ }),
260
273
 
261
- /***/ 164:
274
+ /***/ 167:
262
275
  /***/ (function(module, exports, __webpack_require__) {
263
276
 
264
277
  "use strict";
@@ -266,49 +279,65 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
266
279
 
267
280
  var __rest = this && this.__rest || function (s, e) {
268
281
  var t = {};
282
+
269
283
  for (var p in s) {
270
284
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
271
285
  }
286
+
272
287
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
273
288
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
274
289
  }
275
290
  return t;
276
291
  };
292
+
277
293
  Object.defineProperty(exports, "__esModule", {
278
294
  value: true
279
295
  });
280
296
  exports.config = exports.themes = exports.computeVizProps = void 0;
281
- var lodash_1 = __webpack_require__(3);
282
- // Charting imports i18n which needs to be run to instantiate window globals in the tests
297
+
298
+ var lodash_1 = __webpack_require__(3); // Charting imports i18n which needs to be run to instantiate window globals in the tests
283
299
  // eslint-disable-next-line import/order
284
- var Charting_1 = __webpack_require__(64);
285
- var charting_bundle_1 = __webpack_require__(56);
286
- var simpleXMLOptions_1 = __webpack_require__(69);
287
- var config_1 = __webpack_require__(462);
300
+
301
+
302
+ var Charting_1 = __webpack_require__(65);
303
+
304
+ var charting_bundle_1 = __webpack_require__(55);
305
+
306
+ var simpleXMLOptions_1 = __webpack_require__(70);
307
+
308
+ var config_1 = __webpack_require__(465);
309
+
288
310
  exports.config = config_1.default;
289
- var withDashboardViz_1 = __webpack_require__(36);
290
- var scatterUtils_1 = __webpack_require__(463);
291
- var chartingUtils_1 = __webpack_require__(55);
311
+
312
+ var withDashboardViz_1 = __webpack_require__(37);
313
+
314
+ var scatterUtils_1 = __webpack_require__(466);
315
+
316
+ var chartingUtils_1 = __webpack_require__(56);
317
+
292
318
  var validOptions = Object.keys(config_1.default.optionsSchema);
319
+
293
320
  var computeVizProps = function computeVizProps(_a) {
294
321
  var dataSources = _a.dataSources,
295
- onEventTrigger = _a.onEventTrigger,
296
- visualizationApiRef = _a.visualizationApiRef,
297
- _a$x = _a.x,
298
- x = _a$x === void 0 ? [] : _a$x,
299
- _a$y = _a.y,
300
- y = _a$y === void 0 ? [] : _a$y,
301
- category = _a.category,
302
- xField = _a.xField,
303
- yField = _a.yField,
304
- categoryField = _a.categoryField,
305
- otherOptions = __rest(_a, ["dataSources", "onEventTrigger", "visualizationApiRef", "x", "y", "category", "xField", "yField", "categoryField"]); // options to be passed as props
322
+ onEventTrigger = _a.onEventTrigger,
323
+ visualizationApiRef = _a.visualizationApiRef,
324
+ _a$x = _a.x,
325
+ x = _a$x === void 0 ? [] : _a$x,
326
+ _a$y = _a.y,
327
+ y = _a$y === void 0 ? [] : _a$y,
328
+ category = _a.category,
329
+ xField = _a.xField,
330
+ yField = _a.yField,
331
+ categoryField = _a.categoryField,
332
+ otherOptions = __rest(_a, ["dataSources", "onEventTrigger", "visualizationApiRef", "x", "y", "category", "xField", "yField", "categoryField"]); // options to be passed as props
333
+
334
+
306
335
  var computedProps = {
307
336
  visualizationApiRef: visualizationApiRef
308
337
  };
309
338
  var hasEventHandlers = otherOptions.hasEventHandlers;
310
- computedProps.options = lodash_1.chain(otherOptions).pick(validOptions).thru(scatterUtils_1.convertToScatterSCProperties).thru(function (options) {
311
- return Object.assign(Object.assign({}, simpleXMLOptions_1.getSimpleXMLOptionsForProps(options)), {
339
+ computedProps.options = (0, lodash_1.chain)(otherOptions).pick(validOptions).thru(scatterUtils_1.convertToScatterSCProperties).thru(function (options) {
340
+ return Object.assign(Object.assign({}, (0, simpleXMLOptions_1.getSimpleXMLOptionsForProps)(options)), {
312
341
  chart: 'scatter'
313
342
  });
314
343
  }).value();
@@ -319,19 +348,24 @@ var computeVizProps = function computeVizProps(_a) {
319
348
  }, {
320
349
  name: yField
321
350
  }];
351
+
322
352
  if (category && categoryField) {
323
353
  columns.unshift(category.map(String));
324
354
  fields.unshift({
325
355
  name: categoryField
326
356
  });
327
357
  }
358
+
328
359
  primaryData.columns = columns;
329
360
  primaryData.fields = fields;
330
361
  var truncationLimit = computedProps.options['chart.resultTruncationLimit'];
362
+
331
363
  if (truncationLimit) {
332
- primaryData = chartingUtils_1.truncateData(primaryData, truncationLimit);
364
+ primaryData = (0, chartingUtils_1.truncateData)(primaryData, truncationLimit);
333
365
  }
366
+
334
367
  computedProps.chartData = charting_bundle_1.default.extractChartReadyData(Object.assign({}, primaryData));
368
+
335
369
  if (hasEventHandlers) {
336
370
  computedProps.onClick = function (event) {
337
371
  onEventTrigger(Object.assign(Object.assign({}, event), {
@@ -341,10 +375,12 @@ var computeVizProps = function computeVizProps(_a) {
341
375
  }));
342
376
  };
343
377
  }
378
+
344
379
  return computedProps;
345
380
  };
381
+
346
382
  exports.computeVizProps = computeVizProps;
347
- var Column = withDashboardViz_1.default({
383
+ var Column = (0, withDashboardViz_1.default)({
348
384
  ReactViz: Charting_1.default,
349
385
  computeVizProps: exports.computeVizProps,
350
386
  vizConfig: config_1.default
@@ -390,24 +426,33 @@ module.exports = require("@splunk/ui-utils/i18n");
390
426
 
391
427
 
392
428
  var _toConsumableArray = __webpack_require__(8);
429
+
393
430
  var _defineProperty = __webpack_require__(7);
431
+
394
432
  var __rest = this && this.__rest || function (s, e) {
395
433
  var t = {};
434
+
396
435
  for (var p in s) {
397
436
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
398
437
  }
438
+
399
439
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
400
440
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
401
441
  }
402
442
  return t;
403
443
  };
444
+
404
445
  Object.defineProperty(exports, "__esModule", {
405
446
  value: true
406
447
  });
407
448
  exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
449
+
408
450
  var lodash_1 = __webpack_require__(3);
451
+
409
452
  var schemaUtils_1 = __webpack_require__(16);
453
+
410
454
  var VizBehavior_1 = __webpack_require__(6);
455
+
411
456
  var dynamicOptionsDSLType = {
412
457
  type: 'string',
413
458
  pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
@@ -417,20 +462,22 @@ var dynamicOptionsDSLType = {
417
462
  * @param optionsSchema a visualization's options schema
418
463
  * @returns an updated options schema that additionally allows strings starting with > for each option
419
464
  */
465
+
420
466
  function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
421
467
  var enhancedOptionsSchema = {};
422
468
  Object.keys(optionsSchema).forEach(function (key) {
423
469
  var _a = optionsSchema[key],
424
- title = _a.title,
425
- description = _a.description,
426
- readOnly = _a.readOnly,
427
- writeOnly = _a.writeOnly,
428
- examples = _a.examples,
429
- defaultValue = _a.default,
430
- type = _a.type,
431
- properties = _a.properties,
432
- patternProperties = _a.patternProperties,
433
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
470
+ title = _a.title,
471
+ description = _a.description,
472
+ readOnly = _a.readOnly,
473
+ writeOnly = _a.writeOnly,
474
+ examples = _a.examples,
475
+ defaultValue = _a.default,
476
+ type = _a.type,
477
+ properties = _a.properties,
478
+ patternProperties = _a.patternProperties,
479
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
480
+
434
481
  var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
435
482
  title: title
436
483
  }), description !== undefined && {
@@ -444,12 +491,14 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
444
491
  }), defaultValue !== undefined && {
445
492
  default: defaultValue
446
493
  });
494
+
447
495
  if (type === 'object') {
448
496
  enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
449
497
  type: type
450
498
  }), properties && {
451
499
  properties: enhanceOptionsSchemaWithDynamicOptions(properties)
452
500
  });
501
+
453
502
  if (patternProperties) {
454
503
  var enhancedPatternProperties = {};
455
504
  Object.keys(patternProperties).forEach(function (opt) {
@@ -467,6 +516,7 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
467
516
  });
468
517
  return enhancedOptionsSchema;
469
518
  }
519
+
470
520
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
471
521
  /**
472
522
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
@@ -475,11 +525,14 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
475
525
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
476
526
  * and containing `open: false` for all editor panels in editorConfig
477
527
  */
528
+
478
529
  function enhanceConfig(vizConfig) {
479
530
  var enhancedConfig = Object.assign({}, vizConfig);
531
+
480
532
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
481
533
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
482
534
  }
535
+
483
536
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
484
537
  return Object.assign(Object.assign({}, config), {
485
538
  open: config.open || false
@@ -487,6 +540,7 @@ function enhanceConfig(vizConfig) {
487
540
  });
488
541
  return enhancedConfig;
489
542
  }
543
+
490
544
  exports.enhanceConfig = enhanceConfig;
491
545
  /**
492
546
  * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
@@ -494,6 +548,7 @@ exports.enhanceConfig = enhanceConfig;
494
548
  * @param vizConfig a Visualization Config
495
549
  * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
496
550
  */
551
+
497
552
  function uncollapseEditorConfig(vizConfig) {
498
553
  var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
499
554
  editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
@@ -503,13 +558,16 @@ function uncollapseEditorConfig(vizConfig) {
503
558
  });
504
559
  return editorPanelUncollapsedConfig;
505
560
  }
561
+
506
562
  exports.uncollapseEditorConfig = uncollapseEditorConfig;
563
+
507
564
  function isDynamicOption(option) {
508
565
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
509
566
  }
510
- exports.isDynamicOption = isDynamicOption;
511
- // private helpers to improve readability of getInitialPreset
567
+
568
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
512
569
  // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
570
+
513
571
  /**
514
572
  * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
515
573
  * 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
@@ -518,6 +576,7 @@ exports.isDynamicOption = isDynamicOption;
518
576
  *
519
577
  * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
520
578
  */
579
+
521
580
  function hasCompatibleContexts(vizContext, presetContext) {
522
581
  var presetContextKeys = Object.keys(presetContext);
523
582
  return presetContextKeys.every(function (contextKey) {
@@ -527,6 +586,8 @@ function hasCompatibleContexts(vizContext, presetContext) {
527
586
  /**
528
587
  * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
529
588
  */
589
+
590
+
530
591
  function hasCompatibleOptions(vizOptions, presetOptions) {
531
592
  var presetOptionKeys = Object.keys(presetOptions);
532
593
  return presetOptionKeys.every(function (optionKey) {
@@ -541,18 +602,21 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
541
602
  * @param {Object} vizOptions - the current vizOptions definition
542
603
  * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
543
604
  */
605
+
606
+
544
607
  function getInitialPreset(vizContext, vizOptions, presets) {
545
608
  return presets.find(function (preset) {
546
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
547
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
609
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
610
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
548
611
  var presetContextKeys = Object.keys(presetContext);
549
- var presetOptionKeys = Object.keys(presetOptions);
550
- // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
612
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
551
613
  // if not, then the preset is invalid in config.ts
614
+
552
615
  if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
553
616
  return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
554
617
  });
555
618
  }
619
+
556
620
  exports.getInitialPreset = getInitialPreset;
557
621
  /**
558
622
  * generates number precision values for a Select editor
@@ -560,14 +624,16 @@ exports.getInitialPreset = getInitialPreset;
560
624
  * @param {Number} numPrecisionValues - number of integer precision values to generate
561
625
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
562
626
  */
627
+
563
628
  function generatePrecisionValues(numPrecisionValues) {
564
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
629
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
565
630
  return {
566
631
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
567
632
  value: i
568
633
  };
569
634
  });
570
635
  }
636
+
571
637
  exports.generatePrecisionValues = generatePrecisionValues;
572
638
  /**
573
639
  * insert layout in layout array, return a new layout array instead of updating the original
@@ -577,12 +643,15 @@ exports.generatePrecisionValues = generatePrecisionValues;
577
643
  * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
578
644
  * @returns {EditorLayoutConfig[][]} new editor layout with insertion
579
645
  */
646
+
580
647
  var insertLayout = function insertLayout(layout, index) {
581
648
  for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
582
649
  layoutItems[_key - 2] = arguments[_key];
583
650
  }
651
+
584
652
  return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
585
653
  };
654
+
586
655
  exports.insertLayout = insertLayout;
587
656
 
588
657
  /***/ }),
@@ -604,35 +673,35 @@ module.exports = require("@splunk/themes/pick");
604
673
  /***/ 25:
605
674
  /***/ (function(module, exports) {
606
675
 
607
- module.exports = require("@splunk/visualization-context/TimezoneContext");
676
+ module.exports = require("@splunk/ui-utils/id");
608
677
 
609
678
  /***/ }),
610
679
 
611
680
  /***/ 26:
612
681
  /***/ (function(module, exports) {
613
682
 
614
- module.exports = require("@splunk/visualizations-shared/hocUtils");
683
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
615
684
 
616
685
  /***/ }),
617
686
 
618
687
  /***/ 27:
619
688
  /***/ (function(module, exports) {
620
689
 
621
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
690
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
622
691
 
623
692
  /***/ }),
624
693
 
625
694
  /***/ 28:
626
695
  /***/ (function(module, exports) {
627
696
 
628
- module.exports = require("@splunk/visualizations-shared/propUtils");
697
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
629
698
 
630
699
  /***/ }),
631
700
 
632
701
  /***/ 29:
633
702
  /***/ (function(module, exports) {
634
703
 
635
- module.exports = require("@splunk/visualization-encoding/Options");
704
+ module.exports = require("@splunk/visualizations-shared/propUtils");
636
705
 
637
706
  /***/ }),
638
707
 
@@ -643,7 +712,14 @@ module.exports = require("lodash");
643
712
 
644
713
  /***/ }),
645
714
 
646
- /***/ 31:
715
+ /***/ 30:
716
+ /***/ (function(module, exports) {
717
+
718
+ module.exports = require("@splunk/visualization-encoding/Options");
719
+
720
+ /***/ }),
721
+
722
+ /***/ 32:
647
723
  /***/ (function(module, exports, __webpack_require__) {
648
724
 
649
725
  "use strict";
@@ -653,11 +729,17 @@ Object.defineProperty(exports, "__esModule", {
653
729
  value: true
654
730
  });
655
731
  exports.shouldShowIconPlaceholder = void 0;
732
+
656
733
  var React = __webpack_require__(1);
734
+
657
735
  var T = __webpack_require__(0);
736
+
658
737
  var lodash_1 = __webpack_require__(3);
738
+
659
739
  var i18n_1 = __webpack_require__(2);
740
+
660
741
  var Message_1 = __webpack_require__(10);
742
+
661
743
  var FixedSizeContainer_1 = __webpack_require__(13);
662
744
  /**
663
745
  * @method shouldShowIconPlaceholder
@@ -665,14 +747,17 @@ var FixedSizeContainer_1 = __webpack_require__(13);
665
747
  * @param {boolean} loading
666
748
  * @returns {boolean}
667
749
  */
750
+
751
+
668
752
  var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
669
753
  var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
670
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
754
+ var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
671
755
  var noData = data === undefined;
672
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
756
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
673
757
  var noFields = fields === undefined;
674
758
  return loading || noData || noFields;
675
759
  };
760
+
676
761
  exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
677
762
  var propTypes = {
678
763
  icon: T.func,
@@ -687,11 +772,13 @@ var propTypes = {
687
772
  * @param {IconPlaceholderProps} props
688
773
  * @returns {React.ReactElement}
689
774
  */
775
+
690
776
  var IconPlaceholder = function IconPlaceholder(props) {
691
777
  var width = props.width,
692
- height = props.height,
693
- icon = props.icon,
694
- iconColor = props.iconColor;
778
+ height = props.height,
779
+ icon = props.icon,
780
+ iconColor = props.iconColor;
781
+
695
782
  if (icon) {
696
783
  return React.createElement(icon, {
697
784
  style: {
@@ -706,26 +793,21 @@ var IconPlaceholder = function IconPlaceholder(props) {
706
793
  height: '50%'
707
794
  });
708
795
  }
796
+
709
797
  return React.createElement(Message_1.default, {
710
798
  width: width,
711
799
  height: height,
712
800
  level: "warning",
713
- message: i18n_1._('No DataSource Connected')
801
+ message: (0, i18n_1._)('No DataSource Connected')
714
802
  });
715
803
  };
804
+
716
805
  IconPlaceholder.propTypes = propTypes;
717
806
  IconPlaceholder.defaultProps = {
718
807
  width: '100%',
719
808
  height: 250
720
809
  };
721
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
722
-
723
- /***/ }),
724
-
725
- /***/ 32:
726
- /***/ (function(module, exports) {
727
-
728
- module.exports = require("@splunk/ui-utils/id");
810
+ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
729
811
 
730
812
  /***/ }),
731
813
 
@@ -736,21 +818,27 @@ module.exports = require("@splunk/ui-utils/id");
736
818
 
737
819
 
738
820
  var _defineProperty = __webpack_require__(7);
821
+
739
822
  Object.defineProperty(exports, "__esModule", {
740
823
  value: true
741
824
  });
742
825
  exports.getSortingParams = exports.SortParamsPropTypes = void 0;
826
+
743
827
  var T = __webpack_require__(0);
828
+
744
829
  var lodash_1 = __webpack_require__(3);
745
- var DataSource_1 = __webpack_require__(43);
830
+
831
+ var DataSource_1 = __webpack_require__(34);
832
+
746
833
  exports.SortParamsPropTypes = T.shape({
747
834
  currentSortKey: T.string,
748
835
  currentSortDir: T.oneOf(DataSource_1.validSortDirs),
749
836
  onSort: T.func
750
837
  });
838
+
751
839
  var getSortingParams = function getSortingParams(_ref) {
752
840
  var requestParams = _ref.requestParams,
753
- onRequestParamsChange = _ref.onRequestParamsChange;
841
+ onRequestParamsChange = _ref.onRequestParamsChange;
754
842
  var currentSortKey;
755
843
  var currentSortDir;
756
844
  var nextSortDirMap = {
@@ -759,17 +847,20 @@ var getSortingParams = function getSortingParams(_ref) {
759
847
  none: 'asc'
760
848
  };
761
849
  var onSort;
850
+
762
851
  if (typeof onRequestParamsChange === 'function') {
763
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
852
+ if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
764
853
  currentSortKey = Object.keys(requestParams.sort).shift();
765
854
  currentSortDir = requestParams.sort[currentSortKey];
766
- }
767
- // undid memoization since there is a dependency on requestParams, which is a deeply nested object
855
+ } // undid memoization since there is a dependency on requestParams, which is a deeply nested object
856
+
857
+
768
858
  onSort = function onSort(e, _ref2) {
769
859
  var sortKey = _ref2.sortKey,
770
- sortDir = _ref2.sortDir;
860
+ sortDir = _ref2.sortDir;
861
+
771
862
  if (typeof sortKey === 'string') {
772
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
863
+ var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
773
864
  onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
774
865
  offset: 0,
775
866
  sort: _defineProperty({}, sortKey, nextSortDir)
@@ -779,12 +870,14 @@ var getSortingParams = function getSortingParams(_ref) {
779
870
  }
780
871
  };
781
872
  }
873
+
782
874
  return {
783
875
  currentSortKey: currentSortKey,
784
876
  currentSortDir: currentSortDir,
785
877
  onSort: onSort
786
878
  };
787
879
  };
880
+
788
881
  exports.getSortingParams = getSortingParams;
789
882
 
790
883
  /***/ }),
@@ -795,43 +888,69 @@ exports.getSortingParams = getSortingParams;
795
888
  "use strict";
796
889
 
797
890
 
891
+ Object.defineProperty(exports, "__esModule", {
892
+ value: true
893
+ });
894
+ exports.validOutputModes = exports.validSegmentationModes = exports.validSortDirs = void 0;
895
+ exports.validSortDirs = ['asc', 'desc', 'none'];
896
+ exports.validSegmentationModes = ['none', 'inner'];
897
+ exports.validOutputModes = ['json_cols', 'json'];
898
+
899
+ /***/ }),
900
+
901
+ /***/ 35:
902
+ /***/ (function(module, exports, __webpack_require__) {
903
+
904
+ "use strict";
905
+
906
+
798
907
  Object.defineProperty(exports, "__esModule", {
799
908
  value: true
800
909
  });
801
910
  exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
911
+
802
912
  var T = __webpack_require__(0);
913
+
803
914
  var lodash_1 = __webpack_require__(3);
915
+
804
916
  exports.PaginatorParamsPropTypes = T.shape({
805
917
  isPaging: T.bool,
806
918
  current: T.number,
807
919
  totalPages: T.number,
808
920
  onChange: T.func
809
921
  });
922
+
810
923
  var getPaginationParams = function getPaginationParams(_ref) {
811
924
  var requestParams = _ref.requestParams,
812
- meta = _ref.meta,
813
- onRequestParamsChange = _ref.onRequestParamsChange;
925
+ meta = _ref.meta,
926
+ onRequestParamsChange = _ref.onRequestParamsChange;
814
927
  var totalCount = meta && meta.totalCount || 0;
815
928
  var offset = requestParams && requestParams.offset || 0;
816
929
  var count = requestParams && requestParams.count;
817
930
  var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
818
931
  var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
819
932
  var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
933
+
820
934
  var onChangeHandler = function onChangeHandler(e, _ref2) {
821
935
  var page = _ref2.page,
822
- countArg = _ref2.count;
823
- var newParams = lodash_1.cloneDeep(requestParams);
936
+ countArg = _ref2.count;
937
+ var newParams = (0, lodash_1.cloneDeep)(requestParams);
938
+
824
939
  if (typeof countArg === 'number') {
825
940
  newParams.count = countArg;
826
941
  newParams.offset = 0;
827
942
  }
943
+
828
944
  var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
945
+
829
946
  if (typeof page === 'number' && page > 0) {
830
947
  newParams.count = pageCount;
831
948
  newParams.offset = (page - 1) * pageCount;
832
949
  }
950
+
833
951
  onRequestParamsChange(newParams);
834
952
  };
953
+
835
954
  return {
836
955
  isPaging: isPaging,
837
956
  current: current,
@@ -839,11 +958,12 @@ var getPaginationParams = function getPaginationParams(_ref) {
839
958
  onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
840
959
  };
841
960
  };
961
+
842
962
  exports.getPaginationParams = getPaginationParams;
843
963
 
844
964
  /***/ }),
845
965
 
846
- /***/ 35:
966
+ /***/ 36:
847
967
  /***/ (function(module, exports, __webpack_require__) {
848
968
 
849
969
  "use strict";
@@ -854,6 +974,7 @@ Object.defineProperty(exports, "__esModule", {
854
974
  });
855
975
  exports.VizCategory = void 0;
856
976
  var VizCategory;
977
+
857
978
  (function (VizCategory) {
858
979
  VizCategory["SINGLE_VALUE"] = "Single Value";
859
980
  VizCategory["TRENDS"] = "Trends";
@@ -871,67 +992,96 @@ var VizCategory;
871
992
 
872
993
  /***/ }),
873
994
 
874
- /***/ 36:
995
+ /***/ 37:
875
996
  /***/ (function(module, exports, __webpack_require__) {
876
997
 
877
998
  "use strict";
878
999
 
879
1000
 
880
1001
  var _slicedToArray = __webpack_require__(17);
1002
+
881
1003
  Object.defineProperty(exports, "__esModule", {
882
1004
  value: true
883
1005
  });
1006
+
884
1007
  var React = __webpack_require__(1);
1008
+
885
1009
  var lodash_1 = __webpack_require__(3);
886
- var getSettingsFromThemedProps_1 = __webpack_require__(37);
887
- var Options_1 = __webpack_require__(29);
888
- var SanitizeProps_1 = __webpack_require__(38);
889
- var TimezoneContext_1 = __webpack_require__(25);
890
- var moment_1 = __webpack_require__(39);
1010
+
1011
+ var getSettingsFromThemedProps_1 = __webpack_require__(38);
1012
+
1013
+ var Options_1 = __webpack_require__(30);
1014
+
1015
+ var SanitizeProps_1 = __webpack_require__(39);
1016
+
1017
+ var TimezoneContext_1 = __webpack_require__(26);
1018
+
1019
+ var moment_1 = __webpack_require__(40);
1020
+
891
1021
  var FeatureFlagContext_1 = __webpack_require__(21);
1022
+
892
1023
  var styled_components_1 = __webpack_require__(4);
893
- var hocUtils_1 = __webpack_require__(26);
894
- var JSONSchemaUtils_1 = __webpack_require__(27);
895
- var async_dynamic_options_evaluator_1 = __webpack_require__(40);
896
- var id_1 = __webpack_require__(32);
897
- var SplunkVisualization_1 = __webpack_require__(41);
1024
+
1025
+ var hocUtils_1 = __webpack_require__(27);
1026
+
1027
+ var JSONSchemaUtils_1 = __webpack_require__(28);
1028
+
1029
+ var async_dynamic_options_evaluator_1 = __webpack_require__(41);
1030
+
1031
+ var id_1 = __webpack_require__(25);
1032
+
1033
+ var SplunkVisualization_1 = __webpack_require__(42);
1034
+
898
1035
  var VizBehavior_1 = __webpack_require__(6);
1036
+
899
1037
  var getSorting_1 = __webpack_require__(33);
900
- var getPagination_1 = __webpack_require__(34);
1038
+
1039
+ var getPagination_1 = __webpack_require__(35);
1040
+
901
1041
  var useDeepMemo_1 = __webpack_require__(44);
1042
+
902
1043
  var MissingPropsMessage_1 = __webpack_require__(45);
1044
+
903
1045
  var withEditModeCover_1 = __webpack_require__(46);
1046
+
904
1047
  var withPlaceholder_1 = __webpack_require__(47);
905
1048
  /**
906
1049
  * hoc that wraps a pure react visualization in a Dashboard visualization
907
1050
  * @param {DashboardVizOpts} opts
908
1051
  * @returns {HOC}
909
1052
  */
1053
+
1054
+
910
1055
  var withDashboardViz = function withDashboardViz(opts) {
911
1056
  var ReactViz = opts.ReactViz,
912
- vizConfig = opts.vizConfig,
913
- _opts$computeVizProps = opts.computeVizProps,
914
- computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
915
- disableEditModeCover = opts.disableEditModeCover,
916
- useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
917
- var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
918
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
1057
+ vizConfig = opts.vizConfig,
1058
+ _opts$computeVizProps = opts.computeVizProps,
1059
+ computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
1060
+ disableEditModeCover = opts.disableEditModeCover,
1061
+ useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
1062
+
1063
+ var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
1064
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
1065
+
919
1066
  var DashboardViz = function DashboardViz(props) {
920
1067
  var _a;
1068
+
921
1069
  var mode = props.mode,
922
- hasEventHandlers = props.hasEventHandlers,
923
- dataSources = props.dataSources,
924
- options = props.options,
925
- _props$context = props.context,
926
- context = _props$context === void 0 ? {} : _props$context,
927
- width = props.width,
928
- height = props.height,
929
- onComputedProps = props.onComputedProps,
930
- onEventTrigger = props.onEventTrigger,
931
- theme = props.theme,
932
- onRequestParamsChange = props.onRequestParamsChange;
1070
+ hasEventHandlers = props.hasEventHandlers,
1071
+ dataSources = props.dataSources,
1072
+ options = props.options,
1073
+ _props$context = props.context,
1074
+ context = _props$context === void 0 ? {} : _props$context,
1075
+ width = props.width,
1076
+ height = props.height,
1077
+ onComputedProps = props.onComputedProps,
1078
+ onEventTrigger = props.onEventTrigger,
1079
+ theme = props.theme,
1080
+ onRequestParamsChange = props.onRequestParamsChange;
1081
+
933
1082
  var _React$useContext = React.useContext(TimezoneContext_1.default),
934
- serializedTimezone = _React$useContext.serializedTimezone;
1083
+ serializedTimezone = _React$useContext.serializedTimezone;
1084
+
935
1085
  if (serializedTimezone) {
936
1086
  /*
937
1087
  @splunk/moment currently does not allow us to customize the timezone on a per visualization basis.
@@ -945,44 +1095,58 @@ var withDashboardViz = function withDashboardViz(opts) {
945
1095
  moment_1.default.setDefaultSplunkTimezone(serializedTimezone);
946
1096
  }
947
1097
  }
1098
+
948
1099
  var themeFunc = function themeFunc(themeVar) {
949
1100
  var _a, _b;
1101
+
950
1102
  return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
951
1103
  };
1104
+
952
1105
  var bgColorFromTheme = themeFunc('defaultBackgroundColor');
953
- var _getSettingsFromTheme = getSettingsFromThemedProps_1.default({
954
- theme: theme
955
- }),
956
- currentThemeFamily = _getSettingsFromTheme.family,
957
- currentThemeColorScheme = _getSettingsFromTheme.colorScheme,
958
- currentThemeDensity = _getSettingsFromTheme.density;
1106
+
1107
+ var _ref = (0, getSettingsFromThemedProps_1.default)({
1108
+ theme: theme
1109
+ }),
1110
+ currentThemeFamily = _ref.family,
1111
+ currentThemeColorScheme = _ref.colorScheme,
1112
+ currentThemeDensity = _ref.density;
1113
+
959
1114
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
1115
+
960
1116
  var _React$useState = React.useState({}),
961
- _React$useState2 = _slicedToArray(_React$useState, 2),
962
- evaluatedOptionsAsync = _React$useState2[0],
963
- setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1117
+ _React$useState2 = _slicedToArray(_React$useState, 2),
1118
+ evaluatedOptionsAsync = _React$useState2[0],
1119
+ setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1120
+
1121
+
964
1122
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
965
- var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
966
- _React$useState4 = _slicedToArray(_React$useState3, 1),
967
- visualizationID = _React$useState4[0];
1123
+
1124
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
1125
+ _React$useState4 = _slicedToArray(_React$useState3, 1),
1126
+ visualizationID = _React$useState4[0];
1127
+
968
1128
  var _React$useState5 = React.useState({}),
969
- _React$useState6 = _slicedToArray(_React$useState5, 2),
970
- dataSourcesInState = _React$useState6[0],
971
- setDataSourcesInState = _React$useState6[1];
1129
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
1130
+ dataSourcesInState = _React$useState6[0],
1131
+ setDataSourcesInState = _React$useState6[1];
1132
+
972
1133
  var _React$useState7 = React.useState(),
973
- _React$useState8 = _slicedToArray(_React$useState7, 2),
974
- dataFramesInState = _React$useState8[0],
975
- setDataFramesInState = _React$useState8[1];
976
- var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
977
- _React$useState10 = _slicedToArray(_React$useState9, 2),
978
- useAsyncEvaluatedOptions = _React$useState10[0],
979
- setUseAsyncEvaluatedOptions = _React$useState10[1];
980
- evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
1134
+ _React$useState8 = _slicedToArray(_React$useState7, 2),
1135
+ dataFramesInState = _React$useState8[0],
1136
+ setDataFramesInState = _React$useState8[1];
1137
+
1138
+ var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
1139
+ _React$useState10 = _slicedToArray(_React$useState9, 2),
1140
+ useAsyncEvaluatedOptions = _React$useState10[0],
1141
+ setUseAsyncEvaluatedOptions = _React$useState10[1];
1142
+
1143
+ var isMounted = React.useRef(true);
1144
+ evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
981
1145
  try {
982
1146
  if (useAsyncEvaluatedOptions) {
983
1147
  var optionsToEvaluate = {
984
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
985
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1148
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
1149
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
986
1150
  };
987
1151
  var asyncDynamicOptionsEvaluatorParams = {
988
1152
  visualizationID: visualizationID,
@@ -993,21 +1157,23 @@ var withDashboardViz = function withDashboardViz(opts) {
993
1157
  };
994
1158
  async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
995
1159
  setEvaluatedOptionsAsync(results.results);
996
- }).catch(function (e) {
997
- // eslint-disable-next-line no-console
998
- console.error("unexpected error evaluating options - async: ".concat(e.message));
999
- setUseAsyncEvaluatedOptions(false);
1160
+ }).catch(function () {
1161
+ if (isMounted.current) {
1162
+ setUseAsyncEvaluatedOptions(false);
1163
+ }
1000
1164
  });
1001
1165
  } else {
1002
1166
  var dataFrames = dataFramesInState;
1167
+
1003
1168
  if (dataSources !== dataSourcesInState) {
1004
1169
  setDataSourcesInState(dataSources);
1005
1170
  dataFrames = Options_1.Options.dataFrameFromDataSource(dataSources);
1006
1171
  setDataFramesInState(dataFrames);
1007
1172
  }
1173
+
1008
1174
  return Options_1.Options.evaluate({
1009
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1010
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1175
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
1176
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
1011
1177
  }, dataSources, themeFunc, dataFrames);
1012
1178
  }
1013
1179
  } catch (e) {
@@ -1015,67 +1181,76 @@ var withDashboardViz = function withDashboardViz(opts) {
1015
1181
  console.error("unexpected error evaluating options: ".concat(e.message));
1016
1182
  return {};
1017
1183
  }
1184
+
1018
1185
  return {};
1019
1186
  }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
1020
- var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync;
1021
- // trellis specific backgroundColor update for onComputedProps
1187
+ var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
1022
1188
  // if trellis is enabled following these three criteria - 1) trellis feature flag is enabled 2) vizConfig supports array has 'trellis' 3) option 'splitByLayout' is set to 'trellis
1023
1189
  // onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
1190
+
1024
1191
  var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
1025
1192
  var clonedEvaluatedOptions = evaluatedOptionsToUse;
1193
+
1026
1194
  if (isTrellisFeatureFlagOn && ((_a = vizConfig === null || vizConfig === void 0 ? void 0 : vizConfig.supports) === null || _a === void 0 ? void 0 : _a.includes(VizBehavior_1.VizBehavior.TRELLIS)) && (clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.splitByLayout) === VizBehavior_1.VizBehavior.TRELLIS) {
1027
1195
  clonedEvaluatedOptions = Object.assign(Object.assign({}, evaluatedOptionsToUse), {
1028
1196
  backgroundColor: clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor
1029
1197
  });
1030
- }
1031
- // useEffect hook needs to be initialized before any early returns
1198
+ } // useEffect hook needs to be initialized before any early returns
1032
1199
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
1200
+
1201
+
1033
1202
  React.useEffect(function () {
1034
1203
  onComputedProps(clonedEvaluatedOptions);
1035
1204
  });
1036
1205
  React.useEffect(function () {
1037
1206
  return function () {
1038
1207
  if (useAsyncEvaluatedOptions) {
1208
+ isMounted.current = false;
1039
1209
  async_dynamic_options_evaluator_1.default.reset(visualizationID);
1040
1210
  }
1041
- };
1042
- // eslint-disable-next-line react-hooks/exhaustive-deps
1043
- }, []);
1044
- // present warning message if any required props are missing
1211
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
1212
+ }, []); // present warning message if any required props are missing
1213
+
1045
1214
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1046
- requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1047
- supports = vizConfig.supports;
1048
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1215
+ requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1216
+ supports = vizConfig.supports;
1217
+ var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
1218
+
1049
1219
  if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && vizConfig.key !== 'splunk.singlevalue' // For SV missing props msg is not displayed if required props majorValue is missing, instead this will be handled from the component, instead handled within component
1050
1220
  ) {
1051
- return React.createElement(MissingPropsMessage_1.default, {
1052
- "data-test": "missing-props-message",
1053
- width: width,
1054
- height: height,
1055
- missingProps: missing,
1056
- backgroundColor: bgColorFromTheme
1057
- });
1058
- }
1059
- // events
1221
+ return React.createElement(MissingPropsMessage_1.default, {
1222
+ "data-test": "missing-props-message",
1223
+ width: width,
1224
+ height: height,
1225
+ missingProps: missing,
1226
+ backgroundColor: bgColorFromTheme
1227
+ });
1228
+ } // events
1229
+
1230
+
1060
1231
  var eventCallbackProps = {};
1232
+
1061
1233
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
1062
1234
  var supportedEvents = vizConfig.events;
1063
1235
  Object.keys(supportedEvents).forEach(function (eventName) {
1064
- var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
1065
- eventCallbackProps[eventCallbackPropName] = null;
1066
- // todo: refactor single value and single value icon to send payload from viz
1236
+ var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
1237
+ eventCallbackProps[eventCallbackPropName] = null; // todo: refactor single value and single value icon to send payload from viz
1067
1238
  // then remove these lines
1239
+
1068
1240
  var payloadKeys = supportedEvents[eventName].payloadKeys;
1069
1241
  var payload = {};
1242
+
1070
1243
  if (Array.isArray(payloadKeys) && payloadKeys.length) {
1071
1244
  payloadKeys.forEach(function (p) {
1072
1245
  payload[p] = evaluatedOptionsToUse[p];
1073
1246
  });
1074
1247
  }
1248
+
1075
1249
  eventCallbackProps[eventCallbackPropName] = function (ev) {
1076
1250
  if (ev && ev.payload) {
1077
1251
  payload = ev.payload;
1078
1252
  }
1253
+
1079
1254
  return onEventTrigger({
1080
1255
  originalEvent: ev,
1081
1256
  payload: payload,
@@ -1083,8 +1258,9 @@ var withDashboardViz = function withDashboardViz(opts) {
1083
1258
  });
1084
1259
  };
1085
1260
  });
1086
- }
1087
- // compute pure viz props which are not from options
1261
+ } // compute pure viz props which are not from options
1262
+
1263
+
1088
1264
  var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
1089
1265
  themeFunc: themeFunc
1090
1266
  }));
@@ -1102,21 +1278,25 @@ var withDashboardViz = function withDashboardViz(opts) {
1102
1278
  * In future, we could automatically detect which all datasources are being used
1103
1279
  * and bind those magically to pagination/sorting behavior.
1104
1280
  */
1281
+
1105
1282
  var dataSourceMetadata = {};
1106
1283
  var OptionKey = 'paginateDataSourceKey';
1107
- var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1108
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1109
- var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1110
- var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
1284
+ var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1285
+
1286
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
1287
+ var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1288
+ var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
1289
+
1111
1290
  var handleRequestParamsChange = function handleRequestParamsChange(payload) {
1112
1291
  return onRequestParamsChange(paginateDataSourceKey, payload);
1113
1292
  };
1114
- var sortParams = getSorting_1.getSortingParams({
1293
+
1294
+ var sortParams = (0, getSorting_1.getSortingParams)({
1115
1295
  requestParams: requestParams,
1116
1296
  meta: meta,
1117
1297
  onRequestParamsChange: handleRequestParamsChange
1118
1298
  });
1119
- var paginatorParams = getPagination_1.getPaginationParams({
1299
+ var paginatorParams = (0, getPagination_1.getPaginationParams)({
1120
1300
  requestParams: requestParams,
1121
1301
  meta: meta,
1122
1302
  onRequestParamsChange: handleRequestParamsChange
@@ -1125,115 +1305,132 @@ var withDashboardViz = function withDashboardViz(opts) {
1125
1305
  sortParams: sortParams,
1126
1306
  paginatorParams: paginatorParams
1127
1307
  };
1128
- }
1129
- // if were using webworkers and this is the first render we dont want to show a viz with missing data so we return null
1308
+ } // if were using webworkers and this is the first render we dont want to show a viz with missing data so we return null
1309
+
1310
+
1130
1311
  if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
1131
1312
  return null;
1132
1313
  }
1314
+
1133
1315
  return React.createElement(SanitizedReactViz, Object.assign({
1134
1316
  mode: mode,
1135
1317
  width: width,
1136
1318
  height: height
1137
1319
  }, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
1138
1320
  };
1321
+
1139
1322
  DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
1140
1323
  DashboardViz.defaultProps = Object.assign(Object.assign(Object.assign({}, SplunkVisualization_1.default.defaultProps), ReactViz.defaultProps), {
1141
1324
  // using withTheme requires component to receive theme prop. In case the consumer did not provide ThemeProvider, a default empty object will prevent warnings.
1142
1325
  theme: {}
1143
- });
1144
- // attach viz config
1145
- DashboardViz.config = vizConfig;
1146
- // @ts-ignore: TODO fix sc upgrade TS issues
1147
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
1326
+ }); // attach viz config
1327
+
1328
+ DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
1329
+
1330
+ return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
1148
1331
  };
1332
+
1149
1333
  exports.default = withDashboardViz;
1150
1334
 
1151
1335
  /***/ }),
1152
1336
 
1153
- /***/ 37:
1337
+ /***/ 38:
1154
1338
  /***/ (function(module, exports) {
1155
1339
 
1156
1340
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1157
1341
 
1158
1342
  /***/ }),
1159
1343
 
1160
- /***/ 38:
1344
+ /***/ 39:
1161
1345
  /***/ (function(module, exports) {
1162
1346
 
1163
1347
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1164
1348
 
1165
1349
  /***/ }),
1166
1350
 
1167
- /***/ 39:
1351
+ /***/ 4:
1168
1352
  /***/ (function(module, exports) {
1169
1353
 
1170
- module.exports = require("@splunk/moment");
1354
+ module.exports = require("styled-components");
1171
1355
 
1172
1356
  /***/ }),
1173
1357
 
1174
- /***/ 4:
1358
+ /***/ 40:
1175
1359
  /***/ (function(module, exports) {
1176
1360
 
1177
- module.exports = require("styled-components");
1361
+ module.exports = require("@splunk/moment");
1178
1362
 
1179
1363
  /***/ }),
1180
1364
 
1181
- /***/ 40:
1365
+ /***/ 41:
1182
1366
  /***/ (function(module, exports) {
1183
1367
 
1184
1368
  module.exports = require("@splunk/async-dynamic-options-evaluator");
1185
1369
 
1186
1370
  /***/ }),
1187
1371
 
1188
- /***/ 41:
1372
+ /***/ 42:
1189
1373
  /***/ (function(module, exports, __webpack_require__) {
1190
1374
 
1191
1375
  "use strict";
1192
1376
 
1193
1377
 
1194
1378
  var _classCallCheck = __webpack_require__(9);
1379
+
1195
1380
  Object.defineProperty(exports, "__esModule", {
1196
1381
  value: true
1197
1382
  });
1198
1383
  exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
1199
1384
  /* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
1385
+
1200
1386
  var T = __webpack_require__(0);
1387
+
1201
1388
  var lodash_1 = __webpack_require__(3);
1202
- var VizActionHandler_1 = __webpack_require__(42);
1203
- // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1389
+
1390
+ var VizActionHandler_1 = __webpack_require__(43); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1391
+
1392
+
1204
1393
  exports.INITIAL_WIDTH = 250;
1205
1394
  exports.INITIAL_HEIGHT = 250;
1206
1395
  /**
1207
1396
  * A Splunk visualization
1208
1397
  */
1398
+
1209
1399
  var SplunkVisualization = function SplunkVisualization() {
1210
1400
  _classCallCheck(this, SplunkVisualization);
1211
1401
  };
1402
+
1212
1403
  SplunkVisualization.propTypes = {
1213
1404
  /**
1214
1405
  * display mode
1215
1406
  */
1216
1407
  mode: T.oneOf(['view', 'edit', 'export']).isRequired,
1408
+
1217
1409
  /**
1218
1410
  * width in pixel or string, defaults to 100%
1219
1411
  */
1220
1412
  width: T.oneOfType([T.string, T.number]).isRequired,
1413
+
1221
1414
  /**
1222
1415
  * height in pixel or string
1223
1416
  */
1224
1417
  height: T.oneOfType([T.string, T.number]).isRequired,
1418
+
1225
1419
  /**
1226
1420
  * visualization context used for dynamic option evaluation
1227
1421
  */
1228
1422
  context: T.object,
1423
+
1229
1424
  /**
1230
1425
  * visualization formatting options
1231
1426
  */
1232
1427
  options: T.object,
1428
+
1233
1429
  /**
1234
1430
  * A callback to update formatting options
1235
1431
  */
1236
1432
  onOptionsChange: T.func,
1433
+
1237
1434
  /**
1238
1435
  * datasource state which include data and request params, object key indicate the datasource type.
1239
1436
  */
@@ -1242,6 +1439,7 @@ SplunkVisualization.propTypes = {
1242
1439
  * current request params
1243
1440
  */
1244
1441
  requestParams: T.object,
1442
+
1245
1443
  /**
1246
1444
  * current dataset
1247
1445
  */
@@ -1249,6 +1447,7 @@ SplunkVisualization.propTypes = {
1249
1447
  fields: T.array,
1250
1448
  columns: T.array
1251
1449
  }),
1450
+
1252
1451
  /**
1253
1452
  * error
1254
1453
  */
@@ -1256,29 +1455,35 @@ SplunkVisualization.propTypes = {
1256
1455
  level: T.string,
1257
1456
  message: T.string
1258
1457
  }),
1458
+
1259
1459
  /**
1260
1460
  * meta data that came with the dataset
1261
1461
  */
1262
1462
  meta: T.object
1263
1463
  })),
1464
+
1264
1465
  /**
1265
1466
  * A callback to trigger event
1266
1467
  */
1267
1468
  onEventTrigger: T.func,
1469
+
1268
1470
  /**
1269
1471
  * Inform viz if there are handlers listening to events
1270
1472
  */
1271
1473
  hasEventHandlers: T.bool,
1474
+
1272
1475
  /**
1273
1476
  * A callback to communicate computed props to a consumer
1274
1477
  */
1275
1478
  onComputedProps: T.func,
1479
+
1276
1480
  /**
1277
1481
  * A callback to obtain visualization api
1278
1482
  */
1279
1483
  vizActionHandlerRef: T.func,
1280
1484
  loading: T.bool,
1281
1485
  theme: T.object,
1486
+
1282
1487
  /**
1283
1488
  * A callback to request new data with updated request params
1284
1489
  */
@@ -1287,6 +1492,7 @@ SplunkVisualization.propTypes = {
1287
1492
  /**
1288
1493
  *
1289
1494
  */
1495
+
1290
1496
  SplunkVisualization.defaultProps = {
1291
1497
  // BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
1292
1498
  width: '100%',
@@ -1315,26 +1521,29 @@ exports.default = SplunkVisualization;
1315
1521
 
1316
1522
  /***/ }),
1317
1523
 
1318
- /***/ 42:
1524
+ /***/ 43:
1319
1525
  /***/ (function(module, exports, __webpack_require__) {
1320
1526
 
1321
1527
  "use strict";
1322
1528
 
1323
1529
 
1324
1530
  var _classCallCheck = __webpack_require__(9);
1531
+
1325
1532
  var _createClass = __webpack_require__(18);
1533
+
1326
1534
  Object.defineProperty(exports, "__esModule", {
1327
1535
  value: true
1328
1536
  });
1329
1537
  exports.DefaultVizActionHandler = void 0;
1538
+
1330
1539
  var DefaultVizActionHandler = /*#__PURE__*/function () {
1331
1540
  function DefaultVizActionHandler() {
1332
1541
  _classCallCheck(this, DefaultVizActionHandler);
1333
1542
  }
1543
+
1334
1544
  _createClass(DefaultVizActionHandler, [{
1335
1545
  key: "focus",
1336
- value: function focus() {
1337
- // noop
1546
+ value: function focus() {// noop
1338
1547
  }
1339
1548
  }, {
1340
1549
  key: "snapshot",
@@ -1342,23 +1551,11 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
1342
1551
  return null; // noop
1343
1552
  }
1344
1553
  }]);
1554
+
1345
1555
  return DefaultVizActionHandler;
1346
1556
  }();
1347
- exports.DefaultVizActionHandler = DefaultVizActionHandler;
1348
-
1349
- /***/ }),
1350
-
1351
- /***/ 43:
1352
- /***/ (function(module, exports, __webpack_require__) {
1353
-
1354
- "use strict";
1355
-
1356
1557
 
1357
- Object.defineProperty(exports, "__esModule", {
1358
- value: true
1359
- });
1360
- exports.validSortDirs = void 0;
1361
- exports.validSortDirs = ['asc', 'desc', 'none'];
1558
+ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1362
1559
 
1363
1560
  /***/ }),
1364
1561
 
@@ -1372,7 +1569,9 @@ Object.defineProperty(exports, "__esModule", {
1372
1569
  value: true
1373
1570
  });
1374
1571
  exports.useDeepMemo = void 0;
1572
+
1375
1573
  var react_1 = __webpack_require__(1);
1574
+
1376
1575
  var lodash_1 = __webpack_require__(3);
1377
1576
  /**
1378
1577
  * This hook evaluates and stores the result of a passed function and only
@@ -1387,16 +1586,21 @@ var lodash_1 = __webpack_require__(3);
1387
1586
  * @param fn the function to be executed and
1388
1587
  * @param dependencies an array of dependencies
1389
1588
  */
1589
+
1590
+
1390
1591
  var useDeepMemo = function useDeepMemo(fn, dependencies) {
1391
- var ref = react_1.useRef();
1392
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1592
+ var ref = (0, react_1.useRef)();
1593
+
1594
+ if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
1393
1595
  ref.current = {
1394
1596
  dependencies: dependencies,
1395
1597
  value: fn()
1396
1598
  };
1397
1599
  }
1600
+
1398
1601
  return ref.current.value;
1399
1602
  };
1603
+
1400
1604
  exports.useDeepMemo = useDeepMemo;
1401
1605
 
1402
1606
  /***/ }),
@@ -1411,19 +1615,27 @@ Object.defineProperty(exports, "__esModule", {
1411
1615
  value: true
1412
1616
  });
1413
1617
  exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
1618
+
1414
1619
  var React = __webpack_require__(1);
1620
+
1415
1621
  var T = __webpack_require__(0);
1622
+
1416
1623
  var i18n_1 = __webpack_require__(2);
1624
+
1417
1625
  var Message_1 = __webpack_require__(10);
1626
+
1418
1627
  var FixedSizeContainer_1 = __webpack_require__(13);
1419
1628
  /**
1420
1629
  * @method isMissing
1421
1630
  * @param {any} v
1422
1631
  * @returns {boolean} true if the input value === null or undefined
1423
1632
  */
1633
+
1634
+
1424
1635
  var isMissing = function isMissing(v) {
1425
1636
  return v === null || v === undefined;
1426
1637
  };
1638
+
1427
1639
  exports.isMissing = isMissing;
1428
1640
  /**
1429
1641
  * @method misskingKeys
@@ -1431,11 +1643,13 @@ exports.isMissing = isMissing;
1431
1643
  * @param {object} target
1432
1644
  * @returns {string[]} the keys of missing required props
1433
1645
  */
1646
+
1434
1647
  var missingKeys = function missingKeys(keys, target) {
1435
1648
  return keys.filter(function (k) {
1436
- return exports.isMissing(target[k]);
1649
+ return (0, exports.isMissing)(target[k]);
1437
1650
  });
1438
1651
  };
1652
+
1439
1653
  exports.missingKeys = missingKeys;
1440
1654
  var propTypes = {
1441
1655
  width: T.oneOfType([T.string, T.number]),
@@ -1449,24 +1663,26 @@ var propTypes = {
1449
1663
  * @param {MissingPropsProps} props
1450
1664
  * @returns {React.ReactElement}
1451
1665
  */
1666
+
1452
1667
  var MissingPropsMessage = function MissingPropsMessage(props) {
1453
1668
  var width = props.width,
1454
- height = props.height,
1455
- missingProps = props.missingProps;
1669
+ height = props.height,
1670
+ missingProps = props.missingProps;
1456
1671
  return React.createElement(Message_1.default, {
1457
1672
  "data-test": "message",
1458
1673
  width: width,
1459
1674
  height: height,
1460
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
1675
+ message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
1461
1676
  });
1462
1677
  };
1678
+
1463
1679
  exports.MissingPropsMessage = MissingPropsMessage;
1464
1680
  exports.MissingPropsMessage.propTypes = propTypes;
1465
1681
  exports.MissingPropsMessage.defaultProps = {
1466
1682
  width: '100%',
1467
1683
  height: 250
1468
1684
  };
1469
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1685
+ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
1470
1686
 
1471
1687
  /***/ }),
1472
1688
 
@@ -1479,15 +1695,19 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1479
1695
  Object.defineProperty(exports, "__esModule", {
1480
1696
  value: true
1481
1697
  });
1698
+
1482
1699
  var React = __webpack_require__(1);
1700
+
1483
1701
  var styled_components_1 = __webpack_require__(4);
1702
+
1484
1703
  var hocUtils_1 = __webpack_require__(15);
1704
+
1485
1705
  var Cover = styled_components_1.default.div.withConfig({
1486
1706
  displayName: "withEditModeCover__Cover",
1487
1707
  componentId: "sc-1gsbnxb-0"
1488
1708
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1489
1709
  var Blocker = styled_components_1.default.div.attrs({
1490
- 'data-splunk-visualization-version': "25.13.1 - ea48ec41e"
1710
+ 'data-splunk-visualization-version': "26.1.0 - fc8bf8d77"
1491
1711
  }).withConfig({
1492
1712
  displayName: "withEditModeCover__Blocker",
1493
1713
  componentId: "sc-1gsbnxb-1"
@@ -1498,6 +1718,7 @@ var Blocker = styled_components_1.default.div.attrs({
1498
1718
  * @param {ExtendedDashViz} Visualization
1499
1719
  * @returns {ExtendedDashViz} Wrapper
1500
1720
  */
1721
+
1501
1722
  var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
1502
1723
  var Wrapper = function Wrapper(props) {
1503
1724
  var mode = props.mode;
@@ -1506,17 +1727,19 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
1506
1727
  "data-test": "edit-mode-cover"
1507
1728
  }));
1508
1729
  };
1509
- hocUtils_1.extendStaticWrapperProps({
1730
+
1731
+ (0, hocUtils_1.extendStaticWrapperProps)({
1510
1732
  Wrapper: Wrapper,
1511
1733
  Visualization: Visualization
1512
1734
  });
1513
1735
  return Wrapper;
1514
1736
  };
1737
+
1515
1738
  exports.default = withEditModeCover;
1516
1739
 
1517
1740
  /***/ }),
1518
1741
 
1519
- /***/ 461:
1742
+ /***/ 464:
1520
1743
  /***/ (function(module, exports, __webpack_require__) {
1521
1744
 
1522
1745
  "use strict";
@@ -1524,27 +1747,38 @@ exports.default = withEditModeCover;
1524
1747
 
1525
1748
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
1526
1749
  if (k2 === undefined) k2 = k;
1527
- Object.defineProperty(o, k2, {
1528
- enumerable: true,
1529
- get: function get() {
1530
- return m[k];
1531
- }
1532
- });
1750
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1751
+
1752
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1753
+ desc = {
1754
+ enumerable: true,
1755
+ get: function get() {
1756
+ return m[k];
1757
+ }
1758
+ };
1759
+ }
1760
+
1761
+ Object.defineProperty(o, k2, desc);
1533
1762
  } : function (o, m, k, k2) {
1534
1763
  if (k2 === undefined) k2 = k;
1535
1764
  o[k2] = m[k];
1536
1765
  });
1766
+
1537
1767
  var __exportStar = this && this.__exportStar || function (m, exports) {
1538
1768
  for (var p in m) {
1539
1769
  if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1540
1770
  }
1541
1771
  };
1772
+
1542
1773
  Object.defineProperty(exports, "__esModule", {
1543
1774
  value: true
1544
1775
  });
1545
1776
  exports.default = void 0;
1546
- __exportStar(__webpack_require__(164), exports);
1547
- var Scatter_1 = __webpack_require__(164);
1777
+
1778
+ __exportStar(__webpack_require__(167), exports);
1779
+
1780
+ var Scatter_1 = __webpack_require__(167);
1781
+
1548
1782
  Object.defineProperty(exports, "default", {
1549
1783
  enumerable: true,
1550
1784
  get: function get() {
@@ -1554,39 +1788,55 @@ Object.defineProperty(exports, "default", {
1554
1788
 
1555
1789
  /***/ }),
1556
1790
 
1557
- /***/ 462:
1791
+ /***/ 465:
1558
1792
  /***/ (function(module, exports, __webpack_require__) {
1559
1793
 
1560
1794
  "use strict";
1561
1795
 
1562
1796
 
1563
1797
  var _toConsumableArray = __webpack_require__(8);
1798
+
1564
1799
  Object.defineProperty(exports, "__esModule", {
1565
1800
  value: true
1566
1801
  });
1567
1802
  exports.optionsSchema = void 0;
1803
+
1568
1804
  var visualization_icons_1 = __webpack_require__(52);
1569
- var placeholders_1 = __webpack_require__(49);
1805
+
1806
+ var placeholders_1 = __webpack_require__(50);
1807
+
1570
1808
  var pick_1 = __webpack_require__(23);
1809
+
1571
1810
  var variables_1 = __webpack_require__(11);
1811
+
1572
1812
  var schemaUtils_1 = __webpack_require__(16);
1813
+
1573
1814
  var visualization_color_palettes_1 = __webpack_require__(51);
1815
+
1574
1816
  var i18n_1 = __webpack_require__(2);
1817
+
1575
1818
  var VizBehavior_1 = __webpack_require__(6);
1576
- var VizCategory_1 = __webpack_require__(35);
1819
+
1820
+ var VizCategory_1 = __webpack_require__(36);
1821
+
1577
1822
  var configUtils_1 = __webpack_require__(20);
1578
- var AxesChartDataConfig_1 = __webpack_require__(73);
1579
- var AxesChartXGridAndLabels_1 = __webpack_require__(76);
1580
- var AxesChartColorAndStyle_1 = __webpack_require__(74);
1581
- var AxesChartLegend_1 = __webpack_require__(75);
1582
- var AxesChartYGridAndLabels_1 = __webpack_require__(77);
1823
+
1824
+ var AxesChartDataConfig_1 = __webpack_require__(74);
1825
+
1826
+ var AxesChartXGridAndLabels_1 = __webpack_require__(77);
1827
+
1828
+ var AxesChartColorAndStyle_1 = __webpack_require__(75);
1829
+
1830
+ var AxesChartLegend_1 = __webpack_require__(76);
1831
+
1832
+ var AxesChartYGridAndLabels_1 = __webpack_require__(78);
1833
+
1583
1834
  var dataContract = {
1584
1835
  requiredDataSources: [{
1585
1836
  name: 'primary',
1586
1837
  description: 'DataSource that powers the visualization'
1587
1838
  }],
1588
- optionalDataSources: [
1589
- // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1839
+ optionalDataSources: [// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
1590
1840
  // {
1591
1841
  // name: 'annotation',
1592
1842
  // description: 'DataSource that populates event annotations',
@@ -1657,13 +1907,13 @@ exports.optionsSchema = {
1657
1907
  legendDisplay: {
1658
1908
  default: 'right',
1659
1909
  description: 'Specify the location of the legend on the panel.',
1660
- pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
1910
+ pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
1661
1911
  type: 'string'
1662
1912
  },
1663
1913
  legendTruncation: {
1664
1914
  default: 'ellipsisEnd',
1665
1915
  description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
1666
- pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1916
+ pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
1667
1917
  type: 'string'
1668
1918
  },
1669
1919
  markerSize: {
@@ -1744,40 +1994,40 @@ exports.optionsSchema = {
1744
1994
  default: 'off',
1745
1995
  description: 'Specify whether to abbreviate large x-axis values with the closest SI prefix.',
1746
1996
  enum: ['off', 'auto'],
1747
- pattern: schemaUtils_1.getPattern(['auto', 'off']),
1997
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1748
1998
  type: 'string'
1749
1999
  },
1750
2000
  yAxisAbbreviation: {
1751
2001
  default: 'auto',
1752
2002
  description: 'Specify whether to abbreviate large y-axis values with the closest SI prefix.',
1753
2003
  enum: ['off', 'auto'],
1754
- pattern: schemaUtils_1.getPattern(['auto', 'off']),
2004
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
1755
2005
  type: 'string'
1756
2006
  },
1757
2007
  xAxisLabelVisibility: {
1758
2008
  default: 'auto',
1759
2009
  description: 'Specify whether to show or hide labels on the x-axis.',
1760
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
2010
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1761
2011
  type: 'string'
1762
2012
  },
1763
2013
  yAxisLabelVisibility: {
1764
2014
  default: 'auto',
1765
2015
  description: 'Specify whether to show or hide labels on the y-axis.',
1766
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
2016
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1767
2017
  type: 'string'
1768
2018
  },
1769
2019
  xAxisLineVisibility: {
1770
2020
  default: 'hide',
1771
2021
  description: 'Specify whether to show or hide the x-axis line.',
1772
2022
  enum: ['hide', 'show'],
1773
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
2023
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1774
2024
  type: 'string'
1775
2025
  },
1776
2026
  yAxisLineVisibility: {
1777
2027
  default: 'hide',
1778
2028
  description: 'Specify whether to show or hide the y-axis line.',
1779
2029
  enum: ['hide', 'show'],
1780
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
2030
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1781
2031
  type: 'string'
1782
2032
  },
1783
2033
  xAxisMajorTickInterval: {
@@ -1813,25 +2063,25 @@ exports.optionsSchema = {
1813
2063
  xAxisMajorTickVisibility: {
1814
2064
  default: 'auto',
1815
2065
  description: 'Specify whether to show or hide major tick marks on the x-axis.',
1816
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
2066
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1817
2067
  type: 'string'
1818
2068
  },
1819
2069
  yAxisMajorTickVisibility: {
1820
2070
  default: 'auto',
1821
2071
  description: 'Specify whether to show or hide major tick marks on the y-axis.',
1822
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
2072
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1823
2073
  type: 'string'
1824
2074
  },
1825
2075
  xAxisMinorTickVisibility: {
1826
2076
  default: 'auto',
1827
2077
  description: 'Specify whether to show or hide minor tick marks on the x-axis .',
1828
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
2078
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1829
2079
  type: 'string'
1830
2080
  },
1831
2081
  yAxisMinorTickVisibility: {
1832
2082
  default: 'auto',
1833
2083
  description: 'Specify whether to show or hide minor tick marks on the y-axis.',
1834
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
2084
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
1835
2085
  type: 'string'
1836
2086
  },
1837
2087
  xAxisMax: {
@@ -1857,13 +2107,13 @@ exports.optionsSchema = {
1857
2107
  xAxisScale: {
1858
2108
  default: 'linear',
1859
2109
  description: 'Specify the type of scale that applies to a numerical x-axis.',
1860
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
2110
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1861
2111
  type: 'string'
1862
2112
  },
1863
2113
  yAxisScale: {
1864
2114
  default: 'linear',
1865
2115
  description: 'Specify the type of scale that applies to a numerical y-axis.',
1866
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
2116
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
1867
2117
  type: 'string'
1868
2118
  },
1869
2119
  xAxisTitleText: {
@@ -1878,20 +2128,20 @@ exports.optionsSchema = {
1878
2128
  default: 'show',
1879
2129
  description: 'Specify whether to show or hide the title of the x-axis.',
1880
2130
  enum: ['hide', 'show'],
1881
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
2131
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1882
2132
  type: 'string'
1883
2133
  },
1884
2134
  yAxisTitleVisibility: {
1885
2135
  default: 'show',
1886
2136
  description: 'Specify whether to show or hide the title of the y-axis.',
1887
2137
  enum: ['hide', 'show'],
1888
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
2138
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
1889
2139
  type: 'string'
1890
2140
  }
1891
2141
  };
1892
2142
  var themes = {
1893
2143
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1894
- return pick_1.default({
2144
+ return (0, pick_1.default)({
1895
2145
  enterprise: {
1896
2146
  dark: variables_1.default.black(props),
1897
2147
  light: variables_1.default.backgroundColor(props)
@@ -1903,14 +2153,14 @@ var themes = {
1903
2153
  var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigScatter, {
1904
2154
  label: AxesChartColorAndStyle_1.default.label,
1905
2155
  layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout.slice(0, 2)), [[{
1906
- label: i18n_1._('Series colors by category name'),
2156
+ label: (0, i18n_1._)('Series colors by category name'),
1907
2157
  option: 'seriesColorsByField',
1908
2158
  editor: 'editor.seriesColorsByField',
1909
2159
  editorProps: {
1910
2160
  isCategorical: true
1911
2161
  }
1912
2162
  }], [{
1913
- label: i18n_1._('Marker size'),
2163
+ label: (0, i18n_1._)('Marker size'),
1914
2164
  option: 'markerSize',
1915
2165
  editor: 'editor.slider',
1916
2166
  editorProps: {
@@ -1923,16 +2173,19 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigScatter, {
1923
2173
  /**
1924
2174
  * visualization configuration
1925
2175
  */
2176
+
1926
2177
  var config = {
1927
2178
  /**
1928
2179
  * unique viz key
1929
2180
  */
1930
2181
  key: 'splunk.scatter',
2182
+
1931
2183
  /**
1932
2184
  * viz name
1933
2185
  */
1934
- name: i18n_1._('Scatter'),
2186
+ name: (0, i18n_1._)('Scatter'),
1935
2187
  category: VizCategory_1.VizCategory.CORRELATION,
2188
+
1936
2189
  /**
1937
2190
  * viz icon
1938
2191
  */
@@ -1954,11 +2207,11 @@ var config = {
1954
2207
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
1955
2208
  themes: themes
1956
2209
  };
1957
- exports.default = configUtils_1.enhanceConfig(config);
2210
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
1958
2211
 
1959
2212
  /***/ }),
1960
2213
 
1961
- /***/ 463:
2214
+ /***/ 466:
1962
2215
  /***/ (function(module, exports, __webpack_require__) {
1963
2216
 
1964
2217
  "use strict";
@@ -1968,10 +2221,14 @@ Object.defineProperty(exports, "__esModule", {
1968
2221
  value: true
1969
2222
  });
1970
2223
  exports.convertToScatterSCProperties = exports.mapToOldKey = exports.convertToStringValues = exports.scatterOptionValuesSCMapping = void 0;
2224
+
1971
2225
  var lodash_1 = __webpack_require__(3);
1972
- var propUtils_1 = __webpack_require__(28);
1973
- var chartingUtils_1 = __webpack_require__(55);
1974
- // map for key names which are either new or not present in SimpleXML options mapping
2226
+
2227
+ var propUtils_1 = __webpack_require__(29);
2228
+
2229
+ var chartingUtils_1 = __webpack_require__(56); // map for key names which are either new or not present in SimpleXML options mapping
2230
+
2231
+
1975
2232
  var scatterOptionsSCMapping = {
1976
2233
  xAxisLabelRotation: 'xAxisMajorLabelRotation',
1977
2234
  xAxisLabelVisibility: 'xAxisMajorLabelVisibility',
@@ -1995,8 +2252,8 @@ var scatterOptionsSCMapping = {
1995
2252
  bubbleSizeMax: 'bubbleMaxSize',
1996
2253
  bubbleSizeMin: 'bubbleMinSize',
1997
2254
  bubbleSizeMethod: 'bubbleSizeBy'
1998
- };
1999
- // key value mapping of what options (and their corresponding values) which we expose in config.ts to property values SC understands
2255
+ }; // key value mapping of what options (and their corresponding values) which we expose in config.ts to property values SC understands
2256
+
2000
2257
  exports.scatterOptionValuesSCMapping = {
2001
2258
  xAxisTitleVisibility: {
2002
2259
  hide: 'collapsed'
@@ -2021,13 +2278,15 @@ exports.scatterOptionValuesSCMapping = {
2021
2278
  * @param {Object} options
2022
2279
  * @returns {Object}
2023
2280
  */
2281
+
2024
2282
  var convertToStringValues = function convertToStringValues(options) {
2025
- var updatedOptions = propUtils_1.convertPropsToString({
2283
+ var updatedOptions = (0, propUtils_1.convertPropsToString)({
2026
2284
  vizProps: options,
2027
2285
  propNames: ['seriesColors', 'fieldColors']
2028
2286
  });
2029
2287
  return Object.assign(Object.assign({}, options), updatedOptions);
2030
2288
  };
2289
+
2031
2290
  exports.convertToStringValues = convertToStringValues;
2032
2291
  /**
2033
2292
  * Helper method to update the option names which can be mapped to SimpleXML options or
@@ -2036,11 +2295,13 @@ exports.convertToStringValues = convertToStringValues;
2036
2295
  * @param {Object} options
2037
2296
  * @returns {Object}
2038
2297
  */
2298
+
2039
2299
  var mapToOldKey = function mapToOldKey(options) {
2040
- return lodash_1.mapKeys(options, function (val, key) {
2300
+ return (0, lodash_1.mapKeys)(options, function (val, key) {
2041
2301
  return scatterOptionsSCMapping[key] ? scatterOptionsSCMapping[key] : key;
2042
2302
  });
2043
2303
  };
2304
+
2044
2305
  exports.mapToOldKey = mapToOldKey;
2045
2306
  /**
2046
2307
  * Chained helper for mapping the option properties (and values) we expose in config.ts into property values that splunk-charting accepts
@@ -2050,9 +2311,11 @@ exports.mapToOldKey = mapToOldKey;
2050
2311
  * @param {Object} originalOptions
2051
2312
  * @returns {Object}
2052
2313
  */
2314
+
2053
2315
  var convertToScatterSCProperties = function convertToScatterSCProperties(originalOptions) {
2054
- return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(exports.scatterOptionValuesSCMapping)).thru(exports.convertToStringValues).value();
2316
+ return (0, lodash_1.chain)((0, exports.mapToOldKey)(originalOptions)).thru((0, chartingUtils_1.mapToValues)(exports.scatterOptionValuesSCMapping)).thru(exports.convertToStringValues).value();
2055
2317
  };
2318
+
2056
2319
  exports.convertToScatterSCProperties = convertToScatterSCProperties;
2057
2320
 
2058
2321
  /***/ }),
@@ -2066,27 +2329,37 @@ exports.convertToScatterSCProperties = convertToScatterSCProperties;
2066
2329
  Object.defineProperty(exports, "__esModule", {
2067
2330
  value: true
2068
2331
  });
2332
+
2069
2333
  var React = __webpack_require__(1);
2334
+
2070
2335
  var colorUtils_1 = __webpack_require__(12);
2336
+
2071
2337
  var variables_1 = __webpack_require__(11);
2072
- var IconPlaceholder_1 = __webpack_require__(31);
2338
+
2339
+ var IconPlaceholder_1 = __webpack_require__(32);
2340
+
2073
2341
  var VizBehavior_1 = __webpack_require__(6);
2342
+
2074
2343
  var hocUtils_1 = __webpack_require__(15);
2344
+
2075
2345
  var withPlaceholder = function withPlaceholder(Visualization) {
2076
2346
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
2077
2347
  var config = Visualization.config;
2078
2348
  var themes = config.themes;
2349
+
2079
2350
  var Wrapper = function Wrapper(props) {
2080
2351
  var _a, _b;
2352
+
2081
2353
  var dataSources = props.dataSources,
2082
- loading = props.loading,
2083
- options = props.options,
2084
- height = props.height,
2085
- width = props.width;
2354
+ loading = props.loading,
2355
+ options = props.options,
2356
+ height = props.height,
2357
+ width = props.width;
2086
2358
  var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
2087
- var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
2359
+ var bgColorFromTheme = (0, colorUtils_1.isColor)(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
2088
2360
  var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
2089
2361
  var iconColor = variables_1.default.contentColorActive(props);
2362
+
2090
2363
  if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
2091
2364
  return React.createElement(IconPlaceholder_1.default, {
2092
2365
  "data-test": "icon-placeholder",
@@ -2097,19 +2370,22 @@ var withPlaceholder = function withPlaceholder(Visualization) {
2097
2370
  iconColor: iconColor
2098
2371
  });
2099
2372
  }
2373
+
2100
2374
  return React.createElement(Visualization, Object.assign({}, props));
2101
2375
  };
2102
- hocUtils_1.extendStaticWrapperProps({
2376
+
2377
+ (0, hocUtils_1.extendStaticWrapperProps)({
2103
2378
  Wrapper: Wrapper,
2104
2379
  Visualization: Visualization
2105
2380
  });
2106
2381
  return Wrapper;
2107
2382
  };
2383
+
2108
2384
  exports.default = withPlaceholder;
2109
2385
 
2110
2386
  /***/ }),
2111
2387
 
2112
- /***/ 49:
2388
+ /***/ 50:
2113
2389
  /***/ (function(module, exports) {
2114
2390
 
2115
2391
  module.exports = require("@splunk/visualization-icons/placeholders");
@@ -2139,13 +2415,15 @@ module.exports = require("@splunk/visualization-icons");
2139
2415
  Object.defineProperty(exports, "__esModule", {
2140
2416
  value: true
2141
2417
  });
2418
+
2142
2419
  var i18n_1 = __webpack_require__(2);
2420
+
2143
2421
  var background = function background(_ref) {
2144
2422
  var label = _ref.label,
2145
- themes = _ref.themes,
2146
- labelPosition = _ref.labelPosition;
2423
+ themes = _ref.themes,
2424
+ labelPosition = _ref.labelPosition;
2147
2425
  return [{
2148
- label: i18n_1._(label || 'Background'),
2426
+ label: (0, i18n_1._)(label || 'Background'),
2149
2427
  option: 'backgroundColor',
2150
2428
  editor: 'editor.color',
2151
2429
  editorProps: {
@@ -2154,31 +2432,44 @@ var background = function background(_ref) {
2154
2432
  }
2155
2433
  }];
2156
2434
  };
2435
+
2157
2436
  exports.default = background;
2158
2437
 
2159
2438
  /***/ }),
2160
2439
 
2161
2440
  /***/ 55:
2441
+ /***/ (function(module, exports) {
2442
+
2443
+ module.exports = require("@splunk/charting-bundle");
2444
+
2445
+ /***/ }),
2446
+
2447
+ /***/ 56:
2162
2448
  /***/ (function(module, exports, __webpack_require__) {
2163
2449
 
2164
2450
  "use strict";
2165
2451
 
2166
2452
 
2167
2453
  var _toConsumableArray = __webpack_require__(8);
2454
+
2168
2455
  var __rest = this && this.__rest || function (s, e) {
2169
2456
  var t = {};
2457
+
2170
2458
  for (var p in s) {
2171
2459
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
2172
2460
  }
2461
+
2173
2462
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2174
2463
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
2175
2464
  }
2176
2465
  return t;
2177
2466
  };
2467
+
2178
2468
  Object.defineProperty(exports, "__esModule", {
2179
2469
  value: true
2180
2470
  });
2181
2471
  exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
2472
+
2182
2473
  var lodash_1 = __webpack_require__(3);
2183
2474
  /**
2184
2475
  * Get formatted annotations
@@ -2189,10 +2480,12 @@ var lodash_1 = __webpack_require__(3);
2189
2480
  * @param {Array} options.annotationLabel
2190
2481
  * @returns {Array}
2191
2482
  */
2483
+
2484
+
2192
2485
  var getAnnotations = function getAnnotations(_ref) {
2193
2486
  var annotationX = _ref.annotationX,
2194
- annotationColor = _ref.annotationColor,
2195
- annotationLabel = _ref.annotationLabel;
2487
+ annotationColor = _ref.annotationColor,
2488
+ annotationLabel = _ref.annotationLabel;
2196
2489
  return annotationX && annotationX.length ? annotationX.map(function (timestamp, i) {
2197
2490
  return {
2198
2491
  color: annotationColor && annotationColor[i],
@@ -2201,6 +2494,7 @@ var getAnnotations = function getAnnotations(_ref) {
2201
2494
  };
2202
2495
  }) : [];
2203
2496
  };
2497
+
2204
2498
  exports.getAnnotations = getAnnotations;
2205
2499
  /**
2206
2500
  * Truncate the result set to given limit
@@ -2209,20 +2503,25 @@ exports.getAnnotations = getAnnotations;
2209
2503
  * @param {Number|String} truncationLimit - options['chart.resultTruncationLimit']
2210
2504
  * @returns {Object}
2211
2505
  */
2506
+
2212
2507
  var truncateData = function truncateData(dataSet, truncationLimit) {
2213
2508
  if (!dataSet) {
2214
2509
  return null;
2215
2510
  }
2511
+
2216
2512
  var limit = parseInt(truncationLimit, 10);
2513
+
2217
2514
  if (!limit || limit <= 0) {
2218
2515
  return dataSet;
2219
2516
  }
2517
+
2220
2518
  var truncatedData = Object.assign({}, dataSet);
2221
2519
  truncatedData.columns = truncatedData.columns.map(function (columnData) {
2222
2520
  return columnData && Array.isArray(columnData) ? columnData.slice(0, limit) : columnData;
2223
2521
  });
2224
2522
  return truncatedData;
2225
2523
  };
2524
+
2226
2525
  exports.truncateData = truncateData;
2227
2526
  /**
2228
2527
  * Helper method to update the option values into the values that SC accepts
@@ -2230,13 +2529,15 @@ exports.truncateData = truncateData;
2230
2529
  * @param {Object} options
2231
2530
  * @returns {Object}
2232
2531
  */
2532
+
2233
2533
  var mapToValues = function mapToValues(optionValuesSCMapping) {
2234
2534
  return function (options) {
2235
2535
  var convertedOptions = Object.assign({}, options);
2236
2536
  Object.keys(optionValuesSCMapping).forEach(function (key) {
2237
- if (lodash_1.has(options, key)) {
2537
+ if ((0, lodash_1.has)(options, key)) {
2238
2538
  var updatedValue = optionValuesSCMapping[key][options[key]];
2239
- if (!lodash_1.isUndefined(updatedValue)) {
2539
+
2540
+ if (!(0, lodash_1.isUndefined)(updatedValue)) {
2240
2541
  convertedOptions[key] = updatedValue;
2241
2542
  }
2242
2543
  }
@@ -2244,6 +2545,7 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
2244
2545
  return convertedOptions;
2245
2546
  };
2246
2547
  };
2548
+
2247
2549
  exports.mapToValues = mapToValues;
2248
2550
  /**
2249
2551
  * Helper method to process options related to y2Fields
@@ -2251,18 +2553,23 @@ exports.mapToValues = mapToValues;
2251
2553
  * @param {Object} originalOptions
2252
2554
  * @returns {Object}
2253
2555
  */
2556
+
2254
2557
  var convertY2AxisOptions = function convertY2AxisOptions(_a) {
2255
2558
  var y2Fields = _a.y2Fields,
2256
- originalOptions = __rest(_a, ["y2Fields"]);
2559
+ originalOptions = __rest(_a, ["y2Fields"]);
2560
+
2257
2561
  var convertedOptions = Object.assign({}, originalOptions);
2562
+
2258
2563
  if (y2Fields) {
2259
2564
  convertedOptions['axisY2.enabled'] = true;
2260
- convertedOptions['axisY2.fields'] = lodash_1.isArray(y2Fields) ? y2Fields.filter(function (name) {
2565
+ convertedOptions['axisY2.fields'] = (0, lodash_1.isArray)(y2Fields) ? y2Fields.filter(function (name) {
2261
2566
  return name;
2262
2567
  }).join(',') : y2Fields;
2263
2568
  }
2569
+
2264
2570
  return convertedOptions;
2265
2571
  };
2572
+
2266
2573
  exports.convertY2AxisOptions = convertY2AxisOptions;
2267
2574
  /**
2268
2575
  * Helper method to format value for overlayFields
@@ -2270,9 +2577,11 @@ exports.convertY2AxisOptions = convertY2AxisOptions;
2270
2577
  * @param {Object} originalOptions
2271
2578
  * @returns {Object}
2272
2579
  */
2580
+
2273
2581
  var convertOverlayFields = function convertOverlayFields(originalOptions) {
2274
2582
  var convertedOptions = Object.assign({}, originalOptions);
2275
2583
  var overlayFields = originalOptions.overlayFields;
2584
+
2276
2585
  if (overlayFields) {
2277
2586
  convertedOptions.overlayFields = Array.isArray(overlayFields) ? overlayFields.filter(function (field) {
2278
2587
  return field;
@@ -2280,17 +2589,21 @@ var convertOverlayFields = function convertOverlayFields(originalOptions) {
2280
2589
  return field.trim();
2281
2590
  }).join(',') : overlayFields;
2282
2591
  }
2592
+
2283
2593
  return convertedOptions;
2284
2594
  };
2595
+
2285
2596
  exports.convertOverlayFields = convertOverlayFields;
2286
2597
  /**
2287
2598
  * checks whether data is multi series data
2288
2599
  * @param {array} data array
2289
2600
  * @return {Boolean}
2290
2601
  */
2602
+
2291
2603
  var isMultiSeriesData = function isMultiSeriesData(data) {
2292
2604
  return Array.isArray(data) && Array.isArray(data[0]);
2293
2605
  };
2606
+
2294
2607
  exports.isMultiSeriesData = isMultiSeriesData;
2295
2608
  /**
2296
2609
  * checks whether data is multi series data and returns value as array
@@ -2298,36 +2611,39 @@ exports.isMultiSeriesData = isMultiSeriesData;
2298
2611
  * @param {*} value to return as array
2299
2612
  * @return {array}
2300
2613
  */
2614
+
2301
2615
  var toArrayForSeries = function toArrayForSeries(data, value) {
2302
- return exports.isMultiSeriesData(data) ? value : [value];
2616
+ return (0, exports.isMultiSeriesData)(data) ? value : [value];
2303
2617
  };
2618
+
2304
2619
  exports.toArrayForSeries = toArrayForSeries;
2620
+
2305
2621
  var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
2306
2622
  var _ref2$x = _ref2.x,
2307
- x = _ref2$x === void 0 ? [] : _ref2$x,
2308
- _ref2$y = _ref2.y,
2309
- y = _ref2$y === void 0 ? [] : _ref2$y,
2310
- xField = _ref2.xField,
2311
- yFields = _ref2.yFields,
2312
- y2 = _ref2.y2,
2313
- y2Fields = _ref2.y2Fields;
2314
- var columns = [x.map(String)].concat(_toConsumableArray(exports.toArrayForSeries(y, y).map(function (series) {
2623
+ x = _ref2$x === void 0 ? [] : _ref2$x,
2624
+ _ref2$y = _ref2.y,
2625
+ y = _ref2$y === void 0 ? [] : _ref2$y,
2626
+ xField = _ref2.xField,
2627
+ yFields = _ref2.yFields,
2628
+ y2 = _ref2.y2,
2629
+ y2Fields = _ref2.y2Fields;
2630
+ var columns = [x.map(String)].concat(_toConsumableArray((0, exports.toArrayForSeries)(y, y).map(function (series) {
2315
2631
  return series.map(String);
2316
2632
  })));
2317
- var yFieldsArray = exports.toArrayForSeries(y, yFields);
2633
+ var yFieldsArray = (0, exports.toArrayForSeries)(y, yFields);
2318
2634
  var fields = [{
2319
2635
  name: xField
2320
2636
  }].concat(_toConsumableArray(yFieldsArray.map(function (field) {
2321
2637
  return {
2322
2638
  name: field
2323
2639
  };
2324
- })));
2325
- // splunk-charting requires y2 to be part of columns
2640
+ }))); // splunk-charting requires y2 to be part of columns
2326
2641
  // when y & y2 options are configured with different (mutually exclusive) series
2327
2642
  // y2 columns need to be added to columns
2643
+
2328
2644
  if (y2Fields) {
2329
- var y2FieldsArray = exports.toArrayForSeries(y2, y2Fields);
2330
- var y2AsArray = exports.toArrayForSeries(y2, y2).map(function (series) {
2645
+ var y2FieldsArray = (0, exports.toArrayForSeries)(y2, y2Fields);
2646
+ var y2AsArray = (0, exports.toArrayForSeries)(y2, y2).map(function (series) {
2331
2647
  return series === null || series === void 0 ? void 0 : series.map(String);
2332
2648
  });
2333
2649
  y2FieldsArray.forEach(function (y2Field, index) {
@@ -2339,19 +2655,14 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
2339
2655
  }
2340
2656
  });
2341
2657
  }
2658
+
2342
2659
  return {
2343
2660
  columns: columns,
2344
2661
  fields: fields
2345
2662
  };
2346
2663
  };
2347
- exports.constructFieldsAndColumns = constructFieldsAndColumns;
2348
-
2349
- /***/ }),
2350
2664
 
2351
- /***/ 56:
2352
- /***/ (function(module, exports) {
2353
-
2354
- module.exports = require("@splunk/charting-bundle");
2665
+ exports.constructFieldsAndColumns = constructFieldsAndColumns;
2355
2666
 
2356
2667
  /***/ }),
2357
2668
 
@@ -2373,6 +2684,7 @@ Object.defineProperty(exports, "__esModule", {
2373
2684
  });
2374
2685
  exports.VizBehavior = void 0;
2375
2686
  var VizBehavior;
2687
+
2376
2688
  (function (VizBehavior) {
2377
2689
  /**
2378
2690
  * Dynamic Options Behavior.
@@ -2392,6 +2704,7 @@ var VizBehavior;
2392
2704
  * missing.
2393
2705
  * @type {string}
2394
2706
  */
2707
+
2395
2708
  VizBehavior["PLACEHOLDER"] = "placeholder";
2396
2709
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
2397
2710
  VizBehavior["TRELLIS"] = "trellis";
@@ -2399,7 +2712,7 @@ var VizBehavior;
2399
2712
 
2400
2713
  /***/ }),
2401
2714
 
2402
- /***/ 64:
2715
+ /***/ 65:
2403
2716
  /***/ (function(module, exports, __webpack_require__) {
2404
2717
 
2405
2718
  "use strict";
@@ -2410,23 +2723,42 @@ Object.defineProperty(exports, "__esModule", {
2410
2723
  });
2411
2724
  exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
2412
2725
  /* eslint-disable react/no-unused-prop-types */
2726
+
2413
2727
  var lodash_1 = __webpack_require__(3);
2728
+
2414
2729
  var i18n_1 = __webpack_require__(2);
2730
+
2415
2731
  var visualization_color_palettes_1 = __webpack_require__(51);
2732
+
2416
2733
  var react_1 = __webpack_require__(1);
2734
+
2417
2735
  var React = __webpack_require__(1);
2736
+
2418
2737
  var T = __webpack_require__(0);
2419
- var react_event_listener_1 = __webpack_require__(65);
2420
- __webpack_require__(66); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
2421
- var charting_bundle_1 = __webpack_require__(56);
2422
- var TimezoneContext_1 = __webpack_require__(25);
2738
+
2739
+ var react_event_listener_1 = __webpack_require__(66);
2740
+
2741
+ __webpack_require__(67); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
2742
+
2743
+
2744
+ var charting_bundle_1 = __webpack_require__(55);
2745
+
2746
+ var TimezoneContext_1 = __webpack_require__(26);
2747
+
2423
2748
  var style_1 = __webpack_require__(14);
2749
+
2424
2750
  var styled_components_1 = __webpack_require__(4);
2751
+
2425
2752
  var Message_1 = __webpack_require__(10);
2753
+
2426
2754
  var useSplunkTheme_1 = __webpack_require__(57);
2427
- var themeUtils_1 = __webpack_require__(67);
2428
- var ChartingApi_1 = __webpack_require__(68);
2755
+
2756
+ var themeUtils_1 = __webpack_require__(68);
2757
+
2758
+ var ChartingApi_1 = __webpack_require__(69);
2759
+
2429
2760
  exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
2761
+
2430
2762
  var changedOptions = function changedOptions(curOptions, nextOptions) {
2431
2763
  return Object.keys(curOptions).filter(function (key) {
2432
2764
  return !(key in nextOptions);
@@ -2434,30 +2766,34 @@ var changedOptions = function changedOptions(curOptions, nextOptions) {
2434
2766
  return !(key in curOptions) || curOptions[key] !== nextOptions[key];
2435
2767
  }));
2436
2768
  };
2769
+
2437
2770
  exports.changedOptions = changedOptions;
2438
- charting_bundle_1.default.enableScaledEvents();
2771
+
2439
2772
  function usePrevious(value) {
2440
- var ref = react_1.useRef();
2441
- react_1.useEffect(function () {
2773
+ var ref = (0, react_1.useRef)();
2774
+ (0, react_1.useEffect)(function () {
2442
2775
  ref.current = value;
2443
2776
  });
2444
2777
  return ref.current;
2445
2778
  }
2779
+
2446
2780
  var canUpdateInPlace = function canUpdateInPlace(curOptions, nextOptions) {
2447
2781
  // if either of the options are undefined
2448
2782
  // it cannot update in place.
2449
2783
  if (!curOptions || !nextOptions) {
2450
2784
  return false;
2451
2785
  }
2786
+
2452
2787
  return !exports.NO_INPLACE_PROPS.some(function (p) {
2453
2788
  return curOptions[p] !== nextOptions[p];
2454
- }) && !exports.changedOptions(curOptions, nextOptions).some(function (p) {
2789
+ }) && !(0, exports.changedOptions)(curOptions, nextOptions).some(function (p) {
2455
2790
  return p.toLowerCase().endsWith('color');
2456
2791
  });
2457
2792
  };
2458
- exports.canUpdateInPlace = canUpdateInPlace;
2459
- // create 'row' payloads from 'rowContext' in the flattened format:
2793
+
2794
+ exports.canUpdateInPlace = canUpdateInPlace; // create 'row' payloads from 'rowContext' in the flattened format:
2460
2795
  // row.<fieldname>.value
2796
+
2461
2797
  var updateRowPayload = function updateRowPayload(chartEventRowContext, payload) {
2462
2798
  Object.keys(chartEventRowContext || {}).forEach(function (key) {
2463
2799
  // eslint-disable-next-line no-param-reassign
@@ -2465,18 +2801,21 @@ var updateRowPayload = function updateRowPayload(chartEventRowContext, payload)
2465
2801
  });
2466
2802
  return payload;
2467
2803
  };
2804
+
2468
2805
  exports.updateRowPayload = updateRowPayload;
2469
2806
  var VizChartEventType;
2807
+
2470
2808
  (function (VizChartEventType) {
2471
2809
  VizChartEventType["POINT_CLICK"] = "point.click";
2472
2810
  VizChartEventType["POINT_MOUSE_OUT"] = "point.mouseout";
2473
2811
  VizChartEventType["POINT_MOUSE_OVER"] = "point.mouseover";
2474
2812
  VizChartEventType["LEGEND_CLICK"] = "legend.click";
2475
- })(VizChartEventType || (VizChartEventType = {}));
2476
- // @TODO(pwied): remove after HC upgrade to 8+
2813
+ })(VizChartEventType || (VizChartEventType = {})); // @TODO(pwied): remove after HC upgrade to 8+
2477
2814
  // .highcharts-a11y-proxy-container rule addresses a HighCharts < 8 bug
2478
2815
  // caused by the accessibility plugin
2479
2816
  // https://github.com/highcharts/highcharts/issues/12883
2817
+
2818
+
2480
2819
  var ChartingContainer = styled_components_1.default.div.attrs(function (props) {
2481
2820
  return {
2482
2821
  'data-test': 'charting-container',
@@ -2487,7 +2826,7 @@ var ChartingContainer = styled_components_1.default.div.attrs(function (props) {
2487
2826
  displayName: "Charting__ChartingContainer",
2488
2827
  componentId: "sc-3wbgm0-0"
2489
2828
  })(["& .highcharts-a11y-proxy-container{pointer-events:none;}overflow:hidden;position:relative;", ";"], function (props) {
2490
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
2829
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
2491
2830
  });
2492
2831
  var propTypes = {
2493
2832
  width: T.oneOfType([T.string, T.number]),
@@ -2504,13 +2843,15 @@ var propTypes = {
2504
2843
  visualizationApiRef: T.func,
2505
2844
  themeKey: T.string
2506
2845
  };
2846
+
2507
2847
  var Charting = function Charting(props) {
2508
- var container = react_1.useRef(null);
2509
- var needsInit = react_1.useRef(true);
2510
- var chart = react_1.useRef();
2511
- var needsRedraw = react_1.useRef(true);
2512
- var api = react_1.useRef(new ChartingApi_1.ChartingApiFunctional(chart));
2513
- var timezone = react_1.useContext(TimezoneContext_1.default);
2848
+ var container = (0, react_1.useRef)(null);
2849
+ var needsInit = (0, react_1.useRef)(true);
2850
+ var chart = (0, react_1.useRef)();
2851
+ var needsRedraw = (0, react_1.useRef)(true);
2852
+ var api = (0, react_1.useRef)(new ChartingApi_1.ChartingApiFunctional(chart));
2853
+ var timezone = (0, react_1.useContext)(TimezoneContext_1.default);
2854
+
2514
2855
  var computeChartingSize = function computeChartingSize() {
2515
2856
  if (container.current) {
2516
2857
  var rect = container.current.getBoundingClientRect();
@@ -2519,91 +2860,103 @@ var Charting = function Charting(props) {
2519
2860
  width: rect.width
2520
2861
  };
2521
2862
  }
2863
+
2522
2864
  return {};
2523
2865
  };
2524
- var splunkTheme = useSplunkTheme_1.default();
2525
- var themeKey = props.themeKey ? props.themeKey : themeUtils_1.getChartingThemeKey({
2866
+
2867
+ var splunkTheme = (0, useSplunkTheme_1.default)();
2868
+ var themeKey = props.themeKey ? props.themeKey : (0, themeUtils_1.getChartingThemeKey)({
2526
2869
  splunkThemeV1: splunkTheme
2527
2870
  });
2528
2871
  var width = props.width,
2529
- height = props.height,
2530
- style = props.style,
2531
- chartData = props.chartData,
2532
- options = props.options,
2533
- colorPalette = props.colorPalette,
2534
- onClick = props.onClick,
2535
- onSelect = props.onSelect,
2536
- onPointMouseOut = props.onPointMouseOut,
2537
- onPointMouseOver = props.onPointMouseOver,
2538
- onEventTrigger = props.onEventTrigger;
2872
+ height = props.height,
2873
+ style = props.style,
2874
+ chartData = props.chartData,
2875
+ options = props.options,
2876
+ colorPalette = props.colorPalette,
2877
+ onClick = props.onClick,
2878
+ onSelect = props.onSelect,
2879
+ onPointMouseOut = props.onPointMouseOut,
2880
+ onPointMouseOver = props.onPointMouseOver,
2881
+ onEventTrigger = props.onEventTrigger;
2539
2882
  var prevOptions = usePrevious(options);
2540
2883
  var prevTimezone = usePrevious(timezone);
2884
+
2541
2885
  var handleClick = function handleClick(chartEvent, type) {
2542
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
2886
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
2543
2887
  payload.name = payload.name2;
2544
2888
  delete payload.name2;
2889
+
2545
2890
  if (type === VizChartEventType.POINT_CLICK) {
2546
2891
  payload.value = payload.value2;
2547
2892
  delete payload.value2;
2548
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
2893
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
2549
2894
  }
2895
+
2550
2896
  onClick({
2551
2897
  type: type,
2552
2898
  originalEvent: chartEvent,
2553
2899
  payload: payload
2554
2900
  });
2555
2901
  };
2902
+
2556
2903
  var destroyChart = function destroyChart() {
2557
2904
  if (chart.current) {
2558
2905
  chart.current.destroy();
2559
2906
  chart.current = null;
2560
2907
  }
2908
+
2561
2909
  needsRedraw.current = true;
2562
2910
  needsInit.current = true;
2563
2911
  };
2912
+
2564
2913
  var handleSelect = function handleSelect(chartEvent) {
2565
2914
  // todo: need change this after breaking all visualizations
2566
2915
  if (onSelect && typeof onSelect === 'function') {
2567
2916
  onSelect({
2568
2917
  type: 'range.select',
2569
2918
  originalEvent: chartEvent,
2570
- payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2919
+ payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2571
2920
  });
2572
2921
  return;
2573
- }
2574
- // the chartEvent here is a jQuery event
2922
+ } // the chartEvent here is a jQuery event
2923
+
2924
+
2575
2925
  onEventTrigger({
2576
2926
  type: 'range.select',
2577
2927
  originalEvent: chartEvent,
2578
- payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2928
+ payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2579
2929
  });
2580
2930
  };
2931
+
2581
2932
  var handlePointMouseOut = function handlePointMouseOut(chartEvent, type) {
2582
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2933
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2583
2934
  payload.name = payload.name2;
2584
2935
  delete payload.name2;
2585
2936
  payload.value = payload.value2;
2586
2937
  delete payload.value2;
2587
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
2938
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
2588
2939
  onPointMouseOut({
2589
2940
  type: type,
2590
2941
  originalEvent: chartEvent,
2591
2942
  payload: payload
2592
2943
  });
2593
2944
  };
2945
+
2594
2946
  var handlePointMouseOver = function handlePointMouseOver(chartEvent, type) {
2595
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2947
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2596
2948
  payload.name = payload.name2;
2597
2949
  delete payload.name2;
2598
2950
  payload.value = payload.value2;
2599
2951
  delete payload.value2;
2600
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
2952
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
2601
2953
  onPointMouseOver({
2602
2954
  type: type,
2603
2955
  originalEvent: chartEvent,
2604
2956
  payload: payload
2605
2957
  });
2606
2958
  };
2959
+
2607
2960
  var drawChart = function drawChart() {
2608
2961
  var updatedOptions = Object.assign(Object.assign({}, options), {
2609
2962
  shouldColorizeTooltipData: false
@@ -2614,15 +2967,18 @@ var Charting = function Charting(props) {
2614
2967
  var serializedTimezone = timezone === null || timezone === void 0 ? void 0 : timezone.serializedTimezone;
2615
2968
  var ianaTimezone = timezone === null || timezone === void 0 ? void 0 : timezone.ianaTimezone;
2616
2969
  var utcOffset = timezone === null || timezone === void 0 ? void 0 : timezone.utcOffset;
2970
+
2617
2971
  if (!computedWidth || !computedHeight) {
2618
2972
  return;
2619
2973
  }
2974
+
2620
2975
  if (!chartData || !Object.keys(chartData).length) {
2621
2976
  return;
2622
- }
2623
- // splunk-charting layers configuration option updates.
2977
+ } // splunk-charting layers configuration option updates.
2624
2978
  // when an option is removed it needs to be set to an empty string
2625
2979
  // to override the previous configuration
2980
+
2981
+
2626
2982
  if (prevOptions) {
2627
2983
  Object.keys(prevOptions).forEach(function (key) {
2628
2984
  if (updatedOptions[key] === undefined) {
@@ -2630,13 +2986,16 @@ var Charting = function Charting(props) {
2630
2986
  }
2631
2987
  });
2632
2988
  }
2989
+
2633
2990
  try {
2634
2991
  if (needsInit.current) {
2635
2992
  destroyChart();
2636
2993
  charting_bundle_1.default.setTheme(themeKey);
2994
+
2637
2995
  if (colorPalette.length > 0) {
2638
2996
  charting_bundle_1.default.setColorPalette(colorPalette);
2639
2997
  }
2998
+
2640
2999
  chart.current = charting_bundle_1.default.createChart(container.current, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, updatedOptions), {
2641
3000
  drilldown: 'all'
2642
3001
  }), typeof serializedTimezone === 'string' && {
@@ -2645,8 +3004,8 @@ var Charting = function Charting(props) {
2645
3004
  'time.ianaTimezone': ianaTimezone
2646
3005
  }), typeof utcOffset === 'number' && {
2647
3006
  'time.timezoneOffset': utcOffset
2648
- }));
2649
- // bind event handlers
3007
+ })); // bind event handlers
3008
+
2650
3009
  chart.current.on('pointClick', function (e) {
2651
3010
  handleClick(e, VizChartEventType.POINT_CLICK);
2652
3011
  });
@@ -2661,32 +3020,40 @@ var Charting = function Charting(props) {
2661
3020
  });
2662
3021
  chart.current.on('chartRangeSelect', handleSelect);
2663
3022
  }
3023
+
2664
3024
  if (needsRedraw.current) {
2665
3025
  charting_bundle_1.default.setTheme(themeKey);
3026
+
2666
3027
  if (colorPalette.length > 0) {
2667
3028
  charting_bundle_1.default.setColorPalette(colorPalette);
2668
3029
  }
3030
+
2669
3031
  chart.current.prepareAndDraw(chartData, updatedOptions, function () {});
2670
3032
  }
3033
+
2671
3034
  if (chart.current) {
2672
3035
  if (Math.round(chart.current.height) !== Math.round(computedHeight) || Math.round(chart.current.width) !== Math.round(computedWidth)) {
2673
3036
  chart.current.resize(computedWidth, computedHeight);
2674
3037
  }
2675
3038
  }
3039
+
2676
3040
  needsInit.current = false;
2677
3041
  needsRedraw.current = false;
2678
3042
  } catch (e) {
2679
3043
  window.console.error('Caught error rendering chart:', e);
2680
3044
  }
2681
3045
  };
2682
- var debouncedDrawChart = lodash_1.debounce(drawChart, 5);
3046
+
3047
+ var debouncedDrawChart = (0, lodash_1.debounce)(drawChart, 5);
3048
+
2683
3049
  var onContainerMount = function onContainerMount(chartingContainer) {
2684
3050
  container.current = chartingContainer;
2685
3051
  debouncedDrawChart();
2686
3052
  };
3053
+
2687
3054
  var prevTheme = usePrevious(themeKey);
2688
3055
  var prevOnClick = usePrevious(onClick);
2689
- react_1.useEffect(function () {
3056
+ (0, react_1.useEffect)(function () {
2690
3057
  debouncedDrawChart();
2691
3058
  props.visualizationApiRef(api.current);
2692
3059
  return function () {
@@ -2694,17 +3061,17 @@ var Charting = function Charting(props) {
2694
3061
  destroyChart();
2695
3062
  };
2696
3063
  }, []);
2697
- react_1.useEffect(function () {
3064
+ (0, react_1.useEffect)(function () {
2698
3065
  // TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
2699
3066
  // seems like redraw doesn't suffice to update the background colors
2700
- if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) ||
2701
- // timezone is a simple object so this comparison should be fast
3067
+ if (!chart.current || !(0, exports.canUpdateInPlace)(prevOptions, options) || // timezone is a simple object so this comparison should be fast
2702
3068
  JSON.stringify(prevTimezone) !== JSON.stringify(timezone) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
2703
3069
  needsInit.current = true;
2704
3070
  }
2705
- needsRedraw.current = true;
2706
- // need to immediately call drawChart upon an option or chartData change
3071
+
3072
+ needsRedraw.current = true; // need to immediately call drawChart upon an option or chartData change
2707
3073
  // otherwise a noop would occur if the onContainerMount drawChart is re-invoked when dimensions change
3074
+
2708
3075
  drawChart();
2709
3076
  }, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), timezone === null || timezone === void 0 ? void 0 : timezone.ianaTimezone, timezone === null || timezone === void 0 ? void 0 : timezone.utcOffset, timezone === null || timezone === void 0 ? void 0 : timezone.serializedTimezone, themeKey, onClick]);
2710
3077
  return React.createElement(ChartingContainer, {
@@ -2717,6 +3084,7 @@ var Charting = function Charting(props) {
2717
3084
  onResize: debouncedDrawChart
2718
3085
  }));
2719
3086
  };
3087
+
2720
3088
  var defaultProps = {
2721
3089
  width: '100%',
2722
3090
  height: 250,
@@ -2734,72 +3102,81 @@ var defaultProps = {
2734
3102
  themeKey: null
2735
3103
  };
2736
3104
  Charting.propTypes = propTypes;
2737
- Charting.defaultProps = defaultProps;
2738
- // allow for early return in case of empty chartData while still following hook rules
3105
+ Charting.defaultProps = defaultProps; // allow for early return in case of empty chartData while still following hook rules
3106
+
2739
3107
  var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
2740
3108
  var Wrapper = function Wrapper(props) {
2741
3109
  var chartData = props.chartData;
3110
+
2742
3111
  if (!chartData) {
2743
3112
  return React.createElement(Message_1.default, {
2744
- message: i18n_1._('No DataSource'),
3113
+ message: (0, i18n_1._)('No DataSource'),
2745
3114
  level: "warning"
2746
3115
  });
2747
3116
  }
3117
+
2748
3118
  if (chartData && !Object.keys(chartData).length) {
2749
3119
  return React.createElement(Message_1.default, {
2750
- message: i18n_1._('No Result'),
3120
+ message: (0, i18n_1._)('No Result'),
2751
3121
  level: "info"
2752
3122
  });
2753
3123
  }
3124
+
2754
3125
  return React.createElement(Chart, Object.assign({}, props));
2755
3126
  };
3127
+
2756
3128
  Wrapper.displayName = 'ChartingWrapper';
2757
3129
  Wrapper.propTypes = propTypes;
2758
3130
  Wrapper.defaultProps = defaultProps;
2759
3131
  return Wrapper;
2760
- };
2761
- // export default Charting;
3132
+ }; // export default Charting;
3133
+
3134
+
2762
3135
  exports.default = withEmptyChartMessage(Charting);
2763
3136
 
2764
3137
  /***/ }),
2765
3138
 
2766
- /***/ 65:
3139
+ /***/ 66:
2767
3140
  /***/ (function(module, exports) {
2768
3141
 
2769
3142
  module.exports = require("react-event-listener");
2770
3143
 
2771
3144
  /***/ }),
2772
3145
 
2773
- /***/ 66:
3146
+ /***/ 67:
2774
3147
  /***/ (function(module, exports) {
2775
3148
 
2776
3149
  module.exports = require("@splunk/visualizations-shared/i18n");
2777
3150
 
2778
3151
  /***/ }),
2779
3152
 
2780
- /***/ 67:
3153
+ /***/ 68:
2781
3154
  /***/ (function(module, exports) {
2782
3155
 
2783
3156
  module.exports = require("@splunk/visualizations-shared/themeUtils");
2784
3157
 
2785
3158
  /***/ }),
2786
3159
 
2787
- /***/ 68:
3160
+ /***/ 69:
2788
3161
  /***/ (function(module, exports, __webpack_require__) {
2789
3162
 
2790
3163
  "use strict";
2791
3164
 
2792
3165
 
2793
3166
  var _classCallCheck = __webpack_require__(9);
3167
+
2794
3168
  var _createClass = __webpack_require__(18);
3169
+
2795
3170
  Object.defineProperty(exports, "__esModule", {
2796
3171
  value: true
2797
3172
  });
2798
3173
  exports.ChartingApiFunctional = void 0;
3174
+
2799
3175
  var ChartingApiFunctional = /*#__PURE__*/function () {
2800
3176
  // eslint-disable-next-line no-useless-constructor
2801
3177
  function ChartingApiFunctional(chartRef) {
2802
3178
  _classCallCheck(this, ChartingApiFunctional);
3179
+
2803
3180
  this.chartRef = chartRef;
2804
3181
  }
2805
3182
  /**
@@ -2807,15 +3184,18 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
2807
3184
  *
2808
3185
  * @memberof ChartingApiFunctional
2809
3186
  */
3187
+
3188
+
2810
3189
  _createClass(ChartingApiFunctional, [{
2811
3190
  key: "highlight",
2812
3191
  value: function highlight() {
2813
3192
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
2814
- xValue: '',
2815
- seriesName: ''
2816
- },
2817
- xValue = _ref.xValue,
2818
- seriesName = _ref.seriesName;
3193
+ xValue: '',
3194
+ seriesName: ''
3195
+ },
3196
+ xValue = _ref.xValue,
3197
+ seriesName = _ref.seriesName;
3198
+
2819
3199
  this.getChart().highlight(xValue, seriesName);
2820
3200
  }
2821
3201
  /**
@@ -2823,56 +3203,64 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
2823
3203
  *
2824
3204
  * @memberof ChartingApiFunctional
2825
3205
  */
3206
+
2826
3207
  }, {
2827
3208
  key: "unHighlight",
2828
3209
  value: function unHighlight() {
2829
3210
  this.getChart().unHighlight();
2830
- }
2831
- // returns chart object
3211
+ } // returns chart object
3212
+
2832
3213
  }, {
2833
3214
  key: "getChart",
2834
3215
  value: function getChart() {
2835
3216
  var _a;
3217
+
2836
3218
  return (_a = this.chartRef) === null || _a === void 0 ? void 0 : _a.current;
2837
3219
  }
2838
3220
  }]);
3221
+
2839
3222
  return ChartingApiFunctional;
2840
3223
  }();
3224
+
2841
3225
  exports.ChartingApiFunctional = ChartingApiFunctional;
2842
3226
 
2843
3227
  /***/ }),
2844
3228
 
2845
- /***/ 69:
3229
+ /***/ 7:
2846
3230
  /***/ (function(module, exports) {
2847
3231
 
2848
- module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
3232
+ module.exports = require("@babel/runtime/helpers/defineProperty");
2849
3233
 
2850
3234
  /***/ }),
2851
3235
 
2852
- /***/ 7:
3236
+ /***/ 70:
2853
3237
  /***/ (function(module, exports) {
2854
3238
 
2855
- module.exports = require("@babel/runtime/helpers/defineProperty");
3239
+ module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2856
3240
 
2857
3241
  /***/ }),
2858
3242
 
2859
- /***/ 73:
3243
+ /***/ 74:
2860
3244
  /***/ (function(module, exports, __webpack_require__) {
2861
3245
 
2862
3246
  "use strict";
2863
3247
 
2864
3248
 
2865
3249
  var _toConsumableArray = __webpack_require__(8);
3250
+
2866
3251
  Object.defineProperty(exports, "__esModule", {
2867
3252
  value: true
2868
3253
  });
2869
3254
  exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
3255
+
2870
3256
  var i18n_1 = __webpack_require__(2);
3257
+
2871
3258
  var configUtils_1 = __webpack_require__(20);
3259
+
2872
3260
  var AxesChartDataConfig = {
2873
- label: i18n_1._('Data configurations'),
3261
+ label: (0, i18n_1._)('Data configurations'),
2874
3262
  layout: [[{
2875
- label: i18n_1._('X'),
3263
+ label: (0, i18n_1._)('X'),
2876
3264
  option: 'x',
2877
3265
  editor: 'editor.columnSelector',
2878
3266
  editorProps: {
@@ -2881,7 +3269,7 @@ var AxesChartDataConfig = {
2881
3269
  expectedDataPrimitive: ['series']
2882
3270
  }
2883
3271
  }], [{
2884
- label: i18n_1._('Y'),
3272
+ label: (0, i18n_1._)('Y'),
2885
3273
  option: 'y',
2886
3274
  editor: 'editor.columnMultiSelector',
2887
3275
  editorProps: {
@@ -2891,7 +3279,7 @@ var AxesChartDataConfig = {
2891
3279
  expectedDataPrimitive: ['series', 'frame']
2892
3280
  }
2893
3281
  }], [{
2894
- label: i18n_1._('Result limit'),
3282
+ label: (0, i18n_1._)('Result limit'),
2895
3283
  option: 'resultLimit',
2896
3284
  editor: 'editor.number',
2897
3285
  editorProps: {
@@ -2902,8 +3290,8 @@ var AxesChartDataConfig = {
2902
3290
  exports.AxesChartDataConfigBar = {
2903
3291
  label: AxesChartDataConfig.label,
2904
3292
  // insert Y2 after Y
2905
- layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
2906
- label: i18n_1._('Y2'),
3293
+ layout: (0, configUtils_1.insertLayout)(AxesChartDataConfig.layout, 2, [{
3294
+ label: (0, i18n_1._)('Y2'),
2907
3295
  option: 'y2',
2908
3296
  editor: 'editor.columnMultiSelector',
2909
3297
  editorProps: {
@@ -2917,7 +3305,7 @@ exports.AxesChartDataConfigBar = {
2917
3305
  exports.AxesChartDataConfigScatter = {
2918
3306
  label: AxesChartDataConfig.label,
2919
3307
  layout: [[{
2920
- label: i18n_1._('X'),
3308
+ label: (0, i18n_1._)('X'),
2921
3309
  option: 'x',
2922
3310
  editor: 'editor.columnSelector',
2923
3311
  editorProps: {
@@ -2926,7 +3314,7 @@ exports.AxesChartDataConfigScatter = {
2926
3314
  expectedDataPrimitive: ['series']
2927
3315
  }
2928
3316
  }], [{
2929
- label: i18n_1._('Y'),
3317
+ label: (0, i18n_1._)('Y'),
2930
3318
  option: 'y',
2931
3319
  editor: 'editor.columnSelector',
2932
3320
  editorProps: {
@@ -2936,7 +3324,7 @@ exports.AxesChartDataConfigScatter = {
2936
3324
  expectedDataPrimitive: ['series']
2937
3325
  }
2938
3326
  }], [{
2939
- label: i18n_1._('Category'),
3327
+ label: (0, i18n_1._)('Category'),
2940
3328
  option: 'category',
2941
3329
  editor: 'editor.columnSelector',
2942
3330
  editorProps: {
@@ -2945,7 +3333,7 @@ exports.AxesChartDataConfigScatter = {
2945
3333
  expectedDataPrimitive: ['series']
2946
3334
  }
2947
3335
  }], [{
2948
- label: i18n_1._('Result limit'),
3336
+ label: (0, i18n_1._)('Result limit'),
2949
3337
  option: 'resultLimit',
2950
3338
  editor: 'editor.number',
2951
3339
  editorProps: {
@@ -2956,8 +3344,8 @@ exports.AxesChartDataConfigScatter = {
2956
3344
  exports.AxesChartDataConfigBubble = {
2957
3345
  label: exports.AxesChartDataConfigScatter.label,
2958
3346
  // layout: insert Size after Category
2959
- layout: configUtils_1.insertLayout(exports.AxesChartDataConfigScatter.layout, 3, [{
2960
- label: i18n_1._('Size'),
3347
+ layout: (0, configUtils_1.insertLayout)(exports.AxesChartDataConfigScatter.layout, 3, [{
3348
+ label: (0, i18n_1._)('Size'),
2961
3349
  option: 'size',
2962
3350
  editor: 'editor.columnSelector',
2963
3351
  editorProps: {
@@ -2970,7 +3358,7 @@ exports.AxesChartDataConfigBubble = {
2970
3358
  exports.AxesChartDataConfigAreaColumnLine = {
2971
3359
  label: exports.AxesChartDataConfigBar.label,
2972
3360
  layout: [].concat(_toConsumableArray(exports.AxesChartDataConfigBar.layout), [[{
2973
- label: i18n_1._('Annotation x'),
3361
+ label: (0, i18n_1._)('Annotation x'),
2974
3362
  option: 'annotationX',
2975
3363
  editor: 'editor.columnSelector',
2976
3364
  editorProps: {
@@ -2979,7 +3367,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
2979
3367
  expectedDataPrimitive: ['series']
2980
3368
  }
2981
3369
  }], [{
2982
- label: i18n_1._('Annotation labels'),
3370
+ label: (0, i18n_1._)('Annotation labels'),
2983
3371
  option: 'annotationLabel',
2984
3372
  editor: 'editor.columnSelector',
2985
3373
  editorProps: {
@@ -2993,7 +3381,7 @@ exports.default = AxesChartDataConfig;
2993
3381
 
2994
3382
  /***/ }),
2995
3383
 
2996
- /***/ 74:
3384
+ /***/ 75:
2997
3385
  /***/ (function(module, exports, __webpack_require__) {
2998
3386
 
2999
3387
  "use strict";
@@ -3002,13 +3390,18 @@ exports.default = AxesChartDataConfig;
3002
3390
  Object.defineProperty(exports, "__esModule", {
3003
3391
  value: true
3004
3392
  });
3393
+
3005
3394
  var i18n_1 = __webpack_require__(2);
3395
+
3006
3396
  var pick_1 = __webpack_require__(23);
3397
+
3007
3398
  var variables_1 = __webpack_require__(11);
3399
+
3008
3400
  var BackgroundColor_1 = __webpack_require__(53);
3401
+
3009
3402
  var themes = {
3010
3403
  defaultBackgroundColor: function defaultBackgroundColor(props) {
3011
- return pick_1.default({
3404
+ return (0, pick_1.default)({
3012
3405
  enterprise: {
3013
3406
  dark: variables_1.default.black(props),
3014
3407
  light: variables_1.default.backgroundColor(props)
@@ -3018,15 +3411,15 @@ var themes = {
3018
3411
  }
3019
3412
  };
3020
3413
  var AxesChartColorAndStyle = {
3021
- label: i18n_1._('Color and style'),
3022
- layout: [BackgroundColor_1.default({
3414
+ label: (0, i18n_1._)('Color and style'),
3415
+ layout: [(0, BackgroundColor_1.default)({
3023
3416
  themes: themes
3024
3417
  }), [{
3025
- label: i18n_1._('Series colors'),
3418
+ label: (0, i18n_1._)('Series colors'),
3026
3419
  option: 'seriesColors',
3027
3420
  editor: 'editor.seriesColors'
3028
3421
  }], [{
3029
- label: i18n_1._('Series colors by field name'),
3422
+ label: (0, i18n_1._)('Series colors by field name'),
3030
3423
  option: 'seriesColorsByField',
3031
3424
  editor: 'editor.seriesColorsByField'
3032
3425
  }]]
@@ -3035,7 +3428,7 @@ exports.default = AxesChartColorAndStyle;
3035
3428
 
3036
3429
  /***/ }),
3037
3430
 
3038
- /***/ 75:
3431
+ /***/ 76:
3039
3432
  /***/ (function(module, exports, __webpack_require__) {
3040
3433
 
3041
3434
  "use strict";
@@ -3044,47 +3437,49 @@ exports.default = AxesChartColorAndStyle;
3044
3437
  Object.defineProperty(exports, "__esModule", {
3045
3438
  value: true
3046
3439
  });
3440
+
3047
3441
  var i18n_1 = __webpack_require__(2);
3442
+
3048
3443
  var AxesChartLegend = {
3049
- label: i18n_1._('Legend'),
3444
+ label: (0, i18n_1._)('Legend'),
3050
3445
  layout: [[{
3051
- label: i18n_1._('Legend display'),
3446
+ label: (0, i18n_1._)('Legend display'),
3052
3447
  option: 'legendDisplay',
3053
3448
  editor: 'editor.select',
3054
3449
  editorProps: {
3055
3450
  values: [{
3056
- label: i18n_1._('Right'),
3451
+ label: (0, i18n_1._)('Right'),
3057
3452
  value: 'right'
3058
3453
  }, {
3059
- label: i18n_1._('Left'),
3454
+ label: (0, i18n_1._)('Left'),
3060
3455
  value: 'left'
3061
3456
  }, {
3062
- label: i18n_1._('Top'),
3457
+ label: (0, i18n_1._)('Top'),
3063
3458
  value: 'top'
3064
3459
  }, {
3065
- label: i18n_1._('Bottom'),
3460
+ label: (0, i18n_1._)('Bottom'),
3066
3461
  value: 'bottom'
3067
3462
  }, {
3068
- label: i18n_1._('Off'),
3463
+ label: (0, i18n_1._)('Off'),
3069
3464
  value: 'off'
3070
3465
  }]
3071
3466
  }
3072
3467
  }], [{
3073
- label: i18n_1._('Legend truncation'),
3468
+ label: (0, i18n_1._)('Legend truncation'),
3074
3469
  option: 'legendTruncation',
3075
3470
  editor: 'editor.radioBar',
3076
3471
  editorProps: {
3077
3472
  values: [{
3078
- label: i18n_1._('A...'),
3473
+ label: (0, i18n_1._)('A...'),
3079
3474
  value: 'ellipsisEnd'
3080
3475
  }, {
3081
- label: i18n_1._('A...Z'),
3476
+ label: (0, i18n_1._)('A...Z'),
3082
3477
  value: 'ellipsisMiddle'
3083
3478
  }, {
3084
- label: i18n_1._('...Z'),
3479
+ label: (0, i18n_1._)('...Z'),
3085
3480
  value: 'ellipsisStart'
3086
3481
  }, {
3087
- label: i18n_1._('Off'),
3482
+ label: (0, i18n_1._)('Off'),
3088
3483
  value: 'ellipsisOff'
3089
3484
  }]
3090
3485
  },
@@ -3098,27 +3493,31 @@ exports.default = AxesChartLegend;
3098
3493
 
3099
3494
  /***/ }),
3100
3495
 
3101
- /***/ 76:
3496
+ /***/ 77:
3102
3497
  /***/ (function(module, exports, __webpack_require__) {
3103
3498
 
3104
3499
  "use strict";
3105
3500
 
3106
3501
 
3107
3502
  var _toConsumableArray = __webpack_require__(8);
3503
+
3108
3504
  Object.defineProperty(exports, "__esModule", {
3109
3505
  value: true
3110
3506
  });
3111
3507
  exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
3508
+
3112
3509
  var i18n_1 = __webpack_require__(2);
3510
+
3113
3511
  var configUtils_1 = __webpack_require__(20);
3512
+
3114
3513
  exports.AxesChartXGridAndLabelsCommon = {
3115
- label: i18n_1._('X-axis grid and labels'),
3514
+ label: (0, i18n_1._)('X-axis grid and labels'),
3116
3515
  layout: [[{
3117
- label: i18n_1._('Axis title'),
3516
+ label: (0, i18n_1._)('Axis title'),
3118
3517
  option: 'xAxisTitleVisibility',
3119
3518
  editor: 'editor.toggle'
3120
3519
  }], [{
3121
- label: i18n_1._('Axis title text'),
3520
+ label: (0, i18n_1._)('Axis title text'),
3122
3521
  option: 'xAxisTitleText',
3123
3522
  editor: 'editor.text',
3124
3523
  showEditor: function showEditor(_ref) {
@@ -3126,18 +3525,18 @@ exports.AxesChartXGridAndLabelsCommon = {
3126
3525
  return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
3127
3526
  }
3128
3527
  }], [{
3129
- label: i18n_1._('Label visibility'),
3528
+ label: (0, i18n_1._)('Label visibility'),
3130
3529
  option: 'xAxisLabelVisibility',
3131
3530
  editor: 'editor.radioBar',
3132
3531
  editorProps: {
3133
3532
  values: [{
3134
- label: i18n_1._('Auto'),
3533
+ label: (0, i18n_1._)('Auto'),
3135
3534
  value: 'auto'
3136
3535
  }, {
3137
- label: i18n_1._('Show'),
3536
+ label: (0, i18n_1._)('Show'),
3138
3537
  value: 'show'
3139
3538
  }, {
3140
- label: i18n_1._('Hide'),
3539
+ label: (0, i18n_1._)('Hide'),
3141
3540
  value: 'hide'
3142
3541
  }]
3143
3542
  }
@@ -3146,24 +3545,24 @@ exports.AxesChartXGridAndLabelsCommon = {
3146
3545
  var AxesChartXGridAndLabels = {
3147
3546
  label: exports.AxesChartXGridAndLabelsCommon.label,
3148
3547
  layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
3149
- label: i18n_1._('Label rotation'),
3548
+ label: (0, i18n_1._)('Label rotation'),
3150
3549
  option: 'xAxisLabelRotation',
3151
3550
  editor: 'editor.select',
3152
3551
  editorProps: {
3153
3552
  values: [{
3154
- label: i18n_1._('-90'),
3553
+ label: (0, i18n_1._)('-90'),
3155
3554
  value: -90
3156
3555
  }, {
3157
- label: i18n_1._('-45'),
3556
+ label: (0, i18n_1._)('-45'),
3158
3557
  value: -45
3159
3558
  }, {
3160
- label: i18n_1._('0'),
3559
+ label: (0, i18n_1._)('0'),
3161
3560
  value: 0
3162
3561
  }, {
3163
- label: i18n_1._('45'),
3562
+ label: (0, i18n_1._)('45'),
3164
3563
  value: 45
3165
3564
  }, {
3166
- label: i18n_1._('90'),
3565
+ label: (0, i18n_1._)('90'),
3167
3566
  value: 90
3168
3567
  }]
3169
3568
  },
@@ -3172,7 +3571,7 @@ var AxesChartXGridAndLabels = {
3172
3571
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
3173
3572
  }
3174
3573
  }], [{
3175
- label: i18n_1._('Number of time label parts'),
3574
+ label: (0, i18n_1._)('Number of time label parts'),
3176
3575
  option: 'xAxisMaxLabelParts',
3177
3576
  editor: 'editor.number',
3178
3577
  editorProps: {
@@ -3184,31 +3583,31 @@ var AxesChartXGridAndLabels = {
3184
3583
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
3185
3584
  }
3186
3585
  }], [{
3187
- label: i18n_1._('Axis line visibility'),
3586
+ label: (0, i18n_1._)('Axis line visibility'),
3188
3587
  option: 'xAxisLineVisibility',
3189
3588
  editor: 'editor.checkbox'
3190
3589
  }], [{
3191
- label: i18n_1._('Major gridlines'),
3590
+ label: (0, i18n_1._)('Major gridlines'),
3192
3591
  option: 'showXMajorGridLines',
3193
3592
  editor: 'editor.checkbox'
3194
3593
  }], [{
3195
- label: i18n_1._('Major tick visibility'),
3594
+ label: (0, i18n_1._)('Major tick visibility'),
3196
3595
  option: 'xAxisMajorTickVisibility',
3197
3596
  editor: 'editor.radioBar',
3198
3597
  editorProps: {
3199
3598
  values: [{
3200
- label: i18n_1._('Auto'),
3599
+ label: (0, i18n_1._)('Auto'),
3201
3600
  value: 'auto'
3202
3601
  }, {
3203
- label: i18n_1._('Show'),
3602
+ label: (0, i18n_1._)('Show'),
3204
3603
  value: 'show'
3205
3604
  }, {
3206
- label: i18n_1._('Hide'),
3605
+ label: (0, i18n_1._)('Hide'),
3207
3606
  value: 'hide'
3208
3607
  }]
3209
3608
  }
3210
3609
  }], [{
3211
- label: i18n_1._('Major tick size (px)'),
3610
+ label: (0, i18n_1._)('Major tick size (px)'),
3212
3611
  option: 'xAxisMajorTickSize',
3213
3612
  editor: 'editor.slider',
3214
3613
  editorProps: {
@@ -3224,38 +3623,38 @@ var AxesChartXGridAndLabels = {
3224
3623
  };
3225
3624
  exports.AxesChartXGridAndLabelsBubbleScatter = {
3226
3625
  label: exports.AxesChartXGridAndLabelsCommon.label,
3227
- layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
3228
- label: i18n_1._('Axis scale'),
3626
+ layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
3627
+ label: (0, i18n_1._)('Axis scale'),
3229
3628
  option: 'xAxisScale',
3230
3629
  editor: 'editor.radioBar',
3231
3630
  editorProps: {
3232
3631
  values: [{
3233
- label: i18n_1._('Linear'),
3632
+ label: (0, i18n_1._)('Linear'),
3234
3633
  value: 'linear'
3235
3634
  }, {
3236
- label: i18n_1._('Log'),
3635
+ label: (0, i18n_1._)('Log'),
3237
3636
  value: 'log'
3238
3637
  }]
3239
3638
  }
3240
3639
  }])), [[{
3241
- label: i18n_1._('Label rotation'),
3640
+ label: (0, i18n_1._)('Label rotation'),
3242
3641
  option: 'xAxisLabelRotation',
3243
3642
  editor: 'editor.select',
3244
3643
  editorProps: {
3245
3644
  values: [{
3246
- label: i18n_1._('-90'),
3645
+ label: (0, i18n_1._)('-90'),
3247
3646
  value: -90
3248
3647
  }, {
3249
- label: i18n_1._('-45'),
3648
+ label: (0, i18n_1._)('-45'),
3250
3649
  value: -45
3251
3650
  }, {
3252
- label: i18n_1._('0'),
3651
+ label: (0, i18n_1._)('0'),
3253
3652
  value: 0
3254
3653
  }, {
3255
- label: i18n_1._('45'),
3654
+ label: (0, i18n_1._)('45'),
3256
3655
  value: 45
3257
3656
  }, {
3258
- label: i18n_1._('90'),
3657
+ label: (0, i18n_1._)('90'),
3259
3658
  value: 90
3260
3659
  }]
3261
3660
  },
@@ -3264,7 +3663,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
3264
3663
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
3265
3664
  }
3266
3665
  }], [{
3267
- label: i18n_1._('Round axis labels'),
3666
+ label: (0, i18n_1._)('Round axis labels'),
3268
3667
  option: 'showRoundedXAxisLabels',
3269
3668
  editor: 'editor.checkbox',
3270
3669
  showEditor: function showEditor(_ref6) {
@@ -3272,7 +3671,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
3272
3671
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
3273
3672
  }
3274
3673
  }], [{
3275
- label: i18n_1._('SI prefix abbreviation for labels'),
3674
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
3276
3675
  option: 'xAxisAbbreviation',
3277
3676
  editor: 'editor.checkbox',
3278
3677
  showEditor: function showEditor(_ref7) {
@@ -3280,27 +3679,26 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
3280
3679
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
3281
3680
  }
3282
3681
  }], [{
3283
- label: i18n_1._('Include zero'),
3682
+ label: (0, i18n_1._)('Include zero'),
3284
3683
  option: 'showXAxisWithZero',
3285
3684
  editor: 'editor.checkbox'
3286
3685
  }], [{
3287
- label: i18n_1._('Extend to whole grid'),
3686
+ label: (0, i18n_1._)('Extend to whole grid'),
3288
3687
  option: 'showXAxisExtendedRange',
3289
3688
  editor: 'editor.checkbox'
3290
3689
  }], [{
3291
- label: i18n_1._('Minimum axis value'),
3690
+ label: (0, i18n_1._)('Minimum axis value'),
3292
3691
  option: 'xAxisMin',
3293
3692
  editor: 'editor.number'
3294
3693
  }, {
3295
- label: i18n_1._('Maximum axis value'),
3694
+ label: (0, i18n_1._)('Maximum axis value'),
3296
3695
  option: 'xAxisMax',
3297
3696
  editor: 'editor.number'
3298
3697
  }], [{
3299
- label: i18n_1._('Axis line visibility'),
3698
+ label: (0, i18n_1._)('Axis line visibility'),
3300
3699
  option: 'xAxisLineVisibility',
3301
3700
  editor: 'editor.checkbox'
3302
- }],
3303
- // this option is disabled for bubble and scatter
3701
+ }], // this option is disabled for bubble and scatter
3304
3702
  // [
3305
3703
  // {
3306
3704
  // label: _('Major gridlines'),
@@ -3309,23 +3707,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
3309
3707
  // },
3310
3708
  // ],
3311
3709
  [{
3312
- label: i18n_1._('Major tick visibility'),
3710
+ label: (0, i18n_1._)('Major tick visibility'),
3313
3711
  option: 'xAxisMajorTickVisibility',
3314
3712
  editor: 'editor.radioBar',
3315
3713
  editorProps: {
3316
3714
  values: [{
3317
- label: i18n_1._('Auto'),
3715
+ label: (0, i18n_1._)('Auto'),
3318
3716
  value: 'auto'
3319
3717
  }, {
3320
- label: i18n_1._('Show'),
3718
+ label: (0, i18n_1._)('Show'),
3321
3719
  value: 'show'
3322
3720
  }, {
3323
- label: i18n_1._('Hide'),
3721
+ label: (0, i18n_1._)('Hide'),
3324
3722
  value: 'hide'
3325
3723
  }]
3326
3724
  }
3327
3725
  }], [{
3328
- label: i18n_1._('Major tick size (px)'),
3726
+ label: (0, i18n_1._)('Major tick size (px)'),
3329
3727
  option: 'xAxisMajorTickSize',
3330
3728
  editor: 'editor.slider',
3331
3729
  editorProps: {
@@ -3338,7 +3736,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
3338
3736
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
3339
3737
  }
3340
3738
  }], [{
3341
- label: i18n_1._('Major tick interval spacing'),
3739
+ label: (0, i18n_1._)('Major tick interval spacing'),
3342
3740
  option: 'xAxisMajorTickInterval',
3343
3741
  editor: 'editor.number',
3344
3742
  showEditor: function showEditor(_ref9) {
@@ -3346,27 +3744,27 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
3346
3744
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
3347
3745
  }
3348
3746
  }], [{
3349
- label: i18n_1._('Minor gridlines'),
3747
+ label: (0, i18n_1._)('Minor gridlines'),
3350
3748
  option: 'showXMinorGridLines',
3351
3749
  editor: 'editor.checkbox'
3352
3750
  }], [{
3353
- label: i18n_1._('Minor tick visibility'),
3751
+ label: (0, i18n_1._)('Minor tick visibility'),
3354
3752
  option: 'xAxisMinorTickVisibility',
3355
3753
  editor: 'editor.radioBar',
3356
3754
  editorProps: {
3357
3755
  values: [{
3358
- label: i18n_1._('Auto'),
3756
+ label: (0, i18n_1._)('Auto'),
3359
3757
  value: 'auto'
3360
3758
  }, {
3361
- label: i18n_1._('Show'),
3759
+ label: (0, i18n_1._)('Show'),
3362
3760
  value: 'show'
3363
3761
  }, {
3364
- label: i18n_1._('Hide'),
3762
+ label: (0, i18n_1._)('Hide'),
3365
3763
  value: 'hide'
3366
3764
  }]
3367
3765
  }
3368
3766
  }], [{
3369
- label: i18n_1._('Minor tick size (px)'),
3767
+ label: (0, i18n_1._)('Minor tick size (px)'),
3370
3768
  option: 'xAxisMinorTickSize',
3371
3769
  editor: 'editor.slider',
3372
3770
  editorProps: {
@@ -3384,7 +3782,7 @@ exports.default = AxesChartXGridAndLabels;
3384
3782
 
3385
3783
  /***/ }),
3386
3784
 
3387
- /***/ 77:
3785
+ /***/ 78:
3388
3786
  /***/ (function(module, exports, __webpack_require__) {
3389
3787
 
3390
3788
  "use strict";
@@ -3393,15 +3791,17 @@ exports.default = AxesChartXGridAndLabels;
3393
3791
  Object.defineProperty(exports, "__esModule", {
3394
3792
  value: true
3395
3793
  });
3794
+
3396
3795
  var i18n_1 = __webpack_require__(2);
3796
+
3397
3797
  var AxesChartYGridAndLabels = {
3398
- label: i18n_1._('Y-axis grid and labels'),
3798
+ label: (0, i18n_1._)('Y-axis grid and labels'),
3399
3799
  layout: [[{
3400
- label: i18n_1._('Axis title'),
3800
+ label: (0, i18n_1._)('Axis title'),
3401
3801
  option: 'yAxisTitleVisibility',
3402
3802
  editor: 'editor.toggle'
3403
3803
  }], [{
3404
- label: i18n_1._('Axis title text'),
3804
+ label: (0, i18n_1._)('Axis title text'),
3405
3805
  option: 'yAxisTitleText',
3406
3806
  editor: 'editor.text',
3407
3807
  showEditor: function showEditor(_ref) {
@@ -3409,36 +3809,36 @@ var AxesChartYGridAndLabels = {
3409
3809
  return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
3410
3810
  }
3411
3811
  }], [{
3412
- label: i18n_1._('Scale'),
3812
+ label: (0, i18n_1._)('Scale'),
3413
3813
  option: 'yAxisScale',
3414
3814
  editor: 'editor.radioBar',
3415
3815
  editorProps: {
3416
3816
  values: [{
3417
- label: i18n_1._('Linear'),
3817
+ label: (0, i18n_1._)('Linear'),
3418
3818
  value: 'linear'
3419
3819
  }, {
3420
- label: i18n_1._('Log'),
3820
+ label: (0, i18n_1._)('Log'),
3421
3821
  value: 'log'
3422
3822
  }]
3423
3823
  }
3424
3824
  }], [{
3425
- label: i18n_1._('Label visibility'),
3825
+ label: (0, i18n_1._)('Label visibility'),
3426
3826
  option: 'yAxisLabelVisibility',
3427
3827
  editor: 'editor.radioBar',
3428
3828
  editorProps: {
3429
3829
  values: [{
3430
- label: i18n_1._('Auto'),
3830
+ label: (0, i18n_1._)('Auto'),
3431
3831
  value: 'auto'
3432
3832
  }, {
3433
- label: i18n_1._('Show'),
3833
+ label: (0, i18n_1._)('Show'),
3434
3834
  value: 'show'
3435
3835
  }, {
3436
- label: i18n_1._('Hide'),
3836
+ label: (0, i18n_1._)('Hide'),
3437
3837
  value: 'hide'
3438
3838
  }]
3439
3839
  }
3440
3840
  }], [{
3441
- label: i18n_1._('SI prefix abbreviation for labels'),
3841
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
3442
3842
  option: 'yAxisAbbreviation',
3443
3843
  editor: 'editor.checkbox',
3444
3844
  showEditor: function showEditor(_ref2) {
@@ -3446,47 +3846,47 @@ var AxesChartYGridAndLabels = {
3446
3846
  return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
3447
3847
  }
3448
3848
  }], [{
3449
- label: i18n_1._('Include zero'),
3849
+ label: (0, i18n_1._)('Include zero'),
3450
3850
  option: 'showYAxisWithZero',
3451
3851
  editor: 'editor.checkbox'
3452
3852
  }], [{
3453
- label: i18n_1._('Extend to whole grid'),
3853
+ label: (0, i18n_1._)('Extend to whole grid'),
3454
3854
  option: 'showYAxisExtendedRange',
3455
3855
  editor: 'editor.checkbox'
3456
3856
  }], [{
3457
- label: i18n_1._('Minimum axis value'),
3857
+ label: (0, i18n_1._)('Minimum axis value'),
3458
3858
  option: 'yAxisMin',
3459
3859
  editor: 'editor.number'
3460
3860
  }, {
3461
- label: i18n_1._('Maximum axis value'),
3861
+ label: (0, i18n_1._)('Maximum axis value'),
3462
3862
  option: 'yAxisMax',
3463
3863
  editor: 'editor.number'
3464
3864
  }], [{
3465
- label: i18n_1._('Axis line visibility'),
3865
+ label: (0, i18n_1._)('Axis line visibility'),
3466
3866
  option: 'yAxisLineVisibility',
3467
3867
  editor: 'editor.checkbox'
3468
3868
  }], [{
3469
- label: i18n_1._('Major gridlines'),
3869
+ label: (0, i18n_1._)('Major gridlines'),
3470
3870
  option: 'showYMajorGridLines',
3471
3871
  editor: 'editor.checkbox'
3472
3872
  }], [{
3473
- label: i18n_1._('Major tick visibility'),
3873
+ label: (0, i18n_1._)('Major tick visibility'),
3474
3874
  option: 'yAxisMajorTickVisibility',
3475
3875
  editor: 'editor.radioBar',
3476
3876
  editorProps: {
3477
3877
  values: [{
3478
- label: i18n_1._('Auto'),
3878
+ label: (0, i18n_1._)('Auto'),
3479
3879
  value: 'auto'
3480
3880
  }, {
3481
- label: i18n_1._('Show'),
3881
+ label: (0, i18n_1._)('Show'),
3482
3882
  value: 'show'
3483
3883
  }, {
3484
- label: i18n_1._('Hide'),
3884
+ label: (0, i18n_1._)('Hide'),
3485
3885
  value: 'hide'
3486
3886
  }]
3487
3887
  }
3488
3888
  }], [{
3489
- label: i18n_1._('Major tick size (px)'),
3889
+ label: (0, i18n_1._)('Major tick size (px)'),
3490
3890
  option: 'yAxisMajorTickSize',
3491
3891
  editor: 'editor.slider',
3492
3892
  editorProps: {
@@ -3499,7 +3899,7 @@ var AxesChartYGridAndLabels = {
3499
3899
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
3500
3900
  }
3501
3901
  }], [{
3502
- label: i18n_1._('Major tick interval spacing'),
3902
+ label: (0, i18n_1._)('Major tick interval spacing'),
3503
3903
  option: 'yAxisMajorTickInterval',
3504
3904
  editor: 'editor.number',
3505
3905
  showEditor: function showEditor(_ref4) {
@@ -3507,27 +3907,27 @@ var AxesChartYGridAndLabels = {
3507
3907
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
3508
3908
  }
3509
3909
  }], [{
3510
- label: i18n_1._('Minor gridlines'),
3910
+ label: (0, i18n_1._)('Minor gridlines'),
3511
3911
  option: 'showYMinorGridLines',
3512
3912
  editor: 'editor.checkbox'
3513
3913
  }], [{
3514
- label: i18n_1._('Minor tick visibility'),
3914
+ label: (0, i18n_1._)('Minor tick visibility'),
3515
3915
  option: 'yAxisMinorTickVisibility',
3516
3916
  editor: 'editor.radioBar',
3517
3917
  editorProps: {
3518
3918
  values: [{
3519
- label: i18n_1._('Auto'),
3919
+ label: (0, i18n_1._)('Auto'),
3520
3920
  value: 'auto'
3521
3921
  }, {
3522
- label: i18n_1._('Show'),
3922
+ label: (0, i18n_1._)('Show'),
3523
3923
  value: 'show'
3524
3924
  }, {
3525
- label: i18n_1._('Hide'),
3925
+ label: (0, i18n_1._)('Hide'),
3526
3926
  value: 'hide'
3527
3927
  }]
3528
3928
  }
3529
3929
  }], [{
3530
- label: i18n_1._('Minor tick size (px)'),
3930
+ label: (0, i18n_1._)('Minor tick size (px)'),
3531
3931
  option: 'yAxisMinorTickSize',
3532
3932
  editor: 'editor.slider',
3533
3933
  editorProps: {