@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/Table.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 467);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -113,6 +113,20 @@ module.exports = require("@splunk/visualizations-shared/Message");
|
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
+
/***/ 100:
|
|
117
|
+
/***/ (function(module, exports) {
|
|
118
|
+
|
|
119
|
+
module.exports = require("@splunk/react-ui/Table");
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ 101:
|
|
124
|
+
/***/ (function(module, exports) {
|
|
125
|
+
|
|
126
|
+
module.exports = require("@splunk/react-sparkline/Line");
|
|
127
|
+
|
|
128
|
+
/***/ }),
|
|
129
|
+
|
|
116
130
|
/***/ 11:
|
|
117
131
|
/***/ (function(module, exports) {
|
|
118
132
|
|
|
@@ -120,6 +134,13 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
120
134
|
|
|
121
135
|
/***/ }),
|
|
122
136
|
|
|
137
|
+
/***/ 116:
|
|
138
|
+
/***/ (function(module, exports) {
|
|
139
|
+
|
|
140
|
+
module.exports = require("@splunk/react-ui/Message");
|
|
141
|
+
|
|
142
|
+
/***/ }),
|
|
143
|
+
|
|
123
144
|
/***/ 12:
|
|
124
145
|
/***/ (function(module, exports) {
|
|
125
146
|
|
|
@@ -127,7 +148,7 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
127
148
|
|
|
128
149
|
/***/ }),
|
|
129
150
|
|
|
130
|
-
/***/
|
|
151
|
+
/***/ 126:
|
|
131
152
|
/***/ (function(module, exports, __webpack_require__) {
|
|
132
153
|
|
|
133
154
|
"use strict";
|
|
@@ -160,7 +181,7 @@ var React = __webpack_require__(1);
|
|
|
160
181
|
|
|
161
182
|
var styled_components_1 = __webpack_require__(4);
|
|
162
183
|
|
|
163
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
184
|
+
var SizeAwareWrapper_1 = __webpack_require__(21);
|
|
164
185
|
|
|
165
186
|
var style_1 = __webpack_require__(15);
|
|
166
187
|
|
|
@@ -221,7 +242,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
221
242
|
|
|
222
243
|
return React.createElement(FixSizeItem, {
|
|
223
244
|
"data-test": "fix-size-item",
|
|
224
|
-
"data-splunk-visualization-version": "25.
|
|
245
|
+
"data-splunk-visualization-version": "25.6.0 - f5eb3abf9",
|
|
225
246
|
width: width,
|
|
226
247
|
height: height,
|
|
227
248
|
backgroundColor: backgroundColor
|
|
@@ -283,13 +304,13 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
283
304
|
|
|
284
305
|
/***/ }),
|
|
285
306
|
|
|
286
|
-
/***/
|
|
307
|
+
/***/ 157:
|
|
287
308
|
/***/ (function(module, exports, __webpack_require__) {
|
|
288
309
|
|
|
289
310
|
"use strict";
|
|
290
311
|
|
|
291
312
|
|
|
292
|
-
var _slicedToArray = __webpack_require__(
|
|
313
|
+
var _slicedToArray = __webpack_require__(17);
|
|
293
314
|
|
|
294
315
|
var __rest = this && this.__rest || function (s, e) {
|
|
295
316
|
var t = {};
|
|
@@ -313,13 +334,13 @@ var lodash_1 = __webpack_require__(3);
|
|
|
313
334
|
|
|
314
335
|
var colorUtils_1 = __webpack_require__(12);
|
|
315
336
|
|
|
316
|
-
var config_1 = __webpack_require__(
|
|
337
|
+
var config_1 = __webpack_require__(468);
|
|
317
338
|
|
|
318
339
|
exports.config = config_1.default;
|
|
319
340
|
|
|
320
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
341
|
+
var withDashboardViz_1 = __webpack_require__(35);
|
|
321
342
|
|
|
322
|
-
var PureTable_1 = __webpack_require__(
|
|
343
|
+
var PureTable_1 = __webpack_require__(469);
|
|
323
344
|
|
|
324
345
|
exports.PureTable = PureTable_1.default;
|
|
325
346
|
|
|
@@ -405,6 +426,13 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
405
426
|
/***/ }),
|
|
406
427
|
|
|
407
428
|
/***/ 17:
|
|
429
|
+
/***/ (function(module, exports) {
|
|
430
|
+
|
|
431
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
432
|
+
|
|
433
|
+
/***/ }),
|
|
434
|
+
|
|
435
|
+
/***/ 18:
|
|
408
436
|
/***/ (function(module, exports, __webpack_require__) {
|
|
409
437
|
|
|
410
438
|
"use strict";
|
|
@@ -641,56 +669,70 @@ exports.insertLayout = insertLayout;
|
|
|
641
669
|
|
|
642
670
|
/***/ }),
|
|
643
671
|
|
|
644
|
-
/***/
|
|
672
|
+
/***/ 2:
|
|
645
673
|
/***/ (function(module, exports) {
|
|
646
674
|
|
|
647
|
-
module.exports = require("@
|
|
675
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
648
676
|
|
|
649
677
|
/***/ }),
|
|
650
678
|
|
|
651
|
-
/***/
|
|
679
|
+
/***/ 20:
|
|
652
680
|
/***/ (function(module, exports) {
|
|
653
681
|
|
|
654
|
-
module.exports = require("@
|
|
682
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
655
683
|
|
|
656
684
|
/***/ }),
|
|
657
685
|
|
|
658
|
-
/***/
|
|
686
|
+
/***/ 21:
|
|
659
687
|
/***/ (function(module, exports) {
|
|
660
688
|
|
|
661
689
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
662
690
|
|
|
663
691
|
/***/ }),
|
|
664
692
|
|
|
665
|
-
/***/
|
|
693
|
+
/***/ 22:
|
|
666
694
|
/***/ (function(module, exports) {
|
|
667
695
|
|
|
668
696
|
module.exports = require("@splunk/themes/pick");
|
|
669
697
|
|
|
670
698
|
/***/ }),
|
|
671
699
|
|
|
672
|
-
/***/
|
|
700
|
+
/***/ 24:
|
|
673
701
|
/***/ (function(module, exports) {
|
|
674
702
|
|
|
675
703
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
676
704
|
|
|
677
705
|
/***/ }),
|
|
678
706
|
|
|
679
|
-
/***/
|
|
707
|
+
/***/ 26:
|
|
708
|
+
/***/ (function(module, exports) {
|
|
709
|
+
|
|
710
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
711
|
+
|
|
712
|
+
/***/ }),
|
|
713
|
+
|
|
714
|
+
/***/ 27:
|
|
680
715
|
/***/ (function(module, exports) {
|
|
681
716
|
|
|
682
717
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
683
718
|
|
|
684
719
|
/***/ }),
|
|
685
720
|
|
|
686
|
-
/***/
|
|
721
|
+
/***/ 28:
|
|
687
722
|
/***/ (function(module, exports) {
|
|
688
723
|
|
|
689
724
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
690
725
|
|
|
691
726
|
/***/ }),
|
|
692
727
|
|
|
693
|
-
/***/
|
|
728
|
+
/***/ 3:
|
|
729
|
+
/***/ (function(module, exports) {
|
|
730
|
+
|
|
731
|
+
module.exports = require("lodash");
|
|
732
|
+
|
|
733
|
+
/***/ }),
|
|
734
|
+
|
|
735
|
+
/***/ 30:
|
|
694
736
|
/***/ (function(module, exports, __webpack_require__) {
|
|
695
737
|
|
|
696
738
|
"use strict";
|
|
@@ -782,7 +824,14 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
782
824
|
|
|
783
825
|
/***/ }),
|
|
784
826
|
|
|
785
|
-
/***/
|
|
827
|
+
/***/ 31:
|
|
828
|
+
/***/ (function(module, exports) {
|
|
829
|
+
|
|
830
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
831
|
+
|
|
832
|
+
/***/ }),
|
|
833
|
+
|
|
834
|
+
/***/ 32:
|
|
786
835
|
/***/ (function(module, exports, __webpack_require__) {
|
|
787
836
|
|
|
788
837
|
"use strict";
|
|
@@ -799,7 +848,7 @@ var T = __webpack_require__(0);
|
|
|
799
848
|
|
|
800
849
|
var lodash_1 = __webpack_require__(3);
|
|
801
850
|
|
|
802
|
-
var DataSource_1 = __webpack_require__(
|
|
851
|
+
var DataSource_1 = __webpack_require__(43);
|
|
803
852
|
|
|
804
853
|
exports.SortParamsPropTypes = T.shape({
|
|
805
854
|
currentSortKey: T.string,
|
|
@@ -853,7 +902,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
853
902
|
|
|
854
903
|
/***/ }),
|
|
855
904
|
|
|
856
|
-
/***/
|
|
905
|
+
/***/ 33:
|
|
857
906
|
/***/ (function(module, exports, __webpack_require__) {
|
|
858
907
|
|
|
859
908
|
"use strict";
|
|
@@ -918,14 +967,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
918
967
|
|
|
919
968
|
/***/ }),
|
|
920
969
|
|
|
921
|
-
/***/
|
|
922
|
-
/***/ (function(module, exports) {
|
|
923
|
-
|
|
924
|
-
module.exports = require("lodash");
|
|
925
|
-
|
|
926
|
-
/***/ }),
|
|
927
|
-
|
|
928
|
-
/***/ 31:
|
|
970
|
+
/***/ 34:
|
|
929
971
|
/***/ (function(module, exports, __webpack_require__) {
|
|
930
972
|
|
|
931
973
|
"use strict";
|
|
@@ -954,12 +996,14 @@ var VizCategory;
|
|
|
954
996
|
|
|
955
997
|
/***/ }),
|
|
956
998
|
|
|
957
|
-
/***/
|
|
999
|
+
/***/ 35:
|
|
958
1000
|
/***/ (function(module, exports, __webpack_require__) {
|
|
959
1001
|
|
|
960
1002
|
"use strict";
|
|
961
1003
|
|
|
962
1004
|
|
|
1005
|
+
var _slicedToArray = __webpack_require__(17);
|
|
1006
|
+
|
|
963
1007
|
Object.defineProperty(exports, "__esModule", {
|
|
964
1008
|
value: true
|
|
965
1009
|
});
|
|
@@ -968,44 +1012,51 @@ var React = __webpack_require__(1);
|
|
|
968
1012
|
|
|
969
1013
|
var lodash_1 = __webpack_require__(3);
|
|
970
1014
|
|
|
971
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1015
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(36);
|
|
972
1016
|
|
|
973
|
-
var Options_1 = __webpack_require__(
|
|
1017
|
+
var Options_1 = __webpack_require__(37);
|
|
974
1018
|
|
|
975
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1019
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
976
1020
|
|
|
977
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1021
|
+
var TimezoneContext_1 = __webpack_require__(24);
|
|
978
1022
|
|
|
979
|
-
var moment_1 = __webpack_require__(
|
|
1023
|
+
var moment_1 = __webpack_require__(39);
|
|
1024
|
+
|
|
1025
|
+
var FeatureFlagContext_1 = __webpack_require__(26);
|
|
980
1026
|
|
|
981
1027
|
var styled_components_1 = __webpack_require__(4);
|
|
982
1028
|
|
|
983
|
-
var hocUtils_1 = __webpack_require__(
|
|
1029
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
1030
|
+
|
|
1031
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
984
1032
|
|
|
985
|
-
var
|
|
1033
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
986
1034
|
|
|
987
|
-
var
|
|
1035
|
+
var id_1 = __webpack_require__(31);
|
|
1036
|
+
|
|
1037
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
988
1038
|
|
|
989
1039
|
var VizBehavior_1 = __webpack_require__(6);
|
|
990
1040
|
|
|
991
|
-
var getSorting_1 = __webpack_require__(
|
|
1041
|
+
var getSorting_1 = __webpack_require__(32);
|
|
1042
|
+
|
|
1043
|
+
var getPagination_1 = __webpack_require__(33);
|
|
992
1044
|
|
|
993
|
-
var
|
|
1045
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
994
1046
|
|
|
995
|
-
var
|
|
1047
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
996
1048
|
|
|
997
|
-
var
|
|
1049
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
998
1050
|
|
|
999
|
-
var
|
|
1051
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
1000
1052
|
|
|
1001
|
-
var
|
|
1053
|
+
var UUID = id_1.createGUID();
|
|
1002
1054
|
/**
|
|
1003
1055
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1004
1056
|
* @param {DashboardVizOpts} opts
|
|
1005
1057
|
* @returns {HOC}
|
|
1006
1058
|
*/
|
|
1007
1059
|
|
|
1008
|
-
|
|
1009
1060
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
1010
1061
|
var ReactViz = opts.ReactViz,
|
|
1011
1062
|
vizConfig = opts.vizConfig,
|
|
@@ -1065,28 +1116,76 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1065
1116
|
|
|
1066
1117
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1067
1118
|
|
|
1119
|
+
var _React$useState = React.useState({}),
|
|
1120
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1121
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1122
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1126
|
+
|
|
1127
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1128
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1129
|
+
visualizationID = _React$useState4[0];
|
|
1130
|
+
|
|
1131
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext['visualizations.useWebWorkersForDSL'] && typeof Worker !== 'undefined')),
|
|
1132
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1133
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1134
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1135
|
+
|
|
1068
1136
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
1069
1137
|
try {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1138
|
+
if (useAsyncEvaluatedOptions) {
|
|
1139
|
+
var optionsToEvaluate = {
|
|
1140
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1141
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1142
|
+
};
|
|
1143
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1144
|
+
visualizationID: visualizationID,
|
|
1145
|
+
props: props,
|
|
1146
|
+
options: optionsToEvaluate,
|
|
1147
|
+
dataSources: dataSources,
|
|
1148
|
+
theme: vizConfig.themes
|
|
1149
|
+
};
|
|
1150
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1151
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1152
|
+
}).catch(function (e) {
|
|
1153
|
+
// eslint-disable-next-line no-console
|
|
1154
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1155
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1156
|
+
});
|
|
1157
|
+
} else {
|
|
1158
|
+
return Options_1.Options.evaluate({
|
|
1159
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1160
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1161
|
+
}, dataSources, themeFunc);
|
|
1162
|
+
}
|
|
1074
1163
|
} catch (e) {
|
|
1075
1164
|
// eslint-disable-next-line no-console
|
|
1076
|
-
console.error("unexpected error evaluating options:
|
|
1165
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
1077
1166
|
return {};
|
|
1078
1167
|
}
|
|
1079
|
-
|
|
1168
|
+
|
|
1169
|
+
return {};
|
|
1170
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1171
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // useEffect hook needs to be initialized before any early returns
|
|
1080
1172
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1081
1173
|
|
|
1082
1174
|
React.useEffect(function () {
|
|
1083
|
-
onComputedProps(
|
|
1084
|
-
});
|
|
1175
|
+
onComputedProps(evaluatedOptionsToUse);
|
|
1176
|
+
});
|
|
1177
|
+
React.useEffect(function () {
|
|
1178
|
+
return function () {
|
|
1179
|
+
if (useAsyncEvaluatedOptions) {
|
|
1180
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1181
|
+
}
|
|
1182
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1183
|
+
}, []); // present warning message if any required props are missing
|
|
1085
1184
|
|
|
1086
1185
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1087
1186
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1088
1187
|
supports = vizConfig.supports;
|
|
1089
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1188
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1090
1189
|
|
|
1091
1190
|
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
|
|
1092
1191
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -1113,7 +1212,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1113
1212
|
|
|
1114
1213
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1115
1214
|
payloadKeys.forEach(function (p) {
|
|
1116
|
-
payload[p] =
|
|
1215
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1117
1216
|
});
|
|
1118
1217
|
}
|
|
1119
1218
|
|
|
@@ -1132,7 +1231,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1132
1231
|
} // compute pure viz props which are not from options
|
|
1133
1232
|
|
|
1134
1233
|
|
|
1135
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1234
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1136
1235
|
themeFunc: themeFunc
|
|
1137
1236
|
}));
|
|
1138
1237
|
/**
|
|
@@ -1152,7 +1251,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1152
1251
|
|
|
1153
1252
|
var dataSourceMetadata = {};
|
|
1154
1253
|
var OptionKey = 'paginateDataSourceKey';
|
|
1155
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1254
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1156
1255
|
|
|
1157
1256
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1158
1257
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1182,7 +1281,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1182
1281
|
mode: mode,
|
|
1183
1282
|
width: width,
|
|
1184
1283
|
height: height
|
|
1185
|
-
},
|
|
1284
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1186
1285
|
};
|
|
1187
1286
|
|
|
1188
1287
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -1200,35 +1299,49 @@ exports.default = withDashboardViz;
|
|
|
1200
1299
|
|
|
1201
1300
|
/***/ }),
|
|
1202
1301
|
|
|
1203
|
-
/***/
|
|
1302
|
+
/***/ 36:
|
|
1204
1303
|
/***/ (function(module, exports) {
|
|
1205
1304
|
|
|
1206
1305
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1207
1306
|
|
|
1208
1307
|
/***/ }),
|
|
1209
1308
|
|
|
1210
|
-
/***/
|
|
1309
|
+
/***/ 37:
|
|
1211
1310
|
/***/ (function(module, exports) {
|
|
1212
1311
|
|
|
1213
1312
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1214
1313
|
|
|
1215
1314
|
/***/ }),
|
|
1216
1315
|
|
|
1217
|
-
/***/
|
|
1316
|
+
/***/ 38:
|
|
1218
1317
|
/***/ (function(module, exports) {
|
|
1219
1318
|
|
|
1220
1319
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1221
1320
|
|
|
1222
1321
|
/***/ }),
|
|
1223
1322
|
|
|
1224
|
-
/***/
|
|
1323
|
+
/***/ 39:
|
|
1225
1324
|
/***/ (function(module, exports) {
|
|
1226
1325
|
|
|
1227
1326
|
module.exports = require("@splunk/moment");
|
|
1228
1327
|
|
|
1229
1328
|
/***/ }),
|
|
1230
1329
|
|
|
1231
|
-
/***/
|
|
1330
|
+
/***/ 4:
|
|
1331
|
+
/***/ (function(module, exports) {
|
|
1332
|
+
|
|
1333
|
+
module.exports = require("styled-components");
|
|
1334
|
+
|
|
1335
|
+
/***/ }),
|
|
1336
|
+
|
|
1337
|
+
/***/ 40:
|
|
1338
|
+
/***/ (function(module, exports) {
|
|
1339
|
+
|
|
1340
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1341
|
+
|
|
1342
|
+
/***/ }),
|
|
1343
|
+
|
|
1344
|
+
/***/ 41:
|
|
1232
1345
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1233
1346
|
|
|
1234
1347
|
"use strict";
|
|
@@ -1246,7 +1359,7 @@ var T = __webpack_require__(0);
|
|
|
1246
1359
|
|
|
1247
1360
|
var lodash_1 = __webpack_require__(3);
|
|
1248
1361
|
|
|
1249
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1362
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1250
1363
|
|
|
1251
1364
|
|
|
1252
1365
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1380,7 +1493,7 @@ exports.default = SplunkVisualization;
|
|
|
1380
1493
|
|
|
1381
1494
|
/***/ }),
|
|
1382
1495
|
|
|
1383
|
-
/***/
|
|
1496
|
+
/***/ 42:
|
|
1384
1497
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1385
1498
|
|
|
1386
1499
|
"use strict";
|
|
@@ -1388,7 +1501,7 @@ exports.default = SplunkVisualization;
|
|
|
1388
1501
|
|
|
1389
1502
|
var _classCallCheck = __webpack_require__(11);
|
|
1390
1503
|
|
|
1391
|
-
var _createClass = __webpack_require__(
|
|
1504
|
+
var _createClass = __webpack_require__(20);
|
|
1392
1505
|
|
|
1393
1506
|
Object.defineProperty(exports, "__esModule", {
|
|
1394
1507
|
value: true
|
|
@@ -1418,7 +1531,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1418
1531
|
|
|
1419
1532
|
/***/ }),
|
|
1420
1533
|
|
|
1421
|
-
/***/
|
|
1534
|
+
/***/ 43:
|
|
1422
1535
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1423
1536
|
|
|
1424
1537
|
"use strict";
|
|
@@ -1432,14 +1545,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1432
1545
|
|
|
1433
1546
|
/***/ }),
|
|
1434
1547
|
|
|
1435
|
-
/***/
|
|
1436
|
-
/***/ (function(module, exports) {
|
|
1437
|
-
|
|
1438
|
-
module.exports = require("styled-components");
|
|
1439
|
-
|
|
1440
|
-
/***/ }),
|
|
1441
|
-
|
|
1442
|
-
/***/ 40:
|
|
1548
|
+
/***/ 44:
|
|
1443
1549
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1444
1550
|
|
|
1445
1551
|
"use strict";
|
|
@@ -1485,7 +1591,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1485
1591
|
|
|
1486
1592
|
/***/ }),
|
|
1487
1593
|
|
|
1488
|
-
/***/
|
|
1594
|
+
/***/ 45:
|
|
1489
1595
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1490
1596
|
|
|
1491
1597
|
"use strict";
|
|
@@ -1566,7 +1672,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
1566
1672
|
|
|
1567
1673
|
/***/ }),
|
|
1568
1674
|
|
|
1569
|
-
/***/
|
|
1675
|
+
/***/ 46:
|
|
1570
1676
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1571
1677
|
|
|
1572
1678
|
"use strict";
|
|
@@ -1587,7 +1693,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1587
1693
|
componentId: "sc-1gsbnxb-0"
|
|
1588
1694
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1589
1695
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1590
|
-
'data-splunk-visualization-version': "25.
|
|
1696
|
+
'data-splunk-visualization-version': "25.6.0 - f5eb3abf9"
|
|
1591
1697
|
}).withConfig({
|
|
1592
1698
|
displayName: "withEditModeCover__Blocker",
|
|
1593
1699
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1619,86 +1725,7 @@ exports.default = withEditModeCover;
|
|
|
1619
1725
|
|
|
1620
1726
|
/***/ }),
|
|
1621
1727
|
|
|
1622
|
-
/***/
|
|
1623
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1624
|
-
|
|
1625
|
-
"use strict";
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1629
|
-
value: true
|
|
1630
|
-
});
|
|
1631
|
-
|
|
1632
|
-
var React = __webpack_require__(1);
|
|
1633
|
-
|
|
1634
|
-
var colorUtils_1 = __webpack_require__(12);
|
|
1635
|
-
|
|
1636
|
-
var variables_1 = __webpack_require__(9);
|
|
1637
|
-
|
|
1638
|
-
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1639
|
-
|
|
1640
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1641
|
-
|
|
1642
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
1643
|
-
|
|
1644
|
-
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1645
|
-
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
1646
|
-
var config = Visualization.config;
|
|
1647
|
-
var themes = config.themes;
|
|
1648
|
-
|
|
1649
|
-
var Wrapper = function Wrapper(props) {
|
|
1650
|
-
var _a, _b;
|
|
1651
|
-
|
|
1652
|
-
var dataSources = props.dataSources,
|
|
1653
|
-
loading = props.loading,
|
|
1654
|
-
options = props.options,
|
|
1655
|
-
height = props.height,
|
|
1656
|
-
width = props.width;
|
|
1657
|
-
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1658
|
-
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);
|
|
1659
|
-
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
1660
|
-
var iconColor = variables_1.default.contentColorActive(props);
|
|
1661
|
-
|
|
1662
|
-
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
1663
|
-
return React.createElement(IconPlaceholder_1.default, {
|
|
1664
|
-
"data-test": "icon-placeholder",
|
|
1665
|
-
icon: icon,
|
|
1666
|
-
width: width,
|
|
1667
|
-
height: height,
|
|
1668
|
-
backgroundColor: bgColorFromTheme,
|
|
1669
|
-
iconColor: iconColor
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
return React.createElement(Visualization, Object.assign({}, props));
|
|
1674
|
-
};
|
|
1675
|
-
|
|
1676
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1677
|
-
Wrapper: Wrapper,
|
|
1678
|
-
Visualization: Visualization
|
|
1679
|
-
});
|
|
1680
|
-
return Wrapper;
|
|
1681
|
-
};
|
|
1682
|
-
|
|
1683
|
-
exports.default = withPlaceholder;
|
|
1684
|
-
|
|
1685
|
-
/***/ }),
|
|
1686
|
-
|
|
1687
|
-
/***/ 44:
|
|
1688
|
-
/***/ (function(module, exports) {
|
|
1689
|
-
|
|
1690
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1691
|
-
|
|
1692
|
-
/***/ }),
|
|
1693
|
-
|
|
1694
|
-
/***/ 45:
|
|
1695
|
-
/***/ (function(module, exports) {
|
|
1696
|
-
|
|
1697
|
-
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
1698
|
-
|
|
1699
|
-
/***/ }),
|
|
1700
|
-
|
|
1701
|
-
/***/ 459:
|
|
1728
|
+
/***/ 467:
|
|
1702
1729
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1703
1730
|
|
|
1704
1731
|
"use strict";
|
|
@@ -1730,9 +1757,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
|
|
|
1730
1757
|
// for some reason, omitting the default export worked before TS v4
|
|
1731
1758
|
// see: https://stackoverflow.com/a/34445175
|
|
1732
1759
|
|
|
1733
|
-
__exportStar(__webpack_require__(
|
|
1760
|
+
__exportStar(__webpack_require__(157), exports);
|
|
1734
1761
|
|
|
1735
|
-
var Table_1 = __webpack_require__(
|
|
1762
|
+
var Table_1 = __webpack_require__(157);
|
|
1736
1763
|
|
|
1737
1764
|
Object.defineProperty(exports, "default", {
|
|
1738
1765
|
enumerable: true,
|
|
@@ -1743,7 +1770,7 @@ Object.defineProperty(exports, "default", {
|
|
|
1743
1770
|
|
|
1744
1771
|
/***/ }),
|
|
1745
1772
|
|
|
1746
|
-
/***/
|
|
1773
|
+
/***/ 468:
|
|
1747
1774
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1748
1775
|
|
|
1749
1776
|
"use strict";
|
|
@@ -1761,23 +1788,23 @@ var lodash_1 = __webpack_require__(3);
|
|
|
1761
1788
|
|
|
1762
1789
|
var schemaUtils_1 = __webpack_require__(16);
|
|
1763
1790
|
|
|
1764
|
-
var colorConstants_1 = __webpack_require__(
|
|
1791
|
+
var colorConstants_1 = __webpack_require__(49);
|
|
1765
1792
|
|
|
1766
|
-
var visualization_icons_1 = __webpack_require__(
|
|
1793
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
1767
1794
|
|
|
1768
|
-
var placeholders_1 = __webpack_require__(
|
|
1795
|
+
var placeholders_1 = __webpack_require__(48);
|
|
1769
1796
|
|
|
1770
1797
|
var variables_1 = __webpack_require__(9);
|
|
1771
1798
|
|
|
1772
|
-
var pick_1 = __webpack_require__(
|
|
1799
|
+
var pick_1 = __webpack_require__(22);
|
|
1773
1800
|
|
|
1774
|
-
var configUtils_1 = __webpack_require__(
|
|
1801
|
+
var configUtils_1 = __webpack_require__(18);
|
|
1775
1802
|
|
|
1776
1803
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1777
1804
|
|
|
1778
|
-
var consts_1 = __webpack_require__(
|
|
1805
|
+
var consts_1 = __webpack_require__(126);
|
|
1779
1806
|
|
|
1780
|
-
var VizCategory_1 = __webpack_require__(
|
|
1807
|
+
var VizCategory_1 = __webpack_require__(34);
|
|
1781
1808
|
|
|
1782
1809
|
var dataContract = {
|
|
1783
1810
|
requiredDataSources: [{
|
|
@@ -2475,17 +2502,17 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2475
2502
|
|
|
2476
2503
|
/***/ }),
|
|
2477
2504
|
|
|
2478
|
-
/***/
|
|
2505
|
+
/***/ 469:
|
|
2479
2506
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2480
2507
|
|
|
2481
2508
|
"use strict";
|
|
2482
2509
|
|
|
2483
2510
|
|
|
2484
|
-
var _slicedToArray = __webpack_require__(
|
|
2511
|
+
var _slicedToArray = __webpack_require__(17);
|
|
2485
2512
|
|
|
2486
2513
|
var _defineProperty = __webpack_require__(7);
|
|
2487
2514
|
|
|
2488
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
2515
|
+
var _taggedTemplateLiteral = __webpack_require__(89);
|
|
2489
2516
|
|
|
2490
2517
|
var _templateObject, _templateObject2;
|
|
2491
2518
|
|
|
@@ -2517,37 +2544,37 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2517
2544
|
|
|
2518
2545
|
var i18n_1 = __webpack_require__(2);
|
|
2519
2546
|
|
|
2520
|
-
var Table_1 = __webpack_require__(
|
|
2547
|
+
var Table_1 = __webpack_require__(100);
|
|
2521
2548
|
|
|
2522
|
-
var Paginator_1 = __webpack_require__(
|
|
2549
|
+
var Paginator_1 = __webpack_require__(470);
|
|
2523
2550
|
|
|
2524
|
-
var Message_1 = __webpack_require__(
|
|
2551
|
+
var Message_1 = __webpack_require__(116);
|
|
2525
2552
|
|
|
2526
2553
|
var colorUtils_1 = __webpack_require__(12);
|
|
2527
2554
|
|
|
2528
2555
|
var style_1 = __webpack_require__(15);
|
|
2529
2556
|
|
|
2530
|
-
var pick_1 = __webpack_require__(
|
|
2557
|
+
var pick_1 = __webpack_require__(22);
|
|
2531
2558
|
|
|
2532
2559
|
var variables_1 = __webpack_require__(9);
|
|
2533
2560
|
|
|
2534
|
-
var hooks_1 = __webpack_require__(
|
|
2561
|
+
var hooks_1 = __webpack_require__(471);
|
|
2535
2562
|
|
|
2536
|
-
var consts_1 = __webpack_require__(
|
|
2563
|
+
var consts_1 = __webpack_require__(126);
|
|
2537
2564
|
|
|
2538
|
-
var cells_1 = __webpack_require__(
|
|
2565
|
+
var cells_1 = __webpack_require__(472);
|
|
2539
2566
|
|
|
2540
|
-
var getPagination_1 = __webpack_require__(
|
|
2567
|
+
var getPagination_1 = __webpack_require__(33);
|
|
2541
2568
|
|
|
2542
|
-
var getSorting_1 = __webpack_require__(
|
|
2569
|
+
var getSorting_1 = __webpack_require__(32);
|
|
2543
2570
|
|
|
2544
2571
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
2545
2572
|
|
|
2546
|
-
var utils_1 = __webpack_require__(
|
|
2573
|
+
var utils_1 = __webpack_require__(477); // debounce was imported this way due to typing
|
|
2547
2574
|
// eslint-disable-next-line import/order
|
|
2548
2575
|
|
|
2549
2576
|
|
|
2550
|
-
var debounce = __webpack_require__(
|
|
2577
|
+
var debounce = __webpack_require__(478);
|
|
2551
2578
|
|
|
2552
2579
|
exports.MINIMUM_COLUMN_SIZE = 30;
|
|
2553
2580
|
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
@@ -3077,21 +3104,79 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
|
|
|
3077
3104
|
|
|
3078
3105
|
/***/ }),
|
|
3079
3106
|
|
|
3080
|
-
/***/
|
|
3081
|
-
/***/ (function(module, exports) {
|
|
3107
|
+
/***/ 47:
|
|
3108
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3082
3109
|
|
|
3083
|
-
|
|
3110
|
+
"use strict";
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3114
|
+
value: true
|
|
3115
|
+
});
|
|
3116
|
+
|
|
3117
|
+
var React = __webpack_require__(1);
|
|
3118
|
+
|
|
3119
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
3120
|
+
|
|
3121
|
+
var variables_1 = __webpack_require__(9);
|
|
3122
|
+
|
|
3123
|
+
var IconPlaceholder_1 = __webpack_require__(30);
|
|
3124
|
+
|
|
3125
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
3126
|
+
|
|
3127
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
3128
|
+
|
|
3129
|
+
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3130
|
+
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
3131
|
+
var config = Visualization.config;
|
|
3132
|
+
var themes = config.themes;
|
|
3133
|
+
|
|
3134
|
+
var Wrapper = function Wrapper(props) {
|
|
3135
|
+
var _a, _b;
|
|
3136
|
+
|
|
3137
|
+
var dataSources = props.dataSources,
|
|
3138
|
+
loading = props.loading,
|
|
3139
|
+
options = props.options,
|
|
3140
|
+
height = props.height,
|
|
3141
|
+
width = props.width;
|
|
3142
|
+
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
3143
|
+
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);
|
|
3144
|
+
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
3145
|
+
var iconColor = variables_1.default.contentColorActive(props);
|
|
3146
|
+
|
|
3147
|
+
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
3148
|
+
return React.createElement(IconPlaceholder_1.default, {
|
|
3149
|
+
"data-test": "icon-placeholder",
|
|
3150
|
+
icon: icon,
|
|
3151
|
+
width: width,
|
|
3152
|
+
height: height,
|
|
3153
|
+
backgroundColor: bgColorFromTheme,
|
|
3154
|
+
iconColor: iconColor
|
|
3155
|
+
});
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
return React.createElement(Visualization, Object.assign({}, props));
|
|
3159
|
+
};
|
|
3160
|
+
|
|
3161
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
3162
|
+
Wrapper: Wrapper,
|
|
3163
|
+
Visualization: Visualization
|
|
3164
|
+
});
|
|
3165
|
+
return Wrapper;
|
|
3166
|
+
};
|
|
3167
|
+
|
|
3168
|
+
exports.default = withPlaceholder;
|
|
3084
3169
|
|
|
3085
3170
|
/***/ }),
|
|
3086
3171
|
|
|
3087
|
-
/***/
|
|
3172
|
+
/***/ 470:
|
|
3088
3173
|
/***/ (function(module, exports) {
|
|
3089
3174
|
|
|
3090
|
-
module.exports = require("@splunk/react-ui/
|
|
3175
|
+
module.exports = require("@splunk/react-ui/Paginator");
|
|
3091
3176
|
|
|
3092
3177
|
/***/ }),
|
|
3093
3178
|
|
|
3094
|
-
/***/
|
|
3179
|
+
/***/ 471:
|
|
3095
3180
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3096
3181
|
|
|
3097
3182
|
"use strict";
|
|
@@ -3099,7 +3184,7 @@ module.exports = require("@splunk/react-ui/Message");
|
|
|
3099
3184
|
|
|
3100
3185
|
var _toConsumableArray = __webpack_require__(8);
|
|
3101
3186
|
|
|
3102
|
-
var _typeof = __webpack_require__(
|
|
3187
|
+
var _typeof = __webpack_require__(87);
|
|
3103
3188
|
|
|
3104
3189
|
Object.defineProperty(exports, "__esModule", {
|
|
3105
3190
|
value: true
|
|
@@ -3110,7 +3195,7 @@ var lodash_1 = __webpack_require__(3);
|
|
|
3110
3195
|
|
|
3111
3196
|
var colorUtils_1 = __webpack_require__(12);
|
|
3112
3197
|
|
|
3113
|
-
var consts_1 = __webpack_require__(
|
|
3198
|
+
var consts_1 = __webpack_require__(126);
|
|
3114
3199
|
|
|
3115
3200
|
var isArray = function isArray(v) {
|
|
3116
3201
|
return Array.isArray(v);
|
|
@@ -3517,7 +3602,7 @@ exports.useTable = useTable;
|
|
|
3517
3602
|
|
|
3518
3603
|
/***/ }),
|
|
3519
3604
|
|
|
3520
|
-
/***/
|
|
3605
|
+
/***/ 472:
|
|
3521
3606
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3522
3607
|
|
|
3523
3608
|
"use strict";
|
|
@@ -3546,17 +3631,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3546
3631
|
value: true
|
|
3547
3632
|
});
|
|
3548
3633
|
|
|
3549
|
-
__exportStar(__webpack_require__(
|
|
3634
|
+
__exportStar(__webpack_require__(473), exports);
|
|
3550
3635
|
|
|
3551
|
-
__exportStar(__webpack_require__(
|
|
3636
|
+
__exportStar(__webpack_require__(474), exports);
|
|
3552
3637
|
|
|
3553
|
-
__exportStar(__webpack_require__(
|
|
3638
|
+
__exportStar(__webpack_require__(475), exports);
|
|
3554
3639
|
|
|
3555
|
-
__exportStar(__webpack_require__(
|
|
3640
|
+
__exportStar(__webpack_require__(476), exports);
|
|
3556
3641
|
|
|
3557
3642
|
/***/ }),
|
|
3558
3643
|
|
|
3559
|
-
/***/
|
|
3644
|
+
/***/ 473:
|
|
3560
3645
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3561
3646
|
|
|
3562
3647
|
"use strict";
|
|
@@ -3579,7 +3664,7 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
3579
3664
|
|
|
3580
3665
|
/***/ }),
|
|
3581
3666
|
|
|
3582
|
-
/***/
|
|
3667
|
+
/***/ 474:
|
|
3583
3668
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3584
3669
|
|
|
3585
3670
|
"use strict";
|
|
@@ -3592,7 +3677,7 @@ exports.TextCell = void 0;
|
|
|
3592
3677
|
|
|
3593
3678
|
var React = __webpack_require__(1);
|
|
3594
3679
|
|
|
3595
|
-
var Table_1 = __webpack_require__(
|
|
3680
|
+
var Table_1 = __webpack_require__(100);
|
|
3596
3681
|
|
|
3597
3682
|
var TextCell = function TextCell(_ref) {
|
|
3598
3683
|
var cell = _ref.cell,
|
|
@@ -3615,7 +3700,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
3615
3700
|
|
|
3616
3701
|
/***/ }),
|
|
3617
3702
|
|
|
3618
|
-
/***/
|
|
3703
|
+
/***/ 475:
|
|
3619
3704
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3620
3705
|
|
|
3621
3706
|
"use strict";
|
|
@@ -3628,7 +3713,7 @@ exports.ArrayCell = void 0;
|
|
|
3628
3713
|
|
|
3629
3714
|
var React = __webpack_require__(1);
|
|
3630
3715
|
|
|
3631
|
-
var Table_1 = __webpack_require__(
|
|
3716
|
+
var Table_1 = __webpack_require__(100);
|
|
3632
3717
|
|
|
3633
3718
|
var ArrayCell = function ArrayCell(_ref) {
|
|
3634
3719
|
var cell = _ref.cell,
|
|
@@ -3657,13 +3742,13 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
3657
3742
|
|
|
3658
3743
|
/***/ }),
|
|
3659
3744
|
|
|
3660
|
-
/***/
|
|
3745
|
+
/***/ 476:
|
|
3661
3746
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3662
3747
|
|
|
3663
3748
|
"use strict";
|
|
3664
3749
|
|
|
3665
3750
|
|
|
3666
|
-
var _slicedToArray = __webpack_require__(
|
|
3751
|
+
var _slicedToArray = __webpack_require__(17);
|
|
3667
3752
|
|
|
3668
3753
|
Object.defineProperty(exports, "__esModule", {
|
|
3669
3754
|
value: true
|
|
@@ -3672,9 +3757,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
|
|
|
3672
3757
|
|
|
3673
3758
|
var React = __webpack_require__(1);
|
|
3674
3759
|
|
|
3675
|
-
var Table_1 = __webpack_require__(
|
|
3760
|
+
var Table_1 = __webpack_require__(100);
|
|
3676
3761
|
|
|
3677
|
-
var Line_1 = __webpack_require__(
|
|
3762
|
+
var Line_1 = __webpack_require__(101);
|
|
3678
3763
|
|
|
3679
3764
|
var paddingLeftRight = 5;
|
|
3680
3765
|
var paddingTopBottom = 3;
|
|
@@ -3750,14 +3835,7 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
3750
3835
|
|
|
3751
3836
|
/***/ }),
|
|
3752
3837
|
|
|
3753
|
-
/***/
|
|
3754
|
-
/***/ (function(module, exports) {
|
|
3755
|
-
|
|
3756
|
-
module.exports = require("@splunk/visualization-icons");
|
|
3757
|
-
|
|
3758
|
-
/***/ }),
|
|
3759
|
-
|
|
3760
|
-
/***/ 470:
|
|
3838
|
+
/***/ 477:
|
|
3761
3839
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3762
3840
|
|
|
3763
3841
|
"use strict";
|
|
@@ -3801,17 +3879,31 @@ exports.getColumnWidth = getColumnWidth;
|
|
|
3801
3879
|
|
|
3802
3880
|
/***/ }),
|
|
3803
3881
|
|
|
3804
|
-
/***/
|
|
3882
|
+
/***/ 478:
|
|
3805
3883
|
/***/ (function(module, exports) {
|
|
3806
3884
|
|
|
3807
3885
|
module.exports = require("lodash/debounce");
|
|
3808
3886
|
|
|
3809
3887
|
/***/ }),
|
|
3810
3888
|
|
|
3889
|
+
/***/ 48:
|
|
3890
|
+
/***/ (function(module, exports) {
|
|
3891
|
+
|
|
3892
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3893
|
+
|
|
3894
|
+
/***/ }),
|
|
3895
|
+
|
|
3896
|
+
/***/ 49:
|
|
3897
|
+
/***/ (function(module, exports) {
|
|
3898
|
+
|
|
3899
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3900
|
+
|
|
3901
|
+
/***/ }),
|
|
3902
|
+
|
|
3811
3903
|
/***/ 51:
|
|
3812
3904
|
/***/ (function(module, exports) {
|
|
3813
3905
|
|
|
3814
|
-
module.exports = require("@
|
|
3906
|
+
module.exports = require("@splunk/visualization-icons");
|
|
3815
3907
|
|
|
3816
3908
|
/***/ }),
|
|
3817
3909
|
|
|
@@ -3867,14 +3959,14 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
|
3867
3959
|
|
|
3868
3960
|
/***/ }),
|
|
3869
3961
|
|
|
3870
|
-
/***/
|
|
3962
|
+
/***/ 87:
|
|
3871
3963
|
/***/ (function(module, exports) {
|
|
3872
3964
|
|
|
3873
3965
|
module.exports = require("@babel/runtime/helpers/typeof");
|
|
3874
3966
|
|
|
3875
3967
|
/***/ }),
|
|
3876
3968
|
|
|
3877
|
-
/***/
|
|
3969
|
+
/***/ 89:
|
|
3878
3970
|
/***/ (function(module, exports) {
|
|
3879
3971
|
|
|
3880
3972
|
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
@@ -3886,20 +3978,6 @@ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
|
3886
3978
|
|
|
3887
3979
|
module.exports = require("@splunk/themes/variables");
|
|
3888
3980
|
|
|
3889
|
-
/***/ }),
|
|
3890
|
-
|
|
3891
|
-
/***/ 98:
|
|
3892
|
-
/***/ (function(module, exports) {
|
|
3893
|
-
|
|
3894
|
-
module.exports = require("@splunk/react-ui/Table");
|
|
3895
|
-
|
|
3896
|
-
/***/ }),
|
|
3897
|
-
|
|
3898
|
-
/***/ 99:
|
|
3899
|
-
/***/ (function(module, exports) {
|
|
3900
|
-
|
|
3901
|
-
module.exports = require("@splunk/react-sparkline/Line");
|
|
3902
|
-
|
|
3903
3981
|
/***/ })
|
|
3904
3982
|
|
|
3905
3983
|
/******/ });
|