@splunk/visualizations 23.2.0 → 23.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/Area.config.js +36 -30
- package/Area.config.js.map +1 -1
- package/Area.js +243 -203
- package/Area.js.map +1 -1
- package/Bar.config.js +29 -23
- package/Bar.config.js.map +1 -1
- package/Bar.js +233 -193
- package/Bar.js.map +1 -1
- package/Bubble.config.js +36 -23
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +247 -196
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +15 -12
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +201 -148
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +29 -23
- package/Column.config.js.map +1 -1
- package/Column.js +235 -194
- package/Column.js.map +1 -1
- package/Ellipse.config.js +23 -20
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +176 -123
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +803 -0
- package/FillerGauge.config.js.map +1 -0
- package/FillerGauge.js +3634 -0
- package/FillerGauge.js.map +1 -0
- package/Image.config.js +13 -6
- package/Image.config.js.map +1 -1
- package/Image.js +260 -200
- package/Image.js.map +1 -1
- package/LICENSE.md +14 -0
- package/Line.config.js +40 -31
- package/Line.config.js.map +1 -1
- package/Line.js +248 -202
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +107 -123
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +241 -193
- package/LinkGraph.js.map +1 -1
- package/Markdown.config.js +95 -3
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +272 -118
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +750 -0
- package/MarkerGauge.config.js.map +1 -0
- package/MarkerGauge.js +3758 -0
- package/MarkerGauge.js.map +1 -0
- package/ParallelCoordinates.config.js +52 -46
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +257 -164
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +61 -46
- package/Pie.config.js.map +1 -1
- package/Pie.js +254 -186
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +279 -39
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +825 -193
- package/Punchcard.js.map +1 -1
- package/README.external.md +45 -0
- package/README.md +18 -3
- package/Rectangle.config.js +89 -107
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +204 -145
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +29 -22
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +250 -186
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +39 -28
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +2375 -2434
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +37 -29
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +3108 -3174
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +37 -23
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +36 -28
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +279 -210
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +15 -13
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +299 -253
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +26 -10
- package/Table.config.js.map +1 -1
- package/Table.js +382 -265
- package/Table.js.map +1 -1
- package/common/Charting.js +33 -30
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +4 -4
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +36 -34
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +386 -0
- package/common/GaugeMajorTicks.js.map +1 -0
- package/common/GaugeValueMarker.js +333 -0
- package/common/GaugeValueMarker.js.map +1 -0
- package/common/OptionsDoc.js +47 -33
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +376 -0
- package/common/OverviewDoc.js.map +1 -0
- package/common/SplunkVisualization.js +6 -6
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +10 -10
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +55 -72
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +15 -13
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +893 -0
- package/common/gaugeUtils.js.map +1 -0
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/JSONSchemaUtils.js.map +1 -1
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +57 -3
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +24 -10
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/withDashboardViz.js +158 -95
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +18 -14
- package/common/utils/eventUtils.js +0 -115
- package/common/utils/eventUtils.js.map +0 -1
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 = 241);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -109,11 +109,11 @@ module.exports = require("react");
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@
|
|
112
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 103:
|
|
117
117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
118
118
|
|
|
119
119
|
"use strict";
|
|
@@ -132,6 +132,13 @@ exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
|
|
|
132
132
|
/***/ }),
|
|
133
133
|
|
|
134
134
|
/***/ 11:
|
|
135
|
+
/***/ (function(module, exports) {
|
|
136
|
+
|
|
137
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
138
|
+
|
|
139
|
+
/***/ }),
|
|
140
|
+
|
|
141
|
+
/***/ 12:
|
|
135
142
|
/***/ (function(module, exports, __webpack_require__) {
|
|
136
143
|
|
|
137
144
|
"use strict";
|
|
@@ -145,11 +152,11 @@ var React = __webpack_require__(1);
|
|
|
145
152
|
|
|
146
153
|
var styled_components_1 = __webpack_require__(4);
|
|
147
154
|
|
|
148
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
155
|
+
var SizeAwareWrapper_1 = __webpack_require__(17);
|
|
149
156
|
|
|
150
157
|
var style_1 = __webpack_require__(13);
|
|
151
158
|
|
|
152
|
-
var colorUtils_1 = __webpack_require__(
|
|
159
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
153
160
|
|
|
154
161
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
155
162
|
var width = _ref.width;
|
|
@@ -227,61 +234,89 @@ exports.default = withFixedSizeContainer;
|
|
|
227
234
|
|
|
228
235
|
/***/ }),
|
|
229
236
|
|
|
230
|
-
/***/
|
|
237
|
+
/***/ 128:
|
|
231
238
|
/***/ (function(module, exports, __webpack_require__) {
|
|
232
239
|
|
|
233
240
|
"use strict";
|
|
234
241
|
|
|
235
242
|
|
|
243
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
244
|
+
var t = {};
|
|
245
|
+
|
|
246
|
+
for (var p in s) {
|
|
247
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
251
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
252
|
+
}
|
|
253
|
+
return t;
|
|
254
|
+
};
|
|
255
|
+
|
|
236
256
|
Object.defineProperty(exports, "__esModule", {
|
|
237
257
|
value: true
|
|
238
258
|
});
|
|
239
|
-
exports.
|
|
240
|
-
/**
|
|
241
|
-
* @method extendStaticWrapperProps
|
|
242
|
-
* @param {Object} props
|
|
243
|
-
* @param {DashboardVizType} props.Wrapper
|
|
244
|
-
* @param {DashboardVizType} props.Visualization
|
|
245
|
-
*/
|
|
259
|
+
exports.config = exports.PureTable = exports.themes = exports.computeVizProps = void 0;
|
|
246
260
|
|
|
247
|
-
var
|
|
248
|
-
var Wrapper = _ref.Wrapper,
|
|
249
|
-
Visualization = _ref.Visualization;
|
|
250
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
251
|
-
extendProperties.forEach(function (prop) {
|
|
252
|
-
if (Visualization[prop]) {
|
|
253
|
-
Wrapper[prop] = Visualization[prop];
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
};
|
|
261
|
+
var config_1 = __webpack_require__(242);
|
|
257
262
|
|
|
258
|
-
exports.
|
|
263
|
+
exports.config = config_1.default;
|
|
259
264
|
|
|
260
|
-
|
|
265
|
+
var withDashboardViz_1 = __webpack_require__(27);
|
|
261
266
|
|
|
262
|
-
|
|
263
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
267
|
+
var PureTable_1 = __webpack_require__(243);
|
|
264
268
|
|
|
265
|
-
|
|
269
|
+
exports.PureTable = PureTable_1.default;
|
|
266
270
|
|
|
271
|
+
var computeVizProps = function computeVizProps(_a) {
|
|
272
|
+
var themeFunc = _a.themeFunc,
|
|
273
|
+
props = __rest(_a, ["themeFunc"]);
|
|
267
274
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
275
|
+
if (!props.showInternalFields) {
|
|
276
|
+
var filteredFields = [];
|
|
277
|
+
var filteredTable = [];
|
|
278
|
+
var filteredIndexes = [];
|
|
279
|
+
props.headers.forEach(function (fieldIn, index) {
|
|
280
|
+
var _a;
|
|
272
281
|
|
|
273
|
-
var
|
|
282
|
+
var field = (_a = fieldIn.name) !== null && _a !== void 0 ? _a : fieldIn;
|
|
274
283
|
|
|
275
|
-
|
|
284
|
+
if (field.charAt(0) !== '_' || field === '_time') {
|
|
285
|
+
filteredFields.push(field);
|
|
286
|
+
filteredTable.push(props.table[index]);
|
|
287
|
+
filteredIndexes.push(index);
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
var filteredTableFormat = null;
|
|
291
|
+
|
|
292
|
+
if (props.tableFormat) {
|
|
293
|
+
filteredTableFormat = {};
|
|
294
|
+
Object.keys(props.tableFormat).forEach(function (tableFormatKey, index) {
|
|
295
|
+
if (Array.isArray(props.tableFormat[tableFormatKey])) {
|
|
296
|
+
filteredTableFormat[tableFormatKey] = props.tableFormat[tableFormatKey].filter(function (tableFormatItem, tableFormatItemIndex) {
|
|
297
|
+
return filteredIndexes.indexOf(tableFormatItemIndex) !== -1;
|
|
298
|
+
});
|
|
299
|
+
} else {
|
|
300
|
+
filteredTableFormat[tableFormatKey] = props.tableFormat[tableFormatKey];
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}
|
|
276
304
|
|
|
277
|
-
|
|
305
|
+
return Object.assign(Object.assign({}, props), {
|
|
306
|
+
headers: filteredFields,
|
|
307
|
+
table: filteredTable,
|
|
308
|
+
tableFormat: filteredTableFormat
|
|
309
|
+
});
|
|
310
|
+
}
|
|
278
311
|
|
|
279
|
-
|
|
312
|
+
return props;
|
|
313
|
+
};
|
|
280
314
|
|
|
281
|
-
exports.
|
|
315
|
+
exports.computeVizProps = computeVizProps;
|
|
282
316
|
var Table = withDashboardViz_1.default({
|
|
283
317
|
ReactViz: PureTable_1.default,
|
|
284
|
-
vizConfig: config_1.default
|
|
318
|
+
vizConfig: config_1.default,
|
|
319
|
+
computeVizProps: exports.computeVizProps
|
|
285
320
|
});
|
|
286
321
|
var themes = Table['themes'];
|
|
287
322
|
exports.themes = themes;
|
|
@@ -303,14 +338,14 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
303
338
|
|
|
304
339
|
/***/ }),
|
|
305
340
|
|
|
306
|
-
/***/
|
|
341
|
+
/***/ 16:
|
|
307
342
|
/***/ (function(module, exports) {
|
|
308
343
|
|
|
309
344
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
310
345
|
|
|
311
346
|
/***/ }),
|
|
312
347
|
|
|
313
|
-
/***/
|
|
348
|
+
/***/ 17:
|
|
314
349
|
/***/ (function(module, exports) {
|
|
315
350
|
|
|
316
351
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
@@ -331,14 +366,21 @@ module.exports = require("lodash");
|
|
|
331
366
|
|
|
332
367
|
/***/ }),
|
|
333
368
|
|
|
334
|
-
/***/
|
|
369
|
+
/***/ 21:
|
|
335
370
|
/***/ (function(module, exports) {
|
|
336
371
|
|
|
337
372
|
module.exports = require("@splunk/themes/pick");
|
|
338
373
|
|
|
339
374
|
/***/ }),
|
|
340
375
|
|
|
341
|
-
/***/
|
|
376
|
+
/***/ 22:
|
|
377
|
+
/***/ (function(module, exports) {
|
|
378
|
+
|
|
379
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
380
|
+
|
|
381
|
+
/***/ }),
|
|
382
|
+
|
|
383
|
+
/***/ 23:
|
|
342
384
|
/***/ (function(module, exports, __webpack_require__) {
|
|
343
385
|
|
|
344
386
|
"use strict";
|
|
@@ -355,7 +397,7 @@ var T = __webpack_require__(0);
|
|
|
355
397
|
|
|
356
398
|
var lodash_1 = __webpack_require__(2);
|
|
357
399
|
|
|
358
|
-
var DataSource_1 = __webpack_require__(
|
|
400
|
+
var DataSource_1 = __webpack_require__(33);
|
|
359
401
|
|
|
360
402
|
exports.SortParamsPropTypes = T.shape({
|
|
361
403
|
currentSortKey: T.string,
|
|
@@ -409,7 +451,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
409
451
|
|
|
410
452
|
/***/ }),
|
|
411
453
|
|
|
412
|
-
/***/
|
|
454
|
+
/***/ 24:
|
|
413
455
|
/***/ (function(module, exports, __webpack_require__) {
|
|
414
456
|
|
|
415
457
|
"use strict";
|
|
@@ -474,7 +516,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
474
516
|
|
|
475
517
|
/***/ }),
|
|
476
518
|
|
|
477
|
-
/***/
|
|
519
|
+
/***/ 241:
|
|
478
520
|
/***/ (function(module, exports, __webpack_require__) {
|
|
479
521
|
|
|
480
522
|
"use strict";
|
|
@@ -506,9 +548,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
|
|
|
506
548
|
// for some reason, omitting the default export worked before TS v4
|
|
507
549
|
// see: https://stackoverflow.com/a/34445175
|
|
508
550
|
|
|
509
|
-
__exportStar(__webpack_require__(
|
|
551
|
+
__exportStar(__webpack_require__(128), exports);
|
|
510
552
|
|
|
511
|
-
var Table_1 = __webpack_require__(
|
|
553
|
+
var Table_1 = __webpack_require__(128);
|
|
512
554
|
|
|
513
555
|
Object.defineProperty(exports, "default", {
|
|
514
556
|
enumerable: true,
|
|
@@ -519,13 +561,13 @@ Object.defineProperty(exports, "default", {
|
|
|
519
561
|
|
|
520
562
|
/***/ }),
|
|
521
563
|
|
|
522
|
-
/***/
|
|
564
|
+
/***/ 242:
|
|
523
565
|
/***/ (function(module, exports, __webpack_require__) {
|
|
524
566
|
|
|
525
567
|
"use strict";
|
|
526
568
|
|
|
527
569
|
|
|
528
|
-
var _toConsumableArray = __webpack_require__(
|
|
570
|
+
var _toConsumableArray = __webpack_require__(39);
|
|
529
571
|
|
|
530
572
|
Object.defineProperty(exports, "__esModule", {
|
|
531
573
|
value: true
|
|
@@ -537,21 +579,21 @@ var lodash_1 = __webpack_require__(2);
|
|
|
537
579
|
|
|
538
580
|
var schemaUtils_1 = __webpack_require__(14);
|
|
539
581
|
|
|
540
|
-
var colorConstants_1 = __webpack_require__(
|
|
582
|
+
var colorConstants_1 = __webpack_require__(40);
|
|
541
583
|
|
|
542
|
-
var visualization_icons_1 = __webpack_require__(
|
|
584
|
+
var visualization_icons_1 = __webpack_require__(42);
|
|
543
585
|
|
|
544
586
|
var variables_1 = __webpack_require__(19);
|
|
545
587
|
|
|
546
|
-
var pick_1 = __webpack_require__(
|
|
588
|
+
var pick_1 = __webpack_require__(21);
|
|
547
589
|
|
|
548
|
-
var configUtils_1 = __webpack_require__(
|
|
590
|
+
var configUtils_1 = __webpack_require__(8);
|
|
549
591
|
|
|
550
592
|
var VizBehavior_1 = __webpack_require__(5);
|
|
551
593
|
|
|
552
|
-
var consts_1 = __webpack_require__(
|
|
594
|
+
var consts_1 = __webpack_require__(103);
|
|
553
595
|
|
|
554
|
-
var VizCategory_1 = __webpack_require__(
|
|
596
|
+
var VizCategory_1 = __webpack_require__(26);
|
|
555
597
|
|
|
556
598
|
var dataContract = {
|
|
557
599
|
requiredDataSources: [{
|
|
@@ -808,6 +850,11 @@ var optionsSchema = {
|
|
|
808
850
|
description: 'Show row numbers in the first column.',
|
|
809
851
|
type: 'boolean'
|
|
810
852
|
},
|
|
853
|
+
showInternalFields: {
|
|
854
|
+
default: true,
|
|
855
|
+
description: 'Specify whether to show internal fields that start with an underscore. The _time field will still be shown if false.',
|
|
856
|
+
type: 'boolean'
|
|
857
|
+
},
|
|
811
858
|
table: {
|
|
812
859
|
default: '> primary',
|
|
813
860
|
description: 'Two dimensional array of data to be displayed in the table.',
|
|
@@ -1011,6 +1058,7 @@ var editorConfig = [{
|
|
|
1011
1058
|
editor: 'editor.number',
|
|
1012
1059
|
editorProps: {
|
|
1013
1060
|
labelPosition: 'left',
|
|
1061
|
+
min: 0,
|
|
1014
1062
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
1015
1063
|
}
|
|
1016
1064
|
}], [{
|
|
@@ -1021,6 +1069,14 @@ var editorConfig = [{
|
|
|
1021
1069
|
labelPosition: 'left',
|
|
1022
1070
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
1023
1071
|
}
|
|
1072
|
+
}], [{
|
|
1073
|
+
label: i18n_1._('Internal Fields'),
|
|
1074
|
+
option: 'showInternalFields',
|
|
1075
|
+
editor: 'editor.toggle',
|
|
1076
|
+
editorProps: {
|
|
1077
|
+
labelPosition: 'left',
|
|
1078
|
+
labelWidth: EDITOR_LABEL_WIDTH
|
|
1079
|
+
}
|
|
1024
1080
|
}], [{
|
|
1025
1081
|
label: i18n_1._('Header Row'),
|
|
1026
1082
|
option: 'headerVisibility',
|
|
@@ -1161,13 +1217,13 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
1161
1217
|
|
|
1162
1218
|
/***/ }),
|
|
1163
1219
|
|
|
1164
|
-
/***/
|
|
1220
|
+
/***/ 243:
|
|
1165
1221
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1166
1222
|
|
|
1167
1223
|
"use strict";
|
|
1168
1224
|
|
|
1169
1225
|
|
|
1170
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
1226
|
+
var _taggedTemplateLiteral = __webpack_require__(94);
|
|
1171
1227
|
|
|
1172
1228
|
var _templateObject, _templateObject2;
|
|
1173
1229
|
|
|
@@ -1194,37 +1250,37 @@ var T = __webpack_require__(0);
|
|
|
1194
1250
|
|
|
1195
1251
|
var lodash_1 = __webpack_require__(2);
|
|
1196
1252
|
|
|
1197
|
-
var debounce = __webpack_require__(
|
|
1253
|
+
var debounce = __webpack_require__(244);
|
|
1198
1254
|
|
|
1199
1255
|
var styled_components_1 = __webpack_require__(4);
|
|
1200
1256
|
|
|
1201
1257
|
var i18n_1 = __webpack_require__(3);
|
|
1202
1258
|
|
|
1203
|
-
var Table_1 = __webpack_require__(
|
|
1259
|
+
var Table_1 = __webpack_require__(76);
|
|
1204
1260
|
|
|
1205
|
-
var Paginator_1 = __webpack_require__(
|
|
1261
|
+
var Paginator_1 = __webpack_require__(245);
|
|
1206
1262
|
|
|
1207
|
-
var Message_1 = __webpack_require__(
|
|
1263
|
+
var Message_1 = __webpack_require__(246);
|
|
1208
1264
|
|
|
1209
|
-
var colorUtils_1 = __webpack_require__(
|
|
1265
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1210
1266
|
|
|
1211
1267
|
var style_1 = __webpack_require__(13);
|
|
1212
1268
|
|
|
1213
|
-
var pick_1 = __webpack_require__(
|
|
1269
|
+
var pick_1 = __webpack_require__(21);
|
|
1214
1270
|
|
|
1215
1271
|
var variables_1 = __webpack_require__(19);
|
|
1216
1272
|
|
|
1217
|
-
var getPagination_1 = __webpack_require__(
|
|
1273
|
+
var getPagination_1 = __webpack_require__(24);
|
|
1218
1274
|
|
|
1219
|
-
var getSorting_1 = __webpack_require__(
|
|
1275
|
+
var getSorting_1 = __webpack_require__(23);
|
|
1220
1276
|
|
|
1221
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1277
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1222
1278
|
|
|
1223
|
-
var hooks_1 = __webpack_require__(
|
|
1279
|
+
var hooks_1 = __webpack_require__(247);
|
|
1224
1280
|
|
|
1225
|
-
var consts_1 = __webpack_require__(
|
|
1281
|
+
var consts_1 = __webpack_require__(103);
|
|
1226
1282
|
|
|
1227
|
-
var cells_1 = __webpack_require__(
|
|
1283
|
+
var cells_1 = __webpack_require__(248);
|
|
1228
1284
|
|
|
1229
1285
|
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
1230
1286
|
displayName: "PureTable__NonVisibleTableHead",
|
|
@@ -1346,15 +1402,14 @@ var PureTable = function PureTable(props) {
|
|
|
1346
1402
|
}
|
|
1347
1403
|
}, [count, paginatorProps]);
|
|
1348
1404
|
var TableHead = tableHeader.visibility === 'none' ? NonVisibleTableHead : Table_1.default.Head;
|
|
1349
|
-
var
|
|
1405
|
+
var debouncedDrilldown = debounce(function (e, payload) {
|
|
1350
1406
|
if (window.getSelection().toString() === '') {
|
|
1351
1407
|
lodash_1.isFunction(onCellClick) && onCellClick({
|
|
1352
1408
|
e: e,
|
|
1353
1409
|
payload: payload
|
|
1354
1410
|
});
|
|
1355
1411
|
}
|
|
1356
|
-
},
|
|
1357
|
-
var debouncedDrilldown = React.useCallback(debounce(drilldown, 200), []);
|
|
1412
|
+
}, 200);
|
|
1358
1413
|
var drilldownHandler = React.useCallback(function (e) {
|
|
1359
1414
|
var element = e.target;
|
|
1360
1415
|
var row = element.getAttribute('data-row-index');
|
|
@@ -1412,7 +1467,7 @@ var PureTable = function PureTable(props) {
|
|
|
1412
1467
|
height: '100%',
|
|
1413
1468
|
cursor: onCellClick ? 'pointer' : 'unset'
|
|
1414
1469
|
},
|
|
1415
|
-
onClick: onCellClick ? drilldownHandler :
|
|
1470
|
+
onClick: onCellClick ? drilldownHandler : lodash_1.noop
|
|
1416
1471
|
}, React.createElement(TableHead, null, tableHeader.cells.map(function (_a) {
|
|
1417
1472
|
var key = _a.key,
|
|
1418
1473
|
value = _a.value,
|
|
@@ -1509,124 +1564,36 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
|
|
|
1509
1564
|
|
|
1510
1565
|
/***/ }),
|
|
1511
1566
|
|
|
1512
|
-
/***/
|
|
1567
|
+
/***/ 244:
|
|
1513
1568
|
/***/ (function(module, exports) {
|
|
1514
1569
|
|
|
1515
1570
|
module.exports = require("lodash/debounce");
|
|
1516
1571
|
|
|
1517
1572
|
/***/ }),
|
|
1518
1573
|
|
|
1519
|
-
/***/
|
|
1520
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1521
|
-
|
|
1522
|
-
"use strict";
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1526
|
-
value: true
|
|
1527
|
-
});
|
|
1528
|
-
exports.shouldShowIconPlaceholder = void 0;
|
|
1529
|
-
|
|
1530
|
-
var React = __webpack_require__(1);
|
|
1531
|
-
|
|
1532
|
-
var T = __webpack_require__(0);
|
|
1533
|
-
|
|
1534
|
-
var lodash_1 = __webpack_require__(2);
|
|
1535
|
-
|
|
1536
|
-
var i18n_1 = __webpack_require__(3);
|
|
1537
|
-
|
|
1538
|
-
var Message_1 = __webpack_require__(8);
|
|
1539
|
-
|
|
1540
|
-
var FixedSizeContainer_1 = __webpack_require__(11);
|
|
1541
|
-
/**
|
|
1542
|
-
* @method shouldShowIconPlaceholder
|
|
1543
|
-
* @param {object} dataSources
|
|
1544
|
-
* @param {boolean} loading
|
|
1545
|
-
* @returns {boolean}
|
|
1546
|
-
*/
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
1550
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1551
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
1552
|
-
var noData = data === undefined;
|
|
1553
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
1554
|
-
var noFields = fields === undefined;
|
|
1555
|
-
return loading || noData || noFields;
|
|
1556
|
-
};
|
|
1557
|
-
|
|
1558
|
-
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
1559
|
-
var propTypes = {
|
|
1560
|
-
icon: T.func,
|
|
1561
|
-
width: T.oneOfType([T.string, T.number]),
|
|
1562
|
-
height: T.oneOfType([T.string, T.number]),
|
|
1563
|
-
backgroundColor: T.string
|
|
1564
|
-
};
|
|
1565
|
-
/**
|
|
1566
|
-
* @method IconPlaceholder
|
|
1567
|
-
* @param {IconPlaceholderProps} props
|
|
1568
|
-
* @returns {React.ReactElement}
|
|
1569
|
-
*/
|
|
1570
|
-
|
|
1571
|
-
var IconPlaceholder = function IconPlaceholder(props) {
|
|
1572
|
-
var width = props.width,
|
|
1573
|
-
height = props.height,
|
|
1574
|
-
icon = props.icon;
|
|
1575
|
-
|
|
1576
|
-
if (icon) {
|
|
1577
|
-
return React.createElement(icon, {
|
|
1578
|
-
style: {
|
|
1579
|
-
left: '50%',
|
|
1580
|
-
top: '50%',
|
|
1581
|
-
color: 'grey',
|
|
1582
|
-
position: 'absolute',
|
|
1583
|
-
transform: 'translate(-50%, -50%)'
|
|
1584
|
-
},
|
|
1585
|
-
width: '50%',
|
|
1586
|
-
height: '50%'
|
|
1587
|
-
});
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
return React.createElement(Message_1.default, {
|
|
1591
|
-
width: width,
|
|
1592
|
-
height: height,
|
|
1593
|
-
level: "warning",
|
|
1594
|
-
message: i18n_1._('No DataSource Connected')
|
|
1595
|
-
});
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
IconPlaceholder.propTypes = propTypes;
|
|
1599
|
-
IconPlaceholder.defaultProps = {
|
|
1600
|
-
width: '100%',
|
|
1601
|
-
height: 250
|
|
1602
|
-
};
|
|
1603
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
1604
|
-
|
|
1605
|
-
/***/ }),
|
|
1606
|
-
|
|
1607
|
-
/***/ 230:
|
|
1574
|
+
/***/ 245:
|
|
1608
1575
|
/***/ (function(module, exports) {
|
|
1609
1576
|
|
|
1610
1577
|
module.exports = require("@splunk/react-ui/Paginator");
|
|
1611
1578
|
|
|
1612
1579
|
/***/ }),
|
|
1613
1580
|
|
|
1614
|
-
/***/
|
|
1581
|
+
/***/ 246:
|
|
1615
1582
|
/***/ (function(module, exports) {
|
|
1616
1583
|
|
|
1617
1584
|
module.exports = require("@splunk/react-ui/Message");
|
|
1618
1585
|
|
|
1619
1586
|
/***/ }),
|
|
1620
1587
|
|
|
1621
|
-
/***/
|
|
1588
|
+
/***/ 247:
|
|
1622
1589
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1623
1590
|
|
|
1624
1591
|
"use strict";
|
|
1625
1592
|
|
|
1626
1593
|
|
|
1627
|
-
var _toConsumableArray = __webpack_require__(
|
|
1594
|
+
var _toConsumableArray = __webpack_require__(39);
|
|
1628
1595
|
|
|
1629
|
-
var _typeof = __webpack_require__(
|
|
1596
|
+
var _typeof = __webpack_require__(22);
|
|
1630
1597
|
|
|
1631
1598
|
Object.defineProperty(exports, "__esModule", {
|
|
1632
1599
|
value: true
|
|
@@ -1635,11 +1602,11 @@ exports.useTable = exports.getTextOverflowType = exports.getOverflowStyles = voi
|
|
|
1635
1602
|
|
|
1636
1603
|
var lodash_1 = __webpack_require__(2);
|
|
1637
1604
|
|
|
1638
|
-
var colorUtils_1 = __webpack_require__(
|
|
1605
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1639
1606
|
|
|
1640
1607
|
var style_1 = __webpack_require__(13);
|
|
1641
1608
|
|
|
1642
|
-
var consts_1 = __webpack_require__(
|
|
1609
|
+
var consts_1 = __webpack_require__(103);
|
|
1643
1610
|
|
|
1644
1611
|
var isArray = function isArray(v) {
|
|
1645
1612
|
return Array.isArray(v);
|
|
@@ -2039,7 +2006,7 @@ exports.useTable = useTable;
|
|
|
2039
2006
|
|
|
2040
2007
|
/***/ }),
|
|
2041
2008
|
|
|
2042
|
-
/***/
|
|
2009
|
+
/***/ 248:
|
|
2043
2010
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2044
2011
|
|
|
2045
2012
|
"use strict";
|
|
@@ -2068,17 +2035,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2068
2035
|
value: true
|
|
2069
2036
|
});
|
|
2070
2037
|
|
|
2071
|
-
__exportStar(__webpack_require__(
|
|
2038
|
+
__exportStar(__webpack_require__(249), exports);
|
|
2072
2039
|
|
|
2073
|
-
__exportStar(__webpack_require__(
|
|
2040
|
+
__exportStar(__webpack_require__(250), exports);
|
|
2074
2041
|
|
|
2075
|
-
__exportStar(__webpack_require__(
|
|
2042
|
+
__exportStar(__webpack_require__(251), exports);
|
|
2076
2043
|
|
|
2077
|
-
__exportStar(__webpack_require__(
|
|
2044
|
+
__exportStar(__webpack_require__(252), exports);
|
|
2078
2045
|
|
|
2079
2046
|
/***/ }),
|
|
2080
2047
|
|
|
2081
|
-
/***/
|
|
2048
|
+
/***/ 249:
|
|
2082
2049
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2083
2050
|
|
|
2084
2051
|
"use strict";
|
|
@@ -2101,7 +2068,95 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
2101
2068
|
|
|
2102
2069
|
/***/ }),
|
|
2103
2070
|
|
|
2104
|
-
/***/
|
|
2071
|
+
/***/ 25:
|
|
2072
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2073
|
+
|
|
2074
|
+
"use strict";
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2078
|
+
value: true
|
|
2079
|
+
});
|
|
2080
|
+
exports.shouldShowIconPlaceholder = void 0;
|
|
2081
|
+
|
|
2082
|
+
var React = __webpack_require__(1);
|
|
2083
|
+
|
|
2084
|
+
var T = __webpack_require__(0);
|
|
2085
|
+
|
|
2086
|
+
var lodash_1 = __webpack_require__(2);
|
|
2087
|
+
|
|
2088
|
+
var i18n_1 = __webpack_require__(3);
|
|
2089
|
+
|
|
2090
|
+
var Message_1 = __webpack_require__(9);
|
|
2091
|
+
|
|
2092
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
2093
|
+
/**
|
|
2094
|
+
* @method shouldShowIconPlaceholder
|
|
2095
|
+
* @param {object} dataSources
|
|
2096
|
+
* @param {boolean} loading
|
|
2097
|
+
* @returns {boolean}
|
|
2098
|
+
*/
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
2102
|
+
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
2103
|
+
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
2104
|
+
var noData = data === undefined;
|
|
2105
|
+
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
2106
|
+
var noFields = fields === undefined;
|
|
2107
|
+
return loading || noData || noFields;
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2110
|
+
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
2111
|
+
var propTypes = {
|
|
2112
|
+
icon: T.func,
|
|
2113
|
+
width: T.oneOfType([T.string, T.number]),
|
|
2114
|
+
height: T.oneOfType([T.string, T.number]),
|
|
2115
|
+
backgroundColor: T.string
|
|
2116
|
+
};
|
|
2117
|
+
/**
|
|
2118
|
+
* @method IconPlaceholder
|
|
2119
|
+
* @param {IconPlaceholderProps} props
|
|
2120
|
+
* @returns {React.ReactElement}
|
|
2121
|
+
*/
|
|
2122
|
+
|
|
2123
|
+
var IconPlaceholder = function IconPlaceholder(props) {
|
|
2124
|
+
var width = props.width,
|
|
2125
|
+
height = props.height,
|
|
2126
|
+
icon = props.icon;
|
|
2127
|
+
|
|
2128
|
+
if (icon) {
|
|
2129
|
+
return React.createElement(icon, {
|
|
2130
|
+
style: {
|
|
2131
|
+
left: '50%',
|
|
2132
|
+
top: '50%',
|
|
2133
|
+
color: 'grey',
|
|
2134
|
+
position: 'absolute',
|
|
2135
|
+
transform: 'translate(-50%, -50%)'
|
|
2136
|
+
},
|
|
2137
|
+
width: '50%',
|
|
2138
|
+
height: '50%'
|
|
2139
|
+
});
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
return React.createElement(Message_1.default, {
|
|
2143
|
+
width: width,
|
|
2144
|
+
height: height,
|
|
2145
|
+
level: "warning",
|
|
2146
|
+
message: i18n_1._('No DataSource Connected')
|
|
2147
|
+
});
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
IconPlaceholder.propTypes = propTypes;
|
|
2151
|
+
IconPlaceholder.defaultProps = {
|
|
2152
|
+
width: '100%',
|
|
2153
|
+
height: 250
|
|
2154
|
+
};
|
|
2155
|
+
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
2156
|
+
|
|
2157
|
+
/***/ }),
|
|
2158
|
+
|
|
2159
|
+
/***/ 250:
|
|
2105
2160
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2106
2161
|
|
|
2107
2162
|
"use strict";
|
|
@@ -2114,7 +2169,7 @@ exports.TextCell = void 0;
|
|
|
2114
2169
|
|
|
2115
2170
|
var React = __webpack_require__(1);
|
|
2116
2171
|
|
|
2117
|
-
var Table_1 = __webpack_require__(
|
|
2172
|
+
var Table_1 = __webpack_require__(76);
|
|
2118
2173
|
|
|
2119
2174
|
var TextCell = function TextCell(_ref) {
|
|
2120
2175
|
var cell = _ref.cell,
|
|
@@ -2134,7 +2189,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
2134
2189
|
|
|
2135
2190
|
/***/ }),
|
|
2136
2191
|
|
|
2137
|
-
/***/
|
|
2192
|
+
/***/ 251:
|
|
2138
2193
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2139
2194
|
|
|
2140
2195
|
"use strict";
|
|
@@ -2147,7 +2202,7 @@ exports.ArrayCell = void 0;
|
|
|
2147
2202
|
|
|
2148
2203
|
var React = __webpack_require__(1);
|
|
2149
2204
|
|
|
2150
|
-
var Table_1 = __webpack_require__(
|
|
2205
|
+
var Table_1 = __webpack_require__(76);
|
|
2151
2206
|
|
|
2152
2207
|
var ArrayCell = function ArrayCell(_ref) {
|
|
2153
2208
|
var cell = _ref.cell,
|
|
@@ -2173,7 +2228,7 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
2173
2228
|
|
|
2174
2229
|
/***/ }),
|
|
2175
2230
|
|
|
2176
|
-
/***/
|
|
2231
|
+
/***/ 252:
|
|
2177
2232
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2178
2233
|
|
|
2179
2234
|
"use strict";
|
|
@@ -2188,9 +2243,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
|
|
|
2188
2243
|
|
|
2189
2244
|
var React = __webpack_require__(1);
|
|
2190
2245
|
|
|
2191
|
-
var Table_1 = __webpack_require__(
|
|
2246
|
+
var Table_1 = __webpack_require__(76);
|
|
2192
2247
|
|
|
2193
|
-
var Line_1 = __webpack_require__(
|
|
2248
|
+
var Line_1 = __webpack_require__(77);
|
|
2194
2249
|
|
|
2195
2250
|
var paddingLeftRight = 5;
|
|
2196
2251
|
var paddingTopBottom = 3;
|
|
@@ -2264,7 +2319,7 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
2264
2319
|
|
|
2265
2320
|
/***/ }),
|
|
2266
2321
|
|
|
2267
|
-
/***/
|
|
2322
|
+
/***/ 26:
|
|
2268
2323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2269
2324
|
|
|
2270
2325
|
"use strict";
|
|
@@ -2287,11 +2342,13 @@ var VizCategory;
|
|
|
2287
2342
|
VizCategory["SHAPES"] = "Shapes";
|
|
2288
2343
|
VizCategory["MISC"] = "misc";
|
|
2289
2344
|
VizCategory["FLOW"] = "Flow";
|
|
2345
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
2346
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
2290
2347
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
2291
2348
|
|
|
2292
2349
|
/***/ }),
|
|
2293
2350
|
|
|
2294
|
-
/***/
|
|
2351
|
+
/***/ 27:
|
|
2295
2352
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2296
2353
|
|
|
2297
2354
|
"use strict";
|
|
@@ -2305,31 +2362,33 @@ var React = __webpack_require__(1);
|
|
|
2305
2362
|
|
|
2306
2363
|
var lodash_1 = __webpack_require__(2);
|
|
2307
2364
|
|
|
2308
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
2309
|
-
|
|
2310
|
-
var Options_1 = __webpack_require__(27);
|
|
2365
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(28);
|
|
2311
2366
|
|
|
2312
|
-
var
|
|
2367
|
+
var Options_1 = __webpack_require__(29);
|
|
2313
2368
|
|
|
2314
|
-
var
|
|
2369
|
+
var SanitizeProps_1 = __webpack_require__(30);
|
|
2315
2370
|
|
|
2316
2371
|
var styled_components_1 = __webpack_require__(4);
|
|
2317
2372
|
|
|
2373
|
+
var SplunkVisualization_1 = __webpack_require__(31);
|
|
2374
|
+
|
|
2318
2375
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2319
2376
|
|
|
2320
|
-
var getSorting_1 = __webpack_require__(
|
|
2377
|
+
var getSorting_1 = __webpack_require__(23);
|
|
2378
|
+
|
|
2379
|
+
var getPagination_1 = __webpack_require__(24);
|
|
2321
2380
|
|
|
2322
|
-
var
|
|
2381
|
+
var useDeepMemo_1 = __webpack_require__(34);
|
|
2323
2382
|
|
|
2324
|
-
var
|
|
2383
|
+
var JSONSchemaUtils_1 = __webpack_require__(35);
|
|
2325
2384
|
|
|
2326
|
-
var
|
|
2385
|
+
var MissingPropsMessage_1 = __webpack_require__(36);
|
|
2327
2386
|
|
|
2328
|
-
var
|
|
2387
|
+
var withEditModeCover_1 = __webpack_require__(37);
|
|
2329
2388
|
|
|
2330
|
-
var
|
|
2389
|
+
var withPlaceholder_1 = __webpack_require__(38);
|
|
2331
2390
|
|
|
2332
|
-
var
|
|
2391
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
2333
2392
|
/**
|
|
2334
2393
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
2335
2394
|
* @param {DashboardVizOpts} opts
|
|
@@ -2382,7 +2441,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2382
2441
|
try {
|
|
2383
2442
|
return Options_1.Options.evaluate({
|
|
2384
2443
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
2385
|
-
options:
|
|
2444
|
+
options: hocUtils_1.deepMergeWithArrayOverrides({}, options, defaultOptions)
|
|
2386
2445
|
}, dataSources, themeFunc);
|
|
2387
2446
|
} catch (e) {
|
|
2388
2447
|
console.error("unexpected error evaluating options: + ".concat(e.message));
|
|
@@ -2393,7 +2452,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2393
2452
|
|
|
2394
2453
|
React.useEffect(function () {
|
|
2395
2454
|
onComputedProps(evaluatedOptions);
|
|
2396
|
-
}); //present warning message if any required props are missing
|
|
2455
|
+
}); // present warning message if any required props are missing
|
|
2397
2456
|
|
|
2398
2457
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
2399
2458
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
@@ -2416,7 +2475,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2416
2475
|
if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
|
|
2417
2476
|
var supportedEvents = vizConfig.events;
|
|
2418
2477
|
Object.keys(supportedEvents).forEach(function (eventName) {
|
|
2419
|
-
var eventCallbackPropName = lodash_1.camelCase(
|
|
2478
|
+
var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
|
|
2420
2479
|
eventCallbackProps[eventCallbackPropName] = null; // todo: refactor single value and single value icon to send payload from viz
|
|
2421
2480
|
// then remove these lines
|
|
2422
2481
|
|
|
@@ -2512,34 +2571,41 @@ exports.default = withDashboardViz;
|
|
|
2512
2571
|
|
|
2513
2572
|
/***/ }),
|
|
2514
2573
|
|
|
2515
|
-
/***/
|
|
2574
|
+
/***/ 28:
|
|
2516
2575
|
/***/ (function(module, exports) {
|
|
2517
2576
|
|
|
2518
2577
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2519
2578
|
|
|
2520
2579
|
/***/ }),
|
|
2521
2580
|
|
|
2522
|
-
/***/
|
|
2581
|
+
/***/ 29:
|
|
2523
2582
|
/***/ (function(module, exports) {
|
|
2524
2583
|
|
|
2525
2584
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
2526
2585
|
|
|
2527
2586
|
/***/ }),
|
|
2528
2587
|
|
|
2529
|
-
/***/
|
|
2588
|
+
/***/ 3:
|
|
2589
|
+
/***/ (function(module, exports) {
|
|
2590
|
+
|
|
2591
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
2592
|
+
|
|
2593
|
+
/***/ }),
|
|
2594
|
+
|
|
2595
|
+
/***/ 30:
|
|
2530
2596
|
/***/ (function(module, exports) {
|
|
2531
2597
|
|
|
2532
2598
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2533
2599
|
|
|
2534
2600
|
/***/ }),
|
|
2535
2601
|
|
|
2536
|
-
/***/
|
|
2602
|
+
/***/ 31:
|
|
2537
2603
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2538
2604
|
|
|
2539
2605
|
"use strict";
|
|
2540
2606
|
|
|
2541
2607
|
|
|
2542
|
-
var _classCallCheck = __webpack_require__(
|
|
2608
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2543
2609
|
|
|
2544
2610
|
Object.defineProperty(exports, "__esModule", {
|
|
2545
2611
|
value: true
|
|
@@ -2551,7 +2617,7 @@ var T = __webpack_require__(0);
|
|
|
2551
2617
|
|
|
2552
2618
|
var lodash_1 = __webpack_require__(2);
|
|
2553
2619
|
|
|
2554
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2620
|
+
var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2555
2621
|
|
|
2556
2622
|
|
|
2557
2623
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2685,22 +2751,15 @@ exports.default = SplunkVisualization;
|
|
|
2685
2751
|
|
|
2686
2752
|
/***/ }),
|
|
2687
2753
|
|
|
2688
|
-
/***/
|
|
2689
|
-
/***/ (function(module, exports) {
|
|
2690
|
-
|
|
2691
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
2692
|
-
|
|
2693
|
-
/***/ }),
|
|
2694
|
-
|
|
2695
|
-
/***/ 30:
|
|
2754
|
+
/***/ 32:
|
|
2696
2755
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2697
2756
|
|
|
2698
2757
|
"use strict";
|
|
2699
2758
|
|
|
2700
2759
|
|
|
2701
|
-
var _classCallCheck = __webpack_require__(
|
|
2760
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2702
2761
|
|
|
2703
|
-
var _createClass = __webpack_require__(
|
|
2762
|
+
var _createClass = __webpack_require__(16);
|
|
2704
2763
|
|
|
2705
2764
|
Object.defineProperty(exports, "__esModule", {
|
|
2706
2765
|
value: true
|
|
@@ -2730,7 +2789,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
2730
2789
|
|
|
2731
2790
|
/***/ }),
|
|
2732
2791
|
|
|
2733
|
-
/***/
|
|
2792
|
+
/***/ 33:
|
|
2734
2793
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2735
2794
|
|
|
2736
2795
|
"use strict";
|
|
@@ -2744,7 +2803,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
2744
2803
|
|
|
2745
2804
|
/***/ }),
|
|
2746
2805
|
|
|
2747
|
-
/***/
|
|
2806
|
+
/***/ 34:
|
|
2748
2807
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2749
2808
|
|
|
2750
2809
|
"use strict";
|
|
@@ -2790,7 +2849,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
2790
2849
|
|
|
2791
2850
|
/***/ }),
|
|
2792
2851
|
|
|
2793
|
-
/***/
|
|
2852
|
+
/***/ 35:
|
|
2794
2853
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2795
2854
|
|
|
2796
2855
|
"use strict";
|
|
@@ -2824,7 +2883,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
|
2824
2883
|
|
|
2825
2884
|
/***/ }),
|
|
2826
2885
|
|
|
2827
|
-
/***/
|
|
2886
|
+
/***/ 36:
|
|
2828
2887
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2829
2888
|
|
|
2830
2889
|
"use strict";
|
|
@@ -2841,9 +2900,9 @@ var T = __webpack_require__(0);
|
|
|
2841
2900
|
|
|
2842
2901
|
var i18n_1 = __webpack_require__(3);
|
|
2843
2902
|
|
|
2844
|
-
var Message_1 = __webpack_require__(
|
|
2903
|
+
var Message_1 = __webpack_require__(9);
|
|
2845
2904
|
|
|
2846
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2905
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
2847
2906
|
/**
|
|
2848
2907
|
* @method isMissing
|
|
2849
2908
|
* @param {any} v
|
|
@@ -2904,7 +2963,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
2904
2963
|
|
|
2905
2964
|
/***/ }),
|
|
2906
2965
|
|
|
2907
|
-
/***/
|
|
2966
|
+
/***/ 37:
|
|
2908
2967
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2909
2968
|
|
|
2910
2969
|
"use strict";
|
|
@@ -2918,7 +2977,7 @@ var React = __webpack_require__(1);
|
|
|
2918
2977
|
|
|
2919
2978
|
var styled_components_1 = __webpack_require__(4);
|
|
2920
2979
|
|
|
2921
|
-
var hocUtils_1 = __webpack_require__(
|
|
2980
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
2922
2981
|
|
|
2923
2982
|
var Cover = styled_components_1.default.div.withConfig({
|
|
2924
2983
|
displayName: "withEditModeCover__Cover",
|
|
@@ -2954,7 +3013,7 @@ exports.default = withEditModeCover;
|
|
|
2954
3013
|
|
|
2955
3014
|
/***/ }),
|
|
2956
3015
|
|
|
2957
|
-
/***/
|
|
3016
|
+
/***/ 38:
|
|
2958
3017
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2959
3018
|
|
|
2960
3019
|
"use strict";
|
|
@@ -2966,13 +3025,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2966
3025
|
|
|
2967
3026
|
var React = __webpack_require__(1);
|
|
2968
3027
|
|
|
2969
|
-
var colorUtils_1 = __webpack_require__(
|
|
3028
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
2970
3029
|
|
|
2971
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
3030
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
2972
3031
|
|
|
2973
3032
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2974
3033
|
|
|
2975
|
-
var hocUtils_1 = __webpack_require__(
|
|
3034
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
2976
3035
|
|
|
2977
3036
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2978
3037
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -3014,31 +3073,31 @@ exports.default = withPlaceholder;
|
|
|
3014
3073
|
|
|
3015
3074
|
/***/ }),
|
|
3016
3075
|
|
|
3017
|
-
/***/
|
|
3076
|
+
/***/ 39:
|
|
3018
3077
|
/***/ (function(module, exports) {
|
|
3019
3078
|
|
|
3020
|
-
module.exports = require("@
|
|
3079
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3021
3080
|
|
|
3022
3081
|
/***/ }),
|
|
3023
3082
|
|
|
3024
|
-
/***/
|
|
3083
|
+
/***/ 4:
|
|
3025
3084
|
/***/ (function(module, exports) {
|
|
3026
3085
|
|
|
3027
|
-
module.exports = require("
|
|
3086
|
+
module.exports = require("styled-components");
|
|
3028
3087
|
|
|
3029
3088
|
/***/ }),
|
|
3030
3089
|
|
|
3031
|
-
/***/
|
|
3090
|
+
/***/ 40:
|
|
3032
3091
|
/***/ (function(module, exports) {
|
|
3033
3092
|
|
|
3034
|
-
module.exports = require("
|
|
3093
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3035
3094
|
|
|
3036
3095
|
/***/ }),
|
|
3037
3096
|
|
|
3038
|
-
/***/
|
|
3097
|
+
/***/ 42:
|
|
3039
3098
|
/***/ (function(module, exports) {
|
|
3040
3099
|
|
|
3041
|
-
module.exports = require("@
|
|
3100
|
+
module.exports = require("@splunk/visualization-icons");
|
|
3042
3101
|
|
|
3043
3102
|
/***/ }),
|
|
3044
3103
|
|
|
@@ -3100,6 +3159,92 @@ module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
|
3100
3159
|
"use strict";
|
|
3101
3160
|
|
|
3102
3161
|
|
|
3162
|
+
var _typeof = __webpack_require__(22);
|
|
3163
|
+
|
|
3164
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3165
|
+
value: true
|
|
3166
|
+
});
|
|
3167
|
+
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
3168
|
+
|
|
3169
|
+
var lodash_1 = __webpack_require__(2);
|
|
3170
|
+
/**
|
|
3171
|
+
* @method extendStaticWrapperProps
|
|
3172
|
+
* @param {Object} props
|
|
3173
|
+
* @param {DashboardVizType} props.Wrapper
|
|
3174
|
+
* @param {DashboardVizType} props.Visualization
|
|
3175
|
+
*/
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
3179
|
+
var Wrapper = _ref.Wrapper,
|
|
3180
|
+
Visualization = _ref.Visualization;
|
|
3181
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
3182
|
+
extendProperties.forEach(function (prop) {
|
|
3183
|
+
if (Visualization[prop]) {
|
|
3184
|
+
Wrapper[prop] = Visualization[prop];
|
|
3185
|
+
}
|
|
3186
|
+
});
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3189
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
3190
|
+
/**
|
|
3191
|
+
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
3192
|
+
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
|
|
3193
|
+
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
3194
|
+
*
|
|
3195
|
+
* @method deepMergeWithArrayOverrides
|
|
3196
|
+
* @param {Object} initial - target object to merge values into
|
|
3197
|
+
* @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
|
|
3198
|
+
*
|
|
3199
|
+
* @returns {Object}
|
|
3200
|
+
*/
|
|
3201
|
+
|
|
3202
|
+
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
3203
|
+
var clone = lodash_1.cloneDeep(initial);
|
|
3204
|
+
|
|
3205
|
+
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
3206
|
+
sources[_key - 1] = arguments[_key];
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
sources.forEach(function (sourceToApply) {
|
|
3210
|
+
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
3211
|
+
if (!clone.hasOwnProperty(sourceKey)) {
|
|
3212
|
+
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
3213
|
+
} // object merging excluding arrays
|
|
3214
|
+
|
|
3215
|
+
|
|
3216
|
+
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
3217
|
+
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
3218
|
+
}
|
|
3219
|
+
});
|
|
3220
|
+
});
|
|
3221
|
+
return clone;
|
|
3222
|
+
};
|
|
3223
|
+
|
|
3224
|
+
exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
3225
|
+
|
|
3226
|
+
/***/ }),
|
|
3227
|
+
|
|
3228
|
+
/***/ 76:
|
|
3229
|
+
/***/ (function(module, exports) {
|
|
3230
|
+
|
|
3231
|
+
module.exports = require("@splunk/react-ui/Table");
|
|
3232
|
+
|
|
3233
|
+
/***/ }),
|
|
3234
|
+
|
|
3235
|
+
/***/ 77:
|
|
3236
|
+
/***/ (function(module, exports) {
|
|
3237
|
+
|
|
3238
|
+
module.exports = require("@splunk/react-sparkline/Line");
|
|
3239
|
+
|
|
3240
|
+
/***/ }),
|
|
3241
|
+
|
|
3242
|
+
/***/ 8:
|
|
3243
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3244
|
+
|
|
3245
|
+
"use strict";
|
|
3246
|
+
|
|
3247
|
+
|
|
3103
3248
|
var _defineProperty = __webpack_require__(6);
|
|
3104
3249
|
|
|
3105
3250
|
var __rest = this && this.__rest || function (s, e) {
|
|
@@ -3286,42 +3431,14 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
3286
3431
|
|
|
3287
3432
|
/***/ }),
|
|
3288
3433
|
|
|
3289
|
-
/***/ 73:
|
|
3290
|
-
/***/ (function(module, exports) {
|
|
3291
|
-
|
|
3292
|
-
module.exports = require("@babel/runtime/helpers/typeof");
|
|
3293
|
-
|
|
3294
|
-
/***/ }),
|
|
3295
|
-
|
|
3296
|
-
/***/ 75:
|
|
3297
|
-
/***/ (function(module, exports) {
|
|
3298
|
-
|
|
3299
|
-
module.exports = require("@splunk/react-ui/Table");
|
|
3300
|
-
|
|
3301
|
-
/***/ }),
|
|
3302
|
-
|
|
3303
|
-
/***/ 76:
|
|
3304
|
-
/***/ (function(module, exports) {
|
|
3305
|
-
|
|
3306
|
-
module.exports = require("@splunk/react-sparkline/Line");
|
|
3307
|
-
|
|
3308
|
-
/***/ }),
|
|
3309
|
-
|
|
3310
|
-
/***/ 8:
|
|
3311
|
-
/***/ (function(module, exports) {
|
|
3312
|
-
|
|
3313
|
-
module.exports = require("@splunk/visualizations-shared/Message");
|
|
3314
|
-
|
|
3315
|
-
/***/ }),
|
|
3316
|
-
|
|
3317
3434
|
/***/ 9:
|
|
3318
3435
|
/***/ (function(module, exports) {
|
|
3319
3436
|
|
|
3320
|
-
module.exports = require("@
|
|
3437
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
3321
3438
|
|
|
3322
3439
|
/***/ }),
|
|
3323
3440
|
|
|
3324
|
-
/***/
|
|
3441
|
+
/***/ 94:
|
|
3325
3442
|
/***/ (function(module, exports) {
|
|
3326
3443
|
|
|
3327
3444
|
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|