@splunk/visualizations 24.4.0 → 24.5.2

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 (125) hide show
  1. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  2. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  3. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  4. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  5. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  6. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  7. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Placeholder_If_No_Svg_And_No_Data.png +0 -0
  25. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  26. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  27. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
  28. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  29. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  30. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_empty_columns_and_fields.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_label_data_specified.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_value_data_specified.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_missing_column.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
  49. package/Area.js +246 -218
  50. package/Area.js.map +1 -1
  51. package/Bar.js +238 -210
  52. package/Bar.js.map +1 -1
  53. package/Bubble.js +231 -203
  54. package/Bubble.js.map +1 -1
  55. package/ChoroplethSvg.js +230 -197
  56. package/ChoroplethSvg.js.map +1 -1
  57. package/Column.js +238 -210
  58. package/Column.js.map +1 -1
  59. package/Ellipse.js +203 -170
  60. package/Ellipse.js.map +1 -1
  61. package/FillerGauge.js +222 -189
  62. package/FillerGauge.js.map +1 -1
  63. package/Image.js +199 -164
  64. package/Image.js.map +1 -1
  65. package/Line.js +239 -211
  66. package/Line.js.map +1 -1
  67. package/LinkGraph.js +264 -223
  68. package/LinkGraph.js.map +1 -1
  69. package/Map.config.js +39 -25
  70. package/Map.config.js.map +1 -1
  71. package/Map.js +460 -334
  72. package/Map.js.map +1 -1
  73. package/Markdown.config.js +29 -1
  74. package/Markdown.config.js.map +1 -1
  75. package/Markdown.js +513 -267
  76. package/Markdown.js.map +1 -1
  77. package/MarkerGauge.js +941 -906
  78. package/MarkerGauge.js.map +1 -1
  79. package/ParallelCoordinates.js +230 -196
  80. package/ParallelCoordinates.js.map +1 -1
  81. package/Pie.js +309 -249
  82. package/Pie.js.map +1 -1
  83. package/Punchcard.js +263 -229
  84. package/Punchcard.js.map +1 -1
  85. package/Rectangle.js +217 -182
  86. package/Rectangle.js.map +1 -1
  87. package/Sankey.js +269 -230
  88. package/Sankey.js.map +1 -1
  89. package/Scatter.js +314 -286
  90. package/Scatter.js.map +1 -1
  91. package/SingleValue.js +398 -363
  92. package/SingleValue.js.map +1 -1
  93. package/SingleValueBasic.js +25 -25
  94. package/SingleValueBasic.js.map +1 -1
  95. package/SingleValueIcon.js +2821 -2653
  96. package/SingleValueIcon.js.map +1 -1
  97. package/SingleValueRadial.js +359 -324
  98. package/SingleValueRadial.js.map +1 -1
  99. package/Table.config.js +2 -1
  100. package/Table.config.js.map +1 -1
  101. package/Table.js +629 -347
  102. package/Table.js.map +1 -1
  103. package/common/Charting.js +21 -21
  104. package/common/Charting.js.map +1 -1
  105. package/common/ChartingApi.js +2 -2
  106. package/common/ChartingApi.js.map +1 -1
  107. package/common/EventsDoc.js +18 -18
  108. package/common/EventsDoc.js.map +1 -1
  109. package/common/GaugeMajorTicks.js +10 -10
  110. package/common/GaugeMajorTicks.js.map +1 -1
  111. package/common/GaugeValueMarker.js +10 -10
  112. package/common/GaugeValueMarker.js.map +1 -1
  113. package/common/OptionsDoc.js +217 -174
  114. package/common/OptionsDoc.js.map +1 -1
  115. package/common/SplunkVisualization.js +4 -4
  116. package/common/SplunkVisualization.js.map +1 -1
  117. package/common/ThemesDoc.js +26 -26
  118. package/common/ThemesDoc.js.map +1 -1
  119. package/common/chartingUtils.js +3 -3
  120. package/common/chartingUtils.js.map +1 -1
  121. package/common/gaugeUtils.js +2 -2
  122. package/common/shapeUtils.js +2 -2
  123. package/common/withDashboardViz.js +80 -48
  124. package/common/withDashboardViz.js.map +1 -1
  125. package/package.json +13 -11
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 = 260);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 263);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -113,14 +113,14 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
113
113
 
114
114
  /***/ }),
115
115
 
