@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/Bubble.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 = 154);
|
|
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 */
|
|
162
294
|
/***/ (function(module, exports, __webpack_require__) {
|
|
163
295
|
|
|
164
296
|
"use strict";
|
|
165
297
|
|
|
166
298
|
|
|
167
|
-
|
|
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
|
+
*/
|
|
168
309
|
|
|
169
|
-
var
|
|
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 */
|
|
338
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
339
|
+
|
|
340
|
+
"use strict";
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
344
|
+
|
|
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,308 +570,52 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
369
570
|
exports.insertLayout = insertLayout;
|
|
370
571
|
|
|
371
572
|
/***/ }),
|
|
372
|
-
/*
|
|
373
|
-
|
|
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 */
|
|
597
|
-
/***/ (function(module, exports) {
|
|
598
|
-
|
|
599
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
600
|
-
|
|
601
|
-
/***/ }),
|
|
602
|
-
/* 17 */
|
|
573
|
+
/* 17 */,
|
|
574
|
+
/* 18 */
|
|
603
575
|
/***/ (function(module, exports) {
|
|
604
576
|
|
|
605
577
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
606
578
|
|
|
607
579
|
/***/ }),
|
|
608
|
-
/*
|
|
580
|
+
/* 19 */
|
|
609
581
|
/***/ (function(module, exports) {
|
|
610
582
|
|
|
611
583
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
612
584
|
|
|
613
585
|
/***/ }),
|
|
614
|
-
/*
|
|
615
|
-
/*
|
|
586
|
+
/* 20 */,
|
|
587
|
+
/* 21 */
|
|
616
588
|
/***/ (function(module, exports) {
|
|
617
589
|
|
|
618
590
|
module.exports = require("@splunk/themes/pick");
|
|
619
591
|
|
|
620
592
|
/***/ }),
|
|
621
|
-
/*
|
|
593
|
+
/* 22 */
|
|
622
594
|
/***/ (function(module, exports) {
|
|
623
595
|
|
|
624
596
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
625
597
|
|
|
626
598
|
/***/ }),
|
|
627
|
-
/*
|
|
599
|
+
/* 23 */
|
|
628
600
|
/***/ (function(module, exports) {
|
|
629
601
|
|
|
630
602
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
631
603
|
|
|
632
604
|
/***/ }),
|
|
633
|
-
/*
|
|
605
|
+
/* 24 */
|
|
634
606
|
/***/ (function(module, exports) {
|
|
635
607
|
|
|
636
|
-
module.exports = require("@
|
|
608
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
637
609
|
|
|
638
610
|
/***/ }),
|
|
639
|
-
/* 24 */,
|
|
640
611
|
/* 25 */
|
|
641
|
-
/***/ (function(module, exports
|
|
642
|
-
|
|
643
|
-
"use strict";
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
Object.defineProperty(exports, "__esModule", {
|
|
647
|
-
value: true
|
|
648
|
-
});
|
|
649
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
650
|
-
|
|
651
|
-
var lodash_1 = __webpack_require__(2);
|
|
652
|
-
|
|
653
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
654
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
655
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
656
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
657
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
658
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
659
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
660
|
-
|
|
661
|
-
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
662
|
-
accum[k] = nestedSchema;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
return accum;
|
|
667
|
-
}, {});
|
|
668
|
-
};
|
|
612
|
+
/***/ (function(module, exports) {
|
|
669
613
|
|
|
670
|
-
exports
|
|
614
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
671
615
|
|
|
672
616
|
/***/ }),
|
|
673
|
-
/* 26
|
|
617
|
+
/* 26 */,
|
|
618
|
+
/* 27 */
|
|
674
619
|
/***/ (function(module, exports, __webpack_require__) {
|
|
675
620
|
|
|
676
621
|
"use strict";
|
|
@@ -685,13 +630,13 @@ var React = __webpack_require__(1);
|
|
|
685
630
|
|
|
686
631
|
var T = __webpack_require__(0);
|
|
687
632
|
|
|
688
|
-
var lodash_1 = __webpack_require__(
|
|
633
|
+
var lodash_1 = __webpack_require__(3);
|
|
689
634
|
|
|
690
|
-
var i18n_1 = __webpack_require__(
|
|
635
|
+
var i18n_1 = __webpack_require__(2);
|
|
691
636
|
|
|
692
|
-
var Message_1 = __webpack_require__(
|
|
637
|
+
var Message_1 = __webpack_require__(9);
|
|
693
638
|
|
|
694
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
639
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
695
640
|
/**
|
|
696
641
|
* @method shouldShowIconPlaceholder
|
|
697
642
|
* @param {object} dataSources
|
|
@@ -761,13 +706,13 @@ IconPlaceholder.defaultProps = {
|
|
|
761
706
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
762
707
|
|
|
763
708
|
/***/ }),
|
|
764
|
-
/*
|
|
709
|
+
/* 28 */
|
|
765
710
|
/***/ (function(module, exports, __webpack_require__) {
|
|
766
711
|
|
|
767
712
|
"use strict";
|
|
768
713
|
|
|
769
714
|
|
|
770
|
-
var _defineProperty = __webpack_require__(
|
|
715
|
+
var _defineProperty = __webpack_require__(6);
|
|
771
716
|
|
|
772
717
|
Object.defineProperty(exports, "__esModule", {
|
|
773
718
|
value: true
|
|
@@ -776,9 +721,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
|
776
721
|
|
|
777
722
|
var T = __webpack_require__(0);
|
|
778
723
|
|
|
779
|
-
var lodash_1 = __webpack_require__(
|
|
724
|
+
var lodash_1 = __webpack_require__(3);
|
|
780
725
|
|
|
781
|
-
var DataSource_1 = __webpack_require__(
|
|
726
|
+
var DataSource_1 = __webpack_require__(38);
|
|
782
727
|
|
|
783
728
|
exports.SortParamsPropTypes = T.shape({
|
|
784
729
|
currentSortKey: T.string,
|
|
@@ -831,7 +776,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
831
776
|
exports.getSortingParams = getSortingParams;
|
|
832
777
|
|
|
833
778
|
/***/ }),
|
|
834
|
-
/*
|
|
779
|
+
/* 29 */
|
|
835
780
|
/***/ (function(module, exports, __webpack_require__) {
|
|
836
781
|
|
|
837
782
|
"use strict";
|
|
@@ -844,7 +789,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
|
844
789
|
|
|
845
790
|
var T = __webpack_require__(0);
|
|
846
791
|
|
|
847
|
-
var lodash_1 = __webpack_require__(
|
|
792
|
+
var lodash_1 = __webpack_require__(3);
|
|
848
793
|
|
|
849
794
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
850
795
|
isPaging: T.bool,
|
|
@@ -895,7 +840,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
895
840
|
exports.getPaginationParams = getPaginationParams;
|
|
896
841
|
|
|
897
842
|
/***/ }),
|
|
898
|
-
/*
|
|
843
|
+
/* 30 */
|
|
899
844
|
/***/ (function(module, exports, __webpack_require__) {
|
|
900
845
|
|
|
901
846
|
"use strict";
|
|
@@ -923,7 +868,7 @@ var VizCategory;
|
|
|
923
868
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
924
869
|
|
|
925
870
|
/***/ }),
|
|
926
|
-
/*
|
|
871
|
+
/* 31 */
|
|
927
872
|
/***/ (function(module, exports, __webpack_require__) {
|
|
928
873
|
|
|
929
874
|
"use strict";
|
|
@@ -935,39 +880,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
935
880
|
|
|
936
881
|
var React = __webpack_require__(1);
|
|
937
882
|
|
|
938
|
-
var lodash_1 = __webpack_require__(
|
|
883
|
+
var lodash_1 = __webpack_require__(3);
|
|
939
884
|
|
|
940
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
885
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(32);
|
|
941
886
|
|
|
942
|
-
var Options_1 = __webpack_require__(
|
|
887
|
+
var Options_1 = __webpack_require__(33);
|
|
943
888
|
|
|
944
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
889
|
+
var SanitizeProps_1 = __webpack_require__(34);
|
|
945
890
|
|
|
946
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
891
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
947
892
|
|
|
948
|
-
var moment_1 = __webpack_require__(
|
|
893
|
+
var moment_1 = __webpack_require__(35);
|
|
949
894
|
|
|
950
895
|
var styled_components_1 = __webpack_require__(4);
|
|
951
896
|
|
|
952
|
-
var
|
|
897
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
953
898
|
|
|
954
|
-
var
|
|
899
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
955
900
|
|
|
956
|
-
var
|
|
901
|
+
var SplunkVisualization_1 = __webpack_require__(36);
|
|
957
902
|
|
|
958
|
-
var
|
|
903
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
959
904
|
|
|
960
|
-
var
|
|
905
|
+
var getSorting_1 = __webpack_require__(28);
|
|
961
906
|
|
|
962
|
-
var
|
|
907
|
+
var getPagination_1 = __webpack_require__(29);
|
|
963
908
|
|
|
964
|
-
var
|
|
909
|
+
var useDeepMemo_1 = __webpack_require__(39);
|
|
965
910
|
|
|
966
|
-
var
|
|
911
|
+
var MissingPropsMessage_1 = __webpack_require__(40);
|
|
967
912
|
|
|
968
|
-
var
|
|
913
|
+
var withEditModeCover_1 = __webpack_require__(41);
|
|
969
914
|
|
|
970
|
-
var
|
|
915
|
+
var withPlaceholder_1 = __webpack_require__(42);
|
|
971
916
|
/**
|
|
972
917
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
973
918
|
* @param {DashboardVizOpts} opts
|
|
@@ -1168,37 +1113,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1168
1113
|
exports.default = withDashboardViz;
|
|
1169
1114
|
|
|
1170
1115
|
/***/ }),
|
|
1171
|
-
/*
|
|
1116
|
+
/* 32 */
|
|
1172
1117
|
/***/ (function(module, exports) {
|
|
1173
1118
|
|
|
1174
1119
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1175
1120
|
|
|
1176
1121
|
/***/ }),
|
|
1177
|
-
/*
|
|
1122
|
+
/* 33 */
|
|
1178
1123
|
/***/ (function(module, exports) {
|
|
1179
1124
|
|
|
1180
1125
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1181
1126
|
|
|
1182
1127
|
/***/ }),
|
|
1183
|
-
/*
|
|
1128
|
+
/* 34 */
|
|
1184
1129
|
/***/ (function(module, exports) {
|
|
1185
1130
|
|
|
1186
1131
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1187
1132
|
|
|
1188
1133
|
/***/ }),
|
|
1189
|
-
/*
|
|
1134
|
+
/* 35 */
|
|
1190
1135
|
/***/ (function(module, exports) {
|
|
1191
1136
|
|
|
1192
1137
|
module.exports = require("@splunk/moment");
|
|
1193
1138
|
|
|
1194
1139
|
/***/ }),
|
|
1195
|
-
/*
|
|
1140
|
+
/* 36 */
|
|
1196
1141
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1197
1142
|
|
|
1198
1143
|
"use strict";
|
|
1199
1144
|
|
|
1200
1145
|
|
|
1201
|
-
var _classCallCheck = __webpack_require__(
|
|
1146
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1202
1147
|
|
|
1203
1148
|
Object.defineProperty(exports, "__esModule", {
|
|
1204
1149
|
value: true
|
|
@@ -1208,9 +1153,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
|
1208
1153
|
|
|
1209
1154
|
var T = __webpack_require__(0);
|
|
1210
1155
|
|
|
1211
|
-
var lodash_1 = __webpack_require__(
|
|
1156
|
+
var lodash_1 = __webpack_require__(3);
|
|
1212
1157
|
|
|
1213
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1158
|
+
var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1214
1159
|
|
|
1215
1160
|
|
|
1216
1161
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1343,15 +1288,15 @@ SplunkVisualization.defaultProps = {
|
|
|
1343
1288
|
exports.default = SplunkVisualization;
|
|
1344
1289
|
|
|
1345
1290
|
/***/ }),
|
|
1346
|
-
/*
|
|
1291
|
+
/* 37 */
|
|
1347
1292
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1348
1293
|
|
|
1349
1294
|
"use strict";
|
|
1350
1295
|
|
|
1351
1296
|
|
|
1352
|
-
var _classCallCheck = __webpack_require__(
|
|
1297
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1353
1298
|
|
|
1354
|
-
var _createClass = __webpack_require__(
|
|
1299
|
+
var _createClass = __webpack_require__(18);
|
|
1355
1300
|
|
|
1356
1301
|
Object.defineProperty(exports, "__esModule", {
|
|
1357
1302
|
value: true
|
|
@@ -1380,7 +1325,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1380
1325
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1381
1326
|
|
|
1382
1327
|
/***/ }),
|
|
1383
|
-
/*
|
|
1328
|
+
/* 38 */
|
|
1384
1329
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1385
1330
|
|
|
1386
1331
|
"use strict";
|
|
@@ -1393,7 +1338,7 @@ exports.validSortDirs = void 0;
|
|
|
1393
1338
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1394
1339
|
|
|
1395
1340
|
/***/ }),
|
|
1396
|
-
/*
|
|
1341
|
+
/* 39 */
|
|
1397
1342
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1398
1343
|
|
|
1399
1344
|
"use strict";
|
|
@@ -1406,7 +1351,7 @@ exports.useDeepMemo = void 0;
|
|
|
1406
1351
|
|
|
1407
1352
|
var react_1 = __webpack_require__(1);
|
|
1408
1353
|
|
|
1409
|
-
var lodash_1 = __webpack_require__(
|
|
1354
|
+
var lodash_1 = __webpack_require__(3);
|
|
1410
1355
|
/**
|
|
1411
1356
|
* This hook evaluates and stores the result of a passed function and only
|
|
1412
1357
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -1438,7 +1383,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1438
1383
|
exports.useDeepMemo = useDeepMemo;
|
|
1439
1384
|
|
|
1440
1385
|
/***/ }),
|
|
1441
|
-
/*
|
|
1386
|
+
/* 40 */
|
|
1442
1387
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1443
1388
|
|
|
1444
1389
|
"use strict";
|
|
@@ -1453,11 +1398,11 @@ var React = __webpack_require__(1);
|
|
|
1453
1398
|
|
|
1454
1399
|
var T = __webpack_require__(0);
|
|
1455
1400
|
|
|
1456
|
-
var i18n_1 = __webpack_require__(
|
|
1401
|
+
var i18n_1 = __webpack_require__(2);
|
|
1457
1402
|
|
|
1458
|
-
var Message_1 = __webpack_require__(
|
|
1403
|
+
var Message_1 = __webpack_require__(9);
|
|
1459
1404
|
|
|
1460
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1405
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1461
1406
|
/**
|
|
1462
1407
|
* @method isMissing
|
|
1463
1408
|
* @param {any} v
|
|
@@ -1518,7 +1463,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1518
1463
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1519
1464
|
|
|
1520
1465
|
/***/ }),
|
|
1521
|
-
/*
|
|
1466
|
+
/* 41 */
|
|
1522
1467
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1523
1468
|
|
|
1524
1469
|
"use strict";
|
|
@@ -1532,14 +1477,14 @@ var React = __webpack_require__(1);
|
|
|
1532
1477
|
|
|
1533
1478
|
var styled_components_1 = __webpack_require__(4);
|
|
1534
1479
|
|
|
1535
|
-
var hocUtils_1 = __webpack_require__(
|
|
1480
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1536
1481
|
|
|
1537
1482
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1538
1483
|
displayName: "withEditModeCover__Cover",
|
|
1539
1484
|
componentId: "sc-1gsbnxb-0"
|
|
1540
1485
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1541
1486
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1542
|
-
'data-splunk-visualization-version': "25.
|
|
1487
|
+
'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
|
|
1543
1488
|
}).withConfig({
|
|
1544
1489
|
displayName: "withEditModeCover__Blocker",
|
|
1545
1490
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1569,12 +1514,6 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1569
1514
|
|
|
1570
1515
|
exports.default = withEditModeCover;
|
|
1571
1516
|
|
|
1572
|
-
/***/ }),
|
|
1573
|
-
/* 41 */
|
|
1574
|
-
/***/ (function(module, exports) {
|
|
1575
|
-
|
|
1576
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
1577
|
-
|
|
1578
1517
|
/***/ }),
|
|
1579
1518
|
/* 42 */
|
|
1580
1519
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1588,15 +1527,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1588
1527
|
|
|
1589
1528
|
var React = __webpack_require__(1);
|
|
1590
1529
|
|
|
1591
|
-
var colorUtils_1 = __webpack_require__(
|
|
1530
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1592
1531
|
|
|
1593
|
-
var variables_1 = __webpack_require__(
|
|
1532
|
+
var variables_1 = __webpack_require__(8);
|
|
1594
1533
|
|
|
1595
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1534
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1596
1535
|
|
|
1597
1536
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1598
1537
|
|
|
1599
|
-
var hocUtils_1 = __webpack_require__(
|
|
1538
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1600
1539
|
|
|
1601
1540
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1602
1541
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1671,7 +1610,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1671
1610
|
value: true
|
|
1672
1611
|
});
|
|
1673
1612
|
|
|
1674
|
-
var i18n_1 = __webpack_require__(
|
|
1613
|
+
var i18n_1 = __webpack_require__(2);
|
|
1675
1614
|
|
|
1676
1615
|
var background = function background(_ref) {
|
|
1677
1616
|
var label = _ref.label,
|
|
@@ -1697,7 +1636,7 @@ exports.default = background;
|
|
|
1697
1636
|
"use strict";
|
|
1698
1637
|
|
|
1699
1638
|
|
|
1700
|
-
var _toConsumableArray = __webpack_require__(
|
|
1639
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
1701
1640
|
|
|
1702
1641
|
var __rest = this && this.__rest || function (s, e) {
|
|
1703
1642
|
var t = {};
|
|
@@ -1717,7 +1656,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1717
1656
|
});
|
|
1718
1657
|
exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
|
|
1719
1658
|
|
|
1720
|
-
var lodash_1 = __webpack_require__(
|
|
1659
|
+
var lodash_1 = __webpack_require__(3);
|
|
1721
1660
|
/**
|
|
1722
1661
|
* Get formatted annotations
|
|
1723
1662
|
* @method getAnnotations
|
|
@@ -1933,9 +1872,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1933
1872
|
exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
|
|
1934
1873
|
/* eslint-disable react/no-unused-prop-types */
|
|
1935
1874
|
|
|
1936
|
-
var lodash_1 = __webpack_require__(
|
|
1875
|
+
var lodash_1 = __webpack_require__(3);
|
|
1937
1876
|
|
|
1938
|
-
var i18n_1 = __webpack_require__(
|
|
1877
|
+
var i18n_1 = __webpack_require__(2);
|
|
1939
1878
|
|
|
1940
1879
|
var visualization_color_palettes_1 = __webpack_require__(44);
|
|
1941
1880
|
|
|
@@ -1952,13 +1891,13 @@ __webpack_require__(57); // fixme, @splunk/charting should be refactor to use lo
|
|
|
1952
1891
|
|
|
1953
1892
|
var charting_bundle_1 = __webpack_require__(51);
|
|
1954
1893
|
|
|
1955
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1894
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
1956
1895
|
|
|
1957
|
-
var style_1 = __webpack_require__(
|
|
1896
|
+
var style_1 = __webpack_require__(14);
|
|
1958
1897
|
|
|
1959
1898
|
var styled_components_1 = __webpack_require__(4);
|
|
1960
1899
|
|
|
1961
|
-
var Message_1 = __webpack_require__(
|
|
1900
|
+
var Message_1 = __webpack_require__(9);
|
|
1962
1901
|
|
|
1963
1902
|
var useSplunkTheme_1 = __webpack_require__(58);
|
|
1964
1903
|
|
|
@@ -2373,9 +2312,9 @@ module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
|
2373
2312
|
"use strict";
|
|
2374
2313
|
|
|
2375
2314
|
|
|
2376
|
-
var _classCallCheck = __webpack_require__(
|
|
2315
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2377
2316
|
|
|
2378
|
-
var _createClass = __webpack_require__(
|
|
2317
|
+
var _createClass = __webpack_require__(18);
|
|
2379
2318
|
|
|
2380
2319
|
Object.defineProperty(exports, "__esModule", {
|
|
2381
2320
|
value: true
|
|
@@ -2448,16 +2387,16 @@ module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
|
2448
2387
|
"use strict";
|
|
2449
2388
|
|
|
2450
2389
|
|
|
2451
|
-
var _toConsumableArray = __webpack_require__(
|
|
2390
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2452
2391
|
|
|
2453
2392
|
Object.defineProperty(exports, "__esModule", {
|
|
2454
2393
|
value: true
|
|
2455
2394
|
});
|
|
2456
2395
|
exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
|
|
2457
2396
|
|
|
2458
|
-
var i18n_1 = __webpack_require__(
|
|
2397
|
+
var i18n_1 = __webpack_require__(2);
|
|
2459
2398
|
|
|
2460
|
-
var configUtils_1 = __webpack_require__(
|
|
2399
|
+
var configUtils_1 = __webpack_require__(16);
|
|
2461
2400
|
|
|
2462
2401
|
var AxesChartDataConfig = {
|
|
2463
2402
|
label: i18n_1._('Data configurations'),
|
|
@@ -2498,15 +2437,35 @@ exports.AxesChartDataConfigBar = {
|
|
|
2498
2437
|
};
|
|
2499
2438
|
exports.AxesChartDataConfigScatter = {
|
|
2500
2439
|
label: AxesChartDataConfig.label,
|
|
2501
|
-
|
|
2502
|
-
|
|
2440
|
+
layout: [[{
|
|
2441
|
+
label: i18n_1._('X'),
|
|
2442
|
+
option: 'x',
|
|
2443
|
+
editor: 'editor.columnSelector',
|
|
2444
|
+
editorProps: {
|
|
2445
|
+
dataSourceKey: 'primary'
|
|
2446
|
+
}
|
|
2447
|
+
}], [{
|
|
2448
|
+
label: i18n_1._('Y'),
|
|
2449
|
+
option: 'y',
|
|
2450
|
+
editor: 'editor.columnSelector',
|
|
2451
|
+
editorProps: {
|
|
2452
|
+
dataSourceKey: 'primary'
|
|
2453
|
+
}
|
|
2454
|
+
}], [{
|
|
2503
2455
|
label: i18n_1._('Category'),
|
|
2504
2456
|
option: 'category',
|
|
2505
2457
|
editor: 'editor.columnSelector',
|
|
2506
2458
|
editorProps: {
|
|
2507
2459
|
dataSourceKey: 'primary'
|
|
2508
2460
|
}
|
|
2509
|
-
}]
|
|
2461
|
+
}], [{
|
|
2462
|
+
label: i18n_1._('Result limit'),
|
|
2463
|
+
option: 'resultLimit',
|
|
2464
|
+
editor: 'editor.number',
|
|
2465
|
+
editorProps: {
|
|
2466
|
+
dataSourceKey: 'primary'
|
|
2467
|
+
}
|
|
2468
|
+
}]]
|
|
2510
2469
|
};
|
|
2511
2470
|
exports.AxesChartDataConfigBubble = {
|
|
2512
2471
|
label: exports.AxesChartDataConfigScatter.label,
|
|
@@ -2551,11 +2510,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2551
2510
|
value: true
|
|
2552
2511
|
});
|
|
2553
2512
|
|
|
2554
|
-
var i18n_1 = __webpack_require__(
|
|
2513
|
+
var i18n_1 = __webpack_require__(2);
|
|
2555
2514
|
|
|
2556
|
-
var pick_1 = __webpack_require__(
|
|
2515
|
+
var pick_1 = __webpack_require__(21);
|
|
2557
2516
|
|
|
2558
|
-
var variables_1 = __webpack_require__(
|
|
2517
|
+
var variables_1 = __webpack_require__(8);
|
|
2559
2518
|
|
|
2560
2519
|
var BackgroundColor_1 = __webpack_require__(49);
|
|
2561
2520
|
|
|
@@ -2574,23 +2533,15 @@ var AxesChartColorAndStyle = {
|
|
|
2574
2533
|
label: i18n_1._('Color and style'),
|
|
2575
2534
|
layout: [BackgroundColor_1.default({
|
|
2576
2535
|
themes: themes
|
|
2577
|
-
})
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
// [
|
|
2587
|
-
// {
|
|
2588
|
-
// label: _('Series colors by field name'),
|
|
2589
|
-
// option: 'seriesColorsByField',
|
|
2590
|
-
// editor: 'editor.seriesColorsByField',
|
|
2591
|
-
// },
|
|
2592
|
-
// ],
|
|
2593
|
-
]
|
|
2536
|
+
}), [{
|
|
2537
|
+
label: i18n_1._('Series colors'),
|
|
2538
|
+
option: 'seriesColors',
|
|
2539
|
+
editor: 'editor.seriesColors'
|
|
2540
|
+
}], [{
|
|
2541
|
+
label: i18n_1._('Series colors by field name'),
|
|
2542
|
+
option: 'seriesColorsByField',
|
|
2543
|
+
editor: 'editor.seriesColorsByField'
|
|
2544
|
+
}]]
|
|
2594
2545
|
};
|
|
2595
2546
|
exports.default = AxesChartColorAndStyle;
|
|
2596
2547
|
|
|
@@ -2605,7 +2556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2605
2556
|
value: true
|
|
2606
2557
|
});
|
|
2607
2558
|
|
|
2608
|
-
var i18n_1 = __webpack_require__(
|
|
2559
|
+
var i18n_1 = __webpack_require__(2);
|
|
2609
2560
|
|
|
2610
2561
|
var AxesChartLegend = {
|
|
2611
2562
|
label: i18n_1._('Legend'),
|
|
@@ -2665,16 +2616,16 @@ exports.default = AxesChartLegend;
|
|
|
2665
2616
|
"use strict";
|
|
2666
2617
|
|
|
2667
2618
|
|
|
2668
|
-
var _toConsumableArray = __webpack_require__(
|
|
2619
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2669
2620
|
|
|
2670
2621
|
Object.defineProperty(exports, "__esModule", {
|
|
2671
2622
|
value: true
|
|
2672
2623
|
});
|
|
2673
2624
|
exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
|
|
2674
2625
|
|
|
2675
|
-
var i18n_1 = __webpack_require__(
|
|
2626
|
+
var i18n_1 = __webpack_require__(2);
|
|
2676
2627
|
|
|
2677
|
-
var configUtils_1 = __webpack_require__(
|
|
2628
|
+
var configUtils_1 = __webpack_require__(16);
|
|
2678
2629
|
|
|
2679
2630
|
exports.AxesChartXGridAndLabelsCommon = {
|
|
2680
2631
|
label: i18n_1._('X-axis grid and labels'),
|
|
@@ -2713,7 +2664,7 @@ var AxesChartXGridAndLabels = {
|
|
|
2713
2664
|
layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
2714
2665
|
label: i18n_1._('Label rotation'),
|
|
2715
2666
|
option: 'xAxisLabelRotation',
|
|
2716
|
-
editor: 'editor.
|
|
2667
|
+
editor: 'editor.select',
|
|
2717
2668
|
editorProps: {
|
|
2718
2669
|
values: [{
|
|
2719
2670
|
label: i18n_1._('-90'),
|
|
@@ -2957,7 +2908,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2957
2908
|
value: true
|
|
2958
2909
|
});
|
|
2959
2910
|
|
|
2960
|
-
var i18n_1 = __webpack_require__(
|
|
2911
|
+
var i18n_1 = __webpack_require__(2);
|
|
2961
2912
|
|
|
2962
2913
|
var AxesChartYGridAndLabels = {
|
|
2963
2914
|
label: i18n_1._('Y-axis grid and labels'),
|
|
@@ -3160,7 +3111,9 @@ exports.default = AxesChartYGridAndLabels;
|
|
|
3160
3111
|
/* 116 */,
|
|
3161
3112
|
/* 117 */,
|
|
3162
3113
|
/* 118 */,
|
|
3163
|
-
/* 119
|
|
3114
|
+
/* 119 */,
|
|
3115
|
+
/* 120 */,
|
|
3116
|
+
/* 121 */
|
|
3164
3117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3165
3118
|
|
|
3166
3119
|
"use strict";
|
|
@@ -3184,7 +3137,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3184
3137
|
});
|
|
3185
3138
|
exports.config = exports.themes = exports.computeVizProps = void 0;
|
|
3186
3139
|
|
|
3187
|
-
var lodash_1 = __webpack_require__(
|
|
3140
|
+
var lodash_1 = __webpack_require__(3); // Charting imports i18n which needs to be run to instantiate window globals in the tests
|
|
3188
3141
|
// eslint-disable-next-line import/order
|
|
3189
3142
|
|
|
3190
3143
|
|
|
@@ -3194,13 +3147,13 @@ var charting_bundle_1 = __webpack_require__(51);
|
|
|
3194
3147
|
|
|
3195
3148
|
var simpleXMLOptions_1 = __webpack_require__(61);
|
|
3196
3149
|
|
|
3197
|
-
var config_1 = __webpack_require__(
|
|
3150
|
+
var config_1 = __webpack_require__(155);
|
|
3198
3151
|
|
|
3199
3152
|
exports.config = config_1.default;
|
|
3200
3153
|
|
|
3201
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3154
|
+
var withDashboardViz_1 = __webpack_require__(31);
|
|
3202
3155
|
|
|
3203
|
-
var bubbleUtils_1 = __webpack_require__(
|
|
3156
|
+
var bubbleUtils_1 = __webpack_require__(156);
|
|
3204
3157
|
|
|
3205
3158
|
var chartingUtils_1 = __webpack_require__(50);
|
|
3206
3159
|
|
|
@@ -3284,8 +3237,6 @@ exports.themes = themes;
|
|
|
3284
3237
|
exports.default = Bubble;
|
|
3285
3238
|
|
|
3286
3239
|
/***/ }),
|
|
3287
|
-
/* 120 */,
|
|
3288
|
-
/* 121 */,
|
|
3289
3240
|
/* 122 */,
|
|
3290
3241
|
/* 123 */,
|
|
3291
3242
|
/* 124 */,
|
|
@@ -3316,7 +3267,9 @@ exports.default = Bubble;
|
|
|
3316
3267
|
/* 149 */,
|
|
3317
3268
|
/* 150 */,
|
|
3318
3269
|
/* 151 */,
|
|
3319
|
-
/* 152
|
|
3270
|
+
/* 152 */,
|
|
3271
|
+
/* 153 */,
|
|
3272
|
+
/* 154 */
|
|
3320
3273
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3321
3274
|
|
|
3322
3275
|
"use strict";
|
|
@@ -3346,9 +3299,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3346
3299
|
});
|
|
3347
3300
|
exports.default = void 0;
|
|
3348
3301
|
|
|
3349
|
-
__exportStar(__webpack_require__(
|
|
3302
|
+
__exportStar(__webpack_require__(121), exports);
|
|
3350
3303
|
|
|
3351
|
-
var Bubble_1 = __webpack_require__(
|
|
3304
|
+
var Bubble_1 = __webpack_require__(121);
|
|
3352
3305
|
|
|
3353
3306
|
Object.defineProperty(exports, "default", {
|
|
3354
3307
|
enumerable: true,
|
|
@@ -3358,13 +3311,13 @@ Object.defineProperty(exports, "default", {
|
|
|
3358
3311
|
});
|
|
3359
3312
|
|
|
3360
3313
|
/***/ }),
|
|
3361
|
-
/*
|
|
3314
|
+
/* 155 */
|
|
3362
3315
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3363
3316
|
|
|
3364
3317
|
"use strict";
|
|
3365
3318
|
|
|
3366
3319
|
|
|
3367
|
-
var _toConsumableArray = __webpack_require__(
|
|
3320
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
3368
3321
|
|
|
3369
3322
|
Object.defineProperty(exports, "__esModule", {
|
|
3370
3323
|
value: true
|
|
@@ -3374,15 +3327,15 @@ var visualization_icons_1 = __webpack_require__(46);
|
|
|
3374
3327
|
|
|
3375
3328
|
var placeholders_1 = __webpack_require__(45);
|
|
3376
3329
|
|
|
3377
|
-
var schemaUtils_1 = __webpack_require__(
|
|
3330
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
3378
3331
|
|
|
3379
3332
|
var visualization_color_palettes_1 = __webpack_require__(44);
|
|
3380
3333
|
|
|
3381
|
-
var pick_1 = __webpack_require__(
|
|
3334
|
+
var pick_1 = __webpack_require__(21);
|
|
3382
3335
|
|
|
3383
|
-
var variables_1 = __webpack_require__(
|
|
3336
|
+
var variables_1 = __webpack_require__(8);
|
|
3384
3337
|
|
|
3385
|
-
var i18n_1 = __webpack_require__(
|
|
3338
|
+
var i18n_1 = __webpack_require__(2);
|
|
3386
3339
|
|
|
3387
3340
|
var AxesChartDataConfig_1 = __webpack_require__(63);
|
|
3388
3341
|
|
|
@@ -3396,9 +3349,9 @@ var AxesChartYGridAndLabels_1 = __webpack_require__(67);
|
|
|
3396
3349
|
|
|
3397
3350
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3398
3351
|
|
|
3399
|
-
var VizCategory_1 = __webpack_require__(
|
|
3352
|
+
var VizCategory_1 = __webpack_require__(30);
|
|
3400
3353
|
|
|
3401
|
-
var configUtils_1 = __webpack_require__(
|
|
3354
|
+
var configUtils_1 = __webpack_require__(16);
|
|
3402
3355
|
|
|
3403
3356
|
var dataContract = {
|
|
3404
3357
|
requiredDataSources: [{
|
|
@@ -3478,7 +3431,7 @@ var optionsSchema = {
|
|
|
3478
3431
|
backgroundColor: {
|
|
3479
3432
|
default: '> themes.defaultBackgroundColor',
|
|
3480
3433
|
description: 'Specify the color used for the chart background by using a hexadecimal code. For example, #0000FF.',
|
|
3481
|
-
pattern: schemaUtils_1.
|
|
3434
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3482
3435
|
type: 'string'
|
|
3483
3436
|
},
|
|
3484
3437
|
bubbleSizeMax: {
|
|
@@ -3813,7 +3766,7 @@ var config = {
|
|
|
3813
3766
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
3814
3767
|
|
|
3815
3768
|
/***/ }),
|
|
3816
|
-
/*
|
|
3769
|
+
/* 156 */
|
|
3817
3770
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3818
3771
|
|
|
3819
3772
|
"use strict";
|
|
@@ -3824,9 +3777,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3824
3777
|
});
|
|
3825
3778
|
exports.convertToBubbleSCProperties = exports.mapToOldKey = exports.convertToStringValues = exports.bubbleOptionValuesSCMapping = void 0;
|
|
3826
3779
|
|
|
3827
|
-
var lodash_1 = __webpack_require__(
|
|
3780
|
+
var lodash_1 = __webpack_require__(3);
|
|
3828
3781
|
|
|
3829
|
-
var propUtils_1 = __webpack_require__(
|
|
3782
|
+
var propUtils_1 = __webpack_require__(23);
|
|
3830
3783
|
|
|
3831
3784
|
var chartingUtils_1 = __webpack_require__(50); // map for key names which are either new or not present in SimpleXML options mapping
|
|
3832
3785
|
|