@splunk/visualizations 26.2.1 → 26.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area.config.js +91 -594
- package/Area.config.js.map +1 -1
- package/Area.js +184 -689
- package/Area.js.map +1 -1
- package/Bar.config.js +92 -561
- package/Bar.config.js.map +1 -1
- package/Bar.js +184 -655
- package/Bar.js.map +1 -1
- package/Bubble.config.js +83 -482
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +177 -578
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +76 -201
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +170 -300
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +92 -599
- package/Column.config.js.map +1 -1
- package/Column.js +184 -693
- package/Column.js.map +1 -1
- package/Ellipse.config.js +82 -200
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +137 -262
- package/Ellipse.js.map +1 -1
- package/Events.config.js +61 -282
- package/Events.config.js.map +1 -1
- package/Events.js +222 -428
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +90 -219
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +163 -299
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +61 -157
- package/Image.config.js.map +1 -1
- package/Image.js +130 -242
- package/Image.js.map +1 -1
- package/Line.config.js +91 -606
- package/Line.config.js.map +1 -1
- package/Line.js +184 -701
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +74 -256
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +545 -729
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +128 -1123
- package/Map.config.js.map +1 -1
- package/Map.js +309 -680
- package/Map.js.map +1 -1
- package/Markdown.config.js +61 -188
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +190 -323
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +137 -297
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1038 -1203
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +71 -191
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +218 -343
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +72 -240
- package/Pie.config.js.map +1 -1
- package/Pie.js +214 -381
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +71 -305
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +246 -477
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +211 -347
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +274 -416
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +71 -213
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +246 -382
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +85 -463
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +825 -1202
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +114 -409
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +287 -582
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +30 -30
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +113 -378
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +268 -533
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +110 -382
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +272 -543
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +24 -24
- package/SparkLine.js.map +1 -1
- package/Table.config.js +74 -496
- package/Table.config.js.map +1 -1
- package/Table.js +302 -720
- package/Table.js.map +1 -1
- package/common/Charting.js +22 -34
- package/common/Charting.js.map +1 -1
- package/common/DocExampleWithVizSandbox.js +21 -21
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +4 -4
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +4 -4
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +39 -40
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +2 -2
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +2 -2
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +10 -10
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +10 -10
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +25 -155
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +75 -87
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/featureFlagUtils.js +4 -4
- package/common/utils/featureFlagUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/mapUtils.js +51 -54
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +7 -7
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +7 -36
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +7 -6
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +65 -77
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +46 -49
- package/common/utils/layoutUtils.js +0 -115
- package/common/utils/layoutUtils.js.map +0 -1
package/Events.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 = 221);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -123,6 +123,18 @@ module.exports = require("styled-components");
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
/* 5 */,
|
|
125
125
|
/* 6 */
|
|
126
|
+
/***/ (function(module, exports) {
|
|
127
|
+
|
|
128
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
129
|
+
|
|
130
|
+
/***/ }),
|
|
131
|
+
/* 7 */
|
|
132
|
+
/***/ (function(module, exports) {
|
|
133
|
+
|
|
134
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
135
|
+
|
|
136
|
+
/***/ }),
|
|
137
|
+
/* 8 */
|
|
126
138
|
/***/ (function(module, exports, __webpack_require__) {
|
|
127
139
|
|
|
128
140
|
"use strict";
|
|
@@ -160,29 +172,17 @@ var VizBehavior;
|
|
|
160
172
|
VizBehavior["TRELLIS"] = "trellis";
|
|
161
173
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
162
174
|
|
|
163
|
-
/***/ }),
|
|
164
|
-
/* 7 */
|
|
165
|
-
/***/ (function(module, exports) {
|
|
166
|
-
|
|
167
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
168
|
-
|
|
169
|
-
/***/ }),
|
|
170
|
-
/* 8 */
|
|
171
|
-
/***/ (function(module, exports) {
|
|
172
|
-
|
|
173
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
174
|
-
|
|
175
175
|
/***/ }),
|
|
176
176
|
/* 9 */
|
|
177
177
|
/***/ (function(module, exports) {
|
|
178
178
|
|
|
179
|
-
module.exports = require("@babel/runtime/helpers/
|
|
179
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
180
180
|
|
|
181
181
|
/***/ }),
|
|
182
182
|
/* 10 */
|
|
183
183
|
/***/ (function(module, exports) {
|
|
184
184
|
|
|
185
|
-
module.exports = require("@
|
|
185
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
186
186
|
|
|
187
187
|
/***/ }),
|
|
188
188
|
/* 11 */
|
|
@@ -200,10 +200,16 @@ module.exports = require("@splunk/visualizations-shared/Message");
|
|
|
200
200
|
/* 13 */
|
|
201
201
|
/***/ (function(module, exports) {
|
|
202
202
|
|
|
203
|
-
module.exports = require("@
|
|
203
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
204
204
|
|
|
205
205
|
/***/ }),
|
|
206
206
|
/* 14 */
|
|
207
|
+
/***/ (function(module, exports) {
|
|
208
|
+
|
|
209
|
+
module.exports = require("@splunk/themes/variables");
|
|
210
|
+
|
|
211
|
+
/***/ }),
|
|
212
|
+
/* 15 */
|
|
207
213
|
/***/ (function(module, exports, __webpack_require__) {
|
|
208
214
|
|
|
209
215
|
"use strict";
|
|
@@ -500,6 +506,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
500
506
|
});
|
|
501
507
|
}
|
|
502
508
|
} catch (e) {
|
|
509
|
+
// eslint-disable-next-line no-console
|
|
503
510
|
console.error('Error occurred while setting downsample threshold on range select event', e);
|
|
504
511
|
}
|
|
505
512
|
|
|
@@ -666,6 +673,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
666
673
|
return downsampledIndices.add(downsampleIndex);
|
|
667
674
|
});
|
|
668
675
|
} catch (e) {
|
|
676
|
+
// eslint-disable-next-line no-console
|
|
669
677
|
console.error("Error occurred while downsampling column ".concat(columnIndex), e);
|
|
670
678
|
}
|
|
671
679
|
}); // update data columns with downsampled columns
|
|
@@ -677,25 +685,25 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
677
685
|
exports.downsampleDataSources = downsampleDataSources;
|
|
678
686
|
|
|
679
687
|
/***/ }),
|
|
680
|
-
/*
|
|
688
|
+
/* 16 */
|
|
681
689
|
/***/ (function(module, exports) {
|
|
682
690
|
|
|
683
691
|
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
684
692
|
|
|
685
693
|
/***/ }),
|
|
686
|
-
/*
|
|
694
|
+
/* 17 */
|
|
687
695
|
/***/ (function(module, exports) {
|
|
688
696
|
|
|
689
697
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
690
698
|
|
|
691
699
|
/***/ }),
|
|
692
|
-
/*
|
|
700
|
+
/* 18 */
|
|
693
701
|
/***/ (function(module, exports, __webpack_require__) {
|
|
694
702
|
|
|
695
703
|
"use strict";
|
|
696
704
|
|
|
697
705
|
|
|
698
|
-
var _slicedToArray = __webpack_require__(
|
|
706
|
+
var _slicedToArray = __webpack_require__(6);
|
|
699
707
|
|
|
700
708
|
Object.defineProperty(exports, "__esModule", {
|
|
701
709
|
value: true
|
|
@@ -705,9 +713,9 @@ var React = __webpack_require__(0);
|
|
|
705
713
|
|
|
706
714
|
var styled_components_1 = __webpack_require__(4);
|
|
707
715
|
|
|
708
|
-
var style_1 = __webpack_require__(
|
|
716
|
+
var style_1 = __webpack_require__(19);
|
|
709
717
|
|
|
710
|
-
var colorUtils_1 = __webpack_require__(
|
|
718
|
+
var colorUtils_1 = __webpack_require__(16);
|
|
711
719
|
|
|
712
720
|
var SizeAwareWrapper_1 = __webpack_require__(26);
|
|
713
721
|
|
|
@@ -780,7 +788,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
780
788
|
|
|
781
789
|
return React.createElement(FixSizeItem, {
|
|
782
790
|
"data-test": "fix-size-item",
|
|
783
|
-
"data-splunk-visualization-version": "26.
|
|
791
|
+
"data-splunk-visualization-version": "26.3.0 - a1ef240a6",
|
|
784
792
|
width: width,
|
|
785
793
|
height: height,
|
|
786
794
|
backgroundColor: backgroundColor
|
|
@@ -801,13 +809,14 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
801
809
|
exports.default = withFixedSizeContainer;
|
|
802
810
|
|
|
803
811
|
/***/ }),
|
|
804
|
-
/*
|
|
812
|
+
/* 19 */
|
|
805
813
|
/***/ (function(module, exports) {
|
|
806
814
|
|
|
807
815
|
module.exports = require("@splunk/visualizations-shared/style");
|
|
808
816
|
|
|
809
817
|
/***/ }),
|
|
810
|
-
/*
|
|
818
|
+
/* 20 */,
|
|
819
|
+
/* 21 */
|
|
811
820
|
/***/ (function(module, exports, __webpack_require__) {
|
|
812
821
|
|
|
813
822
|
"use strict";
|
|
@@ -816,20 +825,18 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
816
825
|
Object.defineProperty(exports, "__esModule", {
|
|
817
826
|
value: true
|
|
818
827
|
});
|
|
819
|
-
exports.validOutputModes = exports.
|
|
828
|
+
exports.validOutputModes = exports.validSortDirs = void 0;
|
|
820
829
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
821
|
-
exports.validSegmentationModes = ['none', 'inner'];
|
|
822
830
|
exports.validOutputModes = ['json_cols', 'json'];
|
|
823
831
|
|
|
824
832
|
/***/ }),
|
|
825
|
-
/*
|
|
826
|
-
/* 21 */
|
|
833
|
+
/* 22 */
|
|
827
834
|
/***/ (function(module, exports, __webpack_require__) {
|
|
828
835
|
|
|
829
836
|
"use strict";
|
|
830
837
|
|
|
831
838
|
|
|
832
|
-
var _classCallCheck = __webpack_require__(
|
|
839
|
+
var _classCallCheck = __webpack_require__(9);
|
|
833
840
|
|
|
834
841
|
var _createClass = __webpack_require__(25);
|
|
835
842
|
|
|
@@ -860,7 +867,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
860
867
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
861
868
|
|
|
862
869
|
/***/ }),
|
|
863
|
-
/*
|
|
870
|
+
/* 23 */
|
|
864
871
|
/***/ (function(module, exports, __webpack_require__) {
|
|
865
872
|
|
|
866
873
|
"use strict";
|
|
@@ -888,7 +895,7 @@ var VizCategory;
|
|
|
888
895
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
889
896
|
|
|
890
897
|
/***/ }),
|
|
891
|
-
/*
|
|
898
|
+
/* 24 */
|
|
892
899
|
/***/ (function(module, exports, __webpack_require__) {
|
|
893
900
|
|
|
894
901
|
"use strict";
|
|
@@ -919,12 +926,6 @@ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
|
919
926
|
|
|
920
927
|
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
921
928
|
|
|
922
|
-
/***/ }),
|
|
923
|
-
/* 24 */
|
|
924
|
-
/***/ (function(module, exports) {
|
|
925
|
-
|
|
926
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
927
|
-
|
|
928
929
|
/***/ }),
|
|
929
930
|
/* 25 */
|
|
930
931
|
/***/ (function(module, exports) {
|
|
@@ -944,99 +945,24 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
|
944
945
|
"use strict";
|
|
945
946
|
|
|
946
947
|
|
|
947
|
-
var _toConsumableArray = __webpack_require__(
|
|
948
|
-
|
|
949
|
-
var _defineProperty = __webpack_require__(9);
|
|
950
|
-
|
|
951
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
952
|
-
var t = {};
|
|
953
|
-
|
|
954
|
-
for (var p in s) {
|
|
955
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
959
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
960
|
-
}
|
|
961
|
-
return t;
|
|
962
|
-
};
|
|
948
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
963
949
|
|
|
964
950
|
Object.defineProperty(exports, "__esModule", {
|
|
965
951
|
value: true
|
|
966
952
|
});
|
|
967
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.
|
|
953
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
968
954
|
|
|
969
|
-
var lodash_1 = __webpack_require__(3);
|
|
955
|
+
var lodash_1 = __webpack_require__(3); // included for backwards compatibility
|
|
970
956
|
|
|
971
|
-
var schemaUtils_1 = __webpack_require__(24);
|
|
972
957
|
|
|
973
|
-
var
|
|
958
|
+
var visualization_schemas_1 = __webpack_require__(10);
|
|
974
959
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
* @param optionsSchema a visualization's options schema
|
|
982
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
983
|
-
*/
|
|
984
|
-
|
|
985
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
986
|
-
var enhancedOptionsSchema = {};
|
|
987
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
988
|
-
var _a = optionsSchema[key],
|
|
989
|
-
title = _a.title,
|
|
990
|
-
description = _a.description,
|
|
991
|
-
readOnly = _a.readOnly,
|
|
992
|
-
writeOnly = _a.writeOnly,
|
|
993
|
-
examples = _a.examples,
|
|
994
|
-
defaultValue = _a.default,
|
|
995
|
-
type = _a.type,
|
|
996
|
-
properties = _a.properties,
|
|
997
|
-
patternProperties = _a.patternProperties,
|
|
998
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
999
|
-
|
|
1000
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
1001
|
-
title: title
|
|
1002
|
-
}), description !== undefined && {
|
|
1003
|
-
description: description
|
|
1004
|
-
}), readOnly !== undefined && {
|
|
1005
|
-
readOnly: readOnly
|
|
1006
|
-
}), writeOnly !== undefined && {
|
|
1007
|
-
writeOnly: writeOnly
|
|
1008
|
-
}), examples !== undefined && {
|
|
1009
|
-
examples: examples
|
|
1010
|
-
}), defaultValue !== undefined && {
|
|
1011
|
-
default: defaultValue
|
|
1012
|
-
});
|
|
1013
|
-
|
|
1014
|
-
if (type === 'object') {
|
|
1015
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
1016
|
-
type: type
|
|
1017
|
-
}), properties && {
|
|
1018
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
1019
|
-
});
|
|
1020
|
-
|
|
1021
|
-
if (patternProperties) {
|
|
1022
|
-
var enhancedPatternProperties = {};
|
|
1023
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
1024
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
1025
|
-
});
|
|
1026
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
1027
|
-
}
|
|
1028
|
-
} else {
|
|
1029
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
1030
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
1031
|
-
type: type
|
|
1032
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
return enhancedOptionsSchema;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
960
|
+
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
961
|
+
enumerable: true,
|
|
962
|
+
get: function get() {
|
|
963
|
+
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
964
|
+
}
|
|
965
|
+
});
|
|
1040
966
|
/**
|
|
1041
967
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
1042
968
|
* this function also collapse all editor panels
|
|
@@ -1047,11 +973,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
1047
973
|
|
|
1048
974
|
function enhanceConfig(vizConfig) {
|
|
1049
975
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
1050
|
-
|
|
1051
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
1052
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
976
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
1056
977
|
return Object.assign(Object.assign({}, config), {
|
|
1057
978
|
open: config.open || false
|
|
@@ -1256,7 +1177,7 @@ var i18n_1 = __webpack_require__(2);
|
|
|
1256
1177
|
|
|
1257
1178
|
var Message_1 = __webpack_require__(12);
|
|
1258
1179
|
|
|
1259
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1180
|
+
var FixedSizeContainer_1 = __webpack_require__(18);
|
|
1260
1181
|
/**
|
|
1261
1182
|
* @method shouldShowIconPlaceholder
|
|
1262
1183
|
* @param {object} dataSources
|
|
@@ -1333,7 +1254,7 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
1333
1254
|
"use strict";
|
|
1334
1255
|
|
|
1335
1256
|
|
|
1336
|
-
var _defineProperty = __webpack_require__(
|
|
1257
|
+
var _defineProperty = __webpack_require__(13);
|
|
1337
1258
|
|
|
1338
1259
|
Object.defineProperty(exports, "__esModule", {
|
|
1339
1260
|
value: true
|
|
@@ -1344,7 +1265,7 @@ var T = __webpack_require__(1);
|
|
|
1344
1265
|
|
|
1345
1266
|
var lodash_1 = __webpack_require__(3);
|
|
1346
1267
|
|
|
1347
|
-
var DataSource_1 = __webpack_require__(
|
|
1268
|
+
var DataSource_1 = __webpack_require__(21);
|
|
1348
1269
|
|
|
1349
1270
|
exports.SortParamsPropTypes = T.shape({
|
|
1350
1271
|
currentSortKey: T.string,
|
|
@@ -1500,7 +1421,7 @@ __exportStar(__webpack_require__(41), exports);
|
|
|
1500
1421
|
|
|
1501
1422
|
__exportStar(__webpack_require__(42), exports);
|
|
1502
1423
|
|
|
1503
|
-
__exportStar(__webpack_require__(
|
|
1424
|
+
__exportStar(__webpack_require__(21), exports);
|
|
1504
1425
|
|
|
1505
1426
|
__exportStar(__webpack_require__(43), exports);
|
|
1506
1427
|
|
|
@@ -1514,13 +1435,13 @@ __exportStar(__webpack_require__(47), exports);
|
|
|
1514
1435
|
|
|
1515
1436
|
__exportStar(__webpack_require__(48), exports);
|
|
1516
1437
|
|
|
1517
|
-
__exportStar(__webpack_require__(
|
|
1438
|
+
__exportStar(__webpack_require__(22), exports);
|
|
1518
1439
|
|
|
1519
|
-
__exportStar(__webpack_require__(
|
|
1440
|
+
__exportStar(__webpack_require__(8), exports);
|
|
1520
1441
|
|
|
1521
|
-
__exportStar(__webpack_require__(
|
|
1442
|
+
__exportStar(__webpack_require__(23), exports);
|
|
1522
1443
|
|
|
1523
|
-
__exportStar(__webpack_require__(
|
|
1444
|
+
__exportStar(__webpack_require__(49), exports);
|
|
1524
1445
|
|
|
1525
1446
|
__exportStar(__webpack_require__(50), exports);
|
|
1526
1447
|
|
|
@@ -1532,8 +1453,6 @@ __exportStar(__webpack_require__(53), exports);
|
|
|
1532
1453
|
|
|
1533
1454
|
__exportStar(__webpack_require__(54), exports);
|
|
1534
1455
|
|
|
1535
|
-
__exportStar(__webpack_require__(55), exports);
|
|
1536
|
-
|
|
1537
1456
|
/***/ }),
|
|
1538
1457
|
/* 41 */
|
|
1539
1458
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1698,18 +1617,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1698
1617
|
"use strict";
|
|
1699
1618
|
|
|
1700
1619
|
|
|
1701
|
-
|
|
1702
|
-
value: true
|
|
1703
|
-
});
|
|
1704
|
-
|
|
1705
|
-
/***/ }),
|
|
1706
|
-
/* 56 */
|
|
1707
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1708
|
-
|
|
1709
|
-
"use strict";
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
var _slicedToArray = __webpack_require__(7);
|
|
1620
|
+
var _slicedToArray = __webpack_require__(6);
|
|
1713
1621
|
|
|
1714
1622
|
Object.defineProperty(exports, "__esModule", {
|
|
1715
1623
|
value: true
|
|
@@ -1719,15 +1627,15 @@ var React = __webpack_require__(0);
|
|
|
1719
1627
|
|
|
1720
1628
|
var lodash_1 = __webpack_require__(3);
|
|
1721
1629
|
|
|
1722
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1630
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(56);
|
|
1723
1631
|
|
|
1724
|
-
var Options_1 = __webpack_require__(
|
|
1632
|
+
var Options_1 = __webpack_require__(17);
|
|
1725
1633
|
|
|
1726
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1634
|
+
var SanitizeProps_1 = __webpack_require__(57);
|
|
1727
1635
|
|
|
1728
1636
|
var TimezoneContext_1 = __webpack_require__(32);
|
|
1729
1637
|
|
|
1730
|
-
var moment_1 = __webpack_require__(
|
|
1638
|
+
var moment_1 = __webpack_require__(58);
|
|
1731
1639
|
|
|
1732
1640
|
var FeatureFlagContext_1 = __webpack_require__(28);
|
|
1733
1641
|
|
|
@@ -1737,31 +1645,31 @@ var hocUtils_1 = __webpack_require__(34);
|
|
|
1737
1645
|
|
|
1738
1646
|
var JSONSchemaUtils_1 = __webpack_require__(35);
|
|
1739
1647
|
|
|
1740
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
1648
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(59);
|
|
1741
1649
|
|
|
1742
1650
|
var id_1 = __webpack_require__(31);
|
|
1743
1651
|
|
|
1744
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1652
|
+
var SplunkVisualization_1 = __webpack_require__(60);
|
|
1745
1653
|
|
|
1746
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1654
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
1747
1655
|
|
|
1748
1656
|
var getSorting_1 = __webpack_require__(38);
|
|
1749
1657
|
|
|
1750
1658
|
var getPagination_1 = __webpack_require__(39);
|
|
1751
1659
|
|
|
1752
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1660
|
+
var useDeepMemo_1 = __webpack_require__(61);
|
|
1753
1661
|
|
|
1754
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1662
|
+
var MissingPropsMessage_1 = __webpack_require__(62);
|
|
1755
1663
|
|
|
1756
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1664
|
+
var withEditModeCover_1 = __webpack_require__(63);
|
|
1757
1665
|
|
|
1758
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1666
|
+
var withPlaceholder_1 = __webpack_require__(64);
|
|
1759
1667
|
|
|
1760
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
1668
|
+
var useDownsampleDataSources_1 = __webpack_require__(65);
|
|
1761
1669
|
|
|
1762
|
-
var dataUtils_1 = __webpack_require__(
|
|
1670
|
+
var dataUtils_1 = __webpack_require__(15);
|
|
1763
1671
|
|
|
1764
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
1672
|
+
var featureFlagUtils_1 = __webpack_require__(67);
|
|
1765
1673
|
/**
|
|
1766
1674
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1767
1675
|
* @param {DashboardVizOpts} opts
|
|
@@ -2093,37 +2001,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2093
2001
|
exports.default = withDashboardViz;
|
|
2094
2002
|
|
|
2095
2003
|
/***/ }),
|
|
2096
|
-
/*
|
|
2004
|
+
/* 56 */
|
|
2097
2005
|
/***/ (function(module, exports) {
|
|
2098
2006
|
|
|
2099
2007
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2100
2008
|
|
|
2101
2009
|
/***/ }),
|
|
2102
|
-
/*
|
|
2010
|
+
/* 57 */
|
|
2103
2011
|
/***/ (function(module, exports) {
|
|
2104
2012
|
|
|
2105
2013
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2106
2014
|
|
|
2107
2015
|
/***/ }),
|
|
2108
|
-
/*
|
|
2016
|
+
/* 58 */
|
|
2109
2017
|
/***/ (function(module, exports) {
|
|
2110
2018
|
|
|
2111
2019
|
module.exports = require("@splunk/moment");
|
|
2112
2020
|
|
|
2113
2021
|
/***/ }),
|
|
2114
|
-
/*
|
|
2022
|
+
/* 59 */
|
|
2115
2023
|
/***/ (function(module, exports) {
|
|
2116
2024
|
|
|
2117
2025
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2118
2026
|
|
|
2119
2027
|
/***/ }),
|
|
2120
|
-
/*
|
|
2028
|
+
/* 60 */
|
|
2121
2029
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2122
2030
|
|
|
2123
2031
|
"use strict";
|
|
2124
2032
|
|
|
2125
2033
|
|
|
2126
|
-
var _classCallCheck = __webpack_require__(
|
|
2034
|
+
var _classCallCheck = __webpack_require__(9);
|
|
2127
2035
|
|
|
2128
2036
|
Object.defineProperty(exports, "__esModule", {
|
|
2129
2037
|
value: true
|
|
@@ -2135,7 +2043,7 @@ var T = __webpack_require__(1);
|
|
|
2135
2043
|
|
|
2136
2044
|
var lodash_1 = __webpack_require__(3);
|
|
2137
2045
|
|
|
2138
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2046
|
+
var VizActionHandler_1 = __webpack_require__(22); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2139
2047
|
|
|
2140
2048
|
|
|
2141
2049
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2268,7 +2176,7 @@ SplunkVisualization.defaultProps = {
|
|
|
2268
2176
|
exports.default = SplunkVisualization;
|
|
2269
2177
|
|
|
2270
2178
|
/***/ }),
|
|
2271
|
-
/*
|
|
2179
|
+
/* 61 */
|
|
2272
2180
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2273
2181
|
|
|
2274
2182
|
"use strict";
|
|
@@ -2313,7 +2221,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
2313
2221
|
exports.useDeepMemo = useDeepMemo;
|
|
2314
2222
|
|
|
2315
2223
|
/***/ }),
|
|
2316
|
-
/*
|
|
2224
|
+
/* 62 */
|
|
2317
2225
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2318
2226
|
|
|
2319
2227
|
"use strict";
|
|
@@ -2332,7 +2240,7 @@ var i18n_1 = __webpack_require__(2);
|
|
|
2332
2240
|
|
|
2333
2241
|
var Message_1 = __webpack_require__(12);
|
|
2334
2242
|
|
|
2335
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2243
|
+
var FixedSizeContainer_1 = __webpack_require__(18);
|
|
2336
2244
|
/**
|
|
2337
2245
|
* @method isMissing
|
|
2338
2246
|
* @param {any} v
|
|
@@ -2393,7 +2301,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
2393
2301
|
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
2394
2302
|
|
|
2395
2303
|
/***/ }),
|
|
2396
|
-
/*
|
|
2304
|
+
/* 63 */
|
|
2397
2305
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2398
2306
|
|
|
2399
2307
|
"use strict";
|
|
@@ -2407,14 +2315,14 @@ var React = __webpack_require__(0);
|
|
|
2407
2315
|
|
|
2408
2316
|
var styled_components_1 = __webpack_require__(4);
|
|
2409
2317
|
|
|
2410
|
-
var hocUtils_1 = __webpack_require__(
|
|
2318
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
2411
2319
|
|
|
2412
2320
|
var Cover = styled_components_1.default.div.withConfig({
|
|
2413
2321
|
displayName: "withEditModeCover__Cover",
|
|
2414
2322
|
componentId: "sc-1gsbnxb-0"
|
|
2415
2323
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2416
2324
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2417
|
-
'data-splunk-visualization-version': "26.
|
|
2325
|
+
'data-splunk-visualization-version': "26.3.0 - a1ef240a6"
|
|
2418
2326
|
}).withConfig({
|
|
2419
2327
|
displayName: "withEditModeCover__Blocker",
|
|
2420
2328
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2445,7 +2353,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
2445
2353
|
exports.default = withEditModeCover;
|
|
2446
2354
|
|
|
2447
2355
|
/***/ }),
|
|
2448
|
-
/*
|
|
2356
|
+
/* 64 */
|
|
2449
2357
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2450
2358
|
|
|
2451
2359
|
"use strict";
|
|
@@ -2457,15 +2365,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2457
2365
|
|
|
2458
2366
|
var React = __webpack_require__(0);
|
|
2459
2367
|
|
|
2460
|
-
var colorUtils_1 = __webpack_require__(
|
|
2368
|
+
var colorUtils_1 = __webpack_require__(16);
|
|
2461
2369
|
|
|
2462
|
-
var variables_1 = __webpack_require__(
|
|
2370
|
+
var variables_1 = __webpack_require__(14);
|
|
2463
2371
|
|
|
2464
2372
|
var IconPlaceholder_1 = __webpack_require__(37);
|
|
2465
2373
|
|
|
2466
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2374
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
2467
2375
|
|
|
2468
|
-
var hocUtils_1 = __webpack_require__(
|
|
2376
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
2469
2377
|
|
|
2470
2378
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2471
2379
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -2509,13 +2417,13 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
2509
2417
|
exports.default = withPlaceholder;
|
|
2510
2418
|
|
|
2511
2419
|
/***/ }),
|
|
2512
|
-
/*
|
|
2420
|
+
/* 65 */
|
|
2513
2421
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2514
2422
|
|
|
2515
2423
|
"use strict";
|
|
2516
2424
|
|
|
2517
2425
|
|
|
2518
|
-
var _slicedToArray = __webpack_require__(
|
|
2426
|
+
var _slicedToArray = __webpack_require__(6);
|
|
2519
2427
|
|
|
2520
2428
|
Object.defineProperty(exports, "__esModule", {
|
|
2521
2429
|
value: true
|
|
@@ -2525,11 +2433,11 @@ var react_1 = __webpack_require__(0);
|
|
|
2525
2433
|
|
|
2526
2434
|
var lodash_1 = __webpack_require__(3);
|
|
2527
2435
|
|
|
2528
|
-
var dataUtils_1 = __webpack_require__(
|
|
2436
|
+
var dataUtils_1 = __webpack_require__(15);
|
|
2529
2437
|
|
|
2530
2438
|
var usePrevious_1 = __webpack_require__(33);
|
|
2531
2439
|
|
|
2532
|
-
var useGetXAndYFields_1 = __webpack_require__(
|
|
2440
|
+
var useGetXAndYFields_1 = __webpack_require__(66);
|
|
2533
2441
|
|
|
2534
2442
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
2535
2443
|
var dataSources = _ref.dataSources,
|
|
@@ -2598,13 +2506,13 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2598
2506
|
exports.default = useDownsampleDataSources;
|
|
2599
2507
|
|
|
2600
2508
|
/***/ }),
|
|
2601
|
-
/*
|
|
2509
|
+
/* 66 */
|
|
2602
2510
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2603
2511
|
|
|
2604
2512
|
"use strict";
|
|
2605
2513
|
|
|
2606
2514
|
|
|
2607
|
-
var _toConsumableArray = __webpack_require__(
|
|
2515
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2608
2516
|
|
|
2609
2517
|
Object.defineProperty(exports, "__esModule", {
|
|
2610
2518
|
value: true
|
|
@@ -2612,7 +2520,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2612
2520
|
|
|
2613
2521
|
var react_1 = __webpack_require__(0);
|
|
2614
2522
|
|
|
2615
|
-
var Options_1 = __webpack_require__(
|
|
2523
|
+
var Options_1 = __webpack_require__(17);
|
|
2616
2524
|
/**
|
|
2617
2525
|
* Hook that evaluates the DSL for subset of a viz's options needed to determine
|
|
2618
2526
|
* its x and y fields as well as the types of all its fields.
|
|
@@ -2712,7 +2620,7 @@ var useGetXAndYFields = function useGetXAndYFields(_ref) {
|
|
|
2712
2620
|
exports.default = useGetXAndYFields;
|
|
2713
2621
|
|
|
2714
2622
|
/***/ }),
|
|
2715
|
-
/*
|
|
2623
|
+
/* 67 */
|
|
2716
2624
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2717
2625
|
|
|
2718
2626
|
"use strict";
|
|
@@ -2723,7 +2631,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2723
2631
|
});
|
|
2724
2632
|
exports.getFeatureFlag = void 0;
|
|
2725
2633
|
|
|
2726
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
2634
|
+
var FeatureFlags_1 = __webpack_require__(68);
|
|
2727
2635
|
|
|
2728
2636
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
2729
2637
|
// look for feature flag in context first
|
|
@@ -2747,28 +2655,27 @@ var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
|
2747
2655
|
exports.getFeatureFlag = getFeatureFlag;
|
|
2748
2656
|
|
|
2749
2657
|
/***/ }),
|
|
2750
|
-
/*
|
|
2658
|
+
/* 68 */
|
|
2751
2659
|
/***/ (function(module, exports) {
|
|
2752
2660
|
|
|
2753
2661
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
2754
2662
|
|
|
2755
2663
|
/***/ }),
|
|
2664
|
+
/* 69 */,
|
|
2756
2665
|
/* 70 */,
|
|
2757
|
-
/* 71
|
|
2758
|
-
/* 72 */
|
|
2666
|
+
/* 71 */
|
|
2759
2667
|
/***/ (function(module, exports) {
|
|
2760
2668
|
|
|
2761
2669
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
2762
2670
|
|
|
2763
2671
|
/***/ }),
|
|
2764
|
-
/*
|
|
2765
|
-
/* 74 */
|
|
2672
|
+
/* 72 */
|
|
2766
2673
|
/***/ (function(module, exports) {
|
|
2767
2674
|
|
|
2768
2675
|
module.exports = require("@splunk/visualization-icons");
|
|
2769
2676
|
|
|
2770
2677
|
/***/ }),
|
|
2771
|
-
/*
|
|
2678
|
+
/* 73 */
|
|
2772
2679
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2773
2680
|
|
|
2774
2681
|
"use strict";
|
|
@@ -2798,30 +2705,32 @@ var background = function background(_ref) {
|
|
|
2798
2705
|
exports.default = background;
|
|
2799
2706
|
|
|
2800
2707
|
/***/ }),
|
|
2708
|
+
/* 74 */,
|
|
2709
|
+
/* 75 */,
|
|
2801
2710
|
/* 76 */,
|
|
2802
2711
|
/* 77 */,
|
|
2803
2712
|
/* 78 */,
|
|
2804
|
-
/* 79
|
|
2805
|
-
/* 80 */,
|
|
2806
|
-
/* 81 */
|
|
2713
|
+
/* 79 */
|
|
2807
2714
|
/***/ (function(module, exports) {
|
|
2808
2715
|
|
|
2809
2716
|
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
2810
2717
|
|
|
2811
2718
|
/***/ }),
|
|
2812
|
-
/*
|
|
2719
|
+
/* 80 */
|
|
2813
2720
|
/***/ (function(module, exports) {
|
|
2814
2721
|
|
|
2815
2722
|
module.exports = require("@splunk/themes");
|
|
2816
2723
|
|
|
2817
2724
|
/***/ }),
|
|
2818
|
-
/*
|
|
2819
|
-
/*
|
|
2725
|
+
/* 81 */,
|
|
2726
|
+
/* 82 */
|
|
2820
2727
|
/***/ (function(module, exports) {
|
|
2821
2728
|
|
|
2822
2729
|
module.exports = require("@splunk/react-ui/Popover");
|
|
2823
2730
|
|
|
2824
2731
|
/***/ }),
|
|
2732
|
+
/* 83 */,
|
|
2733
|
+
/* 84 */,
|
|
2825
2734
|
/* 85 */,
|
|
2826
2735
|
/* 86 */,
|
|
2827
2736
|
/* 87 */,
|
|
@@ -2840,14 +2749,14 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
2840
2749
|
/* 100 */,
|
|
2841
2750
|
/* 101 */,
|
|
2842
2751
|
/* 102 */,
|
|
2843
|
-
/* 103
|
|
2844
|
-
/* 104 */,
|
|
2845
|
-
/* 105 */
|
|
2752
|
+
/* 103 */
|
|
2846
2753
|
/***/ (function(module, exports) {
|
|
2847
2754
|
|
|
2848
2755
|
module.exports = require("@babel/runtime/helpers/typeof");
|
|
2849
2756
|
|
|
2850
2757
|
/***/ }),
|
|
2758
|
+
/* 104 */,
|
|
2759
|
+
/* 105 */,
|
|
2851
2760
|
/* 106 */,
|
|
2852
2761
|
/* 107 */,
|
|
2853
2762
|
/* 108 */,
|
|
@@ -2859,15 +2768,15 @@ module.exports = require("@babel/runtime/helpers/typeof");
|
|
|
2859
2768
|
/* 114 */,
|
|
2860
2769
|
/* 115 */,
|
|
2861
2770
|
/* 116 */,
|
|
2862
|
-
/* 117
|
|
2863
|
-
/* 118 */,
|
|
2864
|
-
/* 119 */,
|
|
2865
|
-
/* 120 */
|
|
2771
|
+
/* 117 */
|
|
2866
2772
|
/***/ (function(module, exports) {
|
|
2867
2773
|
|
|
2868
2774
|
module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
2869
2775
|
|
|
2870
2776
|
/***/ }),
|
|
2777
|
+
/* 118 */,
|
|
2778
|
+
/* 119 */,
|
|
2779
|
+
/* 120 */,
|
|
2871
2780
|
/* 121 */,
|
|
2872
2781
|
/* 122 */,
|
|
2873
2782
|
/* 123 */,
|
|
@@ -2887,38 +2796,36 @@ module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
|
2887
2796
|
/* 137 */,
|
|
2888
2797
|
/* 138 */,
|
|
2889
2798
|
/* 139 */,
|
|
2890
|
-
/* 140
|
|
2891
|
-
/* 141 */,
|
|
2892
|
-
/* 142 */
|
|
2799
|
+
/* 140 */
|
|
2893
2800
|
/***/ (function(module, exports) {
|
|
2894
2801
|
|
|
2895
2802
|
module.exports = require("@splunk/react-ui/Menu");
|
|
2896
2803
|
|
|
2897
2804
|
/***/ }),
|
|
2898
|
-
/*
|
|
2805
|
+
/* 141 */
|
|
2899
2806
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2900
2807
|
|
|
2901
2808
|
"use strict";
|
|
2902
2809
|
|
|
2903
2810
|
|
|
2904
|
-
var _typeof = __webpack_require__(
|
|
2811
|
+
var _typeof = __webpack_require__(103);
|
|
2905
2812
|
|
|
2906
|
-
var _slicedToArray = __webpack_require__(
|
|
2813
|
+
var _slicedToArray = __webpack_require__(6);
|
|
2907
2814
|
|
|
2908
|
-
var _toConsumableArray = __webpack_require__(
|
|
2815
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2909
2816
|
|
|
2910
|
-
var _defineProperty = __webpack_require__(
|
|
2817
|
+
var _defineProperty = __webpack_require__(13);
|
|
2911
2818
|
|
|
2912
2819
|
Object.defineProperty(exports, "__esModule", {
|
|
2913
2820
|
value: true
|
|
2914
2821
|
});
|
|
2915
2822
|
exports.combineHighlighted = exports.convertToHighlightValuesByFieldMap = exports.truncateString = exports.getCustomTimeInterval = exports.getPredefinedTimeInterval = exports.getEpochTime = exports.generateTokenReplacementMap = exports.replaceTokens = exports.mergeFieldActions = exports.mergeEventActions = exports.getFieldSummaryMapping = exports.convertToPayloadFormat = void 0;
|
|
2916
2823
|
|
|
2917
|
-
var time_1 = __webpack_require__(
|
|
2824
|
+
var time_1 = __webpack_require__(225);
|
|
2918
2825
|
|
|
2919
2826
|
var lodash_1 = __webpack_require__(3);
|
|
2920
2827
|
|
|
2921
|
-
var dataUtils_1 = __webpack_require__(
|
|
2828
|
+
var dataUtils_1 = __webpack_require__(15); // util to convert a field-value map into an object with row.<fieldname>.value keys for payloads
|
|
2922
2829
|
|
|
2923
2830
|
|
|
2924
2831
|
var convertToPayloadFormat = function convertToPayloadFormat(obj) {
|
|
@@ -3125,6 +3032,7 @@ exports.generateTokenReplacementMap = generateTokenReplacementMap; // return epo
|
|
|
3125
3032
|
var getEpochTime = function getEpochTime(time) {
|
|
3126
3033
|
// if not a valid time string, then indicate an error and return NaN.
|
|
3127
3034
|
if (!(0, time_1.isISO)(time)) {
|
|
3035
|
+
// eslint-disable-next-line no-console
|
|
3128
3036
|
console.error("'".concat(time, "' is not a valid time string."));
|
|
3129
3037
|
return NaN;
|
|
3130
3038
|
} // retrieves the epoch time in milliseconds, and divides by 1000
|
|
@@ -3274,30 +3182,32 @@ var combineHighlighted = function combineHighlighted(highlightedSource, highligh
|
|
|
3274
3182
|
exports.combineHighlighted = combineHighlighted;
|
|
3275
3183
|
|
|
3276
3184
|
/***/ }),
|
|
3277
|
-
/*
|
|
3185
|
+
/* 142 */
|
|
3278
3186
|
/***/ (function(module, exports) {
|
|
3279
3187
|
|
|
3280
3188
|
module.exports = require("@splunk/react-ui/Markdown");
|
|
3281
3189
|
|
|
3282
3190
|
/***/ }),
|
|
3283
|
-
/*
|
|
3191
|
+
/* 143 */
|
|
3284
3192
|
/***/ (function(module, exports) {
|
|
3285
3193
|
|
|
3286
3194
|
module.exports = require("@splunk/react-ui/Button");
|
|
3287
3195
|
|
|
3288
3196
|
/***/ }),
|
|
3289
|
-
/*
|
|
3197
|
+
/* 144 */
|
|
3290
3198
|
/***/ (function(module, exports) {
|
|
3291
3199
|
|
|
3292
3200
|
module.exports = require("@splunk/react-ui/Message");
|
|
3293
3201
|
|
|
3294
3202
|
/***/ }),
|
|
3295
|
-
/*
|
|
3203
|
+
/* 145 */
|
|
3296
3204
|
/***/ (function(module, exports) {
|
|
3297
3205
|
|
|
3298
3206
|
module.exports = require("@splunk/react-ui/Heading");
|
|
3299
3207
|
|
|
3300
3208
|
/***/ }),
|
|
3209
|
+
/* 146 */,
|
|
3210
|
+
/* 147 */,
|
|
3301
3211
|
/* 148 */,
|
|
3302
3212
|
/* 149 */,
|
|
3303
3213
|
/* 150 */,
|
|
@@ -3319,10 +3229,7 @@ module.exports = require("@splunk/react-ui/Heading");
|
|
|
3319
3229
|
/* 166 */,
|
|
3320
3230
|
/* 167 */,
|
|
3321
3231
|
/* 168 */,
|
|
3322
|
-
/* 169
|
|
3323
|
-
/* 170 */,
|
|
3324
|
-
/* 171 */,
|
|
3325
|
-
/* 172 */
|
|
3232
|
+
/* 169 */
|
|
3326
3233
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3327
3234
|
|
|
3328
3235
|
"use strict";
|
|
@@ -3348,21 +3255,21 @@ exports.replaceTokens = exports.PureEvents = exports.config = exports.themes = e
|
|
|
3348
3255
|
|
|
3349
3256
|
var lodash_1 = __webpack_require__(3);
|
|
3350
3257
|
|
|
3351
|
-
var dataSourceUtils_1 = __webpack_require__(
|
|
3258
|
+
var dataSourceUtils_1 = __webpack_require__(117);
|
|
3352
3259
|
|
|
3353
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3260
|
+
var withDashboardViz_1 = __webpack_require__(55);
|
|
3354
3261
|
|
|
3355
|
-
var constants_1 = __webpack_require__(
|
|
3262
|
+
var constants_1 = __webpack_require__(170);
|
|
3356
3263
|
|
|
3357
|
-
var config_1 = __webpack_require__(
|
|
3264
|
+
var config_1 = __webpack_require__(222);
|
|
3358
3265
|
|
|
3359
3266
|
exports.config = config_1.default;
|
|
3360
3267
|
|
|
3361
|
-
var PureEvents_1 = __webpack_require__(
|
|
3268
|
+
var PureEvents_1 = __webpack_require__(223);
|
|
3362
3269
|
|
|
3363
3270
|
exports.PureEvents = PureEvents_1.default;
|
|
3364
3271
|
|
|
3365
|
-
var EventUtils_1 = __webpack_require__(
|
|
3272
|
+
var EventUtils_1 = __webpack_require__(141);
|
|
3366
3273
|
|
|
3367
3274
|
Object.defineProperty(exports, "replaceTokens", {
|
|
3368
3275
|
enumerable: true,
|
|
@@ -3413,23 +3320,20 @@ exports.themes = themes;
|
|
|
3413
3320
|
exports.default = Events;
|
|
3414
3321
|
|
|
3415
3322
|
/***/ }),
|
|
3416
|
-
/*
|
|
3323
|
+
/* 170 */
|
|
3417
3324
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3418
3325
|
|
|
3419
3326
|
"use strict";
|
|
3420
3327
|
__webpack_require__.r(__webpack_exports__);
|
|
3421
3328
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rawEventPayload", function() { return rawEventPayload; });
|
|
3422
3329
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rawMultiLineEvent", function() { return rawMultiLineEvent; });
|
|
3423
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3330
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "originalDataSourceDataColumns", function() { return originalDataSourceDataColumns; });
|
|
3424
3331
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataSourceData", function() { return dataSourceData; });
|
|
3425
3332
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EMPTY_DATASOURCE", function() { return EMPTY_DATASOURCE; });
|
|
3426
3333
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELDSUMMARY_DS_STORYBOOK", function() { return FIELDSUMMARY_DS_STORYBOOK; });
|
|
3427
3334
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELDSUMMARY_DS_DOC_HUB", function() { return FIELDSUMMARY_DS_DOC_HUB; });
|
|
3428
3335
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TAGS_DEFAULT", function() { return TAGS_DEFAULT; });
|
|
3429
|
-
/* harmony import */ var _splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(192);
|
|
3430
|
-
/* harmony import */ var _splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0__);
|
|
3431
3336
|
// TODO: convert this file to .ts - created as .js as copied from SUI EventsViewer repo
|
|
3432
|
-
|
|
3433
3337
|
var rawEventPayload = {
|
|
3434
3338
|
preview: false,
|
|
3435
3339
|
init_offset: 0,
|
|
@@ -3815,11 +3719,24 @@ var rawEventPayload = {
|
|
|
3815
3719
|
}
|
|
3816
3720
|
}
|
|
3817
3721
|
};
|
|
3818
|
-
var rawMultiLineEvent = "10/19/2023 10:29:00 -0700, search_name=KOM_Dashboard_Sear dropped_events=0, search_startup_time=48, dash_epoch=1697737969, search_spl=\"| rest splunk_server=local /services/server/status/installed-file-integrity\n| fields check_failures.*\n| untable splunk_server file_path check_result\n| replace \"check_failures.*\" WITH \"*\" IN file_path\n| fields file_path check_result\n| rename file_path AS \"File path\" check_result AS \"Check result\", shc_member=standalone, rawdata_cache_miss=0, matching_events=0, events_in_matching_bkts=0, total_run_time_sec=\"0.09\", scanned_events=0, bloomfilter_eliminated_bkts=0, sid_search_name=search2, slices_in_matching_bkts=0, savedsearch_name=search2, search_type=dashboard, search_user=gmattia";
|
|
3722
|
+
var rawMultiLineEvent = "10/19/2023 10:29:00 -0700, search_name=KOM_Dashboard_Sear dropped_events=0, search_startup_time=48, dash_epoch=1697737969, search_spl=\"| rest splunk_server=local /services/server/status/installed-file-integrity\n| fields check_failures.*\n| untable splunk_server file_path check_result\n| replace \"check_failures.*\" WITH \"*\" IN file_path\n| fields file_path check_result\n| rename file_path AS \"File path\" check_result AS \"Check result\", shc_member=standalone, rawdata_cache_miss=0, matching_events=0, events_in_matching_bkts=0, total_run_time_sec=\"0.09\", scanned_events=0, bloomfilter_eliminated_bkts=0, sid_search_name=search2, slices_in_matching_bkts=0, savedsearch_name=search2, search_type=dashboard, search_user=gmattia";
|
|
3723
|
+
|
|
3724
|
+
var columnsFromJSONArray = function columnsFromJSONArray(fields, results) {
|
|
3725
|
+
var columns = fields.map(function (_ref) {
|
|
3726
|
+
var name = _ref.name;
|
|
3727
|
+
return results.reduce(function (col, row) {
|
|
3728
|
+
// if a field is not present on a result entry we set it to null
|
|
3729
|
+
col.push(row[name] === undefined ? null : row[name]);
|
|
3730
|
+
return col;
|
|
3731
|
+
}, []);
|
|
3732
|
+
});
|
|
3733
|
+
return columns;
|
|
3734
|
+
}; // Datasource utilized in example on @splunk/react-events-viewer docs
|
|
3819
3735
|
|
|
3820
|
-
var originalDataSourceData = _splunk_datasource_utils__WEBPACK_IMPORTED_MODULE_0__["DataSet"].fromJSONArray(rawEventPayload.fields, rawEventPayload.results); // Replaces _raw object with the value of the `value` key - this is the string expected in Dashboard Studio payload
|
|
3821
3736
|
|
|
3822
|
-
|
|
3737
|
+
var originalDataSourceDataColumns = columnsFromJSONArray(rawEventPayload.fields, rawEventPayload.results); // Replaces _raw object with the value of the `value` key - this is the string expected in Dashboard Studio payload
|
|
3738
|
+
|
|
3739
|
+
originalDataSourceDataColumns[5] = originalDataSourceDataColumns[5].map(function (_raw) {
|
|
3823
3740
|
return _raw.value;
|
|
3824
3741
|
}); // Exports payload with expected shape of Dashboard Studio payload - fields as an array of strings, and columns
|
|
3825
3742
|
// as arrays of data primitives like strings and numbers
|
|
@@ -3828,7 +3745,7 @@ originalDataSourceData.columns[5] = originalDataSourceData.columns[5].map(functi
|
|
|
3828
3745
|
|
|
3829
3746
|
var dataSourceData = {
|
|
3830
3747
|
fields: rawEventPayload.fields,
|
|
3831
|
-
columns:
|
|
3748
|
+
columns: originalDataSourceDataColumns
|
|
3832
3749
|
};
|
|
3833
3750
|
var EMPTY_DATASOURCE = {
|
|
3834
3751
|
primary: {
|
|
@@ -3915,12 +3832,15 @@ var TAGS_DEFAULT = {
|
|
|
3915
3832
|
};
|
|
3916
3833
|
|
|
3917
3834
|
/***/ }),
|
|
3918
|
-
/*
|
|
3835
|
+
/* 171 */
|
|
3919
3836
|
/***/ (function(module, exports) {
|
|
3920
3837
|
|
|
3921
3838
|
module.exports = require("@splunk/visualization-context/EventsContext");
|
|
3922
3839
|
|
|
3923
3840
|
/***/ }),
|
|
3841
|
+
/* 172 */,
|
|
3842
|
+
/* 173 */,
|
|
3843
|
+
/* 174 */,
|
|
3924
3844
|
/* 175 */,
|
|
3925
3845
|
/* 176 */,
|
|
3926
3846
|
/* 177 */,
|
|
@@ -3938,12 +3858,7 @@ module.exports = require("@splunk/visualization-context/EventsContext");
|
|
|
3938
3858
|
/* 189 */,
|
|
3939
3859
|
/* 190 */,
|
|
3940
3860
|
/* 191 */,
|
|
3941
|
-
/* 192
|
|
3942
|
-
/***/ (function(module, exports) {
|
|
3943
|
-
|
|
3944
|
-
module.exports = require("@splunk/datasource-utils");
|
|
3945
|
-
|
|
3946
|
-
/***/ }),
|
|
3861
|
+
/* 192 */,
|
|
3947
3862
|
/* 193 */,
|
|
3948
3863
|
/* 194 */,
|
|
3949
3864
|
/* 195 */,
|
|
@@ -3972,11 +3887,7 @@ module.exports = require("@splunk/datasource-utils");
|
|
|
3972
3887
|
/* 218 */,
|
|
3973
3888
|
/* 219 */,
|
|
3974
3889
|
/* 220 */,
|
|
3975
|
-
/* 221
|
|
3976
|
-
/* 222 */,
|
|
3977
|
-
/* 223 */,
|
|
3978
|
-
/* 224 */,
|
|
3979
|
-
/* 225 */
|
|
3890
|
+
/* 221 */
|
|
3980
3891
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3981
3892
|
|
|
3982
3893
|
"use strict";
|
|
@@ -4012,9 +3923,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4012
3923
|
});
|
|
4013
3924
|
exports.default = void 0;
|
|
4014
3925
|
|
|
4015
|
-
__exportStar(__webpack_require__(
|
|
3926
|
+
__exportStar(__webpack_require__(169), exports);
|
|
4016
3927
|
|
|
4017
|
-
var Events_1 = __webpack_require__(
|
|
3928
|
+
var Events_1 = __webpack_require__(169);
|
|
4018
3929
|
|
|
4019
3930
|
Object.defineProperty(exports, "default", {
|
|
4020
3931
|
enumerable: true,
|
|
@@ -4024,7 +3935,7 @@ Object.defineProperty(exports, "default", {
|
|
|
4024
3935
|
});
|
|
4025
3936
|
|
|
4026
3937
|
/***/ }),
|
|
4027
|
-
/*
|
|
3938
|
+
/* 222 */
|
|
4028
3939
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4029
3940
|
|
|
4030
3941
|
"use strict";
|
|
@@ -4034,25 +3945,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4034
3945
|
value: true
|
|
4035
3946
|
});
|
|
4036
3947
|
|
|
4037
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3948
|
+
var visualization_icons_1 = __webpack_require__(72);
|
|
4038
3949
|
|
|
4039
|
-
var placeholders_1 = __webpack_require__(
|
|
3950
|
+
var placeholders_1 = __webpack_require__(71);
|
|
4040
3951
|
|
|
4041
|
-
var
|
|
3952
|
+
var visualization_schemas_1 = __webpack_require__(10);
|
|
4042
3953
|
|
|
4043
|
-
var themes_1 = __webpack_require__(
|
|
3954
|
+
var themes_1 = __webpack_require__(80);
|
|
4044
3955
|
|
|
4045
3956
|
var i18n_1 = __webpack_require__(2);
|
|
4046
3957
|
|
|
4047
|
-
var
|
|
4048
|
-
|
|
4049
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
3958
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
4050
3959
|
|
|
4051
|
-
var VizCategory_1 = __webpack_require__(
|
|
3960
|
+
var VizCategory_1 = __webpack_require__(23);
|
|
4052
3961
|
|
|
4053
3962
|
var configUtils_1 = __webpack_require__(27);
|
|
4054
3963
|
|
|
4055
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3964
|
+
var BackgroundColor_1 = __webpack_require__(73);
|
|
4056
3965
|
|
|
4057
3966
|
var defaultContext = {};
|
|
4058
3967
|
var dataContract = {
|
|
@@ -4085,122 +3994,6 @@ var size = {
|
|
|
4085
3994
|
initialWidth: 800,
|
|
4086
3995
|
initialHeight: 500
|
|
4087
3996
|
};
|
|
4088
|
-
var optionsSchema = {
|
|
4089
|
-
backgroundColor: {
|
|
4090
|
-
default: '> themes.defaultBackgroundColor',
|
|
4091
|
-
description: 'Specify the color used for the background by using a hexadecimal code. For example, #0000FF.',
|
|
4092
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
4093
|
-
type: 'string'
|
|
4094
|
-
},
|
|
4095
|
-
eventActions: {
|
|
4096
|
-
default: [],
|
|
4097
|
-
description: 'Specify the available actions to take for an event. For example, `[{ "eventType": "eventAction.buildEventType.click", "label": "Build Event Type" }]`. Event types should end in `.click` if utilizing event handlers. Note that both `eventtypeValues` and `fieldFilters` keys support wildcard values.',
|
|
4098
|
-
type: 'array',
|
|
4099
|
-
items: {
|
|
4100
|
-
anyOf: [{
|
|
4101
|
-
type: 'object',
|
|
4102
|
-
properties: {
|
|
4103
|
-
eventType: {
|
|
4104
|
-
description: 'The distinct type for the event emitted upon event action click.',
|
|
4105
|
-
type: 'string',
|
|
4106
|
-
pattern: '.click$',
|
|
4107
|
-
default: ''
|
|
4108
|
-
},
|
|
4109
|
-
label: {
|
|
4110
|
-
description: 'The label for the event action.',
|
|
4111
|
-
type: 'string',
|
|
4112
|
-
default: ''
|
|
4113
|
-
},
|
|
4114
|
-
eventtypeValues: {
|
|
4115
|
-
description: 'An array of string values that all need to match against the value(s) of the `eventtype` field if it exists in the event in order to be shown.',
|
|
4116
|
-
items: {
|
|
4117
|
-
type: 'string'
|
|
4118
|
-
},
|
|
4119
|
-
type: 'array',
|
|
4120
|
-
default: []
|
|
4121
|
-
},
|
|
4122
|
-
fieldFilters: {
|
|
4123
|
-
description: 'An array of string values for fields that need to exist in the event in order for the given event action in order to be shown.',
|
|
4124
|
-
items: {
|
|
4125
|
-
type: 'string'
|
|
4126
|
-
},
|
|
4127
|
-
type: 'array',
|
|
4128
|
-
default: []
|
|
4129
|
-
}
|
|
4130
|
-
},
|
|
4131
|
-
required: ['eventType', 'label']
|
|
4132
|
-
}]
|
|
4133
|
-
}
|
|
4134
|
-
},
|
|
4135
|
-
fieldActions: {
|
|
4136
|
-
description: 'Specify the available actions for this field. For example, `{ *: [{ "eventType": "fieldAction.sharedAction1.click", "label": "Shared Action 1", "eventtypeValues": ["*"], "fieldFilters": ["*"] }] }`. Event types should end in `.click` if utilizing event handlers. Actions under the `*` key are shared across all field dropdowns. Note that both `eventtypeValues` and `fieldFilters` keys, as well as the field names, support wildcard values.',
|
|
4137
|
-
type: 'object',
|
|
4138
|
-
patternProperties: {
|
|
4139
|
-
'.*': {
|
|
4140
|
-
description: 'Specify the available actions for this field.',
|
|
4141
|
-
type: 'array',
|
|
4142
|
-
items: {
|
|
4143
|
-
anyOf: [{
|
|
4144
|
-
type: 'object',
|
|
4145
|
-
properties: {
|
|
4146
|
-
eventType: {
|
|
4147
|
-
description: 'The distinct type for the event emitted upon event action click.',
|
|
4148
|
-
type: 'string',
|
|
4149
|
-
pattern: '.click$',
|
|
4150
|
-
default: ''
|
|
4151
|
-
},
|
|
4152
|
-
label: {
|
|
4153
|
-
description: 'The label for the event action.',
|
|
4154
|
-
type: 'string',
|
|
4155
|
-
default: ''
|
|
4156
|
-
},
|
|
4157
|
-
eventtypeValues: {
|
|
4158
|
-
description: 'An array of string values that all need to match against the value(s) of the `eventtype` field if it exists in the event in order to be shown.',
|
|
4159
|
-
items: {
|
|
4160
|
-
type: 'string'
|
|
4161
|
-
},
|
|
4162
|
-
type: 'array',
|
|
4163
|
-
default: []
|
|
4164
|
-
},
|
|
4165
|
-
fieldFilters: {
|
|
4166
|
-
description: 'An array of string values for fields that need to exist in the event in order for the given event action in order to be shown.',
|
|
4167
|
-
items: {
|
|
4168
|
-
type: 'string'
|
|
4169
|
-
},
|
|
4170
|
-
type: 'array',
|
|
4171
|
-
default: []
|
|
4172
|
-
}
|
|
4173
|
-
},
|
|
4174
|
-
required: ['eventType', 'label']
|
|
4175
|
-
}]
|
|
4176
|
-
}
|
|
4177
|
-
}
|
|
4178
|
-
}
|
|
4179
|
-
},
|
|
4180
|
-
footerFields: {
|
|
4181
|
-
description: 'Specify field(s) that should be displayed in the footer component. Specify one or more fields to display in the footer component. For example, specify ["source", "dest"] to display the source and destination fields.',
|
|
4182
|
-
type: 'array',
|
|
4183
|
-
items: {
|
|
4184
|
-
type: 'string'
|
|
4185
|
-
},
|
|
4186
|
-
default: []
|
|
4187
|
-
},
|
|
4188
|
-
highlightValuesByField: {
|
|
4189
|
-
description: 'Specify the field and value pairs for manual highlighting. For example, `{"source": "$srcToken$", "dest": "12.21.1.11", "tag": ["tag1", "tag2"]}`.',
|
|
4190
|
-
type: 'object'
|
|
4191
|
-
},
|
|
4192
|
-
highlightFromSource: {
|
|
4193
|
-
description: 'Specify a segmentation mode to use for search based highlighting. Specifying "none" will turn search based highlighting off. For more about segmentation, search for "event segmentation" in the Getting Data In manual in the Splunk Docs.',
|
|
4194
|
-
type: 'string',
|
|
4195
|
-
pattern: (0, schemaUtils_1.getPattern)(DataSource_1.validSegmentationModes),
|
|
4196
|
-
default: 'none'
|
|
4197
|
-
},
|
|
4198
|
-
showFieldSummary: {
|
|
4199
|
-
description: 'Specify that a field summary popup appears when a field is selected. To show field summaries for a search, configure an additional datasource called `fieldsummary` using the original search followed by the `... | fieldsummary maxvals=10` SPL command.',
|
|
4200
|
-
type: 'boolean',
|
|
4201
|
-
default: true
|
|
4202
|
-
}
|
|
4203
|
-
};
|
|
4204
3997
|
var themes = {
|
|
4205
3998
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
4206
3999
|
return (0, themes_1.pick)({
|
|
@@ -4253,7 +4046,7 @@ var config = {
|
|
|
4253
4046
|
dataContract: dataContract,
|
|
4254
4047
|
size: size,
|
|
4255
4048
|
defaultContext: defaultContext,
|
|
4256
|
-
optionsSchema:
|
|
4049
|
+
optionsSchema: visualization_schemas_1.eventsOptionsSchema,
|
|
4257
4050
|
editorConfig: editorConfig,
|
|
4258
4051
|
events: {
|
|
4259
4052
|
'eventAction.<actionName>.click': {
|
|
@@ -4282,15 +4075,15 @@ var config = {
|
|
|
4282
4075
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
4283
4076
|
|
|
4284
4077
|
/***/ }),
|
|
4285
|
-
/*
|
|
4078
|
+
/* 223 */
|
|
4286
4079
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4287
4080
|
|
|
4288
4081
|
"use strict";
|
|
4289
4082
|
|
|
4290
4083
|
|
|
4291
|
-
var _typeof = __webpack_require__(
|
|
4084
|
+
var _typeof = __webpack_require__(103);
|
|
4292
4085
|
|
|
4293
|
-
var _slicedToArray = __webpack_require__(
|
|
4086
|
+
var _slicedToArray = __webpack_require__(6);
|
|
4294
4087
|
|
|
4295
4088
|
Object.defineProperty(exports, "__esModule", {
|
|
4296
4089
|
value: true
|
|
@@ -4302,38 +4095,38 @@ var react_1 = __webpack_require__(0);
|
|
|
4302
4095
|
|
|
4303
4096
|
var T = __webpack_require__(1);
|
|
4304
4097
|
|
|
4305
|
-
var EventsViewer_1 = __webpack_require__(
|
|
4098
|
+
var EventsViewer_1 = __webpack_require__(224);
|
|
4306
4099
|
|
|
4307
4100
|
var styled_components_1 = __webpack_require__(4);
|
|
4308
4101
|
|
|
4309
4102
|
var pick_1 = __webpack_require__(30);
|
|
4310
4103
|
|
|
4311
|
-
var variables_1 = __webpack_require__(
|
|
4104
|
+
var variables_1 = __webpack_require__(14);
|
|
4312
4105
|
|
|
4313
|
-
var colorUtils_1 = __webpack_require__(
|
|
4106
|
+
var colorUtils_1 = __webpack_require__(16);
|
|
4314
4107
|
|
|
4315
|
-
var style_1 = __webpack_require__(
|
|
4108
|
+
var style_1 = __webpack_require__(19);
|
|
4316
4109
|
|
|
4317
|
-
var EventsContext_1 = __webpack_require__(
|
|
4110
|
+
var EventsContext_1 = __webpack_require__(171);
|
|
4318
4111
|
|
|
4319
4112
|
var lodash_1 = __webpack_require__(3);
|
|
4320
4113
|
|
|
4321
|
-
var Menu_1 = __webpack_require__(
|
|
4114
|
+
var Menu_1 = __webpack_require__(140);
|
|
4322
4115
|
|
|
4323
|
-
var constants_1 = __webpack_require__(
|
|
4116
|
+
var constants_1 = __webpack_require__(170);
|
|
4324
4117
|
|
|
4325
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
4118
|
+
var FixedSizeContainer_1 = __webpack_require__(18);
|
|
4326
4119
|
|
|
4327
|
-
var EventUtils_1 = __webpack_require__(
|
|
4120
|
+
var EventUtils_1 = __webpack_require__(141);
|
|
4328
4121
|
|
|
4329
|
-
var FieldSummaryTooltip_1 = __webpack_require__(
|
|
4122
|
+
var FieldSummaryTooltip_1 = __webpack_require__(226);
|
|
4330
4123
|
|
|
4331
|
-
var TimeControlsPopover_1 = __webpack_require__(
|
|
4124
|
+
var TimeControlsPopover_1 = __webpack_require__(228); // Inspired by VizTableContainer in PureTable.tsx
|
|
4332
4125
|
|
|
4333
4126
|
|
|
4334
4127
|
var EventsContainer = styled_components_1.default.div.withConfig({
|
|
4335
4128
|
displayName: "PureEvents__EventsContainer",
|
|
4336
|
-
componentId: "iniqvm-0"
|
|
4129
|
+
componentId: "sc-iniqvm-0"
|
|
4337
4130
|
})(["width:", ";height:", ";box-sizing:border-box;padding:", ";display:flex;flex-flow:column nowrap;overflow:hidden;background-color:", ";table[data-test='main-table']{background-color:", ";}table[data-test='main-table']{td:nth-child(3){word-break:break-word;white-space:pre-wrap;}}"], function (props) {
|
|
4338
4131
|
return (0, lodash_1.isNumber)(props.width) ? "".concat(props.width, "px") : props.width;
|
|
4339
4132
|
}, function (props) {
|
|
@@ -4350,7 +4143,7 @@ var EventsContainer = styled_components_1.default.div.withConfig({
|
|
|
4350
4143
|
|
|
4351
4144
|
var SUIEventsViewerContainer = styled_components_1.default.div.withConfig({
|
|
4352
4145
|
displayName: "PureEvents__SUIEventsViewerContainer",
|
|
4353
|
-
componentId: "iniqvm-1"
|
|
4146
|
+
componentId: "sc-iniqvm-1"
|
|
4354
4147
|
})(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";"], function (_ref) {
|
|
4355
4148
|
var width = _ref.width,
|
|
4356
4149
|
height = _ref.height,
|
|
@@ -4636,6 +4429,7 @@ var PureEvents = function PureEvents(props) {
|
|
|
4636
4429
|
};
|
|
4637
4430
|
|
|
4638
4431
|
return React.createElement(EventsContainer, {
|
|
4432
|
+
"data-test": "events-container",
|
|
4639
4433
|
backgroundColor: backgroundColor,
|
|
4640
4434
|
width: width,
|
|
4641
4435
|
height: height
|
|
@@ -4721,25 +4515,25 @@ PureEvents.defaultProps = {
|
|
|
4721
4515
|
exports.default = (0, FixedSizeContainer_1.default)(PureEvents);
|
|
4722
4516
|
|
|
4723
4517
|
/***/ }),
|
|
4724
|
-
/*
|
|
4518
|
+
/* 224 */
|
|
4725
4519
|
/***/ (function(module, exports) {
|
|
4726
4520
|
|
|
4727
4521
|
module.exports = require("@splunk/react-events-viewer/components/EventsViewer");
|
|
4728
4522
|
|
|
4729
4523
|
/***/ }),
|
|
4730
|
-
/*
|
|
4524
|
+
/* 225 */
|
|
4731
4525
|
/***/ (function(module, exports) {
|
|
4732
4526
|
|
|
4733
4527
|
module.exports = require("@splunk/time-range-utils/time");
|
|
4734
4528
|
|
|
4735
4529
|
/***/ }),
|
|
4736
|
-
/*
|
|
4530
|
+
/* 226 */
|
|
4737
4531
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4738
4532
|
|
|
4739
4533
|
"use strict";
|
|
4740
4534
|
|
|
4741
4535
|
|
|
4742
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
4536
|
+
var _taggedTemplateLiteral = __webpack_require__(79);
|
|
4743
4537
|
|
|
4744
4538
|
var _templateObject;
|
|
4745
4539
|
|
|
@@ -4751,11 +4545,11 @@ var React = __webpack_require__(0);
|
|
|
4751
4545
|
|
|
4752
4546
|
var react_1 = __webpack_require__(0);
|
|
4753
4547
|
|
|
4754
|
-
var Popover_1 = __webpack_require__(
|
|
4548
|
+
var Popover_1 = __webpack_require__(82);
|
|
4755
4549
|
|
|
4756
|
-
var Markdown_1 = __webpack_require__(
|
|
4550
|
+
var Markdown_1 = __webpack_require__(142);
|
|
4757
4551
|
|
|
4758
|
-
var FieldSummary_1 = __webpack_require__(
|
|
4552
|
+
var FieldSummary_1 = __webpack_require__(227);
|
|
4759
4553
|
|
|
4760
4554
|
var lodash_1 = __webpack_require__(3);
|
|
4761
4555
|
|
|
@@ -4763,7 +4557,7 @@ var i18n_1 = __webpack_require__(2);
|
|
|
4763
4557
|
|
|
4764
4558
|
var styled_components_1 = __webpack_require__(4);
|
|
4765
4559
|
|
|
4766
|
-
var EventsContext_1 = __webpack_require__(
|
|
4560
|
+
var EventsContext_1 = __webpack_require__(171);
|
|
4767
4561
|
|
|
4768
4562
|
var popoverContainerStyle = {
|
|
4769
4563
|
padding: '20px',
|
|
@@ -4860,21 +4654,21 @@ FieldSummaryTooltip.defaultProps = {
|
|
|
4860
4654
|
exports.default = FieldSummaryTooltip;
|
|
4861
4655
|
|
|
4862
4656
|
/***/ }),
|
|
4863
|
-
/*
|
|
4657
|
+
/* 227 */
|
|
4864
4658
|
/***/ (function(module, exports) {
|
|
4865
4659
|
|
|
4866
4660
|
module.exports = require("@splunk/react-field-summary/components/FieldSummary");
|
|
4867
4661
|
|
|
4868
4662
|
/***/ }),
|
|
4869
|
-
/*
|
|
4663
|
+
/* 228 */
|
|
4870
4664
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4871
4665
|
|
|
4872
4666
|
"use strict";
|
|
4873
4667
|
|
|
4874
4668
|
|
|
4875
|
-
var _slicedToArray = __webpack_require__(
|
|
4669
|
+
var _slicedToArray = __webpack_require__(6);
|
|
4876
4670
|
|
|
4877
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
4671
|
+
var _taggedTemplateLiteral = __webpack_require__(79);
|
|
4878
4672
|
|
|
4879
4673
|
var _templateObject;
|
|
4880
4674
|
|
|
@@ -4884,21 +4678,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4884
4678
|
|
|
4885
4679
|
var React = __webpack_require__(0);
|
|
4886
4680
|
|
|
4887
|
-
var Popover_1 = __webpack_require__(
|
|
4681
|
+
var Popover_1 = __webpack_require__(82);
|
|
4888
4682
|
|
|
4889
|
-
var ControlGroup_1 = __webpack_require__(
|
|
4683
|
+
var ControlGroup_1 = __webpack_require__(229);
|
|
4890
4684
|
|
|
4891
|
-
var Button_1 = __webpack_require__(
|
|
4685
|
+
var Button_1 = __webpack_require__(143);
|
|
4892
4686
|
|
|
4893
|
-
var Text_1 = __webpack_require__(
|
|
4687
|
+
var Text_1 = __webpack_require__(230);
|
|
4894
4688
|
|
|
4895
|
-
var Message_1 = __webpack_require__(
|
|
4689
|
+
var Message_1 = __webpack_require__(144);
|
|
4896
4690
|
|
|
4897
|
-
var Select_1 = __webpack_require__(
|
|
4691
|
+
var Select_1 = __webpack_require__(231);
|
|
4898
4692
|
|
|
4899
|
-
var Link_1 = __webpack_require__(
|
|
4693
|
+
var Link_1 = __webpack_require__(232);
|
|
4900
4694
|
|
|
4901
|
-
var Heading_1 = __webpack_require__(
|
|
4695
|
+
var Heading_1 = __webpack_require__(145);
|
|
4902
4696
|
|
|
4903
4697
|
var lodash_1 = __webpack_require__(3);
|
|
4904
4698
|
|
|
@@ -4910,12 +4704,12 @@ var numberUtils_1 = __webpack_require__(11);
|
|
|
4910
4704
|
|
|
4911
4705
|
var pick_1 = __webpack_require__(30);
|
|
4912
4706
|
|
|
4913
|
-
var EventUtils_1 = __webpack_require__(
|
|
4707
|
+
var EventUtils_1 = __webpack_require__(141); // custom popover sizing for Enterprise vs. Prisma themes - additional px for Prisma theme to fit controls
|
|
4914
4708
|
|
|
4915
4709
|
|
|
4916
4710
|
var TimePopoverContainer = styled_components_1.default.div.withConfig({
|
|
4917
4711
|
displayName: "TimeControlsPopover__TimePopoverContainer",
|
|
4918
|
-
componentId: "fj32ze-0"
|
|
4712
|
+
componentId: "sc-fj32ze-0"
|
|
4919
4713
|
})(["padding:20px;width:", ";.time-drilldown-header{margin:0px;}[data-test='nearby-controls']{margin:0px;width:", ";}"], function (props) {
|
|
4920
4714
|
return (0, pick_1.default)({
|
|
4921
4715
|
enterprise: '372px',
|
|
@@ -4929,11 +4723,11 @@ var TimePopoverContainer = styled_components_1.default.div.withConfig({
|
|
|
4929
4723
|
});
|
|
4930
4724
|
var TimeTable = styled_components_1.default.table.withConfig({
|
|
4931
4725
|
displayName: "TimeControlsPopover__TimeTable",
|
|
4932
|
-
componentId: "fj32ze-1"
|
|
4726
|
+
componentId: "sc-fj32ze-1"
|
|
4933
4727
|
})(["width:100%;display:table;border-collapse:separate;box-sizing:border-box;text-indent:initial;border-spacing:2px;border-color:grey;"]);
|
|
4934
4728
|
var NearbyValueRow = styled_components_1.default.div.withConfig({
|
|
4935
4729
|
displayName: "TimeControlsPopover__NearbyValueRow",
|
|
4936
|
-
componentId: "fj32ze-2"
|
|
4730
|
+
componentId: "sc-fj32ze-2"
|
|
4937
4731
|
})(["display:flex;align-items:flex-start;justify-content:center;"]);
|
|
4938
4732
|
var SectionHeading = (0, styled_components_1.default)(Heading_1.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: 20px;\n"])));
|
|
4939
4733
|
var rangeTypeInputStyle = {
|
|
@@ -5137,25 +4931,25 @@ TimeControlsPopover.defaultProps = {
|
|
|
5137
4931
|
exports.default = TimeControlsPopover;
|
|
5138
4932
|
|
|
5139
4933
|
/***/ }),
|
|
5140
|
-
/*
|
|
4934
|
+
/* 229 */
|
|
5141
4935
|
/***/ (function(module, exports) {
|
|
5142
4936
|
|
|
5143
4937
|
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
5144
4938
|
|
|
5145
4939
|
/***/ }),
|
|
5146
|
-
/*
|
|
4940
|
+
/* 230 */
|
|
5147
4941
|
/***/ (function(module, exports) {
|
|
5148
4942
|
|
|
5149
4943
|
module.exports = require("@splunk/react-ui/Text");
|
|
5150
4944
|
|
|
5151
4945
|
/***/ }),
|
|
5152
|
-
/*
|
|
4946
|
+
/* 231 */
|
|
5153
4947
|
/***/ (function(module, exports) {
|
|
5154
4948
|
|
|
5155
4949
|
module.exports = require("@splunk/react-ui/Select");
|
|
5156
4950
|
|
|
5157
4951
|
/***/ }),
|
|
5158
|
-
/*
|
|
4952
|
+
/* 232 */
|
|
5159
4953
|
/***/ (function(module, exports) {
|
|
5160
4954
|
|
|
5161
4955
|
module.exports = require("@splunk/react-ui/Link");
|