@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/Rectangle.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 = 444);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -113,7 +113,7 @@ module.exports = require("@splunk/visualizations-shared/Message");
|
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 106:
|
|
117
117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
118
118
|
|
|
119
119
|
"use strict";
|
|
@@ -126,7 +126,7 @@ exports.getDynamicFillColorEditor = void 0;
|
|
|
126
126
|
|
|
127
127
|
var i18n_1 = __webpack_require__(2);
|
|
128
128
|
|
|
129
|
-
var configUtils_1 = __webpack_require__(
|
|
129
|
+
var configUtils_1 = __webpack_require__(19);
|
|
130
130
|
|
|
131
131
|
var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
|
|
132
132
|
var defaultContext = _ref.defaultContext,
|
|
@@ -169,7 +169,7 @@ exports.getDynamicFillColorEditor = getDynamicFillColorEditor;
|
|
|
169
169
|
|
|
170
170
|
/***/ }),
|
|
171
171
|
|
|
172
|
-
/***/
|
|
172
|
+
/***/ 107:
|
|
173
173
|
/***/ (function(module, exports, __webpack_require__) {
|
|
174
174
|
|
|
175
175
|
"use strict";
|
|
@@ -182,7 +182,7 @@ exports.getDynamicStrokeColorEditor = void 0;
|
|
|
182
182
|
|
|
183
183
|
var i18n_1 = __webpack_require__(2);
|
|
184
184
|
|
|
185
|
-
var configUtils_1 = __webpack_require__(
|
|
185
|
+
var configUtils_1 = __webpack_require__(19);
|
|
186
186
|
|
|
187
187
|
var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
|
|
188
188
|
var defaultContext = _ref.defaultContext,
|
|
@@ -225,7 +225,7 @@ exports.getDynamicStrokeColorEditor = getDynamicStrokeColorEditor;
|
|
|
225
225
|
|
|
226
226
|
/***/ }),
|
|
227
227
|
|
|
228
|
-
/***/
|
|
228
|
+
/***/ 108:
|
|
229
229
|
/***/ (function(module, exports, __webpack_require__) {
|
|
230
230
|
|
|
231
231
|
"use strict";
|
|
@@ -237,7 +237,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
237
237
|
|
|
238
238
|
var i18n_1 = __webpack_require__(2);
|
|
239
239
|
|
|
240
|
-
var configUtils_1 = __webpack_require__(
|
|
240
|
+
var configUtils_1 = __webpack_require__(19);
|
|
241
241
|
|
|
242
242
|
var StaticFillColorEditor = {
|
|
243
243
|
label: i18n_1._('Fill'),
|
|
@@ -252,7 +252,7 @@ exports.default = StaticFillColorEditor;
|
|
|
252
252
|
|
|
253
253
|
/***/ }),
|
|
254
254
|
|
|
255
|
-
/***/
|
|
255
|
+
/***/ 109:
|
|
256
256
|
/***/ (function(module, exports, __webpack_require__) {
|
|
257
257
|
|
|
258
258
|
"use strict";
|
|
@@ -264,7 +264,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
264
264
|
|
|
265
265
|
var i18n_1 = __webpack_require__(2);
|
|
266
266
|
|
|
267
|
-
var configUtils_1 = __webpack_require__(
|
|
267
|
+
var configUtils_1 = __webpack_require__(19);
|
|
268
268
|
|
|
269
269
|
var StaticStrokeColorEditor = {
|
|
270
270
|
label: i18n_1._('Stroke'),
|
|
@@ -279,7 +279,14 @@ exports.default = StaticStrokeColorEditor;
|
|
|
279
279
|
|
|
280
280
|
/***/ }),
|
|
281
281
|
|
|
282
|
-
/***/
|
|
282
|
+
/***/ 11:
|
|
283
|
+
/***/ (function(module, exports) {
|
|
284
|
+
|
|
285
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
286
|
+
|
|
287
|
+
/***/ }),
|
|
288
|
+
|
|
289
|
+
/***/ 110:
|
|
283
290
|
/***/ (function(module, exports, __webpack_require__) {
|
|
284
291
|
|
|
285
292
|
"use strict";
|
|
@@ -294,11 +301,11 @@ var lodash_1 = __webpack_require__(3);
|
|
|
294
301
|
|
|
295
302
|
var styled_components_1 = __webpack_require__(4);
|
|
296
303
|
|
|
297
|
-
var pick_1 = __webpack_require__(
|
|
304
|
+
var pick_1 = __webpack_require__(22);
|
|
298
305
|
|
|
299
306
|
var variables_1 = __webpack_require__(9);
|
|
300
307
|
|
|
301
|
-
var propUtils_1 = __webpack_require__(
|
|
308
|
+
var propUtils_1 = __webpack_require__(25); // map for new options names to old option names
|
|
302
309
|
|
|
303
310
|
|
|
304
311
|
var shapeOptionsMapping = {
|
|
@@ -356,13 +363,6 @@ exports.getStyledShape = getStyledShape;
|
|
|
356
363
|
|
|
357
364
|
/***/ }),
|
|
358
365
|
|
|
359
|
-
/***/ 11:
|
|
360
|
-
/***/ (function(module, exports) {
|
|
361
|
-
|
|
362
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
363
|
-
|
|
364
|
-
/***/ }),
|
|
365
|
-
|
|
366
366
|
/***/ 12:
|
|
367
367
|
/***/ (function(module, exports) {
|
|
368
368
|
|
|
@@ -384,7 +384,7 @@ var React = __webpack_require__(1);
|
|
|
384
384
|
|
|
385
385
|
var styled_components_1 = __webpack_require__(4);
|
|
386
386
|
|
|
387
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
387
|
+
var SizeAwareWrapper_1 = __webpack_require__(21);
|
|
388
388
|
|
|
389
389
|
var style_1 = __webpack_require__(15);
|
|
390
390
|
|
|
@@ -445,7 +445,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
445
445
|
|
|
446
446
|
return React.createElement(FixSizeItem, {
|
|
447
447
|
"data-test": "fix-size-item",
|
|
448
|
-
"data-splunk-visualization-version": "25.
|
|
448
|
+
"data-splunk-visualization-version": "25.6.0 - f5eb3abf9",
|
|
449
449
|
width: width,
|
|
450
450
|
height: height,
|
|
451
451
|
backgroundColor: backgroundColor
|
|
@@ -500,7 +500,14 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
500
500
|
|
|
501
501
|
/***/ }),
|
|
502
502
|
|
|
503
|
-
/***/
|
|
503
|
+
/***/ 15:
|
|
504
|
+
/***/ (function(module, exports) {
|
|
505
|
+
|
|
506
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
507
|
+
|
|
508
|
+
/***/ }),
|
|
509
|
+
|
|
510
|
+
/***/ 154:
|
|
504
511
|
/***/ (function(module, exports, __webpack_require__) {
|
|
505
512
|
|
|
506
513
|
"use strict";
|
|
@@ -532,13 +539,13 @@ var lodash_1 = __webpack_require__(3);
|
|
|
532
539
|
|
|
533
540
|
var T = __webpack_require__(0);
|
|
534
541
|
|
|
535
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
542
|
+
var withDashboardViz_1 = __webpack_require__(35);
|
|
536
543
|
|
|
537
|
-
var config_1 = __webpack_require__(
|
|
544
|
+
var config_1 = __webpack_require__(445);
|
|
538
545
|
|
|
539
546
|
exports.config = config_1.default;
|
|
540
547
|
|
|
541
|
-
var shapeUtils_1 = __webpack_require__(
|
|
548
|
+
var shapeUtils_1 = __webpack_require__(110);
|
|
542
549
|
|
|
543
550
|
var SVGContainer = styled_components_1.default.svg.withConfig({
|
|
544
551
|
displayName: "Rectangle__SVGContainer",
|
|
@@ -612,21 +619,21 @@ exports.default = Rectangle;
|
|
|
612
619
|
|
|
613
620
|
/***/ }),
|
|
614
621
|
|
|
615
|
-
/***/
|
|
622
|
+
/***/ 16:
|
|
616
623
|
/***/ (function(module, exports) {
|
|
617
624
|
|
|
618
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
625
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
619
626
|
|
|
620
627
|
/***/ }),
|
|
621
628
|
|
|
622
|
-
/***/
|
|
629
|
+
/***/ 17:
|
|
623
630
|
/***/ (function(module, exports) {
|
|
624
631
|
|
|
625
|
-
module.exports = require("@
|
|
632
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
626
633
|
|
|
627
634
|
/***/ }),
|
|
628
635
|
|
|
629
|
-
/***/
|
|
636
|
+
/***/ 18:
|
|
630
637
|
/***/ (function(module, exports, __webpack_require__) {
|
|
631
638
|
|
|
632
639
|
"use strict";
|
|
@@ -863,70 +870,84 @@ exports.insertLayout = insertLayout;
|
|
|
863
870
|
|
|
864
871
|
/***/ }),
|
|
865
872
|
|
|
866
|
-
/***/
|
|
873
|
+
/***/ 19:
|
|
867
874
|
/***/ (function(module, exports) {
|
|
868
875
|
|
|
869
876
|
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
870
877
|
|
|
871
878
|
/***/ }),
|
|
872
879
|
|
|
873
|
-
/***/
|
|
880
|
+
/***/ 2:
|
|
874
881
|
/***/ (function(module, exports) {
|
|
875
882
|
|
|
876
|
-
module.exports = require("@
|
|
883
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
877
884
|
|
|
878
885
|
/***/ }),
|
|
879
886
|
|
|
880
|
-
/***/
|
|
887
|
+
/***/ 20:
|
|
881
888
|
/***/ (function(module, exports) {
|
|
882
889
|
|
|
883
|
-
module.exports = require("@
|
|
890
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
884
891
|
|
|
885
892
|
/***/ }),
|
|
886
893
|
|
|
887
|
-
/***/
|
|
894
|
+
/***/ 21:
|
|
888
895
|
/***/ (function(module, exports) {
|
|
889
896
|
|
|
890
897
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
891
898
|
|
|
892
899
|
/***/ }),
|
|
893
900
|
|
|
894
|
-
/***/
|
|
901
|
+
/***/ 22:
|
|
895
902
|
/***/ (function(module, exports) {
|
|
896
903
|
|
|
897
904
|
module.exports = require("@splunk/themes/pick");
|
|
898
905
|
|
|
899
906
|
/***/ }),
|
|
900
907
|
|
|
901
|
-
/***/
|
|
908
|
+
/***/ 24:
|
|
902
909
|
/***/ (function(module, exports) {
|
|
903
910
|
|
|
904
911
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
905
912
|
|
|
906
913
|
/***/ }),
|
|
907
914
|
|
|
908
|
-
/***/
|
|
915
|
+
/***/ 25:
|
|
909
916
|
/***/ (function(module, exports) {
|
|
910
917
|
|
|
911
918
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
912
919
|
|
|
913
920
|
/***/ }),
|
|
914
921
|
|
|
915
|
-
/***/
|
|
922
|
+
/***/ 26:
|
|
923
|
+
/***/ (function(module, exports) {
|
|
924
|
+
|
|
925
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
926
|
+
|
|
927
|
+
/***/ }),
|
|
928
|
+
|
|
929
|
+
/***/ 27:
|
|
916
930
|
/***/ (function(module, exports) {
|
|
917
931
|
|
|
918
932
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
919
933
|
|
|
920
934
|
/***/ }),
|
|
921
935
|
|
|
922
|
-
/***/
|
|
936
|
+
/***/ 28:
|
|
923
937
|
/***/ (function(module, exports) {
|
|
924
938
|
|
|
925
939
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
926
940
|
|
|
927
941
|
/***/ }),
|
|
928
942
|
|
|
929
|
-
/***/
|
|
943
|
+
/***/ 3:
|
|
944
|
+
/***/ (function(module, exports) {
|
|
945
|
+
|
|
946
|
+
module.exports = require("lodash");
|
|
947
|
+
|
|
948
|
+
/***/ }),
|
|
949
|
+
|
|
950
|
+
/***/ 30:
|
|
930
951
|
/***/ (function(module, exports, __webpack_require__) {
|
|
931
952
|
|
|
932
953
|
"use strict";
|
|
@@ -1018,7 +1039,14 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
1018
1039
|
|
|
1019
1040
|
/***/ }),
|
|
1020
1041
|
|
|
1021
|
-
/***/
|
|
1042
|
+
/***/ 31:
|
|
1043
|
+
/***/ (function(module, exports) {
|
|
1044
|
+
|
|
1045
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
1046
|
+
|
|
1047
|
+
/***/ }),
|
|
1048
|
+
|
|
1049
|
+
/***/ 32:
|
|
1022
1050
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1023
1051
|
|
|
1024
1052
|
"use strict";
|
|
@@ -1035,7 +1063,7 @@ var T = __webpack_require__(0);
|
|
|
1035
1063
|
|
|
1036
1064
|
var lodash_1 = __webpack_require__(3);
|
|
1037
1065
|
|
|
1038
|
-
var DataSource_1 = __webpack_require__(
|
|
1066
|
+
var DataSource_1 = __webpack_require__(43);
|
|
1039
1067
|
|
|
1040
1068
|
exports.SortParamsPropTypes = T.shape({
|
|
1041
1069
|
currentSortKey: T.string,
|
|
@@ -1089,7 +1117,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1089
1117
|
|
|
1090
1118
|
/***/ }),
|
|
1091
1119
|
|
|
1092
|
-
/***/
|
|
1120
|
+
/***/ 33:
|
|
1093
1121
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1094
1122
|
|
|
1095
1123
|
"use strict";
|
|
@@ -1154,14 +1182,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1154
1182
|
|
|
1155
1183
|
/***/ }),
|
|
1156
1184
|
|
|
1157
|
-
/***/
|
|
1158
|
-
/***/ (function(module, exports) {
|
|
1159
|
-
|
|
1160
|
-
module.exports = require("lodash");
|
|
1161
|
-
|
|
1162
|
-
/***/ }),
|
|
1163
|
-
|
|
1164
|
-
/***/ 31:
|
|
1185
|
+
/***/ 34:
|
|
1165
1186
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1166
1187
|
|
|
1167
1188
|
"use strict";
|
|
@@ -1190,12 +1211,14 @@ var VizCategory;
|
|
|
1190
1211
|
|
|
1191
1212
|
/***/ }),
|
|
1192
1213
|
|
|
1193
|
-
/***/
|
|
1214
|
+
/***/ 35:
|
|
1194
1215
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1195
1216
|
|
|
1196
1217
|
"use strict";
|
|
1197
1218
|
|
|
1198
1219
|
|
|
1220
|
+
var _slicedToArray = __webpack_require__(17);
|
|
1221
|
+
|
|
1199
1222
|
Object.defineProperty(exports, "__esModule", {
|
|
1200
1223
|
value: true
|
|
1201
1224
|
});
|
|
@@ -1204,44 +1227,51 @@ var React = __webpack_require__(1);
|
|
|
1204
1227
|
|
|
1205
1228
|
var lodash_1 = __webpack_require__(3);
|
|
1206
1229
|
|
|
1207
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1230
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(36);
|
|
1231
|
+
|
|
1232
|
+
var Options_1 = __webpack_require__(37);
|
|
1208
1233
|
|
|
1209
|
-
var
|
|
1234
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
1210
1235
|
|
|
1211
|
-
var
|
|
1236
|
+
var TimezoneContext_1 = __webpack_require__(24);
|
|
1212
1237
|
|
|
1213
|
-
var
|
|
1238
|
+
var moment_1 = __webpack_require__(39);
|
|
1214
1239
|
|
|
1215
|
-
var
|
|
1240
|
+
var FeatureFlagContext_1 = __webpack_require__(26);
|
|
1216
1241
|
|
|
1217
1242
|
var styled_components_1 = __webpack_require__(4);
|
|
1218
1243
|
|
|
1219
|
-
var hocUtils_1 = __webpack_require__(
|
|
1244
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
1220
1245
|
|
|
1221
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1246
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
1222
1247
|
|
|
1223
|
-
var
|
|
1248
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
1249
|
+
|
|
1250
|
+
var id_1 = __webpack_require__(31);
|
|
1251
|
+
|
|
1252
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
1224
1253
|
|
|
1225
1254
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1226
1255
|
|
|
1227
|
-
var getSorting_1 = __webpack_require__(
|
|
1256
|
+
var getSorting_1 = __webpack_require__(32);
|
|
1228
1257
|
|
|
1229
|
-
var getPagination_1 = __webpack_require__(
|
|
1258
|
+
var getPagination_1 = __webpack_require__(33);
|
|
1230
1259
|
|
|
1231
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1260
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
1232
1261
|
|
|
1233
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1262
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
1234
1263
|
|
|
1235
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1264
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
1236
1265
|
|
|
1237
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1266
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
1267
|
+
|
|
1268
|
+
var UUID = id_1.createGUID();
|
|
1238
1269
|
/**
|
|
1239
1270
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1240
1271
|
* @param {DashboardVizOpts} opts
|
|
1241
1272
|
* @returns {HOC}
|
|
1242
1273
|
*/
|
|
1243
1274
|
|
|
1244
|
-
|
|
1245
1275
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
1246
1276
|
var ReactViz = opts.ReactViz,
|
|
1247
1277
|
vizConfig = opts.vizConfig,
|
|
@@ -1301,28 +1331,76 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1301
1331
|
|
|
1302
1332
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1303
1333
|
|
|
1334
|
+
var _React$useState = React.useState({}),
|
|
1335
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1336
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1337
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1341
|
+
|
|
1342
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1343
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1344
|
+
visualizationID = _React$useState4[0];
|
|
1345
|
+
|
|
1346
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext['visualizations.useWebWorkersForDSL'] && typeof Worker !== 'undefined')),
|
|
1347
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1348
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1349
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1350
|
+
|
|
1304
1351
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
1305
1352
|
try {
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1353
|
+
if (useAsyncEvaluatedOptions) {
|
|
1354
|
+
var optionsToEvaluate = {
|
|
1355
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1356
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1357
|
+
};
|
|
1358
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1359
|
+
visualizationID: visualizationID,
|
|
1360
|
+
props: props,
|
|
1361
|
+
options: optionsToEvaluate,
|
|
1362
|
+
dataSources: dataSources,
|
|
1363
|
+
theme: vizConfig.themes
|
|
1364
|
+
};
|
|
1365
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1366
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1367
|
+
}).catch(function (e) {
|
|
1368
|
+
// eslint-disable-next-line no-console
|
|
1369
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1370
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1371
|
+
});
|
|
1372
|
+
} else {
|
|
1373
|
+
return Options_1.Options.evaluate({
|
|
1374
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1375
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1376
|
+
}, dataSources, themeFunc);
|
|
1377
|
+
}
|
|
1310
1378
|
} catch (e) {
|
|
1311
1379
|
// eslint-disable-next-line no-console
|
|
1312
|
-
console.error("unexpected error evaluating options:
|
|
1380
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
1313
1381
|
return {};
|
|
1314
1382
|
}
|
|
1315
|
-
|
|
1383
|
+
|
|
1384
|
+
return {};
|
|
1385
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1386
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // useEffect hook needs to be initialized before any early returns
|
|
1316
1387
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1317
1388
|
|
|
1318
1389
|
React.useEffect(function () {
|
|
1319
|
-
onComputedProps(
|
|
1320
|
-
});
|
|
1390
|
+
onComputedProps(evaluatedOptionsToUse);
|
|
1391
|
+
});
|
|
1392
|
+
React.useEffect(function () {
|
|
1393
|
+
return function () {
|
|
1394
|
+
if (useAsyncEvaluatedOptions) {
|
|
1395
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1396
|
+
}
|
|
1397
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1398
|
+
}, []); // present warning message if any required props are missing
|
|
1321
1399
|
|
|
1322
1400
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1323
1401
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1324
1402
|
supports = vizConfig.supports;
|
|
1325
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1403
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1326
1404
|
|
|
1327
1405
|
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
|
|
1328
1406
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -1349,7 +1427,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1349
1427
|
|
|
1350
1428
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1351
1429
|
payloadKeys.forEach(function (p) {
|
|
1352
|
-
payload[p] =
|
|
1430
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1353
1431
|
});
|
|
1354
1432
|
}
|
|
1355
1433
|
|
|
@@ -1368,7 +1446,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1368
1446
|
} // compute pure viz props which are not from options
|
|
1369
1447
|
|
|
1370
1448
|
|
|
1371
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1449
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1372
1450
|
themeFunc: themeFunc
|
|
1373
1451
|
}));
|
|
1374
1452
|
/**
|
|
@@ -1388,7 +1466,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1388
1466
|
|
|
1389
1467
|
var dataSourceMetadata = {};
|
|
1390
1468
|
var OptionKey = 'paginateDataSourceKey';
|
|
1391
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1469
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1392
1470
|
|
|
1393
1471
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1394
1472
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1418,7 +1496,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1418
1496
|
mode: mode,
|
|
1419
1497
|
width: width,
|
|
1420
1498
|
height: height
|
|
1421
|
-
},
|
|
1499
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1422
1500
|
};
|
|
1423
1501
|
|
|
1424
1502
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -1436,35 +1514,49 @@ exports.default = withDashboardViz;
|
|
|
1436
1514
|
|
|
1437
1515
|
/***/ }),
|
|
1438
1516
|
|
|
1439
|
-
/***/
|
|
1517
|
+
/***/ 36:
|
|
1440
1518
|
/***/ (function(module, exports) {
|
|
1441
1519
|
|
|
1442
1520
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1443
1521
|
|
|
1444
1522
|
/***/ }),
|
|
1445
1523
|
|
|
1446
|
-
/***/
|
|
1524
|
+
/***/ 37:
|
|
1447
1525
|
/***/ (function(module, exports) {
|
|
1448
1526
|
|
|
1449
1527
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1450
1528
|
|
|
1451
1529
|
/***/ }),
|
|
1452
1530
|
|
|
1453
|
-
/***/
|
|
1531
|
+
/***/ 38:
|
|
1454
1532
|
/***/ (function(module, exports) {
|
|
1455
1533
|
|
|
1456
1534
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1457
1535
|
|
|
1458
1536
|
/***/ }),
|
|
1459
1537
|
|
|
1460
|
-
/***/
|
|
1538
|
+
/***/ 39:
|
|
1461
1539
|
/***/ (function(module, exports) {
|
|
1462
1540
|
|
|
1463
1541
|
module.exports = require("@splunk/moment");
|
|
1464
1542
|
|
|
1465
1543
|
/***/ }),
|
|
1466
1544
|
|
|
1467
|
-
/***/
|
|
1545
|
+
/***/ 4:
|
|
1546
|
+
/***/ (function(module, exports) {
|
|
1547
|
+
|
|
1548
|
+
module.exports = require("styled-components");
|
|
1549
|
+
|
|
1550
|
+
/***/ }),
|
|
1551
|
+
|
|
1552
|
+
/***/ 40:
|
|
1553
|
+
/***/ (function(module, exports) {
|
|
1554
|
+
|
|
1555
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1556
|
+
|
|
1557
|
+
/***/ }),
|
|
1558
|
+
|
|
1559
|
+
/***/ 41:
|
|
1468
1560
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1469
1561
|
|
|
1470
1562
|
"use strict";
|
|
@@ -1482,7 +1574,7 @@ var T = __webpack_require__(0);
|
|
|
1482
1574
|
|
|
1483
1575
|
var lodash_1 = __webpack_require__(3);
|
|
1484
1576
|
|
|
1485
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1577
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1486
1578
|
|
|
1487
1579
|
|
|
1488
1580
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1616,7 +1708,7 @@ exports.default = SplunkVisualization;
|
|
|
1616
1708
|
|
|
1617
1709
|
/***/ }),
|
|
1618
1710
|
|
|
1619
|
-
/***/
|
|
1711
|
+
/***/ 42:
|
|
1620
1712
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1621
1713
|
|
|
1622
1714
|
"use strict";
|
|
@@ -1624,7 +1716,7 @@ exports.default = SplunkVisualization;
|
|
|
1624
1716
|
|
|
1625
1717
|
var _classCallCheck = __webpack_require__(11);
|
|
1626
1718
|
|
|
1627
|
-
var _createClass = __webpack_require__(
|
|
1719
|
+
var _createClass = __webpack_require__(20);
|
|
1628
1720
|
|
|
1629
1721
|
Object.defineProperty(exports, "__esModule", {
|
|
1630
1722
|
value: true
|
|
@@ -1654,7 +1746,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1654
1746
|
|
|
1655
1747
|
/***/ }),
|
|
1656
1748
|
|
|
1657
|
-
/***/
|
|
1749
|
+
/***/ 43:
|
|
1658
1750
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1659
1751
|
|
|
1660
1752
|
"use strict";
|
|
@@ -1668,14 +1760,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1668
1760
|
|
|
1669
1761
|
/***/ }),
|
|
1670
1762
|
|
|
1671
|
-
/***/
|
|
1672
|
-
/***/ (function(module, exports) {
|
|
1673
|
-
|
|
1674
|
-
module.exports = require("styled-components");
|
|
1675
|
-
|
|
1676
|
-
/***/ }),
|
|
1677
|
-
|
|
1678
|
-
/***/ 40:
|
|
1763
|
+
/***/ 44:
|
|
1679
1764
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1680
1765
|
|
|
1681
1766
|
"use strict";
|
|
@@ -1721,282 +1806,83 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1721
1806
|
|
|
1722
1807
|
/***/ }),
|
|
1723
1808
|
|
|
1724
|
-
/***/
|
|
1809
|
+
/***/ 444:
|
|
1725
1810
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1726
1811
|
|
|
1727
1812
|
"use strict";
|
|
1728
1813
|
|
|
1729
1814
|
|
|
1815
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1816
|
+
if (k2 === undefined) k2 = k;
|
|
1817
|
+
Object.defineProperty(o, k2, {
|
|
1818
|
+
enumerable: true,
|
|
1819
|
+
get: function get() {
|
|
1820
|
+
return m[k];
|
|
1821
|
+
}
|
|
1822
|
+
});
|
|
1823
|
+
} : function (o, m, k, k2) {
|
|
1824
|
+
if (k2 === undefined) k2 = k;
|
|
1825
|
+
o[k2] = m[k];
|
|
1826
|
+
});
|
|
1827
|
+
|
|
1828
|
+
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
1829
|
+
for (var p in m) {
|
|
1830
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1831
|
+
}
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1730
1834
|
Object.defineProperty(exports, "__esModule", {
|
|
1731
1835
|
value: true
|
|
1732
1836
|
});
|
|
1733
|
-
exports.
|
|
1837
|
+
exports.default = void 0;
|
|
1734
1838
|
|
|
1735
|
-
|
|
1839
|
+
__exportStar(__webpack_require__(154), exports);
|
|
1736
1840
|
|
|
1737
|
-
var
|
|
1841
|
+
var Rectangle_1 = __webpack_require__(154);
|
|
1738
1842
|
|
|
1739
|
-
|
|
1843
|
+
Object.defineProperty(exports, "default", {
|
|
1844
|
+
enumerable: true,
|
|
1845
|
+
get: function get() {
|
|
1846
|
+
return Rectangle_1.default;
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1740
1849
|
|
|
1741
|
-
|
|
1850
|
+
/***/ }),
|
|
1742
1851
|
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
* @method isMissing
|
|
1746
|
-
* @param {any} v
|
|
1747
|
-
* @returns {boolean} true if the input value === null or undefined
|
|
1748
|
-
*/
|
|
1852
|
+
/***/ 445:
|
|
1853
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1749
1854
|
|
|
1855
|
+
"use strict";
|
|
1750
1856
|
|
|
1751
|
-
var isMissing = function isMissing(v) {
|
|
1752
|
-
return v === null || v === undefined;
|
|
1753
|
-
};
|
|
1754
1857
|
|
|
1755
|
-
exports
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
* @param {object} target
|
|
1760
|
-
* @returns {string[]} the keys of missing required props
|
|
1761
|
-
*/
|
|
1858
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1859
|
+
value: true
|
|
1860
|
+
});
|
|
1861
|
+
exports.optionsSchema = void 0;
|
|
1762
1862
|
|
|
1763
|
-
var
|
|
1764
|
-
return keys.filter(function (k) {
|
|
1765
|
-
return exports.isMissing(target[k]);
|
|
1766
|
-
});
|
|
1767
|
-
};
|
|
1863
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
1768
1864
|
|
|
1769
|
-
|
|
1770
|
-
var propTypes = {
|
|
1771
|
-
width: T.oneOfType([T.string, T.number]),
|
|
1772
|
-
height: T.oneOfType([T.string, T.number]),
|
|
1773
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
1774
|
-
backgroundColor: T.string,
|
|
1775
|
-
missingProps: T.arrayOf(T.string)
|
|
1776
|
-
};
|
|
1777
|
-
/**
|
|
1778
|
-
* @method MissingPropsMessage
|
|
1779
|
-
* @param {MissingPropsProps} props
|
|
1780
|
-
* @returns {React.ReactElement}
|
|
1781
|
-
*/
|
|
1865
|
+
var schemaUtils_1 = __webpack_require__(16);
|
|
1782
1866
|
|
|
1783
|
-
var
|
|
1784
|
-
var width = props.width,
|
|
1785
|
-
height = props.height,
|
|
1786
|
-
missingProps = props.missingProps;
|
|
1787
|
-
return React.createElement(Message_1.default, {
|
|
1788
|
-
"data-test": "message",
|
|
1789
|
-
width: width,
|
|
1790
|
-
height: height,
|
|
1791
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
1792
|
-
});
|
|
1793
|
-
};
|
|
1867
|
+
var i18n_1 = __webpack_require__(2);
|
|
1794
1868
|
|
|
1795
|
-
|
|
1796
|
-
exports.MissingPropsMessage.propTypes = propTypes;
|
|
1797
|
-
exports.MissingPropsMessage.defaultProps = {
|
|
1798
|
-
width: '100%',
|
|
1799
|
-
height: 250
|
|
1800
|
-
};
|
|
1801
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1869
|
+
var PresetPalettes_1 = __webpack_require__(57);
|
|
1802
1870
|
|
|
1803
|
-
|
|
1871
|
+
var themes_1 = __webpack_require__(72);
|
|
1804
1872
|
|
|
1805
|
-
|
|
1806
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1873
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
1807
1874
|
|
|
1808
|
-
|
|
1875
|
+
var VizCategory_1 = __webpack_require__(34);
|
|
1809
1876
|
|
|
1877
|
+
var configUtils_1 = __webpack_require__(18);
|
|
1810
1878
|
|
|
1811
|
-
|
|
1812
|
-
value: true
|
|
1813
|
-
});
|
|
1879
|
+
var DynamicFillColorEditor_1 = __webpack_require__(106);
|
|
1814
1880
|
|
|
1815
|
-
var
|
|
1881
|
+
var DynamicStrokeColorEditor_1 = __webpack_require__(107);
|
|
1816
1882
|
|
|
1817
|
-
var
|
|
1883
|
+
var StaticFillColorEditor_1 = __webpack_require__(108);
|
|
1818
1884
|
|
|
1819
|
-
var
|
|
1820
|
-
|
|
1821
|
-
var Cover = styled_components_1.default.div.withConfig({
|
|
1822
|
-
displayName: "withEditModeCover__Cover",
|
|
1823
|
-
componentId: "sc-1gsbnxb-0"
|
|
1824
|
-
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1825
|
-
var Blocker = styled_components_1.default.div.attrs({
|
|
1826
|
-
'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
|
|
1827
|
-
}).withConfig({
|
|
1828
|
-
displayName: "withEditModeCover__Blocker",
|
|
1829
|
-
componentId: "sc-1gsbnxb-1"
|
|
1830
|
-
})(["position:relative;width:100%;height:100%;"]);
|
|
1831
|
-
/**
|
|
1832
|
-
* HOC that renders a cover layer in edit mode
|
|
1833
|
-
* @method withEditModeCover
|
|
1834
|
-
* @param {ExtendedDashViz} Visualization
|
|
1835
|
-
* @returns {ExtendedDashViz} Wrapper
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
1839
|
-
var Wrapper = function Wrapper(props) {
|
|
1840
|
-
var mode = props.mode;
|
|
1841
|
-
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
1842
|
-
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
1843
|
-
"data-test": "edit-mode-cover"
|
|
1844
|
-
}));
|
|
1845
|
-
};
|
|
1846
|
-
|
|
1847
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1848
|
-
Wrapper: Wrapper,
|
|
1849
|
-
Visualization: Visualization
|
|
1850
|
-
});
|
|
1851
|
-
return Wrapper;
|
|
1852
|
-
};
|
|
1853
|
-
|
|
1854
|
-
exports.default = withEditModeCover;
|
|
1855
|
-
|
|
1856
|
-
/***/ }),
|
|
1857
|
-
|
|
1858
|
-
/***/ 43:
|
|
1859
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1860
|
-
|
|
1861
|
-
"use strict";
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1865
|
-
value: true
|
|
1866
|
-
});
|
|
1867
|
-
|
|
1868
|
-
var React = __webpack_require__(1);
|
|
1869
|
-
|
|
1870
|
-
var colorUtils_1 = __webpack_require__(12);
|
|
1871
|
-
|
|
1872
|
-
var variables_1 = __webpack_require__(9);
|
|
1873
|
-
|
|
1874
|
-
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1875
|
-
|
|
1876
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1877
|
-
|
|
1878
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
1879
|
-
|
|
1880
|
-
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1881
|
-
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
1882
|
-
var config = Visualization.config;
|
|
1883
|
-
var themes = config.themes;
|
|
1884
|
-
|
|
1885
|
-
var Wrapper = function Wrapper(props) {
|
|
1886
|
-
var _a, _b;
|
|
1887
|
-
|
|
1888
|
-
var dataSources = props.dataSources,
|
|
1889
|
-
loading = props.loading,
|
|
1890
|
-
options = props.options,
|
|
1891
|
-
height = props.height,
|
|
1892
|
-
width = props.width;
|
|
1893
|
-
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1894
|
-
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);
|
|
1895
|
-
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
1896
|
-
var iconColor = variables_1.default.contentColorActive(props);
|
|
1897
|
-
|
|
1898
|
-
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
1899
|
-
return React.createElement(IconPlaceholder_1.default, {
|
|
1900
|
-
"data-test": "icon-placeholder",
|
|
1901
|
-
icon: icon,
|
|
1902
|
-
width: width,
|
|
1903
|
-
height: height,
|
|
1904
|
-
backgroundColor: bgColorFromTheme,
|
|
1905
|
-
iconColor: iconColor
|
|
1906
|
-
});
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
return React.createElement(Visualization, Object.assign({}, props));
|
|
1910
|
-
};
|
|
1911
|
-
|
|
1912
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1913
|
-
Wrapper: Wrapper,
|
|
1914
|
-
Visualization: Visualization
|
|
1915
|
-
});
|
|
1916
|
-
return Wrapper;
|
|
1917
|
-
};
|
|
1918
|
-
|
|
1919
|
-
exports.default = withPlaceholder;
|
|
1920
|
-
|
|
1921
|
-
/***/ }),
|
|
1922
|
-
|
|
1923
|
-
/***/ 436:
|
|
1924
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1925
|
-
|
|
1926
|
-
"use strict";
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1930
|
-
if (k2 === undefined) k2 = k;
|
|
1931
|
-
Object.defineProperty(o, k2, {
|
|
1932
|
-
enumerable: true,
|
|
1933
|
-
get: function get() {
|
|
1934
|
-
return m[k];
|
|
1935
|
-
}
|
|
1936
|
-
});
|
|
1937
|
-
} : function (o, m, k, k2) {
|
|
1938
|
-
if (k2 === undefined) k2 = k;
|
|
1939
|
-
o[k2] = m[k];
|
|
1940
|
-
});
|
|
1941
|
-
|
|
1942
|
-
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
1943
|
-
for (var p in m) {
|
|
1944
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1945
|
-
}
|
|
1946
|
-
};
|
|
1947
|
-
|
|
1948
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1949
|
-
value: true
|
|
1950
|
-
});
|
|
1951
|
-
exports.default = void 0;
|
|
1952
|
-
|
|
1953
|
-
__exportStar(__webpack_require__(148), exports);
|
|
1954
|
-
|
|
1955
|
-
var Rectangle_1 = __webpack_require__(148);
|
|
1956
|
-
|
|
1957
|
-
Object.defineProperty(exports, "default", {
|
|
1958
|
-
enumerable: true,
|
|
1959
|
-
get: function get() {
|
|
1960
|
-
return Rectangle_1.default;
|
|
1961
|
-
}
|
|
1962
|
-
});
|
|
1963
|
-
|
|
1964
|
-
/***/ }),
|
|
1965
|
-
|
|
1966
|
-
/***/ 437:
|
|
1967
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1968
|
-
|
|
1969
|
-
"use strict";
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1973
|
-
value: true
|
|
1974
|
-
});
|
|
1975
|
-
exports.optionsSchema = void 0;
|
|
1976
|
-
|
|
1977
|
-
var visualization_icons_1 = __webpack_require__(47);
|
|
1978
|
-
|
|
1979
|
-
var schemaUtils_1 = __webpack_require__(16);
|
|
1980
|
-
|
|
1981
|
-
var i18n_1 = __webpack_require__(2);
|
|
1982
|
-
|
|
1983
|
-
var PresetPalettes_1 = __webpack_require__(54);
|
|
1984
|
-
|
|
1985
|
-
var themes_1 = __webpack_require__(69);
|
|
1986
|
-
|
|
1987
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
1988
|
-
|
|
1989
|
-
var VizCategory_1 = __webpack_require__(31);
|
|
1990
|
-
|
|
1991
|
-
var configUtils_1 = __webpack_require__(17);
|
|
1992
|
-
|
|
1993
|
-
var DynamicFillColorEditor_1 = __webpack_require__(104);
|
|
1994
|
-
|
|
1995
|
-
var DynamicStrokeColorEditor_1 = __webpack_require__(105);
|
|
1996
|
-
|
|
1997
|
-
var StaticFillColorEditor_1 = __webpack_require__(106);
|
|
1998
|
-
|
|
1999
|
-
var StaticStrokeColorEditor_1 = __webpack_require__(107);
|
|
1885
|
+
var StaticStrokeColorEditor_1 = __webpack_require__(109);
|
|
2000
1886
|
|
|
2001
1887
|
var dataContract = {
|
|
2002
1888
|
requiredDataSources: [],
|
|
@@ -2309,14 +2195,213 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2309
2195
|
|
|
2310
2196
|
/***/ }),
|
|
2311
2197
|
|
|
2198
|
+
/***/ 45:
|
|
2199
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2200
|
+
|
|
2201
|
+
"use strict";
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2205
|
+
value: true
|
|
2206
|
+
});
|
|
2207
|
+
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
2208
|
+
|
|
2209
|
+
var React = __webpack_require__(1);
|
|
2210
|
+
|
|
2211
|
+
var T = __webpack_require__(0);
|
|
2212
|
+
|
|
2213
|
+
var i18n_1 = __webpack_require__(2);
|
|
2214
|
+
|
|
2215
|
+
var Message_1 = __webpack_require__(10);
|
|
2216
|
+
|
|
2217
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
2218
|
+
/**
|
|
2219
|
+
* @method isMissing
|
|
2220
|
+
* @param {any} v
|
|
2221
|
+
* @returns {boolean} true if the input value === null or undefined
|
|
2222
|
+
*/
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
var isMissing = function isMissing(v) {
|
|
2226
|
+
return v === null || v === undefined;
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
exports.isMissing = isMissing;
|
|
2230
|
+
/**
|
|
2231
|
+
* @method misskingKeys
|
|
2232
|
+
* @param {string[]} keys
|
|
2233
|
+
* @param {object} target
|
|
2234
|
+
* @returns {string[]} the keys of missing required props
|
|
2235
|
+
*/
|
|
2236
|
+
|
|
2237
|
+
var missingKeys = function missingKeys(keys, target) {
|
|
2238
|
+
return keys.filter(function (k) {
|
|
2239
|
+
return exports.isMissing(target[k]);
|
|
2240
|
+
});
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
exports.missingKeys = missingKeys;
|
|
2244
|
+
var propTypes = {
|
|
2245
|
+
width: T.oneOfType([T.string, T.number]),
|
|
2246
|
+
height: T.oneOfType([T.string, T.number]),
|
|
2247
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
2248
|
+
backgroundColor: T.string,
|
|
2249
|
+
missingProps: T.arrayOf(T.string)
|
|
2250
|
+
};
|
|
2251
|
+
/**
|
|
2252
|
+
* @method MissingPropsMessage
|
|
2253
|
+
* @param {MissingPropsProps} props
|
|
2254
|
+
* @returns {React.ReactElement}
|
|
2255
|
+
*/
|
|
2256
|
+
|
|
2257
|
+
var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
2258
|
+
var width = props.width,
|
|
2259
|
+
height = props.height,
|
|
2260
|
+
missingProps = props.missingProps;
|
|
2261
|
+
return React.createElement(Message_1.default, {
|
|
2262
|
+
"data-test": "message",
|
|
2263
|
+
width: width,
|
|
2264
|
+
height: height,
|
|
2265
|
+
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
2266
|
+
});
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
exports.MissingPropsMessage = MissingPropsMessage;
|
|
2270
|
+
exports.MissingPropsMessage.propTypes = propTypes;
|
|
2271
|
+
exports.MissingPropsMessage.defaultProps = {
|
|
2272
|
+
width: '100%',
|
|
2273
|
+
height: 250
|
|
2274
|
+
};
|
|
2275
|
+
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
2276
|
+
|
|
2277
|
+
/***/ }),
|
|
2278
|
+
|
|
2279
|
+
/***/ 46:
|
|
2280
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2281
|
+
|
|
2282
|
+
"use strict";
|
|
2283
|
+
|
|
2284
|
+
|
|
2285
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2286
|
+
value: true
|
|
2287
|
+
});
|
|
2288
|
+
|
|
2289
|
+
var React = __webpack_require__(1);
|
|
2290
|
+
|
|
2291
|
+
var styled_components_1 = __webpack_require__(4);
|
|
2292
|
+
|
|
2293
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
2294
|
+
|
|
2295
|
+
var Cover = styled_components_1.default.div.withConfig({
|
|
2296
|
+
displayName: "withEditModeCover__Cover",
|
|
2297
|
+
componentId: "sc-1gsbnxb-0"
|
|
2298
|
+
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2299
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
2300
|
+
'data-splunk-visualization-version': "25.6.0 - f5eb3abf9"
|
|
2301
|
+
}).withConfig({
|
|
2302
|
+
displayName: "withEditModeCover__Blocker",
|
|
2303
|
+
componentId: "sc-1gsbnxb-1"
|
|
2304
|
+
})(["position:relative;width:100%;height:100%;"]);
|
|
2305
|
+
/**
|
|
2306
|
+
* HOC that renders a cover layer in edit mode
|
|
2307
|
+
* @method withEditModeCover
|
|
2308
|
+
* @param {ExtendedDashViz} Visualization
|
|
2309
|
+
* @returns {ExtendedDashViz} Wrapper
|
|
2310
|
+
*/
|
|
2311
|
+
|
|
2312
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
2313
|
+
var Wrapper = function Wrapper(props) {
|
|
2314
|
+
var mode = props.mode;
|
|
2315
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
2316
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
2317
|
+
"data-test": "edit-mode-cover"
|
|
2318
|
+
}));
|
|
2319
|
+
};
|
|
2320
|
+
|
|
2321
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
2322
|
+
Wrapper: Wrapper,
|
|
2323
|
+
Visualization: Visualization
|
|
2324
|
+
});
|
|
2325
|
+
return Wrapper;
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
exports.default = withEditModeCover;
|
|
2329
|
+
|
|
2330
|
+
/***/ }),
|
|
2331
|
+
|
|
2312
2332
|
/***/ 47:
|
|
2333
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2334
|
+
|
|
2335
|
+
"use strict";
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2339
|
+
value: true
|
|
2340
|
+
});
|
|
2341
|
+
|
|
2342
|
+
var React = __webpack_require__(1);
|
|
2343
|
+
|
|
2344
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
2345
|
+
|
|
2346
|
+
var variables_1 = __webpack_require__(9);
|
|
2347
|
+
|
|
2348
|
+
var IconPlaceholder_1 = __webpack_require__(30);
|
|
2349
|
+
|
|
2350
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
2351
|
+
|
|
2352
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
2353
|
+
|
|
2354
|
+
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2355
|
+
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
2356
|
+
var config = Visualization.config;
|
|
2357
|
+
var themes = config.themes;
|
|
2358
|
+
|
|
2359
|
+
var Wrapper = function Wrapper(props) {
|
|
2360
|
+
var _a, _b;
|
|
2361
|
+
|
|
2362
|
+
var dataSources = props.dataSources,
|
|
2363
|
+
loading = props.loading,
|
|
2364
|
+
options = props.options,
|
|
2365
|
+
height = props.height,
|
|
2366
|
+
width = props.width;
|
|
2367
|
+
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
2368
|
+
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);
|
|
2369
|
+
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
2370
|
+
var iconColor = variables_1.default.contentColorActive(props);
|
|
2371
|
+
|
|
2372
|
+
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
2373
|
+
return React.createElement(IconPlaceholder_1.default, {
|
|
2374
|
+
"data-test": "icon-placeholder",
|
|
2375
|
+
icon: icon,
|
|
2376
|
+
width: width,
|
|
2377
|
+
height: height,
|
|
2378
|
+
backgroundColor: bgColorFromTheme,
|
|
2379
|
+
iconColor: iconColor
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
return React.createElement(Visualization, Object.assign({}, props));
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2386
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
2387
|
+
Wrapper: Wrapper,
|
|
2388
|
+
Visualization: Visualization
|
|
2389
|
+
});
|
|
2390
|
+
return Wrapper;
|
|
2391
|
+
};
|
|
2392
|
+
|
|
2393
|
+
exports.default = withPlaceholder;
|
|
2394
|
+
|
|
2395
|
+
/***/ }),
|
|
2396
|
+
|
|
2397
|
+
/***/ 51:
|
|
2313
2398
|
/***/ (function(module, exports) {
|
|
2314
2399
|
|
|
2315
2400
|
module.exports = require("@splunk/visualization-icons");
|
|
2316
2401
|
|
|
2317
2402
|
/***/ }),
|
|
2318
2403
|
|
|
2319
|
-
/***/
|
|
2404
|
+
/***/ 57:
|
|
2320
2405
|
/***/ (function(module, exports) {
|
|
2321
2406
|
|
|
2322
2407
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
@@ -2361,17 +2446,17 @@ var VizBehavior;
|
|
|
2361
2446
|
|
|
2362
2447
|
/***/ }),
|
|
2363
2448
|
|
|
2364
|
-
/***/
|
|
2449
|
+
/***/ 7:
|
|
2365
2450
|
/***/ (function(module, exports) {
|
|
2366
2451
|
|
|
2367
|
-
module.exports = require("@
|
|
2452
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
2368
2453
|
|
|
2369
2454
|
/***/ }),
|
|
2370
2455
|
|
|
2371
|
-
/***/
|
|
2456
|
+
/***/ 72:
|
|
2372
2457
|
/***/ (function(module, exports) {
|
|
2373
2458
|
|
|
2374
|
-
module.exports = require("@
|
|
2459
|
+
module.exports = require("@splunk/themes");
|
|
2375
2460
|
|
|
2376
2461
|
/***/ }),
|
|
2377
2462
|
|