@splunk/visualizations 24.4.0 → 24.5.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.
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Placeholder_If_No_Svg_And_No_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_empty_columns_and_fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_label_data_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_value_data_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_missing_column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
- package/Area.js +246 -218
- package/Area.js.map +1 -1
- package/Bar.js +238 -210
- package/Bar.js.map +1 -1
- package/Bubble.js +231 -203
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +230 -197
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +238 -210
- package/Column.js.map +1 -1
- package/Ellipse.js +203 -170
- package/Ellipse.js.map +1 -1
- package/FillerGauge.js +222 -189
- package/FillerGauge.js.map +1 -1
- package/Image.js +199 -164
- package/Image.js.map +1 -1
- package/Line.js +239 -211
- package/Line.js.map +1 -1
- package/LinkGraph.js +264 -223
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +39 -25
- package/Map.config.js.map +1 -1
- package/Map.js +469 -327
- package/Map.js.map +1 -1
- package/Markdown.config.js +29 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +513 -267
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +941 -906
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +230 -196
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +309 -249
- package/Pie.js.map +1 -1
- package/Punchcard.js +263 -229
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +217 -182
- package/Rectangle.js.map +1 -1
- package/Sankey.js +269 -230
- package/Sankey.js.map +1 -1
- package/Scatter.js +314 -286
- package/Scatter.js.map +1 -1
- package/SingleValue.js +398 -363
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +25 -25
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.js +2821 -2653
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.js +359 -324
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +2 -1
- package/Table.config.js.map +1 -1
- package/Table.js +623 -347
- package/Table.js.map +1 -1
- package/common/Charting.js +21 -21
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +10 -10
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +10 -10
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +217 -174
- package/common/OptionsDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/ThemesDoc.js +26 -26
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +3 -3
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +2 -2
- package/common/shapeUtils.js +2 -2
- package/common/withDashboardViz.js +80 -48
- package/common/withDashboardViz.js.map +1 -1
- 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 =
|
|
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
|
-
/***/
|
|
116
|
+
/***/ 11:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
|
-
module.exports = require("@
|
|
119
|
+
module.exports = require("@splunk/themes/variables");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
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.
|
|
223
|
+
"data-splunk-visualization-version": "24.5.0 - b75bfbe79",
|
|
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
|
-
/***/
|
|
245
|
+
/***/ 137:
|
|
253
246
|
/***/ (function(module, exports, __webpack_require__) {
|
|
254
247
|
|
|
255
248
|
"use strict";
|
|
256
249
|
|
|
257
250
|
|
|
258
|
-
var _slicedToArray = __webpack_require__(
|
|
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__(
|
|
275
|
+
var config_1 = __webpack_require__(264);
|
|
281
276
|
|
|
282
277
|
exports.config = config_1.default;
|
|
283
278
|
|
|
284
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
279
|
+
var withDashboardViz_1 = __webpack_require__(29);
|
|
285
280
|
|
|
286
|
-
var PureTable_1 = __webpack_require__(
|
|
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
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
var
|
|
297
|
-
var
|
|
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
|
-
}
|
|
321
|
-
|
|
317
|
+
}
|
|
322
318
|
|
|
323
|
-
|
|
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,24 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
328
324
|
});
|
|
329
325
|
}
|
|
330
326
|
|
|
331
|
-
|
|
327
|
+
if (vizProps.onOptionsChange) {
|
|
328
|
+
var handleColumnFormatChange = function handleColumnFormatChange(updatedColumnFormat) {
|
|
329
|
+
vizProps.onOptionsChange({
|
|
330
|
+
columnFormat: updatedColumnFormat
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
vizProps.onColumnFormatChange = handleColumnFormatChange;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return vizProps;
|
|
332
338
|
};
|
|
333
339
|
|
|
334
340
|
exports.computeVizProps = computeVizProps;
|
|
335
341
|
var Table = withDashboardViz_1.default({
|
|
336
342
|
ReactViz: PureTable_1.default,
|
|
337
343
|
vizConfig: config_1.default,
|
|
344
|
+
disableEditModeCover: true,
|
|
338
345
|
computeVizProps: exports.computeVizProps
|
|
339
346
|
});
|
|
340
347
|
var themes = config_1.default.themes;
|
|
@@ -371,6 +378,13 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
|
371
378
|
|
|
372
379
|
/***/ }),
|
|
373
380
|
|
|
381
|
+
/***/ 19:
|
|
382
|
+
/***/ (function(module, exports) {
|
|
383
|
+
|
|
384
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
385
|
+
|
|
386
|
+
/***/ }),
|
|
387
|
+
|
|
374
388
|
/***/ 2:
|
|
375
389
|
/***/ (function(module, exports) {
|
|
376
390
|
|
|
@@ -378,21 +392,21 @@ module.exports = require("lodash");
|
|
|
378
392
|
|
|
379
393
|
/***/ }),
|
|
380
394
|
|
|
381
|
-
/***/
|
|
395
|
+
/***/ 21:
|
|
382
396
|
/***/ (function(module, exports) {
|
|
383
397
|
|
|
384
398
|
module.exports = require("@babel/runtime/helpers/typeof");
|
|
385
399
|
|
|
386
400
|
/***/ }),
|
|
387
401
|
|
|
388
|
-
/***/
|
|
402
|
+
/***/ 22:
|
|
389
403
|
/***/ (function(module, exports) {
|
|
390
404
|
|
|
391
405
|
module.exports = require("@splunk/themes/pick");
|
|
392
406
|
|
|
393
407
|
/***/ }),
|
|
394
408
|
|
|
395
|
-
/***/
|
|
409
|
+
/***/ 24:
|
|
396
410
|
/***/ (function(module, exports, __webpack_require__) {
|
|
397
411
|
|
|
398
412
|
"use strict";
|
|
@@ -426,148 +440,12 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
|
426
440
|
|
|
427
441
|
/***/ }),
|
|
428
442
|
|
|
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
443
|
/***/ 25:
|
|
501
444
|
/***/ (function(module, exports, __webpack_require__) {
|
|
502
445
|
|
|
503
446
|
"use strict";
|
|
504
447
|
|
|
505
448
|
|
|
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
449
|
Object.defineProperty(exports, "__esModule", {
|
|
572
450
|
value: true
|
|
573
451
|
});
|
|
@@ -654,7 +532,78 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
654
532
|
|
|
655
533
|
/***/ }),
|
|
656
534
|
|
|
657
|
-
/***/
|
|
535
|
+
/***/ 26:
|
|
536
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
537
|
+
|
|
538
|
+
"use strict";
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
var _defineProperty = __webpack_require__(7);
|
|
542
|
+
|
|
543
|
+
Object.defineProperty(exports, "__esModule", {
|
|
544
|
+
value: true
|
|
545
|
+
});
|
|
546
|
+
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
547
|
+
|
|
548
|
+
var T = __webpack_require__(0);
|
|
549
|
+
|
|
550
|
+
var lodash_1 = __webpack_require__(2);
|
|
551
|
+
|
|
552
|
+
var DataSource_1 = __webpack_require__(36);
|
|
553
|
+
|
|
554
|
+
exports.SortParamsPropTypes = T.shape({
|
|
555
|
+
currentSortKey: T.string,
|
|
556
|
+
currentSortDir: T.oneOf(DataSource_1.validSortDirs),
|
|
557
|
+
onSort: T.func
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
var getSortingParams = function getSortingParams(_ref) {
|
|
561
|
+
var requestParams = _ref.requestParams,
|
|
562
|
+
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
563
|
+
var currentSortKey;
|
|
564
|
+
var currentSortDir;
|
|
565
|
+
var nextSortDirMap = {
|
|
566
|
+
asc: 'desc',
|
|
567
|
+
desc: 'asc',
|
|
568
|
+
none: 'asc'
|
|
569
|
+
};
|
|
570
|
+
var onSort;
|
|
571
|
+
|
|
572
|
+
if (lodash_1.isFunction(onRequestParamsChange)) {
|
|
573
|
+
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
574
|
+
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
575
|
+
currentSortDir = requestParams.sort[currentSortKey];
|
|
576
|
+
} // undid memoization since there is a dependency on requestParams, which is a deeply nested object
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
onSort = function onSort(e, _ref2) {
|
|
580
|
+
var sortKey = _ref2.sortKey,
|
|
581
|
+
sortDir = _ref2.sortDir;
|
|
582
|
+
|
|
583
|
+
if (typeof sortKey === 'string') {
|
|
584
|
+
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
585
|
+
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
586
|
+
offset: 0,
|
|
587
|
+
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
588
|
+
}));
|
|
589
|
+
} else {
|
|
590
|
+
onRequestParamsChange(requestParams);
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
return {
|
|
596
|
+
currentSortKey: currentSortKey,
|
|
597
|
+
currentSortDir: currentSortDir,
|
|
598
|
+
onSort: onSort
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
exports.getSortingParams = getSortingParams;
|
|
603
|
+
|
|
604
|
+
/***/ }),
|
|
605
|
+
|
|
606
|
+
/***/ 263:
|
|
658
607
|
/***/ (function(module, exports, __webpack_require__) {
|
|
659
608
|
|
|
660
609
|
"use strict";
|
|
@@ -686,9 +635,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
|
|
|
686
635
|
// for some reason, omitting the default export worked before TS v4
|
|
687
636
|
// see: https://stackoverflow.com/a/34445175
|
|
688
637
|
|
|
689
|
-
__exportStar(__webpack_require__(
|
|
638
|
+
__exportStar(__webpack_require__(137), exports);
|
|
690
639
|
|
|
691
|
-
var Table_1 = __webpack_require__(
|
|
640
|
+
var Table_1 = __webpack_require__(137);
|
|
692
641
|
|
|
693
642
|
Object.defineProperty(exports, "default", {
|
|
694
643
|
enumerable: true,
|
|
@@ -699,13 +648,13 @@ Object.defineProperty(exports, "default", {
|
|
|
699
648
|
|
|
700
649
|
/***/ }),
|
|
701
650
|
|
|
702
|
-
/***/
|
|
651
|
+
/***/ 264:
|
|
703
652
|
/***/ (function(module, exports, __webpack_require__) {
|
|
704
653
|
|
|
705
654
|
"use strict";
|
|
706
655
|
|
|
707
656
|
|
|
708
|
-
var _toConsumableArray = __webpack_require__(
|
|
657
|
+
var _toConsumableArray = __webpack_require__(41);
|
|
709
658
|
|
|
710
659
|
Object.defineProperty(exports, "__esModule", {
|
|
711
660
|
value: true
|
|
@@ -717,23 +666,23 @@ var lodash_1 = __webpack_require__(2);
|
|
|
717
666
|
|
|
718
667
|
var schemaUtils_1 = __webpack_require__(15);
|
|
719
668
|
|
|
720
|
-
var colorConstants_1 = __webpack_require__(
|
|
669
|
+
var colorConstants_1 = __webpack_require__(42);
|
|
721
670
|
|
|
722
|
-
var visualization_icons_1 = __webpack_require__(
|
|
671
|
+
var visualization_icons_1 = __webpack_require__(45);
|
|
723
672
|
|
|
724
|
-
var placeholders_1 = __webpack_require__(
|
|
673
|
+
var placeholders_1 = __webpack_require__(44);
|
|
725
674
|
|
|
726
675
|
var variables_1 = __webpack_require__(11);
|
|
727
676
|
|
|
728
|
-
var pick_1 = __webpack_require__(
|
|
677
|
+
var pick_1 = __webpack_require__(22);
|
|
729
678
|
|
|
730
679
|
var configUtils_1 = __webpack_require__(6);
|
|
731
680
|
|
|
732
681
|
var VizBehavior_1 = __webpack_require__(5);
|
|
733
682
|
|
|
734
|
-
var consts_1 = __webpack_require__(
|
|
683
|
+
var consts_1 = __webpack_require__(110);
|
|
735
684
|
|
|
736
|
-
var VizCategory_1 = __webpack_require__(
|
|
685
|
+
var VizCategory_1 = __webpack_require__(28);
|
|
737
686
|
|
|
738
687
|
var dataContract = {
|
|
739
688
|
requiredDataSources: [{
|
|
@@ -966,7 +915,8 @@ var optionsSchema = {
|
|
|
966
915
|
},
|
|
967
916
|
width: {
|
|
968
917
|
description: 'Controls how wide in pixels (where 1px = 1/96th of 1in) the column should be displayed.',
|
|
969
|
-
type: 'number'
|
|
918
|
+
type: 'number',
|
|
919
|
+
minimum: 30
|
|
970
920
|
}
|
|
971
921
|
}
|
|
972
922
|
}
|
|
@@ -1377,13 +1327,17 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
1377
1327
|
|
|
1378
1328
|
/***/ }),
|
|
1379
1329
|
|
|
1380
|
-
/***/
|
|
1330
|
+
/***/ 265:
|
|
1381
1331
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1382
1332
|
|
|
1383
1333
|
"use strict";
|
|
1384
1334
|
|
|
1385
1335
|
|
|
1386
|
-
var
|
|
1336
|
+
var _slicedToArray = __webpack_require__(51);
|
|
1337
|
+
|
|
1338
|
+
var _defineProperty = __webpack_require__(7);
|
|
1339
|
+
|
|
1340
|
+
var _taggedTemplateLiteral = __webpack_require__(77);
|
|
1387
1341
|
|
|
1388
1342
|
var _templateObject, _templateObject2;
|
|
1389
1343
|
|
|
@@ -1414,43 +1368,50 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
1414
1368
|
|
|
1415
1369
|
var i18n_1 = __webpack_require__(3);
|
|
1416
1370
|
|
|
1417
|
-
var Table_1 = __webpack_require__(
|
|
1371
|
+
var Table_1 = __webpack_require__(85);
|
|
1418
1372
|
|
|
1419
|
-
var Paginator_1 = __webpack_require__(
|
|
1373
|
+
var Paginator_1 = __webpack_require__(266);
|
|
1420
1374
|
|
|
1421
|
-
var Message_1 = __webpack_require__(
|
|
1375
|
+
var Message_1 = __webpack_require__(267);
|
|
1422
1376
|
|
|
1423
1377
|
var colorUtils_1 = __webpack_require__(12);
|
|
1424
1378
|
|
|
1425
1379
|
var style_1 = __webpack_require__(14);
|
|
1426
1380
|
|
|
1427
|
-
var pick_1 = __webpack_require__(
|
|
1381
|
+
var pick_1 = __webpack_require__(22);
|
|
1428
1382
|
|
|
1429
1383
|
var variables_1 = __webpack_require__(11);
|
|
1430
1384
|
|
|
1431
|
-
var hooks_1 = __webpack_require__(
|
|
1385
|
+
var hooks_1 = __webpack_require__(268);
|
|
1432
1386
|
|
|
1433
|
-
var consts_1 = __webpack_require__(
|
|
1387
|
+
var consts_1 = __webpack_require__(110);
|
|
1434
1388
|
|
|
1435
|
-
var cells_1 = __webpack_require__(
|
|
1389
|
+
var cells_1 = __webpack_require__(269);
|
|
1436
1390
|
|
|
1437
|
-
var getPagination_1 = __webpack_require__(
|
|
1391
|
+
var getPagination_1 = __webpack_require__(27);
|
|
1438
1392
|
|
|
1439
|
-
var getSorting_1 = __webpack_require__(
|
|
1393
|
+
var getSorting_1 = __webpack_require__(26);
|
|
1394
|
+
|
|
1395
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1440
1396
|
|
|
1441
|
-
var
|
|
1397
|
+
var utils_1 = __webpack_require__(274); // debounce was imported this way due to typing
|
|
1442
1398
|
// eslint-disable-next-line import/order
|
|
1443
1399
|
|
|
1444
1400
|
|
|
1445
|
-
var debounce = __webpack_require__(
|
|
1401
|
+
var debounce = __webpack_require__(275);
|
|
1446
1402
|
|
|
1403
|
+
var MINIMUM_COLUMN_SIZE = 30;
|
|
1447
1404
|
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
1448
1405
|
displayName: "PureTable__NonVisibleTableHead",
|
|
1449
1406
|
componentId: "tovzjg-0"
|
|
1450
1407
|
})(["display:none;"]);
|
|
1408
|
+
var FixedTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
1409
|
+
displayName: "PureTable__FixedTableHead",
|
|
1410
|
+
componentId: "tovzjg-1"
|
|
1411
|
+
})(["position:sticky;top:0;"]);
|
|
1451
1412
|
var VizTableContainer = styled_components_1.default.div.withConfig({
|
|
1452
1413
|
displayName: "PureTable__VizTableContainer",
|
|
1453
|
-
componentId: "tovzjg-
|
|
1414
|
+
componentId: "tovzjg-2"
|
|
1454
1415
|
})(["box-sizing:border-box;padding:", ";background-color:", ";display:flex;flex-flow:column nowrap;overflow:hidden;"], pick_1.default({
|
|
1455
1416
|
enterprise: variables_1.default.spacingHalf,
|
|
1456
1417
|
prisma: variables_1.default.spacingSmall
|
|
@@ -1462,8 +1423,8 @@ var PAGINATOR_CONTAINER_HEIGHT = 38;
|
|
|
1462
1423
|
var PAGINATOR_SPACING = 5;
|
|
1463
1424
|
var SUITableContainer = styled_components_1.default.div.withConfig({
|
|
1464
1425
|
displayName: "PureTable__SUITableContainer",
|
|
1465
|
-
componentId: "tovzjg-
|
|
1466
|
-
})(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", ""], function (_ref) {
|
|
1426
|
+
componentId: "tovzjg-3"
|
|
1427
|
+
})(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " & [data-fixed-column='true']{table-layout:", ";width:", ";}"], function (_ref) {
|
|
1467
1428
|
var width = _ref.width,
|
|
1468
1429
|
height = _ref.height,
|
|
1469
1430
|
isPaging = _ref.isPaging,
|
|
@@ -1492,11 +1453,17 @@ var SUITableContainer = styled_components_1.default.div.withConfig({
|
|
|
1492
1453
|
}, function (_ref4) {
|
|
1493
1454
|
var headerStyle = _ref4.headerStyle;
|
|
1494
1455
|
return headerStyle && headerStyle.color && styled_components_1.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & [data-test='head-cell'] > div > span {\n color: ", ";\n }\n "])), headerStyle.color);
|
|
1456
|
+
}, function (_ref5) {
|
|
1457
|
+
var widthSet = _ref5.widthSet;
|
|
1458
|
+
return widthSet ? 'fixed' : 'auto';
|
|
1459
|
+
}, function (_ref6) {
|
|
1460
|
+
var widthSet = _ref6.widthSet;
|
|
1461
|
+
return widthSet ? '0' : '100%';
|
|
1495
1462
|
});
|
|
1496
1463
|
SUITableContainer.displayName = 'SUITableContainer';
|
|
1497
1464
|
var PaginatorContainer = styled_components_1.default.div.withConfig({
|
|
1498
1465
|
displayName: "PureTable__PaginatorContainer",
|
|
1499
|
-
componentId: "tovzjg-
|
|
1466
|
+
componentId: "tovzjg-4"
|
|
1500
1467
|
})(["position:relative;text-align:right;height:", "px;"], PAGINATOR_CONTAINER_HEIGHT);
|
|
1501
1468
|
PaginatorContainer.displayName = 'PaginatorContainer'; // allow for early return in case of empty tableBody while still following hook rules
|
|
1502
1469
|
|
|
@@ -1545,6 +1512,44 @@ var withEmptyTableMessage = function withEmptyTableMessage(Viz) {
|
|
|
1545
1512
|
return Wrapper;
|
|
1546
1513
|
};
|
|
1547
1514
|
|
|
1515
|
+
var useTableHead = function useTableHead(visibility) {
|
|
1516
|
+
if (visibility === 'none') {
|
|
1517
|
+
return NonVisibleTableHead;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
if (visibility === 'fixed') {
|
|
1521
|
+
return FixedTableHead;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
return Table_1.default.Head;
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
var HeadCell = function HeadCell(_a) {
|
|
1528
|
+
var setTempColumnWidth = _a.setTempColumnWidth,
|
|
1529
|
+
setRemainingWidth = _a.setRemainingWidth,
|
|
1530
|
+
value = _a.value,
|
|
1531
|
+
widthSet = _a.widthSet,
|
|
1532
|
+
headerVisibility = _a.headerVisibility,
|
|
1533
|
+
props = __rest(_a, ["setTempColumnWidth", "setRemainingWidth", "value", "widthSet", "headerVisibility"]);
|
|
1534
|
+
|
|
1535
|
+
var cellRef = React.useRef(null);
|
|
1536
|
+
React.useEffect(function () {
|
|
1537
|
+
if (!widthSet && cellRef.current && cellRef.current.clientWidth >= 0 && headerVisibility !== 'none') {
|
|
1538
|
+
setTempColumnWidth(function (columnWidth) {
|
|
1539
|
+
return Object.assign(Object.assign({}, columnWidth), _defineProperty({}, value, {
|
|
1540
|
+
width: cellRef.current.clientWidth
|
|
1541
|
+
}));
|
|
1542
|
+
});
|
|
1543
|
+
setRemainingWidth(function (prevWidth) {
|
|
1544
|
+
return prevWidth + Math.max(props.width ? cellRef.current.clientWidth - props.width : 0, 0);
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
return React.createElement(Table_1.default.HeadCell, Object.assign({
|
|
1549
|
+
elementRef: cellRef
|
|
1550
|
+
}, props), value);
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1548
1553
|
var PureTable = function PureTable(props) {
|
|
1549
1554
|
var count = props.count,
|
|
1550
1555
|
width = props.width,
|
|
@@ -1559,19 +1564,74 @@ var PureTable = function PureTable(props) {
|
|
|
1559
1564
|
onSort = _props$sortParams.onSort,
|
|
1560
1565
|
_a = props.paginatorParams,
|
|
1561
1566
|
isPaging = _a.isPaging,
|
|
1562
|
-
|
|
1563
|
-
|
|
1567
|
+
paginatorOnChange = _a.onChange,
|
|
1568
|
+
paginatorProps = __rest(_a, ["isPaging", "onChange"]),
|
|
1569
|
+
onCellClick = props.onCellClick,
|
|
1570
|
+
onColumnFormatChange = props.onColumnFormatChange,
|
|
1571
|
+
columnFormat = props.columnFormat,
|
|
1572
|
+
mode = props.mode,
|
|
1573
|
+
headerVisibility = props.headerVisibility;
|
|
1574
|
+
|
|
1575
|
+
var _React$useState = React.useState(columnFormat),
|
|
1576
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1577
|
+
columns = _React$useState2[0],
|
|
1578
|
+
setColumns = _React$useState2[1];
|
|
1579
|
+
|
|
1580
|
+
var _React$useState3 = React.useState(columnFormat),
|
|
1581
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
1582
|
+
tempColumns = _React$useState4[0],
|
|
1583
|
+
setTempColumns = _React$useState4[1];
|
|
1584
|
+
|
|
1585
|
+
var _React$useState5 = React.useState(0),
|
|
1586
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1587
|
+
remainingWidth = _React$useState6[0],
|
|
1588
|
+
setRemainingWidth = _React$useState6[1];
|
|
1589
|
+
|
|
1590
|
+
var numColumnsWithoutWidth = Object.keys(tempColumns).reduce(function (acc, key) {
|
|
1591
|
+
var _a;
|
|
1592
|
+
|
|
1593
|
+
if ((_a = columns[key]) === null || _a === void 0 ? void 0 : _a.width) {
|
|
1594
|
+
return acc;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
return acc + 1;
|
|
1598
|
+
}, 0);
|
|
1599
|
+
var containerRef = React.useRef(null);
|
|
1600
|
+
var widthRef = React.useRef(0);
|
|
1601
|
+
var widthSet = tableHeader.cells.length === tableHeader.cells.filter(function (_ref7) {
|
|
1602
|
+
var value = _ref7.value,
|
|
1603
|
+
showCell = _ref7.showCell;
|
|
1564
1604
|
|
|
1605
|
+
var _a, _b;
|
|
1606
|
+
|
|
1607
|
+
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;
|
|
1608
|
+
}).length;
|
|
1609
|
+
React.useEffect(function () {
|
|
1610
|
+
if (containerRef.current && containerRef.current.clientWidth !== widthRef.current) {
|
|
1611
|
+
widthRef.current = containerRef.current.clientWidth;
|
|
1612
|
+
recalculateTempColumnWidths();
|
|
1613
|
+
}
|
|
1614
|
+
});
|
|
1565
1615
|
var firstRenderCount = React.useRef(count);
|
|
1566
1616
|
React.useEffect(function () {
|
|
1567
1617
|
if (firstRenderCount.current !== count) {
|
|
1568
1618
|
firstRenderCount.current = count;
|
|
1569
|
-
|
|
1619
|
+
paginatorOnChange(null, {
|
|
1570
1620
|
count: count
|
|
1571
1621
|
});
|
|
1572
1622
|
}
|
|
1573
1623
|
}, [count, paginatorProps]);
|
|
1574
|
-
var
|
|
1624
|
+
var stringifiedColumnFormat = JSON.stringify(columnFormat);
|
|
1625
|
+
var columnFormatRef = React.useRef(stringifiedColumnFormat);
|
|
1626
|
+
var modeRef = React.useRef(mode);
|
|
1627
|
+
React.useEffect(function () {
|
|
1628
|
+
if (modeRef.current !== mode || columnFormatRef.current !== stringifiedColumnFormat) {
|
|
1629
|
+
columnFormatRef.current = stringifiedColumnFormat;
|
|
1630
|
+
modeRef.current = mode;
|
|
1631
|
+
setColumns(columnFormat);
|
|
1632
|
+
}
|
|
1633
|
+
}, [mode, stringifiedColumnFormat]);
|
|
1634
|
+
var TableHead = useTableHead(headerVisibility);
|
|
1575
1635
|
var debouncedDrilldown = debounce(function (e, payload) {
|
|
1576
1636
|
if (window.getSelection().toString() === '') {
|
|
1577
1637
|
if (lodash_1.isFunction(onCellClick)) {
|
|
@@ -1623,15 +1683,51 @@ var PureTable = function PureTable(props) {
|
|
|
1623
1683
|
debouncedDrilldown(e.nativeEvent, payload);
|
|
1624
1684
|
}
|
|
1625
1685
|
}, [onCellClick, showRowNumbers, tableHeader, tableBody]);
|
|
1686
|
+
var debouncedOnColumnFormatChange = React.useMemo(function () {
|
|
1687
|
+
return debounce(function (newFormat) {
|
|
1688
|
+
onColumnFormatChange(newFormat);
|
|
1689
|
+
}, 300);
|
|
1690
|
+
}, [onColumnFormatChange]);
|
|
1691
|
+
var handleResizeColumn = React.useCallback(function (_event, payload) {
|
|
1692
|
+
var updatedCF = lodash_1.cloneDeep(columns);
|
|
1693
|
+
var field = payload.columnId;
|
|
1694
|
+
updatedCF[field] = Object.assign(Object.assign({}, updatedCF[field]), {
|
|
1695
|
+
width: Math.max(payload.width, MINIMUM_COLUMN_SIZE)
|
|
1696
|
+
});
|
|
1697
|
+
setColumns(updatedCF); // Updates column json in edit mode
|
|
1698
|
+
|
|
1699
|
+
if (mode === 'edit') {
|
|
1700
|
+
debouncedOnColumnFormatChange(updatedCF);
|
|
1701
|
+
}
|
|
1702
|
+
}, [mode, columns, debouncedOnColumnFormatChange]);
|
|
1703
|
+
|
|
1704
|
+
var handleEventClick = function handleEventClick(e) {
|
|
1705
|
+
e.stopPropagation();
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
var recalculateTempColumnWidths = function recalculateTempColumnWidths() {
|
|
1709
|
+
setTempColumns({});
|
|
1710
|
+
setRemainingWidth(0);
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
var withColumnResizing = function withColumnResizing(func) {
|
|
1714
|
+
return function (e, additionalParams) {
|
|
1715
|
+
recalculateTempColumnWidths();
|
|
1716
|
+
func(e, additionalParams);
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1626
1720
|
return React.createElement(VizTableContainer, {
|
|
1627
|
-
backgroundColor: backgroundColor
|
|
1721
|
+
backgroundColor: backgroundColor,
|
|
1722
|
+
ref: containerRef
|
|
1628
1723
|
}, React.createElement(SUITableContainer, {
|
|
1629
1724
|
width: width,
|
|
1630
1725
|
height: height,
|
|
1631
1726
|
isPaging: isPaging,
|
|
1632
|
-
headerStyle: tableHeader.style
|
|
1727
|
+
headerStyle: tableHeader.style,
|
|
1728
|
+
widthSet: widthSet
|
|
1633
1729
|
}, React.createElement(Table_1.default, {
|
|
1634
|
-
headType:
|
|
1730
|
+
headType: headerVisibility !== 'none' ? 'inline' : undefined,
|
|
1635
1731
|
innerStyle: {
|
|
1636
1732
|
height: '100%'
|
|
1637
1733
|
},
|
|
@@ -1639,7 +1735,8 @@ var PureTable = function PureTable(props) {
|
|
|
1639
1735
|
height: '100%',
|
|
1640
1736
|
cursor: onCellClick ? 'pointer' : 'unset'
|
|
1641
1737
|
},
|
|
1642
|
-
onClick: onCellClick ? drilldownHandler : lodash_1.noop
|
|
1738
|
+
onClick: onCellClick ? drilldownHandler : lodash_1.noop,
|
|
1739
|
+
onRequestResizeColumn: handleResizeColumn
|
|
1643
1740
|
}, React.createElement(TableHead, null, tableHeader.cells.filter(function (c) {
|
|
1644
1741
|
return c.showCell;
|
|
1645
1742
|
}).map(function (_a) {
|
|
@@ -1648,13 +1745,27 @@ var PureTable = function PureTable(props) {
|
|
|
1648
1745
|
sortKey = _a.sortKey,
|
|
1649
1746
|
rest = __rest(_a, ["key", "value", "sortKey"]);
|
|
1650
1747
|
|
|
1651
|
-
return React.createElement(
|
|
1748
|
+
return React.createElement(HeadCell, Object.assign({
|
|
1652
1749
|
key: key,
|
|
1653
|
-
|
|
1750
|
+
columnId: value,
|
|
1751
|
+
sortDir: sortKey === currentSortKey ? currentSortDir : 'none',
|
|
1752
|
+
width: utils_1.getColumnWidth({
|
|
1753
|
+
columns: columns,
|
|
1754
|
+
tempColumns: tempColumns,
|
|
1755
|
+
columnName: value,
|
|
1756
|
+
remainingWidth: remainingWidth,
|
|
1757
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1758
|
+
}),
|
|
1759
|
+
onMouseDown: handleEventClick,
|
|
1760
|
+
value: value,
|
|
1761
|
+
setTempColumnWidth: setTempColumns,
|
|
1762
|
+
widthSet: widthSet,
|
|
1763
|
+
onSort: withColumnResizing(onSort),
|
|
1764
|
+
headerVisibility: headerVisibility,
|
|
1765
|
+
setRemainingWidth: setRemainingWidth
|
|
1654
1766
|
}, Object.assign({
|
|
1655
|
-
sortKey: sortKey
|
|
1656
|
-
|
|
1657
|
-
}, rest)), value);
|
|
1767
|
+
sortKey: sortKey
|
|
1768
|
+
}, rest)));
|
|
1658
1769
|
})), React.createElement(Table_1.default.Body, null, tableBody.rows.map(function (row) {
|
|
1659
1770
|
return React.createElement(Table_1.default.Row, {
|
|
1660
1771
|
key: row.key
|
|
@@ -1666,16 +1777,39 @@ var PureTable = function PureTable(props) {
|
|
|
1666
1777
|
type: cell.cellType
|
|
1667
1778
|
}, React.createElement(cells_1.TextCell, {
|
|
1668
1779
|
cell: cell,
|
|
1669
|
-
useMouseOverEffect: !!onCellClick
|
|
1780
|
+
useMouseOverEffect: !!onCellClick,
|
|
1781
|
+
width: utils_1.getColumnWidth({
|
|
1782
|
+
columns: columns,
|
|
1783
|
+
tempColumns: tempColumns,
|
|
1784
|
+
columnName: cell.header,
|
|
1785
|
+
remainingWidth: remainingWidth,
|
|
1786
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1787
|
+
})
|
|
1670
1788
|
}), React.createElement(cells_1.SparklineCell, {
|
|
1671
1789
|
cell: cell,
|
|
1672
|
-
useMouseOverEffect: !!onCellClick
|
|
1790
|
+
useMouseOverEffect: !!onCellClick,
|
|
1791
|
+
width: utils_1.getColumnWidth({
|
|
1792
|
+
columns: columns,
|
|
1793
|
+
tempColumns: tempColumns,
|
|
1794
|
+
columnName: cell.header,
|
|
1795
|
+
remainingWidth: remainingWidth,
|
|
1796
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1797
|
+
})
|
|
1673
1798
|
}), React.createElement(cells_1.ArrayCell, {
|
|
1674
1799
|
cell: cell,
|
|
1675
|
-
useMouseOverEffect: !!onCellClick
|
|
1800
|
+
useMouseOverEffect: !!onCellClick,
|
|
1801
|
+
width: utils_1.getColumnWidth({
|
|
1802
|
+
columns: columns,
|
|
1803
|
+
tempColumns: tempColumns,
|
|
1804
|
+
columnName: cell.header,
|
|
1805
|
+
remainingWidth: remainingWidth,
|
|
1806
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1807
|
+
})
|
|
1676
1808
|
}));
|
|
1677
1809
|
}));
|
|
1678
|
-
})))), isPaging ? React.createElement(PaginatorContainer, null, React.createElement(Paginator_1.default, Object.assign({
|
|
1810
|
+
})))), isPaging ? React.createElement(PaginatorContainer, null, React.createElement(Paginator_1.default, Object.assign({
|
|
1811
|
+
onChange: withColumnResizing(paginatorOnChange)
|
|
1812
|
+
}, paginatorProps))) : null);
|
|
1679
1813
|
};
|
|
1680
1814
|
|
|
1681
1815
|
var cellDataType = T.oneOfType([T.string, T.number, T.arrayOf(T.oneOfType([T.string, T.number]))]);
|
|
@@ -1714,7 +1848,8 @@ PureTable.propTypes = {
|
|
|
1714
1848
|
sparklineTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validSparklineTypes)))
|
|
1715
1849
|
}),
|
|
1716
1850
|
theme: T.any,
|
|
1717
|
-
width: T.oneOfType([T.number])
|
|
1851
|
+
width: T.oneOfType([T.number]),
|
|
1852
|
+
onColumnFormatChange: T.func
|
|
1718
1853
|
};
|
|
1719
1854
|
PureTable.defaultProps = {
|
|
1720
1855
|
columnFormat: {},
|
|
@@ -1734,36 +1869,37 @@ PureTable.defaultProps = {
|
|
|
1734
1869
|
table: [],
|
|
1735
1870
|
tableFormat: {},
|
|
1736
1871
|
theme: {},
|
|
1737
|
-
width: 300
|
|
1872
|
+
width: 300,
|
|
1873
|
+
onColumnFormatChange: lodash_1.noop
|
|
1738
1874
|
};
|
|
1739
1875
|
PureTable.displayName = 'VizTable';
|
|
1740
1876
|
exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable));
|
|
1741
1877
|
|
|
1742
1878
|
/***/ }),
|
|
1743
1879
|
|
|
1744
|
-
/***/
|
|
1880
|
+
/***/ 266:
|
|
1745
1881
|
/***/ (function(module, exports) {
|
|
1746
1882
|
|
|
1747
1883
|
module.exports = require("@splunk/react-ui/Paginator");
|
|
1748
1884
|
|
|
1749
1885
|
/***/ }),
|
|
1750
1886
|
|
|
1751
|
-
/***/
|
|
1887
|
+
/***/ 267:
|
|
1752
1888
|
/***/ (function(module, exports) {
|
|
1753
1889
|
|
|
1754
1890
|
module.exports = require("@splunk/react-ui/Message");
|
|
1755
1891
|
|
|
1756
1892
|
/***/ }),
|
|
1757
1893
|
|
|
1758
|
-
/***/
|
|
1894
|
+
/***/ 268:
|
|
1759
1895
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1760
1896
|
|
|
1761
1897
|
"use strict";
|
|
1762
1898
|
|
|
1763
1899
|
|
|
1764
|
-
var _toConsumableArray = __webpack_require__(
|
|
1900
|
+
var _toConsumableArray = __webpack_require__(41);
|
|
1765
1901
|
|
|
1766
|
-
var _typeof = __webpack_require__(
|
|
1902
|
+
var _typeof = __webpack_require__(21);
|
|
1767
1903
|
|
|
1768
1904
|
Object.defineProperty(exports, "__esModule", {
|
|
1769
1905
|
value: true
|
|
@@ -1774,17 +1910,14 @@ var lodash_1 = __webpack_require__(2);
|
|
|
1774
1910
|
|
|
1775
1911
|
var colorUtils_1 = __webpack_require__(12);
|
|
1776
1912
|
|
|
1777
|
-
var
|
|
1778
|
-
|
|
1779
|
-
var consts_1 = __webpack_require__(108);
|
|
1913
|
+
var consts_1 = __webpack_require__(110);
|
|
1780
1914
|
|
|
1781
1915
|
var isArray = function isArray(v) {
|
|
1782
1916
|
return Array.isArray(v);
|
|
1783
1917
|
};
|
|
1784
1918
|
|
|
1785
1919
|
var getOverflowStyles = function getOverflowStyles(_ref) {
|
|
1786
|
-
var textOverflow = _ref.textOverflow
|
|
1787
|
-
variables = _ref.variables;
|
|
1920
|
+
var textOverflow = _ref.textOverflow;
|
|
1788
1921
|
var styles = {
|
|
1789
1922
|
anywhere: {
|
|
1790
1923
|
wordBreak: 'break-all'
|
|
@@ -1795,7 +1928,6 @@ var getOverflowStyles = function getOverflowStyles(_ref) {
|
|
|
1795
1928
|
overflowWrap: 'break-word'
|
|
1796
1929
|
},
|
|
1797
1930
|
ellipsis: {
|
|
1798
|
-
maxWidth: style_1.toPx(variables && variables.width || 100),
|
|
1799
1931
|
whiteSpace: 'nowrap',
|
|
1800
1932
|
overflow: 'hidden',
|
|
1801
1933
|
textOverflow: 'ellipsis'
|
|
@@ -1835,12 +1967,8 @@ var generateHeader = function generateHeader(value, i, columnFormat, showInterna
|
|
|
1835
1967
|
if (lodash_1.isNumber(columnWidth)) {
|
|
1836
1968
|
var textOverflowType = exports.getTextOverflowType({}, value, 'ellipsis');
|
|
1837
1969
|
var textOverflowStyle = exports.getOverflowStyles({
|
|
1838
|
-
textOverflow: textOverflowType
|
|
1839
|
-
variables: {
|
|
1840
|
-
width: columnWidth
|
|
1841
|
-
}
|
|
1970
|
+
textOverflow: textOverflowType
|
|
1842
1971
|
});
|
|
1843
|
-
ret.width = columnWidth;
|
|
1844
1972
|
ret.truncate = true;
|
|
1845
1973
|
ret.style = textOverflowStyle;
|
|
1846
1974
|
}
|
|
@@ -2124,6 +2252,8 @@ var useTable = function useTable() {
|
|
|
2124
2252
|
cells: []
|
|
2125
2253
|
};
|
|
2126
2254
|
table.forEach(function (column, i) {
|
|
2255
|
+
var _a;
|
|
2256
|
+
|
|
2127
2257
|
var currentHeader = tableHeader.cells[i];
|
|
2128
2258
|
var value = validValueSelector(getColumnFormatData(columnFormat, currentHeader, currentRow), getTableFormatData(tableFormat, i, currentRow), column[currentRow], '');
|
|
2129
2259
|
var rawValue = column[currentRow];
|
|
@@ -2137,17 +2267,12 @@ var useTable = function useTable() {
|
|
|
2137
2267
|
var key = generateKey(value, "".concat(currentRow, "-").concat(i));
|
|
2138
2268
|
var additionalStyles = {};
|
|
2139
2269
|
|
|
2140
|
-
if (lodash_1.isNumber(currentHeader.width)) {
|
|
2270
|
+
if (lodash_1.isNumber((_a = columnFormat[currentHeader.value]) === null || _a === void 0 ? void 0 : _a.width)) {
|
|
2141
2271
|
var textOverflowType = exports.getTextOverflowType(columnFormat, currentHeader.value, 'ellipsis');
|
|
2142
2272
|
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)
|
|
2273
|
+
textOverflow: textOverflowType
|
|
2150
2274
|
});
|
|
2275
|
+
additionalStyles = Object.assign(Object.assign({}, additionalStyles), textOverflowStyle);
|
|
2151
2276
|
}
|
|
2152
2277
|
|
|
2153
2278
|
var showCell = true;
|
|
@@ -2167,6 +2292,7 @@ var useTable = function useTable() {
|
|
|
2167
2292
|
sparklineColor: sparklineColor,
|
|
2168
2293
|
sparklineAreaColor: sparklineAreaColor,
|
|
2169
2294
|
sparklineType: sparklineType,
|
|
2295
|
+
header: currentHeader.value,
|
|
2170
2296
|
style: Object.assign({
|
|
2171
2297
|
backgroundColor: rowBackgroundColor,
|
|
2172
2298
|
color: rowColor
|
|
@@ -2191,7 +2317,7 @@ exports.useTable = useTable;
|
|
|
2191
2317
|
|
|
2192
2318
|
/***/ }),
|
|
2193
2319
|
|
|
2194
|
-
/***/
|
|
2320
|
+
/***/ 269:
|
|
2195
2321
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2196
2322
|
|
|
2197
2323
|
"use strict";
|
|
@@ -2220,17 +2346,82 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2220
2346
|
value: true
|
|
2221
2347
|
});
|
|
2222
2348
|
|
|
2223
|
-
__exportStar(__webpack_require__(
|
|
2349
|
+
__exportStar(__webpack_require__(270), exports);
|
|
2224
2350
|
|
|
2225
|
-
__exportStar(__webpack_require__(
|
|
2351
|
+
__exportStar(__webpack_require__(271), exports);
|
|
2226
2352
|
|
|
2227
|
-
__exportStar(__webpack_require__(
|
|
2353
|
+
__exportStar(__webpack_require__(272), exports);
|
|
2228
2354
|
|
|
2229
|
-
__exportStar(__webpack_require__(
|
|
2355
|
+
__exportStar(__webpack_require__(273), exports);
|
|
2230
2356
|
|
|
2231
2357
|
/***/ }),
|
|
2232
2358
|
|
|
2233
|
-
/***/
|
|
2359
|
+
/***/ 27:
|
|
2360
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2361
|
+
|
|
2362
|
+
"use strict";
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2366
|
+
value: true
|
|
2367
|
+
});
|
|
2368
|
+
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
2369
|
+
|
|
2370
|
+
var T = __webpack_require__(0);
|
|
2371
|
+
|
|
2372
|
+
var lodash_1 = __webpack_require__(2);
|
|
2373
|
+
|
|
2374
|
+
exports.PaginatorParamsPropTypes = T.shape({
|
|
2375
|
+
isPaging: T.bool,
|
|
2376
|
+
current: T.number,
|
|
2377
|
+
totalPages: T.number,
|
|
2378
|
+
onChange: T.func
|
|
2379
|
+
});
|
|
2380
|
+
|
|
2381
|
+
var getPaginationParams = function getPaginationParams(_ref) {
|
|
2382
|
+
var requestParams = _ref.requestParams,
|
|
2383
|
+
meta = _ref.meta,
|
|
2384
|
+
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
2385
|
+
var totalCount = meta && meta.totalCount || 0;
|
|
2386
|
+
var offset = requestParams && requestParams.offset || 0;
|
|
2387
|
+
var count = requestParams && requestParams.count;
|
|
2388
|
+
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
2389
|
+
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
2390
|
+
var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
|
|
2391
|
+
|
|
2392
|
+
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
2393
|
+
var page = _ref2.page,
|
|
2394
|
+
countArg = _ref2.count;
|
|
2395
|
+
var newParams = lodash_1.cloneDeep(requestParams);
|
|
2396
|
+
|
|
2397
|
+
if (typeof countArg === 'number') {
|
|
2398
|
+
newParams.count = countArg;
|
|
2399
|
+
newParams.offset = 0;
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
|
|
2403
|
+
|
|
2404
|
+
if (typeof page === 'number' && page > 0) {
|
|
2405
|
+
newParams.count = pageCount;
|
|
2406
|
+
newParams.offset = (page - 1) * pageCount;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
onRequestParamsChange(newParams);
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2412
|
+
return {
|
|
2413
|
+
isPaging: isPaging,
|
|
2414
|
+
current: current,
|
|
2415
|
+
totalPages: totalPages,
|
|
2416
|
+
onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
|
|
2417
|
+
};
|
|
2418
|
+
};
|
|
2419
|
+
|
|
2420
|
+
exports.getPaginationParams = getPaginationParams;
|
|
2421
|
+
|
|
2422
|
+
/***/ }),
|
|
2423
|
+
|
|
2424
|
+
/***/ 270:
|
|
2234
2425
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2235
2426
|
|
|
2236
2427
|
"use strict";
|
|
@@ -2253,7 +2444,7 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
2253
2444
|
|
|
2254
2445
|
/***/ }),
|
|
2255
2446
|
|
|
2256
|
-
/***/
|
|
2447
|
+
/***/ 271:
|
|
2257
2448
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2258
2449
|
|
|
2259
2450
|
"use strict";
|
|
@@ -2266,13 +2457,16 @@ exports.TextCell = void 0;
|
|
|
2266
2457
|
|
|
2267
2458
|
var React = __webpack_require__(1);
|
|
2268
2459
|
|
|
2269
|
-
var Table_1 = __webpack_require__(
|
|
2460
|
+
var Table_1 = __webpack_require__(85);
|
|
2270
2461
|
|
|
2271
2462
|
var TextCell = function TextCell(_ref) {
|
|
2272
2463
|
var cell = _ref.cell,
|
|
2273
|
-
useMouseOverEffect = _ref.useMouseOverEffect
|
|
2464
|
+
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
2465
|
+
width = _ref.width;
|
|
2274
2466
|
return React.createElement(Table_1.default.Cell, {
|
|
2275
|
-
style: cell.style,
|
|
2467
|
+
style: Object.assign(Object.assign({}, cell.style), {
|
|
2468
|
+
width: width
|
|
2469
|
+
}),
|
|
2276
2470
|
align: cell.align,
|
|
2277
2471
|
"data-test-cell-type": "TextCell",
|
|
2278
2472
|
"data-row-index": cell.rowIndex,
|
|
@@ -2286,7 +2480,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
2286
2480
|
|
|
2287
2481
|
/***/ }),
|
|
2288
2482
|
|
|
2289
|
-
/***/
|
|
2483
|
+
/***/ 272:
|
|
2290
2484
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2291
2485
|
|
|
2292
2486
|
"use strict";
|
|
@@ -2299,14 +2493,17 @@ exports.ArrayCell = void 0;
|
|
|
2299
2493
|
|
|
2300
2494
|
var React = __webpack_require__(1);
|
|
2301
2495
|
|
|
2302
|
-
var Table_1 = __webpack_require__(
|
|
2496
|
+
var Table_1 = __webpack_require__(85);
|
|
2303
2497
|
|
|
2304
2498
|
var ArrayCell = function ArrayCell(_ref) {
|
|
2305
2499
|
var cell = _ref.cell,
|
|
2306
|
-
useMouseOverEffect = _ref.useMouseOverEffect
|
|
2500
|
+
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
2501
|
+
width = _ref.width;
|
|
2307
2502
|
var value = Array.isArray(cell.value) ? cell.value : [cell.value];
|
|
2308
2503
|
return React.createElement(Table_1.default.Cell, {
|
|
2309
|
-
style: cell.style,
|
|
2504
|
+
style: Object.assign(Object.assign({}, cell.style), {
|
|
2505
|
+
width: width
|
|
2506
|
+
}),
|
|
2310
2507
|
align: cell.align,
|
|
2311
2508
|
"data-test-cell-type": "ArrayCell",
|
|
2312
2509
|
onClick: useMouseOverEffect ? function () {} : undefined
|
|
@@ -2325,42 +2522,13 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
2325
2522
|
|
|
2326
2523
|
/***/ }),
|
|
2327
2524
|
|
|
2328
|
-
/***/
|
|
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:
|
|
2525
|
+
/***/ 273:
|
|
2358
2526
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2359
2527
|
|
|
2360
2528
|
"use strict";
|
|
2361
2529
|
|
|
2362
2530
|
|
|
2363
|
-
var _slicedToArray = __webpack_require__(
|
|
2531
|
+
var _slicedToArray = __webpack_require__(51);
|
|
2364
2532
|
|
|
2365
2533
|
Object.defineProperty(exports, "__esModule", {
|
|
2366
2534
|
value: true
|
|
@@ -2369,9 +2537,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
|
|
|
2369
2537
|
|
|
2370
2538
|
var React = __webpack_require__(1);
|
|
2371
2539
|
|
|
2372
|
-
var Table_1 = __webpack_require__(
|
|
2540
|
+
var Table_1 = __webpack_require__(85);
|
|
2373
2541
|
|
|
2374
|
-
var Line_1 = __webpack_require__(
|
|
2542
|
+
var Line_1 = __webpack_require__(86);
|
|
2375
2543
|
|
|
2376
2544
|
var paddingLeftRight = 5;
|
|
2377
2545
|
var paddingTopBottom = 3;
|
|
@@ -2389,7 +2557,8 @@ exports.validSparklineTypes = ['line', 'area'];
|
|
|
2389
2557
|
|
|
2390
2558
|
var SparklineCell = function SparklineCell(_ref) {
|
|
2391
2559
|
var cell = _ref.cell,
|
|
2392
|
-
useMouseOverEffect = _ref.useMouseOverEffect
|
|
2560
|
+
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
2561
|
+
width = _ref.width;
|
|
2393
2562
|
|
|
2394
2563
|
var _React$useState = React.useState(React.createRef()),
|
|
2395
2564
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -2411,7 +2580,7 @@ var SparklineCell = function SparklineCell(_ref) {
|
|
|
2411
2580
|
style: Object.assign(Object.assign({}, cell.style), {
|
|
2412
2581
|
padding: 0,
|
|
2413
2582
|
margin: 0,
|
|
2414
|
-
width:
|
|
2583
|
+
width: width,
|
|
2415
2584
|
height: "".concat(height, "px")
|
|
2416
2585
|
}),
|
|
2417
2586
|
align: cell.align,
|
|
@@ -2446,7 +2615,50 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
2446
2615
|
|
|
2447
2616
|
/***/ }),
|
|
2448
2617
|
|
|
2449
|
-
/***/
|
|
2618
|
+
/***/ 274:
|
|
2619
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2620
|
+
|
|
2621
|
+
"use strict";
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2625
|
+
value: true
|
|
2626
|
+
});
|
|
2627
|
+
exports.getColumnWidth = void 0;
|
|
2628
|
+
|
|
2629
|
+
var getColumnWidth = function getColumnWidth(_ref) {
|
|
2630
|
+
var columns = _ref.columns,
|
|
2631
|
+
tempColumns = _ref.tempColumns,
|
|
2632
|
+
columnName = _ref.columnName,
|
|
2633
|
+
remainingWidth = _ref.remainingWidth,
|
|
2634
|
+
numColumnsWithoutWidth = _ref.numColumnsWithoutWidth;
|
|
2635
|
+
|
|
2636
|
+
var _a, _b, _c, _d, _e, _f; // If both columnFormats are undefined return 0
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
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) {
|
|
2640
|
+
return 0;
|
|
2641
|
+
} // Column width is defined in the dashboard definition
|
|
2642
|
+
|
|
2643
|
+
|
|
2644
|
+
if (((_c = columns[columnName]) === null || _c === void 0 ? void 0 : _c.width) !== undefined) {
|
|
2645
|
+
return (_d = columns[columnName]) === null || _d === void 0 ? void 0 : _d.width;
|
|
2646
|
+
} // Some columns in the table have a defined width; distribute remaining width to this column
|
|
2647
|
+
|
|
2648
|
+
|
|
2649
|
+
if (numColumnsWithoutWidth !== 0) {
|
|
2650
|
+
return ((_e = tempColumns[columnName]) === null || _e === void 0 ? void 0 : _e.width) + remainingWidth / numColumnsWithoutWidth;
|
|
2651
|
+
} // No columns have a width in the dashboard definition
|
|
2652
|
+
|
|
2653
|
+
|
|
2654
|
+
return (_f = tempColumns[columnName]) === null || _f === void 0 ? void 0 : _f.width;
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
exports.getColumnWidth = getColumnWidth;
|
|
2658
|
+
|
|
2659
|
+
/***/ }),
|
|
2660
|
+
|
|
2661
|
+
/***/ 275:
|
|
2450
2662
|
/***/ (function(module, exports) {
|
|
2451
2663
|
|
|
2452
2664
|
module.exports = require("lodash/debounce");
|
|
@@ -2459,6 +2671,35 @@ module.exports = require("lodash/debounce");
|
|
|
2459
2671
|
"use strict";
|
|
2460
2672
|
|
|
2461
2673
|
|
|
2674
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2675
|
+
value: true
|
|
2676
|
+
});
|
|
2677
|
+
exports.VizCategory = void 0;
|
|
2678
|
+
var VizCategory;
|
|
2679
|
+
|
|
2680
|
+
(function (VizCategory) {
|
|
2681
|
+
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
2682
|
+
VizCategory["TRENDS"] = "Trends";
|
|
2683
|
+
VizCategory["COMPARISONS"] = "Comparisons";
|
|
2684
|
+
VizCategory["TABLE"] = "Table";
|
|
2685
|
+
VizCategory["GAUGE"] = "Gauge";
|
|
2686
|
+
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
2687
|
+
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
2688
|
+
VizCategory["SHAPES"] = "Shapes";
|
|
2689
|
+
VizCategory["MISC"] = "misc";
|
|
2690
|
+
VizCategory["FLOW"] = "Flow";
|
|
2691
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
2692
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
2693
|
+
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
2694
|
+
|
|
2695
|
+
/***/ }),
|
|
2696
|
+
|
|
2697
|
+
/***/ 29:
|
|
2698
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2699
|
+
|
|
2700
|
+
"use strict";
|
|
2701
|
+
|
|
2702
|
+
|
|
2462
2703
|
Object.defineProperty(exports, "__esModule", {
|
|
2463
2704
|
value: true
|
|
2464
2705
|
});
|
|
@@ -2467,33 +2708,37 @@ var React = __webpack_require__(1);
|
|
|
2467
2708
|
|
|
2468
2709
|
var lodash_1 = __webpack_require__(2);
|
|
2469
2710
|
|
|
2470
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
2711
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(30);
|
|
2712
|
+
|
|
2713
|
+
var Options_1 = __webpack_require__(31);
|
|
2471
2714
|
|
|
2472
|
-
var
|
|
2715
|
+
var SanitizeProps_1 = __webpack_require__(32);
|
|
2473
2716
|
|
|
2474
|
-
var
|
|
2717
|
+
var TimezoneContext_1 = __webpack_require__(19);
|
|
2718
|
+
|
|
2719
|
+
var moment_1 = __webpack_require__(33);
|
|
2475
2720
|
|
|
2476
2721
|
var styled_components_1 = __webpack_require__(4);
|
|
2477
2722
|
|
|
2478
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
2723
|
+
var SplunkVisualization_1 = __webpack_require__(34);
|
|
2479
2724
|
|
|
2480
2725
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2481
2726
|
|
|
2482
|
-
var getSorting_1 = __webpack_require__(
|
|
2727
|
+
var getSorting_1 = __webpack_require__(26);
|
|
2483
2728
|
|
|
2484
|
-
var getPagination_1 = __webpack_require__(
|
|
2729
|
+
var getPagination_1 = __webpack_require__(27);
|
|
2485
2730
|
|
|
2486
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
2731
|
+
var useDeepMemo_1 = __webpack_require__(37);
|
|
2487
2732
|
|
|
2488
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
2733
|
+
var JSONSchemaUtils_1 = __webpack_require__(24);
|
|
2489
2734
|
|
|
2490
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
2735
|
+
var MissingPropsMessage_1 = __webpack_require__(38);
|
|
2491
2736
|
|
|
2492
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
2737
|
+
var withEditModeCover_1 = __webpack_require__(39);
|
|
2493
2738
|
|
|
2494
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
2739
|
+
var withPlaceholder_1 = __webpack_require__(40);
|
|
2495
2740
|
|
|
2496
|
-
var hocUtils_1 = __webpack_require__(
|
|
2741
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
2497
2742
|
/**
|
|
2498
2743
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
2499
2744
|
* @param {DashboardVizOpts} opts
|
|
@@ -2526,6 +2771,23 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2526
2771
|
theme = props.theme,
|
|
2527
2772
|
onRequestParamsChange = props.onRequestParamsChange;
|
|
2528
2773
|
|
|
2774
|
+
var _React$useContext = React.useContext(TimezoneContext_1.default),
|
|
2775
|
+
serializedTimezone = _React$useContext.serializedTimezone;
|
|
2776
|
+
|
|
2777
|
+
if (serializedTimezone) {
|
|
2778
|
+
/*
|
|
2779
|
+
@splunk/moment currently does not allow us to customize the timezone on a per visualization basis.
|
|
2780
|
+
This ensures that if a timezone was provided via TimezoneContext @splunk/moment time formatting
|
|
2781
|
+
will use it.
|
|
2782
|
+
@TODO(pwied):
|
|
2783
|
+
- remove when we moved away from @splunk/moment
|
|
2784
|
+
- provide timezone context to dynamic option evaluation phase
|
|
2785
|
+
*/
|
|
2786
|
+
if (!moment_1.default.getDefaultSplunkTimezone()) {
|
|
2787
|
+
moment_1.default.setDefaultSplunkTimezone(serializedTimezone);
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2529
2791
|
var themeFunc = function themeFunc(themeVar) {
|
|
2530
2792
|
var _a, _b;
|
|
2531
2793
|
|
|
@@ -2554,7 +2816,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2554
2816
|
console.error("unexpected error evaluating options: + ".concat(e.message));
|
|
2555
2817
|
return {};
|
|
2556
2818
|
}
|
|
2557
|
-
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources]); // useEffect hook needs to be initialized before any early returns
|
|
2819
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
|
|
2558
2820
|
// 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
2821
|
|
|
2560
2822
|
React.useEffect(function () {
|
|
@@ -2678,35 +2940,42 @@ exports.default = withDashboardViz;
|
|
|
2678
2940
|
|
|
2679
2941
|
/***/ }),
|
|
2680
2942
|
|
|
2681
|
-
/***/
|
|
2943
|
+
/***/ 3:
|
|
2682
2944
|
/***/ (function(module, exports) {
|
|
2683
2945
|
|
|
2684
|
-
module.exports = require("@splunk/
|
|
2946
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
2685
2947
|
|
|
2686
2948
|
/***/ }),
|
|
2687
2949
|
|
|
2688
|
-
/***/
|
|
2950
|
+
/***/ 30:
|
|
2689
2951
|
/***/ (function(module, exports) {
|
|
2690
2952
|
|
|
2691
|
-
module.exports = require("@splunk/
|
|
2953
|
+
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2692
2954
|
|
|
2693
2955
|
/***/ }),
|
|
2694
2956
|
|
|
2695
|
-
/***/
|
|
2957
|
+
/***/ 31:
|
|
2696
2958
|
/***/ (function(module, exports) {
|
|
2697
2959
|
|
|
2698
2960
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
2699
2961
|
|
|
2700
2962
|
/***/ }),
|
|
2701
2963
|
|
|
2702
|
-
/***/
|
|
2964
|
+
/***/ 32:
|
|
2703
2965
|
/***/ (function(module, exports) {
|
|
2704
2966
|
|
|
2705
2967
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2706
2968
|
|
|
2707
2969
|
/***/ }),
|
|
2708
2970
|
|
|
2709
|
-
/***/
|
|
2971
|
+
/***/ 33:
|
|
2972
|
+
/***/ (function(module, exports) {
|
|
2973
|
+
|
|
2974
|
+
module.exports = require("@splunk/moment");
|
|
2975
|
+
|
|
2976
|
+
/***/ }),
|
|
2977
|
+
|
|
2978
|
+
/***/ 34:
|
|
2710
2979
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2711
2980
|
|
|
2712
2981
|
"use strict";
|
|
@@ -2724,7 +2993,7 @@ var T = __webpack_require__(0);
|
|
|
2724
2993
|
|
|
2725
2994
|
var lodash_1 = __webpack_require__(2);
|
|
2726
2995
|
|
|
2727
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2996
|
+
var VizActionHandler_1 = __webpack_require__(35); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2728
2997
|
|
|
2729
2998
|
|
|
2730
2999
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2858,7 +3127,7 @@ exports.default = SplunkVisualization;
|
|
|
2858
3127
|
|
|
2859
3128
|
/***/ }),
|
|
2860
3129
|
|
|
2861
|
-
/***/
|
|
3130
|
+
/***/ 35:
|
|
2862
3131
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2863
3132
|
|
|
2864
3133
|
"use strict";
|
|
@@ -2896,7 +3165,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
2896
3165
|
|
|
2897
3166
|
/***/ }),
|
|
2898
3167
|
|
|
2899
|
-
/***/
|
|
3168
|
+
/***/ 36:
|
|
2900
3169
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2901
3170
|
|
|
2902
3171
|
"use strict";
|
|
@@ -2910,7 +3179,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
2910
3179
|
|
|
2911
3180
|
/***/ }),
|
|
2912
3181
|
|
|
2913
|
-
/***/
|
|
3182
|
+
/***/ 37:
|
|
2914
3183
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2915
3184
|
|
|
2916
3185
|
"use strict";
|
|
@@ -2956,7 +3225,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
2956
3225
|
|
|
2957
3226
|
/***/ }),
|
|
2958
3227
|
|
|
2959
|
-
/***/
|
|
3228
|
+
/***/ 38:
|
|
2960
3229
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2961
3230
|
|
|
2962
3231
|
"use strict";
|
|
@@ -3037,7 +3306,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
3037
3306
|
|
|
3038
3307
|
/***/ }),
|
|
3039
3308
|
|
|
3040
|
-
/***/
|
|
3309
|
+
/***/ 39:
|
|
3041
3310
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3042
3311
|
|
|
3043
3312
|
"use strict";
|
|
@@ -3051,14 +3320,14 @@ var React = __webpack_require__(1);
|
|
|
3051
3320
|
|
|
3052
3321
|
var styled_components_1 = __webpack_require__(4);
|
|
3053
3322
|
|
|
3054
|
-
var hocUtils_1 = __webpack_require__(
|
|
3323
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
3055
3324
|
|
|
3056
3325
|
var Cover = styled_components_1.default.div.withConfig({
|
|
3057
3326
|
displayName: "withEditModeCover__Cover",
|
|
3058
3327
|
componentId: "sc-1gsbnxb-0"
|
|
3059
3328
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3060
3329
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3061
|
-
'data-splunk-visualization-version': "24.
|
|
3330
|
+
'data-splunk-visualization-version': "24.5.0 - b75bfbe79"
|
|
3062
3331
|
}).withConfig({
|
|
3063
3332
|
displayName: "withEditModeCover__Blocker",
|
|
3064
3333
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3090,7 +3359,14 @@ exports.default = withEditModeCover;
|
|
|
3090
3359
|
|
|
3091
3360
|
/***/ }),
|
|
3092
3361
|
|
|
3093
|
-
/***/
|
|
3362
|
+
/***/ 4:
|
|
3363
|
+
/***/ (function(module, exports) {
|
|
3364
|
+
|
|
3365
|
+
module.exports = require("styled-components");
|
|
3366
|
+
|
|
3367
|
+
/***/ }),
|
|
3368
|
+
|
|
3369
|
+
/***/ 40:
|
|
3094
3370
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3095
3371
|
|
|
3096
3372
|
"use strict";
|
|
@@ -3106,11 +3382,11 @@ var colorUtils_1 = __webpack_require__(12);
|
|
|
3106
3382
|
|
|
3107
3383
|
var variables_1 = __webpack_require__(11);
|
|
3108
3384
|
|
|
3109
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
3385
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
3110
3386
|
|
|
3111
3387
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3112
3388
|
|
|
3113
|
-
var hocUtils_1 = __webpack_require__(
|
|
3389
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
3114
3390
|
|
|
3115
3391
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3116
3392
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -3155,48 +3431,34 @@ exports.default = withPlaceholder;
|
|
|
3155
3431
|
|
|
3156
3432
|
/***/ }),
|
|
3157
3433
|
|
|
3158
|
-
/***/
|
|
3434
|
+
/***/ 41:
|
|
3159
3435
|
/***/ (function(module, exports) {
|
|
3160
3436
|
|
|
3161
3437
|
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3162
3438
|
|
|
3163
3439
|
/***/ }),
|
|
3164
3440
|
|
|
3165
|
-
/***/
|
|
3166
|
-
/***/ (function(module, exports) {
|
|
3167
|
-
|
|
3168
|
-
module.exports = require("styled-components");
|
|
3169
|
-
|
|
3170
|
-
/***/ }),
|
|
3171
|
-
|
|
3172
|
-
/***/ 40:
|
|
3441
|
+
/***/ 42:
|
|
3173
3442
|
/***/ (function(module, exports) {
|
|
3174
3443
|
|
|
3175
3444
|
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3176
3445
|
|
|
3177
3446
|
/***/ }),
|
|
3178
3447
|
|
|
3179
|
-
/***/
|
|
3448
|
+
/***/ 44:
|
|
3180
3449
|
/***/ (function(module, exports) {
|
|
3181
3450
|
|
|
3182
3451
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3183
3452
|
|
|
3184
3453
|
/***/ }),
|
|
3185
3454
|
|
|
3186
|
-
/***/
|
|
3455
|
+
/***/ 45:
|
|
3187
3456
|
/***/ (function(module, exports) {
|
|
3188
3457
|
|
|
3189
3458
|
module.exports = require("@splunk/visualization-icons");
|
|
3190
3459
|
|
|
3191
3460
|
/***/ }),
|
|
3192
3461
|
|
|
3193
|
-
/***/ 49:
|
|
3194
|
-
/***/ (function(module, exports) {
|
|
3195
|
-
|
|
3196
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3197
|
-
|
|
3198
|
-
/***/ }),
|
|
3199
|
-
|
|
3200
3462
|
/***/ 5:
|
|
3201
3463
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3202
3464
|
|
|
@@ -3235,13 +3497,20 @@ var VizBehavior;
|
|
|
3235
3497
|
|
|
3236
3498
|
/***/ }),
|
|
3237
3499
|
|
|
3500
|
+
/***/ 51:
|
|
3501
|
+
/***/ (function(module, exports) {
|
|
3502
|
+
|
|
3503
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3504
|
+
|
|
3505
|
+
/***/ }),
|
|
3506
|
+
|
|
3238
3507
|
/***/ 6:
|
|
3239
3508
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3240
3509
|
|
|
3241
3510
|
"use strict";
|
|
3242
3511
|
|
|
3243
3512
|
|
|
3244
|
-
var _defineProperty = __webpack_require__(
|
|
3513
|
+
var _defineProperty = __webpack_require__(7);
|
|
3245
3514
|
|
|
3246
3515
|
var __rest = this && this.__rest || function (s, e) {
|
|
3247
3516
|
var t = {};
|
|
@@ -3428,12 +3697,26 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
3428
3697
|
/***/ }),
|
|
3429
3698
|
|
|
3430
3699
|
/***/ 7:
|
|
3700
|
+
/***/ (function(module, exports) {
|
|
3701
|
+
|
|
3702
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3703
|
+
|
|
3704
|
+
/***/ }),
|
|
3705
|
+
|
|
3706
|
+
/***/ 77:
|
|
3707
|
+
/***/ (function(module, exports) {
|
|
3708
|
+
|
|
3709
|
+
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
3710
|
+
|
|
3711
|
+
/***/ }),
|
|
3712
|
+
|
|
3713
|
+
/***/ 8:
|
|
3431
3714
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3432
3715
|
|
|
3433
3716
|
"use strict";
|
|
3434
3717
|
|
|
3435
3718
|
|
|
3436
|
-
var _typeof = __webpack_require__(
|
|
3719
|
+
var _typeof = __webpack_require__(21);
|
|
3437
3720
|
|
|
3438
3721
|
Object.defineProperty(exports, "__esModule", {
|
|
3439
3722
|
value: true
|
|
@@ -3556,21 +3839,14 @@ exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
|
|
|
3556
3839
|
|
|
3557
3840
|
/***/ }),
|
|
3558
3841
|
|
|
3559
|
-
/***/
|
|
3560
|
-
/***/ (function(module, exports) {
|
|
3561
|
-
|
|
3562
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3563
|
-
|
|
3564
|
-
/***/ }),
|
|
3565
|
-
|
|
3566
|
-
/***/ 83:
|
|
3842
|
+
/***/ 85:
|
|
3567
3843
|
/***/ (function(module, exports) {
|
|
3568
3844
|
|
|
3569
3845
|
module.exports = require("@splunk/react-ui/Table");
|
|
3570
3846
|
|
|
3571
3847
|
/***/ }),
|
|
3572
3848
|
|
|
3573
|
-
/***/
|
|
3849
|
+
/***/ 86:
|
|
3574
3850
|
/***/ (function(module, exports) {
|
|
3575
3851
|
|
|
3576
3852
|
module.exports = require("@splunk/react-sparkline/Line");
|