@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/Image.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 = 239);
|
|
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
|
|
@@ -1251,7 +1172,7 @@ var i18n_1 = __webpack_require__(2);
|
|
|
1251
1172
|
|
|
1252
1173
|
var Message_1 = __webpack_require__(12);
|
|
1253
1174
|
|
|
1254
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1175
|
+
var FixedSizeContainer_1 = __webpack_require__(18);
|
|
1255
1176
|
/**
|
|
1256
1177
|
* @method shouldShowIconPlaceholder
|
|
1257
1178
|
* @param {object} dataSources
|
|
@@ -1328,7 +1249,7 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
1328
1249
|
"use strict";
|
|
1329
1250
|
|
|
1330
1251
|
|
|
1331
|
-
var _defineProperty = __webpack_require__(
|
|
1252
|
+
var _defineProperty = __webpack_require__(13);
|
|
1332
1253
|
|
|
1333
1254
|
Object.defineProperty(exports, "__esModule", {
|
|
1334
1255
|
value: true
|
|
@@ -1339,7 +1260,7 @@ var T = __webpack_require__(1);
|
|
|
1339
1260
|
|
|
1340
1261
|
var lodash_1 = __webpack_require__(3);
|
|
1341
1262
|
|
|
1342
|
-
var DataSource_1 = __webpack_require__(
|
|
1263
|
+
var DataSource_1 = __webpack_require__(21);
|
|
1343
1264
|
|
|
1344
1265
|
exports.SortParamsPropTypes = T.shape({
|
|
1345
1266
|
currentSortKey: T.string,
|
|
@@ -1495,7 +1416,7 @@ __exportStar(__webpack_require__(41), exports);
|
|
|
1495
1416
|
|
|
1496
1417
|
__exportStar(__webpack_require__(42), exports);
|
|
1497
1418
|
|
|
1498
|
-
__exportStar(__webpack_require__(
|
|
1419
|
+
__exportStar(__webpack_require__(21), exports);
|
|
1499
1420
|
|
|
1500
1421
|
__exportStar(__webpack_require__(43), exports);
|
|
1501
1422
|
|
|
@@ -1509,13 +1430,13 @@ __exportStar(__webpack_require__(47), exports);
|
|
|
1509
1430
|
|
|
1510
1431
|
__exportStar(__webpack_require__(48), exports);
|
|
1511
1432
|
|
|
1512
|
-
__exportStar(__webpack_require__(
|
|
1433
|
+
__exportStar(__webpack_require__(22), exports);
|
|
1513
1434
|
|
|
1514
|
-
__exportStar(__webpack_require__(
|
|
1435
|
+
__exportStar(__webpack_require__(8), exports);
|
|
1515
1436
|
|
|
1516
|
-
__exportStar(__webpack_require__(
|
|
1437
|
+
__exportStar(__webpack_require__(23), exports);
|
|
1517
1438
|
|
|
1518
|
-
__exportStar(__webpack_require__(
|
|
1439
|
+
__exportStar(__webpack_require__(49), exports);
|
|
1519
1440
|
|
|
1520
1441
|
__exportStar(__webpack_require__(50), exports);
|
|
1521
1442
|
|
|
@@ -1527,8 +1448,6 @@ __exportStar(__webpack_require__(53), exports);
|
|
|
1527
1448
|
|
|
1528
1449
|
__exportStar(__webpack_require__(54), exports);
|
|
1529
1450
|
|
|
1530
|
-
__exportStar(__webpack_require__(55), exports);
|
|
1531
|
-
|
|
1532
1451
|
/***/ }),
|
|
1533
1452
|
/* 41 */
|
|
1534
1453
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1693,18 +1612,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1693
1612
|
"use strict";
|
|
1694
1613
|
|
|
1695
1614
|
|
|
1696
|
-
|
|
1697
|
-
value: true
|
|
1698
|
-
});
|
|
1699
|
-
|
|
1700
|
-
/***/ }),
|
|
1701
|
-
/* 56 */
|
|
1702
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1703
|
-
|
|
1704
|
-
"use strict";
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
var _slicedToArray = __webpack_require__(7);
|
|
1615
|
+
var _slicedToArray = __webpack_require__(6);
|
|
1708
1616
|
|
|
1709
1617
|
Object.defineProperty(exports, "__esModule", {
|
|
1710
1618
|
value: true
|
|
@@ -1714,15 +1622,15 @@ var React = __webpack_require__(0);
|
|
|
1714
1622
|
|
|
1715
1623
|
var lodash_1 = __webpack_require__(3);
|
|
1716
1624
|
|
|
1717
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1625
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(56);
|
|
1718
1626
|
|
|
1719
|
-
var Options_1 = __webpack_require__(
|
|
1627
|
+
var Options_1 = __webpack_require__(17);
|
|
1720
1628
|
|
|
1721
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1629
|
+
var SanitizeProps_1 = __webpack_require__(57);
|
|
1722
1630
|
|
|
1723
1631
|
var TimezoneContext_1 = __webpack_require__(32);
|
|
1724
1632
|
|
|
1725
|
-
var moment_1 = __webpack_require__(
|
|
1633
|
+
var moment_1 = __webpack_require__(58);
|
|
1726
1634
|
|
|
1727
1635
|
var FeatureFlagContext_1 = __webpack_require__(28);
|
|
1728
1636
|
|
|
@@ -1732,31 +1640,31 @@ var hocUtils_1 = __webpack_require__(34);
|
|
|
1732
1640
|
|
|
1733
1641
|
var JSONSchemaUtils_1 = __webpack_require__(35);
|
|
1734
1642
|
|
|
1735
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
1643
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(59);
|
|
1736
1644
|
|
|
1737
1645
|
var id_1 = __webpack_require__(31);
|
|
1738
1646
|
|
|
1739
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1647
|
+
var SplunkVisualization_1 = __webpack_require__(60);
|
|
1740
1648
|
|
|
1741
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1649
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
1742
1650
|
|
|
1743
1651
|
var getSorting_1 = __webpack_require__(38);
|
|
1744
1652
|
|
|
1745
1653
|
var getPagination_1 = __webpack_require__(39);
|
|
1746
1654
|
|
|
1747
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1655
|
+
var useDeepMemo_1 = __webpack_require__(61);
|
|
1748
1656
|
|
|
1749
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1657
|
+
var MissingPropsMessage_1 = __webpack_require__(62);
|
|
1750
1658
|
|
|
1751
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1659
|
+
var withEditModeCover_1 = __webpack_require__(63);
|
|
1752
1660
|
|
|
1753
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1661
|
+
var withPlaceholder_1 = __webpack_require__(64);
|
|
1754
1662
|
|
|
1755
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
1663
|
+
var useDownsampleDataSources_1 = __webpack_require__(65);
|
|
1756
1664
|
|
|
1757
|
-
var dataUtils_1 = __webpack_require__(
|
|
1665
|
+
var dataUtils_1 = __webpack_require__(15);
|
|
1758
1666
|
|
|
1759
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
1667
|
+
var featureFlagUtils_1 = __webpack_require__(67);
|
|
1760
1668
|
/**
|
|
1761
1669
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1762
1670
|
* @param {DashboardVizOpts} opts
|
|
@@ -2088,37 +1996,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2088
1996
|
exports.default = withDashboardViz;
|
|
2089
1997
|
|
|
2090
1998
|
/***/ }),
|
|
2091
|
-
/*
|
|
1999
|
+
/* 56 */
|
|
2092
2000
|
/***/ (function(module, exports) {
|
|
2093
2001
|
|
|
2094
2002
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2095
2003
|
|
|
2096
2004
|
/***/ }),
|
|
2097
|
-
/*
|
|
2005
|
+
/* 57 */
|
|
2098
2006
|
/***/ (function(module, exports) {
|
|
2099
2007
|
|
|
2100
2008
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2101
2009
|
|
|
2102
2010
|
/***/ }),
|
|
2103
|
-
/*
|
|
2011
|
+
/* 58 */
|
|
2104
2012
|
/***/ (function(module, exports) {
|
|
2105
2013
|
|
|
2106
2014
|
module.exports = require("@splunk/moment");
|
|
2107
2015
|
|
|
2108
2016
|
/***/ }),
|
|
2109
|
-
/*
|
|
2017
|
+
/* 59 */
|
|
2110
2018
|
/***/ (function(module, exports) {
|
|
2111
2019
|
|
|
2112
2020
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2113
2021
|
|
|
2114
2022
|
/***/ }),
|
|
2115
|
-
/*
|
|
2023
|
+
/* 60 */
|
|
2116
2024
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2117
2025
|
|
|
2118
2026
|
"use strict";
|
|
2119
2027
|
|
|
2120
2028
|
|
|
2121
|
-
var _classCallCheck = __webpack_require__(
|
|
2029
|
+
var _classCallCheck = __webpack_require__(9);
|
|
2122
2030
|
|
|
2123
2031
|
Object.defineProperty(exports, "__esModule", {
|
|
2124
2032
|
value: true
|
|
@@ -2130,7 +2038,7 @@ var T = __webpack_require__(1);
|
|
|
2130
2038
|
|
|
2131
2039
|
var lodash_1 = __webpack_require__(3);
|
|
2132
2040
|
|
|
2133
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2041
|
+
var VizActionHandler_1 = __webpack_require__(22); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2134
2042
|
|
|
2135
2043
|
|
|
2136
2044
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2263,7 +2171,7 @@ SplunkVisualization.defaultProps = {
|
|
|
2263
2171
|
exports.default = SplunkVisualization;
|
|
2264
2172
|
|
|
2265
2173
|
/***/ }),
|
|
2266
|
-
/*
|
|
2174
|
+
/* 61 */
|
|
2267
2175
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2268
2176
|
|
|
2269
2177
|
"use strict";
|
|
@@ -2308,7 +2216,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
2308
2216
|
exports.useDeepMemo = useDeepMemo;
|
|
2309
2217
|
|
|
2310
2218
|
/***/ }),
|
|
2311
|
-
/*
|
|
2219
|
+
/* 62 */
|
|
2312
2220
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2313
2221
|
|
|
2314
2222
|
"use strict";
|
|
@@ -2327,7 +2235,7 @@ var i18n_1 = __webpack_require__(2);
|
|
|
2327
2235
|
|
|
2328
2236
|
var Message_1 = __webpack_require__(12);
|
|
2329
2237
|
|
|
2330
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2238
|
+
var FixedSizeContainer_1 = __webpack_require__(18);
|
|
2331
2239
|
/**
|
|
2332
2240
|
* @method isMissing
|
|
2333
2241
|
* @param {any} v
|
|
@@ -2388,7 +2296,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
2388
2296
|
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
2389
2297
|
|
|
2390
2298
|
/***/ }),
|
|
2391
|
-
/*
|
|
2299
|
+
/* 63 */
|
|
2392
2300
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2393
2301
|
|
|
2394
2302
|
"use strict";
|
|
@@ -2402,14 +2310,14 @@ var React = __webpack_require__(0);
|
|
|
2402
2310
|
|
|
2403
2311
|
var styled_components_1 = __webpack_require__(4);
|
|
2404
2312
|
|
|
2405
|
-
var hocUtils_1 = __webpack_require__(
|
|
2313
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
2406
2314
|
|
|
2407
2315
|
var Cover = styled_components_1.default.div.withConfig({
|
|
2408
2316
|
displayName: "withEditModeCover__Cover",
|
|
2409
2317
|
componentId: "sc-1gsbnxb-0"
|
|
2410
2318
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2411
2319
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2412
|
-
'data-splunk-visualization-version': "26.
|
|
2320
|
+
'data-splunk-visualization-version': "26.3.0 - a1ef240a6"
|
|
2413
2321
|
}).withConfig({
|
|
2414
2322
|
displayName: "withEditModeCover__Blocker",
|
|
2415
2323
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2440,7 +2348,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
2440
2348
|
exports.default = withEditModeCover;
|
|
2441
2349
|
|
|
2442
2350
|
/***/ }),
|
|
2443
|
-
/*
|
|
2351
|
+
/* 64 */
|
|
2444
2352
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2445
2353
|
|
|
2446
2354
|
"use strict";
|
|
@@ -2452,15 +2360,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2452
2360
|
|
|
2453
2361
|
var React = __webpack_require__(0);
|
|
2454
2362
|
|
|
2455
|
-
var colorUtils_1 = __webpack_require__(
|
|
2363
|
+
var colorUtils_1 = __webpack_require__(16);
|
|
2456
2364
|
|
|
2457
|
-
var variables_1 = __webpack_require__(
|
|
2365
|
+
var variables_1 = __webpack_require__(14);
|
|
2458
2366
|
|
|
2459
2367
|
var IconPlaceholder_1 = __webpack_require__(37);
|
|
2460
2368
|
|
|
2461
|
-
var VizBehavior_1 = __webpack_require__(
|
|
2369
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
2462
2370
|
|
|
2463
|
-
var hocUtils_1 = __webpack_require__(
|
|
2371
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
2464
2372
|
|
|
2465
2373
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2466
2374
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -2504,13 +2412,13 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
2504
2412
|
exports.default = withPlaceholder;
|
|
2505
2413
|
|
|
2506
2414
|
/***/ }),
|
|
2507
|
-
/*
|
|
2415
|
+
/* 65 */
|
|
2508
2416
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2509
2417
|
|
|
2510
2418
|
"use strict";
|
|
2511
2419
|
|
|
2512
2420
|
|
|
2513
|
-
var _slicedToArray = __webpack_require__(
|
|
2421
|
+
var _slicedToArray = __webpack_require__(6);
|
|
2514
2422
|
|
|
2515
2423
|
Object.defineProperty(exports, "__esModule", {
|
|
2516
2424
|
value: true
|
|
@@ -2520,11 +2428,11 @@ var react_1 = __webpack_require__(0);
|
|
|
2520
2428
|
|
|
2521
2429
|
var lodash_1 = __webpack_require__(3);
|
|
2522
2430
|
|
|
2523
|
-
var dataUtils_1 = __webpack_require__(
|
|
2431
|
+
var dataUtils_1 = __webpack_require__(15);
|
|
2524
2432
|
|
|
2525
2433
|
var usePrevious_1 = __webpack_require__(33);
|
|
2526
2434
|
|
|
2527
|
-
var useGetXAndYFields_1 = __webpack_require__(
|
|
2435
|
+
var useGetXAndYFields_1 = __webpack_require__(66);
|
|
2528
2436
|
|
|
2529
2437
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
2530
2438
|
var dataSources = _ref.dataSources,
|
|
@@ -2593,13 +2501,13 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
2593
2501
|
exports.default = useDownsampleDataSources;
|
|
2594
2502
|
|
|
2595
2503
|
/***/ }),
|
|
2596
|
-
/*
|
|
2504
|
+
/* 66 */
|
|
2597
2505
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2598
2506
|
|
|
2599
2507
|
"use strict";
|
|
2600
2508
|
|
|
2601
2509
|
|
|
2602
|
-
var _toConsumableArray = __webpack_require__(
|
|
2510
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2603
2511
|
|
|
2604
2512
|
Object.defineProperty(exports, "__esModule", {
|
|
2605
2513
|
value: true
|
|
@@ -2607,7 +2515,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2607
2515
|
|
|
2608
2516
|
var react_1 = __webpack_require__(0);
|
|
2609
2517
|
|
|
2610
|
-
var Options_1 = __webpack_require__(
|
|
2518
|
+
var Options_1 = __webpack_require__(17);
|
|
2611
2519
|
/**
|
|
2612
2520
|
* Hook that evaluates the DSL for subset of a viz's options needed to determine
|
|
2613
2521
|
* its x and y fields as well as the types of all its fields.
|
|
@@ -2707,7 +2615,7 @@ var useGetXAndYFields = function useGetXAndYFields(_ref) {
|
|
|
2707
2615
|
exports.default = useGetXAndYFields;
|
|
2708
2616
|
|
|
2709
2617
|
/***/ }),
|
|
2710
|
-
/*
|
|
2618
|
+
/* 67 */
|
|
2711
2619
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2712
2620
|
|
|
2713
2621
|
"use strict";
|
|
@@ -2718,7 +2626,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2718
2626
|
});
|
|
2719
2627
|
exports.getFeatureFlag = void 0;
|
|
2720
2628
|
|
|
2721
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
2629
|
+
var FeatureFlags_1 = __webpack_require__(68);
|
|
2722
2630
|
|
|
2723
2631
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
2724
2632
|
// look for feature flag in context first
|
|
@@ -2742,22 +2650,23 @@ var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
|
2742
2650
|
exports.getFeatureFlag = getFeatureFlag;
|
|
2743
2651
|
|
|
2744
2652
|
/***/ }),
|
|
2745
|
-
/*
|
|
2653
|
+
/* 68 */
|
|
2746
2654
|
/***/ (function(module, exports) {
|
|
2747
2655
|
|
|
2748
2656
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
2749
2657
|
|
|
2750
2658
|
/***/ }),
|
|
2659
|
+
/* 69 */,
|
|
2751
2660
|
/* 70 */,
|
|
2752
2661
|
/* 71 */,
|
|
2753
|
-
/* 72
|
|
2754
|
-
/* 73 */,
|
|
2755
|
-
/* 74 */
|
|
2662
|
+
/* 72 */
|
|
2756
2663
|
/***/ (function(module, exports) {
|
|
2757
2664
|
|
|
2758
2665
|
module.exports = require("@splunk/visualization-icons");
|
|
2759
2666
|
|
|
2760
2667
|
/***/ }),
|
|
2668
|
+
/* 73 */,
|
|
2669
|
+
/* 74 */,
|
|
2761
2670
|
/* 75 */,
|
|
2762
2671
|
/* 76 */,
|
|
2763
2672
|
/* 77 */,
|
|
@@ -2855,10 +2764,7 @@ module.exports = require("@splunk/visualization-icons");
|
|
|
2855
2764
|
/* 169 */,
|
|
2856
2765
|
/* 170 */,
|
|
2857
2766
|
/* 171 */,
|
|
2858
|
-
/* 172
|
|
2859
|
-
/* 173 */,
|
|
2860
|
-
/* 174 */,
|
|
2861
|
-
/* 175 */
|
|
2767
|
+
/* 172 */
|
|
2862
2768
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2863
2769
|
|
|
2864
2770
|
"use strict";
|
|
@@ -2888,21 +2794,21 @@ var React = __webpack_require__(0);
|
|
|
2888
2794
|
|
|
2889
2795
|
var i18n_1 = __webpack_require__(2);
|
|
2890
2796
|
|
|
2891
|
-
var style_1 = __webpack_require__(
|
|
2797
|
+
var style_1 = __webpack_require__(19);
|
|
2892
2798
|
|
|
2893
|
-
var RemoteImage_1 = __webpack_require__(
|
|
2799
|
+
var RemoteImage_1 = __webpack_require__(173);
|
|
2894
2800
|
|
|
2895
2801
|
var styled_components_1 = __webpack_require__(4);
|
|
2896
2802
|
|
|
2897
2803
|
var T = __webpack_require__(1);
|
|
2898
2804
|
|
|
2899
|
-
var config_1 = __webpack_require__(
|
|
2805
|
+
var config_1 = __webpack_require__(240);
|
|
2900
2806
|
|
|
2901
2807
|
exports.config = config_1.default;
|
|
2902
2808
|
|
|
2903
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
2809
|
+
var withDashboardViz_1 = __webpack_require__(55);
|
|
2904
2810
|
|
|
2905
|
-
var ImageApi_1 = __webpack_require__(
|
|
2811
|
+
var ImageApi_1 = __webpack_require__(241);
|
|
2906
2812
|
|
|
2907
2813
|
var useEffect = React.useEffect,
|
|
2908
2814
|
useRef = React.useRef;
|
|
@@ -2913,7 +2819,7 @@ var Container = styled_components_1.default.div.attrs(function () {
|
|
|
2913
2819
|
};
|
|
2914
2820
|
}).withConfig({
|
|
2915
2821
|
displayName: "Image__Container",
|
|
2916
|
-
componentId: "kplb09-0"
|
|
2822
|
+
componentId: "sc-kplb09-0"
|
|
2917
2823
|
})(["position:relative;box-sizing:border-box;display:flex;justify-content:center;align-items:center;cursor:", ";", ";"], function (props) {
|
|
2918
2824
|
return props.onClick ? 'pointer' : 'inherit';
|
|
2919
2825
|
}, function (props) {
|
|
@@ -2941,7 +2847,7 @@ var toImageDimensions = function toImageDimensions(props) {
|
|
|
2941
2847
|
exports.toImageDimensions = toImageDimensions;
|
|
2942
2848
|
var StyledImage = styled_components_1.default.img.withConfig({
|
|
2943
2849
|
displayName: "Image__StyledImage",
|
|
2944
|
-
componentId: "kplb09-1"
|
|
2850
|
+
componentId: "sc-kplb09-1"
|
|
2945
2851
|
})(["display:block;", ";"], function (props) {
|
|
2946
2852
|
return (0, exports.toImageDimensions)(props);
|
|
2947
2853
|
});
|
|
@@ -3038,12 +2944,15 @@ exports.themes = themes;
|
|
|
3038
2944
|
exports.default = Image;
|
|
3039
2945
|
|
|
3040
2946
|
/***/ }),
|
|
3041
|
-
/*
|
|
2947
|
+
/* 173 */
|
|
3042
2948
|
/***/ (function(module, exports) {
|
|
3043
2949
|
|
|
3044
2950
|
module.exports = require("@splunk/visualizations-shared/RemoteImage");
|
|
3045
2951
|
|
|
3046
2952
|
/***/ }),
|
|
2953
|
+
/* 174 */,
|
|
2954
|
+
/* 175 */,
|
|
2955
|
+
/* 176 */,
|
|
3047
2956
|
/* 177 */,
|
|
3048
2957
|
/* 178 */,
|
|
3049
2958
|
/* 179 */,
|
|
@@ -3106,11 +3015,7 @@ module.exports = require("@splunk/visualizations-shared/RemoteImage");
|
|
|
3106
3015
|
/* 236 */,
|
|
3107
3016
|
/* 237 */,
|
|
3108
3017
|
/* 238 */,
|
|
3109
|
-
/* 239
|
|
3110
|
-
/* 240 */,
|
|
3111
|
-
/* 241 */,
|
|
3112
|
-
/* 242 */,
|
|
3113
|
-
/* 243 */
|
|
3018
|
+
/* 239 */
|
|
3114
3019
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3115
3020
|
|
|
3116
3021
|
"use strict";
|
|
@@ -3146,9 +3051,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3146
3051
|
});
|
|
3147
3052
|
exports.default = void 0;
|
|
3148
3053
|
|
|
3149
|
-
__exportStar(__webpack_require__(
|
|
3054
|
+
__exportStar(__webpack_require__(172), exports);
|
|
3150
3055
|
|
|
3151
|
-
var Image_1 = __webpack_require__(
|
|
3056
|
+
var Image_1 = __webpack_require__(172);
|
|
3152
3057
|
|
|
3153
3058
|
Object.defineProperty(exports, "default", {
|
|
3154
3059
|
enumerable: true,
|
|
@@ -3158,7 +3063,7 @@ Object.defineProperty(exports, "default", {
|
|
|
3158
3063
|
});
|
|
3159
3064
|
|
|
3160
3065
|
/***/ }),
|
|
3161
|
-
/*
|
|
3066
|
+
/* 240 */
|
|
3162
3067
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3163
3068
|
|
|
3164
3069
|
"use strict";
|
|
@@ -3170,11 +3075,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3170
3075
|
|
|
3171
3076
|
var i18n_1 = __webpack_require__(2);
|
|
3172
3077
|
|
|
3173
|
-
var
|
|
3078
|
+
var visualization_schemas_1 = __webpack_require__(10);
|
|
3174
3079
|
|
|
3175
|
-
var
|
|
3080
|
+
var visualization_icons_1 = __webpack_require__(72);
|
|
3176
3081
|
|
|
3177
|
-
var
|
|
3082
|
+
var VizBehavior_1 = __webpack_require__(8);
|
|
3083
|
+
|
|
3084
|
+
var VizCategory_1 = __webpack_require__(23);
|
|
3178
3085
|
|
|
3179
3086
|
var configUtils_1 = __webpack_require__(27);
|
|
3180
3087
|
|
|
@@ -3193,17 +3100,6 @@ var size = {
|
|
|
3193
3100
|
initialHeight: 300
|
|
3194
3101
|
};
|
|
3195
3102
|
var defaultContext = {};
|
|
3196
|
-
var optionsSchema = {
|
|
3197
|
-
src: {
|
|
3198
|
-
description: 'URL of an image file. All browser-supported image formats are acceptable.',
|
|
3199
|
-
type: 'string'
|
|
3200
|
-
},
|
|
3201
|
-
preserveAspectRatio: {
|
|
3202
|
-
default: false,
|
|
3203
|
-
description: 'Set to true to maintain the aspect ratio of an image when the screen is resized.',
|
|
3204
|
-
type: 'boolean'
|
|
3205
|
-
}
|
|
3206
|
-
};
|
|
3207
3103
|
var editorConfig = [{
|
|
3208
3104
|
label: (0, i18n_1._)('Image content'),
|
|
3209
3105
|
layout: [[{
|
|
@@ -3244,7 +3140,7 @@ var config = {
|
|
|
3244
3140
|
dataContract: dataContract,
|
|
3245
3141
|
size: size,
|
|
3246
3142
|
defaultContext: defaultContext,
|
|
3247
|
-
optionsSchema:
|
|
3143
|
+
optionsSchema: visualization_schemas_1.imageOptionsSchema,
|
|
3248
3144
|
editorConfig: editorConfig,
|
|
3249
3145
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER, VizBehavior_1.VizBehavior.EVENTS],
|
|
3250
3146
|
themes: themes,
|
|
@@ -3257,13 +3153,13 @@ var config = {
|
|
|
3257
3153
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
3258
3154
|
|
|
3259
3155
|
/***/ }),
|
|
3260
|
-
/*
|
|
3156
|
+
/* 241 */
|
|
3261
3157
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3262
3158
|
|
|
3263
3159
|
"use strict";
|
|
3264
3160
|
|
|
3265
3161
|
|
|
3266
|
-
var _classCallCheck = __webpack_require__(
|
|
3162
|
+
var _classCallCheck = __webpack_require__(9);
|
|
3267
3163
|
|
|
3268
3164
|
var _createClass = __webpack_require__(25);
|
|
3269
3165
|
|
|
@@ -3273,7 +3169,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3273
3169
|
|
|
3274
3170
|
var lodash_1 = __webpack_require__(3);
|
|
3275
3171
|
|
|
3276
|
-
var RemoteImage_1 = __webpack_require__(
|
|
3172
|
+
var RemoteImage_1 = __webpack_require__(173);
|
|
3277
3173
|
/**
|
|
3278
3174
|
* Image Api
|
|
3279
3175
|
*/
|
|
@@ -3286,19 +3182,11 @@ var ImageApi = /*#__PURE__*/function () {
|
|
|
3286
3182
|
this.viz = viz;
|
|
3287
3183
|
}
|
|
3288
3184
|
/**
|
|
3289
|
-
*
|
|
3185
|
+
* return snapshot of that includes inlined image
|
|
3290
3186
|
*/
|
|
3291
|
-
// eslint-disable-next-line class-methods-use-this
|
|
3292
3187
|
|
|
3293
3188
|
|
|
3294
3189
|
_createClass(ImageApi, [{
|
|
3295
|
-
key: "focus",
|
|
3296
|
-
value: function focus() {}
|
|
3297
|
-
/**
|
|
3298
|
-
* return snapshot of that includes inlined image
|
|
3299
|
-
*/
|
|
3300
|
-
|
|
3301
|
-
}, {
|
|
3302
3190
|
key: "snapshot",
|
|
3303
3191
|
value: function snapshot() {
|
|
3304
3192
|
var srcFromOptions = (0, lodash_1.get)(this.viz.options, 'src', '');
|