@splunk/visualizations 24.1.0 → 24.2.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 (83) hide show
  1. package/Area.js +137 -117
  2. package/Area.js.map +1 -1
  3. package/Bar.js +130 -110
  4. package/Bar.js.map +1 -1
  5. package/Bubble.js +123 -103
  6. package/Bubble.js.map +1 -1
  7. package/ChoroplethSvg.js +121 -101
  8. package/ChoroplethSvg.js.map +1 -1
  9. package/Column.js +130 -110
  10. package/Column.js.map +1 -1
  11. package/Ellipse.js +95 -75
  12. package/Ellipse.js.map +1 -1
  13. package/FillerGauge.js +114 -94
  14. package/FillerGauge.js.map +1 -1
  15. package/Image.js +85 -64
  16. package/Image.js.map +1 -1
  17. package/Line.js +130 -110
  18. package/Line.js.map +1 -1
  19. package/LinkGraph.js +137 -117
  20. package/LinkGraph.js.map +1 -1
  21. package/Markdown.js +86 -65
  22. package/Markdown.js.map +1 -1
  23. package/MarkerGauge.js +111 -91
  24. package/MarkerGauge.js.map +1 -1
  25. package/ParallelCoordinates.js +119 -99
  26. package/ParallelCoordinates.js.map +1 -1
  27. package/Pie.js +117 -97
  28. package/Pie.js.map +1 -1
  29. package/Punchcard.js +147 -127
  30. package/Punchcard.js.map +1 -1
  31. package/Rectangle.js +103 -82
  32. package/Rectangle.js.map +1 -1
  33. package/Sankey.js +138 -118
  34. package/Sankey.js.map +1 -1
  35. package/Scatter.js +218 -197
  36. package/Scatter.js.map +1 -1
  37. package/SingleValue.js +313 -292
  38. package/SingleValue.js.map +1 -1
  39. package/SingleValueBasic.js +20 -20
  40. package/SingleValueBasic.js.map +1 -1
  41. package/SingleValueIcon.js +144 -124
  42. package/SingleValueIcon.js.map +1 -1
  43. package/SingleValueRadial.js +278 -257
  44. package/SingleValueRadial.js.map +1 -1
  45. package/Table.config.js +9 -1
  46. package/Table.config.js.map +1 -1
  47. package/Table.js +291 -262
  48. package/Table.js.map +1 -1
  49. package/common/Charting.js +22 -21
  50. package/common/Charting.js.map +1 -1
  51. package/common/ChartingApi.js +2 -2
  52. package/common/ChartingApi.js.map +1 -1
  53. package/common/EventsDoc.js +15 -14
  54. package/common/EventsDoc.js.map +1 -1
  55. package/common/GaugeMajorTicks.js +2 -2
  56. package/common/GaugeMajorTicks.js.map +1 -1
  57. package/common/GaugeValueMarker.js +2 -2
  58. package/common/GaugeValueMarker.js.map +1 -1
  59. package/common/OptionsDoc.js +7 -6
  60. package/common/OptionsDoc.js.map +1 -1
  61. package/common/OverviewDoc.js +22 -22
  62. package/common/OverviewDoc.js.map +1 -1
  63. package/common/SplunkVisualization.js +4 -4
  64. package/common/SplunkVisualization.js.map +1 -1
  65. package/common/SplunkVisualizationApi.js +2 -2
  66. package/common/SplunkVisualizationApi.js.map +1 -1
  67. package/common/ThemesDoc.js +16 -16
  68. package/common/ThemesDoc.js.map +1 -1
  69. package/common/chartingUtils.js +4 -4
  70. package/common/chartingUtils.js.map +1 -1
  71. package/common/docUtils.js +4 -4
  72. package/common/docUtils.js.map +1 -1
  73. package/common/gaugeUtils.js +13 -13
  74. package/common/gaugeUtils.js.map +1 -1
  75. package/common/shapeUtils.js +8 -8
  76. package/common/shapeUtils.js.map +1 -1
  77. package/common/version.js +110 -0
  78. package/common/version.js.map +1 -0
  79. package/common/withDashboardViz.js +67 -47
  80. package/common/withDashboardViz.js.map +1 -1
  81. package/package.json +14 -13
  82. package/scripts/generateVersion.js +13 -0
  83. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueRadial_Trend_Indicator_Position_pushed_below_value_does_not_fit_inside_of_radial.png +0 -0
package/Table.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 = 243);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 244);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -113,14 +113,14 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
113
113
 
114
114
  /***/ }),
115
115
 
