@splunk/visualizations 25.0.0 → 25.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
- package/Area.config.js +166 -152
- package/Area.config.js.map +1 -1
- package/Area.js +362 -433
- package/Area.js.map +1 -1
- package/Bar.config.js +168 -148
- package/Bar.config.js.map +1 -1
- package/Bar.js +364 -429
- package/Bar.js.map +1 -1
- package/Bubble.config.js +155 -117
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +353 -400
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +112 -82
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +336 -391
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +164 -146
- package/Column.config.js.map +1 -1
- package/Column.js +360 -427
- package/Column.js.map +1 -1
- package/Ellipse.config.js +111 -80
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +317 -371
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +117 -86
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +324 -378
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +100 -76
- package/Image.config.js.map +1 -1
- package/Image.js +725 -789
- package/Image.js.map +1 -1
- package/Line.config.js +164 -137
- package/Line.config.js.map +1 -1
- package/Line.js +360 -418
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +137 -112
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +351 -410
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +140 -97
- package/Map.config.js.map +1 -1
- package/Map.js +517 -523
- package/Map.js.map +1 -1
- package/Markdown.config.js +138 -115
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +502 -553
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +218 -195
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2926 -3098
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +158 -133
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +319 -377
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +160 -136
- package/Pie.config.js.map +1 -1
- package/Pie.js +1316 -1492
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +164 -141
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +344 -404
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +280 -248
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +1247 -1303
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +175 -143
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +377 -426
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +156 -117
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +550 -601
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +147 -115
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +542 -598
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +19 -19
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +154 -120
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +373 -424
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +143 -111
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +612 -668
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +176 -152
- package/Table.config.js.map +1 -1
- package/Table.js +740 -797
- package/Table.js.map +1 -1
- package/common/Charting.js +11 -11
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +12 -12
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +8 -8
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +8 -8
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +51 -327
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +22 -22
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- 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 +4 -4
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +13 -13
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +42 -18
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +6 -86
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/{JSONSchemaUtils.js → mapUtils.js} +89 -29
- package/common/utils/mapUtils.js.map +1 -0
- package/common/utils/singleValueUtils.js +14 -12
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +8 -8
- package/common/utils/testHelper.js.map +1 -1
- package/common/withDashboardViz.js +120 -207
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +12 -12
- package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
- package/common/utils/JSONSchemaUtils.js.map +0 -1
package/SingleValueIcon.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 = 260);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -106,13 +106,13 @@ module.exports = require("react");
|
|
|
106
106
|
/* 2 */
|
|
107
107
|
/***/ (function(module, exports) {
|
|
108
108
|
|
|
109
|
-
module.exports = require("
|
|
109
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
110
110
|
|
|
111
111
|
/***/ }),
|
|
112
112
|
/* 3 */
|
|
113
113
|
/***/ (function(module, exports) {
|
|
114
114
|
|
|
115
|
-
module.exports = require("
|
|
115
|
+
module.exports = require("lodash");
|
|
116
116
|
|
|
117
117
|
/***/ }),
|
|
118
118
|
/* 4 */
|
|
@@ -159,14 +159,190 @@ var VizBehavior;
|
|
|
159
159
|
|
|
160
160
|
/***/ }),
|
|
161
161
|
/* 6 */
|
|
162
|
+
/***/ (function(module, exports) {
|
|
163
|
+
|
|
164
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
165
|
+
|
|
166
|
+
/***/ }),
|
|
167
|
+
/* 7 */
|
|
168
|
+
/***/ (function(module, exports) {
|
|
169
|
+
|
|
170
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
171
|
+
|
|
172
|
+
/***/ }),
|
|
173
|
+
/* 8 */
|
|
174
|
+
/***/ (function(module, exports) {
|
|
175
|
+
|
|
176
|
+
module.exports = require("@splunk/themes/variables");
|
|
177
|
+
|
|
178
|
+
/***/ }),
|
|
179
|
+
/* 9 */
|
|
180
|
+
/***/ (function(module, exports) {
|
|
181
|
+
|
|
182
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
183
|
+
|
|
184
|
+
/***/ }),
|
|
185
|
+
/* 10 */
|
|
186
|
+
/***/ (function(module, exports) {
|
|
187
|
+
|
|
188
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
189
|
+
|
|
190
|
+
/***/ }),
|
|
191
|
+
/* 11 */
|
|
192
|
+
/***/ (function(module, exports) {
|
|
193
|
+
|
|
194
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
195
|
+
|
|
196
|
+
/***/ }),
|
|
197
|
+
/* 12 */
|
|
198
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
199
|
+
|
|
200
|
+
"use strict";
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
Object.defineProperty(exports, "__esModule", {
|
|
204
|
+
value: true
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
var React = __webpack_require__(1);
|
|
208
|
+
|
|
209
|
+
var styled_components_1 = __webpack_require__(4);
|
|
210
|
+
|
|
211
|
+
var SizeAwareWrapper_1 = __webpack_require__(19);
|
|
212
|
+
|
|
213
|
+
var style_1 = __webpack_require__(14);
|
|
214
|
+
|
|
215
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
216
|
+
|
|
217
|
+
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
218
|
+
var width = _ref.width;
|
|
219
|
+
return {
|
|
220
|
+
style: {
|
|
221
|
+
width: style_1.toPx(width)
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}).withConfig({
|
|
225
|
+
displayName: "FixedSizeContainer__Item",
|
|
226
|
+
componentId: "sc-1yhgpod-0"
|
|
227
|
+
})(["position:relative;background-color:", "};"], function (props) {
|
|
228
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
229
|
+
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
230
|
+
|
|
231
|
+
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
232
|
+
var width = _ref2.width,
|
|
233
|
+
height = _ref2.height;
|
|
234
|
+
return {
|
|
235
|
+
style: Object.assign(Object.assign({}, width && {
|
|
236
|
+
width: style_1.toPx(width)
|
|
237
|
+
}), height && {
|
|
238
|
+
height: style_1.toPx(height)
|
|
239
|
+
})
|
|
240
|
+
};
|
|
241
|
+
}).withConfig({
|
|
242
|
+
displayName: "FixedSizeContainer__FixSizeItem",
|
|
243
|
+
componentId: "sc-1yhgpod-1"
|
|
244
|
+
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
245
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
246
|
+
});
|
|
247
|
+
var ItemContent = styled_components_1.default.div.withConfig({
|
|
248
|
+
displayName: "FixedSizeContainer__ItemContent",
|
|
249
|
+
componentId: "sc-1yhgpod-2"
|
|
250
|
+
})(["position:relative;min-height:100px;width:100%;"]);
|
|
251
|
+
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
252
|
+
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
253
|
+
componentId: "sc-1yhgpod-3"
|
|
254
|
+
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
255
|
+
|
|
256
|
+
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
257
|
+
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
258
|
+
var width = props.width,
|
|
259
|
+
height = props.height,
|
|
260
|
+
backgroundColor = props.backgroundColor;
|
|
261
|
+
|
|
262
|
+
if (!height) {
|
|
263
|
+
return React.createElement(Item, {
|
|
264
|
+
"data-test": "item",
|
|
265
|
+
width: width,
|
|
266
|
+
backgroundColor: backgroundColor
|
|
267
|
+
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return React.createElement(FixSizeItem, {
|
|
271
|
+
"data-test": "fix-size-item",
|
|
272
|
+
"data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
|
|
273
|
+
width: width,
|
|
274
|
+
height: height,
|
|
275
|
+
backgroundColor: backgroundColor
|
|
276
|
+
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
277
|
+
var newWidth = _ref3.width,
|
|
278
|
+
newHeight = _ref3.height;
|
|
279
|
+
return React.createElement(Viz, Object.assign({}, props, {
|
|
280
|
+
width: newWidth,
|
|
281
|
+
height: newHeight
|
|
282
|
+
}));
|
|
283
|
+
})));
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
287
|
+
return FixedSizeContainer;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
exports.default = withFixedSizeContainer;
|
|
291
|
+
|
|
292
|
+
/***/ }),
|
|
293
|
+
/* 13 */
|
|
294
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
295
|
+
|
|
296
|
+
"use strict";
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
Object.defineProperty(exports, "__esModule", {
|
|
300
|
+
value: true
|
|
301
|
+
});
|
|
302
|
+
exports.extendStaticWrapperProps = void 0;
|
|
303
|
+
/**
|
|
304
|
+
* @method extendStaticWrapperProps
|
|
305
|
+
* @param {Object} props
|
|
306
|
+
* @param {DashboardVizType} props.Wrapper
|
|
307
|
+
* @param {DashboardVizType} props.Visualization
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
311
|
+
var Wrapper = _ref.Wrapper,
|
|
312
|
+
Visualization = _ref.Visualization;
|
|
313
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
314
|
+
extendProperties.forEach(function (prop) {
|
|
315
|
+
if (Visualization[prop]) {
|
|
316
|
+
// eslint-disable-next-line no-param-reassign
|
|
317
|
+
Wrapper[prop] = Visualization[prop];
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
323
|
+
|
|
324
|
+
/***/ }),
|
|
325
|
+
/* 14 */
|
|
326
|
+
/***/ (function(module, exports) {
|
|
327
|
+
|
|
328
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
329
|
+
|
|
330
|
+
/***/ }),
|
|
331
|
+
/* 15 */
|
|
332
|
+
/***/ (function(module, exports) {
|
|
333
|
+
|
|
334
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
335
|
+
|
|
336
|
+
/***/ }),
|
|
337
|
+
/* 16 */
|
|
162
338
|
/***/ (function(module, exports, __webpack_require__) {
|
|
163
339
|
|
|
164
340
|
"use strict";
|
|
165
341
|
|
|
166
342
|
|
|
167
|
-
var _toConsumableArray = __webpack_require__(
|
|
343
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
168
344
|
|
|
169
|
-
var _defineProperty = __webpack_require__(
|
|
345
|
+
var _defineProperty = __webpack_require__(6);
|
|
170
346
|
|
|
171
347
|
var __rest = this && this.__rest || function (s, e) {
|
|
172
348
|
var t = {};
|
|
@@ -184,11 +360,11 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
184
360
|
Object.defineProperty(exports, "__esModule", {
|
|
185
361
|
value: true
|
|
186
362
|
});
|
|
187
|
-
exports.insertLayout = exports.
|
|
363
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
188
364
|
|
|
189
|
-
var lodash_1 = __webpack_require__(
|
|
365
|
+
var lodash_1 = __webpack_require__(3);
|
|
190
366
|
|
|
191
|
-
var schemaUtils_1 = __webpack_require__(
|
|
367
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
192
368
|
|
|
193
369
|
var VizBehavior_1 = __webpack_require__(5);
|
|
194
370
|
|
|
@@ -259,8 +435,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
|
259
435
|
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
260
436
|
/**
|
|
261
437
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
438
|
+
* this function also collapse all editor panels
|
|
262
439
|
* @param vizConfig a Visualization Config
|
|
263
440
|
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
441
|
+
* and containing `open: false` for all editor panels in editorConfig
|
|
264
442
|
*/
|
|
265
443
|
|
|
266
444
|
function enhanceConfig(vizConfig) {
|
|
@@ -270,10 +448,33 @@ function enhanceConfig(vizConfig) {
|
|
|
270
448
|
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
271
449
|
}
|
|
272
450
|
|
|
451
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
452
|
+
return Object.assign(Object.assign({}, config), {
|
|
453
|
+
open: false
|
|
454
|
+
});
|
|
455
|
+
});
|
|
273
456
|
return enhancedConfig;
|
|
274
457
|
}
|
|
275
458
|
|
|
276
459
|
exports.enhanceConfig = enhanceConfig;
|
|
460
|
+
/**
|
|
461
|
+
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
462
|
+
* Created for editor unit tests
|
|
463
|
+
* @param vizConfig a Visualization Config
|
|
464
|
+
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
465
|
+
*/
|
|
466
|
+
|
|
467
|
+
function uncollapseEditorConfig(vizConfig) {
|
|
468
|
+
var editorPanelUncollapsedConfig = vizConfig;
|
|
469
|
+
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
470
|
+
return Object.assign(Object.assign({}, config), {
|
|
471
|
+
open: true
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
return editorPanelUncollapsedConfig;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
277
478
|
|
|
278
479
|
function isDynamicOption(option) {
|
|
279
480
|
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
@@ -369,249 +570,25 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
369
570
|
exports.insertLayout = insertLayout;
|
|
370
571
|
|
|
371
572
|
/***/ }),
|
|
372
|
-
/*
|
|
373
|
-
/***/ (function(module, exports) {
|
|
374
|
-
|
|
375
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
376
|
-
|
|
377
|
-
/***/ }),
|
|
378
|
-
/* 8 */
|
|
379
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
380
|
-
|
|
381
|
-
"use strict";
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
var _typeof = __webpack_require__(23);
|
|
385
|
-
|
|
386
|
-
Object.defineProperty(exports, "__esModule", {
|
|
387
|
-
value: true
|
|
388
|
-
});
|
|
389
|
-
exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
|
|
390
|
-
|
|
391
|
-
var lodash_1 = __webpack_require__(2);
|
|
392
|
-
|
|
393
|
-
var mapUtils_1 = __webpack_require__(41);
|
|
394
|
-
/**
|
|
395
|
-
* @method extendStaticWrapperProps
|
|
396
|
-
* @param {Object} props
|
|
397
|
-
* @param {DashboardVizType} props.Wrapper
|
|
398
|
-
* @param {DashboardVizType} props.Visualization
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
403
|
-
var Wrapper = _ref.Wrapper,
|
|
404
|
-
Visualization = _ref.Visualization;
|
|
405
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
406
|
-
extendProperties.forEach(function (prop) {
|
|
407
|
-
if (Visualization[prop]) {
|
|
408
|
-
// eslint-disable-next-line no-param-reassign
|
|
409
|
-
Wrapper[prop] = Visualization[prop];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
415
|
-
/**
|
|
416
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
417
|
-
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays of primitives will be preserved if already present in the resultant merged object
|
|
418
|
-
* this prevents default arrays of primitives from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one).
|
|
419
|
-
* Array of objects gets merged with the defaults, where the defaults can be an array of objects. Closest matching default object from the defaults list based on key - value pair
|
|
420
|
-
* will be used for merging defaults for each object in the array. If no closest match found, first object in default array list used for merging.
|
|
421
|
-
*
|
|
422
|
-
* @method deepMergeWithArrayPrimitiveOverrides
|
|
423
|
-
* @param {Object} initial - target object to merge values into
|
|
424
|
-
* @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
|
|
425
|
-
*
|
|
426
|
-
* @returns {Object}
|
|
427
|
-
*/
|
|
428
|
-
|
|
429
|
-
var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
|
|
430
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
431
|
-
|
|
432
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
433
|
-
sources[_key - 1] = arguments[_key];
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
sources.forEach(function (sourceToApply) {
|
|
437
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
438
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
439
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
443
|
-
clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
444
|
-
} else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
|
|
445
|
-
// If option is an array of objects
|
|
446
|
-
for (var i = 0; i < clone[sourceKey].length; i += 1) {
|
|
447
|
-
if (_typeof(clone[sourceKey][i]) === 'object') {
|
|
448
|
-
var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
|
|
449
|
-
|
|
450
|
-
if (closestMatchIdx > -1) {
|
|
451
|
-
clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
return clone;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
|
|
462
|
-
|
|
463
|
-
/***/ }),
|
|
464
|
-
/* 9 */
|
|
465
|
-
/***/ (function(module, exports) {
|
|
466
|
-
|
|
467
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
468
|
-
|
|
469
|
-
/***/ }),
|
|
470
|
-
/* 10 */
|
|
471
|
-
/***/ (function(module, exports) {
|
|
472
|
-
|
|
473
|
-
module.exports = require("@splunk/themes/variables");
|
|
474
|
-
|
|
475
|
-
/***/ }),
|
|
476
|
-
/* 11 */
|
|
477
|
-
/***/ (function(module, exports) {
|
|
478
|
-
|
|
479
|
-
module.exports = require("@splunk/visualizations-shared/Message");
|
|
480
|
-
|
|
481
|
-
/***/ }),
|
|
482
|
-
/* 12 */
|
|
483
|
-
/***/ (function(module, exports) {
|
|
484
|
-
|
|
485
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
486
|
-
|
|
487
|
-
/***/ }),
|
|
488
|
-
/* 13 */
|
|
489
|
-
/***/ (function(module, exports) {
|
|
490
|
-
|
|
491
|
-
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
492
|
-
|
|
493
|
-
/***/ }),
|
|
494
|
-
/* 14 */
|
|
495
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
496
|
-
|
|
497
|
-
"use strict";
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
Object.defineProperty(exports, "__esModule", {
|
|
501
|
-
value: true
|
|
502
|
-
});
|
|
503
|
-
|
|
504
|
-
var React = __webpack_require__(1);
|
|
505
|
-
|
|
506
|
-
var styled_components_1 = __webpack_require__(4);
|
|
507
|
-
|
|
508
|
-
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
509
|
-
|
|
510
|
-
var style_1 = __webpack_require__(15);
|
|
511
|
-
|
|
512
|
-
var colorUtils_1 = __webpack_require__(13);
|
|
513
|
-
|
|
514
|
-
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
515
|
-
var width = _ref.width;
|
|
516
|
-
return {
|
|
517
|
-
style: {
|
|
518
|
-
width: style_1.toPx(width)
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
}).withConfig({
|
|
522
|
-
displayName: "FixedSizeContainer__Item",
|
|
523
|
-
componentId: "sc-1yhgpod-0"
|
|
524
|
-
})(["position:relative;background-color:", "};"], function (props) {
|
|
525
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
526
|
-
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
527
|
-
|
|
528
|
-
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
529
|
-
var width = _ref2.width,
|
|
530
|
-
height = _ref2.height;
|
|
531
|
-
return {
|
|
532
|
-
style: Object.assign(Object.assign({}, width && {
|
|
533
|
-
width: style_1.toPx(width)
|
|
534
|
-
}), height && {
|
|
535
|
-
height: style_1.toPx(height)
|
|
536
|
-
})
|
|
537
|
-
};
|
|
538
|
-
}).withConfig({
|
|
539
|
-
displayName: "FixedSizeContainer__FixSizeItem",
|
|
540
|
-
componentId: "sc-1yhgpod-1"
|
|
541
|
-
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
542
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
543
|
-
});
|
|
544
|
-
var ItemContent = styled_components_1.default.div.withConfig({
|
|
545
|
-
displayName: "FixedSizeContainer__ItemContent",
|
|
546
|
-
componentId: "sc-1yhgpod-2"
|
|
547
|
-
})(["position:relative;min-height:100px;width:100%;"]);
|
|
548
|
-
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
549
|
-
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
550
|
-
componentId: "sc-1yhgpod-3"
|
|
551
|
-
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
552
|
-
|
|
553
|
-
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
554
|
-
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
555
|
-
var width = props.width,
|
|
556
|
-
height = props.height,
|
|
557
|
-
backgroundColor = props.backgroundColor;
|
|
558
|
-
|
|
559
|
-
if (!height) {
|
|
560
|
-
return React.createElement(Item, {
|
|
561
|
-
"data-test": "item",
|
|
562
|
-
width: width,
|
|
563
|
-
backgroundColor: backgroundColor
|
|
564
|
-
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
return React.createElement(FixSizeItem, {
|
|
568
|
-
"data-test": "fix-size-item",
|
|
569
|
-
"data-splunk-visualization-version": "25.0.0 - 5e0f30e5a",
|
|
570
|
-
width: width,
|
|
571
|
-
height: height,
|
|
572
|
-
backgroundColor: backgroundColor
|
|
573
|
-
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
574
|
-
var newWidth = _ref3.width,
|
|
575
|
-
newHeight = _ref3.height;
|
|
576
|
-
return React.createElement(Viz, Object.assign({}, props, {
|
|
577
|
-
width: newWidth,
|
|
578
|
-
height: newHeight
|
|
579
|
-
}));
|
|
580
|
-
})));
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
584
|
-
return FixedSizeContainer;
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
exports.default = withFixedSizeContainer;
|
|
588
|
-
|
|
589
|
-
/***/ }),
|
|
590
|
-
/* 15 */
|
|
591
|
-
/***/ (function(module, exports) {
|
|
592
|
-
|
|
593
|
-
module.exports = require("@splunk/visualizations-shared/style");
|
|
594
|
-
|
|
595
|
-
/***/ }),
|
|
596
|
-
/* 16 */
|
|
573
|
+
/* 17 */
|
|
597
574
|
/***/ (function(module, exports) {
|
|
598
575
|
|
|
599
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
576
|
+
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
600
577
|
|
|
601
578
|
/***/ }),
|
|
602
|
-
/*
|
|
579
|
+
/* 18 */
|
|
603
580
|
/***/ (function(module, exports) {
|
|
604
581
|
|
|
605
582
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
606
583
|
|
|
607
584
|
/***/ }),
|
|
608
|
-
/*
|
|
585
|
+
/* 19 */
|
|
609
586
|
/***/ (function(module, exports) {
|
|
610
587
|
|
|
611
588
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
612
589
|
|
|
613
590
|
/***/ }),
|
|
614
|
-
/*
|
|
591
|
+
/* 20 */
|
|
615
592
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
616
593
|
|
|
617
594
|
"use strict";
|
|
@@ -646,15 +623,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
646
623
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
|
|
647
624
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
|
|
648
625
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
|
|
649
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
626
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
650
627
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
651
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
628
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
652
629
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
653
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
630
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
|
|
654
631
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
655
632
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48);
|
|
656
633
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
657
|
-
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
634
|
+
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23);
|
|
658
635
|
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
659
636
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43);
|
|
660
637
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
|
|
@@ -1618,71 +1595,44 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
1618
1595
|
}));
|
|
1619
1596
|
};
|
|
1620
1597
|
|
|
1621
|
-
/***/ }),
|
|
1622
|
-
/* 20 */
|
|
1623
|
-
/***/ (function(module, exports) {
|
|
1624
|
-
|
|
1625
|
-
module.exports = require("@splunk/themes/pick");
|
|
1626
|
-
|
|
1627
1598
|
/***/ }),
|
|
1628
1599
|
/* 21 */
|
|
1629
1600
|
/***/ (function(module, exports) {
|
|
1630
1601
|
|
|
1631
|
-
module.exports = require("@splunk/
|
|
1602
|
+
module.exports = require("@splunk/themes/pick");
|
|
1632
1603
|
|
|
1633
1604
|
/***/ }),
|
|
1634
1605
|
/* 22 */
|
|
1635
1606
|
/***/ (function(module, exports) {
|
|
1636
1607
|
|
|
1637
|
-
module.exports = require("@splunk/
|
|
1608
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1638
1609
|
|
|
1639
1610
|
/***/ }),
|
|
1640
1611
|
/* 23 */
|
|
1641
1612
|
/***/ (function(module, exports) {
|
|
1642
1613
|
|
|
1643
|
-
module.exports = require("@
|
|
1614
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
1644
1615
|
|
|
1645
1616
|
/***/ }),
|
|
1646
1617
|
/* 24 */
|
|
1647
1618
|
/***/ (function(module, exports) {
|
|
1648
1619
|
|
|
1649
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
1620
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1650
1621
|
|
|
1651
1622
|
/***/ }),
|
|
1652
1623
|
/* 25 */
|
|
1653
|
-
/***/ (function(module, exports
|
|
1654
|
-
|
|
1655
|
-
"use strict";
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1659
|
-
value: true
|
|
1660
|
-
});
|
|
1661
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
1662
|
-
|
|
1663
|
-
var lodash_1 = __webpack_require__(2);
|
|
1624
|
+
/***/ (function(module, exports) {
|
|
1664
1625
|
|
|
1665
|
-
|
|
1666
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
1667
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
1668
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
1669
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
1670
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
1671
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
1626
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1672
1627
|
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
return accum;
|
|
1679
|
-
}, {});
|
|
1680
|
-
};
|
|
1628
|
+
/***/ }),
|
|
1629
|
+
/* 26 */
|
|
1630
|
+
/***/ (function(module, exports) {
|
|
1681
1631
|
|
|
1682
|
-
exports
|
|
1632
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1683
1633
|
|
|
1684
1634
|
/***/ }),
|
|
1685
|
-
/*
|
|
1635
|
+
/* 27 */
|
|
1686
1636
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1687
1637
|
|
|
1688
1638
|
"use strict";
|
|
@@ -1697,13 +1647,13 @@ var React = __webpack_require__(1);
|
|
|
1697
1647
|
|
|
1698
1648
|
var T = __webpack_require__(0);
|
|
1699
1649
|
|
|
1700
|
-
var lodash_1 = __webpack_require__(
|
|
1650
|
+
var lodash_1 = __webpack_require__(3);
|
|
1701
1651
|
|
|
1702
|
-
var i18n_1 = __webpack_require__(
|
|
1652
|
+
var i18n_1 = __webpack_require__(2);
|
|
1703
1653
|
|
|
1704
|
-
var Message_1 = __webpack_require__(
|
|
1654
|
+
var Message_1 = __webpack_require__(9);
|
|
1705
1655
|
|
|
1706
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1656
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1707
1657
|
/**
|
|
1708
1658
|
* @method shouldShowIconPlaceholder
|
|
1709
1659
|
* @param {object} dataSources
|
|
@@ -1773,13 +1723,13 @@ IconPlaceholder.defaultProps = {
|
|
|
1773
1723
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
1774
1724
|
|
|
1775
1725
|
/***/ }),
|
|
1776
|
-
/*
|
|
1726
|
+
/* 28 */
|
|
1777
1727
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1778
1728
|
|
|
1779
1729
|
"use strict";
|
|
1780
1730
|
|
|
1781
1731
|
|
|
1782
|
-
var _defineProperty = __webpack_require__(
|
|
1732
|
+
var _defineProperty = __webpack_require__(6);
|
|
1783
1733
|
|
|
1784
1734
|
Object.defineProperty(exports, "__esModule", {
|
|
1785
1735
|
value: true
|
|
@@ -1788,9 +1738,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
|
1788
1738
|
|
|
1789
1739
|
var T = __webpack_require__(0);
|
|
1790
1740
|
|
|
1791
|
-
var lodash_1 = __webpack_require__(
|
|
1741
|
+
var lodash_1 = __webpack_require__(3);
|
|
1792
1742
|
|
|
1793
|
-
var DataSource_1 = __webpack_require__(
|
|
1743
|
+
var DataSource_1 = __webpack_require__(38);
|
|
1794
1744
|
|
|
1795
1745
|
exports.SortParamsPropTypes = T.shape({
|
|
1796
1746
|
currentSortKey: T.string,
|
|
@@ -1843,7 +1793,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
1843
1793
|
exports.getSortingParams = getSortingParams;
|
|
1844
1794
|
|
|
1845
1795
|
/***/ }),
|
|
1846
|
-
/*
|
|
1796
|
+
/* 29 */
|
|
1847
1797
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1848
1798
|
|
|
1849
1799
|
"use strict";
|
|
@@ -1856,7 +1806,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
|
1856
1806
|
|
|
1857
1807
|
var T = __webpack_require__(0);
|
|
1858
1808
|
|
|
1859
|
-
var lodash_1 = __webpack_require__(
|
|
1809
|
+
var lodash_1 = __webpack_require__(3);
|
|
1860
1810
|
|
|
1861
1811
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1862
1812
|
isPaging: T.bool,
|
|
@@ -1907,7 +1857,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1907
1857
|
exports.getPaginationParams = getPaginationParams;
|
|
1908
1858
|
|
|
1909
1859
|
/***/ }),
|
|
1910
|
-
/*
|
|
1860
|
+
/* 30 */
|
|
1911
1861
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1912
1862
|
|
|
1913
1863
|
"use strict";
|
|
@@ -1935,7 +1885,7 @@ var VizCategory;
|
|
|
1935
1885
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
1936
1886
|
|
|
1937
1887
|
/***/ }),
|
|
1938
|
-
/*
|
|
1888
|
+
/* 31 */
|
|
1939
1889
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1940
1890
|
|
|
1941
1891
|
"use strict";
|
|
@@ -1947,39 +1897,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1947
1897
|
|
|
1948
1898
|
var React = __webpack_require__(1);
|
|
1949
1899
|
|
|
1950
|
-
var lodash_1 = __webpack_require__(
|
|
1900
|
+
var lodash_1 = __webpack_require__(3);
|
|
1951
1901
|
|
|
1952
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1902
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(32);
|
|
1953
1903
|
|
|
1954
|
-
var Options_1 = __webpack_require__(
|
|
1904
|
+
var Options_1 = __webpack_require__(33);
|
|
1955
1905
|
|
|
1956
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1906
|
+
var SanitizeProps_1 = __webpack_require__(34);
|
|
1957
1907
|
|
|
1958
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1908
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
1959
1909
|
|
|
1960
|
-
var moment_1 = __webpack_require__(
|
|
1910
|
+
var moment_1 = __webpack_require__(35);
|
|
1961
1911
|
|
|
1962
1912
|
var styled_components_1 = __webpack_require__(4);
|
|
1963
1913
|
|
|
1964
|
-
var
|
|
1914
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
1965
1915
|
|
|
1966
|
-
var
|
|
1916
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
1967
1917
|
|
|
1968
|
-
var
|
|
1918
|
+
var SplunkVisualization_1 = __webpack_require__(36);
|
|
1969
1919
|
|
|
1970
|
-
var
|
|
1920
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
1971
1921
|
|
|
1972
|
-
var
|
|
1922
|
+
var getSorting_1 = __webpack_require__(28);
|
|
1973
1923
|
|
|
1974
|
-
var
|
|
1924
|
+
var getPagination_1 = __webpack_require__(29);
|
|
1975
1925
|
|
|
1976
|
-
var
|
|
1926
|
+
var useDeepMemo_1 = __webpack_require__(39);
|
|
1977
1927
|
|
|
1978
|
-
var
|
|
1928
|
+
var MissingPropsMessage_1 = __webpack_require__(40);
|
|
1979
1929
|
|
|
1980
|
-
var
|
|
1930
|
+
var withEditModeCover_1 = __webpack_require__(41);
|
|
1981
1931
|
|
|
1982
|
-
var
|
|
1932
|
+
var withPlaceholder_1 = __webpack_require__(42);
|
|
1983
1933
|
/**
|
|
1984
1934
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1985
1935
|
* @param {DashboardVizOpts} opts
|
|
@@ -2180,37 +2130,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2180
2130
|
exports.default = withDashboardViz;
|
|
2181
2131
|
|
|
2182
2132
|
/***/ }),
|
|
2183
|
-
/*
|
|
2133
|
+
/* 32 */
|
|
2184
2134
|
/***/ (function(module, exports) {
|
|
2185
2135
|
|
|
2186
2136
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2187
2137
|
|
|
2188
2138
|
/***/ }),
|
|
2189
|
-
/*
|
|
2139
|
+
/* 33 */
|
|
2190
2140
|
/***/ (function(module, exports) {
|
|
2191
2141
|
|
|
2192
2142
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
2193
2143
|
|
|
2194
2144
|
/***/ }),
|
|
2195
|
-
/*
|
|
2145
|
+
/* 34 */
|
|
2196
2146
|
/***/ (function(module, exports) {
|
|
2197
2147
|
|
|
2198
2148
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2199
2149
|
|
|
2200
2150
|
/***/ }),
|
|
2201
|
-
/*
|
|
2151
|
+
/* 35 */
|
|
2202
2152
|
/***/ (function(module, exports) {
|
|
2203
2153
|
|
|
2204
2154
|
module.exports = require("@splunk/moment");
|
|
2205
2155
|
|
|
2206
2156
|
/***/ }),
|
|
2207
|
-
/*
|
|
2157
|
+
/* 36 */
|
|
2208
2158
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2209
2159
|
|
|
2210
2160
|
"use strict";
|
|
2211
2161
|
|
|
2212
2162
|
|
|
2213
|
-
var _classCallCheck = __webpack_require__(
|
|
2163
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2214
2164
|
|
|
2215
2165
|
Object.defineProperty(exports, "__esModule", {
|
|
2216
2166
|
value: true
|
|
@@ -2220,9 +2170,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
|
2220
2170
|
|
|
2221
2171
|
var T = __webpack_require__(0);
|
|
2222
2172
|
|
|
2223
|
-
var lodash_1 = __webpack_require__(
|
|
2173
|
+
var lodash_1 = __webpack_require__(3);
|
|
2224
2174
|
|
|
2225
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2175
|
+
var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2226
2176
|
|
|
2227
2177
|
|
|
2228
2178
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2355,15 +2305,15 @@ SplunkVisualization.defaultProps = {
|
|
|
2355
2305
|
exports.default = SplunkVisualization;
|
|
2356
2306
|
|
|
2357
2307
|
/***/ }),
|
|
2358
|
-
/*
|
|
2308
|
+
/* 37 */
|
|
2359
2309
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2360
2310
|
|
|
2361
2311
|
"use strict";
|
|
2362
2312
|
|
|
2363
2313
|
|
|
2364
|
-
var _classCallCheck = __webpack_require__(
|
|
2314
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2365
2315
|
|
|
2366
|
-
var _createClass = __webpack_require__(
|
|
2316
|
+
var _createClass = __webpack_require__(18);
|
|
2367
2317
|
|
|
2368
2318
|
Object.defineProperty(exports, "__esModule", {
|
|
2369
2319
|
value: true
|
|
@@ -2392,7 +2342,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
2392
2342
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
2393
2343
|
|
|
2394
2344
|
/***/ }),
|
|
2395
|
-
/*
|
|
2345
|
+
/* 38 */
|
|
2396
2346
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2397
2347
|
|
|
2398
2348
|
"use strict";
|
|
@@ -2405,7 +2355,7 @@ exports.validSortDirs = void 0;
|
|
|
2405
2355
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
2406
2356
|
|
|
2407
2357
|
/***/ }),
|
|
2408
|
-
/*
|
|
2358
|
+
/* 39 */
|
|
2409
2359
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2410
2360
|
|
|
2411
2361
|
"use strict";
|
|
@@ -2418,7 +2368,7 @@ exports.useDeepMemo = void 0;
|
|
|
2418
2368
|
|
|
2419
2369
|
var react_1 = __webpack_require__(1);
|
|
2420
2370
|
|
|
2421
|
-
var lodash_1 = __webpack_require__(
|
|
2371
|
+
var lodash_1 = __webpack_require__(3);
|
|
2422
2372
|
/**
|
|
2423
2373
|
* This hook evaluates and stores the result of a passed function and only
|
|
2424
2374
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -2450,7 +2400,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
2450
2400
|
exports.useDeepMemo = useDeepMemo;
|
|
2451
2401
|
|
|
2452
2402
|
/***/ }),
|
|
2453
|
-
/*
|
|
2403
|
+
/* 40 */
|
|
2454
2404
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2455
2405
|
|
|
2456
2406
|
"use strict";
|
|
@@ -2465,11 +2415,11 @@ var React = __webpack_require__(1);
|
|
|
2465
2415
|
|
|
2466
2416
|
var T = __webpack_require__(0);
|
|
2467
2417
|
|
|
2468
|
-
var i18n_1 = __webpack_require__(
|
|
2418
|
+
var i18n_1 = __webpack_require__(2);
|
|
2469
2419
|
|
|
2470
|
-
var Message_1 = __webpack_require__(
|
|
2420
|
+
var Message_1 = __webpack_require__(9);
|
|
2471
2421
|
|
|
2472
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
2422
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
2473
2423
|
/**
|
|
2474
2424
|
* @method isMissing
|
|
2475
2425
|
* @param {any} v
|
|
@@ -2530,7 +2480,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
2530
2480
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
2531
2481
|
|
|
2532
2482
|
/***/ }),
|
|
2533
|
-
/*
|
|
2483
|
+
/* 41 */
|
|
2534
2484
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2535
2485
|
|
|
2536
2486
|
"use strict";
|
|
@@ -2544,14 +2494,14 @@ var React = __webpack_require__(1);
|
|
|
2544
2494
|
|
|
2545
2495
|
var styled_components_1 = __webpack_require__(4);
|
|
2546
2496
|
|
|
2547
|
-
var hocUtils_1 = __webpack_require__(
|
|
2497
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
2548
2498
|
|
|
2549
2499
|
var Cover = styled_components_1.default.div.withConfig({
|
|
2550
2500
|
displayName: "withEditModeCover__Cover",
|
|
2551
2501
|
componentId: "sc-1gsbnxb-0"
|
|
2552
2502
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
2553
2503
|
var Blocker = styled_components_1.default.div.attrs({
|
|
2554
|
-
'data-splunk-visualization-version': "25.
|
|
2504
|
+
'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
|
|
2555
2505
|
}).withConfig({
|
|
2556
2506
|
displayName: "withEditModeCover__Blocker",
|
|
2557
2507
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2581,12 +2531,6 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
2581
2531
|
|
|
2582
2532
|
exports.default = withEditModeCover;
|
|
2583
2533
|
|
|
2584
|
-
/***/ }),
|
|
2585
|
-
/* 41 */
|
|
2586
|
-
/***/ (function(module, exports) {
|
|
2587
|
-
|
|
2588
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
2589
|
-
|
|
2590
2534
|
/***/ }),
|
|
2591
2535
|
/* 42 */
|
|
2592
2536
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -2600,15 +2544,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2600
2544
|
|
|
2601
2545
|
var React = __webpack_require__(1);
|
|
2602
2546
|
|
|
2603
|
-
var colorUtils_1 = __webpack_require__(
|
|
2547
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
2604
2548
|
|
|
2605
|
-
var variables_1 = __webpack_require__(
|
|
2549
|
+
var variables_1 = __webpack_require__(8);
|
|
2606
2550
|
|
|
2607
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2551
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
2608
2552
|
|
|
2609
2553
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2610
2554
|
|
|
2611
|
-
var hocUtils_1 = __webpack_require__(
|
|
2555
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
2612
2556
|
|
|
2613
2557
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2614
2558
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -2743,10 +2687,10 @@ module.exports = require("lodash/isEmpty");
|
|
|
2743
2687
|
|
|
2744
2688
|
"use strict";
|
|
2745
2689
|
__webpack_require__.r(__webpack_exports__);
|
|
2746
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2690
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
2747
2691
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2748
|
-
/* harmony import */ var
|
|
2749
|
-
/* harmony import */ var
|
|
2692
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
2693
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2750
2694
|
|
|
2751
2695
|
|
|
2752
2696
|
var StaticBackgroundColorEditor = {
|
|
@@ -2755,7 +2699,7 @@ var StaticBackgroundColorEditor = {
|
|
|
2755
2699
|
editor: 'editor.color',
|
|
2756
2700
|
showEditor: function showEditor(_ref) {
|
|
2757
2701
|
var options = _ref.options;
|
|
2758
|
-
return !Object(
|
|
2702
|
+
return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
|
|
2759
2703
|
}
|
|
2760
2704
|
};
|
|
2761
2705
|
/* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
|
|
@@ -2772,10 +2716,10 @@ var StaticBackgroundColorEditor = {
|
|
|
2772
2716
|
"use strict";
|
|
2773
2717
|
__webpack_require__.r(__webpack_exports__);
|
|
2774
2718
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
|
|
2775
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2719
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
2776
2720
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2777
|
-
/* harmony import */ var
|
|
2778
|
-
/* harmony import */ var
|
|
2721
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
2722
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2779
2723
|
|
|
2780
2724
|
|
|
2781
2725
|
var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
@@ -2788,7 +2732,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
2788
2732
|
editor: 'editor.dynamicColor',
|
|
2789
2733
|
showEditor: function showEditor(_ref2) {
|
|
2790
2734
|
var options = _ref2.options;
|
|
2791
|
-
return Object(
|
|
2735
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
2792
2736
|
},
|
|
2793
2737
|
editorProps: {
|
|
2794
2738
|
labelPosition: 'left',
|
|
@@ -2822,10 +2766,10 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
2822
2766
|
"use strict";
|
|
2823
2767
|
__webpack_require__.r(__webpack_exports__);
|
|
2824
2768
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
|
|
2825
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2769
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
2826
2770
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2827
|
-
/* harmony import */ var
|
|
2828
|
-
/* harmony import */ var
|
|
2771
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
2772
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2829
2773
|
|
|
2830
2774
|
|
|
2831
2775
|
var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
@@ -2838,7 +2782,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
2838
2782
|
editor: 'editor.dynamicColor',
|
|
2839
2783
|
showEditor: function showEditor(_ref2) {
|
|
2840
2784
|
var options = _ref2.options;
|
|
2841
|
-
return Object(
|
|
2785
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
|
|
2842
2786
|
},
|
|
2843
2787
|
editorProps: {
|
|
2844
2788
|
labelPosition: 'left',
|
|
@@ -2866,10 +2810,10 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
2866
2810
|
"use strict";
|
|
2867
2811
|
__webpack_require__.r(__webpack_exports__);
|
|
2868
2812
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
|
|
2869
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2813
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
2870
2814
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2871
|
-
/* harmony import */ var
|
|
2872
|
-
/* harmony import */ var
|
|
2815
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
2816
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2873
2817
|
|
|
2874
2818
|
|
|
2875
2819
|
var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
|
|
@@ -2882,7 +2826,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
2882
2826
|
editor: 'editor.dynamicColor',
|
|
2883
2827
|
showEditor: function showEditor(_ref2) {
|
|
2884
2828
|
var options = _ref2.options;
|
|
2885
|
-
return Object(
|
|
2829
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
|
|
2886
2830
|
},
|
|
2887
2831
|
editorProps: {
|
|
2888
2832
|
labelPosition: 'left',
|
|
@@ -2919,10 +2863,10 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
2919
2863
|
|
|
2920
2864
|
"use strict";
|
|
2921
2865
|
__webpack_require__.r(__webpack_exports__);
|
|
2922
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2866
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
2923
2867
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2924
|
-
/* harmony import */ var
|
|
2925
|
-
/* harmony import */ var
|
|
2868
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
2869
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2926
2870
|
|
|
2927
2871
|
|
|
2928
2872
|
var StaticMajorColorEditor = {
|
|
@@ -2931,7 +2875,7 @@ var StaticMajorColorEditor = {
|
|
|
2931
2875
|
editor: 'editor.color',
|
|
2932
2876
|
showEditor: function showEditor(_ref) {
|
|
2933
2877
|
var options = _ref.options;
|
|
2934
|
-
return !Object(
|
|
2878
|
+
return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
|
|
2935
2879
|
}
|
|
2936
2880
|
};
|
|
2937
2881
|
/* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
|
|
@@ -2942,10 +2886,10 @@ var StaticMajorColorEditor = {
|
|
|
2942
2886
|
|
|
2943
2887
|
"use strict";
|
|
2944
2888
|
__webpack_require__.r(__webpack_exports__);
|
|
2945
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2889
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
2946
2890
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2947
|
-
/* harmony import */ var
|
|
2948
|
-
/* harmony import */ var
|
|
2891
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
2892
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2949
2893
|
|
|
2950
2894
|
|
|
2951
2895
|
var StaticTrendColorEditor = {
|
|
@@ -2954,7 +2898,7 @@ var StaticTrendColorEditor = {
|
|
|
2954
2898
|
editor: 'editor.color',
|
|
2955
2899
|
showEditor: function showEditor(_ref) {
|
|
2956
2900
|
var options = _ref.options;
|
|
2957
|
-
return !Object(
|
|
2901
|
+
return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
|
|
2958
2902
|
},
|
|
2959
2903
|
isDisabled: function isDisabled(_ref2) {
|
|
2960
2904
|
var options = _ref2.options;
|
|
@@ -2985,7 +2929,9 @@ var StaticTrendColorEditor = {
|
|
|
2985
2929
|
/* 106 */,
|
|
2986
2930
|
/* 107 */,
|
|
2987
2931
|
/* 108 */,
|
|
2988
|
-
/* 109
|
|
2932
|
+
/* 109 */,
|
|
2933
|
+
/* 110 */,
|
|
2934
|
+
/* 111 */
|
|
2989
2935
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2990
2936
|
|
|
2991
2937
|
"use strict";
|
|
@@ -3029,12 +2975,12 @@ exports.defaultContext = {
|
|
|
3029
2975
|
};
|
|
3030
2976
|
|
|
3031
2977
|
/***/ }),
|
|
3032
|
-
/*
|
|
2978
|
+
/* 112 */
|
|
3033
2979
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3034
2980
|
|
|
3035
2981
|
"use strict";
|
|
3036
2982
|
__webpack_require__.r(__webpack_exports__);
|
|
3037
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2983
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
3038
2984
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
3039
2985
|
|
|
3040
2986
|
var StaticMajorAndTrendLayout = [[{
|
|
@@ -3127,19 +3073,17 @@ var StaticMajorAndTrendLayout = [[{
|
|
|
3127
3073
|
/* harmony default export */ __webpack_exports__["default"] = (StaticMajorAndTrendLayout);
|
|
3128
3074
|
|
|
3129
3075
|
/***/ }),
|
|
3130
|
-
/* 111 */,
|
|
3131
|
-
/* 112 */,
|
|
3132
3076
|
/* 113 */,
|
|
3133
3077
|
/* 114 */,
|
|
3134
3078
|
/* 115 */,
|
|
3135
|
-
/* 116
|
|
3079
|
+
/* 116 */,
|
|
3080
|
+
/* 117 */,
|
|
3081
|
+
/* 118 */
|
|
3136
3082
|
/***/ (function(module, exports) {
|
|
3137
3083
|
|
|
3138
3084
|
module.exports = require("@splunk/visualizations/SingleValueBasic");
|
|
3139
3085
|
|
|
3140
3086
|
/***/ }),
|
|
3141
|
-
/* 117 */,
|
|
3142
|
-
/* 118 */,
|
|
3143
3087
|
/* 119 */,
|
|
3144
3088
|
/* 120 */,
|
|
3145
3089
|
/* 121 */,
|
|
@@ -3162,38 +3106,38 @@ module.exports = require("@splunk/visualizations/SingleValueBasic");
|
|
|
3162
3106
|
/* 138 */,
|
|
3163
3107
|
/* 139 */,
|
|
3164
3108
|
/* 140 */,
|
|
3165
|
-
/* 141
|
|
3109
|
+
/* 141 */,
|
|
3110
|
+
/* 142 */,
|
|
3111
|
+
/* 143 */
|
|
3166
3112
|
/***/ (function(module, exports) {
|
|
3167
3113
|
|
|
3168
3114
|
module.exports = require("@splunk/react-icons/Activity");
|
|
3169
3115
|
|
|
3170
3116
|
/***/ }),
|
|
3171
|
-
/*
|
|
3117
|
+
/* 144 */
|
|
3172
3118
|
/***/ (function(module, exports) {
|
|
3173
3119
|
|
|
3174
3120
|
module.exports = require("@splunk/react-icons/Clock");
|
|
3175
3121
|
|
|
3176
3122
|
/***/ }),
|
|
3177
|
-
/*
|
|
3123
|
+
/* 145 */
|
|
3178
3124
|
/***/ (function(module, exports) {
|
|
3179
3125
|
|
|
3180
3126
|
module.exports = require("@splunk/react-icons/Pencil");
|
|
3181
3127
|
|
|
3182
3128
|
/***/ }),
|
|
3183
|
-
/*
|
|
3129
|
+
/* 146 */
|
|
3184
3130
|
/***/ (function(module, exports) {
|
|
3185
3131
|
|
|
3186
3132
|
module.exports = require("@splunk/react-icons/Star");
|
|
3187
3133
|
|
|
3188
3134
|
/***/ }),
|
|
3189
|
-
/*
|
|
3135
|
+
/* 147 */
|
|
3190
3136
|
/***/ (function(module, exports) {
|
|
3191
3137
|
|
|
3192
3138
|
module.exports = require("@splunk/react-icons/Question");
|
|
3193
3139
|
|
|
3194
3140
|
/***/ }),
|
|
3195
|
-
/* 146 */,
|
|
3196
|
-
/* 147 */,
|
|
3197
3141
|
/* 148 */,
|
|
3198
3142
|
/* 149 */,
|
|
3199
3143
|
/* 150 */,
|
|
@@ -3303,7 +3247,10 @@ module.exports = require("@splunk/react-icons/Question");
|
|
|
3303
3247
|
/* 254 */,
|
|
3304
3248
|
/* 255 */,
|
|
3305
3249
|
/* 256 */,
|
|
3306
|
-
/* 257
|
|
3250
|
+
/* 257 */,
|
|
3251
|
+
/* 258 */,
|
|
3252
|
+
/* 259 */,
|
|
3253
|
+
/* 260 */
|
|
3307
3254
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3308
3255
|
|
|
3309
3256
|
"use strict";
|
|
@@ -3316,15 +3263,15 @@ exports.themes = exports.computeVizProps = exports.PureSingleValueIcon = exports
|
|
|
3316
3263
|
|
|
3317
3264
|
var React = __webpack_require__(1);
|
|
3318
3265
|
|
|
3319
|
-
var RemoteIcon_1 = __webpack_require__(
|
|
3266
|
+
var RemoteIcon_1 = __webpack_require__(261);
|
|
3320
3267
|
|
|
3321
|
-
var iconUtils_1 = __webpack_require__(
|
|
3268
|
+
var iconUtils_1 = __webpack_require__(262);
|
|
3322
3269
|
|
|
3323
|
-
var SingleValueIcon_1 = __webpack_require__(
|
|
3270
|
+
var SingleValueIcon_1 = __webpack_require__(281);
|
|
3324
3271
|
|
|
3325
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3272
|
+
var withDashboardViz_1 = __webpack_require__(31);
|
|
3326
3273
|
|
|
3327
|
-
var config_1 = __webpack_require__(
|
|
3274
|
+
var config_1 = __webpack_require__(263);
|
|
3328
3275
|
|
|
3329
3276
|
exports.config = config_1.default;
|
|
3330
3277
|
exports.PureSingleValueIcon = SingleValueIcon_1.default;
|
|
@@ -3359,47 +3306,49 @@ exports.themes = config_1.default.themes;
|
|
|
3359
3306
|
exports.default = viz;
|
|
3360
3307
|
|
|
3361
3308
|
/***/ }),
|
|
3362
|
-
/*
|
|
3309
|
+
/* 261 */
|
|
3363
3310
|
/***/ (function(module, exports) {
|
|
3364
3311
|
|
|
3365
3312
|
module.exports = require("@splunk/visualizations-shared/RemoteIcon");
|
|
3366
3313
|
|
|
3367
3314
|
/***/ }),
|
|
3368
|
-
/*
|
|
3315
|
+
/* 262 */
|
|
3369
3316
|
/***/ (function(module, exports) {
|
|
3370
3317
|
|
|
3371
3318
|
module.exports = require("@splunk/visualizations-shared/iconUtils");
|
|
3372
3319
|
|
|
3373
3320
|
/***/ }),
|
|
3374
|
-
/*
|
|
3321
|
+
/* 263 */
|
|
3375
3322
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3376
3323
|
|
|
3377
3324
|
"use strict";
|
|
3378
3325
|
|
|
3379
3326
|
|
|
3380
|
-
var _toConsumableArray = __webpack_require__(
|
|
3327
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
3381
3328
|
|
|
3382
3329
|
Object.defineProperty(exports, "__esModule", {
|
|
3383
3330
|
value: true
|
|
3384
3331
|
});
|
|
3385
3332
|
|
|
3386
|
-
var i18n_1 = __webpack_require__(
|
|
3333
|
+
var i18n_1 = __webpack_require__(2);
|
|
3387
3334
|
|
|
3388
|
-
var schemaUtils_1 = __webpack_require__(
|
|
3335
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
3389
3336
|
|
|
3390
3337
|
var PresetPalettes_1 = __webpack_require__(53);
|
|
3391
3338
|
|
|
3392
|
-
var pick_1 = __webpack_require__(
|
|
3339
|
+
var pick_1 = __webpack_require__(21);
|
|
3340
|
+
|
|
3341
|
+
var variables_1 = __webpack_require__(8);
|
|
3393
3342
|
|
|
3394
|
-
var
|
|
3343
|
+
var configUtils_1 = __webpack_require__(17);
|
|
3395
3344
|
|
|
3396
|
-
var singleValueContext_1 = __webpack_require__(
|
|
3345
|
+
var singleValueContext_1 = __webpack_require__(111);
|
|
3397
3346
|
|
|
3398
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
3347
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(112);
|
|
3399
3348
|
|
|
3400
3349
|
var StaticBackgroundColorEditor_1 = __webpack_require__(77);
|
|
3401
3350
|
|
|
3402
|
-
var StaticIconColorEditor_1 = __webpack_require__(
|
|
3351
|
+
var StaticIconColorEditor_1 = __webpack_require__(264);
|
|
3403
3352
|
|
|
3404
3353
|
var StaticMajorColorEditor_1 = __webpack_require__(86);
|
|
3405
3354
|
|
|
@@ -3413,9 +3362,9 @@ var DynamicBackgroundColorEditor_1 = __webpack_require__(85);
|
|
|
3413
3362
|
|
|
3414
3363
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3415
3364
|
|
|
3416
|
-
var
|
|
3365
|
+
var configUtils_2 = __webpack_require__(16);
|
|
3417
3366
|
|
|
3418
|
-
var VizCategory_1 = __webpack_require__(
|
|
3367
|
+
var VizCategory_1 = __webpack_require__(30);
|
|
3419
3368
|
|
|
3420
3369
|
var dataContract = {
|
|
3421
3370
|
requiredDataSources: [{
|
|
@@ -3438,7 +3387,7 @@ var optionsSchema = {
|
|
|
3438
3387
|
backgroundColor: {
|
|
3439
3388
|
default: 'transparent',
|
|
3440
3389
|
description: 'Specify the color for the background. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”.',
|
|
3441
|
-
pattern: schemaUtils_1.
|
|
3390
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3442
3391
|
type: 'string'
|
|
3443
3392
|
},
|
|
3444
3393
|
icon: {
|
|
@@ -3449,7 +3398,7 @@ var optionsSchema = {
|
|
|
3449
3398
|
iconColor: {
|
|
3450
3399
|
default: null,
|
|
3451
3400
|
description: 'Specify the color for the icon. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
3452
|
-
pattern: schemaUtils_1.
|
|
3401
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3453
3402
|
type: 'string'
|
|
3454
3403
|
},
|
|
3455
3404
|
iconOpacity: {
|
|
@@ -3465,7 +3414,7 @@ var optionsSchema = {
|
|
|
3465
3414
|
majorColor: {
|
|
3466
3415
|
default: '> themes.defaultFontColor',
|
|
3467
3416
|
description: 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
3468
|
-
pattern: schemaUtils_1.
|
|
3417
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3469
3418
|
type: 'string'
|
|
3470
3419
|
},
|
|
3471
3420
|
majorFontSize: {
|
|
@@ -3507,7 +3456,7 @@ var optionsSchema = {
|
|
|
3507
3456
|
trendColor: {
|
|
3508
3457
|
default: '> themes.defaultFontColor',
|
|
3509
3458
|
description: 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
3510
|
-
pattern: schemaUtils_1.
|
|
3459
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3511
3460
|
type: 'string'
|
|
3512
3461
|
},
|
|
3513
3462
|
trendDisplay: {
|
|
@@ -3659,7 +3608,7 @@ var editorConfig = [{
|
|
|
3659
3608
|
value: function value(_ref) {
|
|
3660
3609
|
var context = _ref.context,
|
|
3661
3610
|
options = _ref.options;
|
|
3662
|
-
var initialPreset =
|
|
3611
|
+
var initialPreset = configUtils_2.getInitialPreset(context, options, presets);
|
|
3663
3612
|
return initialPreset && initialPreset.label || null;
|
|
3664
3613
|
}
|
|
3665
3614
|
}
|
|
@@ -3758,22 +3707,22 @@ var config = {
|
|
|
3758
3707
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS],
|
|
3759
3708
|
themes: themes
|
|
3760
3709
|
};
|
|
3761
|
-
exports.default =
|
|
3710
|
+
exports.default = configUtils_2.enhanceConfig(config);
|
|
3762
3711
|
|
|
3763
3712
|
/***/ }),
|
|
3764
|
-
/*
|
|
3713
|
+
/* 264 */
|
|
3765
3714
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3766
3715
|
|
|
3767
3716
|
"use strict";
|
|
3768
3717
|
__webpack_require__.r(__webpack_exports__);
|
|
3769
|
-
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3718
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
3770
3719
|
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
|
|
3771
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3720
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
3772
3721
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
|
3773
3722
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43);
|
|
3774
3723
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__);
|
|
3775
|
-
/* harmony import */ var
|
|
3776
|
-
/* harmony import */ var
|
|
3724
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
|
|
3725
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
3777
3726
|
|
|
3778
3727
|
|
|
3779
3728
|
|
|
@@ -3784,7 +3733,7 @@ var StaticIconColorEditor = [{
|
|
|
3784
3733
|
editor: 'editor.color',
|
|
3785
3734
|
showEditor: function showEditor(_ref) {
|
|
3786
3735
|
var options = _ref.options;
|
|
3787
|
-
return !Object(
|
|
3736
|
+
return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__["isDynamicOption"])(options.iconColor);
|
|
3788
3737
|
},
|
|
3789
3738
|
editorProps: {
|
|
3790
3739
|
labelPosition: 'left',
|
|
@@ -3795,9 +3744,6 @@ var StaticIconColorEditor = [{
|
|
|
3795
3744
|
/* harmony default export */ __webpack_exports__["default"] = (StaticIconColorEditor);
|
|
3796
3745
|
|
|
3797
3746
|
/***/ }),
|
|
3798
|
-
/* 262 */,
|
|
3799
|
-
/* 263 */,
|
|
3800
|
-
/* 264 */,
|
|
3801
3747
|
/* 265 */,
|
|
3802
3748
|
/* 266 */,
|
|
3803
3749
|
/* 267 */,
|
|
@@ -3811,7 +3757,10 @@ var StaticIconColorEditor = [{
|
|
|
3811
3757
|
/* 275 */,
|
|
3812
3758
|
/* 276 */,
|
|
3813
3759
|
/* 277 */,
|
|
3814
|
-
/* 278
|
|
3760
|
+
/* 278 */,
|
|
3761
|
+
/* 279 */,
|
|
3762
|
+
/* 280 */,
|
|
3763
|
+
/* 281 */
|
|
3815
3764
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3816
3765
|
|
|
3817
3766
|
"use strict";
|
|
@@ -3843,52 +3792,52 @@ var isEmpty_ = __webpack_require__(71);
|
|
|
3843
3792
|
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
3844
3793
|
|
|
3845
3794
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
|
|
3846
|
-
var style_ = __webpack_require__(
|
|
3795
|
+
var style_ = __webpack_require__(14);
|
|
3847
3796
|
|
|
3848
3797
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
3849
|
-
var i18n_ = __webpack_require__(
|
|
3798
|
+
var i18n_ = __webpack_require__(2);
|
|
3850
3799
|
|
|
3851
3800
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
|
|
3852
|
-
var SizeAwareWrapper_ = __webpack_require__(
|
|
3801
|
+
var SizeAwareWrapper_ = __webpack_require__(19);
|
|
3853
3802
|
var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
|
|
3854
3803
|
|
|
3855
3804
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/Message"
|
|
3856
|
-
var Message_ = __webpack_require__(
|
|
3805
|
+
var Message_ = __webpack_require__(9);
|
|
3857
3806
|
var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
|
|
3858
3807
|
|
|
3859
3808
|
// EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
|
|
3860
3809
|
var VizStyleWrapper = __webpack_require__(62);
|
|
3861
3810
|
|
|
3862
3811
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
|
|
3863
|
-
var defineProperty_ = __webpack_require__(
|
|
3812
|
+
var defineProperty_ = __webpack_require__(6);
|
|
3864
3813
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
|
|
3865
3814
|
|
|
3866
3815
|
// EXTERNAL MODULE: external "@splunk/visualizations/SingleValueBasic"
|
|
3867
|
-
var SingleValueBasic_ = __webpack_require__(
|
|
3816
|
+
var SingleValueBasic_ = __webpack_require__(118);
|
|
3868
3817
|
var SingleValueBasic_default = /*#__PURE__*/__webpack_require__.n(SingleValueBasic_);
|
|
3869
3818
|
|
|
3870
3819
|
// EXTERNAL MODULE: external "@splunk/react-icons/Activity"
|
|
3871
|
-
var Activity_ = __webpack_require__(
|
|
3820
|
+
var Activity_ = __webpack_require__(143);
|
|
3872
3821
|
var Activity_default = /*#__PURE__*/__webpack_require__.n(Activity_);
|
|
3873
3822
|
|
|
3874
3823
|
// EXTERNAL MODULE: external "@splunk/react-icons/Clock"
|
|
3875
|
-
var Clock_ = __webpack_require__(
|
|
3824
|
+
var Clock_ = __webpack_require__(144);
|
|
3876
3825
|
var Clock_default = /*#__PURE__*/__webpack_require__.n(Clock_);
|
|
3877
3826
|
|
|
3878
3827
|
// EXTERNAL MODULE: external "@splunk/react-icons/Pencil"
|
|
3879
|
-
var Pencil_ = __webpack_require__(
|
|
3828
|
+
var Pencil_ = __webpack_require__(145);
|
|
3880
3829
|
var Pencil_default = /*#__PURE__*/__webpack_require__.n(Pencil_);
|
|
3881
3830
|
|
|
3882
3831
|
// EXTERNAL MODULE: external "@splunk/react-icons/Star"
|
|
3883
|
-
var Star_ = __webpack_require__(
|
|
3832
|
+
var Star_ = __webpack_require__(146);
|
|
3884
3833
|
var Star_default = /*#__PURE__*/__webpack_require__.n(Star_);
|
|
3885
3834
|
|
|
3886
3835
|
// EXTERNAL MODULE: external "@splunk/react-icons/Question"
|
|
3887
|
-
var Question_ = __webpack_require__(
|
|
3836
|
+
var Question_ = __webpack_require__(147);
|
|
3888
3837
|
var Question_default = /*#__PURE__*/__webpack_require__.n(Question_);
|
|
3889
3838
|
|
|
3890
3839
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
3891
|
-
var singleValueUtils = __webpack_require__(
|
|
3840
|
+
var singleValueUtils = __webpack_require__(20);
|
|
3892
3841
|
|
|
3893
3842
|
// CONCATENATED MODULE: ./src/SingleValueIcon/PureSingleValueIcon/utils/iconUtils.js
|
|
3894
3843
|
// Todo: this will be replaced by IconLibrary.Registry
|