@splunk/visualizations 25.0.1 → 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_custom_base_layer_tile_server.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/Area.config.js +141 -152
- package/Area.config.js.map +1 -1
- package/Area.js +334 -431
- package/Area.js.map +1 -1
- package/Bar.config.js +143 -148
- package/Bar.config.js.map +1 -1
- package/Bar.js +336 -427
- package/Bar.js.map +1 -1
- package/Bubble.config.js +130 -117
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +325 -398
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +86 -80
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +305 -385
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +139 -146
- package/Column.config.js.map +1 -1
- package/Column.js +332 -425
- package/Column.js.map +1 -1
- package/Ellipse.config.js +86 -80
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +288 -368
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +91 -85
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +296 -376
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +74 -74
- package/Image.config.js.map +1 -1
- package/Image.js +710 -798
- package/Image.js.map +1 -1
- package/Line.config.js +139 -137
- package/Line.config.js.map +1 -1
- package/Line.js +332 -416
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +112 -112
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +320 -405
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +101 -95
- package/Map.config.js.map +1 -1
- package/Map.js +472 -518
- package/Map.js.map +1 -1
- package/Markdown.config.js +113 -113
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +500 -574
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +192 -193
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1200 -1289
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +138 -138
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +292 -376
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +133 -133
- package/Pie.config.js.map +1 -1
- package/Pie.js +496 -584
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +139 -139
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +315 -399
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +267 -260
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +499 -580
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +150 -143
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +316 -390
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +130 -117
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +547 -623
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +119 -113
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +523 -604
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +19 -19
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +128 -120
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +343 -420
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +215 -178
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +668 -749
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +150 -151
- package/Table.config.js.map +1 -1
- package/Table.js +772 -854
- 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 -352
- 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 +17 -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/Ellipse.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 = 171);
|
|
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
|
|
|
@@ -394,308 +570,57 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
394
570
|
exports.insertLayout = insertLayout;
|
|
395
571
|
|
|
396
572
|
/***/ }),
|
|
397
|
-
/*
|
|
398
|
-
/***/ (function(module, exports) {
|
|
399
|
-
|
|
400
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
401
|
-
|
|
402
|
-
/***/ }),
|
|
403
|
-
/* 8 */
|
|
404
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
405
|
-
|
|
406
|
-
"use strict";
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
var _typeof = __webpack_require__(25);
|
|
410
|
-
|
|
411
|
-
Object.defineProperty(exports, "__esModule", {
|
|
412
|
-
value: true
|
|
413
|
-
});
|
|
414
|
-
exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
|
|
415
|
-
|
|
416
|
-
var lodash_1 = __webpack_require__(2);
|
|
417
|
-
|
|
418
|
-
var mapUtils_1 = __webpack_require__(41);
|
|
419
|
-
/**
|
|
420
|
-
* @method extendStaticWrapperProps
|
|
421
|
-
* @param {Object} props
|
|
422
|
-
* @param {DashboardVizType} props.Wrapper
|
|
423
|
-
* @param {DashboardVizType} props.Visualization
|
|
424
|
-
*/
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
428
|
-
var Wrapper = _ref.Wrapper,
|
|
429
|
-
Visualization = _ref.Visualization;
|
|
430
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
431
|
-
extendProperties.forEach(function (prop) {
|
|
432
|
-
if (Visualization[prop]) {
|
|
433
|
-
// eslint-disable-next-line no-param-reassign
|
|
434
|
-
Wrapper[prop] = Visualization[prop];
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
440
|
-
/**
|
|
441
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
442
|
-
* 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
|
|
443
|
-
* 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).
|
|
444
|
-
* 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
|
|
445
|
-
* 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.
|
|
446
|
-
*
|
|
447
|
-
* @method deepMergeWithArrayPrimitiveOverrides
|
|
448
|
-
* @param {Object} initial - target object to merge values into
|
|
449
|
-
* @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
|
|
450
|
-
*
|
|
451
|
-
* @returns {Object}
|
|
452
|
-
*/
|
|
453
|
-
|
|
454
|
-
var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
|
|
455
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
456
|
-
|
|
457
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
458
|
-
sources[_key - 1] = arguments[_key];
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
sources.forEach(function (sourceToApply) {
|
|
462
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
463
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
464
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
468
|
-
clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
469
|
-
} else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
|
|
470
|
-
// If option is an array of objects
|
|
471
|
-
for (var i = 0; i < clone[sourceKey].length; i += 1) {
|
|
472
|
-
if (_typeof(clone[sourceKey][i]) === 'object') {
|
|
473
|
-
var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
|
|
474
|
-
|
|
475
|
-
if (closestMatchIdx > -1) {
|
|
476
|
-
clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
});
|
|
483
|
-
return clone;
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
|
|
487
|
-
|
|
488
|
-
/***/ }),
|
|
489
|
-
/* 9 */
|
|
490
|
-
/***/ (function(module, exports) {
|
|
491
|
-
|
|
492
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
493
|
-
|
|
494
|
-
/***/ }),
|
|
495
|
-
/* 10 */
|
|
496
|
-
/***/ (function(module, exports) {
|
|
497
|
-
|
|
498
|
-
module.exports = require("@splunk/themes/variables");
|
|
499
|
-
|
|
500
|
-
/***/ }),
|
|
501
|
-
/* 11 */
|
|
502
|
-
/***/ (function(module, exports) {
|
|
503
|
-
|
|
504
|
-
module.exports = require("@splunk/visualizations-shared/Message");
|
|
505
|
-
|
|
506
|
-
/***/ }),
|
|
507
|
-
/* 12 */
|
|
508
|
-
/***/ (function(module, exports) {
|
|
509
|
-
|
|
510
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
511
|
-
|
|
512
|
-
/***/ }),
|
|
513
|
-
/* 13 */
|
|
514
|
-
/***/ (function(module, exports) {
|
|
515
|
-
|
|
516
|
-
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
517
|
-
|
|
518
|
-
/***/ }),
|
|
519
|
-
/* 14 */
|
|
520
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
521
|
-
|
|
522
|
-
"use strict";
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
Object.defineProperty(exports, "__esModule", {
|
|
526
|
-
value: true
|
|
527
|
-
});
|
|
528
|
-
|
|
529
|
-
var React = __webpack_require__(1);
|
|
530
|
-
|
|
531
|
-
var styled_components_1 = __webpack_require__(4);
|
|
532
|
-
|
|
533
|
-
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
534
|
-
|
|
535
|
-
var style_1 = __webpack_require__(15);
|
|
536
|
-
|
|
537
|
-
var colorUtils_1 = __webpack_require__(13);
|
|
538
|
-
|
|
539
|
-
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
540
|
-
var width = _ref.width;
|
|
541
|
-
return {
|
|
542
|
-
style: {
|
|
543
|
-
width: style_1.toPx(width)
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
}).withConfig({
|
|
547
|
-
displayName: "FixedSizeContainer__Item",
|
|
548
|
-
componentId: "sc-1yhgpod-0"
|
|
549
|
-
})(["position:relative;background-color:", "};"], function (props) {
|
|
550
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
551
|
-
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
552
|
-
|
|
553
|
-
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
554
|
-
var width = _ref2.width,
|
|
555
|
-
height = _ref2.height;
|
|
556
|
-
return {
|
|
557
|
-
style: Object.assign(Object.assign({}, width && {
|
|
558
|
-
width: style_1.toPx(width)
|
|
559
|
-
}), height && {
|
|
560
|
-
height: style_1.toPx(height)
|
|
561
|
-
})
|
|
562
|
-
};
|
|
563
|
-
}).withConfig({
|
|
564
|
-
displayName: "FixedSizeContainer__FixSizeItem",
|
|
565
|
-
componentId: "sc-1yhgpod-1"
|
|
566
|
-
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
567
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
568
|
-
});
|
|
569
|
-
var ItemContent = styled_components_1.default.div.withConfig({
|
|
570
|
-
displayName: "FixedSizeContainer__ItemContent",
|
|
571
|
-
componentId: "sc-1yhgpod-2"
|
|
572
|
-
})(["position:relative;min-height:100px;width:100%;"]);
|
|
573
|
-
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
574
|
-
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
575
|
-
componentId: "sc-1yhgpod-3"
|
|
576
|
-
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
577
|
-
|
|
578
|
-
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
579
|
-
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
580
|
-
var width = props.width,
|
|
581
|
-
height = props.height,
|
|
582
|
-
backgroundColor = props.backgroundColor;
|
|
583
|
-
|
|
584
|
-
if (!height) {
|
|
585
|
-
return React.createElement(Item, {
|
|
586
|
-
"data-test": "item",
|
|
587
|
-
width: width,
|
|
588
|
-
backgroundColor: backgroundColor
|
|
589
|
-
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
return React.createElement(FixSizeItem, {
|
|
593
|
-
"data-test": "fix-size-item",
|
|
594
|
-
"data-splunk-visualization-version": "25.0.1 - de10ad954",
|
|
595
|
-
width: width,
|
|
596
|
-
height: height,
|
|
597
|
-
backgroundColor: backgroundColor
|
|
598
|
-
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
599
|
-
var newWidth = _ref3.width,
|
|
600
|
-
newHeight = _ref3.height;
|
|
601
|
-
return React.createElement(Viz, Object.assign({}, props, {
|
|
602
|
-
width: newWidth,
|
|
603
|
-
height: newHeight
|
|
604
|
-
}));
|
|
605
|
-
})));
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
609
|
-
return FixedSizeContainer;
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
exports.default = withFixedSizeContainer;
|
|
613
|
-
|
|
614
|
-
/***/ }),
|
|
615
|
-
/* 15 */
|
|
616
|
-
/***/ (function(module, exports) {
|
|
617
|
-
|
|
618
|
-
module.exports = require("@splunk/visualizations-shared/style");
|
|
619
|
-
|
|
620
|
-
/***/ }),
|
|
621
|
-
/* 16 */
|
|
573
|
+
/* 17 */
|
|
622
574
|
/***/ (function(module, exports) {
|
|
623
575
|
|
|
624
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
576
|
+
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
625
577
|
|
|
626
578
|
/***/ }),
|
|
627
|
-
/*
|
|
579
|
+
/* 18 */
|
|
628
580
|
/***/ (function(module, exports) {
|
|
629
581
|
|
|
630
582
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
631
583
|
|
|
632
584
|
/***/ }),
|
|
633
|
-
/*
|
|
585
|
+
/* 19 */
|
|
634
586
|
/***/ (function(module, exports) {
|
|
635
587
|
|
|
636
588
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
637
589
|
|
|
638
590
|
/***/ }),
|
|
639
|
-
/*
|
|
640
|
-
/*
|
|
591
|
+
/* 20 */,
|
|
592
|
+
/* 21 */
|
|
641
593
|
/***/ (function(module, exports) {
|
|
642
594
|
|
|
643
595
|
module.exports = require("@splunk/themes/pick");
|
|
644
596
|
|
|
645
597
|
/***/ }),
|
|
646
|
-
/*
|
|
598
|
+
/* 22 */
|
|
647
599
|
/***/ (function(module, exports) {
|
|
648
600
|
|
|
649
601
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
650
602
|
|
|
651
603
|
/***/ }),
|
|
652
|
-
/*
|
|
604
|
+
/* 23 */
|
|
653
605
|
/***/ (function(module, exports) {
|
|
654
606
|
|
|
655
607
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
656
608
|
|
|
657
609
|
/***/ }),
|
|
658
|
-
/* 23 */,
|
|
659
610
|
/* 24 */
|
|
660
|
-
/***/ (function(module, exports
|
|
661
|
-
|
|
662
|
-
"use strict";
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
Object.defineProperty(exports, "__esModule", {
|
|
666
|
-
value: true
|
|
667
|
-
});
|
|
668
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
669
|
-
|
|
670
|
-
var lodash_1 = __webpack_require__(2);
|
|
671
|
-
|
|
672
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
673
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
674
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
675
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
676
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
677
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
678
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
679
|
-
|
|
680
|
-
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
681
|
-
accum[k] = nestedSchema;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
return accum;
|
|
686
|
-
}, {});
|
|
687
|
-
};
|
|
611
|
+
/***/ (function(module, exports) {
|
|
688
612
|
|
|
689
|
-
exports
|
|
613
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
690
614
|
|
|
691
615
|
/***/ }),
|
|
692
616
|
/* 25 */
|
|
693
617
|
/***/ (function(module, exports) {
|
|
694
618
|
|
|
695
|
-
module.exports = require("@
|
|
619
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
696
620
|
|
|
697
621
|
/***/ }),
|
|
698
|
-
/* 26
|
|
622
|
+
/* 26 */,
|
|
623
|
+
/* 27 */
|
|
699
624
|
/***/ (function(module, exports, __webpack_require__) {
|
|
700
625
|
|
|
701
626
|
"use strict";
|
|
@@ -710,13 +635,13 @@ var React = __webpack_require__(1);
|
|
|
710
635
|
|
|
711
636
|
var T = __webpack_require__(0);
|
|
712
637
|
|
|
713
|
-
var lodash_1 = __webpack_require__(
|
|
638
|
+
var lodash_1 = __webpack_require__(3);
|
|
714
639
|
|
|
715
|
-
var i18n_1 = __webpack_require__(
|
|
640
|
+
var i18n_1 = __webpack_require__(2);
|
|
716
641
|
|
|
717
|
-
var Message_1 = __webpack_require__(
|
|
642
|
+
var Message_1 = __webpack_require__(9);
|
|
718
643
|
|
|
719
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
644
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
720
645
|
/**
|
|
721
646
|
* @method shouldShowIconPlaceholder
|
|
722
647
|
* @param {object} dataSources
|
|
@@ -786,13 +711,13 @@ IconPlaceholder.defaultProps = {
|
|
|
786
711
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
787
712
|
|
|
788
713
|
/***/ }),
|
|
789
|
-
/*
|
|
714
|
+
/* 28 */
|
|
790
715
|
/***/ (function(module, exports, __webpack_require__) {
|
|
791
716
|
|
|
792
717
|
"use strict";
|
|
793
718
|
|
|
794
719
|
|
|
795
|
-
var _defineProperty = __webpack_require__(
|
|
720
|
+
var _defineProperty = __webpack_require__(6);
|
|
796
721
|
|
|
797
722
|
Object.defineProperty(exports, "__esModule", {
|
|
798
723
|
value: true
|
|
@@ -801,9 +726,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
|
801
726
|
|
|
802
727
|
var T = __webpack_require__(0);
|
|
803
728
|
|
|
804
|
-
var lodash_1 = __webpack_require__(
|
|
729
|
+
var lodash_1 = __webpack_require__(3);
|
|
805
730
|
|
|
806
|
-
var DataSource_1 = __webpack_require__(
|
|
731
|
+
var DataSource_1 = __webpack_require__(38);
|
|
807
732
|
|
|
808
733
|
exports.SortParamsPropTypes = T.shape({
|
|
809
734
|
currentSortKey: T.string,
|
|
@@ -856,7 +781,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
856
781
|
exports.getSortingParams = getSortingParams;
|
|
857
782
|
|
|
858
783
|
/***/ }),
|
|
859
|
-
/*
|
|
784
|
+
/* 29 */
|
|
860
785
|
/***/ (function(module, exports, __webpack_require__) {
|
|
861
786
|
|
|
862
787
|
"use strict";
|
|
@@ -869,7 +794,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
|
869
794
|
|
|
870
795
|
var T = __webpack_require__(0);
|
|
871
796
|
|
|
872
|
-
var lodash_1 = __webpack_require__(
|
|
797
|
+
var lodash_1 = __webpack_require__(3);
|
|
873
798
|
|
|
874
799
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
875
800
|
isPaging: T.bool,
|
|
@@ -920,7 +845,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
920
845
|
exports.getPaginationParams = getPaginationParams;
|
|
921
846
|
|
|
922
847
|
/***/ }),
|
|
923
|
-
/*
|
|
848
|
+
/* 30 */
|
|
924
849
|
/***/ (function(module, exports, __webpack_require__) {
|
|
925
850
|
|
|
926
851
|
"use strict";
|
|
@@ -948,7 +873,7 @@ var VizCategory;
|
|
|
948
873
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
949
874
|
|
|
950
875
|
/***/ }),
|
|
951
|
-
/*
|
|
876
|
+
/* 31 */
|
|
952
877
|
/***/ (function(module, exports, __webpack_require__) {
|
|
953
878
|
|
|
954
879
|
"use strict";
|
|
@@ -960,39 +885,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
960
885
|
|
|
961
886
|
var React = __webpack_require__(1);
|
|
962
887
|
|
|
963
|
-
var lodash_1 = __webpack_require__(
|
|
888
|
+
var lodash_1 = __webpack_require__(3);
|
|
964
889
|
|
|
965
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
890
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(32);
|
|
966
891
|
|
|
967
|
-
var Options_1 = __webpack_require__(
|
|
892
|
+
var Options_1 = __webpack_require__(33);
|
|
968
893
|
|
|
969
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
894
|
+
var SanitizeProps_1 = __webpack_require__(34);
|
|
970
895
|
|
|
971
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
896
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
972
897
|
|
|
973
|
-
var moment_1 = __webpack_require__(
|
|
898
|
+
var moment_1 = __webpack_require__(35);
|
|
974
899
|
|
|
975
900
|
var styled_components_1 = __webpack_require__(4);
|
|
976
901
|
|
|
977
|
-
var
|
|
902
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
978
903
|
|
|
979
|
-
var
|
|
904
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
980
905
|
|
|
981
|
-
var
|
|
906
|
+
var SplunkVisualization_1 = __webpack_require__(36);
|
|
982
907
|
|
|
983
|
-
var
|
|
908
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
984
909
|
|
|
985
|
-
var
|
|
910
|
+
var getSorting_1 = __webpack_require__(28);
|
|
986
911
|
|
|
987
|
-
var
|
|
912
|
+
var getPagination_1 = __webpack_require__(29);
|
|
988
913
|
|
|
989
|
-
var
|
|
914
|
+
var useDeepMemo_1 = __webpack_require__(39);
|
|
990
915
|
|
|
991
|
-
var
|
|
916
|
+
var MissingPropsMessage_1 = __webpack_require__(40);
|
|
992
917
|
|
|
993
|
-
var
|
|
918
|
+
var withEditModeCover_1 = __webpack_require__(41);
|
|
994
919
|
|
|
995
|
-
var
|
|
920
|
+
var withPlaceholder_1 = __webpack_require__(42);
|
|
996
921
|
/**
|
|
997
922
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
998
923
|
* @param {DashboardVizOpts} opts
|
|
@@ -1193,37 +1118,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1193
1118
|
exports.default = withDashboardViz;
|
|
1194
1119
|
|
|
1195
1120
|
/***/ }),
|
|
1196
|
-
/*
|
|
1121
|
+
/* 32 */
|
|
1197
1122
|
/***/ (function(module, exports) {
|
|
1198
1123
|
|
|
1199
1124
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1200
1125
|
|
|
1201
1126
|
/***/ }),
|
|
1202
|
-
/*
|
|
1127
|
+
/* 33 */
|
|
1203
1128
|
/***/ (function(module, exports) {
|
|
1204
1129
|
|
|
1205
1130
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1206
1131
|
|
|
1207
1132
|
/***/ }),
|
|
1208
|
-
/*
|
|
1133
|
+
/* 34 */
|
|
1209
1134
|
/***/ (function(module, exports) {
|
|
1210
1135
|
|
|
1211
1136
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1212
1137
|
|
|
1213
1138
|
/***/ }),
|
|
1214
|
-
/*
|
|
1139
|
+
/* 35 */
|
|
1215
1140
|
/***/ (function(module, exports) {
|
|
1216
1141
|
|
|
1217
1142
|
module.exports = require("@splunk/moment");
|
|
1218
1143
|
|
|
1219
1144
|
/***/ }),
|
|
1220
|
-
/*
|
|
1145
|
+
/* 36 */
|
|
1221
1146
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1222
1147
|
|
|
1223
1148
|
"use strict";
|
|
1224
1149
|
|
|
1225
1150
|
|
|
1226
|
-
var _classCallCheck = __webpack_require__(
|
|
1151
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1227
1152
|
|
|
1228
1153
|
Object.defineProperty(exports, "__esModule", {
|
|
1229
1154
|
value: true
|
|
@@ -1233,9 +1158,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
|
1233
1158
|
|
|
1234
1159
|
var T = __webpack_require__(0);
|
|
1235
1160
|
|
|
1236
|
-
var lodash_1 = __webpack_require__(
|
|
1161
|
+
var lodash_1 = __webpack_require__(3);
|
|
1237
1162
|
|
|
1238
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1163
|
+
var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1239
1164
|
|
|
1240
1165
|
|
|
1241
1166
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1368,15 +1293,15 @@ SplunkVisualization.defaultProps = {
|
|
|
1368
1293
|
exports.default = SplunkVisualization;
|
|
1369
1294
|
|
|
1370
1295
|
/***/ }),
|
|
1371
|
-
/*
|
|
1296
|
+
/* 37 */
|
|
1372
1297
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1373
1298
|
|
|
1374
1299
|
"use strict";
|
|
1375
1300
|
|
|
1376
1301
|
|
|
1377
|
-
var _classCallCheck = __webpack_require__(
|
|
1302
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1378
1303
|
|
|
1379
|
-
var _createClass = __webpack_require__(
|
|
1304
|
+
var _createClass = __webpack_require__(18);
|
|
1380
1305
|
|
|
1381
1306
|
Object.defineProperty(exports, "__esModule", {
|
|
1382
1307
|
value: true
|
|
@@ -1405,7 +1330,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1405
1330
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1406
1331
|
|
|
1407
1332
|
/***/ }),
|
|
1408
|
-
/*
|
|
1333
|
+
/* 38 */
|
|
1409
1334
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1410
1335
|
|
|
1411
1336
|
"use strict";
|
|
@@ -1418,7 +1343,7 @@ exports.validSortDirs = void 0;
|
|
|
1418
1343
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1419
1344
|
|
|
1420
1345
|
/***/ }),
|
|
1421
|
-
/*
|
|
1346
|
+
/* 39 */
|
|
1422
1347
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1423
1348
|
|
|
1424
1349
|
"use strict";
|
|
@@ -1431,7 +1356,7 @@ exports.useDeepMemo = void 0;
|
|
|
1431
1356
|
|
|
1432
1357
|
var react_1 = __webpack_require__(1);
|
|
1433
1358
|
|
|
1434
|
-
var lodash_1 = __webpack_require__(
|
|
1359
|
+
var lodash_1 = __webpack_require__(3);
|
|
1435
1360
|
/**
|
|
1436
1361
|
* This hook evaluates and stores the result of a passed function and only
|
|
1437
1362
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -1463,7 +1388,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1463
1388
|
exports.useDeepMemo = useDeepMemo;
|
|
1464
1389
|
|
|
1465
1390
|
/***/ }),
|
|
1466
|
-
/*
|
|
1391
|
+
/* 40 */
|
|
1467
1392
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1468
1393
|
|
|
1469
1394
|
"use strict";
|
|
@@ -1478,11 +1403,11 @@ var React = __webpack_require__(1);
|
|
|
1478
1403
|
|
|
1479
1404
|
var T = __webpack_require__(0);
|
|
1480
1405
|
|
|
1481
|
-
var i18n_1 = __webpack_require__(
|
|
1406
|
+
var i18n_1 = __webpack_require__(2);
|
|
1482
1407
|
|
|
1483
|
-
var Message_1 = __webpack_require__(
|
|
1408
|
+
var Message_1 = __webpack_require__(9);
|
|
1484
1409
|
|
|
1485
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1410
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1486
1411
|
/**
|
|
1487
1412
|
* @method isMissing
|
|
1488
1413
|
* @param {any} v
|
|
@@ -1543,7 +1468,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1543
1468
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1544
1469
|
|
|
1545
1470
|
/***/ }),
|
|
1546
|
-
/*
|
|
1471
|
+
/* 41 */
|
|
1547
1472
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1548
1473
|
|
|
1549
1474
|
"use strict";
|
|
@@ -1557,14 +1482,14 @@ var React = __webpack_require__(1);
|
|
|
1557
1482
|
|
|
1558
1483
|
var styled_components_1 = __webpack_require__(4);
|
|
1559
1484
|
|
|
1560
|
-
var hocUtils_1 = __webpack_require__(
|
|
1485
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1561
1486
|
|
|
1562
1487
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1563
1488
|
displayName: "withEditModeCover__Cover",
|
|
1564
1489
|
componentId: "sc-1gsbnxb-0"
|
|
1565
1490
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1566
1491
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1567
|
-
'data-splunk-visualization-version': "25.0
|
|
1492
|
+
'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
|
|
1568
1493
|
}).withConfig({
|
|
1569
1494
|
displayName: "withEditModeCover__Blocker",
|
|
1570
1495
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1594,12 +1519,6 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1594
1519
|
|
|
1595
1520
|
exports.default = withEditModeCover;
|
|
1596
1521
|
|
|
1597
|
-
/***/ }),
|
|
1598
|
-
/* 41 */
|
|
1599
|
-
/***/ (function(module, exports) {
|
|
1600
|
-
|
|
1601
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
1602
|
-
|
|
1603
1522
|
/***/ }),
|
|
1604
1523
|
/* 42 */
|
|
1605
1524
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1613,15 +1532,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1613
1532
|
|
|
1614
1533
|
var React = __webpack_require__(1);
|
|
1615
1534
|
|
|
1616
|
-
var colorUtils_1 = __webpack_require__(
|
|
1535
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1617
1536
|
|
|
1618
|
-
var variables_1 = __webpack_require__(
|
|
1537
|
+
var variables_1 = __webpack_require__(8);
|
|
1619
1538
|
|
|
1620
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1539
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1621
1540
|
|
|
1622
1541
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1623
1542
|
|
|
1624
|
-
var hocUtils_1 = __webpack_require__(
|
|
1543
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1625
1544
|
|
|
1626
1545
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1627
1546
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1723,7 +1642,8 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
|
|
|
1723
1642
|
/* 93 */,
|
|
1724
1643
|
/* 94 */,
|
|
1725
1644
|
/* 95 */,
|
|
1726
|
-
/* 96
|
|
1645
|
+
/* 96 */,
|
|
1646
|
+
/* 97 */
|
|
1727
1647
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1728
1648
|
|
|
1729
1649
|
"use strict";
|
|
@@ -1734,9 +1654,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1734
1654
|
});
|
|
1735
1655
|
exports.getDynamicFillColorEditor = void 0;
|
|
1736
1656
|
|
|
1737
|
-
var i18n_1 = __webpack_require__(
|
|
1657
|
+
var i18n_1 = __webpack_require__(2);
|
|
1738
1658
|
|
|
1739
|
-
var configUtils_1 = __webpack_require__(
|
|
1659
|
+
var configUtils_1 = __webpack_require__(17);
|
|
1740
1660
|
|
|
1741
1661
|
var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
|
|
1742
1662
|
var defaultContext = _ref.defaultContext,
|
|
@@ -1778,7 +1698,7 @@ var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
|
|
|
1778
1698
|
exports.getDynamicFillColorEditor = getDynamicFillColorEditor;
|
|
1779
1699
|
|
|
1780
1700
|
/***/ }),
|
|
1781
|
-
/*
|
|
1701
|
+
/* 98 */
|
|
1782
1702
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1783
1703
|
|
|
1784
1704
|
"use strict";
|
|
@@ -1789,9 +1709,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1789
1709
|
});
|
|
1790
1710
|
exports.getDynamicStrokeColorEditor = void 0;
|
|
1791
1711
|
|
|
1792
|
-
var i18n_1 = __webpack_require__(
|
|
1712
|
+
var i18n_1 = __webpack_require__(2);
|
|
1793
1713
|
|
|
1794
|
-
var configUtils_1 = __webpack_require__(
|
|
1714
|
+
var configUtils_1 = __webpack_require__(17);
|
|
1795
1715
|
|
|
1796
1716
|
var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
|
|
1797
1717
|
var defaultContext = _ref.defaultContext,
|
|
@@ -1833,7 +1753,7 @@ var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
|
|
|
1833
1753
|
exports.getDynamicStrokeColorEditor = getDynamicStrokeColorEditor;
|
|
1834
1754
|
|
|
1835
1755
|
/***/ }),
|
|
1836
|
-
/*
|
|
1756
|
+
/* 99 */
|
|
1837
1757
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1838
1758
|
|
|
1839
1759
|
"use strict";
|
|
@@ -1843,9 +1763,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1843
1763
|
value: true
|
|
1844
1764
|
});
|
|
1845
1765
|
|
|
1846
|
-
var i18n_1 = __webpack_require__(
|
|
1766
|
+
var i18n_1 = __webpack_require__(2);
|
|
1847
1767
|
|
|
1848
|
-
var configUtils_1 = __webpack_require__(
|
|
1768
|
+
var configUtils_1 = __webpack_require__(17);
|
|
1849
1769
|
|
|
1850
1770
|
var StaticFillColorEditor = {
|
|
1851
1771
|
label: i18n_1._('Static Fill'),
|
|
@@ -1859,7 +1779,7 @@ var StaticFillColorEditor = {
|
|
|
1859
1779
|
exports.default = StaticFillColorEditor;
|
|
1860
1780
|
|
|
1861
1781
|
/***/ }),
|
|
1862
|
-
/*
|
|
1782
|
+
/* 100 */
|
|
1863
1783
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1864
1784
|
|
|
1865
1785
|
"use strict";
|
|
@@ -1869,9 +1789,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1869
1789
|
value: true
|
|
1870
1790
|
});
|
|
1871
1791
|
|
|
1872
|
-
var i18n_1 = __webpack_require__(
|
|
1792
|
+
var i18n_1 = __webpack_require__(2);
|
|
1873
1793
|
|
|
1874
|
-
var configUtils_1 = __webpack_require__(
|
|
1794
|
+
var configUtils_1 = __webpack_require__(17);
|
|
1875
1795
|
|
|
1876
1796
|
var StaticStrokeColorEditor = {
|
|
1877
1797
|
label: i18n_1._('Static Stroke'),
|
|
@@ -1885,7 +1805,7 @@ var StaticStrokeColorEditor = {
|
|
|
1885
1805
|
exports.default = StaticStrokeColorEditor;
|
|
1886
1806
|
|
|
1887
1807
|
/***/ }),
|
|
1888
|
-
/*
|
|
1808
|
+
/* 101 */
|
|
1889
1809
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1890
1810
|
|
|
1891
1811
|
"use strict";
|
|
@@ -1896,15 +1816,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1896
1816
|
});
|
|
1897
1817
|
exports.getStyledShape = exports.mapToOldKey = void 0;
|
|
1898
1818
|
|
|
1899
|
-
var lodash_1 = __webpack_require__(
|
|
1819
|
+
var lodash_1 = __webpack_require__(3);
|
|
1900
1820
|
|
|
1901
1821
|
var styled_components_1 = __webpack_require__(4);
|
|
1902
1822
|
|
|
1903
|
-
var pick_1 = __webpack_require__(
|
|
1823
|
+
var pick_1 = __webpack_require__(21);
|
|
1904
1824
|
|
|
1905
|
-
var variables_1 = __webpack_require__(
|
|
1825
|
+
var variables_1 = __webpack_require__(8);
|
|
1906
1826
|
|
|
1907
|
-
var propUtils_1 = __webpack_require__(
|
|
1827
|
+
var propUtils_1 = __webpack_require__(23); // map for new options names to old option names
|
|
1908
1828
|
|
|
1909
1829
|
|
|
1910
1830
|
var shapeOptionsMapping = {
|
|
@@ -1961,7 +1881,6 @@ var getStyledShape = function getStyledShape(shape) {
|
|
|
1961
1881
|
exports.getStyledShape = getStyledShape;
|
|
1962
1882
|
|
|
1963
1883
|
/***/ }),
|
|
1964
|
-
/* 101 */,
|
|
1965
1884
|
/* 102 */,
|
|
1966
1885
|
/* 103 */,
|
|
1967
1886
|
/* 104 */,
|
|
@@ -1983,7 +1902,8 @@ exports.getStyledShape = getStyledShape;
|
|
|
1983
1902
|
/* 120 */,
|
|
1984
1903
|
/* 121 */,
|
|
1985
1904
|
/* 122 */,
|
|
1986
|
-
/* 123
|
|
1905
|
+
/* 123 */,
|
|
1906
|
+
/* 124 */
|
|
1987
1907
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1988
1908
|
|
|
1989
1909
|
"use strict";
|
|
@@ -2009,19 +1929,19 @@ exports.config = exports.themes = void 0;
|
|
|
2009
1929
|
|
|
2010
1930
|
var React = __webpack_require__(1);
|
|
2011
1931
|
|
|
2012
|
-
var lodash_1 = __webpack_require__(
|
|
1932
|
+
var lodash_1 = __webpack_require__(3);
|
|
2013
1933
|
|
|
2014
1934
|
var styled_components_1 = __webpack_require__(4);
|
|
2015
1935
|
|
|
2016
1936
|
var T = __webpack_require__(0);
|
|
2017
1937
|
|
|
2018
|
-
var config_1 = __webpack_require__(
|
|
1938
|
+
var config_1 = __webpack_require__(172);
|
|
2019
1939
|
|
|
2020
1940
|
exports.config = config_1.default;
|
|
2021
1941
|
|
|
2022
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
1942
|
+
var withDashboardViz_1 = __webpack_require__(31);
|
|
2023
1943
|
|
|
2024
|
-
var shapeUtils_1 = __webpack_require__(
|
|
1944
|
+
var shapeUtils_1 = __webpack_require__(101);
|
|
2025
1945
|
|
|
2026
1946
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
2027
1947
|
var SVGContainer = styled_components_1.default.svg.withConfig({
|
|
@@ -2090,7 +2010,6 @@ exports.themes = themes;
|
|
|
2090
2010
|
exports.default = Ellipse;
|
|
2091
2011
|
|
|
2092
2012
|
/***/ }),
|
|
2093
|
-
/* 124 */,
|
|
2094
2013
|
/* 125 */,
|
|
2095
2014
|
/* 126 */,
|
|
2096
2015
|
/* 127 */,
|
|
@@ -2136,7 +2055,8 @@ exports.default = Ellipse;
|
|
|
2136
2055
|
/* 167 */,
|
|
2137
2056
|
/* 168 */,
|
|
2138
2057
|
/* 169 */,
|
|
2139
|
-
/* 170
|
|
2058
|
+
/* 170 */,
|
|
2059
|
+
/* 171 */
|
|
2140
2060
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2141
2061
|
|
|
2142
2062
|
"use strict";
|
|
@@ -2166,9 +2086,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2166
2086
|
});
|
|
2167
2087
|
exports.default = void 0;
|
|
2168
2088
|
|
|
2169
|
-
__exportStar(__webpack_require__(
|
|
2089
|
+
__exportStar(__webpack_require__(124), exports);
|
|
2170
2090
|
|
|
2171
|
-
var Ellipse_1 = __webpack_require__(
|
|
2091
|
+
var Ellipse_1 = __webpack_require__(124);
|
|
2172
2092
|
|
|
2173
2093
|
Object.defineProperty(exports, "default", {
|
|
2174
2094
|
enumerable: true,
|
|
@@ -2178,7 +2098,7 @@ Object.defineProperty(exports, "default", {
|
|
|
2178
2098
|
});
|
|
2179
2099
|
|
|
2180
2100
|
/***/ }),
|
|
2181
|
-
/*
|
|
2101
|
+
/* 172 */
|
|
2182
2102
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2183
2103
|
|
|
2184
2104
|
"use strict";
|
|
@@ -2188,27 +2108,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2188
2108
|
value: true
|
|
2189
2109
|
});
|
|
2190
2110
|
|
|
2191
|
-
var i18n_1 = __webpack_require__(
|
|
2111
|
+
var i18n_1 = __webpack_require__(2);
|
|
2192
2112
|
|
|
2193
2113
|
var PresetPalettes_1 = __webpack_require__(53);
|
|
2194
2114
|
|
|
2195
|
-
var pick_1 = __webpack_require__(
|
|
2115
|
+
var pick_1 = __webpack_require__(21);
|
|
2196
2116
|
|
|
2197
|
-
var variables_1 = __webpack_require__(
|
|
2117
|
+
var variables_1 = __webpack_require__(8);
|
|
2198
2118
|
|
|
2199
2119
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2200
2120
|
|
|
2201
|
-
var VizCategory_1 = __webpack_require__(
|
|
2121
|
+
var VizCategory_1 = __webpack_require__(30);
|
|
2202
2122
|
|
|
2203
|
-
var configUtils_1 = __webpack_require__(
|
|
2123
|
+
var configUtils_1 = __webpack_require__(16);
|
|
2204
2124
|
|
|
2205
|
-
var DynamicFillColorEditor_1 = __webpack_require__(
|
|
2125
|
+
var DynamicFillColorEditor_1 = __webpack_require__(97);
|
|
2206
2126
|
|
|
2207
|
-
var DynamicStrokeColorEditor_1 = __webpack_require__(
|
|
2127
|
+
var DynamicStrokeColorEditor_1 = __webpack_require__(98);
|
|
2208
2128
|
|
|
2209
|
-
var StaticFillColorEditor_1 = __webpack_require__(
|
|
2129
|
+
var StaticFillColorEditor_1 = __webpack_require__(99);
|
|
2210
2130
|
|
|
2211
|
-
var StaticStrokeColorEditor_1 = __webpack_require__(
|
|
2131
|
+
var StaticStrokeColorEditor_1 = __webpack_require__(100);
|
|
2212
2132
|
|
|
2213
2133
|
var dataContract = {
|
|
2214
2134
|
requiredDataSources: [],
|