@splunk/visualizations 25.5.0 → 25.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Dark.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_DarkPrisma.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Light.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Background_Color_Light_Blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Value_Highlighting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
- package/Area.js +226 -143
- package/Area.js.map +1 -1
- package/Bar.js +226 -143
- package/Bar.js.map +1 -1
- package/Bubble.js +218 -135
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +217 -139
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +226 -143
- package/Column.js.map +1 -1
- package/Ellipse.js +188 -105
- package/Ellipse.js.map +1 -1
- package/Events.config.js +3 -0
- package/Events.config.js.map +1 -1
- package/Events.js +967 -267
- package/Events.js.map +1 -1
- package/FillerGauge.js +214 -126
- package/FillerGauge.js.map +1 -1
- package/Image.js +210 -125
- package/Image.js.map +1 -1
- package/Line.js +231 -143
- package/Line.js.map +1 -1
- package/LinkGraph.js +601 -524
- package/LinkGraph.js.map +1 -1
- package/Map.js +484 -406
- package/Map.js.map +1 -1
- package/Markdown.js +295 -210
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +388 -310
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +469 -391
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +428 -343
- package/Pie.js.map +1 -1
- package/Punchcard.js +480 -402
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +437 -352
- package/Rectangle.js.map +1 -1
- package/Sankey.js +497 -419
- package/Sankey.js.map +1 -1
- package/Scatter.js +361 -276
- package/Scatter.js.map +1 -1
- package/SingleValue.js +386 -301
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +23 -23
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.js +385 -300
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.js +319 -234
- package/SingleValueRadial.js.map +1 -1
- package/Table.js +309 -231
- package/Table.js.map +1 -1
- package/common/EventsDoc.js +3 -3
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +2 -2
- package/common/GaugeValueMarker.js +2 -2
- package/common/OptionsDoc.js +14 -14
- package/common/OptionsDoc.js.map +1 -1
- package/common/ThemesDoc.js +10 -10
- package/common/ThemesDoc.js.map +1 -1
- package/common/withDashboardViz.js +122 -42
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +13 -11
package/Sankey.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 = 446);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -120,7 +120,14 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
123
|
+
/***/ 12:
|
|
124
|
+
/***/ (function(module, exports) {
|
|
125
|
+
|
|
126
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
127
|
+
|
|
128
|
+
/***/ }),
|
|
129
|
+
|
|
130
|
+
/***/ 124:
|
|
124
131
|
/***/ (function(module, exports, __webpack_require__) {
|
|
125
132
|
|
|
126
133
|
"use strict";
|
|
@@ -132,9 +139,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
132
139
|
exports.truncateSVGTextWithEllipsis = exports.checkDigitsOnly = exports.computeAllConnectedLinksToNodes = exports.getAllConnectedLinks = exports.extractLinkMidPoint = exports.getAllNodeNames = exports.getLinkId = exports.getNodeId = exports.convertInputToSankeyDataFormat = exports.getColorCategoryMapping = exports.getNodesIndex = void 0;
|
|
133
140
|
/* eslint-disable no-param-reassign */
|
|
134
141
|
|
|
135
|
-
var d3_scale_1 = __webpack_require__(
|
|
142
|
+
var d3_scale_1 = __webpack_require__(83);
|
|
136
143
|
|
|
137
|
-
var types_1 = __webpack_require__(
|
|
144
|
+
var types_1 = __webpack_require__(85);
|
|
138
145
|
|
|
139
146
|
var insertNodeIfNotExist = function insertNodeIfNotExist(sankeyData, nodeName) {
|
|
140
147
|
var nodes = sankeyData.nodes;
|
|
@@ -407,27 +414,13 @@ exports.truncateSVGTextWithEllipsis = truncateSVGTextWithEllipsis;
|
|
|
407
414
|
|
|
408
415
|
/***/ }),
|
|
409
416
|
|
|
410
|
-
/***/
|
|
411
|
-
/***/ (function(module, exports) {
|
|
412
|
-
|
|
413
|
-
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
414
|
-
|
|
415
|
-
/***/ }),
|
|
416
|
-
|
|
417
|
-
/***/ 123:
|
|
417
|
+
/***/ 129:
|
|
418
418
|
/***/ (function(module, exports) {
|
|
419
419
|
|
|
420
420
|
module.exports = require("d3-interpolate");
|
|
421
421
|
|
|
422
422
|
/***/ }),
|
|
423
423
|
|
|
424
|
-
/***/ 124:
|
|
425
|
-
/***/ (function(module, exports) {
|
|
426
|
-
|
|
427
|
-
module.exports = require("d3-collection");
|
|
428
|
-
|
|
429
|
-
/***/ }),
|
|
430
|
-
|
|
431
424
|
/***/ 13:
|
|
432
425
|
/***/ (function(module, exports, __webpack_require__) {
|
|
433
426
|
|
|
@@ -442,7 +435,7 @@ var React = __webpack_require__(1);
|
|
|
442
435
|
|
|
443
436
|
var styled_components_1 = __webpack_require__(4);
|
|
444
437
|
|
|
445
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
438
|
+
var SizeAwareWrapper_1 = __webpack_require__(21);
|
|
446
439
|
|
|
447
440
|
var style_1 = __webpack_require__(15);
|
|
448
441
|
|
|
@@ -503,7 +496,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
503
496
|
|
|
504
497
|
return React.createElement(FixSizeItem, {
|
|
505
498
|
"data-test": "fix-size-item",
|
|
506
|
-
"data-splunk-visualization-version": "25.
|
|
499
|
+
"data-splunk-visualization-version": "25.6.0 - f5eb3abf9",
|
|
507
500
|
width: width,
|
|
508
501
|
height: height,
|
|
509
502
|
backgroundColor: backgroundColor
|
|
@@ -525,6 +518,13 @@ exports.default = withFixedSizeContainer;
|
|
|
525
518
|
|
|
526
519
|
/***/ }),
|
|
527
520
|
|
|
521
|
+
/***/ 130:
|
|
522
|
+
/***/ (function(module, exports) {
|
|
523
|
+
|
|
524
|
+
module.exports = require("d3-collection");
|
|
525
|
+
|
|
526
|
+
/***/ }),
|
|
527
|
+
|
|
528
528
|
/***/ 14:
|
|
529
529
|
/***/ (function(module, exports, __webpack_require__) {
|
|
530
530
|
|
|
@@ -558,13 +558,20 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
558
558
|
|
|
559
559
|
/***/ }),
|
|
560
560
|
|
|
561
|
-
/***/
|
|
561
|
+
/***/ 15:
|
|
562
|
+
/***/ (function(module, exports) {
|
|
563
|
+
|
|
564
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
565
|
+
|
|
566
|
+
/***/ }),
|
|
567
|
+
|
|
568
|
+
/***/ 155:
|
|
562
569
|
/***/ (function(module, exports, __webpack_require__) {
|
|
563
570
|
|
|
564
571
|
"use strict";
|
|
565
572
|
|
|
566
573
|
|
|
567
|
-
var _typeof = __webpack_require__(
|
|
574
|
+
var _typeof = __webpack_require__(87);
|
|
568
575
|
|
|
569
576
|
Object.defineProperty(exports, "__esModule", {
|
|
570
577
|
value: true
|
|
@@ -573,17 +580,17 @@ exports.PureSankey = exports.config = exports.themes = exports.computeVizProps =
|
|
|
573
580
|
|
|
574
581
|
var lodash_1 = __webpack_require__(3);
|
|
575
582
|
|
|
576
|
-
var dataSourceUtils_1 = __webpack_require__(
|
|
583
|
+
var dataSourceUtils_1 = __webpack_require__(86);
|
|
577
584
|
|
|
578
585
|
var colorUtils_1 = __webpack_require__(12);
|
|
579
586
|
|
|
580
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
587
|
+
var withDashboardViz_1 = __webpack_require__(35);
|
|
581
588
|
|
|
582
|
-
var PureSankey_1 = __webpack_require__(
|
|
589
|
+
var PureSankey_1 = __webpack_require__(99);
|
|
583
590
|
|
|
584
591
|
exports.PureSankey = PureSankey_1.default;
|
|
585
592
|
|
|
586
|
-
var config_1 = __webpack_require__(
|
|
593
|
+
var config_1 = __webpack_require__(451);
|
|
587
594
|
|
|
588
595
|
exports.config = config_1.default;
|
|
589
596
|
/**
|
|
@@ -672,21 +679,21 @@ exports.default = Sankey;
|
|
|
672
679
|
|
|
673
680
|
/***/ }),
|
|
674
681
|
|
|
675
|
-
/***/
|
|
682
|
+
/***/ 16:
|
|
676
683
|
/***/ (function(module, exports) {
|
|
677
684
|
|
|
678
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
685
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
679
686
|
|
|
680
687
|
/***/ }),
|
|
681
688
|
|
|
682
|
-
/***/
|
|
689
|
+
/***/ 17:
|
|
683
690
|
/***/ (function(module, exports) {
|
|
684
691
|
|
|
685
|
-
module.exports = require("@
|
|
692
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
686
693
|
|
|
687
694
|
/***/ }),
|
|
688
695
|
|
|
689
|
-
/***/
|
|
696
|
+
/***/ 18:
|
|
690
697
|
/***/ (function(module, exports, __webpack_require__) {
|
|
691
698
|
|
|
692
699
|
"use strict";
|
|
@@ -923,56 +930,77 @@ exports.insertLayout = insertLayout;
|
|
|
923
930
|
|
|
924
931
|
/***/ }),
|
|
925
932
|
|
|
926
|
-
/***/
|
|
933
|
+
/***/ 19:
|
|
927
934
|
/***/ (function(module, exports) {
|
|
928
935
|
|
|
929
936
|
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
930
937
|
|
|
931
938
|
/***/ }),
|
|
932
939
|
|
|
933
|
-
/***/
|
|
940
|
+
/***/ 2:
|
|
934
941
|
/***/ (function(module, exports) {
|
|
935
942
|
|
|
936
|
-
module.exports = require("@
|
|
943
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
937
944
|
|
|
938
945
|
/***/ }),
|
|
939
946
|
|
|
940
|
-
/***/
|
|
947
|
+
/***/ 20:
|
|
941
948
|
/***/ (function(module, exports) {
|
|
942
949
|
|
|
943
|
-
module.exports = require("@
|
|
950
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
944
951
|
|
|
945
952
|
/***/ }),
|
|
946
953
|
|
|
947
|
-
/***/
|
|
954
|
+
/***/ 21:
|
|
948
955
|
/***/ (function(module, exports) {
|
|
949
956
|
|
|
950
957
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
951
958
|
|
|
952
959
|
/***/ }),
|
|
953
960
|
|
|
954
|
-
/***/
|
|
961
|
+
/***/ 24:
|
|
955
962
|
/***/ (function(module, exports) {
|
|
956
963
|
|
|
957
964
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
958
965
|
|
|
959
966
|
/***/ }),
|
|
960
967
|
|
|
961
|
-
/***/
|
|
968
|
+
/***/ 26:
|
|
969
|
+
/***/ (function(module, exports) {
|
|
970
|
+
|
|
971
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
972
|
+
|
|
973
|
+
/***/ }),
|
|
974
|
+
|
|
975
|
+
/***/ 27:
|
|
962
976
|
/***/ (function(module, exports) {
|
|
963
977
|
|
|
964
978
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
965
979
|
|
|
966
980
|
/***/ }),
|
|
967
981
|
|
|
968
|
-
/***/
|
|
982
|
+
/***/ 28:
|
|
969
983
|
/***/ (function(module, exports) {
|
|
970
984
|
|
|
971
985
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
972
986
|
|
|
973
987
|
/***/ }),
|
|
974
988
|
|
|
975
|
-
/***/
|
|
989
|
+
/***/ 29:
|
|
990
|
+
/***/ (function(module, exports) {
|
|
991
|
+
|
|
992
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
993
|
+
|
|
994
|
+
/***/ }),
|
|
995
|
+
|
|
996
|
+
/***/ 3:
|
|
997
|
+
/***/ (function(module, exports) {
|
|
998
|
+
|
|
999
|
+
module.exports = require("lodash");
|
|
1000
|
+
|
|
1001
|
+
/***/ }),
|
|
1002
|
+
|
|
1003
|
+
/***/ 30:
|
|
976
1004
|
/***/ (function(module, exports, __webpack_require__) {
|
|
977
1005
|
|
|
978
1006
|
"use strict";
|
|
@@ -1064,7 +1092,14 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
1064
1092
|
|
|
1065
1093
|
/***/ }),
|
|
1066
1094
|
|
|
1067
|
-
/***/
|
|
1095
|
+
/***/ 31:
|
|
1096
|
+
/***/ (function(module, exports) {
|
|
1097
|
+
|
|
1098
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
1099
|
+
|
|
1100
|
+
/***/ }),
|
|
1101
|
+
|
|
1102
|
+
/***/ 32:
|
|
1068
1103
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1069
1104
|
|
|
1070
1105
|
"use strict";
|
|
@@ -1081,7 +1116,7 @@ var T = __webpack_require__(0);
|
|
|
1081
1116
|
|
|
1082
1117
|
var lodash_1 = __webpack_require__(3);
|
|
1083
1118
|
|
|
1084
|
-
var DataSource_1 = __webpack_require__(
|
|
1119
|
+
var DataSource_1 = __webpack_require__(43);
|
|
1085
1120
|
|
|
1086
1121
|
exports.SortParamsPropTypes = T.shape({
|
|
1087
1122
|
currentSortKey: T.string,
|
|
@@ -1135,7 +1170,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1135
1170
|
|
|
1136
1171
|
/***/ }),
|
|
1137
1172
|
|
|
1138
|
-
/***/
|
|
1173
|
+
/***/ 33:
|
|
1139
1174
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1140
1175
|
|
|
1141
1176
|
"use strict";
|
|
@@ -1200,21 +1235,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1200
1235
|
|
|
1201
1236
|
/***/ }),
|
|
1202
1237
|
|
|
1203
|
-
/***/
|
|
1204
|
-
/***/ (function(module, exports) {
|
|
1205
|
-
|
|
1206
|
-
module.exports = require("lodash");
|
|
1207
|
-
|
|
1208
|
-
/***/ }),
|
|
1209
|
-
|
|
1210
|
-
/***/ 30:
|
|
1211
|
-
/***/ (function(module, exports) {
|
|
1212
|
-
|
|
1213
|
-
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1214
|
-
|
|
1215
|
-
/***/ }),
|
|
1216
|
-
|
|
1217
|
-
/***/ 31:
|
|
1238
|
+
/***/ 34:
|
|
1218
1239
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1219
1240
|
|
|
1220
1241
|
"use strict";
|
|
@@ -1243,12 +1264,14 @@ var VizCategory;
|
|
|
1243
1264
|
|
|
1244
1265
|
/***/ }),
|
|
1245
1266
|
|
|
1246
|
-
/***/
|
|
1267
|
+
/***/ 35:
|
|
1247
1268
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1248
1269
|
|
|
1249
1270
|
"use strict";
|
|
1250
1271
|
|
|
1251
1272
|
|
|
1273
|
+
var _slicedToArray = __webpack_require__(17);
|
|
1274
|
+
|
|
1252
1275
|
Object.defineProperty(exports, "__esModule", {
|
|
1253
1276
|
value: true
|
|
1254
1277
|
});
|
|
@@ -1257,44 +1280,51 @@ var React = __webpack_require__(1);
|
|
|
1257
1280
|
|
|
1258
1281
|
var lodash_1 = __webpack_require__(3);
|
|
1259
1282
|
|
|
1260
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1283
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(36);
|
|
1261
1284
|
|
|
1262
|
-
var Options_1 = __webpack_require__(
|
|
1285
|
+
var Options_1 = __webpack_require__(37);
|
|
1263
1286
|
|
|
1264
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1287
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
1265
1288
|
|
|
1266
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1289
|
+
var TimezoneContext_1 = __webpack_require__(24);
|
|
1267
1290
|
|
|
1268
|
-
var moment_1 = __webpack_require__(
|
|
1291
|
+
var moment_1 = __webpack_require__(39);
|
|
1292
|
+
|
|
1293
|
+
var FeatureFlagContext_1 = __webpack_require__(26);
|
|
1269
1294
|
|
|
1270
1295
|
var styled_components_1 = __webpack_require__(4);
|
|
1271
1296
|
|
|
1272
|
-
var hocUtils_1 = __webpack_require__(
|
|
1297
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
1298
|
+
|
|
1299
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
1273
1300
|
|
|
1274
|
-
var
|
|
1301
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
1275
1302
|
|
|
1276
|
-
var
|
|
1303
|
+
var id_1 = __webpack_require__(31);
|
|
1304
|
+
|
|
1305
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
1277
1306
|
|
|
1278
1307
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1279
1308
|
|
|
1280
|
-
var getSorting_1 = __webpack_require__(
|
|
1309
|
+
var getSorting_1 = __webpack_require__(32);
|
|
1310
|
+
|
|
1311
|
+
var getPagination_1 = __webpack_require__(33);
|
|
1281
1312
|
|
|
1282
|
-
var
|
|
1313
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
1283
1314
|
|
|
1284
|
-
var
|
|
1315
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
1285
1316
|
|
|
1286
|
-
var
|
|
1317
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
1287
1318
|
|
|
1288
|
-
var
|
|
1319
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
1289
1320
|
|
|
1290
|
-
var
|
|
1321
|
+
var UUID = id_1.createGUID();
|
|
1291
1322
|
/**
|
|
1292
1323
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1293
1324
|
* @param {DashboardVizOpts} opts
|
|
1294
1325
|
* @returns {HOC}
|
|
1295
1326
|
*/
|
|
1296
1327
|
|
|
1297
|
-
|
|
1298
1328
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
1299
1329
|
var ReactViz = opts.ReactViz,
|
|
1300
1330
|
vizConfig = opts.vizConfig,
|
|
@@ -1354,28 +1384,76 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1354
1384
|
|
|
1355
1385
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1356
1386
|
|
|
1387
|
+
var _React$useState = React.useState({}),
|
|
1388
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1389
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1390
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1394
|
+
|
|
1395
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1396
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1397
|
+
visualizationID = _React$useState4[0];
|
|
1398
|
+
|
|
1399
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext['visualizations.useWebWorkersForDSL'] && typeof Worker !== 'undefined')),
|
|
1400
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1401
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1402
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1403
|
+
|
|
1357
1404
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
1358
1405
|
try {
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1406
|
+
if (useAsyncEvaluatedOptions) {
|
|
1407
|
+
var optionsToEvaluate = {
|
|
1408
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1409
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1410
|
+
};
|
|
1411
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1412
|
+
visualizationID: visualizationID,
|
|
1413
|
+
props: props,
|
|
1414
|
+
options: optionsToEvaluate,
|
|
1415
|
+
dataSources: dataSources,
|
|
1416
|
+
theme: vizConfig.themes
|
|
1417
|
+
};
|
|
1418
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1419
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1420
|
+
}).catch(function (e) {
|
|
1421
|
+
// eslint-disable-next-line no-console
|
|
1422
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1423
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1424
|
+
});
|
|
1425
|
+
} else {
|
|
1426
|
+
return Options_1.Options.evaluate({
|
|
1427
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1428
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1429
|
+
}, dataSources, themeFunc);
|
|
1430
|
+
}
|
|
1363
1431
|
} catch (e) {
|
|
1364
1432
|
// eslint-disable-next-line no-console
|
|
1365
|
-
console.error("unexpected error evaluating options:
|
|
1433
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
1366
1434
|
return {};
|
|
1367
1435
|
}
|
|
1368
|
-
|
|
1436
|
+
|
|
1437
|
+
return {};
|
|
1438
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1439
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // useEffect hook needs to be initialized before any early returns
|
|
1369
1440
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1370
1441
|
|
|
1371
1442
|
React.useEffect(function () {
|
|
1372
|
-
onComputedProps(
|
|
1373
|
-
});
|
|
1443
|
+
onComputedProps(evaluatedOptionsToUse);
|
|
1444
|
+
});
|
|
1445
|
+
React.useEffect(function () {
|
|
1446
|
+
return function () {
|
|
1447
|
+
if (useAsyncEvaluatedOptions) {
|
|
1448
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1449
|
+
}
|
|
1450
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1451
|
+
}, []); // present warning message if any required props are missing
|
|
1374
1452
|
|
|
1375
1453
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1376
1454
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1377
1455
|
supports = vizConfig.supports;
|
|
1378
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1456
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1379
1457
|
|
|
1380
1458
|
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
|
|
1381
1459
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -1402,7 +1480,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1402
1480
|
|
|
1403
1481
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1404
1482
|
payloadKeys.forEach(function (p) {
|
|
1405
|
-
payload[p] =
|
|
1483
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1406
1484
|
});
|
|
1407
1485
|
}
|
|
1408
1486
|
|
|
@@ -1421,7 +1499,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1421
1499
|
} // compute pure viz props which are not from options
|
|
1422
1500
|
|
|
1423
1501
|
|
|
1424
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1502
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1425
1503
|
themeFunc: themeFunc
|
|
1426
1504
|
}));
|
|
1427
1505
|
/**
|
|
@@ -1441,7 +1519,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1441
1519
|
|
|
1442
1520
|
var dataSourceMetadata = {};
|
|
1443
1521
|
var OptionKey = 'paginateDataSourceKey';
|
|
1444
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1522
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1445
1523
|
|
|
1446
1524
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1447
1525
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1471,7 +1549,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1471
1549
|
mode: mode,
|
|
1472
1550
|
width: width,
|
|
1473
1551
|
height: height
|
|
1474
|
-
},
|
|
1552
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1475
1553
|
};
|
|
1476
1554
|
|
|
1477
1555
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -1489,35 +1567,49 @@ exports.default = withDashboardViz;
|
|
|
1489
1567
|
|
|
1490
1568
|
/***/ }),
|
|
1491
1569
|
|
|
1492
|
-
/***/
|
|
1570
|
+
/***/ 36:
|
|
1493
1571
|
/***/ (function(module, exports) {
|
|
1494
1572
|
|
|
1495
1573
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1496
1574
|
|
|
1497
1575
|
/***/ }),
|
|
1498
1576
|
|
|
1499
|
-
/***/
|
|
1577
|
+
/***/ 37:
|
|
1500
1578
|
/***/ (function(module, exports) {
|
|
1501
1579
|
|
|
1502
1580
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1503
1581
|
|
|
1504
1582
|
/***/ }),
|
|
1505
1583
|
|
|
1506
|
-
/***/
|
|
1584
|
+
/***/ 38:
|
|
1507
1585
|
/***/ (function(module, exports) {
|
|
1508
1586
|
|
|
1509
1587
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1510
1588
|
|
|
1511
1589
|
/***/ }),
|
|
1512
1590
|
|
|
1513
|
-
/***/
|
|
1591
|
+
/***/ 39:
|
|
1514
1592
|
/***/ (function(module, exports) {
|
|
1515
1593
|
|
|
1516
1594
|
module.exports = require("@splunk/moment");
|
|
1517
1595
|
|
|
1518
1596
|
/***/ }),
|
|
1519
1597
|
|
|
1520
|
-
/***/
|
|
1598
|
+
/***/ 4:
|
|
1599
|
+
/***/ (function(module, exports) {
|
|
1600
|
+
|
|
1601
|
+
module.exports = require("styled-components");
|
|
1602
|
+
|
|
1603
|
+
/***/ }),
|
|
1604
|
+
|
|
1605
|
+
/***/ 40:
|
|
1606
|
+
/***/ (function(module, exports) {
|
|
1607
|
+
|
|
1608
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1609
|
+
|
|
1610
|
+
/***/ }),
|
|
1611
|
+
|
|
1612
|
+
/***/ 41:
|
|
1521
1613
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1522
1614
|
|
|
1523
1615
|
"use strict";
|
|
@@ -1535,7 +1627,7 @@ var T = __webpack_require__(0);
|
|
|
1535
1627
|
|
|
1536
1628
|
var lodash_1 = __webpack_require__(3);
|
|
1537
1629
|
|
|
1538
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1630
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1539
1631
|
|
|
1540
1632
|
|
|
1541
1633
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1669,7 +1761,7 @@ exports.default = SplunkVisualization;
|
|
|
1669
1761
|
|
|
1670
1762
|
/***/ }),
|
|
1671
1763
|
|
|
1672
|
-
/***/
|
|
1764
|
+
/***/ 42:
|
|
1673
1765
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1674
1766
|
|
|
1675
1767
|
"use strict";
|
|
@@ -1677,7 +1769,7 @@ exports.default = SplunkVisualization;
|
|
|
1677
1769
|
|
|
1678
1770
|
var _classCallCheck = __webpack_require__(11);
|
|
1679
1771
|
|
|
1680
|
-
var _createClass = __webpack_require__(
|
|
1772
|
+
var _createClass = __webpack_require__(20);
|
|
1681
1773
|
|
|
1682
1774
|
Object.defineProperty(exports, "__esModule", {
|
|
1683
1775
|
value: true
|
|
@@ -1707,7 +1799,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1707
1799
|
|
|
1708
1800
|
/***/ }),
|
|
1709
1801
|
|
|
1710
|
-
/***/
|
|
1802
|
+
/***/ 43:
|
|
1711
1803
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1712
1804
|
|
|
1713
1805
|
"use strict";
|
|
@@ -1721,14 +1813,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1721
1813
|
|
|
1722
1814
|
/***/ }),
|
|
1723
1815
|
|
|
1724
|
-
/***/
|
|
1725
|
-
/***/ (function(module, exports) {
|
|
1726
|
-
|
|
1727
|
-
module.exports = require("styled-components");
|
|
1728
|
-
|
|
1729
|
-
/***/ }),
|
|
1730
|
-
|
|
1731
|
-
/***/ 40:
|
|
1816
|
+
/***/ 44:
|
|
1732
1817
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1733
1818
|
|
|
1734
1819
|
"use strict";
|
|
@@ -1774,274 +1859,75 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1774
1859
|
|
|
1775
1860
|
/***/ }),
|
|
1776
1861
|
|
|
1777
|
-
/***/
|
|
1862
|
+
/***/ 446:
|
|
1778
1863
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1779
1864
|
|
|
1780
1865
|
"use strict";
|
|
1781
1866
|
|
|
1782
1867
|
|
|
1868
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1869
|
+
if (k2 === undefined) k2 = k;
|
|
1870
|
+
Object.defineProperty(o, k2, {
|
|
1871
|
+
enumerable: true,
|
|
1872
|
+
get: function get() {
|
|
1873
|
+
return m[k];
|
|
1874
|
+
}
|
|
1875
|
+
});
|
|
1876
|
+
} : function (o, m, k, k2) {
|
|
1877
|
+
if (k2 === undefined) k2 = k;
|
|
1878
|
+
o[k2] = m[k];
|
|
1879
|
+
});
|
|
1880
|
+
|
|
1881
|
+
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
1882
|
+
for (var p in m) {
|
|
1883
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1884
|
+
}
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1783
1887
|
Object.defineProperty(exports, "__esModule", {
|
|
1784
1888
|
value: true
|
|
1785
1889
|
});
|
|
1786
|
-
exports.
|
|
1890
|
+
exports.default = void 0;
|
|
1787
1891
|
|
|
1788
|
-
|
|
1892
|
+
__exportStar(__webpack_require__(155), exports);
|
|
1789
1893
|
|
|
1790
|
-
var
|
|
1894
|
+
var Sankey_1 = __webpack_require__(155);
|
|
1791
1895
|
|
|
1792
|
-
|
|
1896
|
+
Object.defineProperty(exports, "default", {
|
|
1897
|
+
enumerable: true,
|
|
1898
|
+
get: function get() {
|
|
1899
|
+
return Sankey_1.default;
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1793
1902
|
|
|
1794
|
-
|
|
1903
|
+
/***/ }),
|
|
1795
1904
|
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
* @method isMissing
|
|
1799
|
-
* @param {any} v
|
|
1800
|
-
* @returns {boolean} true if the input value === null or undefined
|
|
1801
|
-
*/
|
|
1905
|
+
/***/ 447:
|
|
1906
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1802
1907
|
|
|
1908
|
+
"use strict";
|
|
1909
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1910
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d3_sankey", function() { return d3_sankey; });
|
|
1911
|
+
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(129);
|
|
1912
|
+
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3_interpolate__WEBPACK_IMPORTED_MODULE_0__);
|
|
1913
|
+
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58);
|
|
1914
|
+
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(d3_array__WEBPACK_IMPORTED_MODULE_1__);
|
|
1915
|
+
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(130);
|
|
1916
|
+
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3_collection__WEBPACK_IMPORTED_MODULE_2__);
|
|
1917
|
+
// reference link :- https://github.com/csaladenes/sankey
|
|
1803
1918
|
|
|
1804
|
-
|
|
1805
|
-
return v === null || v === undefined;
|
|
1806
|
-
};
|
|
1919
|
+
/* eslint-disable */
|
|
1807
1920
|
|
|
1808
|
-
exports.isMissing = isMissing;
|
|
1809
|
-
/**
|
|
1810
|
-
* @method misskingKeys
|
|
1811
|
-
* @param {string[]} keys
|
|
1812
|
-
* @param {object} target
|
|
1813
|
-
* @returns {string[]} the keys of missing required props
|
|
1814
|
-
*/
|
|
1815
1921
|
|
|
1816
|
-
var missingKeys = function missingKeys(keys, target) {
|
|
1817
|
-
return keys.filter(function (k) {
|
|
1818
|
-
return exports.isMissing(target[k]);
|
|
1819
|
-
});
|
|
1820
|
-
};
|
|
1821
1922
|
|
|
1822
|
-
|
|
1823
|
-
var
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
/**
|
|
1831
|
-
* @method MissingPropsMessage
|
|
1832
|
-
* @param {MissingPropsProps} props
|
|
1833
|
-
* @returns {React.ReactElement}
|
|
1834
|
-
*/
|
|
1835
|
-
|
|
1836
|
-
var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
1837
|
-
var width = props.width,
|
|
1838
|
-
height = props.height,
|
|
1839
|
-
missingProps = props.missingProps;
|
|
1840
|
-
return React.createElement(Message_1.default, {
|
|
1841
|
-
"data-test": "message",
|
|
1842
|
-
width: width,
|
|
1843
|
-
height: height,
|
|
1844
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
1845
|
-
});
|
|
1846
|
-
};
|
|
1847
|
-
|
|
1848
|
-
exports.MissingPropsMessage = MissingPropsMessage;
|
|
1849
|
-
exports.MissingPropsMessage.propTypes = propTypes;
|
|
1850
|
-
exports.MissingPropsMessage.defaultProps = {
|
|
1851
|
-
width: '100%',
|
|
1852
|
-
height: 250
|
|
1853
|
-
};
|
|
1854
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1855
|
-
|
|
1856
|
-
/***/ }),
|
|
1857
|
-
|
|
1858
|
-
/***/ 42:
|
|
1859
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1860
|
-
|
|
1861
|
-
"use strict";
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1865
|
-
value: true
|
|
1866
|
-
});
|
|
1867
|
-
|
|
1868
|
-
var React = __webpack_require__(1);
|
|
1869
|
-
|
|
1870
|
-
var styled_components_1 = __webpack_require__(4);
|
|
1871
|
-
|
|
1872
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
1873
|
-
|
|
1874
|
-
var Cover = styled_components_1.default.div.withConfig({
|
|
1875
|
-
displayName: "withEditModeCover__Cover",
|
|
1876
|
-
componentId: "sc-1gsbnxb-0"
|
|
1877
|
-
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1878
|
-
var Blocker = styled_components_1.default.div.attrs({
|
|
1879
|
-
'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
|
|
1880
|
-
}).withConfig({
|
|
1881
|
-
displayName: "withEditModeCover__Blocker",
|
|
1882
|
-
componentId: "sc-1gsbnxb-1"
|
|
1883
|
-
})(["position:relative;width:100%;height:100%;"]);
|
|
1884
|
-
/**
|
|
1885
|
-
* HOC that renders a cover layer in edit mode
|
|
1886
|
-
* @method withEditModeCover
|
|
1887
|
-
* @param {ExtendedDashViz} Visualization
|
|
1888
|
-
* @returns {ExtendedDashViz} Wrapper
|
|
1889
|
-
*/
|
|
1890
|
-
|
|
1891
|
-
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
1892
|
-
var Wrapper = function Wrapper(props) {
|
|
1893
|
-
var mode = props.mode;
|
|
1894
|
-
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
1895
|
-
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
1896
|
-
"data-test": "edit-mode-cover"
|
|
1897
|
-
}));
|
|
1898
|
-
};
|
|
1899
|
-
|
|
1900
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1901
|
-
Wrapper: Wrapper,
|
|
1902
|
-
Visualization: Visualization
|
|
1903
|
-
});
|
|
1904
|
-
return Wrapper;
|
|
1905
|
-
};
|
|
1906
|
-
|
|
1907
|
-
exports.default = withEditModeCover;
|
|
1908
|
-
|
|
1909
|
-
/***/ }),
|
|
1910
|
-
|
|
1911
|
-
/***/ 43:
|
|
1912
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1913
|
-
|
|
1914
|
-
"use strict";
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1918
|
-
value: true
|
|
1919
|
-
});
|
|
1920
|
-
|
|
1921
|
-
var React = __webpack_require__(1);
|
|
1922
|
-
|
|
1923
|
-
var colorUtils_1 = __webpack_require__(12);
|
|
1924
|
-
|
|
1925
|
-
var variables_1 = __webpack_require__(9);
|
|
1926
|
-
|
|
1927
|
-
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1928
|
-
|
|
1929
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1930
|
-
|
|
1931
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
1932
|
-
|
|
1933
|
-
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1934
|
-
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
1935
|
-
var config = Visualization.config;
|
|
1936
|
-
var themes = config.themes;
|
|
1937
|
-
|
|
1938
|
-
var Wrapper = function Wrapper(props) {
|
|
1939
|
-
var _a, _b;
|
|
1940
|
-
|
|
1941
|
-
var dataSources = props.dataSources,
|
|
1942
|
-
loading = props.loading,
|
|
1943
|
-
options = props.options,
|
|
1944
|
-
height = props.height,
|
|
1945
|
-
width = props.width;
|
|
1946
|
-
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1947
|
-
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
1948
|
-
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
1949
|
-
var iconColor = variables_1.default.contentColorActive(props);
|
|
1950
|
-
|
|
1951
|
-
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
1952
|
-
return React.createElement(IconPlaceholder_1.default, {
|
|
1953
|
-
"data-test": "icon-placeholder",
|
|
1954
|
-
icon: icon,
|
|
1955
|
-
width: width,
|
|
1956
|
-
height: height,
|
|
1957
|
-
backgroundColor: bgColorFromTheme,
|
|
1958
|
-
iconColor: iconColor
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
return React.createElement(Visualization, Object.assign({}, props));
|
|
1963
|
-
};
|
|
1964
|
-
|
|
1965
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1966
|
-
Wrapper: Wrapper,
|
|
1967
|
-
Visualization: Visualization
|
|
1968
|
-
});
|
|
1969
|
-
return Wrapper;
|
|
1970
|
-
};
|
|
1971
|
-
|
|
1972
|
-
exports.default = withPlaceholder;
|
|
1973
|
-
|
|
1974
|
-
/***/ }),
|
|
1975
|
-
|
|
1976
|
-
/***/ 438:
|
|
1977
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1978
|
-
|
|
1979
|
-
"use strict";
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1983
|
-
if (k2 === undefined) k2 = k;
|
|
1984
|
-
Object.defineProperty(o, k2, {
|
|
1985
|
-
enumerable: true,
|
|
1986
|
-
get: function get() {
|
|
1987
|
-
return m[k];
|
|
1988
|
-
}
|
|
1989
|
-
});
|
|
1990
|
-
} : function (o, m, k, k2) {
|
|
1991
|
-
if (k2 === undefined) k2 = k;
|
|
1992
|
-
o[k2] = m[k];
|
|
1993
|
-
});
|
|
1994
|
-
|
|
1995
|
-
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
1996
|
-
for (var p in m) {
|
|
1997
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1998
|
-
}
|
|
1999
|
-
};
|
|
2000
|
-
|
|
2001
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2002
|
-
value: true
|
|
2003
|
-
});
|
|
2004
|
-
exports.default = void 0;
|
|
2005
|
-
|
|
2006
|
-
__exportStar(__webpack_require__(149), exports);
|
|
2007
|
-
|
|
2008
|
-
var Sankey_1 = __webpack_require__(149);
|
|
2009
|
-
|
|
2010
|
-
Object.defineProperty(exports, "default", {
|
|
2011
|
-
enumerable: true,
|
|
2012
|
-
get: function get() {
|
|
2013
|
-
return Sankey_1.default;
|
|
2014
|
-
}
|
|
2015
|
-
});
|
|
2016
|
-
|
|
2017
|
-
/***/ }),
|
|
2018
|
-
|
|
2019
|
-
/***/ 439:
|
|
2020
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2021
|
-
|
|
2022
|
-
"use strict";
|
|
2023
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2024
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d3_sankey", function() { return d3_sankey; });
|
|
2025
|
-
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(123);
|
|
2026
|
-
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3_interpolate__WEBPACK_IMPORTED_MODULE_0__);
|
|
2027
|
-
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
|
|
2028
|
-
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(d3_array__WEBPACK_IMPORTED_MODULE_1__);
|
|
2029
|
-
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(124);
|
|
2030
|
-
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3_collection__WEBPACK_IMPORTED_MODULE_2__);
|
|
2031
|
-
// reference link :- https://github.com/csaladenes/sankey
|
|
2032
|
-
|
|
2033
|
-
/* eslint-disable */
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
var d3_sankey = function d3_sankey() {
|
|
2038
|
-
var sankey = {},
|
|
2039
|
-
nodeWidth = 24,
|
|
2040
|
-
nodePadding = 8,
|
|
2041
|
-
size = [1, 1],
|
|
2042
|
-
nodes = [],
|
|
2043
|
-
links = [],
|
|
2044
|
-
components = [];
|
|
1923
|
+
var d3_sankey = function d3_sankey() {
|
|
1924
|
+
var sankey = {},
|
|
1925
|
+
nodeWidth = 24,
|
|
1926
|
+
nodePadding = 8,
|
|
1927
|
+
size = [1, 1],
|
|
1928
|
+
nodes = [],
|
|
1929
|
+
links = [],
|
|
1930
|
+
components = [];
|
|
2045
1931
|
|
|
2046
1932
|
sankey.nodeWidth = function (_) {
|
|
2047
1933
|
if (!arguments.length) return nodeWidth;
|
|
@@ -2583,14 +2469,7 @@ var d3_sankey = function d3_sankey() {
|
|
|
2583
2469
|
|
|
2584
2470
|
/***/ }),
|
|
2585
2471
|
|
|
2586
|
-
/***/
|
|
2587
|
-
/***/ (function(module, exports) {
|
|
2588
|
-
|
|
2589
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
2590
|
-
|
|
2591
|
-
/***/ }),
|
|
2592
|
-
|
|
2593
|
-
/***/ 440:
|
|
2472
|
+
/***/ 448:
|
|
2594
2473
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2595
2474
|
|
|
2596
2475
|
"use strict";
|
|
@@ -2608,9 +2487,9 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2608
2487
|
|
|
2609
2488
|
var react_1 = __webpack_require__(1);
|
|
2610
2489
|
|
|
2611
|
-
var PureSankey_1 = __webpack_require__(
|
|
2490
|
+
var PureSankey_1 = __webpack_require__(99);
|
|
2612
2491
|
|
|
2613
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
2492
|
+
var SankeyUtils_1 = __webpack_require__(124);
|
|
2614
2493
|
|
|
2615
2494
|
var MAX_NODE_TEXT_WIDTH = 150;
|
|
2616
2495
|
|
|
@@ -2711,7 +2590,7 @@ exports.default = SankeyNode;
|
|
|
2711
2590
|
|
|
2712
2591
|
/***/ }),
|
|
2713
2592
|
|
|
2714
|
-
/***/
|
|
2593
|
+
/***/ 449:
|
|
2715
2594
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2716
2595
|
|
|
2717
2596
|
"use strict";
|
|
@@ -2725,9 +2604,9 @@ var React = __webpack_require__(1);
|
|
|
2725
2604
|
|
|
2726
2605
|
var T = __webpack_require__(0);
|
|
2727
2606
|
|
|
2728
|
-
var PureSankey_1 = __webpack_require__(
|
|
2607
|
+
var PureSankey_1 = __webpack_require__(99);
|
|
2729
2608
|
|
|
2730
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
2609
|
+
var SankeyUtils_1 = __webpack_require__(124);
|
|
2731
2610
|
|
|
2732
2611
|
var getLinkFill = function getLinkFill(link, colorCategoryMapping, colorMode) {
|
|
2733
2612
|
if (colorMode === 'categorical') {
|
|
@@ -2820,7 +2699,88 @@ exports.default = SankeyLink;
|
|
|
2820
2699
|
|
|
2821
2700
|
/***/ }),
|
|
2822
2701
|
|
|
2823
|
-
/***/
|
|
2702
|
+
/***/ 45:
|
|
2703
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2704
|
+
|
|
2705
|
+
"use strict";
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2709
|
+
value: true
|
|
2710
|
+
});
|
|
2711
|
+
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
2712
|
+
|
|
2713
|
+
var React = __webpack_require__(1);
|
|
2714
|
+
|
|
2715
|
+
var T = __webpack_require__(0);
|
|
2716
|
+
|
|
2717
|
+
var i18n_1 = __webpack_require__(2);
|
|
2718
|
+
|
|
2719
|
+
var Message_1 = __webpack_require__(10);
|
|
2720
|
+
|
|
2721
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
2722
|
+
/**
|
|
2723
|
+
* @method isMissing
|
|
2724
|
+
* @param {any} v
|
|
2725
|
+
* @returns {boolean} true if the input value === null or undefined
|
|
2726
|
+
*/
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
var isMissing = function isMissing(v) {
|
|
2730
|
+
return v === null || v === undefined;
|
|
2731
|
+
};
|
|
2732
|
+
|
|
2733
|
+
exports.isMissing = isMissing;
|
|
2734
|
+
/**
|
|
2735
|
+
* @method misskingKeys
|
|
2736
|
+
* @param {string[]} keys
|
|
2737
|
+
* @param {object} target
|
|
2738
|
+
* @returns {string[]} the keys of missing required props
|
|
2739
|
+
*/
|
|
2740
|
+
|
|
2741
|
+
var missingKeys = function missingKeys(keys, target) {
|
|
2742
|
+
return keys.filter(function (k) {
|
|
2743
|
+
return exports.isMissing(target[k]);
|
|
2744
|
+
});
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
exports.missingKeys = missingKeys;
|
|
2748
|
+
var propTypes = {
|
|
2749
|
+
width: T.oneOfType([T.string, T.number]),
|
|
2750
|
+
height: T.oneOfType([T.string, T.number]),
|
|
2751
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
2752
|
+
backgroundColor: T.string,
|
|
2753
|
+
missingProps: T.arrayOf(T.string)
|
|
2754
|
+
};
|
|
2755
|
+
/**
|
|
2756
|
+
* @method MissingPropsMessage
|
|
2757
|
+
* @param {MissingPropsProps} props
|
|
2758
|
+
* @returns {React.ReactElement}
|
|
2759
|
+
*/
|
|
2760
|
+
|
|
2761
|
+
var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
2762
|
+
var width = props.width,
|
|
2763
|
+
height = props.height,
|
|
2764
|
+
missingProps = props.missingProps;
|
|
2765
|
+
return React.createElement(Message_1.default, {
|
|
2766
|
+
"data-test": "message",
|
|
2767
|
+
width: width,
|
|
2768
|
+
height: height,
|
|
2769
|
+
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
2770
|
+
});
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
exports.MissingPropsMessage = MissingPropsMessage;
|
|
2774
|
+
exports.MissingPropsMessage.propTypes = propTypes;
|
|
2775
|
+
exports.MissingPropsMessage.defaultProps = {
|
|
2776
|
+
width: '100%',
|
|
2777
|
+
height: 250
|
|
2778
|
+
};
|
|
2779
|
+
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
2780
|
+
|
|
2781
|
+
/***/ }),
|
|
2782
|
+
|
|
2783
|
+
/***/ 450:
|
|
2824
2784
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2825
2785
|
|
|
2826
2786
|
"use strict";
|
|
@@ -2838,9 +2798,9 @@ var Popover_1 = __webpack_require__(84);
|
|
|
2838
2798
|
|
|
2839
2799
|
var styled_components_1 = __webpack_require__(4);
|
|
2840
2800
|
|
|
2841
|
-
var numberUtils_1 = __webpack_require__(
|
|
2801
|
+
var numberUtils_1 = __webpack_require__(29);
|
|
2842
2802
|
|
|
2843
|
-
var PureSankey_1 = __webpack_require__(
|
|
2803
|
+
var PureSankey_1 = __webpack_require__(99);
|
|
2844
2804
|
|
|
2845
2805
|
var DEFAULT_PLACEMENT = 'below';
|
|
2846
2806
|
var StyledTooltipContainer = styled_components_1.default.div.withConfig({
|
|
@@ -3091,7 +3051,7 @@ exports.default = SankeyTooltip;
|
|
|
3091
3051
|
|
|
3092
3052
|
/***/ }),
|
|
3093
3053
|
|
|
3094
|
-
/***/
|
|
3054
|
+
/***/ 451:
|
|
3095
3055
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3096
3056
|
|
|
3097
3057
|
"use strict";
|
|
@@ -3101,29 +3061,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3101
3061
|
value: true
|
|
3102
3062
|
});
|
|
3103
3063
|
|
|
3104
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3064
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
3105
3065
|
|
|
3106
|
-
var placeholders_1 = __webpack_require__(
|
|
3066
|
+
var placeholders_1 = __webpack_require__(48);
|
|
3107
3067
|
|
|
3108
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3068
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
3109
3069
|
|
|
3110
3070
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3111
3071
|
|
|
3112
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
3072
|
+
var PresetPalettes_1 = __webpack_require__(57);
|
|
3113
3073
|
|
|
3114
|
-
var themes_1 = __webpack_require__(
|
|
3074
|
+
var themes_1 = __webpack_require__(72);
|
|
3115
3075
|
|
|
3116
3076
|
var i18n_1 = __webpack_require__(2);
|
|
3117
3077
|
|
|
3118
3078
|
var VizBehavior_1 = __webpack_require__(6);
|
|
3119
3079
|
|
|
3120
|
-
var VizCategory_1 = __webpack_require__(
|
|
3080
|
+
var VizCategory_1 = __webpack_require__(34);
|
|
3121
3081
|
|
|
3122
|
-
var configUtils_1 = __webpack_require__(
|
|
3082
|
+
var configUtils_1 = __webpack_require__(18);
|
|
3123
3083
|
|
|
3124
|
-
var DynamicLinkColorsEditor_1 = __webpack_require__(
|
|
3084
|
+
var DynamicLinkColorsEditor_1 = __webpack_require__(452);
|
|
3125
3085
|
|
|
3126
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3086
|
+
var BackgroundColor_1 = __webpack_require__(53);
|
|
3127
3087
|
|
|
3128
3088
|
var defaultContext = {
|
|
3129
3089
|
linkColorRangeConfig: [{
|
|
@@ -3335,7 +3295,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
3335
3295
|
|
|
3336
3296
|
/***/ }),
|
|
3337
3297
|
|
|
3338
|
-
/***/
|
|
3298
|
+
/***/ 452:
|
|
3339
3299
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3340
3300
|
|
|
3341
3301
|
"use strict";
|
|
@@ -3343,7 +3303,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3343
3303
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicLinkColorsEditor", function() { return getDynamicLinkColorsEditor; });
|
|
3344
3304
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
3345
3305
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
3346
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3306
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
|
|
3347
3307
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
3348
3308
|
|
|
3349
3309
|
|
|
@@ -3387,20 +3347,145 @@ var getDynamicLinkColorsEditor = function getDynamicLinkColorsEditor(_ref) {
|
|
|
3387
3347
|
/***/ }),
|
|
3388
3348
|
|
|
3389
3349
|
/***/ 46:
|
|
3350
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3351
|
+
|
|
3352
|
+
"use strict";
|
|
3353
|
+
|
|
3354
|
+
|
|
3355
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3356
|
+
value: true
|
|
3357
|
+
});
|
|
3358
|
+
|
|
3359
|
+
var React = __webpack_require__(1);
|
|
3360
|
+
|
|
3361
|
+
var styled_components_1 = __webpack_require__(4);
|
|
3362
|
+
|
|
3363
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
3364
|
+
|
|
3365
|
+
var Cover = styled_components_1.default.div.withConfig({
|
|
3366
|
+
displayName: "withEditModeCover__Cover",
|
|
3367
|
+
componentId: "sc-1gsbnxb-0"
|
|
3368
|
+
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3369
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
3370
|
+
'data-splunk-visualization-version': "25.6.0 - f5eb3abf9"
|
|
3371
|
+
}).withConfig({
|
|
3372
|
+
displayName: "withEditModeCover__Blocker",
|
|
3373
|
+
componentId: "sc-1gsbnxb-1"
|
|
3374
|
+
})(["position:relative;width:100%;height:100%;"]);
|
|
3375
|
+
/**
|
|
3376
|
+
* HOC that renders a cover layer in edit mode
|
|
3377
|
+
* @method withEditModeCover
|
|
3378
|
+
* @param {ExtendedDashViz} Visualization
|
|
3379
|
+
* @returns {ExtendedDashViz} Wrapper
|
|
3380
|
+
*/
|
|
3381
|
+
|
|
3382
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
3383
|
+
var Wrapper = function Wrapper(props) {
|
|
3384
|
+
var mode = props.mode;
|
|
3385
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
3386
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
3387
|
+
"data-test": "edit-mode-cover"
|
|
3388
|
+
}));
|
|
3389
|
+
};
|
|
3390
|
+
|
|
3391
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
3392
|
+
Wrapper: Wrapper,
|
|
3393
|
+
Visualization: Visualization
|
|
3394
|
+
});
|
|
3395
|
+
return Wrapper;
|
|
3396
|
+
};
|
|
3397
|
+
|
|
3398
|
+
exports.default = withEditModeCover;
|
|
3399
|
+
|
|
3400
|
+
/***/ }),
|
|
3401
|
+
|
|
3402
|
+
/***/ 47:
|
|
3403
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3404
|
+
|
|
3405
|
+
"use strict";
|
|
3406
|
+
|
|
3407
|
+
|
|
3408
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3409
|
+
value: true
|
|
3410
|
+
});
|
|
3411
|
+
|
|
3412
|
+
var React = __webpack_require__(1);
|
|
3413
|
+
|
|
3414
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
3415
|
+
|
|
3416
|
+
var variables_1 = __webpack_require__(9);
|
|
3417
|
+
|
|
3418
|
+
var IconPlaceholder_1 = __webpack_require__(30);
|
|
3419
|
+
|
|
3420
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
3421
|
+
|
|
3422
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
3423
|
+
|
|
3424
|
+
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3425
|
+
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
3426
|
+
var config = Visualization.config;
|
|
3427
|
+
var themes = config.themes;
|
|
3428
|
+
|
|
3429
|
+
var Wrapper = function Wrapper(props) {
|
|
3430
|
+
var _a, _b;
|
|
3431
|
+
|
|
3432
|
+
var dataSources = props.dataSources,
|
|
3433
|
+
loading = props.loading,
|
|
3434
|
+
options = props.options,
|
|
3435
|
+
height = props.height,
|
|
3436
|
+
width = props.width;
|
|
3437
|
+
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
3438
|
+
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
3439
|
+
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
3440
|
+
var iconColor = variables_1.default.contentColorActive(props);
|
|
3441
|
+
|
|
3442
|
+
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
3443
|
+
return React.createElement(IconPlaceholder_1.default, {
|
|
3444
|
+
"data-test": "icon-placeholder",
|
|
3445
|
+
icon: icon,
|
|
3446
|
+
width: width,
|
|
3447
|
+
height: height,
|
|
3448
|
+
backgroundColor: bgColorFromTheme,
|
|
3449
|
+
iconColor: iconColor
|
|
3450
|
+
});
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
return React.createElement(Visualization, Object.assign({}, props));
|
|
3454
|
+
};
|
|
3455
|
+
|
|
3456
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
3457
|
+
Wrapper: Wrapper,
|
|
3458
|
+
Visualization: Visualization
|
|
3459
|
+
});
|
|
3460
|
+
return Wrapper;
|
|
3461
|
+
};
|
|
3462
|
+
|
|
3463
|
+
exports.default = withPlaceholder;
|
|
3464
|
+
|
|
3465
|
+
/***/ }),
|
|
3466
|
+
|
|
3467
|
+
/***/ 48:
|
|
3468
|
+
/***/ (function(module, exports) {
|
|
3469
|
+
|
|
3470
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3471
|
+
|
|
3472
|
+
/***/ }),
|
|
3473
|
+
|
|
3474
|
+
/***/ 50:
|
|
3390
3475
|
/***/ (function(module, exports) {
|
|
3391
3476
|
|
|
3392
3477
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
3393
3478
|
|
|
3394
3479
|
/***/ }),
|
|
3395
3480
|
|
|
3396
|
-
/***/
|
|
3481
|
+
/***/ 51:
|
|
3397
3482
|
/***/ (function(module, exports) {
|
|
3398
3483
|
|
|
3399
3484
|
module.exports = require("@splunk/visualization-icons");
|
|
3400
3485
|
|
|
3401
3486
|
/***/ }),
|
|
3402
3487
|
|
|
3403
|
-
/***/
|
|
3488
|
+
/***/ 53:
|
|
3404
3489
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3405
3490
|
|
|
3406
3491
|
"use strict";
|
|
@@ -3431,21 +3516,14 @@ exports.default = background;
|
|
|
3431
3516
|
|
|
3432
3517
|
/***/ }),
|
|
3433
3518
|
|
|
3434
|
-
/***/
|
|
3435
|
-
/***/ (function(module, exports) {
|
|
3436
|
-
|
|
3437
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3438
|
-
|
|
3439
|
-
/***/ }),
|
|
3440
|
-
|
|
3441
|
-
/***/ 54:
|
|
3519
|
+
/***/ 57:
|
|
3442
3520
|
/***/ (function(module, exports) {
|
|
3443
3521
|
|
|
3444
3522
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
3445
3523
|
|
|
3446
3524
|
/***/ }),
|
|
3447
3525
|
|
|
3448
|
-
/***/
|
|
3526
|
+
/***/ 58:
|
|
3449
3527
|
/***/ (function(module, exports) {
|
|
3450
3528
|
|
|
3451
3529
|
module.exports = require("d3-array");
|
|
@@ -3490,7 +3568,7 @@ var VizBehavior;
|
|
|
3490
3568
|
|
|
3491
3569
|
/***/ }),
|
|
3492
3570
|
|
|
3493
|
-
/***/
|
|
3571
|
+
/***/ 66:
|
|
3494
3572
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3495
3573
|
|
|
3496
3574
|
"use strict";
|
|
@@ -3514,17 +3592,17 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
3514
3592
|
|
|
3515
3593
|
/***/ }),
|
|
3516
3594
|
|
|
3517
|
-
/***/
|
|
3595
|
+
/***/ 7:
|
|
3518
3596
|
/***/ (function(module, exports) {
|
|
3519
3597
|
|
|
3520
|
-
module.exports = require("@
|
|
3598
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3521
3599
|
|
|
3522
3600
|
/***/ }),
|
|
3523
3601
|
|
|
3524
|
-
/***/
|
|
3602
|
+
/***/ 72:
|
|
3525
3603
|
/***/ (function(module, exports) {
|
|
3526
3604
|
|
|
3527
|
-
module.exports = require("@
|
|
3605
|
+
module.exports = require("@splunk/themes");
|
|
3528
3606
|
|
|
3529
3607
|
/***/ }),
|
|
3530
3608
|
|
|
@@ -3535,38 +3613,38 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
|
3535
3613
|
|
|
3536
3614
|
/***/ }),
|
|
3537
3615
|
|
|
3538
|
-
/***/
|
|
3616
|
+
/***/ 83:
|
|
3539
3617
|
/***/ (function(module, exports) {
|
|
3540
3618
|
|
|
3541
3619
|
module.exports = require("d3-scale");
|
|
3542
3620
|
|
|
3543
3621
|
/***/ }),
|
|
3544
3622
|
|
|
3545
|
-
/***/
|
|
3623
|
+
/***/ 84:
|
|
3546
3624
|
/***/ (function(module, exports) {
|
|
3547
3625
|
|
|
3548
|
-
module.exports = require("@splunk/
|
|
3626
|
+
module.exports = require("@splunk/react-ui/Popover");
|
|
3549
3627
|
|
|
3550
3628
|
/***/ }),
|
|
3551
3629
|
|
|
3552
|
-
/***/
|
|
3630
|
+
/***/ 85:
|
|
3553
3631
|
/***/ (function(module, exports) {
|
|
3554
3632
|
|
|
3555
|
-
module.exports = require("@splunk/
|
|
3633
|
+
module.exports = require("@splunk/visualization-encoding/utils/types");
|
|
3556
3634
|
|
|
3557
3635
|
/***/ }),
|
|
3558
3636
|
|
|
3559
|
-
/***/
|
|
3637
|
+
/***/ 86:
|
|
3560
3638
|
/***/ (function(module, exports) {
|
|
3561
3639
|
|
|
3562
|
-
module.exports = require("@
|
|
3640
|
+
module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
3563
3641
|
|
|
3564
3642
|
/***/ }),
|
|
3565
3643
|
|
|
3566
|
-
/***/
|
|
3644
|
+
/***/ 87:
|
|
3567
3645
|
/***/ (function(module, exports) {
|
|
3568
3646
|
|
|
3569
|
-
module.exports = require("@
|
|
3647
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
3570
3648
|
|
|
3571
3649
|
/***/ }),
|
|
3572
3650
|
|
|
@@ -3577,7 +3655,7 @@ module.exports = require("@splunk/themes/variables");
|
|
|
3577
3655
|
|
|
3578
3656
|
/***/ }),
|
|
3579
3657
|
|
|
3580
|
-
/***/
|
|
3658
|
+
/***/ 99:
|
|
3581
3659
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3582
3660
|
|
|
3583
3661
|
"use strict";
|
|
@@ -3585,7 +3663,7 @@ module.exports = require("@splunk/themes/variables");
|
|
|
3585
3663
|
|
|
3586
3664
|
var _toConsumableArray = __webpack_require__(8);
|
|
3587
3665
|
|
|
3588
|
-
var _slicedToArray = __webpack_require__(
|
|
3666
|
+
var _slicedToArray = __webpack_require__(17);
|
|
3589
3667
|
|
|
3590
3668
|
Object.defineProperty(exports, "__esModule", {
|
|
3591
3669
|
value: true
|
|
@@ -3606,24 +3684,24 @@ var Message_1 = __webpack_require__(10);
|
|
|
3606
3684
|
|
|
3607
3685
|
var i18n_1 = __webpack_require__(2);
|
|
3608
3686
|
|
|
3609
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
3687
|
+
var SizeAwareWrapper_1 = __webpack_require__(21);
|
|
3610
3688
|
|
|
3611
3689
|
var style_1 = __webpack_require__(15);
|
|
3612
3690
|
|
|
3613
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3691
|
+
var visualization_color_palettes_1 = __webpack_require__(50); // eslint-disable-next-line camelcase
|
|
3614
3692
|
|
|
3615
3693
|
|
|
3616
|
-
var sankey_1 = __webpack_require__(
|
|
3694
|
+
var sankey_1 = __webpack_require__(447);
|
|
3617
3695
|
|
|
3618
|
-
var VizStyleWrapper_1 = __webpack_require__(
|
|
3696
|
+
var VizStyleWrapper_1 = __webpack_require__(66);
|
|
3619
3697
|
|
|
3620
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
3698
|
+
var SankeyUtils_1 = __webpack_require__(124);
|
|
3621
3699
|
|
|
3622
|
-
var SankeyNode_1 = __webpack_require__(
|
|
3700
|
+
var SankeyNode_1 = __webpack_require__(448);
|
|
3623
3701
|
|
|
3624
|
-
var SankeyLink_1 = __webpack_require__(
|
|
3702
|
+
var SankeyLink_1 = __webpack_require__(449);
|
|
3625
3703
|
|
|
3626
|
-
var SankeyTooltip_1 = __webpack_require__(
|
|
3704
|
+
var SankeyTooltip_1 = __webpack_require__(450);
|
|
3627
3705
|
|
|
3628
3706
|
exports.DEFAULT_COLORS = {
|
|
3629
3707
|
backgroundColor: '#ffffff',
|