116
- /***/ 100:
116
+ /***/ 101:
117
117
  /***/ (function(module, exports) {
118
118
 
119
119
  module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 104:
123
+ /***/ 105:
124
124
  /***/ (function(module, exports, __webpack_require__) {
125
125
 
126
126
  "use strict";
@@ -159,12 +159,14 @@ var React = __webpack_require__(1);
159
159
 
160
160
  var styled_components_1 = __webpack_require__(4);
161
161
 
162
- var SizeAwareWrapper_1 = __webpack_require__(17);
162
+ var SizeAwareWrapper_1 = __webpack_require__(18);
163
163
 
164
- var style_1 = __webpack_require__(13);
164
+ var style_1 = __webpack_require__(14);
165
165
 
166
166
  var colorUtils_1 = __webpack_require__(11);
167
167
 
168
+ var version_1 = __webpack_require__(13);
169
+
168
170
  var Item = styled_components_1.default.div.attrs(function (_ref) {
169
171
  var width = _ref.width;
170
172
  return {
@@ -220,6 +222,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
220
222
 
221
223
  return React.createElement(FixSizeItem, {
222
224
  "data-test": "fix-size-item",
225
+ "data-splunk-visualization-version": version_1.version,
223
226
  width: width,
224
227
  height: height,
225
228
  backgroundColor: backgroundColor
@@ -241,7 +244,21 @@ exports.default = withFixedSizeContainer;
241
244
 
242
245
  /***/ }),
243
246
 
244
- /***/ 129:
247
+ /***/ 13:
248
+ /***/ (function(module, exports, __webpack_require__) {
249
+
250
+ "use strict";
251
+
252
+
253
+ Object.defineProperty(exports, "__esModule", {
254
+ value: true
255
+ });
256
+ exports.version = void 0;
257
+ exports.version = '24.2.0';
258
+
259
+ /***/ }),
260
+
261
+ /***/ 130:
245
262
  /***/ (function(module, exports, __webpack_require__) {
246
263
 
247
264
  "use strict";
@@ -265,13 +282,13 @@ Object.defineProperty(exports, "__esModule", {
265
282
  });
266
283
  exports.config = exports.PureTable = exports.themes = exports.computeVizProps = void 0;
267
284
 
268
- var config_1 = __webpack_require__(244);
285
+ var config_1 = __webpack_require__(245);
269
286
 
270
287
  exports.config = config_1.default;
271
288
 
272
- var withDashboardViz_1 = __webpack_require__(27);
289
+ var withDashboardViz_1 = __webpack_require__(28);
273
290
 
274
- var PureTable_1 = __webpack_require__(245);
291
+ var PureTable_1 = __webpack_require__(246);
275
292
 
276
293
  exports.PureTable = PureTable_1.default;
277
294
 
@@ -330,63 +347,63 @@ exports.default = Table;
330
347
 
331
348
  /***/ }),
332
349
 
333
- /***/ 13:
350
+ /***/ 14:
334
351
  /***/ (function(module, exports) {
335
352
 
336
353
  module.exports = require("@splunk/visualizations-shared/style");
337
354
 
338
355
  /***/ }),
339
356
 
340
- /***/ 14:
357
+ /***/ 15:
341
358
  /***/ (function(module, exports) {
342
359
 
343
360
  module.exports = require("@splunk/visualizations-shared/schemaUtils");
344
361
 
345
362
  /***/ }),
346
363
 
347
- /***/ 16:
364
+ /***/ 17:
348
365
  /***/ (function(module, exports) {
349
366
 
350
367
  module.exports = require("@babel/runtime/helpers/createClass");
351
368
 
352
369
  /***/ }),
353
370
 
354
- /***/ 17:
371
+ /***/ 18:
355
372
  /***/ (function(module, exports) {
356
373
 
357
374
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
358
375
 
359
376
  /***/ }),
360
377
 
361
- /***/ 19:
378
+ /***/ 2:
362
379
  /***/ (function(module, exports) {
363
380
 
364
- module.exports = require("@splunk/themes/variables");
381
+ module.exports = require("lodash");
365
382
 
366
383
  /***/ }),
367
384
 
368
- /***/ 2:
385
+ /***/ 20:
369
386
  /***/ (function(module, exports) {
370
387
 
371
- module.exports = require("lodash");
388
+ module.exports = require("@splunk/themes/variables");
372
389
 
373
390
  /***/ }),
374
391
 
375
- /***/ 20:
392
+ /***/ 21:
376
393
  /***/ (function(module, exports) {
377
394
 
378
395
  module.exports = require("@splunk/themes/pick");
379
396
 
380
397
  /***/ }),
381
398
 
382
- /***/ 22:
399
+ /***/ 23:
383
400
  /***/ (function(module, exports) {
384
401
 
385
402
  module.exports = require("@babel/runtime/helpers/typeof");
386
403
 
387
404
  /***/ }),
388
405
 
389
- /***/ 23:
406
+ /***/ 24:
390
407
  /***/ (function(module, exports, __webpack_require__) {
391
408
 
392
409
  "use strict";
@@ -403,7 +420,7 @@ var T = __webpack_require__(0);
403
420
 
404
421
  var lodash_1 = __webpack_require__(2);
405
422
 
406
- var DataSource_1 = __webpack_require__(33);
423
+ var DataSource_1 = __webpack_require__(34);
407
424
 
408
425
  exports.SortParamsPropTypes = T.shape({
409
426
  currentSortKey: T.string,
@@ -457,72 +474,7 @@ exports.getSortingParams = getSortingParams;
457
474
 
458
475
  /***/ }),
459
476
 
460
- /***/ 24:
461
- /***/ (function(module, exports, __webpack_require__) {
462
-
463
- "use strict";
464
-
465
-
466
- Object.defineProperty(exports, "__esModule", {
467
- value: true
468
- });
469
- exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
470
-
471
- var T = __webpack_require__(0);
472
-
473
- var lodash_1 = __webpack_require__(2);
474
-
475
- exports.PaginatorParamsPropTypes = T.shape({
476
- isPaging: T.bool,
477
- current: T.number,
478
- totalPages: T.number,
479
- onChange: T.func
480
- });
481
-
482
- var getPaginationParams = function getPaginationParams(_ref) {
483
- var requestParams = _ref.requestParams,
484
- meta = _ref.meta,
485
- onRequestParamsChange = _ref.onRequestParamsChange;
486
- var totalCount = meta && meta.totalCount || 0;
487
- var offset = requestParams && requestParams.offset || 0;
488
- var count = requestParams && requestParams.count;
489
- var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
490
- var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
491
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
492
-
493
- var onChangeHandler = function onChangeHandler(e, _ref2) {
494
- var page = _ref2.page,
495
- countArg = _ref2.count;
496
- var newParams = lodash_1.cloneDeep(requestParams);
497
-
498
- if (typeof countArg === 'number') {
499
- newParams.count = countArg;
500
- newParams.offset = 0;
501
- }
502
-
503
- var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
504
-
505
- if (typeof page === 'number' && page > 0) {
506
- newParams.count = pageCount;
507
- newParams.offset = (page - 1) * pageCount;
508
- }
509
-
510
- onRequestParamsChange(newParams);
511
- };
512
-
513
- return {
514
- isPaging: isPaging,
515
- current: current,
516
- totalPages: totalPages,
517
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
518
- };
519
- };
520
-
521
- exports.getPaginationParams = getPaginationParams;
522
-
523
- /***/ }),
524
-
525
- /***/ 243:
477
+ /***/ 244:
526
478
  /***/ (function(module, exports, __webpack_require__) {
527
479
 
528
480
  "use strict";
@@ -554,9 +506,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
554
506
  // for some reason, omitting the default export worked before TS v4
555
507
  // see: https://stackoverflow.com/a/34445175
556
508
 
557
- __exportStar(__webpack_require__(129), exports);
509
+ __exportStar(__webpack_require__(130), exports);
558
510
 
559
- var Table_1 = __webpack_require__(129);
511
+ var Table_1 = __webpack_require__(130);
560
512
 
561
513
  Object.defineProperty(exports, "default", {
562
514
  enumerable: true,
@@ -567,13 +519,13 @@ Object.defineProperty(exports, "default", {
567
519
 
568
520
  /***/ }),
569
521
 
570
- /***/ 244:
522
+ /***/ 245:
571
523
  /***/ (function(module, exports, __webpack_require__) {
572
524
 
573
525
  "use strict";
574
526
 
575
527
 
576
- var _toConsumableArray = __webpack_require__(39);
528
+ var _toConsumableArray = __webpack_require__(40);
577
529
 
578
530
  Object.defineProperty(exports, "__esModule", {
579
531
  value: true
@@ -583,23 +535,23 @@ var i18n_1 = __webpack_require__(3);
583
535
 
584
536
  var lodash_1 = __webpack_require__(2);
585
537
 
586
- var schemaUtils_1 = __webpack_require__(14);
538
+ var schemaUtils_1 = __webpack_require__(15);
587
539
 
588
- var colorConstants_1 = __webpack_require__(40);
540
+ var colorConstants_1 = __webpack_require__(41);
589
541
 
590
- var visualization_icons_1 = __webpack_require__(42);
542
+ var visualization_icons_1 = __webpack_require__(43);
591
543
 
592
- var variables_1 = __webpack_require__(19);
544
+ var variables_1 = __webpack_require__(20);
593
545
 
594
- var pick_1 = __webpack_require__(20);
546
+ var pick_1 = __webpack_require__(21);
595
547
 
596
548
  var configUtils_1 = __webpack_require__(6);
597
549
 
598
550
  var VizBehavior_1 = __webpack_require__(5);
599
551
 
600
- var consts_1 = __webpack_require__(104);
552
+ var consts_1 = __webpack_require__(105);
601
553
 
602
- var VizCategory_1 = __webpack_require__(26);
554
+ var VizCategory_1 = __webpack_require__(27);
603
555
 
604
556
  var dataContract = {
605
557
  requiredDataSources: [{
@@ -706,6 +658,14 @@ var unitLabelConfig = {
706
658
  option: 'unit',
707
659
  editor: 'editor.text'
708
660
  };
661
+ var timeFormattingConfig = {
662
+ label: i18n_1._('Date & Time Formatting'),
663
+ option: 'format',
664
+ editor: 'editor.text',
665
+ editorProps: {
666
+ tooltip: i18n_1._('For example: DD-MM-YYYY')
667
+ }
668
+ };
709
669
  var sequentialColorConfig = [{
710
670
  to: 20,
711
671
  value: '#D41F1F'
@@ -1171,7 +1131,7 @@ var editorConfig = [{
1171
1131
  // TODO(fkurniawan): fill in with proper editor components
1172
1132
  sparkline: [],
1173
1133
  string: [[Object.assign({}, unitPositionConfig), Object.assign({}, unitLabelConfig)]],
1174
- time: []
1134
+ time: [[Object.assign({}, timeFormattingConfig)]]
1175
1135
  },
1176
1136
  value: function value(_ref) {
1177
1137
  var context = _ref.context,
@@ -1223,13 +1183,13 @@ exports.default = configUtils_1.enhanceConfig(config);
1223
1183
 
1224
1184
  /***/ }),
1225
1185
 
1226
- /***/ 245:
1186
+ /***/ 246:
1227
1187
  /***/ (function(module, exports, __webpack_require__) {
1228
1188
 
1229
1189
  "use strict";
1230
1190
 
1231
1191
 
1232
- var _taggedTemplateLiteral = __webpack_require__(100);
1192
+ var _taggedTemplateLiteral = __webpack_require__(101);
1233
1193
 
1234
1194
  var _templateObject, _templateObject2;
1235
1195
 
@@ -1260,35 +1220,35 @@ var styled_components_1 = __webpack_require__(4);
1260
1220
 
1261
1221
  var i18n_1 = __webpack_require__(3);
1262
1222
 
1263
- var Table_1 = __webpack_require__(82);
1223
+ var Table_1 = __webpack_require__(83);
1264
1224
 
1265
- var Paginator_1 = __webpack_require__(246);
1225
+ var Paginator_1 = __webpack_require__(247);
1266
1226
 
1267
- var Message_1 = __webpack_require__(247);
1227
+ var Message_1 = __webpack_require__(248);
1268
1228
 
1269
1229
  var colorUtils_1 = __webpack_require__(11);
1270
1230
 
1271
- var style_1 = __webpack_require__(13);
1231
+ var style_1 = __webpack_require__(14);
1272
1232
 
1273
- var pick_1 = __webpack_require__(20);
1233
+ var pick_1 = __webpack_require__(21);
1274
1234
 
1275
- var variables_1 = __webpack_require__(19);
1235
+ var variables_1 = __webpack_require__(20);
1276
1236
 
1277
- var hooks_1 = __webpack_require__(248);
1237
+ var hooks_1 = __webpack_require__(249);
1278
1238
 
1279
- var consts_1 = __webpack_require__(104);
1239
+ var consts_1 = __webpack_require__(105);
1280
1240
 
1281
- var cells_1 = __webpack_require__(249);
1241
+ var cells_1 = __webpack_require__(250);
1282
1242
 
1283
- var getPagination_1 = __webpack_require__(24);
1243
+ var getPagination_1 = __webpack_require__(25);
1284
1244
 
1285
- var getSorting_1 = __webpack_require__(23);
1245
+ var getSorting_1 = __webpack_require__(24);
1286
1246
 
1287
1247
  var FixedSizeContainer_1 = __webpack_require__(12); // debounce was imported this way due to typing
1288
1248
  // eslint-disable-next-line import/order
1289
1249
 
1290
1250
 
1291
- var debounce = __webpack_require__(254);
1251
+ var debounce = __webpack_require__(255);
1292
1252
 
1293
1253
  var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
1294
1254
  displayName: "PureTable__NonVisibleTableHead",
@@ -1581,29 +1541,29 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
1581
1541
 
1582
1542
  /***/ }),
1583
1543
 
1584
- /***/ 246:
1544
+ /***/ 247:
1585
1545
  /***/ (function(module, exports) {
1586
1546
 
1587
1547
  module.exports = require("@splunk/react-ui/Paginator");
1588
1548
 
1589
1549
  /***/ }),
1590
1550
 
1591
- /***/ 247:
1551
+ /***/ 248:
1592
1552
  /***/ (function(module, exports) {
1593
1553
 
1594
1554
  module.exports = require("@splunk/react-ui/Message");
1595
1555
 
1596
1556
  /***/ }),
1597
1557
 
1598
- /***/ 248:
1558
+ /***/ 249:
1599
1559
  /***/ (function(module, exports, __webpack_require__) {
1600
1560
 
1601
1561
  "use strict";
1602
1562
 
1603
1563
 
1604
- var _toConsumableArray = __webpack_require__(39);
1564
+ var _toConsumableArray = __webpack_require__(40);
1605
1565
 
1606
- var _typeof = __webpack_require__(22);
1566
+ var _typeof = __webpack_require__(23);
1607
1567
 
1608
1568
  Object.defineProperty(exports, "__esModule", {
1609
1569
  value: true
@@ -1614,9 +1574,9 @@ var lodash_1 = __webpack_require__(2);
1614
1574
 
1615
1575
  var colorUtils_1 = __webpack_require__(11);
1616
1576
 
1617
- var style_1 = __webpack_require__(13);
1577
+ var style_1 = __webpack_require__(14);
1618
1578
 
1619
- var consts_1 = __webpack_require__(104);
1579
+ var consts_1 = __webpack_require__(105);
1620
1580
 
1621
1581
  var isArray = function isArray(v) {
1622
1582
  return Array.isArray(v);
@@ -2016,7 +1976,72 @@ exports.useTable = useTable;
2016
1976
 
2017
1977
  /***/ }),
2018
1978
 
2019
- /***/ 249:
1979
+ /***/ 25:
1980
+ /***/ (function(module, exports, __webpack_require__) {
1981
+
1982
+ "use strict";
1983
+
1984
+
1985
+ Object.defineProperty(exports, "__esModule", {
1986
+ value: true
1987
+ });
1988
+ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1989
+
1990
+ var T = __webpack_require__(0);
1991
+
1992
+ var lodash_1 = __webpack_require__(2);
1993
+
1994
+ exports.PaginatorParamsPropTypes = T.shape({
1995
+ isPaging: T.bool,
1996
+ current: T.number,
1997
+ totalPages: T.number,
1998
+ onChange: T.func
1999
+ });
2000
+
2001
+ var getPaginationParams = function getPaginationParams(_ref) {
2002
+ var requestParams = _ref.requestParams,
2003
+ meta = _ref.meta,
2004
+ onRequestParamsChange = _ref.onRequestParamsChange;
2005
+ var totalCount = meta && meta.totalCount || 0;
2006
+ var offset = requestParams && requestParams.offset || 0;
2007
+ var count = requestParams && requestParams.count;
2008
+ var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
2009
+ var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
2010
+ var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
2011
+
2012
+ var onChangeHandler = function onChangeHandler(e, _ref2) {
2013
+ var page = _ref2.page,
2014
+ countArg = _ref2.count;
2015
+ var newParams = lodash_1.cloneDeep(requestParams);
2016
+
2017
+ if (typeof countArg === 'number') {
2018
+ newParams.count = countArg;
2019
+ newParams.offset = 0;
2020
+ }
2021
+
2022
+ var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
2023
+
2024
+ if (typeof page === 'number' && page > 0) {
2025
+ newParams.count = pageCount;
2026
+ newParams.offset = (page - 1) * pageCount;
2027
+ }
2028
+
2029
+ onRequestParamsChange(newParams);
2030
+ };
2031
+
2032
+ return {
2033
+ isPaging: isPaging,
2034
+ current: current,
2035
+ totalPages: totalPages,
2036
+ onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
2037
+ };
2038
+ };
2039
+
2040
+ exports.getPaginationParams = getPaginationParams;
2041
+
2042
+ /***/ }),
2043
+
2044
+ /***/ 250:
2020
2045
  /***/ (function(module, exports, __webpack_require__) {
2021
2046
 
2022
2047
  "use strict";
@@ -2045,106 +2070,17 @@ Object.defineProperty(exports, "__esModule", {
2045
2070
  value: true
2046
2071
  });
2047
2072
 
2048
- __exportStar(__webpack_require__(250), exports);
2049
-
2050
2073
  __exportStar(__webpack_require__(251), exports);
2051
2074
 
2052
2075
  __exportStar(__webpack_require__(252), exports);
2053
2076
 
2054
2077
  __exportStar(__webpack_require__(253), exports);
2055
2078
 
2056
- /***/ }),
2057
-
2058
- /***/ 25:
2059
- /***/ (function(module, exports, __webpack_require__) {
2060
-
2061
- "use strict";
2062
-
2063
-
2064
- Object.defineProperty(exports, "__esModule", {
2065
- value: true
2066
- });
2067
- exports.shouldShowIconPlaceholder = void 0;
2068
-
2069
- var React = __webpack_require__(1);
2070
-
2071
- var T = __webpack_require__(0);
2072
-
2073
- var lodash_1 = __webpack_require__(2);
2074
-
2075
- var i18n_1 = __webpack_require__(3);
2076
-
2077
- var Message_1 = __webpack_require__(9);
2078
-
2079
- var FixedSizeContainer_1 = __webpack_require__(12);
2080
- /**
2081
- * @method shouldShowIconPlaceholder
2082
- * @param {object} dataSources
2083
- * @param {boolean} loading
2084
- * @returns {boolean}
2085
- */
2086
-
2087
-
2088
- var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
2089
- var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2090
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
2091
- var noData = data === undefined;
2092
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
2093
- var noFields = fields === undefined;
2094
- return loading || noData || noFields;
2095
- };
2096
-
2097
- exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
2098
- var propTypes = {
2099
- icon: T.func,
2100
- width: T.oneOfType([T.string, T.number]),
2101
- height: T.oneOfType([T.string, T.number]),
2102
- // eslint-disable-next-line react/no-unused-prop-types
2103
- backgroundColor: T.string
2104
- };
2105
- /**
2106
- * @method IconPlaceholder
2107
- * @param {IconPlaceholderProps} props
2108
- * @returns {React.ReactElement}
2109
- */
2110
-
2111
- var IconPlaceholder = function IconPlaceholder(props) {
2112
- var width = props.width,
2113
- height = props.height,
2114
- icon = props.icon;
2115
-
2116
- if (icon) {
2117
- return React.createElement(icon, {
2118
- style: {
2119
- left: '50%',
2120
- top: '50%',
2121
- color: 'grey',
2122
- position: 'absolute',
2123
- transform: 'translate(-50%, -50%)'
2124
- },
2125
- width: '50%',
2126
- height: '50%'
2127
- });
2128
- }
2129
-
2130
- return React.createElement(Message_1.default, {
2131
- width: width,
2132
- height: height,
2133
- level: "warning",
2134
- message: i18n_1._('No DataSource Connected')
2135
- });
2136
- };
2137
-
2138
- IconPlaceholder.propTypes = propTypes;
2139
- IconPlaceholder.defaultProps = {
2140
- width: '100%',
2141
- height: 250
2142
- };
2143
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
2079
+ __exportStar(__webpack_require__(254), exports);
2144
2080
 
2145
2081
  /***/ }),
2146
2082
 
2147
- /***/ 250:
2083
+ /***/ 251:
2148
2084
  /***/ (function(module, exports, __webpack_require__) {
2149
2085
 
2150
2086
  "use strict";
@@ -2167,7 +2103,7 @@ exports.SwitchTableCell = SwitchTableCell;
2167
2103
 
2168
2104
  /***/ }),
2169
2105
 
2170
- /***/ 251:
2106
+ /***/ 252:
2171
2107
  /***/ (function(module, exports, __webpack_require__) {
2172
2108
 
2173
2109
  "use strict";
@@ -2180,7 +2116,7 @@ exports.TextCell = void 0;
2180
2116
 
2181
2117
  var React = __webpack_require__(1);
2182
2118
 
2183
- var Table_1 = __webpack_require__(82);
2119
+ var Table_1 = __webpack_require__(83);
2184
2120
 
2185
2121
  var TextCell = function TextCell(_ref) {
2186
2122
  var cell = _ref.cell,
@@ -2200,7 +2136,7 @@ exports.TextCell.displayName = 'TextCell';
2200
2136
 
2201
2137
  /***/ }),
2202
2138
 
2203
- /***/ 252:
2139
+ /***/ 253:
2204
2140
  /***/ (function(module, exports, __webpack_require__) {
2205
2141
 
2206
2142
  "use strict";
@@ -2213,7 +2149,7 @@ exports.ArrayCell = void 0;
2213
2149
 
2214
2150
  var React = __webpack_require__(1);
2215
2151
 
2216
- var Table_1 = __webpack_require__(82);
2152
+ var Table_1 = __webpack_require__(83);
2217
2153
 
2218
2154
  var ArrayCell = function ArrayCell(_ref) {
2219
2155
  var cell = _ref.cell,
@@ -2239,13 +2175,13 @@ exports.ArrayCell.displayName = 'ArrayCell';
2239
2175
 
2240
2176
  /***/ }),
2241
2177
 
2242
- /***/ 253:
2178
+ /***/ 254:
2243
2179
  /***/ (function(module, exports, __webpack_require__) {
2244
2180
 
2245
2181
  "use strict";
2246
2182
 
2247
2183
 
2248
- var _slicedToArray = __webpack_require__(61);
2184
+ var _slicedToArray = __webpack_require__(62);
2249
2185
 
2250
2186
  Object.defineProperty(exports, "__esModule", {
2251
2187
  value: true
@@ -2254,9 +2190,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
2254
2190
 
2255
2191
  var React = __webpack_require__(1);
2256
2192
 
2257
- var Table_1 = __webpack_require__(82);
2193
+ var Table_1 = __webpack_require__(83);
2258
2194
 
2259
- var Line_1 = __webpack_require__(83);
2195
+ var Line_1 = __webpack_require__(84);
2260
2196
 
2261
2197
  var paddingLeftRight = 5;
2262
2198
  var paddingTopBottom = 3;
@@ -2331,7 +2267,7 @@ exports.SparklineCell.displayName = 'SparklineCell';
2331
2267
 
2332
2268
  /***/ }),
2333
2269
 
2334
- /***/ 254:
2270
+ /***/ 255:
2335
2271
  /***/ (function(module, exports) {
2336
2272
 
2337
2273
  module.exports = require("lodash/debounce");
@@ -2344,6 +2280,95 @@ module.exports = require("lodash/debounce");
2344
2280
  "use strict";
2345
2281
 
2346
2282
 
2283
+ Object.defineProperty(exports, "__esModule", {
2284
+ value: true
2285
+ });
2286
+ exports.shouldShowIconPlaceholder = void 0;
2287
+
2288
+ var React = __webpack_require__(1);
2289
+
2290
+ var T = __webpack_require__(0);
2291
+
2292
+ var lodash_1 = __webpack_require__(2);
2293
+
2294
+ var i18n_1 = __webpack_require__(3);
2295
+
2296
+ var Message_1 = __webpack_require__(9);
2297
+
2298
+ var FixedSizeContainer_1 = __webpack_require__(12);
2299
+ /**
2300
+ * @method shouldShowIconPlaceholder
2301
+ * @param {object} dataSources
2302
+ * @param {boolean} loading
2303
+ * @returns {boolean}
2304
+ */
2305
+
2306
+
2307
+ var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
2308
+ var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2309
+ var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
2310
+ var noData = data === undefined;
2311
+ var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
2312
+ var noFields = fields === undefined;
2313
+ return loading || noData || noFields;
2314
+ };
2315
+
2316
+ exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
2317
+ var propTypes = {
2318
+ icon: T.func,
2319
+ width: T.oneOfType([T.string, T.number]),
2320
+ height: T.oneOfType([T.string, T.number]),
2321
+ // eslint-disable-next-line react/no-unused-prop-types
2322
+ backgroundColor: T.string
2323
+ };
2324
+ /**
2325
+ * @method IconPlaceholder
2326
+ * @param {IconPlaceholderProps} props
2327
+ * @returns {React.ReactElement}
2328
+ */
2329
+
2330
+ var IconPlaceholder = function IconPlaceholder(props) {
2331
+ var width = props.width,
2332
+ height = props.height,
2333
+ icon = props.icon;
2334
+
2335
+ if (icon) {
2336
+ return React.createElement(icon, {
2337
+ style: {
2338
+ left: '50%',
2339
+ top: '50%',
2340
+ color: 'grey',
2341
+ position: 'absolute',
2342
+ transform: 'translate(-50%, -50%)'
2343
+ },
2344
+ width: '50%',
2345
+ height: '50%'
2346
+ });
2347
+ }
2348
+
2349
+ return React.createElement(Message_1.default, {
2350
+ width: width,
2351
+ height: height,
2352
+ level: "warning",
2353
+ message: i18n_1._('No DataSource Connected')
2354
+ });
2355
+ };
2356
+
2357
+ IconPlaceholder.propTypes = propTypes;
2358
+ IconPlaceholder.defaultProps = {
2359
+ width: '100%',
2360
+ height: 250
2361
+ };
2362
+ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
2363
+
2364
+ /***/ }),
2365
+
2366
+ /***/ 27:
2367
+ /***/ (function(module, exports, __webpack_require__) {
2368
+
2369
+ "use strict";
2370
+
2371
+
2347
2372
  Object.defineProperty(exports, "__esModule", {
2348
2373
  value: true
2349
2374
  });
@@ -2367,7 +2392,7 @@ var VizCategory;
2367
2392
 
2368
2393
  /***/ }),
2369
2394
 
2370
- /***/ 27:
2395
+ /***/ 28:
2371
2396
  /***/ (function(module, exports, __webpack_require__) {
2372
2397
 
2373
2398
  "use strict";
@@ -2381,31 +2406,31 @@ var React = __webpack_require__(1);
2381
2406
 
2382
2407
  var lodash_1 = __webpack_require__(2);
2383
2408
 
2384
- var getSettingsFromThemedProps_1 = __webpack_require__(28);
2409
+ var getSettingsFromThemedProps_1 = __webpack_require__(29);
2385
2410
 
2386
- var Options_1 = __webpack_require__(29);
2411
+ var Options_1 = __webpack_require__(30);
2387
2412
 
2388
- var SanitizeProps_1 = __webpack_require__(30);
2413
+ var SanitizeProps_1 = __webpack_require__(31);
2389
2414
 
2390
2415
  var styled_components_1 = __webpack_require__(4);
2391
2416
 
2392
- var SplunkVisualization_1 = __webpack_require__(31);
2417
+ var SplunkVisualization_1 = __webpack_require__(32);
2393
2418
 
2394
2419
  var VizBehavior_1 = __webpack_require__(5);
2395
2420
 
2396
- var getSorting_1 = __webpack_require__(23);
2421
+ var getSorting_1 = __webpack_require__(24);
2397
2422
 
2398
- var getPagination_1 = __webpack_require__(24);
2423
+ var getPagination_1 = __webpack_require__(25);
2399
2424
 
2400
- var useDeepMemo_1 = __webpack_require__(34);
2425
+ var useDeepMemo_1 = __webpack_require__(35);
2401
2426
 
2402
- var JSONSchemaUtils_1 = __webpack_require__(35);
2427
+ var JSONSchemaUtils_1 = __webpack_require__(36);
2403
2428
 
2404
- var MissingPropsMessage_1 = __webpack_require__(36);
2429
+ var MissingPropsMessage_1 = __webpack_require__(37);
2405
2430
 
2406
- var withEditModeCover_1 = __webpack_require__(37);
2431
+ var withEditModeCover_1 = __webpack_require__(38);
2407
2432
 
2408
- var withPlaceholder_1 = __webpack_require__(38);
2433
+ var withPlaceholder_1 = __webpack_require__(39);
2409
2434
 
2410
2435
  var hocUtils_1 = __webpack_require__(8);
2411
2436
  /**
@@ -2591,35 +2616,35 @@ exports.default = withDashboardViz;
2591
2616
 
2592
2617
  /***/ }),
2593
2618
 
2594
- /***/ 28:
2619
+ /***/ 29:
2595
2620
  /***/ (function(module, exports) {
2596
2621
 
2597
2622
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
2598
2623
 
2599
2624
  /***/ }),
2600
2625
 
2601
- /***/ 29:
2626
+ /***/ 3:
2602
2627
  /***/ (function(module, exports) {
2603
2628
 
2604
- module.exports = require("@splunk/visualization-encoding/Options");
2629
+ module.exports = require("@splunk/ui-utils/i18n");
2605
2630
 
2606
2631
  /***/ }),
2607
2632
 
2608
- /***/ 3:
2633
+ /***/ 30:
2609
2634
  /***/ (function(module, exports) {
2610
2635
 
2611
- module.exports = require("@splunk/ui-utils/i18n");
2636
+ module.exports = require("@splunk/visualization-encoding/Options");
2612
2637
 
2613
2638
  /***/ }),
2614
2639
 
2615
- /***/ 30:
2640
+ /***/ 31:
2616
2641
  /***/ (function(module, exports) {
2617
2642
 
2618
2643
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
2619
2644
 
2620
2645
  /***/ }),
2621
2646
 
2622
- /***/ 31:
2647
+ /***/ 32:
2623
2648
  /***/ (function(module, exports, __webpack_require__) {
2624
2649
 
2625
2650
  "use strict";
@@ -2637,7 +2662,7 @@ var T = __webpack_require__(0);
2637
2662
 
2638
2663
  var lodash_1 = __webpack_require__(2);
2639
2664
 
2640
- var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2665
+ var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2641
2666
 
2642
2667
 
2643
2668
  exports.INITIAL_WIDTH = 250;
@@ -2771,7 +2796,7 @@ exports.default = SplunkVisualization;
2771
2796
 
2772
2797
  /***/ }),
2773
2798
 
2774
- /***/ 32:
2799
+ /***/ 33:
2775
2800
  /***/ (function(module, exports, __webpack_require__) {
2776
2801
 
2777
2802
  "use strict";
@@ -2779,7 +2804,7 @@ exports.default = SplunkVisualization;
2779
2804
 
2780
2805
  var _classCallCheck = __webpack_require__(10);
2781
2806
 
2782
- var _createClass = __webpack_require__(16);
2807
+ var _createClass = __webpack_require__(17);
2783
2808
 
2784
2809
  Object.defineProperty(exports, "__esModule", {
2785
2810
  value: true
@@ -2809,7 +2834,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
2809
2834
 
2810
2835
  /***/ }),
2811
2836
 
2812
- /***/ 33:
2837
+ /***/ 34:
2813
2838
  /***/ (function(module, exports, __webpack_require__) {
2814
2839
 
2815
2840
  "use strict";
@@ -2823,7 +2848,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
2823
2848
 
2824
2849
  /***/ }),
2825
2850
 
2826
- /***/ 34:
2851
+ /***/ 35:
2827
2852
  /***/ (function(module, exports, __webpack_require__) {
2828
2853
 
2829
2854
  "use strict";
@@ -2869,7 +2894,7 @@ exports.useDeepMemo = useDeepMemo;
2869
2894
 
2870
2895
  /***/ }),
2871
2896
 
2872
- /***/ 35:
2897
+ /***/ 36:
2873
2898
  /***/ (function(module, exports, __webpack_require__) {
2874
2899
 
2875
2900
  "use strict";
@@ -2903,7 +2928,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
2903
2928
 
2904
2929
  /***/ }),
2905
2930
 
2906
- /***/ 36:
2931
+ /***/ 37:
2907
2932
  /***/ (function(module, exports, __webpack_require__) {
2908
2933
 
2909
2934
  "use strict";
@@ -2984,7 +3009,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2984
3009
 
2985
3010
  /***/ }),
2986
3011
 
2987
- /***/ 37:
3012
+ /***/ 38:
2988
3013
  /***/ (function(module, exports, __webpack_require__) {
2989
3014
 
2990
3015
  "use strict";
@@ -3000,11 +3025,15 @@ var styled_components_1 = __webpack_require__(4);
3000
3025
 
3001
3026
  var hocUtils_1 = __webpack_require__(8);
3002
3027
 
3028
+ var version_1 = __webpack_require__(13);
3029
+
3003
3030
  var Cover = styled_components_1.default.div.withConfig({
3004
3031
  displayName: "withEditModeCover__Cover",
3005
3032
  componentId: "sc-1gsbnxb-0"
3006
3033
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3007
- var Blocker = styled_components_1.default.div.withConfig({
3034
+ var Blocker = styled_components_1.default.div.attrs({
3035
+ 'data-splunk-visualization-version': version_1.version
3036
+ }).withConfig({
3008
3037
  displayName: "withEditModeCover__Blocker",
3009
3038
  componentId: "sc-1gsbnxb-1"
3010
3039
  })(["position:relative;width:100%;height:100%;"]);
@@ -3034,7 +3063,7 @@ exports.default = withEditModeCover;
3034
3063
 
3035
3064
  /***/ }),
3036
3065
 
3037
- /***/ 38:
3066
+ /***/ 39:
3038
3067
  /***/ (function(module, exports, __webpack_require__) {
3039
3068
 
3040
3069
  "use strict";
@@ -3048,7 +3077,7 @@ var React = __webpack_require__(1);
3048
3077
 
3049
3078
  var colorUtils_1 = __webpack_require__(11);
3050
3079
 
3051
- var IconPlaceholder_1 = __webpack_require__(25);
3080
+ var IconPlaceholder_1 = __webpack_require__(26);
3052
3081
 
3053
3082
  var VizBehavior_1 = __webpack_require__(5);
3054
3083
 
@@ -3094,28 +3123,28 @@ exports.default = withPlaceholder;
3094
3123
 
3095
3124
  /***/ }),
3096
3125
 
3097
- /***/ 39:
3126
+ /***/ 4:
3098
3127
  /***/ (function(module, exports) {
3099
3128
 
3100
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
3129
+ module.exports = require("styled-components");
3101
3130
 
3102
3131
  /***/ }),
3103
3132
 
3104
- /***/ 4:
3133
+ /***/ 40:
3105
3134
  /***/ (function(module, exports) {
3106
3135
 
3107
- module.exports = require("styled-components");
3136
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
3108
3137
 
3109
3138
  /***/ }),
3110
3139
 
3111
- /***/ 40:
3140
+ /***/ 41:
3112
3141
  /***/ (function(module, exports) {
3113
3142
 
3114
3143
  module.exports = require("@splunk/visualizations-shared/colorConstants");
3115
3144
 
3116
3145
  /***/ }),
3117
3146
 
3118
- /***/ 42:
3147
+ /***/ 43:
3119
3148
  /***/ (function(module, exports) {
3120
3149
 
3121
3150
  module.exports = require("@splunk/visualization-icons");
@@ -3188,7 +3217,7 @@ exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOp
3188
3217
 
3189
3218
  var lodash_1 = __webpack_require__(2);
3190
3219
 
3191
- var schemaUtils_1 = __webpack_require__(14);
3220
+ var schemaUtils_1 = __webpack_require__(15);
3192
3221
 
3193
3222
  var VizBehavior_1 = __webpack_require__(5);
3194
3223
 
@@ -3352,7 +3381,7 @@ exports.generatePrecisionValues = generatePrecisionValues;
3352
3381
 
3353
3382
  /***/ }),
3354
3383
 
3355
- /***/ 61:
3384
+ /***/ 62:
3356
3385
  /***/ (function(module, exports) {
3357
3386
 
3358
3387
  module.exports = require("@babel/runtime/helpers/slicedToArray");
@@ -3372,7 +3401,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
3372
3401
  "use strict";
3373
3402
 
3374
3403
 
3375
- var _typeof = __webpack_require__(22);
3404
+ var _typeof = __webpack_require__(23);
3376
3405
 
3377
3406
  Object.defineProperty(exports, "__esModule", {
3378
3407
  value: true
@@ -3439,14 +3468,14 @@ exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
3439
3468
 
3440
3469
  /***/ }),
3441
3470
 
3442
- /***/ 82:
3471
+ /***/ 83:
3443
3472
  /***/ (function(module, exports) {
3444
3473
 
3445
3474
  module.exports = require("@splunk/react-ui/Table");
3446
3475
 
3447
3476
  /***/ }),
3448
3477
 
3449
- /***/ 83:
3478
+ /***/ 84:
3450
3479
  /***/ (function(module, exports) {
3451
3480
 
3452
3481
  module.exports = require("@splunk/react-sparkline/Line");