@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/LinkGraph.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 = 171);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -170,6 +170,77 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
|
170
170
|
"use strict";
|
|
171
171
|
|
|
172
172
|
|
|
173
|
+
var _typeof = __webpack_require__(22);
|
|
174
|
+
|
|
175
|
+
Object.defineProperty(exports, "__esModule", {
|
|
176
|
+
value: true
|
|
177
|
+
});
|
|
178
|
+
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
179
|
+
|
|
180
|
+
var lodash_1 = __webpack_require__(2);
|
|
181
|
+
/**
|
|
182
|
+
* @method extendStaticWrapperProps
|
|
183
|
+
* @param {Object} props
|
|
184
|
+
* @param {DashboardVizType} props.Wrapper
|
|
185
|
+
* @param {DashboardVizType} props.Visualization
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
190
|
+
var Wrapper = _ref.Wrapper,
|
|
191
|
+
Visualization = _ref.Visualization;
|
|
192
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
193
|
+
extendProperties.forEach(function (prop) {
|
|
194
|
+
if (Visualization[prop]) {
|
|
195
|
+
Wrapper[prop] = Visualization[prop];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
201
|
+
/**
|
|
202
|
+
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
203
|
+
* 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
|
|
204
|
+
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
205
|
+
*
|
|
206
|
+
* @method deepMergeWithArrayOverrides
|
|
207
|
+
* @param {Object} initial - target object to merge values into
|
|
208
|
+
* @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
|
|
209
|
+
*
|
|
210
|
+
* @returns {Object}
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
214
|
+
var clone = lodash_1.cloneDeep(initial);
|
|
215
|
+
|
|
216
|
+
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
217
|
+
sources[_key - 1] = arguments[_key];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
sources.forEach(function (sourceToApply) {
|
|
221
|
+
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
222
|
+
if (!clone.hasOwnProperty(sourceKey)) {
|
|
223
|
+
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
224
|
+
} // object merging excluding arrays
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
228
|
+
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
return clone;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
236
|
+
|
|
237
|
+
/***/ }),
|
|
238
|
+
/* 8 */
|
|
239
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
240
|
+
|
|
241
|
+
"use strict";
|
|
242
|
+
|
|
243
|
+
|
|
173
244
|
var _defineProperty = __webpack_require__(6);
|
|
174
245
|
|
|
175
246
|
var __rest = this && this.__rest || function (s, e) {
|
|
@@ -355,25 +426,25 @@ function generatePrecisionValues(numPrecisionValues) {
|
|
|
355
426
|
exports.generatePrecisionValues = generatePrecisionValues;
|
|
356
427
|
|
|
357
428
|
/***/ }),
|
|
358
|
-
/*
|
|
429
|
+
/* 9 */
|
|
359
430
|
/***/ (function(module, exports) {
|
|
360
431
|
|
|
361
432
|
module.exports = require("@splunk/visualizations-shared/Message");
|
|
362
433
|
|
|
363
434
|
/***/ }),
|
|
364
|
-
/*
|
|
435
|
+
/* 10 */
|
|
365
436
|
/***/ (function(module, exports) {
|
|
366
437
|
|
|
367
438
|
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
368
439
|
|
|
369
440
|
/***/ }),
|
|
370
|
-
/*
|
|
441
|
+
/* 11 */
|
|
371
442
|
/***/ (function(module, exports) {
|
|
372
443
|
|
|
373
444
|
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
374
445
|
|
|
375
446
|
/***/ }),
|
|
376
|
-
/*
|
|
447
|
+
/* 12 */
|
|
377
448
|
/***/ (function(module, exports, __webpack_require__) {
|
|
378
449
|
|
|
379
450
|
"use strict";
|
|
@@ -387,11 +458,11 @@ var React = __webpack_require__(1);
|
|
|
387
458
|
|
|
388
459
|
var styled_components_1 = __webpack_require__(4);
|
|
389
460
|
|
|
390
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
461
|
+
var SizeAwareWrapper_1 = __webpack_require__(17);
|
|
391
462
|
|
|
392
463
|
var style_1 = __webpack_require__(13);
|
|
393
464
|
|
|
394
|
-
var colorUtils_1 = __webpack_require__(
|
|
465
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
395
466
|
|
|
396
467
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
397
468
|
var width = _ref.width;
|
|
@@ -467,37 +538,6 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
467
538
|
|
|
468
539
|
exports.default = withFixedSizeContainer;
|
|
469
540
|
|
|
470
|
-
/***/ }),
|
|
471
|
-
/* 12 */
|
|
472
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
473
|
-
|
|
474
|
-
"use strict";
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
Object.defineProperty(exports, "__esModule", {
|
|
478
|
-
value: true
|
|
479
|
-
});
|
|
480
|
-
exports.extendStaticWrapperProps = void 0;
|
|
481
|
-
/**
|
|
482
|
-
* @method extendStaticWrapperProps
|
|
483
|
-
* @param {Object} props
|
|
484
|
-
* @param {DashboardVizType} props.Wrapper
|
|
485
|
-
* @param {DashboardVizType} props.Visualization
|
|
486
|
-
*/
|
|
487
|
-
|
|
488
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
489
|
-
var Wrapper = _ref.Wrapper,
|
|
490
|
-
Visualization = _ref.Visualization;
|
|
491
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
492
|
-
extendProperties.forEach(function (prop) {
|
|
493
|
-
if (Visualization[prop]) {
|
|
494
|
-
Wrapper[prop] = Visualization[prop];
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
500
|
-
|
|
501
541
|
/***/ }),
|
|
502
542
|
/* 13 */
|
|
503
543
|
/***/ (function(module, exports) {
|
|
@@ -512,32 +552,39 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
512
552
|
|
|
513
553
|
/***/ }),
|
|
514
554
|
/* 15 */,
|
|
515
|
-
/* 16
|
|
516
|
-
/* 17 */
|
|
555
|
+
/* 16 */
|
|
517
556
|
/***/ (function(module, exports) {
|
|
518
557
|
|
|
519
558
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
520
559
|
|
|
521
560
|
/***/ }),
|
|
522
|
-
/*
|
|
561
|
+
/* 17 */
|
|
523
562
|
/***/ (function(module, exports) {
|
|
524
563
|
|
|
525
564
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
526
565
|
|
|
527
566
|
/***/ }),
|
|
567
|
+
/* 18 */,
|
|
528
568
|
/* 19 */
|
|
529
569
|
/***/ (function(module, exports) {
|
|
530
570
|
|
|
531
571
|
module.exports = require("@splunk/themes/variables");
|
|
532
572
|
|
|
533
573
|
/***/ }),
|
|
534
|
-
/* 20
|
|
574
|
+
/* 20 */,
|
|
575
|
+
/* 21 */
|
|
535
576
|
/***/ (function(module, exports) {
|
|
536
577
|
|
|
537
578
|
module.exports = require("@splunk/themes/pick");
|
|
538
579
|
|
|
539
580
|
/***/ }),
|
|
540
|
-
/*
|
|
581
|
+
/* 22 */
|
|
582
|
+
/***/ (function(module, exports) {
|
|
583
|
+
|
|
584
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
585
|
+
|
|
586
|
+
/***/ }),
|
|
587
|
+
/* 23 */
|
|
541
588
|
/***/ (function(module, exports, __webpack_require__) {
|
|
542
589
|
|
|
543
590
|
"use strict";
|
|
@@ -554,7 +601,7 @@ var T = __webpack_require__(0);
|
|
|
554
601
|
|
|
555
602
|
var lodash_1 = __webpack_require__(2);
|
|
556
603
|
|
|
557
|
-
var DataSource_1 = __webpack_require__(
|
|
604
|
+
var DataSource_1 = __webpack_require__(33);
|
|
558
605
|
|
|
559
606
|
exports.SortParamsPropTypes = T.shape({
|
|
560
607
|
currentSortKey: T.string,
|
|
@@ -607,7 +654,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
607
654
|
exports.getSortingParams = getSortingParams;
|
|
608
655
|
|
|
609
656
|
/***/ }),
|
|
610
|
-
/*
|
|
657
|
+
/* 24 */
|
|
611
658
|
/***/ (function(module, exports, __webpack_require__) {
|
|
612
659
|
|
|
613
660
|
"use strict";
|
|
@@ -671,7 +718,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
671
718
|
exports.getPaginationParams = getPaginationParams;
|
|
672
719
|
|
|
673
720
|
/***/ }),
|
|
674
|
-
/*
|
|
721
|
+
/* 25 */
|
|
675
722
|
/***/ (function(module, exports, __webpack_require__) {
|
|
676
723
|
|
|
677
724
|
"use strict";
|
|
@@ -690,9 +737,9 @@ var lodash_1 = __webpack_require__(2);
|
|
|
690
737
|
|
|
691
738
|
var i18n_1 = __webpack_require__(3);
|
|
692
739
|
|
|
693
|
-
var Message_1 = __webpack_require__(
|
|
740
|
+
var Message_1 = __webpack_require__(9);
|
|
694
741
|
|
|
695
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
742
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
696
743
|
/**
|
|
697
744
|
* @method shouldShowIconPlaceholder
|
|
698
745
|
* @param {object} dataSources
|
|
@@ -758,7 +805,7 @@ IconPlaceholder.defaultProps = {
|
|
|
758
805
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
759
806
|
|
|
760
807
|
/***/ }),
|
|
761
|
-
/*
|
|
808
|
+
/* 26 */
|
|
762
809
|
/***/ (function(module, exports, __webpack_require__) {
|
|
763
810
|
|
|
764
811
|
"use strict";
|
|
@@ -781,10 +828,12 @@ var VizCategory;
|
|
|
781
828
|
VizCategory["SHAPES"] = "Shapes";
|
|
782
829
|
VizCategory["MISC"] = "misc";
|
|
783
830
|
VizCategory["FLOW"] = "Flow";
|
|
831
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
832
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
784
833
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
785
834
|
|
|
786
835
|
/***/ }),
|
|
787
|
-
/*
|
|
836
|
+
/* 27 */
|
|
788
837
|
/***/ (function(module, exports, __webpack_require__) {
|
|
789
838
|
|
|
790
839
|
"use strict";
|
|
@@ -798,31 +847,33 @@ var React = __webpack_require__(1);
|
|
|
798
847
|
|
|
799
848
|
var lodash_1 = __webpack_require__(2);
|
|
800
849
|
|
|
801
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
802
|
-
|
|
803
|
-
var Options_1 = __webpack_require__(27);
|
|
850
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(28);
|
|
804
851
|
|
|
805
|
-
var
|
|
852
|
+
var Options_1 = __webpack_require__(29);
|
|
806
853
|
|
|
807
|
-
var
|
|
854
|
+
var SanitizeProps_1 = __webpack_require__(30);
|
|
808
855
|
|
|
809
856
|
var styled_components_1 = __webpack_require__(4);
|
|
810
857
|
|
|
858
|
+
var SplunkVisualization_1 = __webpack_require__(31);
|
|
859
|
+
|
|
811
860
|
var VizBehavior_1 = __webpack_require__(5);
|
|
812
861
|
|
|
813
|
-
var getSorting_1 = __webpack_require__(
|
|
862
|
+
var getSorting_1 = __webpack_require__(23);
|
|
814
863
|
|
|
815
|
-
var getPagination_1 = __webpack_require__(
|
|
864
|
+
var getPagination_1 = __webpack_require__(24);
|
|
816
865
|
|
|
817
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
866
|
+
var useDeepMemo_1 = __webpack_require__(34);
|
|
818
867
|
|
|
819
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
868
|
+
var JSONSchemaUtils_1 = __webpack_require__(35);
|
|
820
869
|
|
|
821
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
870
|
+
var MissingPropsMessage_1 = __webpack_require__(36);
|
|
822
871
|
|
|
823
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
872
|
+
var withEditModeCover_1 = __webpack_require__(37);
|
|
824
873
|
|
|
825
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
874
|
+
var withPlaceholder_1 = __webpack_require__(38);
|
|
875
|
+
|
|
876
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
826
877
|
/**
|
|
827
878
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
828
879
|
* @param {DashboardVizOpts} opts
|
|
@@ -875,7 +926,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
875
926
|
try {
|
|
876
927
|
return Options_1.Options.evaluate({
|
|
877
928
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
878
|
-
options:
|
|
929
|
+
options: hocUtils_1.deepMergeWithArrayOverrides({}, options, defaultOptions)
|
|
879
930
|
}, dataSources, themeFunc);
|
|
880
931
|
} catch (e) {
|
|
881
932
|
console.error("unexpected error evaluating options: + ".concat(e.message));
|
|
@@ -886,7 +937,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
886
937
|
|
|
887
938
|
React.useEffect(function () {
|
|
888
939
|
onComputedProps(evaluatedOptions);
|
|
889
|
-
}); //present warning message if any required props are missing
|
|
940
|
+
}); // present warning message if any required props are missing
|
|
890
941
|
|
|
891
942
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
892
943
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
@@ -909,7 +960,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
909
960
|
if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
|
|
910
961
|
var supportedEvents = vizConfig.events;
|
|
911
962
|
Object.keys(supportedEvents).forEach(function (eventName) {
|
|
912
|
-
var eventCallbackPropName = lodash_1.camelCase(
|
|
963
|
+
var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
|
|
913
964
|
eventCallbackProps[eventCallbackPropName] = null; // todo: refactor single value and single value icon to send payload from viz
|
|
914
965
|
// then remove these lines
|
|
915
966
|
|
|
@@ -1004,31 +1055,31 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1004
1055
|
exports.default = withDashboardViz;
|
|
1005
1056
|
|
|
1006
1057
|
/***/ }),
|
|
1007
|
-
/*
|
|
1058
|
+
/* 28 */
|
|
1008
1059
|
/***/ (function(module, exports) {
|
|
1009
1060
|
|
|
1010
1061
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1011
1062
|
|
|
1012
1063
|
/***/ }),
|
|
1013
|
-
/*
|
|
1064
|
+
/* 29 */
|
|
1014
1065
|
/***/ (function(module, exports) {
|
|
1015
1066
|
|
|
1016
1067
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1017
1068
|
|
|
1018
1069
|
/***/ }),
|
|
1019
|
-
/*
|
|
1070
|
+
/* 30 */
|
|
1020
1071
|
/***/ (function(module, exports) {
|
|
1021
1072
|
|
|
1022
1073
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1023
1074
|
|
|
1024
1075
|
/***/ }),
|
|
1025
|
-
/*
|
|
1076
|
+
/* 31 */
|
|
1026
1077
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1027
1078
|
|
|
1028
1079
|
"use strict";
|
|
1029
1080
|
|
|
1030
1081
|
|
|
1031
|
-
var _classCallCheck = __webpack_require__(
|
|
1082
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1032
1083
|
|
|
1033
1084
|
Object.defineProperty(exports, "__esModule", {
|
|
1034
1085
|
value: true
|
|
@@ -1040,7 +1091,7 @@ var T = __webpack_require__(0);
|
|
|
1040
1091
|
|
|
1041
1092
|
var lodash_1 = __webpack_require__(2);
|
|
1042
1093
|
|
|
1043
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1094
|
+
var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1044
1095
|
|
|
1045
1096
|
|
|
1046
1097
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1173,15 +1224,15 @@ SplunkVisualization.defaultProps = {
|
|
|
1173
1224
|
exports.default = SplunkVisualization;
|
|
1174
1225
|
|
|
1175
1226
|
/***/ }),
|
|
1176
|
-
/*
|
|
1227
|
+
/* 32 */
|
|
1177
1228
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1178
1229
|
|
|
1179
1230
|
"use strict";
|
|
1180
1231
|
|
|
1181
1232
|
|
|
1182
|
-
var _classCallCheck = __webpack_require__(
|
|
1233
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1183
1234
|
|
|
1184
|
-
var _createClass = __webpack_require__(
|
|
1235
|
+
var _createClass = __webpack_require__(16);
|
|
1185
1236
|
|
|
1186
1237
|
Object.defineProperty(exports, "__esModule", {
|
|
1187
1238
|
value: true
|
|
@@ -1210,7 +1261,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1210
1261
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1211
1262
|
|
|
1212
1263
|
/***/ }),
|
|
1213
|
-
/*
|
|
1264
|
+
/* 33 */
|
|
1214
1265
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1215
1266
|
|
|
1216
1267
|
"use strict";
|
|
@@ -1223,7 +1274,7 @@ exports.validSortDirs = void 0;
|
|
|
1223
1274
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1224
1275
|
|
|
1225
1276
|
/***/ }),
|
|
1226
|
-
/*
|
|
1277
|
+
/* 34 */
|
|
1227
1278
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1228
1279
|
|
|
1229
1280
|
"use strict";
|
|
@@ -1268,7 +1319,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1268
1319
|
exports.useDeepMemo = useDeepMemo;
|
|
1269
1320
|
|
|
1270
1321
|
/***/ }),
|
|
1271
|
-
/*
|
|
1322
|
+
/* 35 */
|
|
1272
1323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1273
1324
|
|
|
1274
1325
|
"use strict";
|
|
@@ -1301,7 +1352,7 @@ var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
|
1301
1352
|
exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
1302
1353
|
|
|
1303
1354
|
/***/ }),
|
|
1304
|
-
/*
|
|
1355
|
+
/* 36 */
|
|
1305
1356
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1306
1357
|
|
|
1307
1358
|
"use strict";
|
|
@@ -1318,9 +1369,9 @@ var T = __webpack_require__(0);
|
|
|
1318
1369
|
|
|
1319
1370
|
var i18n_1 = __webpack_require__(3);
|
|
1320
1371
|
|
|
1321
|
-
var Message_1 = __webpack_require__(
|
|
1372
|
+
var Message_1 = __webpack_require__(9);
|
|
1322
1373
|
|
|
1323
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1374
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1324
1375
|
/**
|
|
1325
1376
|
* @method isMissing
|
|
1326
1377
|
* @param {any} v
|
|
@@ -1380,7 +1431,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1380
1431
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1381
1432
|
|
|
1382
1433
|
/***/ }),
|
|
1383
|
-
/*
|
|
1434
|
+
/* 37 */
|
|
1384
1435
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1385
1436
|
|
|
1386
1437
|
"use strict";
|
|
@@ -1394,7 +1445,7 @@ var React = __webpack_require__(1);
|
|
|
1394
1445
|
|
|
1395
1446
|
var styled_components_1 = __webpack_require__(4);
|
|
1396
1447
|
|
|
1397
|
-
var hocUtils_1 = __webpack_require__(
|
|
1448
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
1398
1449
|
|
|
1399
1450
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1400
1451
|
displayName: "withEditModeCover__Cover",
|
|
@@ -1429,7 +1480,7 @@ var withEditModeCover = function withEditModeCover(Visualization) {
|
|
|
1429
1480
|
exports.default = withEditModeCover;
|
|
1430
1481
|
|
|
1431
1482
|
/***/ }),
|
|
1432
|
-
/*
|
|
1483
|
+
/* 38 */
|
|
1433
1484
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1434
1485
|
|
|
1435
1486
|
"use strict";
|
|
@@ -1441,13 +1492,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1441
1492
|
|
|
1442
1493
|
var React = __webpack_require__(1);
|
|
1443
1494
|
|
|
1444
|
-
var colorUtils_1 = __webpack_require__(
|
|
1495
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1445
1496
|
|
|
1446
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1497
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
1447
1498
|
|
|
1448
1499
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1449
1500
|
|
|
1450
|
-
var hocUtils_1 = __webpack_require__(
|
|
1501
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
1451
1502
|
|
|
1452
1503
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1453
1504
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1487,24 +1538,17 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1487
1538
|
|
|
1488
1539
|
exports.default = withPlaceholder;
|
|
1489
1540
|
|
|
1490
|
-
/***/ }),
|
|
1491
|
-
/* 37 */,
|
|
1492
|
-
/* 38 */
|
|
1493
|
-
/***/ (function(module, exports) {
|
|
1494
|
-
|
|
1495
|
-
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
1496
|
-
|
|
1497
1541
|
/***/ }),
|
|
1498
1542
|
/* 39 */
|
|
1499
1543
|
/***/ (function(module, exports) {
|
|
1500
1544
|
|
|
1501
|
-
module.exports = require("@
|
|
1545
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
1502
1546
|
|
|
1503
1547
|
/***/ }),
|
|
1504
1548
|
/* 40 */
|
|
1505
1549
|
/***/ (function(module, exports) {
|
|
1506
1550
|
|
|
1507
|
-
module.exports = require("@
|
|
1551
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
1508
1552
|
|
|
1509
1553
|
/***/ }),
|
|
1510
1554
|
/* 41 */
|
|
@@ -1513,7 +1557,12 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
|
1513
1557
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
1514
1558
|
|
|
1515
1559
|
/***/ }),
|
|
1516
|
-
/* 42
|
|
1560
|
+
/* 42 */
|
|
1561
|
+
/***/ (function(module, exports) {
|
|
1562
|
+
|
|
1563
|
+
module.exports = require("@splunk/visualization-icons");
|
|
1564
|
+
|
|
1565
|
+
/***/ }),
|
|
1517
1566
|
/* 43 */,
|
|
1518
1567
|
/* 44 */,
|
|
1519
1568
|
/* 45 */,
|
|
@@ -1557,39 +1606,39 @@ module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
|
1557
1606
|
/* 78 */,
|
|
1558
1607
|
/* 79 */,
|
|
1559
1608
|
/* 80 */,
|
|
1560
|
-
/* 81
|
|
1609
|
+
/* 81 */,
|
|
1610
|
+
/* 82 */
|
|
1561
1611
|
/***/ (function(module, exports) {
|
|
1562
1612
|
|
|
1563
1613
|
module.exports = require("@babel/runtime/helpers/inherits");
|
|
1564
1614
|
|
|
1565
1615
|
/***/ }),
|
|
1566
|
-
/*
|
|
1616
|
+
/* 83 */
|
|
1567
1617
|
/***/ (function(module, exports) {
|
|
1568
1618
|
|
|
1569
1619
|
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
1570
1620
|
|
|
1571
1621
|
/***/ }),
|
|
1572
|
-
/*
|
|
1622
|
+
/* 84 */
|
|
1573
1623
|
/***/ (function(module, exports) {
|
|
1574
1624
|
|
|
1575
1625
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
1576
1626
|
|
|
1577
1627
|
/***/ }),
|
|
1578
|
-
/* 84 */,
|
|
1579
1628
|
/* 85 */,
|
|
1580
1629
|
/* 86 */,
|
|
1581
1630
|
/* 87 */,
|
|
1582
1631
|
/* 88 */,
|
|
1583
|
-
/* 89
|
|
1632
|
+
/* 89 */,
|
|
1633
|
+
/* 90 */,
|
|
1634
|
+
/* 91 */,
|
|
1635
|
+
/* 92 */,
|
|
1636
|
+
/* 93 */
|
|
1584
1637
|
/***/ (function(module, exports) {
|
|
1585
1638
|
|
|
1586
1639
|
module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
1587
1640
|
|
|
1588
1641
|
/***/ }),
|
|
1589
|
-
/* 90 */,
|
|
1590
|
-
/* 91 */,
|
|
1591
|
-
/* 92 */,
|
|
1592
|
-
/* 93 */,
|
|
1593
1642
|
/* 94 */,
|
|
1594
1643
|
/* 95 */,
|
|
1595
1644
|
/* 96 */,
|
|
@@ -1611,7 +1660,10 @@ module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
|
1611
1660
|
/* 112 */,
|
|
1612
1661
|
/* 113 */,
|
|
1613
1662
|
/* 114 */,
|
|
1614
|
-
/* 115
|
|
1663
|
+
/* 115 */,
|
|
1664
|
+
/* 116 */,
|
|
1665
|
+
/* 117 */,
|
|
1666
|
+
/* 118 */
|
|
1615
1667
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1616
1668
|
|
|
1617
1669
|
"use strict";
|
|
@@ -1637,15 +1689,15 @@ exports.PureLinkGraph = exports.LinkGraph = exports.config = exports.themes = ex
|
|
|
1637
1689
|
|
|
1638
1690
|
var lodash_1 = __webpack_require__(2);
|
|
1639
1691
|
|
|
1640
|
-
var dataSourceUtils_1 = __webpack_require__(
|
|
1692
|
+
var dataSourceUtils_1 = __webpack_require__(93);
|
|
1641
1693
|
|
|
1642
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
1694
|
+
var withDashboardViz_1 = __webpack_require__(27);
|
|
1643
1695
|
|
|
1644
|
-
var PureLinkGraph_1 = __webpack_require__(
|
|
1696
|
+
var PureLinkGraph_1 = __webpack_require__(172);
|
|
1645
1697
|
|
|
1646
1698
|
exports.PureLinkGraph = PureLinkGraph_1.default;
|
|
1647
1699
|
|
|
1648
|
-
var config_1 = __webpack_require__(
|
|
1700
|
+
var config_1 = __webpack_require__(184);
|
|
1649
1701
|
|
|
1650
1702
|
exports.config = config_1.default;
|
|
1651
1703
|
/**
|
|
@@ -1703,14 +1755,12 @@ exports.themes = themes;
|
|
|
1703
1755
|
exports.default = LinkGraph;
|
|
1704
1756
|
|
|
1705
1757
|
/***/ }),
|
|
1706
|
-
/*
|
|
1758
|
+
/* 119 */
|
|
1707
1759
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1708
1760
|
|
|
1709
1761
|
"use strict";
|
|
1710
1762
|
|
|
1711
1763
|
|
|
1712
|
-
var _toConsumableArray = __webpack_require__(40);
|
|
1713
|
-
|
|
1714
1764
|
Object.defineProperty(exports, "__esModule", {
|
|
1715
1765
|
value: true
|
|
1716
1766
|
});
|
|
@@ -1756,12 +1806,11 @@ var createLinkGraphFromTable = function createLinkGraphFromTable(fieldsIn, colum
|
|
|
1756
1806
|
return graphDataModel;
|
|
1757
1807
|
}
|
|
1758
1808
|
|
|
1759
|
-
var fields =
|
|
1760
|
-
|
|
1761
|
-
var columns = _toConsumableArray(columnsIn);
|
|
1809
|
+
var fields = fieldsIn;
|
|
1810
|
+
var columns = columnsIn;
|
|
1762
1811
|
|
|
1763
1812
|
if (fieldOrder.length) {
|
|
1764
|
-
fields =
|
|
1813
|
+
fields = fieldOrder;
|
|
1765
1814
|
columns = [];
|
|
1766
1815
|
fields.forEach(function (field, fieldIndex) {
|
|
1767
1816
|
columns[fieldIndex] = columnsIn[fieldsIn.indexOf(field)];
|
|
@@ -1780,7 +1829,7 @@ var createLinkGraphFromTable = function createLinkGraphFromTable(fieldsIn, colum
|
|
|
1780
1829
|
return graphDataModel;
|
|
1781
1830
|
}
|
|
1782
1831
|
|
|
1783
|
-
columns[fieldIndex].
|
|
1832
|
+
columns[fieldIndex].find(function (column, columnIndex) {
|
|
1784
1833
|
var key = "".concat(fieldIndex, "-").concat(exports.cleanString(field), "-").concat(exports.cleanString(column));
|
|
1785
1834
|
var node = nodes[field].nodes[column];
|
|
1786
1835
|
|
|
@@ -1807,10 +1856,7 @@ var createLinkGraphFromTable = function createLinkGraphFromTable(fieldsIn, colum
|
|
|
1807
1856
|
targetNode: targetNode
|
|
1808
1857
|
};
|
|
1809
1858
|
node.data.outs["".concat(exports.cleanString(column), "-").concat(exports.cleanString(columns[fieldIndex + 1][columnIndex]))] = edge;
|
|
1810
|
-
|
|
1811
|
-
if (Object.keys(nodes[field].nodes).length < resultLimit) {
|
|
1812
|
-
graphDataModel.edges.push(edge);
|
|
1813
|
-
}
|
|
1859
|
+
graphDataModel.edges.push(edge);
|
|
1814
1860
|
}
|
|
1815
1861
|
|
|
1816
1862
|
if (columns[fieldIndex - 1] && columns[fieldIndex - 1][columnIndex]) {
|
|
@@ -1820,7 +1866,7 @@ var createLinkGraphFromTable = function createLinkGraphFromTable(fieldsIn, colum
|
|
|
1820
1866
|
};
|
|
1821
1867
|
}
|
|
1822
1868
|
|
|
1823
|
-
if (!graphDataModel.nodes[key]
|
|
1869
|
+
if (!graphDataModel.nodes[key]) {
|
|
1824
1870
|
nodes[field].nodes[column] = node;
|
|
1825
1871
|
graphDataModel.nodes[key] = node;
|
|
1826
1872
|
node.x = fieldIndex * nodeWidth + fieldIndex * nodeSpacingX;
|
|
@@ -1830,8 +1876,8 @@ var createLinkGraphFromTable = function createLinkGraphFromTable(fieldsIn, colum
|
|
|
1830
1876
|
}
|
|
1831
1877
|
|
|
1832
1878
|
graphDataModel.fields[field].count = Object.keys(nodes[field].nodes).length;
|
|
1879
|
+
return Object.keys(nodes[field].nodes).length === resultLimit;
|
|
1833
1880
|
});
|
|
1834
|
-
return true;
|
|
1835
1881
|
});
|
|
1836
1882
|
return graphDataModel;
|
|
1837
1883
|
};
|
|
@@ -1983,7 +2029,7 @@ var sortGraphColumn = function sortGraphColumn(graph, field, sortKey, nodeHeight
|
|
|
1983
2029
|
exports.sortGraphColumn = sortGraphColumn;
|
|
1984
2030
|
|
|
1985
2031
|
/***/ }),
|
|
1986
|
-
/*
|
|
2032
|
+
/* 120 */
|
|
1987
2033
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1988
2034
|
|
|
1989
2035
|
"use strict";
|
|
@@ -1996,7 +2042,7 @@ exports.StyledEdgesPath = exports.StyledViewport = void 0;
|
|
|
1996
2042
|
|
|
1997
2043
|
var styled_components_1 = __webpack_require__(4);
|
|
1998
2044
|
|
|
1999
|
-
var pick_1 = __webpack_require__(
|
|
2045
|
+
var pick_1 = __webpack_require__(21);
|
|
2000
2046
|
|
|
2001
2047
|
var variables_1 = __webpack_require__(19);
|
|
2002
2048
|
|
|
@@ -2036,9 +2082,6 @@ exports.StyledEdgesPath = styled_components_1.default.path.withConfig({
|
|
|
2036
2082
|
});
|
|
2037
2083
|
|
|
2038
2084
|
/***/ }),
|
|
2039
|
-
/* 118 */,
|
|
2040
|
-
/* 119 */,
|
|
2041
|
-
/* 120 */,
|
|
2042
2085
|
/* 121 */,
|
|
2043
2086
|
/* 122 */,
|
|
2044
2087
|
/* 123 */,
|
|
@@ -2080,7 +2123,16 @@ exports.StyledEdgesPath = styled_components_1.default.path.withConfig({
|
|
|
2080
2123
|
/* 159 */,
|
|
2081
2124
|
/* 160 */,
|
|
2082
2125
|
/* 161 */,
|
|
2083
|
-
/* 162
|
|
2126
|
+
/* 162 */,
|
|
2127
|
+
/* 163 */,
|
|
2128
|
+
/* 164 */,
|
|
2129
|
+
/* 165 */,
|
|
2130
|
+
/* 166 */,
|
|
2131
|
+
/* 167 */,
|
|
2132
|
+
/* 168 */,
|
|
2133
|
+
/* 169 */,
|
|
2134
|
+
/* 170 */,
|
|
2135
|
+
/* 171 */
|
|
2084
2136
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2085
2137
|
|
|
2086
2138
|
"use strict";
|
|
@@ -2110,9 +2162,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2110
2162
|
});
|
|
2111
2163
|
exports.default = void 0;
|
|
2112
2164
|
|
|
2113
|
-
__exportStar(__webpack_require__(
|
|
2165
|
+
__exportStar(__webpack_require__(118), exports);
|
|
2114
2166
|
|
|
2115
|
-
var LinkGraph_1 = __webpack_require__(
|
|
2167
|
+
var LinkGraph_1 = __webpack_require__(118);
|
|
2116
2168
|
|
|
2117
2169
|
Object.defineProperty(exports, "default", {
|
|
2118
2170
|
enumerable: true,
|
|
@@ -2122,7 +2174,7 @@ Object.defineProperty(exports, "default", {
|
|
|
2122
2174
|
});
|
|
2123
2175
|
|
|
2124
2176
|
/***/ }),
|
|
2125
|
-
/*
|
|
2177
|
+
/* 172 */
|
|
2126
2178
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2127
2179
|
|
|
2128
2180
|
"use strict";
|
|
@@ -2143,15 +2195,15 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2143
2195
|
|
|
2144
2196
|
var lodash_1 = __webpack_require__(2);
|
|
2145
2197
|
|
|
2146
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2198
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
2147
2199
|
|
|
2148
|
-
var PureLinkGraphUtils_1 = __webpack_require__(
|
|
2200
|
+
var PureLinkGraphUtils_1 = __webpack_require__(119);
|
|
2149
2201
|
|
|
2150
|
-
var Graph_1 = __webpack_require__(
|
|
2202
|
+
var Graph_1 = __webpack_require__(173);
|
|
2151
2203
|
|
|
2152
|
-
var Field_1 = __webpack_require__(
|
|
2204
|
+
var Field_1 = __webpack_require__(178);
|
|
2153
2205
|
|
|
2154
|
-
var FieldStyles_1 = __webpack_require__(
|
|
2206
|
+
var FieldStyles_1 = __webpack_require__(183);
|
|
2155
2207
|
|
|
2156
2208
|
var LinkGraphContainer = styled_components_1.default.div.withConfig({
|
|
2157
2209
|
displayName: "PureLinkGraph__LinkGraphContainer",
|
|
@@ -2303,23 +2355,23 @@ exports.PureLinkGraph.displayName = 'VizLinkGraph';
|
|
|
2303
2355
|
exports.default = FixedSizeContainer_1.default(exports.PureLinkGraph);
|
|
2304
2356
|
|
|
2305
2357
|
/***/ }),
|
|
2306
|
-
/*
|
|
2358
|
+
/* 173 */
|
|
2307
2359
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2308
2360
|
|
|
2309
2361
|
"use strict";
|
|
2310
2362
|
|
|
2311
2363
|
|
|
2312
|
-
var _toConsumableArray = __webpack_require__(
|
|
2364
|
+
var _toConsumableArray = __webpack_require__(39);
|
|
2313
2365
|
|
|
2314
|
-
var _classCallCheck = __webpack_require__(
|
|
2366
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2315
2367
|
|
|
2316
|
-
var _createClass = __webpack_require__(
|
|
2368
|
+
var _createClass = __webpack_require__(16);
|
|
2317
2369
|
|
|
2318
|
-
var _inherits = __webpack_require__(
|
|
2370
|
+
var _inherits = __webpack_require__(82);
|
|
2319
2371
|
|
|
2320
|
-
var _possibleConstructorReturn = __webpack_require__(
|
|
2372
|
+
var _possibleConstructorReturn = __webpack_require__(83);
|
|
2321
2373
|
|
|
2322
|
-
var _getPrototypeOf = __webpack_require__(
|
|
2374
|
+
var _getPrototypeOf = __webpack_require__(84);
|
|
2323
2375
|
|
|
2324
2376
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2325
2377
|
|
|
@@ -2333,13 +2385,13 @@ var React = __webpack_require__(1);
|
|
|
2333
2385
|
|
|
2334
2386
|
var lodash_1 = __webpack_require__(2);
|
|
2335
2387
|
|
|
2336
|
-
var Edges_1 = __webpack_require__(
|
|
2388
|
+
var Edges_1 = __webpack_require__(174);
|
|
2337
2389
|
|
|
2338
|
-
var Nodes_1 = __webpack_require__(
|
|
2390
|
+
var Nodes_1 = __webpack_require__(175);
|
|
2339
2391
|
|
|
2340
|
-
var GraphStyles_1 = __webpack_require__(
|
|
2392
|
+
var GraphStyles_1 = __webpack_require__(120);
|
|
2341
2393
|
|
|
2342
|
-
var PureLinkGraphUtils_1 = __webpack_require__(
|
|
2394
|
+
var PureLinkGraphUtils_1 = __webpack_require__(119);
|
|
2343
2395
|
|
|
2344
2396
|
var Graph = /*#__PURE__*/function (_React$Component) {
|
|
2345
2397
|
_inherits(Graph, _React$Component);
|
|
@@ -2577,9 +2629,7 @@ var Graph = /*#__PURE__*/function (_React$Component) {
|
|
|
2577
2629
|
value: function moveNodeBy(nodeId, xIn, yIn, wIn, hIn) {
|
|
2578
2630
|
var _this7 = this;
|
|
2579
2631
|
|
|
2580
|
-
var
|
|
2581
|
-
nodes = _this$state.nodes,
|
|
2582
|
-
edges = _this$state.edges;
|
|
2632
|
+
var nodes = this.state.nodes;
|
|
2583
2633
|
nodes[nodeId].currentX = xIn;
|
|
2584
2634
|
nodes[nodeId].currentY = yIn;
|
|
2585
2635
|
nodes[nodeId].currentW = wIn;
|
|
@@ -2593,7 +2643,7 @@ var Graph = /*#__PURE__*/function (_React$Component) {
|
|
|
2593
2643
|
nodeElement.style.height = "".concat(hIn, "px");
|
|
2594
2644
|
}
|
|
2595
2645
|
|
|
2596
|
-
|
|
2646
|
+
Object.values(nodes[nodeId].data.outs).forEach(function (edge) {
|
|
2597
2647
|
if (edge.sourceNode === nodeId || edge.targetNode === nodeId) {
|
|
2598
2648
|
var start = nodes[edge.sourceNode];
|
|
2599
2649
|
var end = nodes[edge.targetNode];
|
|
@@ -2620,9 +2670,9 @@ var Graph = /*#__PURE__*/function (_React$Component) {
|
|
|
2620
2670
|
value: function render() {
|
|
2621
2671
|
var _this8 = this;
|
|
2622
2672
|
|
|
2623
|
-
var _this$
|
|
2624
|
-
nodes = _this$
|
|
2625
|
-
edges = _this$
|
|
2673
|
+
var _this$state = this.state,
|
|
2674
|
+
nodes = _this$state.nodes,
|
|
2675
|
+
edges = _this$state.edges;
|
|
2626
2676
|
var _this$props = this.props,
|
|
2627
2677
|
nodeColor = _this$props.nodeColor,
|
|
2628
2678
|
nodeHighlightColor = _this$props.nodeHighlightColor,
|
|
@@ -2701,7 +2751,7 @@ var Graph = /*#__PURE__*/function (_React$Component) {
|
|
|
2701
2751
|
exports.default = Graph;
|
|
2702
2752
|
|
|
2703
2753
|
/***/ }),
|
|
2704
|
-
/*
|
|
2754
|
+
/* 174 */
|
|
2705
2755
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2706
2756
|
|
|
2707
2757
|
"use strict";
|
|
@@ -2713,7 +2763,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2713
2763
|
|
|
2714
2764
|
var React = __webpack_require__(1);
|
|
2715
2765
|
|
|
2716
|
-
var GraphStyles_1 = __webpack_require__(
|
|
2766
|
+
var GraphStyles_1 = __webpack_require__(120);
|
|
2717
2767
|
|
|
2718
2768
|
var Edges = function Edges(props) {
|
|
2719
2769
|
var edges = props.edges,
|
|
@@ -2742,7 +2792,7 @@ var Edges = function Edges(props) {
|
|
|
2742
2792
|
exports.default = Edges;
|
|
2743
2793
|
|
|
2744
2794
|
/***/ }),
|
|
2745
|
-
/*
|
|
2795
|
+
/* 175 */
|
|
2746
2796
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2747
2797
|
|
|
2748
2798
|
"use strict";
|
|
@@ -2754,7 +2804,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2754
2804
|
|
|
2755
2805
|
var React = __webpack_require__(1);
|
|
2756
2806
|
|
|
2757
|
-
var Node_1 = __webpack_require__(
|
|
2807
|
+
var Node_1 = __webpack_require__(176);
|
|
2758
2808
|
|
|
2759
2809
|
var Nodes = function Nodes(props) {
|
|
2760
2810
|
return Object.keys(props.nodes).map(function (key) {
|
|
@@ -2782,7 +2832,7 @@ var Nodes = function Nodes(props) {
|
|
|
2782
2832
|
exports.default = Nodes;
|
|
2783
2833
|
|
|
2784
2834
|
/***/ }),
|
|
2785
|
-
/*
|
|
2835
|
+
/* 176 */
|
|
2786
2836
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2787
2837
|
|
|
2788
2838
|
"use strict";
|
|
@@ -2794,7 +2844,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2794
2844
|
|
|
2795
2845
|
var React = __webpack_require__(1);
|
|
2796
2846
|
|
|
2797
|
-
var Paragraph_1 = __webpack_require__(
|
|
2847
|
+
var Paragraph_1 = __webpack_require__(177);
|
|
2798
2848
|
|
|
2799
2849
|
var Node = function Node(props) {
|
|
2800
2850
|
var data = props.data,
|
|
@@ -2809,13 +2859,13 @@ var Node = function Node(props) {
|
|
|
2809
2859
|
exports.default = Node;
|
|
2810
2860
|
|
|
2811
2861
|
/***/ }),
|
|
2812
|
-
/*
|
|
2862
|
+
/* 177 */
|
|
2813
2863
|
/***/ (function(module, exports) {
|
|
2814
2864
|
|
|
2815
2865
|
module.exports = require("@splunk/react-ui/Paragraph");
|
|
2816
2866
|
|
|
2817
2867
|
/***/ }),
|
|
2818
|
-
/*
|
|
2868
|
+
/* 178 */
|
|
2819
2869
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2820
2870
|
|
|
2821
2871
|
"use strict";
|
|
@@ -2827,13 +2877,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2827
2877
|
|
|
2828
2878
|
var React = __webpack_require__(1);
|
|
2829
2879
|
|
|
2830
|
-
var Dropdown_1 = __webpack_require__(
|
|
2880
|
+
var Dropdown_1 = __webpack_require__(179);
|
|
2831
2881
|
|
|
2832
|
-
var Button_1 = __webpack_require__(
|
|
2882
|
+
var Button_1 = __webpack_require__(180);
|
|
2833
2883
|
|
|
2834
|
-
var Menu_1 = __webpack_require__(
|
|
2884
|
+
var Menu_1 = __webpack_require__(181);
|
|
2835
2885
|
|
|
2836
|
-
var Chip_1 = __webpack_require__(
|
|
2886
|
+
var Chip_1 = __webpack_require__(182);
|
|
2837
2887
|
|
|
2838
2888
|
var Field = function Field(_ref) {
|
|
2839
2889
|
var field = _ref.field,
|
|
@@ -2877,31 +2927,31 @@ Field.displayName = 'Field';
|
|
|
2877
2927
|
exports.default = Field;
|
|
2878
2928
|
|
|
2879
2929
|
/***/ }),
|
|
2880
|
-
/*
|
|
2930
|
+
/* 179 */
|
|
2881
2931
|
/***/ (function(module, exports) {
|
|
2882
2932
|
|
|
2883
2933
|
module.exports = require("@splunk/react-ui/Dropdown");
|
|
2884
2934
|
|
|
2885
2935
|
/***/ }),
|
|
2886
|
-
/*
|
|
2936
|
+
/* 180 */
|
|
2887
2937
|
/***/ (function(module, exports) {
|
|
2888
2938
|
|
|
2889
2939
|
module.exports = require("@splunk/react-ui/Button");
|
|
2890
2940
|
|
|
2891
2941
|
/***/ }),
|
|
2892
|
-
/*
|
|
2942
|
+
/* 181 */
|
|
2893
2943
|
/***/ (function(module, exports) {
|
|
2894
2944
|
|
|
2895
2945
|
module.exports = require("@splunk/react-ui/Menu");
|
|
2896
2946
|
|
|
2897
2947
|
/***/ }),
|
|
2898
|
-
/*
|
|
2948
|
+
/* 182 */
|
|
2899
2949
|
/***/ (function(module, exports) {
|
|
2900
2950
|
|
|
2901
2951
|
module.exports = require("@splunk/react-ui/Chip");
|
|
2902
2952
|
|
|
2903
2953
|
/***/ }),
|
|
2904
|
-
/*
|
|
2954
|
+
/* 183 */
|
|
2905
2955
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2906
2956
|
|
|
2907
2957
|
"use strict";
|
|
@@ -2914,7 +2964,7 @@ exports.StyledFields = void 0;
|
|
|
2914
2964
|
|
|
2915
2965
|
var styled_components_1 = __webpack_require__(4);
|
|
2916
2966
|
|
|
2917
|
-
var pick_1 = __webpack_require__(
|
|
2967
|
+
var pick_1 = __webpack_require__(21);
|
|
2918
2968
|
|
|
2919
2969
|
exports.StyledFields = styled_components_1.default.div.withConfig({
|
|
2920
2970
|
displayName: "FieldStyles__StyledFields",
|
|
@@ -2931,13 +2981,13 @@ exports.StyledFields = styled_components_1.default.div.withConfig({
|
|
|
2931
2981
|
}));
|
|
2932
2982
|
|
|
2933
2983
|
/***/ }),
|
|
2934
|
-
/*
|
|
2984
|
+
/* 184 */
|
|
2935
2985
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2936
2986
|
|
|
2937
2987
|
"use strict";
|
|
2938
2988
|
|
|
2939
2989
|
|
|
2940
|
-
var _toConsumableArray = __webpack_require__(
|
|
2990
|
+
var _toConsumableArray = __webpack_require__(39);
|
|
2941
2991
|
|
|
2942
2992
|
Object.defineProperty(exports, "__esModule", {
|
|
2943
2993
|
value: true
|
|
@@ -2945,23 +2995,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2945
2995
|
|
|
2946
2996
|
var lodash_1 = __webpack_require__(2);
|
|
2947
2997
|
|
|
2948
|
-
var visualization_icons_1 = __webpack_require__(
|
|
2998
|
+
var visualization_icons_1 = __webpack_require__(42);
|
|
2949
2999
|
|
|
2950
3000
|
var schemaUtils_1 = __webpack_require__(14);
|
|
2951
3001
|
|
|
2952
3002
|
var i18n_1 = __webpack_require__(3);
|
|
2953
3003
|
|
|
2954
|
-
var pick_1 = __webpack_require__(
|
|
3004
|
+
var pick_1 = __webpack_require__(21);
|
|
2955
3005
|
|
|
2956
3006
|
var variables_1 = __webpack_require__(19);
|
|
2957
3007
|
|
|
2958
|
-
var colorConstants_1 = __webpack_require__(
|
|
3008
|
+
var colorConstants_1 = __webpack_require__(40);
|
|
2959
3009
|
|
|
2960
3010
|
var visualization_color_palettes_1 = __webpack_require__(41);
|
|
2961
3011
|
|
|
2962
|
-
var configUtils_1 = __webpack_require__(
|
|
3012
|
+
var configUtils_1 = __webpack_require__(8);
|
|
2963
3013
|
|
|
2964
|
-
var VizCategory_1 = __webpack_require__(
|
|
3014
|
+
var VizCategory_1 = __webpack_require__(26);
|
|
2965
3015
|
|
|
2966
3016
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2967
3017
|
|
|
@@ -2999,7 +3049,7 @@ var optionsSchema = {
|
|
|
2999
3049
|
}
|
|
3000
3050
|
},
|
|
3001
3051
|
linkColor: {
|
|
3002
|
-
default: '
|
|
3052
|
+
default: '#6d6f76',
|
|
3003
3053
|
description: 'Specify the color used for highlighted links. Unhighlighted links will be displayed at 20% opacity.',
|
|
3004
3054
|
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
|
|
3005
3055
|
type: 'string'
|
|
@@ -3067,15 +3117,6 @@ var themes = {
|
|
|
3067
3117
|
prisma: variables_1.default.backgroundColorSidebar(props)
|
|
3068
3118
|
})(props);
|
|
3069
3119
|
},
|
|
3070
|
-
defaultLinkColor: function defaultLinkColor(props) {
|
|
3071
|
-
return pick_1.default({
|
|
3072
|
-
enterprise: {
|
|
3073
|
-
dark: '#6d6f76',
|
|
3074
|
-
light: '#6d6f76'
|
|
3075
|
-
},
|
|
3076
|
-
prisma: '#6d6f76'
|
|
3077
|
-
})(props);
|
|
3078
|
-
},
|
|
3079
3120
|
defaultNodeColor: function defaultNodeColor(props) {
|
|
3080
3121
|
return pick_1.default({
|
|
3081
3122
|
enterprise: {
|
|
@@ -3158,6 +3199,7 @@ var editorConfig = [// {
|
|
|
3158
3199
|
editorProps: {
|
|
3159
3200
|
themes: themes,
|
|
3160
3201
|
labelPosition: 'top',
|
|
3202
|
+
min: 0,
|
|
3161
3203
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3162
3204
|
}
|
|
3163
3205
|
}, {
|
|
@@ -3167,24 +3209,27 @@ var editorConfig = [// {
|
|
|
3167
3209
|
editorProps: {
|
|
3168
3210
|
themes: themes,
|
|
3169
3211
|
labelPosition: 'top',
|
|
3212
|
+
min: 0,
|
|
3170
3213
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3171
3214
|
}
|
|
3172
3215
|
}], [{
|
|
3173
3216
|
label: i18n_1._('Vertical Spacing'),
|
|
3174
|
-
option: '
|
|
3217
|
+
option: 'nodeSpacingY',
|
|
3175
3218
|
editor: 'editor.number',
|
|
3176
3219
|
editorProps: {
|
|
3177
3220
|
themes: themes,
|
|
3178
3221
|
labelPosition: 'top',
|
|
3222
|
+
min: 0,
|
|
3179
3223
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3180
3224
|
}
|
|
3181
3225
|
}, {
|
|
3182
3226
|
label: i18n_1._('Horizontal Spacing'),
|
|
3183
|
-
option: '
|
|
3227
|
+
option: 'nodeSpacingX',
|
|
3184
3228
|
editor: 'editor.number',
|
|
3185
3229
|
editorProps: {
|
|
3186
3230
|
themes: themes,
|
|
3187
3231
|
labelPosition: 'top',
|
|
3232
|
+
min: 0,
|
|
3188
3233
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3189
3234
|
}
|
|
3190
3235
|
}], [{
|
|
@@ -3194,6 +3239,7 @@ var editorConfig = [// {
|
|
|
3194
3239
|
editorProps: {
|
|
3195
3240
|
themes: themes,
|
|
3196
3241
|
labelPosition: 'left',
|
|
3242
|
+
min: 0,
|
|
3197
3243
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3198
3244
|
}
|
|
3199
3245
|
}], [{
|
|
@@ -3203,6 +3249,7 @@ var editorConfig = [// {
|
|
|
3203
3249
|
editorProps: {
|
|
3204
3250
|
themes: themes,
|
|
3205
3251
|
labelPosition: 'left',
|
|
3252
|
+
min: 0,
|
|
3206
3253
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3207
3254
|
}
|
|
3208
3255
|
}]]
|
|
@@ -3241,6 +3288,7 @@ var config = {
|
|
|
3241
3288
|
*/
|
|
3242
3289
|
name: 'Link Graph',
|
|
3243
3290
|
category: VizCategory_1.VizCategory.FLOW,
|
|
3291
|
+
status: 'preview',
|
|
3244
3292
|
|
|
3245
3293
|
/**
|
|
3246
3294
|
* viz icon
|