@splunk/visualizations 26.2.0 → 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 +173 -301
- 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 +17198 -24224
- 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/ChoroplethSvg.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 = 204);
|
|
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.
|
|
968
|
-
|
|
969
|
-
var lodash_1 = __webpack_require__(3);
|
|
970
|
-
|
|
971
|
-
var schemaUtils_1 = __webpack_require__(24);
|
|
972
|
-
|
|
973
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
974
|
-
|
|
975
|
-
var dynamicOptionsDSLType = {
|
|
976
|
-
type: 'string',
|
|
977
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
978
|
-
};
|
|
979
|
-
/**
|
|
980
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
981
|
-
* @param optionsSchema a visualization's options schema
|
|
982
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
983
|
-
*/
|
|
953
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
984
954
|
|
|
985
|
-
|
|
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
|
-
});
|
|
955
|
+
var lodash_1 = __webpack_require__(3); // included for backwards compatibility
|
|
1013
956
|
|
|
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
957
|
|
|
1021
|
-
|
|
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
|
-
}
|
|
958
|
+
var visualization_schemas_1 = __webpack_require__(10);
|
|
1038
959
|
|
|
1039
|
-
exports
|
|
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
|
|
@@ -1261,7 +1182,7 @@ var i18n_1 = __webpack_require__(2);
|
|
|
1261
1182
|
|
|
1262
1183
|
var Message_1 = __webpack_require__(12);
|
|
1263
1184
|
|
|
1264
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1185
|
+
var FixedSizeContainer_1 = __webpack_require__(18);
|
|
1265
1186
|
/**
|
|
1266
1187
|
* @method shouldShowIconPlaceholder
|
|
1267
1188
|
* @param {object} dataSources
|
|
@@ -1338,7 +1259,7 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
1338
1259
|
"use strict";
|
|
1339
1260
|
|
|
1340
1261
|
|
|
1341
|
-
var _defineProperty = __webpack_require__(
|
|
1262
|
+
var _defineProperty = __webpack_require__(13);
|
|
1342
1263
|
|
|
1343
1264
|
Object.defineProperty(exports, "__esModule", {
|
|
1344
1265
|
value: true
|
|
@@ -1349,7 +1270,7 @@ var T = __webpack_require__(1);
|
|
|
1349
1270
|
|
|
1350
1271
|
var lodash_1 = __webpack_require__(3);
|
|
1351
1272
|
|
|
1352
|
-
var DataSource_1 = __webpack_require__(
|
|
1273
|
+
var DataSource_1 = __webpack_require__(21);
|
|
1353
1274
|
|
|
1354
1275
|
exports.SortParamsPropTypes = T.shape({
|
|
1355
1276
|
currentSortKey: T.string,
|
|
@@ -1505,7 +1426,7 @@ __exportStar(__webpack_require__(41), exports);
|
|
|
1505
1426
|
|
|
1506
1427
|
__exportStar(__webpack_require__(42), exports);
|
|
1507
1428
|
|
|
1508
|
-
__exportStar(__webpack_require__(
|
|
1429
|
+
__exportStar(__webpack_require__(21), exports);
|
|
1509
1430
|
|
|
1510
1431
|
__exportStar(__webpack_require__(43), exports);
|
|
1511
1432
|
|
|
@@ -1519,13 +1440,13 @@ __exportStar(__webpack_require__(47), exports);
|
|
|
1519
1440
|
|
|
1520
1441
|
__exportStar(__webpack_require__(48), exports);
|
|
1521
1442
|
|
|
1522
|
-
__exportStar(__webpack_require__(
|
|
1443
|
+
__exportStar(__webpack_require__(22), exports);
|
|
1523
1444
|
|
|
1524
|
-
__exportStar(__webpack_require__(
|
|
1445
|
+
__exportStar(__webpack_require__(8), exports);
|
|
1525
1446
|
|
|
1526
|
-
__exportStar(__webpack_require__(
|
|
1447
|
+
__exportStar(__webpack_require__(23), exports);
|
|
1527
1448
|
|
|
1528
|
-
__exportStar(__webpack_require__(
|
|
1449
|
+
__exportStar(__webpack_require__(49), exports);
|
|
1529
1450
|
|
|
1530
1451
|
__exportStar(__webpack_require__(50), exports);
|
|
1531
1452
|
|
|
@@ -1537,8 +1458,6 @@ __exportStar(__webpack_require__(53), exports);
|
|
|
1537
1458
|
|
|
1538
1459
|
__exportStar(__webpack_require__(54), exports);
|
|
1539
1460
|
|
|
1540
|
-
__exportStar(__webpack_require__(55), exports);
|
|
1541
|
-
|
|
1542
1461
|
/***/ }),
|
|
1543
1462
|
/* 41 */
|
|
1544
1463
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1703,18 +1622,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1703
1622
|
"use strict";
|
|
1704
1623
|
|
|
1705
1624
|
|
|
1706
|
-
|
|
1707
|
-
value: true
|
|
1708
|
-
});
|
|
1709
|
-
|
|
1710
|
-
/***/ }),
|
|
1711
|
-
/* 56 */
|
|
1712
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1713
|
-
|
|
1714
|
-
"use strict";
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
var _slicedToArray = __webpack_require__(7);
|
|
1625
|
+
var _slicedToArray = __webpack_require__(6);
|
|
1718
1626
|
|
|
1719
1627
|
Object.defineProperty(exports, "__esModule", {
|
|
1720
1628
|
value: true
|
|
@@ -1724,15 +1632,15 @@ var React = __webpack_require__(0);
|
|
|
1724
1632
|
|
|
1725
1633
|
var lodash_1 = __webpack_require__(3);
|
|
1726
1634
|
|
|
1727
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1635
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(56);
|
|
1728
1636
|
|
|
1729
|
-
var Options_1 = __webpack_require__(
|
|
1637
|
+
var Options_1 = __webpack_require__(17);
|
|
1730
1638
|
|
|
1731
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1639
|
+
var SanitizeProps_1 = __webpack_require__(57);
|
|
1732
1640
|
|
|
1733
1641
|
var TimezoneContext_1 = __webpack_require__(32);
|
|
1734
1642
|
|
|
1735
|
-
var moment_1 = __webpack_require__(
|
|
1643
|
+
var moment_1 = __webpack_require__(58);
|
|
1736
1644
|
|
|
1737
1645
|
var FeatureFlagContext_1 = __webpack_require__(28);
|
|
1738
1646
|
|
|
@@ -1742,31 +1650,31 @@ var hocUtils_1 = __webpack_require__(34);
|
|
|
1742
1650
|
|
|
1743
1651
|
var JSONSchemaUtils_1 = __webpack_require__(35);
|
|
1744
1652
|
|
|
1745
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
1653
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(59);
|
|
1746
1654
|
|
|
1747
1655
|
var id_1 = __webpack_require__(31);
|
|
1748
1656
|
|
|
1749
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1657
|
+
var SplunkVisualization_1 = __webpack_require__(60);
|
|
1750
1658
|
|
|
1751
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1659
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
1752
1660
|
|
|
1753
1661
|
var getSorting_1 = __webpack_require__(38);
|
|
1754
1662
|
|
|
1755
1663
|
var getPagination_1 = __webpack_require__(39);
|
|
1756
1664
|
|
|
1757
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1665
|
+
var useDeepMemo_1 = __webpack_require__(61);
|
|
1758
1666
|
|
|
1759
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1667
|
+
var MissingPropsMessage_1 = __webpack_require__(62);
|
|
1760
1668
|
|
|
1761
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1669
|
+
var withEditModeCover_1 = __webpack_require__(63);
|
|
1762
1670
|
|
|
1763
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1671
|
+
var withPlaceholder_1 = __webpack_require__(64);
|
|
1764
1672
|
|
|
1765
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
1673
|
+
var useDownsampleDataSources_1 = __webpack_require__(65);
|
|
1766
1674
|
|
|
1767
|
-
var dataUtils_1 = __webpack_require__(
|
|
1675
|
+
var dataUtils_1 = __webpack_require__(15);
|
|
1768
1676
|
|
|
1769
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
1677
|
+
var featureFlagUtils_1 = __webpack_require__(67);
|
|
1770
1678
|
/**
|
|
1771
1679
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1772
1680
|
* @param {DashboardVizOpts} opts
|
|
@@ -2098,37 +2006,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2098
2006
|
exports.default = withDashboardViz;
|
|
2099
2007
|
|
|
2100
2008
|
/***/ }),
|
|
2101
|
-
/*
|
|
2009
|
+
/* 56 */
|
|
2102
2010
|
/***/ (function(module, exports) {
|
|
2103
2011
|
|
|
2104
2012
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2105
2013
|
|
|
2106
2014
|
/***/ }),
|
|
2107
|
-
/*
|
|
2015
|
+
/* 57 */
|
|
2108
2016
|
/***/ (function(module, exports) {
|
|
2109
2017
|
|
|
2110
2018
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2111
2019
|
|
|
2112
2020
|
/***/ }),
|
|
2113
|
-
/*
|
|
2021
|
+
/* 58 */
|
|
2114
2022
|
/***/ (function(module, exports) {
|
|
2115
2023
|
|
|
2116
2024
|
module.exports = require("@splunk/moment");
|
|
2117
2025
|
|
|
2118
2026
|
/***/ }),
|
|
2119
|
-
/*
|
|
2027
|
+
/* 59 */
|
|
2120
2028
|
/***/ (function(module, exports) {
|
|
2121
2029
|
|
|
2122
2030
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2123
2031
|
|
|
2124
2032
|
/***/ }),
|
|
2125
|
-
/*
|
|
2033
|
+
/* 60 */
|
|
2126
2034
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2127
2035
|
|
|
2128
2036
|
"use strict";
|
|
2129
2037
|
|
|
2130
2038
|
|
|
2131
|
-
var _classCallCheck = __webpack_require__(
|
|
2039
|
+
var _classCallCheck = __webpack_require__(9);
|
|
2132
2040
|
|
|
2133
2041
|
Object.defineProperty(exports, "__esModule", {
|
|
2134
2042
|
value: true
|
|
@@ -2140,7 +2048,7 @@ var T = __webpack_require__(1);
|
|
|
2140
2048
|
|
|
2141
2049
|
var lodash_1 = __webpack_require__(3);
|
|
2142
2050
|
|
|
2143
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2051
|
+
var VizActionHandler_1 = __webpack_require__(22); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2144
2052
|
|
|
2145
2053
|
|
|
2146
2054
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2273,7 +2181,7 @@ SplunkVisualization.defaultProps = {
|
|
|
2273
2181
|
exports.default = SplunkVisualization;
|
|
2274
2182
|
|
|
2275
2183
|
/***/ }),
|
|
2276
|
-
/*
|
|
2184
|
+
/* 61 */
|
|
2277
2185
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2278
2186
|
|
|
2279
2187
|
"use strict";
|
|
@@ -2318,7 +2226,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
2318
2226
|
exports.useDeepMemo = useDeepMemo;
|
|
2319
2227
|
|
|
2320
2228
|
/***/ }),
|
|
2321
|
-
/*
|
|
2229
|
+
/* 62 */
|
|
2322
2230
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2323
2231
|
|
|
2324
2232
|
"use strict";
|
|
@@ -2337,7 +2245,7 @@ var i18n_1 = __webpack_require__(2);
|
|
|
2337
2245
|
|
|
2338
2246
|
var Message_1 = __webpack_require__(12);
|
|
2339
2247
|
|
|
2340
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2248
|
+
var FixedSizeContainer_1 = __webpack_require__(18);
|
|
2341
2249
|
/**
|
|
2342
2250
|
* @method isMissing
|
|
2343
2251
|
* @param {any} v
|
|
@@ -2398,7 +2306,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
2398
2306
|
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
2399
2307
|
|
|
2400
2308
|
/***/ }),
|
|
2401
|
-
/*
|
|
2309
|
+
/* 63 */
|
|
2402
2310
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2403
2311
|
|
|
2404
2312
|
"use strict";
|
|
@@ -2412,14 +2320,14 @@ var React = __webpack_require__(0);
|
|
|
2412
2320
|
|
|
2413
2321
|
var styled_components_1 = __webpack_require__(4);
|
|
2414
2322
|
|
|
2415
|
-
var hocUtils_1 = __webpack_require__(
|
|
2323
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
2416
2324
|
|
|
2417
2325
|
var Cover = styled_components_1.default.div.withConfig({
|
|
2418
2326
|
displayName: "withEditModeCover__Cover",
|
|
2419
2327
|
componentId: "sc-1gsbnxb-0"
|
|
2420
2328
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2421
2329
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2422
|
-
'data-splunk-visualization-version': "26.
|
|
2330
|
+
'data-splunk-visualization-version': "26.3.0 - a1ef240a6"
|
|
2423
2331
|
}).withConfig({
|
|
2424
2332
|
displayName: "withEditModeCover__Blocker",
|
|
2425
2333
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2450,7 +2358,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
2450
2358
|
exports.default = withEditModeCover;
|
|
2451
2359
|
|
|
2452
2360
|
/***/ }),
|
|
2453
|
-
/*
|
|
2361
|
+
/* 64 */
|
|
2454
2362
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2455
2363
|
|
|
2456
2364
|
"use strict";
|
|
@@ -2462,15 +2370,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2462
2370
|
|
|
2463
2371
|
var React = __webpack_require__(0);
|
|
2464
2372
|
|
|
2465
|
-
var colorUtils_1 = __webpack_require__(
|
|
2373
|
+
var colorUtils_1 = __webpack_require__(16);
|
|
2466
2374
|
|
|
2467
|
-
var variables_1 = __webpack_require__(
|
|
2375
|
+
var variables_1 = __webpack_require__(14);
|
|
2468
2376
|
|
|
2469
2377
|
var IconPlaceholder_1 = __webpack_require__(37);
|
|
2470
2378
|
|
|
2471
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2379
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
2472
2380
|
|
|
2473
|
-
var hocUtils_1 = __webpack_require__(
|
|
2381
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
2474
2382
|
|
|
2475
2383
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2476
2384
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -2514,13 +2422,13 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
2514
2422
|
exports.default = withPlaceholder;
|
|
2515
2423
|
|
|
2516
2424
|
/***/ }),
|
|
2517
|
-
/*
|
|
2425
|
+
/* 65 */
|
|
2518
2426
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2519
2427
|
|
|
2520
2428
|
"use strict";
|
|
2521
2429
|
|
|
2522
2430
|
|
|
2523
|
-
var _slicedToArray = __webpack_require__(
|
|
2431
|
+
var _slicedToArray = __webpack_require__(6);
|
|
2524
2432
|
|
|
2525
2433
|
Object.defineProperty(exports, "__esModule", {
|
|
2526
2434
|
value: true
|
|
@@ -2530,11 +2438,11 @@ var react_1 = __webpack_require__(0);
|
|
|
2530
2438
|
|
|
2531
2439
|
var lodash_1 = __webpack_require__(3);
|
|
2532
2440
|
|
|
2533
|
-
var dataUtils_1 = __webpack_require__(
|
|
2441
|
+
var dataUtils_1 = __webpack_require__(15);
|
|
2534
2442
|
|
|
2535
2443
|
var usePrevious_1 = __webpack_require__(33);
|
|
2536
2444
|
|
|
2537
|
-
var useGetXAndYFields_1 = __webpack_require__(
|
|
2445
|
+
var useGetXAndYFields_1 = __webpack_require__(66);
|
|
2538
2446
|
|
|
2539
2447
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
2540
2448
|
var dataSources = _ref.dataSources,
|
|
@@ -2603,13 +2511,13 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2603
2511
|
exports.default = useDownsampleDataSources;
|
|
2604
2512
|
|
|
2605
2513
|
/***/ }),
|
|
2606
|
-
/*
|
|
2514
|
+
/* 66 */
|
|
2607
2515
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2608
2516
|
|
|
2609
2517
|
"use strict";
|
|
2610
2518
|
|
|
2611
2519
|
|
|
2612
|
-
var _toConsumableArray = __webpack_require__(
|
|
2520
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2613
2521
|
|
|
2614
2522
|
Object.defineProperty(exports, "__esModule", {
|
|
2615
2523
|
value: true
|
|
@@ -2617,7 +2525,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2617
2525
|
|
|
2618
2526
|
var react_1 = __webpack_require__(0);
|
|
2619
2527
|
|
|
2620
|
-
var Options_1 = __webpack_require__(
|
|
2528
|
+
var Options_1 = __webpack_require__(17);
|
|
2621
2529
|
/**
|
|
2622
2530
|
* Hook that evaluates the DSL for subset of a viz's options needed to determine
|
|
2623
2531
|
* its x and y fields as well as the types of all its fields.
|
|
@@ -2717,7 +2625,7 @@ var useGetXAndYFields = function useGetXAndYFields(_ref) {
|
|
|
2717
2625
|
exports.default = useGetXAndYFields;
|
|
2718
2626
|
|
|
2719
2627
|
/***/ }),
|
|
2720
|
-
/*
|
|
2628
|
+
/* 67 */
|
|
2721
2629
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2722
2630
|
|
|
2723
2631
|
"use strict";
|
|
@@ -2728,7 +2636,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2728
2636
|
});
|
|
2729
2637
|
exports.getFeatureFlag = void 0;
|
|
2730
2638
|
|
|
2731
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
2639
|
+
var FeatureFlags_1 = __webpack_require__(68);
|
|
2732
2640
|
|
|
2733
2641
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
2734
2642
|
// look for feature flag in context first
|
|
@@ -2752,69 +2660,68 @@ var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
|
2752
2660
|
exports.getFeatureFlag = getFeatureFlag;
|
|
2753
2661
|
|
|
2754
2662
|
/***/ }),
|
|
2755
|
-
/*
|
|
2663
|
+
/* 68 */
|
|
2756
2664
|
/***/ (function(module, exports) {
|
|
2757
2665
|
|
|
2758
2666
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
2759
2667
|
|
|
2760
2668
|
/***/ }),
|
|
2669
|
+
/* 69 */,
|
|
2761
2670
|
/* 70 */,
|
|
2762
|
-
/* 71
|
|
2763
|
-
/* 72 */
|
|
2671
|
+
/* 71 */
|
|
2764
2672
|
/***/ (function(module, exports) {
|
|
2765
2673
|
|
|
2766
2674
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
2767
2675
|
|
|
2768
2676
|
/***/ }),
|
|
2769
|
-
/*
|
|
2770
|
-
/* 74 */
|
|
2677
|
+
/* 72 */
|
|
2771
2678
|
/***/ (function(module, exports) {
|
|
2772
2679
|
|
|
2773
2680
|
module.exports = require("@splunk/visualization-icons");
|
|
2774
2681
|
|
|
2775
2682
|
/***/ }),
|
|
2683
|
+
/* 73 */,
|
|
2684
|
+
/* 74 */,
|
|
2776
2685
|
/* 75 */,
|
|
2777
2686
|
/* 76 */,
|
|
2778
2687
|
/* 77 */,
|
|
2779
2688
|
/* 78 */,
|
|
2780
2689
|
/* 79 */,
|
|
2781
2690
|
/* 80 */,
|
|
2782
|
-
/* 81
|
|
2783
|
-
/* 82 */,
|
|
2784
|
-
/* 83 */
|
|
2691
|
+
/* 81 */
|
|
2785
2692
|
/***/ (function(module, exports) {
|
|
2786
2693
|
|
|
2787
2694
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
2788
2695
|
|
|
2789
2696
|
/***/ }),
|
|
2790
|
-
/*
|
|
2791
|
-
/*
|
|
2697
|
+
/* 82 */,
|
|
2698
|
+
/* 83 */
|
|
2792
2699
|
/***/ (function(module, exports) {
|
|
2793
2700
|
|
|
2794
2701
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
2795
2702
|
|
|
2796
2703
|
/***/ }),
|
|
2704
|
+
/* 84 */,
|
|
2705
|
+
/* 85 */,
|
|
2797
2706
|
/* 86 */,
|
|
2798
2707
|
/* 87 */,
|
|
2799
2708
|
/* 88 */,
|
|
2800
2709
|
/* 89 */,
|
|
2801
2710
|
/* 90 */,
|
|
2802
2711
|
/* 91 */,
|
|
2803
|
-
/* 92
|
|
2804
|
-
/* 93 */,
|
|
2805
|
-
/* 94 */
|
|
2712
|
+
/* 92 */
|
|
2806
2713
|
/***/ (function(module, exports) {
|
|
2807
2714
|
|
|
2808
2715
|
module.exports = require("@babel/runtime/helpers/inherits");
|
|
2809
2716
|
|
|
2810
2717
|
/***/ }),
|
|
2811
|
-
/*
|
|
2718
|
+
/* 93 */
|
|
2812
2719
|
/***/ (function(module, exports) {
|
|
2813
2720
|
|
|
2814
2721
|
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
2815
2722
|
|
|
2816
2723
|
/***/ }),
|
|
2817
|
-
/*
|
|
2724
|
+
/* 94 */
|
|
2818
2725
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2819
2726
|
|
|
2820
2727
|
"use strict";
|
|
@@ -2838,6 +2745,8 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
2838
2745
|
/* harmony default export */ __webpack_exports__["default"] = (VizStyleWrapper);
|
|
2839
2746
|
|
|
2840
2747
|
/***/ }),
|
|
2748
|
+
/* 95 */,
|
|
2749
|
+
/* 96 */,
|
|
2841
2750
|
/* 97 */,
|
|
2842
2751
|
/* 98 */,
|
|
2843
2752
|
/* 99 */,
|
|
@@ -2853,9 +2762,7 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
2853
2762
|
/* 109 */,
|
|
2854
2763
|
/* 110 */,
|
|
2855
2764
|
/* 111 */,
|
|
2856
|
-
/* 112
|
|
2857
|
-
/* 113 */,
|
|
2858
|
-
/* 114 */
|
|
2765
|
+
/* 112 */
|
|
2859
2766
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2860
2767
|
|
|
2861
2768
|
"use strict";
|
|
@@ -2878,6 +2785,8 @@ var StaticBackgroundColorEditor = {
|
|
|
2878
2785
|
/* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
|
|
2879
2786
|
|
|
2880
2787
|
/***/ }),
|
|
2788
|
+
/* 113 */,
|
|
2789
|
+
/* 114 */,
|
|
2881
2790
|
/* 115 */,
|
|
2882
2791
|
/* 116 */,
|
|
2883
2792
|
/* 117 */,
|
|
@@ -2929,24 +2838,21 @@ var StaticBackgroundColorEditor = {
|
|
|
2929
2838
|
/* 163 */,
|
|
2930
2839
|
/* 164 */,
|
|
2931
2840
|
/* 165 */,
|
|
2932
|
-
/* 166
|
|
2933
|
-
/* 167 */,
|
|
2934
|
-
/* 168 */,
|
|
2935
|
-
/* 169 */
|
|
2841
|
+
/* 166 */
|
|
2936
2842
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2937
2843
|
|
|
2938
2844
|
"use strict";
|
|
2939
2845
|
|
|
2940
2846
|
|
|
2941
|
-
var _classCallCheck = __webpack_require__(
|
|
2847
|
+
var _classCallCheck = __webpack_require__(9);
|
|
2942
2848
|
|
|
2943
2849
|
var _createClass = __webpack_require__(25);
|
|
2944
2850
|
|
|
2945
|
-
var _inherits = __webpack_require__(
|
|
2851
|
+
var _inherits = __webpack_require__(92);
|
|
2946
2852
|
|
|
2947
|
-
var _possibleConstructorReturn = __webpack_require__(
|
|
2853
|
+
var _possibleConstructorReturn = __webpack_require__(93);
|
|
2948
2854
|
|
|
2949
|
-
var _getPrototypeOf = __webpack_require__(
|
|
2855
|
+
var _getPrototypeOf = __webpack_require__(83);
|
|
2950
2856
|
|
|
2951
2857
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2952
2858
|
|
|
@@ -2960,7 +2866,7 @@ var React = __webpack_require__(0);
|
|
|
2960
2866
|
|
|
2961
2867
|
var lodash_1 = __webpack_require__(3);
|
|
2962
2868
|
|
|
2963
|
-
var SvgMutator_1 = __webpack_require__(
|
|
2869
|
+
var SvgMutator_1 = __webpack_require__(209);
|
|
2964
2870
|
/**
|
|
2965
2871
|
* This react component simply take an SVG document, and mutates it by applying data to the document according to
|
|
2966
2872
|
* dataBindings. The data (data prop) is processed by performing the mutation once for each 'row' of the data even though the data is formatted as columns.
|
|
@@ -3047,6 +2953,7 @@ var SvgChoroplethDynamic = /*#__PURE__*/function (_React$Component) {
|
|
|
3047
2953
|
renderCT: Date.now()
|
|
3048
2954
|
});
|
|
3049
2955
|
} catch (e) {
|
|
2956
|
+
// eslint-disable-next-line no-console
|
|
3050
2957
|
console.error(e);
|
|
3051
2958
|
}
|
|
3052
2959
|
}
|
|
@@ -3065,6 +2972,7 @@ var SvgChoroplethDynamic = /*#__PURE__*/function (_React$Component) {
|
|
|
3065
2972
|
|
|
3066
2973
|
if (svgNode) {
|
|
3067
2974
|
return React.createElement("div", {
|
|
2975
|
+
"data-test": "svgChoroplethDynamic",
|
|
3068
2976
|
style: {
|
|
3069
2977
|
width: width,
|
|
3070
2978
|
height: height
|
|
@@ -3087,6 +2995,9 @@ SvgChoroplethDynamic.defaultProps = {
|
|
|
3087
2995
|
};
|
|
3088
2996
|
|
|
3089
2997
|
/***/ }),
|
|
2998
|
+
/* 167 */,
|
|
2999
|
+
/* 168 */,
|
|
3000
|
+
/* 169 */,
|
|
3090
3001
|
/* 170 */,
|
|
3091
3002
|
/* 171 */,
|
|
3092
3003
|
/* 172 */,
|
|
@@ -3121,11 +3032,7 @@ SvgChoroplethDynamic.defaultProps = {
|
|
|
3121
3032
|
/* 201 */,
|
|
3122
3033
|
/* 202 */,
|
|
3123
3034
|
/* 203 */,
|
|
3124
|
-
/* 204
|
|
3125
|
-
/* 205 */,
|
|
3126
|
-
/* 206 */,
|
|
3127
|
-
/* 207 */,
|
|
3128
|
-
/* 208 */
|
|
3035
|
+
/* 204 */
|
|
3129
3036
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3130
3037
|
|
|
3131
3038
|
"use strict";
|
|
@@ -3157,25 +3064,25 @@ var lodash_1 = __webpack_require__(3);
|
|
|
3157
3064
|
|
|
3158
3065
|
var FeatureFlagContext_1 = __webpack_require__(28);
|
|
3159
3066
|
|
|
3160
|
-
var ImageContext_1 = __webpack_require__(
|
|
3067
|
+
var ImageContext_1 = __webpack_require__(205);
|
|
3161
3068
|
|
|
3162
|
-
var FileDownloader_1 = __webpack_require__(
|
|
3069
|
+
var FileDownloader_1 = __webpack_require__(206);
|
|
3163
3070
|
|
|
3164
|
-
var Downloader_1 = __webpack_require__(
|
|
3071
|
+
var Downloader_1 = __webpack_require__(207);
|
|
3165
3072
|
|
|
3166
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3073
|
+
var withDashboardViz_1 = __webpack_require__(55);
|
|
3167
3074
|
|
|
3168
|
-
var PureChoroplethSvg_1 = __webpack_require__(
|
|
3075
|
+
var PureChoroplethSvg_1 = __webpack_require__(208);
|
|
3169
3076
|
|
|
3170
|
-
var SvgChoroplethDynamic_1 = __webpack_require__(
|
|
3077
|
+
var SvgChoroplethDynamic_1 = __webpack_require__(166);
|
|
3171
3078
|
|
|
3172
|
-
var config_1 = __webpack_require__(
|
|
3079
|
+
var config_1 = __webpack_require__(213);
|
|
3173
3080
|
|
|
3174
3081
|
var IconPlaceholder_1 = __webpack_require__(37);
|
|
3175
3082
|
|
|
3176
|
-
var urlUtils_1 = __webpack_require__(
|
|
3083
|
+
var urlUtils_1 = __webpack_require__(214);
|
|
3177
3084
|
|
|
3178
|
-
var ErrorMessage_1 = __webpack_require__(
|
|
3085
|
+
var ErrorMessage_1 = __webpack_require__(215);
|
|
3179
3086
|
|
|
3180
3087
|
exports.config = config_1.default;
|
|
3181
3088
|
exports.PureChoroplethSvg = PureChoroplethSvg_1.default; // todo: need remove when deleting @splunk/react-visualizations package
|
|
@@ -3281,31 +3188,31 @@ var platformViz = (0, withDashboardViz_1.default)({
|
|
|
3281
3188
|
exports.default = platformViz;
|
|
3282
3189
|
|
|
3283
3190
|
/***/ }),
|
|
3284
|
-
/*
|
|
3191
|
+
/* 205 */
|
|
3285
3192
|
/***/ (function(module, exports) {
|
|
3286
3193
|
|
|
3287
3194
|
module.exports = require("@splunk/visualization-context/ImageContext");
|
|
3288
3195
|
|
|
3289
3196
|
/***/ }),
|
|
3290
|
-
/*
|
|
3197
|
+
/* 206 */
|
|
3291
3198
|
/***/ (function(module, exports) {
|
|
3292
3199
|
|
|
3293
3200
|
module.exports = require("@splunk/visualizations-shared/FileDownloader");
|
|
3294
3201
|
|
|
3295
3202
|
/***/ }),
|
|
3296
|
-
/*
|
|
3203
|
+
/* 207 */
|
|
3297
3204
|
/***/ (function(module, exports) {
|
|
3298
3205
|
|
|
3299
3206
|
module.exports = require("@splunk/visualizations-shared/Downloader");
|
|
3300
3207
|
|
|
3301
3208
|
/***/ }),
|
|
3302
|
-
/*
|
|
3209
|
+
/* 208 */
|
|
3303
3210
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3304
3211
|
|
|
3305
3212
|
"use strict";
|
|
3306
3213
|
|
|
3307
3214
|
|
|
3308
|
-
var _slicedToArray = __webpack_require__(
|
|
3215
|
+
var _slicedToArray = __webpack_require__(6);
|
|
3309
3216
|
|
|
3310
3217
|
var __rest = this && this.__rest || function (s, e) {
|
|
3311
3218
|
var t = {};
|
|
@@ -3331,23 +3238,23 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
3331
3238
|
|
|
3332
3239
|
var lodash_1 = __webpack_require__(3);
|
|
3333
3240
|
|
|
3334
|
-
var style_1 = __webpack_require__(
|
|
3241
|
+
var style_1 = __webpack_require__(19);
|
|
3335
3242
|
|
|
3336
3243
|
var SizeAwareWrapper_1 = __webpack_require__(26);
|
|
3337
3244
|
|
|
3338
|
-
var SvgChoroplethDynamic_1 = __webpack_require__(
|
|
3245
|
+
var SvgChoroplethDynamic_1 = __webpack_require__(166);
|
|
3339
3246
|
|
|
3340
|
-
var VizStyleWrapper_1 = __webpack_require__(
|
|
3247
|
+
var VizStyleWrapper_1 = __webpack_require__(94);
|
|
3341
3248
|
|
|
3342
3249
|
var Container = styled_components_1.default.div.withConfig({
|
|
3343
3250
|
displayName: "PureChoroplethSvg__Container",
|
|
3344
|
-
componentId: "m24jrf-0"
|
|
3251
|
+
componentId: "sc-m24jrf-0"
|
|
3345
3252
|
})(["position:relative;flex-direction:column;flex:1;display:flex;", ";"], function (props) {
|
|
3346
3253
|
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
3347
3254
|
});
|
|
3348
3255
|
var ChoroplethSvgWrapper = styled_components_1.default.div.withConfig({
|
|
3349
3256
|
displayName: "PureChoroplethSvg__ChoroplethSvgWrapper",
|
|
3350
|
-
componentId: "m24jrf-1"
|
|
3257
|
+
componentId: "sc-m24jrf-1"
|
|
3351
3258
|
})(["min-height:0px;flex:1;position:relative;"]);
|
|
3352
3259
|
|
|
3353
3260
|
var computeSvgDynamicProps = function computeSvgDynamicProps(_a) {
|
|
@@ -3425,13 +3332,13 @@ PureChoroplethSvg.defaultProps = {
|
|
|
3425
3332
|
exports.default = (0, styled_components_1.withTheme)(PureChoroplethSvg);
|
|
3426
3333
|
|
|
3427
3334
|
/***/ }),
|
|
3428
|
-
/*
|
|
3335
|
+
/* 209 */
|
|
3429
3336
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3430
3337
|
|
|
3431
3338
|
"use strict";
|
|
3432
3339
|
|
|
3433
3340
|
|
|
3434
|
-
var _classCallCheck = __webpack_require__(
|
|
3341
|
+
var _classCallCheck = __webpack_require__(9);
|
|
3435
3342
|
|
|
3436
3343
|
var _createClass = __webpack_require__(25);
|
|
3437
3344
|
|
|
@@ -3443,11 +3350,11 @@ exports.SvgMutator = exports.ERROR_NON_ATTRIBUTE_MUTATION = void 0;
|
|
|
3443
3350
|
|
|
3444
3351
|
var React = __webpack_require__(0);
|
|
3445
3352
|
|
|
3446
|
-
var XPath = __webpack_require__(
|
|
3353
|
+
var XPath = __webpack_require__(210);
|
|
3447
3354
|
|
|
3448
|
-
var xmldom_1 = __webpack_require__(
|
|
3355
|
+
var xmldom_1 = __webpack_require__(211);
|
|
3449
3356
|
|
|
3450
|
-
var jexl = __webpack_require__(
|
|
3357
|
+
var jexl = __webpack_require__(212);
|
|
3451
3358
|
/**
|
|
3452
3359
|
* An error message indicating that a mutation has attempted to target anything other than SVG attribute(s)
|
|
3453
3360
|
* @type {string}
|
|
@@ -3595,7 +3502,8 @@ var SvgMutator = /*#__PURE__*/function () {
|
|
|
3595
3502
|
},
|
|
3596
3503
|
frameBorder: 0,
|
|
3597
3504
|
sandbox: 'allow-scripts',
|
|
3598
|
-
id: 'svgChoroplethIframe'
|
|
3505
|
+
id: 'svgChoroplethIframe',
|
|
3506
|
+
'data-test': 'svgChoroplethIframe'
|
|
3599
3507
|
});
|
|
3600
3508
|
var intervalID = null;
|
|
3601
3509
|
var messageListener = null;
|
|
@@ -3608,6 +3516,7 @@ var SvgMutator = /*#__PURE__*/function () {
|
|
|
3608
3516
|
position: 'absolute'
|
|
3609
3517
|
},
|
|
3610
3518
|
id: 'svgDiv',
|
|
3519
|
+
'data-test': 'svgDiv',
|
|
3611
3520
|
ref: function ref(div) {
|
|
3612
3521
|
if (!div) {
|
|
3613
3522
|
// called on unmount
|
|
@@ -3852,25 +3761,25 @@ exports.SvgMutator = SvgMutator;
|
|
|
3852
3761
|
SvgMutator.serializer = new xmldom_1.XMLSerializer();
|
|
3853
3762
|
|
|
3854
3763
|
/***/ }),
|
|
3855
|
-
/*
|
|
3764
|
+
/* 210 */
|
|
3856
3765
|
/***/ (function(module, exports) {
|
|
3857
3766
|
|
|
3858
3767
|
module.exports = require("xpath");
|
|
3859
3768
|
|
|
3860
3769
|
/***/ }),
|
|
3861
|
-
/*
|
|
3770
|
+
/* 211 */
|
|
3862
3771
|
/***/ (function(module, exports) {
|
|
3863
3772
|
|
|
3864
3773
|
module.exports = require("@xmldom/xmldom");
|
|
3865
3774
|
|
|
3866
3775
|
/***/ }),
|
|
3867
|
-
/*
|
|
3776
|
+
/* 212 */
|
|
3868
3777
|
/***/ (function(module, exports) {
|
|
3869
3778
|
|
|
3870
3779
|
module.exports = require("jexl");
|
|
3871
3780
|
|
|
3872
3781
|
/***/ }),
|
|
3873
|
-
/*
|
|
3782
|
+
/* 213 */
|
|
3874
3783
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3875
3784
|
|
|
3876
3785
|
"use strict";
|
|
@@ -3884,23 +3793,23 @@ var i18n_1 = __webpack_require__(2);
|
|
|
3884
3793
|
|
|
3885
3794
|
var pick_1 = __webpack_require__(30);
|
|
3886
3795
|
|
|
3887
|
-
var variables_1 = __webpack_require__(
|
|
3796
|
+
var variables_1 = __webpack_require__(14);
|
|
3888
3797
|
|
|
3889
|
-
var
|
|
3798
|
+
var visualization_schemas_1 = __webpack_require__(10);
|
|
3890
3799
|
|
|
3891
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
3800
|
+
var PresetPalettes_1 = __webpack_require__(81);
|
|
3892
3801
|
|
|
3893
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3802
|
+
var visualization_icons_1 = __webpack_require__(72);
|
|
3894
3803
|
|
|
3895
|
-
var placeholders_1 = __webpack_require__(
|
|
3804
|
+
var placeholders_1 = __webpack_require__(71);
|
|
3896
3805
|
|
|
3897
|
-
var VizBehavior_1 = __webpack_require__(
|
|
3806
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
3898
3807
|
|
|
3899
3808
|
var configUtils_1 = __webpack_require__(27);
|
|
3900
3809
|
|
|
3901
|
-
var VizCategory_1 = __webpack_require__(
|
|
3810
|
+
var VizCategory_1 = __webpack_require__(23);
|
|
3902
3811
|
|
|
3903
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
3812
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(112);
|
|
3904
3813
|
|
|
3905
3814
|
var dataContract = {
|
|
3906
3815
|
requiredDataSources: [],
|
|
@@ -3947,43 +3856,6 @@ var defaultContext = {
|
|
|
3947
3856
|
value: '#5C33FF'
|
|
3948
3857
|
}]
|
|
3949
3858
|
};
|
|
3950
|
-
var optionsSchema = {
|
|
3951
|
-
areaColors: {
|
|
3952
|
-
default: '> areaValues|rangeValue(areaColorsRangeConfig)',
|
|
3953
|
-
description: 'Specify the dataSource field that should be used to set the svg fill attribute of identified areas.',
|
|
3954
|
-
type: 'array',
|
|
3955
|
-
items: {
|
|
3956
|
-
type: 'string',
|
|
3957
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
3958
|
-
}
|
|
3959
|
-
},
|
|
3960
|
-
areaIds: {
|
|
3961
|
-
default: '> primary|seriesByType("string")',
|
|
3962
|
-
description: 'Specify the dataSource field that should be used to identify each area in the Choropleth svg, where the area has been tagged with an id field.',
|
|
3963
|
-
type: 'array',
|
|
3964
|
-
items: {
|
|
3965
|
-
type: 'string'
|
|
3966
|
-
}
|
|
3967
|
-
},
|
|
3968
|
-
areaValues: {
|
|
3969
|
-
default: '> primary|seriesByType("number")',
|
|
3970
|
-
description: 'Specify the dataSource field that indicates the values for the areas.',
|
|
3971
|
-
type: 'array',
|
|
3972
|
-
items: {
|
|
3973
|
-
type: 'number'
|
|
3974
|
-
}
|
|
3975
|
-
},
|
|
3976
|
-
backgroundColor: {
|
|
3977
|
-
default: '> themes.defaultBackgroundColor',
|
|
3978
|
-
description: 'the background color behind the SVG, title, and description.',
|
|
3979
|
-
type: 'string',
|
|
3980
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
3981
|
-
},
|
|
3982
|
-
svg: {
|
|
3983
|
-
description: 'Literal svg, or svg data URI.',
|
|
3984
|
-
type: 'string'
|
|
3985
|
-
}
|
|
3986
|
-
};
|
|
3987
3859
|
var themes = {
|
|
3988
3860
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
3989
3861
|
return (0, pick_1.default)({
|
|
@@ -4085,7 +3957,7 @@ var config = {
|
|
|
4085
3957
|
dataContract: dataContract,
|
|
4086
3958
|
size: size,
|
|
4087
3959
|
defaultContext: defaultContext,
|
|
4088
|
-
optionsSchema:
|
|
3960
|
+
optionsSchema: visualization_schemas_1.choroplethSvgOptionsSchema,
|
|
4089
3961
|
requiredProps: ['svg'],
|
|
4090
3962
|
editorConfig: editorConfig,
|
|
4091
3963
|
events: {
|
|
@@ -4100,7 +3972,7 @@ var config = {
|
|
|
4100
3972
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
4101
3973
|
|
|
4102
3974
|
/***/ }),
|
|
4103
|
-
/*
|
|
3975
|
+
/* 214 */
|
|
4104
3976
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4105
3977
|
|
|
4106
3978
|
"use strict";
|
|
@@ -4123,7 +3995,7 @@ var isValidUrl = function isValidUrl(value) {
|
|
|
4123
3995
|
exports.isValidUrl = isValidUrl;
|
|
4124
3996
|
|
|
4125
3997
|
/***/ }),
|
|
4126
|
-
/*
|
|
3998
|
+
/* 215 */
|
|
4127
3999
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4128
4000
|
|
|
4129
4001
|
"use strict";
|
|
@@ -4150,7 +4022,7 @@ var React = __webpack_require__(0);
|
|
|
4150
4022
|
|
|
4151
4023
|
var styled_components_1 = __webpack_require__(4);
|
|
4152
4024
|
|
|
4153
|
-
var visualization_icons_1 = __webpack_require__(
|
|
4025
|
+
var visualization_icons_1 = __webpack_require__(72);
|
|
4154
4026
|
|
|
4155
4027
|
var Container = styled_components_1.default.div.withConfig({
|
|
4156
4028
|
displayName: "ErrorMessage__Container",
|