116
- /***/ 104:
116
+ /***/ 11:
117
117
  /***/ (function(module, exports) {
118
118
 
119
- module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
119
+ module.exports = require("@splunk/themes/variables");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 108:
123
+ /***/ 110:
124
124
  /***/ (function(module, exports, __webpack_require__) {
125
125
 
126
126
  "use strict";
@@ -138,13 +138,6 @@ exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
138
138
 
139
139
  /***/ }),
140
140
 
141
- /***/ 11:
142
- /***/ (function(module, exports) {
143
-
144
- module.exports = require("@splunk/themes/variables");
145
-
146
- /***/ }),
147
-
148
141
  /***/ 12:
149
142
  /***/ (function(module, exports) {
150
143
 
@@ -227,7 +220,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
227
220
 
228
221
  return React.createElement(FixSizeItem, {
229
222
  "data-test": "fix-size-item",
230
- "data-splunk-visualization-version": "24.4.0 - 98920928c",
223
+ "data-splunk-visualization-version": "24.5.2 - c5ebe25a8",
231
224
  width: width,
232
225
  height: height,
233
226
  backgroundColor: backgroundColor
@@ -249,13 +242,13 @@ exports.default = withFixedSizeContainer;
249
242
 
250
243
  /***/ }),
251
244
 
252
- /***/ 135:
245
+ /***/ 137:
253
246
  /***/ (function(module, exports, __webpack_require__) {
254
247
 
255
248
  "use strict";
256
249
 
257
250
 
258
- var _slicedToArray = __webpack_require__(49);
251
+ var _slicedToArray = __webpack_require__(51);
259
252
 
260
253
  var __rest = this && this.__rest || function (s, e) {
261
254
  var t = {};
@@ -275,26 +268,30 @@ Object.defineProperty(exports, "__esModule", {
275
268
  });
276
269
  exports.config = exports.PureTable = exports.themes = exports.computeVizProps = void 0;
277
270
 
271
+ var lodash_1 = __webpack_require__(2);
272
+
278
273
  var colorUtils_1 = __webpack_require__(12);
279
274
 
280
- var config_1 = __webpack_require__(261);
275
+ var config_1 = __webpack_require__(264);
281
276
 
282
277
  exports.config = config_1.default;
283
278
 
284
- var withDashboardViz_1 = __webpack_require__(28);
279
+ var withDashboardViz_1 = __webpack_require__(29);
285
280
 
286
- var PureTable_1 = __webpack_require__(262);
281
+ var PureTable_1 = __webpack_require__(265);
287
282
 
288
283
  exports.PureTable = PureTable_1.default;
289
284
 
290
285
  var computeVizProps = function computeVizProps(_a) {
291
286
  var props = __rest(_a, []);
292
287
 
293
- if (props.columnFormat) {
294
- var columns = props.columnFormat;
295
- var themeRowBackgroundColorOdd = props.themeFunc('rowBackgroundColorOdd');
296
- var themeRowBackgroundColorEven = props.themeFunc('rowBackgroundColorEven');
297
- var themeTextColor = props.themeFunc('textColor'); // `columns` looks like { `column title`: { rowBackgroundColors, rowColors... }}
288
+ var vizProps = lodash_1.cloneDeep(props);
289
+
290
+ if (vizProps.columnFormat) {
291
+ var columns = vizProps.columnFormat;
292
+ var themeRowBackgroundColorOdd = vizProps.themeFunc('rowBackgroundColorOdd');
293
+ var themeRowBackgroundColorEven = vizProps.themeFunc('rowBackgroundColorEven');
294
+ var themeTextColor = vizProps.themeFunc('textColor'); // `columns` looks like { `column title`: { rowBackgroundColors, rowColors... }}
298
295
 
299
296
  Object.entries(columns).forEach(function (_ref) {
300
297
  var _ref2 = _slicedToArray(_ref, 2),
@@ -317,10 +314,9 @@ var computeVizProps = function computeVizProps(_a) {
317
314
  rowColors = colorUtils_1.sanitizeArrayOfColors(columnProperties.rowColors).map(function (color) {
318
315
  return color || themeTextColor;
319
316
  });
320
- } // eslint-disable-next-line no-param-reassign
321
-
317
+ }
322
318
 
323
- props.columnFormat[columnKey] = Object.assign(Object.assign(Object.assign({}, props.columnFormat[columnKey]), columnProperties.rowBackgroundColors && {
319
+ vizProps.columnFormat[columnKey] = Object.assign(Object.assign(Object.assign({}, vizProps.columnFormat[columnKey]), columnProperties.rowBackgroundColors && {
324
320
  rowBackgroundColors: rowBackgroundColors
325
321
  }), columnProperties.rowColors && {
326
322
  rowColors: rowColors
@@ -328,13 +324,30 @@ var computeVizProps = function computeVizProps(_a) {
328
324
  });
329
325
  }
330
326
 
331
- return props;
327
+ if (vizProps.onOptionsChange) {
328
+ var handleColumnFormatChange = function handleColumnFormatChange(updatedColumnFormat) {
329
+ var cloneOfExistingColumnFormat = lodash_1.get(vizProps, 'options.columnFormat', {});
330
+ var keys = Object.keys(updatedColumnFormat);
331
+ var values = Object.values(updatedColumnFormat);
332
+ keys.forEach(function (key, index) {
333
+ lodash_1.set(cloneOfExistingColumnFormat, "".concat(key, ".width"), lodash_1.get(values[index], 'width'));
334
+ });
335
+ vizProps.onOptionsChange({
336
+ columnFormat: cloneOfExistingColumnFormat
337
+ });
338
+ };
339
+
340
+ vizProps.onColumnFormatChange = handleColumnFormatChange;
341
+ }
342
+
343
+ return vizProps;
332
344
  };
333
345
 
334
346
  exports.computeVizProps = computeVizProps;
335
347
  var Table = withDashboardViz_1.default({
336
348
  ReactViz: PureTable_1.default,
337
349
  vizConfig: config_1.default,
350
+ disableEditModeCover: true,
338
351
  computeVizProps: exports.computeVizProps
339
352
  });
340
353
  var themes = config_1.default.themes;
@@ -371,6 +384,13 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
371
384
 
372
385
  /***/ }),
373
386
 
387
+ /***/ 19:
388
+ /***/ (function(module, exports) {
389
+
390
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
391
+
392
+ /***/ }),
393
+
374
394
  /***/ 2:
375
395
  /***/ (function(module, exports) {
376
396
 
@@ -378,21 +398,21 @@ module.exports = require("lodash");
378
398
 
379
399
  /***/ }),
380
400
 
381
- /***/ 20:
401
+ /***/ 21:
382
402
  /***/ (function(module, exports) {
383
403
 
384
404
  module.exports = require("@babel/runtime/helpers/typeof");
385
405
 
386
406
  /***/ }),
387
407
 
388
- /***/ 21:
408
+ /***/ 22:
389
409
  /***/ (function(module, exports) {
390
410
 
391
411
  module.exports = require("@splunk/themes/pick");
392
412
 
393
413
  /***/ }),
394
414
 
395
- /***/ 23:
415
+ /***/ 24:
396
416
  /***/ (function(module, exports, __webpack_require__) {
397
417
 
398
418
  "use strict";
@@ -426,148 +446,12 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
426
446
 
427
447
  /***/ }),
428
448
 
429
- /***/ 24:
430
- /***/ (function(module, exports, __webpack_require__) {
431
-
432
- "use strict";
433
-
434
-
435
- var _defineProperty = __webpack_require__(8);
436
-
437
- Object.defineProperty(exports, "__esModule", {
438
- value: true
439
- });
440
- exports.getSortingParams = exports.SortParamsPropTypes = void 0;
441
-
442
- var T = __webpack_require__(0);
443
-
444
- var lodash_1 = __webpack_require__(2);
445
-
446
- var DataSource_1 = __webpack_require__(34);
447
-
448
- exports.SortParamsPropTypes = T.shape({
449
- currentSortKey: T.string,
450
- currentSortDir: T.oneOf(DataSource_1.validSortDirs),
451
- onSort: T.func
452
- });
453
-
454
- var getSortingParams = function getSortingParams(_ref) {
455
- var requestParams = _ref.requestParams,
456
- onRequestParamsChange = _ref.onRequestParamsChange;
457
- var currentSortKey;
458
- var currentSortDir;
459
- var nextSortDirMap = {
460
- asc: 'desc',
461
- desc: 'asc',
462
- none: 'asc'
463
- };
464
- var onSort;
465
-
466
- if (lodash_1.isFunction(onRequestParamsChange)) {
467
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
468
- currentSortKey = Object.keys(requestParams.sort).shift();
469
- currentSortDir = requestParams.sort[currentSortKey];
470
- } // undid memoization since there is a dependency on requestParams, which is a deeply nested object
471
-
472
-
473
- onSort = function onSort(e, _ref2) {
474
- var sortKey = _ref2.sortKey,
475
- sortDir = _ref2.sortDir;
476
-
477
- if (typeof sortKey === 'string') {
478
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
479
- onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
480
- offset: 0,
481
- sort: _defineProperty({}, sortKey, nextSortDir)
482
- }));
483
- } else {
484
- onRequestParamsChange(requestParams);
485
- }
486
- };
487
- }
488
-
489
- return {
490
- currentSortKey: currentSortKey,
491
- currentSortDir: currentSortDir,
492
- onSort: onSort
493
- };
494
- };
495
-
496
- exports.getSortingParams = getSortingParams;
497
-
498
- /***/ }),
499
-
500
449
  /***/ 25:
501
450
  /***/ (function(module, exports, __webpack_require__) {
502
451
 
503
452
  "use strict";
504
453
 
505
454
 
506
- Object.defineProperty(exports, "__esModule", {
507
- value: true
508
- });
509
- exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
510
-
511
- var T = __webpack_require__(0);
512
-
513
- var lodash_1 = __webpack_require__(2);
514
-
515
- exports.PaginatorParamsPropTypes = T.shape({
516
- isPaging: T.bool,
517
- current: T.number,
518
- totalPages: T.number,
519
- onChange: T.func
520
- });
521
-
522
- var getPaginationParams = function getPaginationParams(_ref) {
523
- var requestParams = _ref.requestParams,
524
- meta = _ref.meta,
525
- onRequestParamsChange = _ref.onRequestParamsChange;
526
- var totalCount = meta && meta.totalCount || 0;
527
- var offset = requestParams && requestParams.offset || 0;
528
- var count = requestParams && requestParams.count;
529
- var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
530
- var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
531
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
532
-
533
- var onChangeHandler = function onChangeHandler(e, _ref2) {
534
- var page = _ref2.page,
535
- countArg = _ref2.count;
536
- var newParams = lodash_1.cloneDeep(requestParams);
537
-
538
- if (typeof countArg === 'number') {
539
- newParams.count = countArg;
540
- newParams.offset = 0;
541
- }
542
-
543
- var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
544
-
545
- if (typeof page === 'number' && page > 0) {
546
- newParams.count = pageCount;
547
- newParams.offset = (page - 1) * pageCount;
548
- }
549
-
550
- onRequestParamsChange(newParams);
551
- };
552
-
553
- return {
554
- isPaging: isPaging,
555
- current: current,
556
- totalPages: totalPages,
557
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
558
- };
559
- };
560
-
561
- exports.getPaginationParams = getPaginationParams;
562
-
563
- /***/ }),
564
-
565
- /***/ 26:
566
- /***/ (function(module, exports, __webpack_require__) {
567
-
568
- "use strict";
569
-
570
-
571
455
  Object.defineProperty(exports, "__esModule", {
572
456
  value: true
573
457
  });
@@ -654,7 +538,78 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
654
538
 
655
539
  /***/ }),
656
540
 
657
- /***/ 260:
541
+ /***/ 26:
542
+ /***/ (function(module, exports, __webpack_require__) {
543
+
544
+ "use strict";
545
+
546
+
547
+ var _defineProperty = __webpack_require__(7);
548
+
549
+ Object.defineProperty(exports, "__esModule", {
550
+ value: true
551
+ });
552
+ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
553
+
554
+ var T = __webpack_require__(0);
555
+
556
+ var lodash_1 = __webpack_require__(2);
557
+
558
+ var DataSource_1 = __webpack_require__(36);
559
+
560
+ exports.SortParamsPropTypes = T.shape({
561
+ currentSortKey: T.string,
562
+ currentSortDir: T.oneOf(DataSource_1.validSortDirs),
563
+ onSort: T.func
564
+ });
565
+
566
+ var getSortingParams = function getSortingParams(_ref) {
567
+ var requestParams = _ref.requestParams,
568
+ onRequestParamsChange = _ref.onRequestParamsChange;
569
+ var currentSortKey;
570
+ var currentSortDir;
571
+ var nextSortDirMap = {
572
+ asc: 'desc',
573
+ desc: 'asc',
574
+ none: 'asc'
575
+ };
576
+ var onSort;
577
+
578
+ if (lodash_1.isFunction(onRequestParamsChange)) {
579
+ if (requestParams && lodash_1.has(requestParams, 'sort')) {
580
+ currentSortKey = Object.keys(requestParams.sort).shift();
581
+ currentSortDir = requestParams.sort[currentSortKey];
582
+ } // undid memoization since there is a dependency on requestParams, which is a deeply nested object
583
+
584
+
585
+ onSort = function onSort(e, _ref2) {
586
+ var sortKey = _ref2.sortKey,
587
+ sortDir = _ref2.sortDir;
588
+
589
+ if (typeof sortKey === 'string') {
590
+ var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
591
+ onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
592
+ offset: 0,
593
+ sort: _defineProperty({}, sortKey, nextSortDir)
594
+ }));
595
+ } else {
596
+ onRequestParamsChange(requestParams);
597
+ }
598
+ };
599
+ }
600
+
601
+ return {
602
+ currentSortKey: currentSortKey,
603
+ currentSortDir: currentSortDir,
604
+ onSort: onSort
605
+ };
606
+ };
607
+
608
+ exports.getSortingParams = getSortingParams;
609
+
610
+ /***/ }),
611
+
612
+ /***/ 263:
658
613
  /***/ (function(module, exports, __webpack_require__) {
659
614
 
660
615
  "use strict";
@@ -686,9 +641,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
686
641
  // for some reason, omitting the default export worked before TS v4
687
642
  // see: https://stackoverflow.com/a/34445175
688
643
 
689
- __exportStar(__webpack_require__(135), exports);
644
+ __exportStar(__webpack_require__(137), exports);
690
645
 
691
- var Table_1 = __webpack_require__(135);
646
+ var Table_1 = __webpack_require__(137);
692
647
 
693
648
  Object.defineProperty(exports, "default", {
694
649
  enumerable: true,
@@ -699,13 +654,13 @@ Object.defineProperty(exports, "default", {
699
654
 
700
655
  /***/ }),
701
656
 
702
- /***/ 261:
657
+ /***/ 264:
703
658
  /***/ (function(module, exports, __webpack_require__) {
704
659
 
705
660
  "use strict";
706
661
 
707
662
 
708
- var _toConsumableArray = __webpack_require__(39);
663
+ var _toConsumableArray = __webpack_require__(41);
709
664
 
710
665
  Object.defineProperty(exports, "__esModule", {
711
666
  value: true
@@ -717,23 +672,23 @@ var lodash_1 = __webpack_require__(2);
717
672
 
718
673
  var schemaUtils_1 = __webpack_require__(15);
719
674
 
720
- var colorConstants_1 = __webpack_require__(40);
675
+ var colorConstants_1 = __webpack_require__(42);
721
676
 
722
- var visualization_icons_1 = __webpack_require__(43);
677
+ var visualization_icons_1 = __webpack_require__(45);
723
678
 
724
- var placeholders_1 = __webpack_require__(42);
679
+ var placeholders_1 = __webpack_require__(44);
725
680
 
726
681
  var variables_1 = __webpack_require__(11);
727
682
 
728
- var pick_1 = __webpack_require__(21);
683
+ var pick_1 = __webpack_require__(22);
729
684
 
730
685
  var configUtils_1 = __webpack_require__(6);
731
686
 
732
687
  var VizBehavior_1 = __webpack_require__(5);
733
688
 
734
- var consts_1 = __webpack_require__(108);
689
+ var consts_1 = __webpack_require__(110);
735
690
 
736
- var VizCategory_1 = __webpack_require__(27);
691
+ var VizCategory_1 = __webpack_require__(28);
737
692
 
738
693
  var dataContract = {
739
694
  requiredDataSources: [{
@@ -966,7 +921,8 @@ var optionsSchema = {
966
921
  },
967
922
  width: {
968
923
  description: 'Controls how wide in pixels (where 1px = 1/96th of 1in) the column should be displayed.',
969
- type: 'number'
924
+ type: 'number',
925
+ minimum: 30
970
926
  }
971
927
  }
972
928
  }
@@ -1377,13 +1333,17 @@ exports.default = configUtils_1.enhanceConfig(config);
1377
1333
 
1378
1334
  /***/ }),
1379
1335
 
1380
- /***/ 262:
1336
+ /***/ 265:
1381
1337
  /***/ (function(module, exports, __webpack_require__) {
1382
1338
 
1383
1339
  "use strict";
1384
1340
 
1385
1341
 
1386
- var _taggedTemplateLiteral = __webpack_require__(104);
1342
+ var _slicedToArray = __webpack_require__(51);
1343
+
1344
+ var _defineProperty = __webpack_require__(7);
1345
+
1346
+ var _taggedTemplateLiteral = __webpack_require__(77);
1387
1347
 
1388
1348
  var _templateObject, _templateObject2;
1389
1349
 
@@ -1414,43 +1374,50 @@ var styled_components_1 = __webpack_require__(4);
1414
1374
 
1415
1375
  var i18n_1 = __webpack_require__(3);
1416
1376
 
1417
- var Table_1 = __webpack_require__(83);
1377
+ var Table_1 = __webpack_require__(85);
1418
1378
 
1419
- var Paginator_1 = __webpack_require__(263);
1379
+ var Paginator_1 = __webpack_require__(266);
1420
1380
 
1421
- var Message_1 = __webpack_require__(264);
1381
+ var Message_1 = __webpack_require__(267);
1422
1382
 
1423
1383
  var colorUtils_1 = __webpack_require__(12);
1424
1384
 
1425
1385
  var style_1 = __webpack_require__(14);
1426
1386
 
1427
- var pick_1 = __webpack_require__(21);
1387
+ var pick_1 = __webpack_require__(22);
1428
1388
 
1429
1389
  var variables_1 = __webpack_require__(11);
1430
1390
 
1431
- var hooks_1 = __webpack_require__(265);
1391
+ var hooks_1 = __webpack_require__(268);
1432
1392
 
1433
- var consts_1 = __webpack_require__(108);
1393
+ var consts_1 = __webpack_require__(110);
1434
1394
 
1435
- var cells_1 = __webpack_require__(266);
1395
+ var cells_1 = __webpack_require__(269);
1436
1396
 
1437
- var getPagination_1 = __webpack_require__(25);
1397
+ var getPagination_1 = __webpack_require__(27);
1438
1398
 
1439
- var getSorting_1 = __webpack_require__(24);
1399
+ var getSorting_1 = __webpack_require__(26);
1400
+
1401
+ var FixedSizeContainer_1 = __webpack_require__(13);
1440
1402
 
1441
- var FixedSizeContainer_1 = __webpack_require__(13); // debounce was imported this way due to typing
1403
+ var utils_1 = __webpack_require__(274); // debounce was imported this way due to typing
1442
1404
  // eslint-disable-next-line import/order
1443
1405
 
1444
1406
 
1445
- var debounce = __webpack_require__(271);
1407
+ var debounce = __webpack_require__(275);
1446
1408
 
1409
+ var MINIMUM_COLUMN_SIZE = 30;
1447
1410
  var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
1448
1411
  displayName: "PureTable__NonVisibleTableHead",
1449
1412
  componentId: "tovzjg-0"
1450
1413
  })(["display:none;"]);
1414
+ var FixedTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
1415
+ displayName: "PureTable__FixedTableHead",
1416
+ componentId: "tovzjg-1"
1417
+ })(["position:sticky;top:0;"]);
1451
1418
  var VizTableContainer = styled_components_1.default.div.withConfig({
1452
1419
  displayName: "PureTable__VizTableContainer",
1453
- componentId: "tovzjg-1"
1420
+ componentId: "tovzjg-2"
1454
1421
  })(["box-sizing:border-box;padding:", ";background-color:", ";display:flex;flex-flow:column nowrap;overflow:hidden;"], pick_1.default({
1455
1422
  enterprise: variables_1.default.spacingHalf,
1456
1423
  prisma: variables_1.default.spacingSmall
@@ -1462,8 +1429,8 @@ var PAGINATOR_CONTAINER_HEIGHT = 38;
1462
1429
  var PAGINATOR_SPACING = 5;
1463
1430
  var SUITableContainer = styled_components_1.default.div.withConfig({
1464
1431
  displayName: "PureTable__SUITableContainer",
1465
- componentId: "tovzjg-2"
1466
- })(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", ""], function (_ref) {
1432
+ componentId: "tovzjg-3"
1433
+ })(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " & [data-fixed-column='true']{table-layout:", ";width:", ";}"], function (_ref) {
1467
1434
  var width = _ref.width,
1468
1435
  height = _ref.height,
1469
1436
  isPaging = _ref.isPaging,
@@ -1492,11 +1459,17 @@ var SUITableContainer = styled_components_1.default.div.withConfig({
1492
1459
  }, function (_ref4) {
1493
1460
  var headerStyle = _ref4.headerStyle;
1494
1461
  return headerStyle && headerStyle.color && styled_components_1.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & [data-test='head-cell'] > div > span {\n color: ", ";\n }\n "])), headerStyle.color);
1462
+ }, function (_ref5) {
1463
+ var widthSet = _ref5.widthSet;
1464
+ return widthSet ? 'fixed' : 'auto';
1465
+ }, function (_ref6) {
1466
+ var widthSet = _ref6.widthSet;
1467
+ return widthSet ? '0' : '100%';
1495
1468
  });
1496
1469
  SUITableContainer.displayName = 'SUITableContainer';
1497
1470
  var PaginatorContainer = styled_components_1.default.div.withConfig({
1498
1471
  displayName: "PureTable__PaginatorContainer",
1499
- componentId: "tovzjg-3"
1472
+ componentId: "tovzjg-4"
1500
1473
  })(["position:relative;text-align:right;height:", "px;"], PAGINATOR_CONTAINER_HEIGHT);
1501
1474
  PaginatorContainer.displayName = 'PaginatorContainer'; // allow for early return in case of empty tableBody while still following hook rules
1502
1475
 
@@ -1545,6 +1518,44 @@ var withEmptyTableMessage = function withEmptyTableMessage(Viz) {
1545
1518
  return Wrapper;
1546
1519
  };
1547
1520
 
1521
+ var useTableHead = function useTableHead(visibility) {
1522
+ if (visibility === 'none') {
1523
+ return NonVisibleTableHead;
1524
+ }
1525
+
1526
+ if (visibility === 'fixed') {
1527
+ return FixedTableHead;
1528
+ }
1529
+
1530
+ return Table_1.default.Head;
1531
+ };
1532
+
1533
+ var HeadCell = function HeadCell(_a) {
1534
+ var setTempColumnWidth = _a.setTempColumnWidth,
1535
+ setRemainingWidth = _a.setRemainingWidth,
1536
+ value = _a.value,
1537
+ widthSet = _a.widthSet,
1538
+ headerVisibility = _a.headerVisibility,
1539
+ props = __rest(_a, ["setTempColumnWidth", "setRemainingWidth", "value", "widthSet", "headerVisibility"]);
1540
+
1541
+ var cellRef = React.useRef(null);
1542
+ React.useEffect(function () {
1543
+ if (!widthSet && cellRef.current && cellRef.current.clientWidth >= 0 && headerVisibility !== 'none') {
1544
+ setTempColumnWidth(function (columnWidth) {
1545
+ return Object.assign(Object.assign({}, columnWidth), _defineProperty({}, value, {
1546
+ width: cellRef.current.clientWidth
1547
+ }));
1548
+ });
1549
+ setRemainingWidth(function (prevWidth) {
1550
+ return prevWidth + Math.max(props.width ? cellRef.current.clientWidth - props.width : 0, 0);
1551
+ });
1552
+ }
1553
+ });
1554
+ return React.createElement(Table_1.default.HeadCell, Object.assign({
1555
+ elementRef: cellRef
1556
+ }, props), value);
1557
+ };
1558
+
1548
1559
  var PureTable = function PureTable(props) {
1549
1560
  var count = props.count,
1550
1561
  width = props.width,
@@ -1559,19 +1570,74 @@ var PureTable = function PureTable(props) {
1559
1570
  onSort = _props$sortParams.onSort,
1560
1571
  _a = props.paginatorParams,
1561
1572
  isPaging = _a.isPaging,
1562
- paginatorProps = __rest(_a, ["isPaging"]),
1563
- onCellClick = props.onCellClick;
1573
+ paginatorOnChange = _a.onChange,
1574
+ paginatorProps = __rest(_a, ["isPaging", "onChange"]),
1575
+ onCellClick = props.onCellClick,
1576
+ onColumnFormatChange = props.onColumnFormatChange,
1577
+ columnFormat = props.columnFormat,
1578
+ mode = props.mode,
1579
+ headerVisibility = props.headerVisibility;
1580
+
1581
+ var _React$useState = React.useState(columnFormat),
1582
+ _React$useState2 = _slicedToArray(_React$useState, 2),
1583
+ columns = _React$useState2[0],
1584
+ setColumns = _React$useState2[1];
1585
+
1586
+ var _React$useState3 = React.useState(columnFormat),
1587
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
1588
+ tempColumns = _React$useState4[0],
1589
+ setTempColumns = _React$useState4[1];
1590
+
1591
+ var _React$useState5 = React.useState(0),
1592
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
1593
+ remainingWidth = _React$useState6[0],
1594
+ setRemainingWidth = _React$useState6[1];
1595
+
1596
+ var numColumnsWithoutWidth = Object.keys(tempColumns).reduce(function (acc, key) {
1597
+ var _a;
1598
+
1599
+ if ((_a = columns[key]) === null || _a === void 0 ? void 0 : _a.width) {
1600
+ return acc;
1601
+ }
1602
+
1603
+ return acc + 1;
1604
+ }, 0);
1605
+ var containerRef = React.useRef(null);
1606
+ var widthRef = React.useRef(0);
1607
+ var widthSet = tableHeader.cells.length === tableHeader.cells.filter(function (_ref7) {
1608
+ var value = _ref7.value,
1609
+ showCell = _ref7.showCell;
1564
1610
 
1611
+ var _a, _b;
1612
+
1613
+ return ((_a = columns[value]) === null || _a === void 0 ? void 0 : _a.width) !== undefined || ((_b = tempColumns[value]) === null || _b === void 0 ? void 0 : _b.width) !== undefined || !showCell;
1614
+ }).length;
1615
+ React.useEffect(function () {
1616
+ if (containerRef.current && containerRef.current.clientWidth !== widthRef.current) {
1617
+ widthRef.current = containerRef.current.clientWidth;
1618
+ recalculateTempColumnWidths();
1619
+ }
1620
+ });
1565
1621
  var firstRenderCount = React.useRef(count);
1566
1622
  React.useEffect(function () {
1567
1623
  if (firstRenderCount.current !== count) {
1568
1624
  firstRenderCount.current = count;
1569
- paginatorProps.onChange(null, {
1625
+ paginatorOnChange(null, {
1570
1626
  count: count
1571
1627
  });
1572
1628
  }
1573
1629
  }, [count, paginatorProps]);
1574
- var TableHead = tableHeader.visibility === 'none' ? NonVisibleTableHead : Table_1.default.Head;
1630
+ var stringifiedColumnFormat = JSON.stringify(columnFormat);
1631
+ var columnFormatRef = React.useRef(stringifiedColumnFormat);
1632
+ var modeRef = React.useRef(mode);
1633
+ React.useEffect(function () {
1634
+ if (modeRef.current !== mode || columnFormatRef.current !== stringifiedColumnFormat) {
1635
+ columnFormatRef.current = stringifiedColumnFormat;
1636
+ modeRef.current = mode;
1637
+ setColumns(columnFormat);
1638
+ }
1639
+ }, [mode, stringifiedColumnFormat]);
1640
+ var TableHead = useTableHead(headerVisibility);
1575
1641
  var debouncedDrilldown = debounce(function (e, payload) {
1576
1642
  if (window.getSelection().toString() === '') {
1577
1643
  if (lodash_1.isFunction(onCellClick)) {
@@ -1623,15 +1689,51 @@ var PureTable = function PureTable(props) {
1623
1689
  debouncedDrilldown(e.nativeEvent, payload);
1624
1690
  }
1625
1691
  }, [onCellClick, showRowNumbers, tableHeader, tableBody]);
1692
+ var debouncedOnColumnFormatChange = React.useMemo(function () {
1693
+ return debounce(function (newFormat) {
1694
+ onColumnFormatChange(newFormat);
1695
+ }, 300);
1696
+ }, [onColumnFormatChange]);
1697
+ var handleResizeColumn = React.useCallback(function (_event, payload) {
1698
+ var updatedCF = lodash_1.cloneDeep(columns);
1699
+ var field = payload.columnId;
1700
+ updatedCF[field] = Object.assign(Object.assign({}, updatedCF[field]), {
1701
+ width: Math.max(payload.width, MINIMUM_COLUMN_SIZE)
1702
+ });
1703
+ setColumns(updatedCF); // Updates column json in edit mode
1704
+
1705
+ if (mode === 'edit') {
1706
+ debouncedOnColumnFormatChange(updatedCF);
1707
+ }
1708
+ }, [mode, columns, debouncedOnColumnFormatChange]);
1709
+
1710
+ var handleEventClick = function handleEventClick(e) {
1711
+ e.stopPropagation();
1712
+ };
1713
+
1714
+ var recalculateTempColumnWidths = function recalculateTempColumnWidths() {
1715
+ setTempColumns({});
1716
+ setRemainingWidth(0);
1717
+ };
1718
+
1719
+ var withColumnResizing = function withColumnResizing(func) {
1720
+ return function (e, additionalParams) {
1721
+ recalculateTempColumnWidths();
1722
+ func(e, additionalParams);
1723
+ };
1724
+ };
1725
+
1626
1726
  return React.createElement(VizTableContainer, {
1627
- backgroundColor: backgroundColor
1727
+ backgroundColor: backgroundColor,
1728
+ ref: containerRef
1628
1729
  }, React.createElement(SUITableContainer, {
1629
1730
  width: width,
1630
1731
  height: height,
1631
1732
  isPaging: isPaging,
1632
- headerStyle: tableHeader.style
1733
+ headerStyle: tableHeader.style,
1734
+ widthSet: widthSet
1633
1735
  }, React.createElement(Table_1.default, {
1634
- headType: tableHeader.visibility !== 'none' ? tableHeader.visibility : undefined,
1736
+ headType: headerVisibility !== 'none' ? 'inline' : undefined,
1635
1737
  innerStyle: {
1636
1738
  height: '100%'
1637
1739
  },
@@ -1639,7 +1741,8 @@ var PureTable = function PureTable(props) {
1639
1741
  height: '100%',
1640
1742
  cursor: onCellClick ? 'pointer' : 'unset'
1641
1743
  },
1642
- onClick: onCellClick ? drilldownHandler : lodash_1.noop
1744
+ onClick: onCellClick ? drilldownHandler : lodash_1.noop,
1745
+ onRequestResizeColumn: handleResizeColumn
1643
1746
  }, React.createElement(TableHead, null, tableHeader.cells.filter(function (c) {
1644
1747
  return c.showCell;
1645
1748
  }).map(function (_a) {
@@ -1648,13 +1751,27 @@ var PureTable = function PureTable(props) {
1648
1751
  sortKey = _a.sortKey,
1649
1752
  rest = __rest(_a, ["key", "value", "sortKey"]);
1650
1753
 
1651
- return React.createElement(Table_1.default.HeadCell, Object.assign({
1754
+ return React.createElement(HeadCell, Object.assign({
1652
1755
  key: key,
1653
- sortDir: sortKey === currentSortKey ? currentSortDir : 'none'
1756
+ columnId: value,
1757
+ sortDir: sortKey === currentSortKey ? currentSortDir : 'none',
1758
+ width: utils_1.getColumnWidth({
1759
+ columns: columns,
1760
+ tempColumns: tempColumns,
1761
+ columnName: value,
1762
+ remainingWidth: remainingWidth,
1763
+ numColumnsWithoutWidth: numColumnsWithoutWidth
1764
+ }),
1765
+ onMouseDown: handleEventClick,
1766
+ value: value,
1767
+ setTempColumnWidth: setTempColumns,
1768
+ widthSet: widthSet,
1769
+ onSort: withColumnResizing(onSort),
1770
+ headerVisibility: headerVisibility,
1771
+ setRemainingWidth: setRemainingWidth
1654
1772
  }, Object.assign({
1655
- sortKey: sortKey,
1656
- onSort: onSort
1657
- }, rest)), value);
1773
+ sortKey: sortKey
1774
+ }, rest)));
1658
1775
  })), React.createElement(Table_1.default.Body, null, tableBody.rows.map(function (row) {
1659
1776
  return React.createElement(Table_1.default.Row, {
1660
1777
  key: row.key
@@ -1666,16 +1783,39 @@ var PureTable = function PureTable(props) {
1666
1783
  type: cell.cellType
1667
1784
  }, React.createElement(cells_1.TextCell, {
1668
1785
  cell: cell,
1669
- useMouseOverEffect: !!onCellClick
1786
+ useMouseOverEffect: !!onCellClick,
1787
+ width: utils_1.getColumnWidth({
1788
+ columns: columns,
1789
+ tempColumns: tempColumns,
1790
+ columnName: cell.header,
1791
+ remainingWidth: remainingWidth,
1792
+ numColumnsWithoutWidth: numColumnsWithoutWidth
1793
+ })
1670
1794
  }), React.createElement(cells_1.SparklineCell, {
1671
1795
  cell: cell,
1672
- useMouseOverEffect: !!onCellClick
1796
+ useMouseOverEffect: !!onCellClick,
1797
+ width: utils_1.getColumnWidth({
1798
+ columns: columns,
1799
+ tempColumns: tempColumns,
1800
+ columnName: cell.header,
1801
+ remainingWidth: remainingWidth,
1802
+ numColumnsWithoutWidth: numColumnsWithoutWidth
1803
+ })
1673
1804
  }), React.createElement(cells_1.ArrayCell, {
1674
1805
  cell: cell,
1675
- useMouseOverEffect: !!onCellClick
1806
+ useMouseOverEffect: !!onCellClick,
1807
+ width: utils_1.getColumnWidth({
1808
+ columns: columns,
1809
+ tempColumns: tempColumns,
1810
+ columnName: cell.header,
1811
+ remainingWidth: remainingWidth,
1812
+ numColumnsWithoutWidth: numColumnsWithoutWidth
1813
+ })
1676
1814
  }));
1677
1815
  }));
1678
- })))), isPaging ? React.createElement(PaginatorContainer, null, React.createElement(Paginator_1.default, Object.assign({}, paginatorProps))) : null);
1816
+ })))), isPaging ? React.createElement(PaginatorContainer, null, React.createElement(Paginator_1.default, Object.assign({
1817
+ onChange: withColumnResizing(paginatorOnChange)
1818
+ }, paginatorProps))) : null);
1679
1819
  };
1680
1820
 
1681
1821
  var cellDataType = T.oneOfType([T.string, T.number, T.arrayOf(T.oneOfType([T.string, T.number]))]);
@@ -1714,7 +1854,8 @@ PureTable.propTypes = {
1714
1854
  sparklineTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validSparklineTypes)))
1715
1855
  }),
1716
1856
  theme: T.any,
1717
- width: T.oneOfType([T.number])
1857
+ width: T.oneOfType([T.number]),
1858
+ onColumnFormatChange: T.func
1718
1859
  };
1719
1860
  PureTable.defaultProps = {
1720
1861
  columnFormat: {},
@@ -1734,36 +1875,37 @@ PureTable.defaultProps = {
1734
1875
  table: [],
1735
1876
  tableFormat: {},
1736
1877
  theme: {},
1737
- width: 300
1878
+ width: 300,
1879
+ onColumnFormatChange: lodash_1.noop
1738
1880
  };
1739
1881
  PureTable.displayName = 'VizTable';
1740
1882
  exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable));
1741
1883
 
1742
1884
  /***/ }),
1743
1885
 
1744
- /***/ 263:
1886
+ /***/ 266:
1745
1887
  /***/ (function(module, exports) {
1746
1888
 
1747
1889
  module.exports = require("@splunk/react-ui/Paginator");
1748
1890
 
1749
1891
  /***/ }),
1750
1892
 
1751
- /***/ 264:
1893
+ /***/ 267:
1752
1894
  /***/ (function(module, exports) {
1753
1895
 
1754
1896
  module.exports = require("@splunk/react-ui/Message");
1755
1897
 
1756
1898
  /***/ }),
1757
1899
 
1758
- /***/ 265:
1900
+ /***/ 268:
1759
1901
  /***/ (function(module, exports, __webpack_require__) {
1760
1902
 
1761
1903
  "use strict";
1762
1904
 
1763
1905
 
1764
- var _toConsumableArray = __webpack_require__(39);
1906
+ var _toConsumableArray = __webpack_require__(41);
1765
1907
 
1766
- var _typeof = __webpack_require__(20);
1908
+ var _typeof = __webpack_require__(21);
1767
1909
 
1768
1910
  Object.defineProperty(exports, "__esModule", {
1769
1911
  value: true
@@ -1774,17 +1916,14 @@ var lodash_1 = __webpack_require__(2);
1774
1916
 
1775
1917
  var colorUtils_1 = __webpack_require__(12);
1776
1918
 
1777
- var style_1 = __webpack_require__(14);
1778
-
1779
- var consts_1 = __webpack_require__(108);
1919
+ var consts_1 = __webpack_require__(110);
1780
1920
 
1781
1921
  var isArray = function isArray(v) {
1782
1922
  return Array.isArray(v);
1783
1923
  };
1784
1924
 
1785
1925
  var getOverflowStyles = function getOverflowStyles(_ref) {
1786
- var textOverflow = _ref.textOverflow,
1787
- variables = _ref.variables;
1926
+ var textOverflow = _ref.textOverflow;
1788
1927
  var styles = {
1789
1928
  anywhere: {
1790
1929
  wordBreak: 'break-all'
@@ -1795,7 +1934,6 @@ var getOverflowStyles = function getOverflowStyles(_ref) {
1795
1934
  overflowWrap: 'break-word'
1796
1935
  },
1797
1936
  ellipsis: {
1798
- maxWidth: style_1.toPx(variables && variables.width || 100),
1799
1937
  whiteSpace: 'nowrap',
1800
1938
  overflow: 'hidden',
1801
1939
  textOverflow: 'ellipsis'
@@ -1835,12 +1973,8 @@ var generateHeader = function generateHeader(value, i, columnFormat, showInterna
1835
1973
  if (lodash_1.isNumber(columnWidth)) {
1836
1974
  var textOverflowType = exports.getTextOverflowType({}, value, 'ellipsis');
1837
1975
  var textOverflowStyle = exports.getOverflowStyles({
1838
- textOverflow: textOverflowType,
1839
- variables: {
1840
- width: columnWidth
1841
- }
1976
+ textOverflow: textOverflowType
1842
1977
  });
1843
- ret.width = columnWidth;
1844
1978
  ret.truncate = true;
1845
1979
  ret.style = textOverflowStyle;
1846
1980
  }
@@ -2124,6 +2258,8 @@ var useTable = function useTable() {
2124
2258
  cells: []
2125
2259
  };
2126
2260
  table.forEach(function (column, i) {
2261
+ var _a;
2262
+
2127
2263
  var currentHeader = tableHeader.cells[i];
2128
2264
  var value = validValueSelector(getColumnFormatData(columnFormat, currentHeader, currentRow), getTableFormatData(tableFormat, i, currentRow), column[currentRow], '');
2129
2265
  var rawValue = column[currentRow];
@@ -2137,17 +2273,12 @@ var useTable = function useTable() {
2137
2273
  var key = generateKey(value, "".concat(currentRow, "-").concat(i));
2138
2274
  var additionalStyles = {};
2139
2275
 
2140
- if (lodash_1.isNumber(currentHeader.width)) {
2276
+ if (lodash_1.isNumber((_a = columnFormat[currentHeader.value]) === null || _a === void 0 ? void 0 : _a.width)) {
2141
2277
  var textOverflowType = exports.getTextOverflowType(columnFormat, currentHeader.value, 'ellipsis');
2142
2278
  var textOverflowStyle = exports.getOverflowStyles({
2143
- textOverflow: textOverflowType,
2144
- variables: {
2145
- width: currentHeader.width
2146
- }
2147
- });
2148
- additionalStyles = Object.assign(Object.assign(Object.assign({}, additionalStyles), textOverflowStyle), {
2149
- width: style_1.toPx(currentHeader.width)
2279
+ textOverflow: textOverflowType
2150
2280
  });
2281
+ additionalStyles = Object.assign(Object.assign({}, additionalStyles), textOverflowStyle);
2151
2282
  }
2152
2283
 
2153
2284
  var showCell = true;
@@ -2167,6 +2298,7 @@ var useTable = function useTable() {
2167
2298
  sparklineColor: sparklineColor,
2168
2299
  sparklineAreaColor: sparklineAreaColor,
2169
2300
  sparklineType: sparklineType,
2301
+ header: currentHeader.value,
2170
2302
  style: Object.assign({
2171
2303
  backgroundColor: rowBackgroundColor,
2172
2304
  color: rowColor
@@ -2191,7 +2323,7 @@ exports.useTable = useTable;
2191
2323
 
2192
2324
  /***/ }),
2193
2325
 
2194
- /***/ 266:
2326
+ /***/ 269:
2195
2327
  /***/ (function(module, exports, __webpack_require__) {
2196
2328
 
2197
2329
  "use strict";
@@ -2220,17 +2352,82 @@ Object.defineProperty(exports, "__esModule", {
2220
2352
  value: true
2221
2353
  });
2222
2354
 
2223
- __exportStar(__webpack_require__(267), exports);
2355
+ __exportStar(__webpack_require__(270), exports);
2224
2356
 
2225
- __exportStar(__webpack_require__(268), exports);
2357
+ __exportStar(__webpack_require__(271), exports);
2226
2358
 
2227
- __exportStar(__webpack_require__(269), exports);
2359
+ __exportStar(__webpack_require__(272), exports);
2228
2360
 
2229
- __exportStar(__webpack_require__(270), exports);
2361
+ __exportStar(__webpack_require__(273), exports);
2230
2362
 
2231
2363
  /***/ }),
2232
2364
 
2233
- /***/ 267:
2365
+ /***/ 27:
2366
+ /***/ (function(module, exports, __webpack_require__) {
2367
+
2368
+ "use strict";
2369
+
2370
+
2371
+ Object.defineProperty(exports, "__esModule", {
2372
+ value: true
2373
+ });
2374
+ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
2375
+
2376
+ var T = __webpack_require__(0);
2377
+
2378
+ var lodash_1 = __webpack_require__(2);
2379
+
2380
+ exports.PaginatorParamsPropTypes = T.shape({
2381
+ isPaging: T.bool,
2382
+ current: T.number,
2383
+ totalPages: T.number,
2384
+ onChange: T.func
2385
+ });
2386
+
2387
+ var getPaginationParams = function getPaginationParams(_ref) {
2388
+ var requestParams = _ref.requestParams,
2389
+ meta = _ref.meta,
2390
+ onRequestParamsChange = _ref.onRequestParamsChange;
2391
+ var totalCount = meta && meta.totalCount || 0;
2392
+ var offset = requestParams && requestParams.offset || 0;
2393
+ var count = requestParams && requestParams.count;
2394
+ var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
2395
+ var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
2396
+ var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
2397
+
2398
+ var onChangeHandler = function onChangeHandler(e, _ref2) {
2399
+ var page = _ref2.page,
2400
+ countArg = _ref2.count;
2401
+ var newParams = lodash_1.cloneDeep(requestParams);
2402
+
2403
+ if (typeof countArg === 'number') {
2404
+ newParams.count = countArg;
2405
+ newParams.offset = 0;
2406
+ }
2407
+
2408
+ var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
2409
+
2410
+ if (typeof page === 'number' && page > 0) {
2411
+ newParams.count = pageCount;
2412
+ newParams.offset = (page - 1) * pageCount;
2413
+ }
2414
+
2415
+ onRequestParamsChange(newParams);
2416
+ };
2417
+
2418
+ return {
2419
+ isPaging: isPaging,
2420
+ current: current,
2421
+ totalPages: totalPages,
2422
+ onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
2423
+ };
2424
+ };
2425
+
2426
+ exports.getPaginationParams = getPaginationParams;
2427
+
2428
+ /***/ }),
2429
+
2430
+ /***/ 270:
2234
2431
  /***/ (function(module, exports, __webpack_require__) {
2235
2432
 
2236
2433
  "use strict";
@@ -2253,7 +2450,7 @@ exports.SwitchTableCell = SwitchTableCell;
2253
2450
 
2254
2451
  /***/ }),
2255
2452
 
2256
- /***/ 268:
2453
+ /***/ 271:
2257
2454
  /***/ (function(module, exports, __webpack_require__) {
2258
2455
 
2259
2456
  "use strict";
@@ -2266,13 +2463,16 @@ exports.TextCell = void 0;
2266
2463
 
2267
2464
  var React = __webpack_require__(1);
2268
2465
 
2269
- var Table_1 = __webpack_require__(83);
2466
+ var Table_1 = __webpack_require__(85);
2270
2467
 
2271
2468
  var TextCell = function TextCell(_ref) {
2272
2469
  var cell = _ref.cell,
2273
- useMouseOverEffect = _ref.useMouseOverEffect;
2470
+ useMouseOverEffect = _ref.useMouseOverEffect,
2471
+ width = _ref.width;
2274
2472
  return React.createElement(Table_1.default.Cell, {
2275
- style: cell.style,
2473
+ style: Object.assign(Object.assign({}, cell.style), {
2474
+ width: width
2475
+ }),
2276
2476
  align: cell.align,
2277
2477
  "data-test-cell-type": "TextCell",
2278
2478
  "data-row-index": cell.rowIndex,
@@ -2286,7 +2486,7 @@ exports.TextCell.displayName = 'TextCell';
2286
2486
 
2287
2487
  /***/ }),
2288
2488
 
2289
- /***/ 269:
2489
+ /***/ 272:
2290
2490
  /***/ (function(module, exports, __webpack_require__) {
2291
2491
 
2292
2492
  "use strict";
@@ -2299,14 +2499,17 @@ exports.ArrayCell = void 0;
2299
2499
 
2300
2500
  var React = __webpack_require__(1);
2301
2501
 
2302
- var Table_1 = __webpack_require__(83);
2502
+ var Table_1 = __webpack_require__(85);
2303
2503
 
2304
2504
  var ArrayCell = function ArrayCell(_ref) {
2305
2505
  var cell = _ref.cell,
2306
- useMouseOverEffect = _ref.useMouseOverEffect;
2506
+ useMouseOverEffect = _ref.useMouseOverEffect,
2507
+ width = _ref.width;
2307
2508
  var value = Array.isArray(cell.value) ? cell.value : [cell.value];
2308
2509
  return React.createElement(Table_1.default.Cell, {
2309
- style: cell.style,
2510
+ style: Object.assign(Object.assign({}, cell.style), {
2511
+ width: width
2512
+ }),
2310
2513
  align: cell.align,
2311
2514
  "data-test-cell-type": "ArrayCell",
2312
2515
  onClick: useMouseOverEffect ? function () {} : undefined
@@ -2325,42 +2528,13 @@ exports.ArrayCell.displayName = 'ArrayCell';
2325
2528
 
2326
2529
  /***/ }),
2327
2530
 
2328
- /***/ 27:
2329
- /***/ (function(module, exports, __webpack_require__) {
2330
-
2331
- "use strict";
2332
-
2333
-
2334
- Object.defineProperty(exports, "__esModule", {
2335
- value: true
2336
- });
2337
- exports.VizCategory = void 0;
2338
- var VizCategory;
2339
-
2340
- (function (VizCategory) {
2341
- VizCategory["SINGLE_VALUE"] = "Single Value";
2342
- VizCategory["TRENDS"] = "Trends";
2343
- VizCategory["COMPARISONS"] = "Comparisons";
2344
- VizCategory["TABLE"] = "Table";
2345
- VizCategory["GAUGE"] = "Gauge";
2346
- VizCategory["DISTRIBUTIONS"] = "Distributions";
2347
- VizCategory["CHOROPLETH"] = "Choropleth Maps";
2348
- VizCategory["SHAPES"] = "Shapes";
2349
- VizCategory["MISC"] = "misc";
2350
- VizCategory["FLOW"] = "Flow";
2351
- VizCategory["CORRELATION"] = "Correlation";
2352
- VizCategory["SPATIAL"] = "Spatial";
2353
- })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
2354
-
2355
- /***/ }),
2356
-
2357
- /***/ 270:
2531
+ /***/ 273:
2358
2532
  /***/ (function(module, exports, __webpack_require__) {
2359
2533
 
2360
2534
  "use strict";
2361
2535
 
2362
2536
 
2363
- var _slicedToArray = __webpack_require__(49);
2537
+ var _slicedToArray = __webpack_require__(51);
2364
2538
 
2365
2539
  Object.defineProperty(exports, "__esModule", {
2366
2540
  value: true
@@ -2369,9 +2543,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
2369
2543
 
2370
2544
  var React = __webpack_require__(1);
2371
2545
 
2372
- var Table_1 = __webpack_require__(83);
2546
+ var Table_1 = __webpack_require__(85);
2373
2547
 
2374
- var Line_1 = __webpack_require__(84);
2548
+ var Line_1 = __webpack_require__(86);
2375
2549
 
2376
2550
  var paddingLeftRight = 5;
2377
2551
  var paddingTopBottom = 3;
@@ -2389,7 +2563,8 @@ exports.validSparklineTypes = ['line', 'area'];
2389
2563
 
2390
2564
  var SparklineCell = function SparklineCell(_ref) {
2391
2565
  var cell = _ref.cell,
2392
- useMouseOverEffect = _ref.useMouseOverEffect;
2566
+ useMouseOverEffect = _ref.useMouseOverEffect,
2567
+ width = _ref.width;
2393
2568
 
2394
2569
  var _React$useState = React.useState(React.createRef()),
2395
2570
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -2411,7 +2586,7 @@ var SparklineCell = function SparklineCell(_ref) {
2411
2586
  style: Object.assign(Object.assign({}, cell.style), {
2412
2587
  padding: 0,
2413
2588
  margin: 0,
2414
- width: "".concat(cellRef.offsetWidth, "px"),
2589
+ width: width,
2415
2590
  height: "".concat(height, "px")
2416
2591
  }),
2417
2592
  align: cell.align,
@@ -2446,7 +2621,50 @@ exports.SparklineCell.displayName = 'SparklineCell';
2446
2621
 
2447
2622
  /***/ }),
2448
2623
 
2449
- /***/ 271:
2624
+ /***/ 274:
2625
+ /***/ (function(module, exports, __webpack_require__) {
2626
+
2627
+ "use strict";
2628
+
2629
+
2630
+ Object.defineProperty(exports, "__esModule", {
2631
+ value: true
2632
+ });
2633
+ exports.getColumnWidth = void 0;
2634
+
2635
+ var getColumnWidth = function getColumnWidth(_ref) {
2636
+ var columns = _ref.columns,
2637
+ tempColumns = _ref.tempColumns,
2638
+ columnName = _ref.columnName,
2639
+ remainingWidth = _ref.remainingWidth,
2640
+ numColumnsWithoutWidth = _ref.numColumnsWithoutWidth;
2641
+
2642
+ var _a, _b, _c, _d, _e, _f; // If both columnFormats are undefined return 0
2643
+
2644
+
2645
+ if (((_a = columns[columnName]) === null || _a === void 0 ? void 0 : _a.width) === undefined && ((_b = tempColumns[columnName]) === null || _b === void 0 ? void 0 : _b.width) === undefined) {
2646
+ return 0;
2647
+ } // Column width is defined in the dashboard definition
2648
+
2649
+
2650
+ if (((_c = columns[columnName]) === null || _c === void 0 ? void 0 : _c.width) !== undefined) {
2651
+ return (_d = columns[columnName]) === null || _d === void 0 ? void 0 : _d.width;
2652
+ } // Some columns in the table have a defined width; distribute remaining width to this column
2653
+
2654
+
2655
+ if (numColumnsWithoutWidth !== 0) {
2656
+ return ((_e = tempColumns[columnName]) === null || _e === void 0 ? void 0 : _e.width) + remainingWidth / numColumnsWithoutWidth;
2657
+ } // No columns have a width in the dashboard definition
2658
+
2659
+
2660
+ return (_f = tempColumns[columnName]) === null || _f === void 0 ? void 0 : _f.width;
2661
+ };
2662
+
2663
+ exports.getColumnWidth = getColumnWidth;
2664
+
2665
+ /***/ }),
2666
+
2667
+ /***/ 275:
2450
2668
  /***/ (function(module, exports) {
2451
2669
 
2452
2670
  module.exports = require("lodash/debounce");
@@ -2459,6 +2677,35 @@ module.exports = require("lodash/debounce");
2459
2677
  "use strict";
2460
2678
 
2461
2679
 
2680
+ Object.defineProperty(exports, "__esModule", {
2681
+ value: true
2682
+ });
2683
+ exports.VizCategory = void 0;
2684
+ var VizCategory;
2685
+
2686
+ (function (VizCategory) {
2687
+ VizCategory["SINGLE_VALUE"] = "Single Value";
2688
+ VizCategory["TRENDS"] = "Trends";
2689
+ VizCategory["COMPARISONS"] = "Comparisons";
2690
+ VizCategory["TABLE"] = "Table";
2691
+ VizCategory["GAUGE"] = "Gauge";
2692
+ VizCategory["DISTRIBUTIONS"] = "Distributions";
2693
+ VizCategory["CHOROPLETH"] = "Choropleth Maps";
2694
+ VizCategory["SHAPES"] = "Shapes";
2695
+ VizCategory["MISC"] = "misc";
2696
+ VizCategory["FLOW"] = "Flow";
2697
+ VizCategory["CORRELATION"] = "Correlation";
2698
+ VizCategory["SPATIAL"] = "Spatial";
2699
+ })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
2700
+
2701
+ /***/ }),
2702
+
2703
+ /***/ 29:
2704
+ /***/ (function(module, exports, __webpack_require__) {
2705
+
2706
+ "use strict";
2707
+
2708
+
2462
2709
  Object.defineProperty(exports, "__esModule", {
2463
2710
  value: true
2464
2711
  });
@@ -2467,33 +2714,37 @@ var React = __webpack_require__(1);
2467
2714
 
2468
2715
  var lodash_1 = __webpack_require__(2);
2469
2716
 
2470
- var getSettingsFromThemedProps_1 = __webpack_require__(29);
2717
+ var getSettingsFromThemedProps_1 = __webpack_require__(30);
2718
+
2719
+ var Options_1 = __webpack_require__(31);
2471
2720
 
2472
- var Options_1 = __webpack_require__(30);
2721
+ var SanitizeProps_1 = __webpack_require__(32);
2473
2722
 
2474
- var SanitizeProps_1 = __webpack_require__(31);
2723
+ var TimezoneContext_1 = __webpack_require__(19);
2724
+
2725
+ var moment_1 = __webpack_require__(33);
2475
2726
 
2476
2727
  var styled_components_1 = __webpack_require__(4);
2477
2728
 
2478
- var SplunkVisualization_1 = __webpack_require__(32);
2729
+ var SplunkVisualization_1 = __webpack_require__(34);
2479
2730
 
2480
2731
  var VizBehavior_1 = __webpack_require__(5);
2481
2732
 
2482
- var getSorting_1 = __webpack_require__(24);
2733
+ var getSorting_1 = __webpack_require__(26);
2483
2734
 
2484
- var getPagination_1 = __webpack_require__(25);
2735
+ var getPagination_1 = __webpack_require__(27);
2485
2736
 
2486
- var useDeepMemo_1 = __webpack_require__(35);
2737
+ var useDeepMemo_1 = __webpack_require__(37);
2487
2738
 
2488
- var JSONSchemaUtils_1 = __webpack_require__(23);
2739
+ var JSONSchemaUtils_1 = __webpack_require__(24);
2489
2740
 
2490
- var MissingPropsMessage_1 = __webpack_require__(36);
2741
+ var MissingPropsMessage_1 = __webpack_require__(38);
2491
2742
 
2492
- var withEditModeCover_1 = __webpack_require__(37);
2743
+ var withEditModeCover_1 = __webpack_require__(39);
2493
2744
 
2494
- var withPlaceholder_1 = __webpack_require__(38);
2745
+ var withPlaceholder_1 = __webpack_require__(40);
2495
2746
 
2496
- var hocUtils_1 = __webpack_require__(7);
2747
+ var hocUtils_1 = __webpack_require__(8);
2497
2748
  /**
2498
2749
  * hoc that wraps a pure react visualization in a Dashboard visualization
2499
2750
  * @param {DashboardVizOpts} opts
@@ -2526,6 +2777,23 @@ var withDashboardViz = function withDashboardViz(opts) {
2526
2777
  theme = props.theme,
2527
2778
  onRequestParamsChange = props.onRequestParamsChange;
2528
2779
 
2780
+ var _React$useContext = React.useContext(TimezoneContext_1.default),
2781
+ serializedTimezone = _React$useContext.serializedTimezone;
2782
+
2783
+ if (serializedTimezone) {
2784
+ /*
2785
+ @splunk/moment currently does not allow us to customize the timezone on a per visualization basis.
2786
+ This ensures that if a timezone was provided via TimezoneContext @splunk/moment time formatting
2787
+ will use it.
2788
+ @TODO(pwied):
2789
+ - remove when we moved away from @splunk/moment
2790
+ - provide timezone context to dynamic option evaluation phase
2791
+ */
2792
+ if (!moment_1.default.getDefaultSplunkTimezone()) {
2793
+ moment_1.default.setDefaultSplunkTimezone(serializedTimezone);
2794
+ }
2795
+ }
2796
+
2529
2797
  var themeFunc = function themeFunc(themeVar) {
2530
2798
  var _a, _b;
2531
2799
 
@@ -2554,7 +2822,7 @@ var withDashboardViz = function withDashboardViz(opts) {
2554
2822
  console.error("unexpected error evaluating options: + ".concat(e.message));
2555
2823
  return {};
2556
2824
  }
2557
- }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources]); // useEffect hook needs to be initialized before any early returns
2825
+ }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
2558
2826
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
2559
2827
 
2560
2828
  React.useEffect(function () {
@@ -2678,35 +2946,42 @@ exports.default = withDashboardViz;
2678
2946
 
2679
2947
  /***/ }),
2680
2948
 
2681
- /***/ 29:
2949
+ /***/ 3:
2682
2950
  /***/ (function(module, exports) {
2683
2951
 
2684
- module.exports = require("@splunk/themes/getSettingsFromThemedProps");
2952
+ module.exports = require("@splunk/ui-utils/i18n");
2685
2953
 
2686
2954
  /***/ }),
2687
2955
 
2688
- /***/ 3:
2956
+ /***/ 30:
2689
2957
  /***/ (function(module, exports) {
2690
2958
 
2691
- module.exports = require("@splunk/ui-utils/i18n");
2959
+ module.exports = require("@splunk/themes/getSettingsFromThemedProps");
2692
2960
 
2693
2961
  /***/ }),
2694
2962
 
2695
- /***/ 30:
2963
+ /***/ 31:
2696
2964
  /***/ (function(module, exports) {
2697
2965
 
2698
2966
  module.exports = require("@splunk/visualization-encoding/Options");
2699
2967
 
2700
2968
  /***/ }),
2701
2969
 
2702
- /***/ 31:
2970
+ /***/ 32:
2703
2971
  /***/ (function(module, exports) {
2704
2972
 
2705
2973
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
2706
2974
 
2707
2975
  /***/ }),
2708
2976
 
2709
- /***/ 32:
2977
+ /***/ 33:
2978
+ /***/ (function(module, exports) {
2979
+
2980
+ module.exports = require("@splunk/moment");
2981
+
2982
+ /***/ }),
2983
+
2984
+ /***/ 34:
2710
2985
  /***/ (function(module, exports, __webpack_require__) {
2711
2986
 
2712
2987
  "use strict";
@@ -2724,7 +2999,7 @@ var T = __webpack_require__(0);
2724
2999
 
2725
3000
  var lodash_1 = __webpack_require__(2);
2726
3001
 
2727
- var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
3002
+ var VizActionHandler_1 = __webpack_require__(35); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2728
3003
 
2729
3004
 
2730
3005
  exports.INITIAL_WIDTH = 250;
@@ -2858,7 +3133,7 @@ exports.default = SplunkVisualization;
2858
3133
 
2859
3134
  /***/ }),
2860
3135
 
2861
- /***/ 33:
3136
+ /***/ 35:
2862
3137
  /***/ (function(module, exports, __webpack_require__) {
2863
3138
 
2864
3139
  "use strict";
@@ -2896,7 +3171,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
2896
3171
 
2897
3172
  /***/ }),
2898
3173
 
2899
- /***/ 34:
3174
+ /***/ 36:
2900
3175
  /***/ (function(module, exports, __webpack_require__) {
2901
3176
 
2902
3177
  "use strict";
@@ -2910,7 +3185,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
2910
3185
 
2911
3186
  /***/ }),
2912
3187
 
2913
- /***/ 35:
3188
+ /***/ 37:
2914
3189
  /***/ (function(module, exports, __webpack_require__) {
2915
3190
 
2916
3191
  "use strict";
@@ -2956,7 +3231,7 @@ exports.useDeepMemo = useDeepMemo;
2956
3231
 
2957
3232
  /***/ }),
2958
3233
 
2959
- /***/ 36:
3234
+ /***/ 38:
2960
3235
  /***/ (function(module, exports, __webpack_require__) {
2961
3236
 
2962
3237
  "use strict";
@@ -3037,7 +3312,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3037
3312
 
3038
3313
  /***/ }),
3039
3314
 
3040
- /***/ 37:
3315
+ /***/ 39:
3041
3316
  /***/ (function(module, exports, __webpack_require__) {
3042
3317
 
3043
3318
  "use strict";
@@ -3051,14 +3326,14 @@ var React = __webpack_require__(1);
3051
3326
 
3052
3327
  var styled_components_1 = __webpack_require__(4);
3053
3328
 
3054
- var hocUtils_1 = __webpack_require__(7);
3329
+ var hocUtils_1 = __webpack_require__(8);
3055
3330
 
3056
3331
  var Cover = styled_components_1.default.div.withConfig({
3057
3332
  displayName: "withEditModeCover__Cover",
3058
3333
  componentId: "sc-1gsbnxb-0"
3059
3334
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3060
3335
  var Blocker = styled_components_1.default.div.attrs({
3061
- 'data-splunk-visualization-version': "24.4.0 - 98920928c"
3336
+ 'data-splunk-visualization-version': "24.5.2 - c5ebe25a8"
3062
3337
  }).withConfig({
3063
3338
  displayName: "withEditModeCover__Blocker",
3064
3339
  componentId: "sc-1gsbnxb-1"
@@ -3090,7 +3365,14 @@ exports.default = withEditModeCover;
3090
3365
 
3091
3366
  /***/ }),
3092
3367
 
3093
- /***/ 38:
3368
+ /***/ 4:
3369
+ /***/ (function(module, exports) {
3370
+
3371
+ module.exports = require("styled-components");
3372
+
3373
+ /***/ }),
3374
+
3375
+ /***/ 40:
3094
3376
  /***/ (function(module, exports, __webpack_require__) {
3095
3377
 
3096
3378
  "use strict";
@@ -3106,11 +3388,11 @@ var colorUtils_1 = __webpack_require__(12);
3106
3388
 
3107
3389
  var variables_1 = __webpack_require__(11);
3108
3390
 
3109
- var IconPlaceholder_1 = __webpack_require__(26);
3391
+ var IconPlaceholder_1 = __webpack_require__(25);
3110
3392
 
3111
3393
  var VizBehavior_1 = __webpack_require__(5);
3112
3394
 
3113
- var hocUtils_1 = __webpack_require__(7);
3395
+ var hocUtils_1 = __webpack_require__(8);
3114
3396
 
3115
3397
  var withPlaceholder = function withPlaceholder(Visualization) {
3116
3398
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -3155,48 +3437,34 @@ exports.default = withPlaceholder;
3155
3437
 
3156
3438
  /***/ }),
3157
3439
 
3158
- /***/ 39:
3440
+ /***/ 41:
3159
3441
  /***/ (function(module, exports) {
3160
3442
 
3161
3443
  module.exports = require("@babel/runtime/helpers/toConsumableArray");
3162
3444
 
3163
3445
  /***/ }),
3164
3446
 
3165
- /***/ 4:
3166
- /***/ (function(module, exports) {
3167
-
3168
- module.exports = require("styled-components");
3169
-
3170
- /***/ }),
3171
-
3172
- /***/ 40:
3447
+ /***/ 42:
3173
3448
  /***/ (function(module, exports) {
3174
3449
 
3175
3450
  module.exports = require("@splunk/visualizations-shared/colorConstants");
3176
3451
 
3177
3452
  /***/ }),
3178
3453
 
3179
- /***/ 42:
3454
+ /***/ 44:
3180
3455
  /***/ (function(module, exports) {
3181
3456
 
3182
3457
  module.exports = require("@splunk/visualization-icons/placeholders");
3183
3458
 
3184
3459
  /***/ }),
3185
3460
 
3186
- /***/ 43:
3461
+ /***/ 45:
3187
3462
  /***/ (function(module, exports) {
3188
3463
 
3189
3464
  module.exports = require("@splunk/visualization-icons");
3190
3465
 
3191
3466
  /***/ }),
3192
3467
 
3193
- /***/ 49:
3194
- /***/ (function(module, exports) {
3195
-
3196
- module.exports = require("@babel/runtime/helpers/slicedToArray");
3197
-
3198
- /***/ }),
3199
-
3200
3468
  /***/ 5:
3201
3469
  /***/ (function(module, exports, __webpack_require__) {
3202
3470
 
@@ -3235,13 +3503,20 @@ var VizBehavior;
3235
3503
 
3236
3504
  /***/ }),
3237
3505
 
3506
+ /***/ 51:
3507
+ /***/ (function(module, exports) {
3508
+
3509
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
3510
+
3511
+ /***/ }),
3512
+
3238
3513
  /***/ 6:
3239
3514
  /***/ (function(module, exports, __webpack_require__) {
3240
3515
 
3241
3516
  "use strict";
3242
3517
 
3243
3518
 
3244
- var _defineProperty = __webpack_require__(8);
3519
+ var _defineProperty = __webpack_require__(7);
3245
3520
 
3246
3521
  var __rest = this && this.__rest || function (s, e) {
3247
3522
  var t = {};
@@ -3428,12 +3703,26 @@ exports.generatePrecisionValues = generatePrecisionValues;
3428
3703
  /***/ }),
3429
3704
 
3430
3705
  /***/ 7:
3706
+ /***/ (function(module, exports) {
3707
+
3708
+ module.exports = require("@babel/runtime/helpers/defineProperty");
3709
+
3710
+ /***/ }),
3711
+
3712
+ /***/ 77:
3713
+ /***/ (function(module, exports) {
3714
+
3715
+ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
3716
+
3717
+ /***/ }),
3718
+
3719
+ /***/ 8:
3431
3720
  /***/ (function(module, exports, __webpack_require__) {
3432
3721
 
3433
3722
  "use strict";
3434
3723
 
3435
3724
 
3436
- var _typeof = __webpack_require__(20);
3725
+ var _typeof = __webpack_require__(21);
3437
3726
 
3438
3727
  Object.defineProperty(exports, "__esModule", {
3439
3728
  value: true
@@ -3556,21 +3845,14 @@ exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
3556
3845
 
3557
3846
  /***/ }),
3558
3847
 
3559
- /***/ 8:
3560
- /***/ (function(module, exports) {
3561
-
3562
- module.exports = require("@babel/runtime/helpers/defineProperty");
3563
-
3564
- /***/ }),
3565
-
3566
- /***/ 83:
3848
+ /***/ 85:
3567
3849
  /***/ (function(module, exports) {
3568
3850
 
3569
3851
  module.exports = require("@splunk/react-ui/Table");
3570
3852
 
3571
3853
  /***/ }),
3572
3854
 
3573
- /***/ 84:
3855
+ /***/ 86:
3574
3856
  /***/ (function(module, exports) {
3575
3857
 
3576
3858
  module.exports = require("@splunk/react-sparkline/Line");