@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/Scatter.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 = 453);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -141,7 +141,7 @@ var React = __webpack_require__(1);
|
|
|
141
141
|
|
|
142
142
|
var styled_components_1 = __webpack_require__(4);
|
|
143
143
|
|
|
144
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
144
|
+
var SizeAwareWrapper_1 = __webpack_require__(21);
|
|
145
145
|
|
|
146
146
|
var style_1 = __webpack_require__(15);
|
|
147
147
|
|
|
@@ -202,7 +202,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
202
202
|
|
|
203
203
|
return React.createElement(FixSizeItem, {
|
|
204
204
|
"data-test": "fix-size-item",
|
|
205
|
-
"data-splunk-visualization-version": "25.
|
|
205
|
+
"data-splunk-visualization-version": "25.6.0 - f5eb3abf9",
|
|
206
206
|
width: width,
|
|
207
207
|
height: height,
|
|
208
208
|
backgroundColor: backgroundColor
|
|
@@ -264,7 +264,7 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
264
264
|
|
|
265
265
|
/***/ }),
|
|
266
266
|
|
|
267
|
-
/***/
|
|
267
|
+
/***/ 156:
|
|
268
268
|
/***/ (function(module, exports, __webpack_require__) {
|
|
269
269
|
|
|
270
270
|
"use strict";
|
|
@@ -292,21 +292,21 @@ var lodash_1 = __webpack_require__(3); // Charting imports i18n which needs to b
|
|
|
292
292
|
// eslint-disable-next-line import/order
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
var Charting_1 = __webpack_require__(
|
|
295
|
+
var Charting_1 = __webpack_require__(59);
|
|
296
296
|
|
|
297
|
-
var charting_bundle_1 = __webpack_require__(
|
|
297
|
+
var charting_bundle_1 = __webpack_require__(56);
|
|
298
298
|
|
|
299
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
299
|
+
var simpleXMLOptions_1 = __webpack_require__(65);
|
|
300
300
|
|
|
301
|
-
var config_1 = __webpack_require__(
|
|
301
|
+
var config_1 = __webpack_require__(454);
|
|
302
302
|
|
|
303
303
|
exports.config = config_1.default;
|
|
304
304
|
|
|
305
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
305
|
+
var withDashboardViz_1 = __webpack_require__(35);
|
|
306
306
|
|
|
307
|
-
var scatterUtils_1 = __webpack_require__(
|
|
307
|
+
var scatterUtils_1 = __webpack_require__(455);
|
|
308
308
|
|
|
309
|
-
var chartingUtils_1 = __webpack_require__(
|
|
309
|
+
var chartingUtils_1 = __webpack_require__(55);
|
|
310
310
|
|
|
311
311
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
312
312
|
|
|
@@ -390,6 +390,13 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
390
390
|
/***/ }),
|
|
391
391
|
|
|
392
392
|
/***/ 17:
|
|
393
|
+
/***/ (function(module, exports) {
|
|
394
|
+
|
|
395
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
396
|
+
|
|
397
|
+
/***/ }),
|
|
398
|
+
|
|
399
|
+
/***/ 18:
|
|
393
400
|
/***/ (function(module, exports, __webpack_require__) {
|
|
394
401
|
|
|
395
402
|
"use strict";
|
|
@@ -626,63 +633,77 @@ exports.insertLayout = insertLayout;
|
|
|
626
633
|
|
|
627
634
|
/***/ }),
|
|
628
635
|
|
|
629
|
-
/***/
|
|
636
|
+
/***/ 2:
|
|
630
637
|
/***/ (function(module, exports) {
|
|
631
638
|
|
|
632
|
-
module.exports = require("@
|
|
639
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
633
640
|
|
|
634
641
|
/***/ }),
|
|
635
642
|
|
|
636
|
-
/***/
|
|
643
|
+
/***/ 20:
|
|
637
644
|
/***/ (function(module, exports) {
|
|
638
645
|
|
|
639
|
-
module.exports = require("@
|
|
646
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
640
647
|
|
|
641
648
|
/***/ }),
|
|
642
649
|
|
|
643
|
-
/***/
|
|
650
|
+
/***/ 21:
|
|
644
651
|
/***/ (function(module, exports) {
|
|
645
652
|
|
|
646
653
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
647
654
|
|
|
648
655
|
/***/ }),
|
|
649
656
|
|
|
650
|
-
/***/
|
|
657
|
+
/***/ 22:
|
|
651
658
|
/***/ (function(module, exports) {
|
|
652
659
|
|
|
653
660
|
module.exports = require("@splunk/themes/pick");
|
|
654
661
|
|
|
655
662
|
/***/ }),
|
|
656
663
|
|
|
657
|
-
/***/
|
|
664
|
+
/***/ 24:
|
|
658
665
|
/***/ (function(module, exports) {
|
|
659
666
|
|
|
660
667
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
661
668
|
|
|
662
669
|
/***/ }),
|
|
663
670
|
|
|
664
|
-
/***/
|
|
671
|
+
/***/ 25:
|
|
665
672
|
/***/ (function(module, exports) {
|
|
666
673
|
|
|
667
674
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
668
675
|
|
|
669
676
|
/***/ }),
|
|
670
677
|
|
|
671
|
-
/***/
|
|
678
|
+
/***/ 26:
|
|
679
|
+
/***/ (function(module, exports) {
|
|
680
|
+
|
|
681
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
682
|
+
|
|
683
|
+
/***/ }),
|
|
684
|
+
|
|
685
|
+
/***/ 27:
|
|
672
686
|
/***/ (function(module, exports) {
|
|
673
687
|
|
|
674
688
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
675
689
|
|
|
676
690
|
/***/ }),
|
|
677
691
|
|
|
678
|
-
/***/
|
|
692
|
+
/***/ 28:
|
|
679
693
|
/***/ (function(module, exports) {
|
|
680
694
|
|
|
681
695
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
682
696
|
|
|
683
697
|
/***/ }),
|
|
684
698
|
|
|
685
|
-
/***/
|
|
699
|
+
/***/ 3:
|
|
700
|
+
/***/ (function(module, exports) {
|
|
701
|
+
|
|
702
|
+
module.exports = require("lodash");
|
|
703
|
+
|
|
704
|
+
/***/ }),
|
|
705
|
+
|
|
706
|
+
/***/ 30:
|
|
686
707
|
/***/ (function(module, exports, __webpack_require__) {
|
|
687
708
|
|
|
688
709
|
"use strict";
|
|
@@ -774,7 +795,14 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
774
795
|
|
|
775
796
|
/***/ }),
|
|
776
797
|
|
|
777
|
-
/***/
|
|
798
|
+
/***/ 31:
|
|
799
|
+
/***/ (function(module, exports) {
|
|
800
|
+
|
|
801
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
802
|
+
|
|
803
|
+
/***/ }),
|
|
804
|
+
|
|
805
|
+
/***/ 32:
|
|
778
806
|
/***/ (function(module, exports, __webpack_require__) {
|
|
779
807
|
|
|
780
808
|
"use strict";
|
|
@@ -791,7 +819,7 @@ var T = __webpack_require__(0);
|
|
|
791
819
|
|
|
792
820
|
var lodash_1 = __webpack_require__(3);
|
|
793
821
|
|
|
794
|
-
var DataSource_1 = __webpack_require__(
|
|
822
|
+
var DataSource_1 = __webpack_require__(43);
|
|
795
823
|
|
|
796
824
|
exports.SortParamsPropTypes = T.shape({
|
|
797
825
|
currentSortKey: T.string,
|
|
@@ -845,7 +873,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
845
873
|
|
|
846
874
|
/***/ }),
|
|
847
875
|
|
|
848
|
-
/***/
|
|
876
|
+
/***/ 33:
|
|
849
877
|
/***/ (function(module, exports, __webpack_require__) {
|
|
850
878
|
|
|
851
879
|
"use strict";
|
|
@@ -910,14 +938,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
910
938
|
|
|
911
939
|
/***/ }),
|
|
912
940
|
|
|
913
|
-
/***/
|
|
914
|
-
/***/ (function(module, exports) {
|
|
915
|
-
|
|
916
|
-
module.exports = require("lodash");
|
|
917
|
-
|
|
918
|
-
/***/ }),
|
|
919
|
-
|
|
920
|
-
/***/ 31:
|
|
941
|
+
/***/ 34:
|
|
921
942
|
/***/ (function(module, exports, __webpack_require__) {
|
|
922
943
|
|
|
923
944
|
"use strict";
|
|
@@ -946,12 +967,14 @@ var VizCategory;
|
|
|
946
967
|
|
|
947
968
|
/***/ }),
|
|
948
969
|
|
|
949
|
-
/***/
|
|
970
|
+
/***/ 35:
|
|
950
971
|
/***/ (function(module, exports, __webpack_require__) {
|
|
951
972
|
|
|
952
973
|
"use strict";
|
|
953
974
|
|
|
954
975
|
|
|
976
|
+
var _slicedToArray = __webpack_require__(17);
|
|
977
|
+
|
|
955
978
|
Object.defineProperty(exports, "__esModule", {
|
|
956
979
|
value: true
|
|
957
980
|
});
|
|
@@ -960,44 +983,51 @@ var React = __webpack_require__(1);
|
|
|
960
983
|
|
|
961
984
|
var lodash_1 = __webpack_require__(3);
|
|
962
985
|
|
|
963
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
986
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(36);
|
|
964
987
|
|
|
965
|
-
var Options_1 = __webpack_require__(
|
|
988
|
+
var Options_1 = __webpack_require__(37);
|
|
966
989
|
|
|
967
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
990
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
968
991
|
|
|
969
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
992
|
+
var TimezoneContext_1 = __webpack_require__(24);
|
|
970
993
|
|
|
971
|
-
var moment_1 = __webpack_require__(
|
|
994
|
+
var moment_1 = __webpack_require__(39);
|
|
995
|
+
|
|
996
|
+
var FeatureFlagContext_1 = __webpack_require__(26);
|
|
972
997
|
|
|
973
998
|
var styled_components_1 = __webpack_require__(4);
|
|
974
999
|
|
|
975
|
-
var hocUtils_1 = __webpack_require__(
|
|
1000
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
1001
|
+
|
|
1002
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
1003
|
+
|
|
1004
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
976
1005
|
|
|
977
|
-
var
|
|
1006
|
+
var id_1 = __webpack_require__(31);
|
|
978
1007
|
|
|
979
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1008
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
980
1009
|
|
|
981
1010
|
var VizBehavior_1 = __webpack_require__(6);
|
|
982
1011
|
|
|
983
|
-
var getSorting_1 = __webpack_require__(
|
|
1012
|
+
var getSorting_1 = __webpack_require__(32);
|
|
984
1013
|
|
|
985
|
-
var getPagination_1 = __webpack_require__(
|
|
1014
|
+
var getPagination_1 = __webpack_require__(33);
|
|
986
1015
|
|
|
987
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1016
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
988
1017
|
|
|
989
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1018
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
990
1019
|
|
|
991
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1020
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
992
1021
|
|
|
993
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1022
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
1023
|
+
|
|
1024
|
+
var UUID = id_1.createGUID();
|
|
994
1025
|
/**
|
|
995
1026
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
996
1027
|
* @param {DashboardVizOpts} opts
|
|
997
1028
|
* @returns {HOC}
|
|
998
1029
|
*/
|
|
999
1030
|
|
|
1000
|
-
|
|
1001
1031
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
1002
1032
|
var ReactViz = opts.ReactViz,
|
|
1003
1033
|
vizConfig = opts.vizConfig,
|
|
@@ -1057,28 +1087,76 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1057
1087
|
|
|
1058
1088
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1059
1089
|
|
|
1090
|
+
var _React$useState = React.useState({}),
|
|
1091
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1092
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1093
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1097
|
+
|
|
1098
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1099
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1100
|
+
visualizationID = _React$useState4[0];
|
|
1101
|
+
|
|
1102
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext['visualizations.useWebWorkersForDSL'] && typeof Worker !== 'undefined')),
|
|
1103
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1104
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1105
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1106
|
+
|
|
1060
1107
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
1061
1108
|
try {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1109
|
+
if (useAsyncEvaluatedOptions) {
|
|
1110
|
+
var optionsToEvaluate = {
|
|
1111
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1112
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1113
|
+
};
|
|
1114
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1115
|
+
visualizationID: visualizationID,
|
|
1116
|
+
props: props,
|
|
1117
|
+
options: optionsToEvaluate,
|
|
1118
|
+
dataSources: dataSources,
|
|
1119
|
+
theme: vizConfig.themes
|
|
1120
|
+
};
|
|
1121
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1122
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1123
|
+
}).catch(function (e) {
|
|
1124
|
+
// eslint-disable-next-line no-console
|
|
1125
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1126
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1127
|
+
});
|
|
1128
|
+
} else {
|
|
1129
|
+
return Options_1.Options.evaluate({
|
|
1130
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1131
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1132
|
+
}, dataSources, themeFunc);
|
|
1133
|
+
}
|
|
1066
1134
|
} catch (e) {
|
|
1067
1135
|
// eslint-disable-next-line no-console
|
|
1068
|
-
console.error("unexpected error evaluating options:
|
|
1136
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
1069
1137
|
return {};
|
|
1070
1138
|
}
|
|
1071
|
-
|
|
1139
|
+
|
|
1140
|
+
return {};
|
|
1141
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1142
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // useEffect hook needs to be initialized before any early returns
|
|
1072
1143
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1073
1144
|
|
|
1074
1145
|
React.useEffect(function () {
|
|
1075
|
-
onComputedProps(
|
|
1076
|
-
});
|
|
1146
|
+
onComputedProps(evaluatedOptionsToUse);
|
|
1147
|
+
});
|
|
1148
|
+
React.useEffect(function () {
|
|
1149
|
+
return function () {
|
|
1150
|
+
if (useAsyncEvaluatedOptions) {
|
|
1151
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1152
|
+
}
|
|
1153
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1154
|
+
}, []); // present warning message if any required props are missing
|
|
1077
1155
|
|
|
1078
1156
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1079
1157
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1080
1158
|
supports = vizConfig.supports;
|
|
1081
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1159
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1082
1160
|
|
|
1083
1161
|
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
|
|
1084
1162
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -1105,7 +1183,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1105
1183
|
|
|
1106
1184
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1107
1185
|
payloadKeys.forEach(function (p) {
|
|
1108
|
-
payload[p] =
|
|
1186
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1109
1187
|
});
|
|
1110
1188
|
}
|
|
1111
1189
|
|
|
@@ -1124,7 +1202,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1124
1202
|
} // compute pure viz props which are not from options
|
|
1125
1203
|
|
|
1126
1204
|
|
|
1127
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1205
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1128
1206
|
themeFunc: themeFunc
|
|
1129
1207
|
}));
|
|
1130
1208
|
/**
|
|
@@ -1144,7 +1222,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1144
1222
|
|
|
1145
1223
|
var dataSourceMetadata = {};
|
|
1146
1224
|
var OptionKey = 'paginateDataSourceKey';
|
|
1147
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1225
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1148
1226
|
|
|
1149
1227
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1150
1228
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1174,7 +1252,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1174
1252
|
mode: mode,
|
|
1175
1253
|
width: width,
|
|
1176
1254
|
height: height
|
|
1177
|
-
},
|
|
1255
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1178
1256
|
};
|
|
1179
1257
|
|
|
1180
1258
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -1192,35 +1270,49 @@ exports.default = withDashboardViz;
|
|
|
1192
1270
|
|
|
1193
1271
|
/***/ }),
|
|
1194
1272
|
|
|
1195
|
-
/***/
|
|
1273
|
+
/***/ 36:
|
|
1196
1274
|
/***/ (function(module, exports) {
|
|
1197
1275
|
|
|
1198
1276
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1199
1277
|
|
|
1200
1278
|
/***/ }),
|
|
1201
1279
|
|
|
1202
|
-
/***/
|
|
1280
|
+
/***/ 37:
|
|
1203
1281
|
/***/ (function(module, exports) {
|
|
1204
1282
|
|
|
1205
1283
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1206
1284
|
|
|
1207
1285
|
/***/ }),
|
|
1208
1286
|
|
|
1209
|
-
/***/
|
|
1287
|
+
/***/ 38:
|
|
1210
1288
|
/***/ (function(module, exports) {
|
|
1211
1289
|
|
|
1212
1290
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1213
1291
|
|
|
1214
1292
|
/***/ }),
|
|
1215
1293
|
|
|
1216
|
-
/***/
|
|
1294
|
+
/***/ 39:
|
|
1217
1295
|
/***/ (function(module, exports) {
|
|
1218
1296
|
|
|
1219
1297
|
module.exports = require("@splunk/moment");
|
|
1220
1298
|
|
|
1221
1299
|
/***/ }),
|
|
1222
1300
|
|
|
1223
|
-
/***/
|
|
1301
|
+
/***/ 4:
|
|
1302
|
+
/***/ (function(module, exports) {
|
|
1303
|
+
|
|
1304
|
+
module.exports = require("styled-components");
|
|
1305
|
+
|
|
1306
|
+
/***/ }),
|
|
1307
|
+
|
|
1308
|
+
/***/ 40:
|
|
1309
|
+
/***/ (function(module, exports) {
|
|
1310
|
+
|
|
1311
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1312
|
+
|
|
1313
|
+
/***/ }),
|
|
1314
|
+
|
|
1315
|
+
/***/ 41:
|
|
1224
1316
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1225
1317
|
|
|
1226
1318
|
"use strict";
|
|
@@ -1238,7 +1330,7 @@ var T = __webpack_require__(0);
|
|
|
1238
1330
|
|
|
1239
1331
|
var lodash_1 = __webpack_require__(3);
|
|
1240
1332
|
|
|
1241
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1333
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1242
1334
|
|
|
1243
1335
|
|
|
1244
1336
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1372,7 +1464,7 @@ exports.default = SplunkVisualization;
|
|
|
1372
1464
|
|
|
1373
1465
|
/***/ }),
|
|
1374
1466
|
|
|
1375
|
-
/***/
|
|
1467
|
+
/***/ 42:
|
|
1376
1468
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1377
1469
|
|
|
1378
1470
|
"use strict";
|
|
@@ -1380,7 +1472,7 @@ exports.default = SplunkVisualization;
|
|
|
1380
1472
|
|
|
1381
1473
|
var _classCallCheck = __webpack_require__(11);
|
|
1382
1474
|
|
|
1383
|
-
var _createClass = __webpack_require__(
|
|
1475
|
+
var _createClass = __webpack_require__(20);
|
|
1384
1476
|
|
|
1385
1477
|
Object.defineProperty(exports, "__esModule", {
|
|
1386
1478
|
value: true
|
|
@@ -1410,7 +1502,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1410
1502
|
|
|
1411
1503
|
/***/ }),
|
|
1412
1504
|
|
|
1413
|
-
/***/
|
|
1505
|
+
/***/ 43:
|
|
1414
1506
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1415
1507
|
|
|
1416
1508
|
"use strict";
|
|
@@ -1424,14 +1516,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1424
1516
|
|
|
1425
1517
|
/***/ }),
|
|
1426
1518
|
|
|
1427
|
-
/***/
|
|
1428
|
-
/***/ (function(module, exports) {
|
|
1429
|
-
|
|
1430
|
-
module.exports = require("styled-components");
|
|
1431
|
-
|
|
1432
|
-
/***/ }),
|
|
1433
|
-
|
|
1434
|
-
/***/ 40:
|
|
1519
|
+
/***/ 44:
|
|
1435
1520
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1436
1521
|
|
|
1437
1522
|
"use strict";
|
|
@@ -1477,7 +1562,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1477
1562
|
|
|
1478
1563
|
/***/ }),
|
|
1479
1564
|
|
|
1480
|
-
/***/
|
|
1565
|
+
/***/ 45:
|
|
1481
1566
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1482
1567
|
|
|
1483
1568
|
"use strict";
|
|
@@ -1558,132 +1643,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
1558
1643
|
|
|
1559
1644
|
/***/ }),
|
|
1560
1645
|
|
|
1561
|
-
/***/
|
|
1562
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1563
|
-
|
|
1564
|
-
"use strict";
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1568
|
-
value: true
|
|
1569
|
-
});
|
|
1570
|
-
|
|
1571
|
-
var React = __webpack_require__(1);
|
|
1572
|
-
|
|
1573
|
-
var styled_components_1 = __webpack_require__(4);
|
|
1574
|
-
|
|
1575
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
1576
|
-
|
|
1577
|
-
var Cover = styled_components_1.default.div.withConfig({
|
|
1578
|
-
displayName: "withEditModeCover__Cover",
|
|
1579
|
-
componentId: "sc-1gsbnxb-0"
|
|
1580
|
-
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1581
|
-
var Blocker = styled_components_1.default.div.attrs({
|
|
1582
|
-
'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
|
|
1583
|
-
}).withConfig({
|
|
1584
|
-
displayName: "withEditModeCover__Blocker",
|
|
1585
|
-
componentId: "sc-1gsbnxb-1"
|
|
1586
|
-
})(["position:relative;width:100%;height:100%;"]);
|
|
1587
|
-
/**
|
|
1588
|
-
* HOC that renders a cover layer in edit mode
|
|
1589
|
-
* @method withEditModeCover
|
|
1590
|
-
* @param {ExtendedDashViz} Visualization
|
|
1591
|
-
* @returns {ExtendedDashViz} Wrapper
|
|
1592
|
-
*/
|
|
1593
|
-
|
|
1594
|
-
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
1595
|
-
var Wrapper = function Wrapper(props) {
|
|
1596
|
-
var mode = props.mode;
|
|
1597
|
-
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
1598
|
-
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
1599
|
-
"data-test": "edit-mode-cover"
|
|
1600
|
-
}));
|
|
1601
|
-
};
|
|
1602
|
-
|
|
1603
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1604
|
-
Wrapper: Wrapper,
|
|
1605
|
-
Visualization: Visualization
|
|
1606
|
-
});
|
|
1607
|
-
return Wrapper;
|
|
1608
|
-
};
|
|
1609
|
-
|
|
1610
|
-
exports.default = withEditModeCover;
|
|
1611
|
-
|
|
1612
|
-
/***/ }),
|
|
1613
|
-
|
|
1614
|
-
/***/ 43:
|
|
1615
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1616
|
-
|
|
1617
|
-
"use strict";
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1621
|
-
value: true
|
|
1622
|
-
});
|
|
1623
|
-
|
|
1624
|
-
var React = __webpack_require__(1);
|
|
1625
|
-
|
|
1626
|
-
var colorUtils_1 = __webpack_require__(12);
|
|
1627
|
-
|
|
1628
|
-
var variables_1 = __webpack_require__(9);
|
|
1629
|
-
|
|
1630
|
-
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1631
|
-
|
|
1632
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1633
|
-
|
|
1634
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
1635
|
-
|
|
1636
|
-
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1637
|
-
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
1638
|
-
var config = Visualization.config;
|
|
1639
|
-
var themes = config.themes;
|
|
1640
|
-
|
|
1641
|
-
var Wrapper = function Wrapper(props) {
|
|
1642
|
-
var _a, _b;
|
|
1643
|
-
|
|
1644
|
-
var dataSources = props.dataSources,
|
|
1645
|
-
loading = props.loading,
|
|
1646
|
-
options = props.options,
|
|
1647
|
-
height = props.height,
|
|
1648
|
-
width = props.width;
|
|
1649
|
-
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1650
|
-
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);
|
|
1651
|
-
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
1652
|
-
var iconColor = variables_1.default.contentColorActive(props);
|
|
1653
|
-
|
|
1654
|
-
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
1655
|
-
return React.createElement(IconPlaceholder_1.default, {
|
|
1656
|
-
"data-test": "icon-placeholder",
|
|
1657
|
-
icon: icon,
|
|
1658
|
-
width: width,
|
|
1659
|
-
height: height,
|
|
1660
|
-
backgroundColor: bgColorFromTheme,
|
|
1661
|
-
iconColor: iconColor
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
return React.createElement(Visualization, Object.assign({}, props));
|
|
1666
|
-
};
|
|
1667
|
-
|
|
1668
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1669
|
-
Wrapper: Wrapper,
|
|
1670
|
-
Visualization: Visualization
|
|
1671
|
-
});
|
|
1672
|
-
return Wrapper;
|
|
1673
|
-
};
|
|
1674
|
-
|
|
1675
|
-
exports.default = withPlaceholder;
|
|
1676
|
-
|
|
1677
|
-
/***/ }),
|
|
1678
|
-
|
|
1679
|
-
/***/ 44:
|
|
1680
|
-
/***/ (function(module, exports) {
|
|
1681
|
-
|
|
1682
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1683
|
-
|
|
1684
|
-
/***/ }),
|
|
1685
|
-
|
|
1686
|
-
/***/ 445:
|
|
1646
|
+
/***/ 453:
|
|
1687
1647
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1688
1648
|
|
|
1689
1649
|
"use strict";
|
|
@@ -1713,9 +1673,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1713
1673
|
});
|
|
1714
1674
|
exports.default = void 0;
|
|
1715
1675
|
|
|
1716
|
-
__exportStar(__webpack_require__(
|
|
1676
|
+
__exportStar(__webpack_require__(156), exports);
|
|
1717
1677
|
|
|
1718
|
-
var Scatter_1 = __webpack_require__(
|
|
1678
|
+
var Scatter_1 = __webpack_require__(156);
|
|
1719
1679
|
|
|
1720
1680
|
Object.defineProperty(exports, "default", {
|
|
1721
1681
|
enumerable: true,
|
|
@@ -1726,7 +1686,7 @@ Object.defineProperty(exports, "default", {
|
|
|
1726
1686
|
|
|
1727
1687
|
/***/ }),
|
|
1728
1688
|
|
|
1729
|
-
/***/
|
|
1689
|
+
/***/ 454:
|
|
1730
1690
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1731
1691
|
|
|
1732
1692
|
"use strict";
|
|
@@ -1739,35 +1699,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1739
1699
|
});
|
|
1740
1700
|
exports.optionsSchema = void 0;
|
|
1741
1701
|
|
|
1742
|
-
var visualization_icons_1 = __webpack_require__(
|
|
1702
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
1743
1703
|
|
|
1744
|
-
var placeholders_1 = __webpack_require__(
|
|
1704
|
+
var placeholders_1 = __webpack_require__(48);
|
|
1745
1705
|
|
|
1746
|
-
var pick_1 = __webpack_require__(
|
|
1706
|
+
var pick_1 = __webpack_require__(22);
|
|
1747
1707
|
|
|
1748
1708
|
var variables_1 = __webpack_require__(9);
|
|
1749
1709
|
|
|
1750
1710
|
var schemaUtils_1 = __webpack_require__(16);
|
|
1751
1711
|
|
|
1752
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
1712
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
1753
1713
|
|
|
1754
1714
|
var i18n_1 = __webpack_require__(2);
|
|
1755
1715
|
|
|
1756
1716
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1757
1717
|
|
|
1758
|
-
var VizCategory_1 = __webpack_require__(
|
|
1718
|
+
var VizCategory_1 = __webpack_require__(34);
|
|
1759
1719
|
|
|
1760
|
-
var configUtils_1 = __webpack_require__(
|
|
1720
|
+
var configUtils_1 = __webpack_require__(18);
|
|
1761
1721
|
|
|
1762
|
-
var AxesChartDataConfig_1 = __webpack_require__(
|
|
1722
|
+
var AxesChartDataConfig_1 = __webpack_require__(67);
|
|
1763
1723
|
|
|
1764
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(
|
|
1724
|
+
var AxesChartXGridAndLabels_1 = __webpack_require__(70);
|
|
1765
1725
|
|
|
1766
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(
|
|
1726
|
+
var AxesChartColorAndStyle_1 = __webpack_require__(68);
|
|
1767
1727
|
|
|
1768
|
-
var AxesChartLegend_1 = __webpack_require__(
|
|
1728
|
+
var AxesChartLegend_1 = __webpack_require__(69);
|
|
1769
1729
|
|
|
1770
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(
|
|
1730
|
+
var AxesChartYGridAndLabels_1 = __webpack_require__(71);
|
|
1771
1731
|
|
|
1772
1732
|
var dataContract = {
|
|
1773
1733
|
requiredDataSources: [{
|
|
@@ -2149,7 +2109,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2149
2109
|
|
|
2150
2110
|
/***/ }),
|
|
2151
2111
|
|
|
2152
|
-
/***/
|
|
2112
|
+
/***/ 455:
|
|
2153
2113
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2154
2114
|
|
|
2155
2115
|
"use strict";
|
|
@@ -2162,9 +2122,9 @@ exports.convertToScatterSCProperties = exports.mapToOldKey = exports.convertToSt
|
|
|
2162
2122
|
|
|
2163
2123
|
var lodash_1 = __webpack_require__(3);
|
|
2164
2124
|
|
|
2165
|
-
var propUtils_1 = __webpack_require__(
|
|
2125
|
+
var propUtils_1 = __webpack_require__(25);
|
|
2166
2126
|
|
|
2167
|
-
var chartingUtils_1 = __webpack_require__(
|
|
2127
|
+
var chartingUtils_1 = __webpack_require__(55); // map for key names which are either new or not present in SimpleXML options mapping
|
|
2168
2128
|
|
|
2169
2129
|
|
|
2170
2130
|
var scatterOptionsSCMapping = {
|
|
@@ -2259,20 +2219,145 @@ exports.convertToScatterSCProperties = convertToScatterSCProperties;
|
|
|
2259
2219
|
/***/ }),
|
|
2260
2220
|
|
|
2261
2221
|
/***/ 46:
|
|
2222
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2223
|
+
|
|
2224
|
+
"use strict";
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2228
|
+
value: true
|
|
2229
|
+
});
|
|
2230
|
+
|
|
2231
|
+
var React = __webpack_require__(1);
|
|
2232
|
+
|
|
2233
|
+
var styled_components_1 = __webpack_require__(4);
|
|
2234
|
+
|
|
2235
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
2236
|
+
|
|
2237
|
+
var Cover = styled_components_1.default.div.withConfig({
|
|
2238
|
+
displayName: "withEditModeCover__Cover",
|
|
2239
|
+
componentId: "sc-1gsbnxb-0"
|
|
2240
|
+
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2241
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
2242
|
+
'data-splunk-visualization-version': "25.6.0 - f5eb3abf9"
|
|
2243
|
+
}).withConfig({
|
|
2244
|
+
displayName: "withEditModeCover__Blocker",
|
|
2245
|
+
componentId: "sc-1gsbnxb-1"
|
|
2246
|
+
})(["position:relative;width:100%;height:100%;"]);
|
|
2247
|
+
/**
|
|
2248
|
+
* HOC that renders a cover layer in edit mode
|
|
2249
|
+
* @method withEditModeCover
|
|
2250
|
+
* @param {ExtendedDashViz} Visualization
|
|
2251
|
+
* @returns {ExtendedDashViz} Wrapper
|
|
2252
|
+
*/
|
|
2253
|
+
|
|
2254
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
2255
|
+
var Wrapper = function Wrapper(props) {
|
|
2256
|
+
var mode = props.mode;
|
|
2257
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
2258
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
2259
|
+
"data-test": "edit-mode-cover"
|
|
2260
|
+
}));
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
2264
|
+
Wrapper: Wrapper,
|
|
2265
|
+
Visualization: Visualization
|
|
2266
|
+
});
|
|
2267
|
+
return Wrapper;
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
exports.default = withEditModeCover;
|
|
2271
|
+
|
|
2272
|
+
/***/ }),
|
|
2273
|
+
|
|
2274
|
+
/***/ 47:
|
|
2275
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2276
|
+
|
|
2277
|
+
"use strict";
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2281
|
+
value: true
|
|
2282
|
+
});
|
|
2283
|
+
|
|
2284
|
+
var React = __webpack_require__(1);
|
|
2285
|
+
|
|
2286
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
2287
|
+
|
|
2288
|
+
var variables_1 = __webpack_require__(9);
|
|
2289
|
+
|
|
2290
|
+
var IconPlaceholder_1 = __webpack_require__(30);
|
|
2291
|
+
|
|
2292
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
2293
|
+
|
|
2294
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
2295
|
+
|
|
2296
|
+
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2297
|
+
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
2298
|
+
var config = Visualization.config;
|
|
2299
|
+
var themes = config.themes;
|
|
2300
|
+
|
|
2301
|
+
var Wrapper = function Wrapper(props) {
|
|
2302
|
+
var _a, _b;
|
|
2303
|
+
|
|
2304
|
+
var dataSources = props.dataSources,
|
|
2305
|
+
loading = props.loading,
|
|
2306
|
+
options = props.options,
|
|
2307
|
+
height = props.height,
|
|
2308
|
+
width = props.width;
|
|
2309
|
+
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
2310
|
+
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);
|
|
2311
|
+
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
2312
|
+
var iconColor = variables_1.default.contentColorActive(props);
|
|
2313
|
+
|
|
2314
|
+
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
2315
|
+
return React.createElement(IconPlaceholder_1.default, {
|
|
2316
|
+
"data-test": "icon-placeholder",
|
|
2317
|
+
icon: icon,
|
|
2318
|
+
width: width,
|
|
2319
|
+
height: height,
|
|
2320
|
+
backgroundColor: bgColorFromTheme,
|
|
2321
|
+
iconColor: iconColor
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
return React.createElement(Visualization, Object.assign({}, props));
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
2329
|
+
Wrapper: Wrapper,
|
|
2330
|
+
Visualization: Visualization
|
|
2331
|
+
});
|
|
2332
|
+
return Wrapper;
|
|
2333
|
+
};
|
|
2334
|
+
|
|
2335
|
+
exports.default = withPlaceholder;
|
|
2336
|
+
|
|
2337
|
+
/***/ }),
|
|
2338
|
+
|
|
2339
|
+
/***/ 48:
|
|
2340
|
+
/***/ (function(module, exports) {
|
|
2341
|
+
|
|
2342
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
2343
|
+
|
|
2344
|
+
/***/ }),
|
|
2345
|
+
|
|
2346
|
+
/***/ 50:
|
|
2262
2347
|
/***/ (function(module, exports) {
|
|
2263
2348
|
|
|
2264
2349
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
2265
2350
|
|
|
2266
2351
|
/***/ }),
|
|
2267
2352
|
|
|
2268
|
-
/***/
|
|
2353
|
+
/***/ 51:
|
|
2269
2354
|
/***/ (function(module, exports) {
|
|
2270
2355
|
|
|
2271
2356
|
module.exports = require("@splunk/visualization-icons");
|
|
2272
2357
|
|
|
2273
2358
|
/***/ }),
|
|
2274
2359
|
|
|
2275
|
-
/***/
|
|
2360
|
+
/***/ 53:
|
|
2276
2361
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2277
2362
|
|
|
2278
2363
|
"use strict";
|
|
@@ -2303,7 +2388,7 @@ exports.default = background;
|
|
|
2303
2388
|
|
|
2304
2389
|
/***/ }),
|
|
2305
2390
|
|
|
2306
|
-
/***/
|
|
2391
|
+
/***/ 55:
|
|
2307
2392
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2308
2393
|
|
|
2309
2394
|
"use strict";
|
|
@@ -2525,14 +2610,14 @@ exports.constructFieldsAndColumns = constructFieldsAndColumns;
|
|
|
2525
2610
|
|
|
2526
2611
|
/***/ }),
|
|
2527
2612
|
|
|
2528
|
-
/***/
|
|
2613
|
+
/***/ 56:
|
|
2529
2614
|
/***/ (function(module, exports) {
|
|
2530
2615
|
|
|
2531
2616
|
module.exports = require("@splunk/charting-bundle");
|
|
2532
2617
|
|
|
2533
2618
|
/***/ }),
|
|
2534
2619
|
|
|
2535
|
-
/***/
|
|
2620
|
+
/***/ 59:
|
|
2536
2621
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2537
2622
|
|
|
2538
2623
|
"use strict";
|
|
@@ -2548,7 +2633,7 @@ var lodash_1 = __webpack_require__(3);
|
|
|
2548
2633
|
|
|
2549
2634
|
var i18n_1 = __webpack_require__(2);
|
|
2550
2635
|
|
|
2551
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
2636
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
2552
2637
|
|
|
2553
2638
|
var react_1 = __webpack_require__(1);
|
|
2554
2639
|
|
|
@@ -2556,14 +2641,14 @@ var React = __webpack_require__(1);
|
|
|
2556
2641
|
|
|
2557
2642
|
var T = __webpack_require__(0);
|
|
2558
2643
|
|
|
2559
|
-
var react_event_listener_1 = __webpack_require__(
|
|
2644
|
+
var react_event_listener_1 = __webpack_require__(60);
|
|
2560
2645
|
|
|
2561
|
-
__webpack_require__(
|
|
2646
|
+
__webpack_require__(61); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
2562
2647
|
|
|
2563
2648
|
|
|
2564
|
-
var charting_bundle_1 = __webpack_require__(
|
|
2649
|
+
var charting_bundle_1 = __webpack_require__(56);
|
|
2565
2650
|
|
|
2566
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2651
|
+
var TimezoneContext_1 = __webpack_require__(24);
|
|
2567
2652
|
|
|
2568
2653
|
var style_1 = __webpack_require__(15);
|
|
2569
2654
|
|
|
@@ -2571,11 +2656,11 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2571
2656
|
|
|
2572
2657
|
var Message_1 = __webpack_require__(10);
|
|
2573
2658
|
|
|
2574
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
2659
|
+
var useSplunkTheme_1 = __webpack_require__(62);
|
|
2575
2660
|
|
|
2576
|
-
var themeUtils_1 = __webpack_require__(
|
|
2661
|
+
var themeUtils_1 = __webpack_require__(63);
|
|
2577
2662
|
|
|
2578
|
-
var ChartingApi_1 = __webpack_require__(
|
|
2663
|
+
var ChartingApi_1 = __webpack_require__(64);
|
|
2579
2664
|
|
|
2580
2665
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
2581
2666
|
|
|
@@ -2955,27 +3040,6 @@ exports.default = withEmptyChartMessage(Charting);
|
|
|
2955
3040
|
|
|
2956
3041
|
/***/ }),
|
|
2957
3042
|
|
|
2958
|
-
/***/ 57:
|
|
2959
|
-
/***/ (function(module, exports) {
|
|
2960
|
-
|
|
2961
|
-
module.exports = require("react-event-listener");
|
|
2962
|
-
|
|
2963
|
-
/***/ }),
|
|
2964
|
-
|
|
2965
|
-
/***/ 58:
|
|
2966
|
-
/***/ (function(module, exports) {
|
|
2967
|
-
|
|
2968
|
-
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
2969
|
-
|
|
2970
|
-
/***/ }),
|
|
2971
|
-
|
|
2972
|
-
/***/ 59:
|
|
2973
|
-
/***/ (function(module, exports) {
|
|
2974
|
-
|
|
2975
|
-
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
2976
|
-
|
|
2977
|
-
/***/ }),
|
|
2978
|
-
|
|
2979
3043
|
/***/ 6:
|
|
2980
3044
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2981
3045
|
|
|
@@ -3017,11 +3081,32 @@ var VizBehavior;
|
|
|
3017
3081
|
/***/ 60:
|
|
3018
3082
|
/***/ (function(module, exports) {
|
|
3019
3083
|
|
|
3020
|
-
module.exports = require("
|
|
3084
|
+
module.exports = require("react-event-listener");
|
|
3021
3085
|
|
|
3022
3086
|
/***/ }),
|
|
3023
3087
|
|
|
3024
3088
|
/***/ 61:
|
|
3089
|
+
/***/ (function(module, exports) {
|
|
3090
|
+
|
|
3091
|
+
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
3092
|
+
|
|
3093
|
+
/***/ }),
|
|
3094
|
+
|
|
3095
|
+
/***/ 62:
|
|
3096
|
+
/***/ (function(module, exports) {
|
|
3097
|
+
|
|
3098
|
+
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
3099
|
+
|
|
3100
|
+
/***/ }),
|
|
3101
|
+
|
|
3102
|
+
/***/ 63:
|
|
3103
|
+
/***/ (function(module, exports) {
|
|
3104
|
+
|
|
3105
|
+
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
3106
|
+
|
|
3107
|
+
/***/ }),
|
|
3108
|
+
|
|
3109
|
+
/***/ 64:
|
|
3025
3110
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3026
3111
|
|
|
3027
3112
|
"use strict";
|
|
@@ -3029,7 +3114,7 @@ module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
|
3029
3114
|
|
|
3030
3115
|
var _classCallCheck = __webpack_require__(11);
|
|
3031
3116
|
|
|
3032
|
-
var _createClass = __webpack_require__(
|
|
3117
|
+
var _createClass = __webpack_require__(20);
|
|
3033
3118
|
|
|
3034
3119
|
Object.defineProperty(exports, "__esModule", {
|
|
3035
3120
|
value: true
|
|
@@ -3090,14 +3175,14 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
|
3090
3175
|
|
|
3091
3176
|
/***/ }),
|
|
3092
3177
|
|
|
3093
|
-
/***/
|
|
3178
|
+
/***/ 65:
|
|
3094
3179
|
/***/ (function(module, exports) {
|
|
3095
3180
|
|
|
3096
3181
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
3097
3182
|
|
|
3098
3183
|
/***/ }),
|
|
3099
3184
|
|
|
3100
|
-
/***/
|
|
3185
|
+
/***/ 67:
|
|
3101
3186
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3102
3187
|
|
|
3103
3188
|
"use strict";
|
|
@@ -3112,7 +3197,7 @@ exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble =
|
|
|
3112
3197
|
|
|
3113
3198
|
var i18n_1 = __webpack_require__(2);
|
|
3114
3199
|
|
|
3115
|
-
var configUtils_1 = __webpack_require__(
|
|
3200
|
+
var configUtils_1 = __webpack_require__(18);
|
|
3116
3201
|
|
|
3117
3202
|
var AxesChartDataConfig = {
|
|
3118
3203
|
label: i18n_1._('Data configurations'),
|
|
@@ -3238,7 +3323,7 @@ exports.default = AxesChartDataConfig;
|
|
|
3238
3323
|
|
|
3239
3324
|
/***/ }),
|
|
3240
3325
|
|
|
3241
|
-
/***/
|
|
3326
|
+
/***/ 68:
|
|
3242
3327
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3243
3328
|
|
|
3244
3329
|
"use strict";
|
|
@@ -3250,11 +3335,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3250
3335
|
|
|
3251
3336
|
var i18n_1 = __webpack_require__(2);
|
|
3252
3337
|
|
|
3253
|
-
var pick_1 = __webpack_require__(
|
|
3338
|
+
var pick_1 = __webpack_require__(22);
|
|
3254
3339
|
|
|
3255
3340
|
var variables_1 = __webpack_require__(9);
|
|
3256
3341
|
|
|
3257
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3342
|
+
var BackgroundColor_1 = __webpack_require__(53);
|
|
3258
3343
|
|
|
3259
3344
|
var themes = {
|
|
3260
3345
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
@@ -3285,7 +3370,7 @@ exports.default = AxesChartColorAndStyle;
|
|
|
3285
3370
|
|
|
3286
3371
|
/***/ }),
|
|
3287
3372
|
|
|
3288
|
-
/***/
|
|
3373
|
+
/***/ 69:
|
|
3289
3374
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3290
3375
|
|
|
3291
3376
|
"use strict";
|
|
@@ -3350,7 +3435,14 @@ exports.default = AxesChartLegend;
|
|
|
3350
3435
|
|
|
3351
3436
|
/***/ }),
|
|
3352
3437
|
|
|
3353
|
-
/***/
|
|
3438
|
+
/***/ 7:
|
|
3439
|
+
/***/ (function(module, exports) {
|
|
3440
|
+
|
|
3441
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3442
|
+
|
|
3443
|
+
/***/ }),
|
|
3444
|
+
|
|
3445
|
+
/***/ 70:
|
|
3354
3446
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3355
3447
|
|
|
3356
3448
|
"use strict";
|
|
@@ -3365,7 +3457,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCo
|
|
|
3365
3457
|
|
|
3366
3458
|
var i18n_1 = __webpack_require__(2);
|
|
3367
3459
|
|
|
3368
|
-
var configUtils_1 = __webpack_require__(
|
|
3460
|
+
var configUtils_1 = __webpack_require__(18);
|
|
3369
3461
|
|
|
3370
3462
|
exports.AxesChartXGridAndLabelsCommon = {
|
|
3371
3463
|
label: i18n_1._('X-axis grid and labels'),
|
|
@@ -3639,7 +3731,7 @@ exports.default = AxesChartXGridAndLabels;
|
|
|
3639
3731
|
|
|
3640
3732
|
/***/ }),
|
|
3641
3733
|
|
|
3642
|
-
/***/
|
|
3734
|
+
/***/ 71:
|
|
3643
3735
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3644
3736
|
|
|
3645
3737
|
"use strict";
|
|
@@ -3802,13 +3894,6 @@ exports.default = AxesChartYGridAndLabels;
|
|
|
3802
3894
|
|
|
3803
3895
|
/***/ }),
|
|
3804
3896
|
|
|
3805
|
-
/***/ 7:
|
|
3806
|
-
/***/ (function(module, exports) {
|
|
3807
|
-
|
|
3808
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3809
|
-
|
|
3810
|
-
/***/ }),
|
|
3811
|
-
|
|
3812
3897
|
/***/ 8:
|
|
3813
3898
|
/***/ (function(module, exports) {
|
|
3814
3899
|
|