@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/Sankey.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 = 247);
|
|
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 */
|
|
162
198
|
/***/ (function(module, exports, __webpack_require__) {
|
|
163
199
|
|
|
164
200
|
"use strict";
|
|
165
201
|
|
|
166
202
|
|
|
167
|
-
|
|
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);
|
|
168
216
|
|
|
169
|
-
var
|
|
217
|
+
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
218
|
+
var width = _ref.width;
|
|
219
|
+
return {
|
|
220
|
+
style: {
|
|
221
|
+
width: style_1.toPx(width)
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}).withConfig({
|
|
225
|
+
displayName: "FixedSizeContainer__Item",
|
|
226
|
+
componentId: "sc-1yhgpod-0"
|
|
227
|
+
})(["position:relative;background-color:", "};"], function (props) {
|
|
228
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
229
|
+
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
230
|
+
|
|
231
|
+
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
232
|
+
var width = _ref2.width,
|
|
233
|
+
height = _ref2.height;
|
|
234
|
+
return {
|
|
235
|
+
style: Object.assign(Object.assign({}, width && {
|
|
236
|
+
width: style_1.toPx(width)
|
|
237
|
+
}), height && {
|
|
238
|
+
height: style_1.toPx(height)
|
|
239
|
+
})
|
|
240
|
+
};
|
|
241
|
+
}).withConfig({
|
|
242
|
+
displayName: "FixedSizeContainer__FixSizeItem",
|
|
243
|
+
componentId: "sc-1yhgpod-1"
|
|
244
|
+
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
245
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
246
|
+
});
|
|
247
|
+
var ItemContent = styled_components_1.default.div.withConfig({
|
|
248
|
+
displayName: "FixedSizeContainer__ItemContent",
|
|
249
|
+
componentId: "sc-1yhgpod-2"
|
|
250
|
+
})(["position:relative;min-height:100px;width:100%;"]);
|
|
251
|
+
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
252
|
+
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
253
|
+
componentId: "sc-1yhgpod-3"
|
|
254
|
+
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
255
|
+
|
|
256
|
+
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
257
|
+
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
258
|
+
var width = props.width,
|
|
259
|
+
height = props.height,
|
|
260
|
+
backgroundColor = props.backgroundColor;
|
|
261
|
+
|
|
262
|
+
if (!height) {
|
|
263
|
+
return React.createElement(Item, {
|
|
264
|
+
"data-test": "item",
|
|
265
|
+
width: width,
|
|
266
|
+
backgroundColor: backgroundColor
|
|
267
|
+
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return React.createElement(FixSizeItem, {
|
|
271
|
+
"data-test": "fix-size-item",
|
|
272
|
+
"data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
|
|
273
|
+
width: width,
|
|
274
|
+
height: height,
|
|
275
|
+
backgroundColor: backgroundColor
|
|
276
|
+
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
277
|
+
var newWidth = _ref3.width,
|
|
278
|
+
newHeight = _ref3.height;
|
|
279
|
+
return React.createElement(Viz, Object.assign({}, props, {
|
|
280
|
+
width: newWidth,
|
|
281
|
+
height: newHeight
|
|
282
|
+
}));
|
|
283
|
+
})));
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
287
|
+
return FixedSizeContainer;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
exports.default = withFixedSizeContainer;
|
|
291
|
+
|
|
292
|
+
/***/ }),
|
|
293
|
+
/* 13 */
|
|
294
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
295
|
+
|
|
296
|
+
"use strict";
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
Object.defineProperty(exports, "__esModule", {
|
|
300
|
+
value: true
|
|
301
|
+
});
|
|
302
|
+
exports.extendStaticWrapperProps = void 0;
|
|
303
|
+
/**
|
|
304
|
+
* @method extendStaticWrapperProps
|
|
305
|
+
* @param {Object} props
|
|
306
|
+
* @param {DashboardVizType} props.Wrapper
|
|
307
|
+
* @param {DashboardVizType} props.Visualization
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
311
|
+
var Wrapper = _ref.Wrapper,
|
|
312
|
+
Visualization = _ref.Visualization;
|
|
313
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
314
|
+
extendProperties.forEach(function (prop) {
|
|
315
|
+
if (Visualization[prop]) {
|
|
316
|
+
// eslint-disable-next-line no-param-reassign
|
|
317
|
+
Wrapper[prop] = Visualization[prop];
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
323
|
+
|
|
324
|
+
/***/ }),
|
|
325
|
+
/* 14 */
|
|
326
|
+
/***/ (function(module, exports) {
|
|
327
|
+
|
|
328
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
329
|
+
|
|
330
|
+
/***/ }),
|
|
331
|
+
/* 15 */
|
|
332
|
+
/***/ (function(module, exports) {
|
|
333
|
+
|
|
334
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
335
|
+
|
|
336
|
+
/***/ }),
|
|
337
|
+
/* 16 */
|
|
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,303 +570,52 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
369
570
|
exports.insertLayout = insertLayout;
|
|
370
571
|
|
|
371
572
|
/***/ }),
|
|
372
|
-
/*
|
|
373
|
-
/***/ (function(module, exports) {
|
|
374
|
-
|
|
375
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
376
|
-
|
|
377
|
-
/***/ }),
|
|
378
|
-
/* 8 */
|
|
379
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
380
|
-
|
|
381
|
-
"use strict";
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
var _typeof = __webpack_require__(23);
|
|
385
|
-
|
|
386
|
-
Object.defineProperty(exports, "__esModule", {
|
|
387
|
-
value: true
|
|
388
|
-
});
|
|
389
|
-
exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
|
|
390
|
-
|
|
391
|
-
var lodash_1 = __webpack_require__(2);
|
|
392
|
-
|
|
393
|
-
var mapUtils_1 = __webpack_require__(41);
|
|
394
|
-
/**
|
|
395
|
-
* @method extendStaticWrapperProps
|
|
396
|
-
* @param {Object} props
|
|
397
|
-
* @param {DashboardVizType} props.Wrapper
|
|
398
|
-
* @param {DashboardVizType} props.Visualization
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
403
|
-
var Wrapper = _ref.Wrapper,
|
|
404
|
-
Visualization = _ref.Visualization;
|
|
405
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
406
|
-
extendProperties.forEach(function (prop) {
|
|
407
|
-
if (Visualization[prop]) {
|
|
408
|
-
// eslint-disable-next-line no-param-reassign
|
|
409
|
-
Wrapper[prop] = Visualization[prop];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
415
|
-
/**
|
|
416
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
417
|
-
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays of primitives will be preserved if already present in the resultant merged object
|
|
418
|
-
* this prevents default arrays of primitives from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one).
|
|
419
|
-
* Array of objects gets merged with the defaults, where the defaults can be an array of objects. Closest matching default object from the defaults list based on key - value pair
|
|
420
|
-
* will be used for merging defaults for each object in the array. If no closest match found, first object in default array list used for merging.
|
|
421
|
-
*
|
|
422
|
-
* @method deepMergeWithArrayPrimitiveOverrides
|
|
423
|
-
* @param {Object} initial - target object to merge values into
|
|
424
|
-
* @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
|
|
425
|
-
*
|
|
426
|
-
* @returns {Object}
|
|
427
|
-
*/
|
|
428
|
-
|
|
429
|
-
var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
|
|
430
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
431
|
-
|
|
432
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
433
|
-
sources[_key - 1] = arguments[_key];
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
sources.forEach(function (sourceToApply) {
|
|
437
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
438
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
439
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
443
|
-
clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
444
|
-
} else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
|
|
445
|
-
// If option is an array of objects
|
|
446
|
-
for (var i = 0; i < clone[sourceKey].length; i += 1) {
|
|
447
|
-
if (_typeof(clone[sourceKey][i]) === 'object') {
|
|
448
|
-
var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
|
|
449
|
-
|
|
450
|
-
if (closestMatchIdx > -1) {
|
|
451
|
-
clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
return clone;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
|
|
462
|
-
|
|
463
|
-
/***/ }),
|
|
464
|
-
/* 9 */
|
|
465
|
-
/***/ (function(module, exports) {
|
|
466
|
-
|
|
467
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
468
|
-
|
|
469
|
-
/***/ }),
|
|
470
|
-
/* 10 */
|
|
471
|
-
/***/ (function(module, exports) {
|
|
472
|
-
|
|
473
|
-
module.exports = require("@splunk/themes/variables");
|
|
474
|
-
|
|
475
|
-
/***/ }),
|
|
476
|
-
/* 11 */
|
|
477
|
-
/***/ (function(module, exports) {
|
|
478
|
-
|
|
479
|
-
module.exports = require("@splunk/visualizations-shared/Message");
|
|
480
|
-
|
|
481
|
-
/***/ }),
|
|
482
|
-
/* 12 */
|
|
483
|
-
/***/ (function(module, exports) {
|
|
484
|
-
|
|
485
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
486
|
-
|
|
487
|
-
/***/ }),
|
|
488
|
-
/* 13 */
|
|
489
|
-
/***/ (function(module, exports) {
|
|
490
|
-
|
|
491
|
-
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
492
|
-
|
|
493
|
-
/***/ }),
|
|
494
|
-
/* 14 */
|
|
495
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
496
|
-
|
|
497
|
-
"use strict";
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
Object.defineProperty(exports, "__esModule", {
|
|
501
|
-
value: true
|
|
502
|
-
});
|
|
503
|
-
|
|
504
|
-
var React = __webpack_require__(1);
|
|
505
|
-
|
|
506
|
-
var styled_components_1 = __webpack_require__(4);
|
|
507
|
-
|
|
508
|
-
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
509
|
-
|
|
510
|
-
var style_1 = __webpack_require__(15);
|
|
511
|
-
|
|
512
|
-
var colorUtils_1 = __webpack_require__(13);
|
|
513
|
-
|
|
514
|
-
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
515
|
-
var width = _ref.width;
|
|
516
|
-
return {
|
|
517
|
-
style: {
|
|
518
|
-
width: style_1.toPx(width)
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
}).withConfig({
|
|
522
|
-
displayName: "FixedSizeContainer__Item",
|
|
523
|
-
componentId: "sc-1yhgpod-0"
|
|
524
|
-
})(["position:relative;background-color:", "};"], function (props) {
|
|
525
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
526
|
-
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
527
|
-
|
|
528
|
-
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
529
|
-
var width = _ref2.width,
|
|
530
|
-
height = _ref2.height;
|
|
531
|
-
return {
|
|
532
|
-
style: Object.assign(Object.assign({}, width && {
|
|
533
|
-
width: style_1.toPx(width)
|
|
534
|
-
}), height && {
|
|
535
|
-
height: style_1.toPx(height)
|
|
536
|
-
})
|
|
537
|
-
};
|
|
538
|
-
}).withConfig({
|
|
539
|
-
displayName: "FixedSizeContainer__FixSizeItem",
|
|
540
|
-
componentId: "sc-1yhgpod-1"
|
|
541
|
-
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
542
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
543
|
-
});
|
|
544
|
-
var ItemContent = styled_components_1.default.div.withConfig({
|
|
545
|
-
displayName: "FixedSizeContainer__ItemContent",
|
|
546
|
-
componentId: "sc-1yhgpod-2"
|
|
547
|
-
})(["position:relative;min-height:100px;width:100%;"]);
|
|
548
|
-
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
549
|
-
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
550
|
-
componentId: "sc-1yhgpod-3"
|
|
551
|
-
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
552
|
-
|
|
553
|
-
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
554
|
-
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
555
|
-
var width = props.width,
|
|
556
|
-
height = props.height,
|
|
557
|
-
backgroundColor = props.backgroundColor;
|
|
558
|
-
|
|
559
|
-
if (!height) {
|
|
560
|
-
return React.createElement(Item, {
|
|
561
|
-
"data-test": "item",
|
|
562
|
-
width: width,
|
|
563
|
-
backgroundColor: backgroundColor
|
|
564
|
-
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
return React.createElement(FixSizeItem, {
|
|
568
|
-
"data-test": "fix-size-item",
|
|
569
|
-
"data-splunk-visualization-version": "25.0.0 - 5e0f30e5a",
|
|
570
|
-
width: width,
|
|
571
|
-
height: height,
|
|
572
|
-
backgroundColor: backgroundColor
|
|
573
|
-
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
574
|
-
var newWidth = _ref3.width,
|
|
575
|
-
newHeight = _ref3.height;
|
|
576
|
-
return React.createElement(Viz, Object.assign({}, props, {
|
|
577
|
-
width: newWidth,
|
|
578
|
-
height: newHeight
|
|
579
|
-
}));
|
|
580
|
-
})));
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
584
|
-
return FixedSizeContainer;
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
exports.default = withFixedSizeContainer;
|
|
588
|
-
|
|
589
|
-
/***/ }),
|
|
590
|
-
/* 15 */
|
|
591
|
-
/***/ (function(module, exports) {
|
|
592
|
-
|
|
593
|
-
module.exports = require("@splunk/visualizations-shared/style");
|
|
594
|
-
|
|
595
|
-
/***/ }),
|
|
596
|
-
/* 16 */
|
|
573
|
+
/* 17 */
|
|
597
574
|
/***/ (function(module, exports) {
|
|
598
575
|
|
|
599
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
576
|
+
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
600
577
|
|
|
601
578
|
/***/ }),
|
|
602
|
-
/*
|
|
579
|
+
/* 18 */
|
|
603
580
|
/***/ (function(module, exports) {
|
|
604
581
|
|
|
605
582
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
606
583
|
|
|
607
584
|
/***/ }),
|
|
608
|
-
/*
|
|
585
|
+
/* 19 */
|
|
609
586
|
/***/ (function(module, exports) {
|
|
610
587
|
|
|
611
588
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
612
589
|
|
|
613
590
|
/***/ }),
|
|
614
|
-
/* 19 */,
|
|
615
591
|
/* 20 */,
|
|
616
|
-
/* 21
|
|
592
|
+
/* 21 */,
|
|
593
|
+
/* 22 */
|
|
617
594
|
/***/ (function(module, exports) {
|
|
618
595
|
|
|
619
596
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
620
597
|
|
|
621
598
|
/***/ }),
|
|
622
|
-
/*
|
|
623
|
-
/* 23 */
|
|
624
|
-
/***/ (function(module, exports) {
|
|
625
|
-
|
|
626
|
-
module.exports = require("@babel/runtime/helpers/typeof");
|
|
627
|
-
|
|
628
|
-
/***/ }),
|
|
599
|
+
/* 23 */,
|
|
629
600
|
/* 24 */
|
|
630
601
|
/***/ (function(module, exports) {
|
|
631
602
|
|
|
632
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
603
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
633
604
|
|
|
634
605
|
/***/ }),
|
|
635
606
|
/* 25 */
|
|
636
|
-
/***/ (function(module, exports
|
|
637
|
-
|
|
638
|
-
"use strict";
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
Object.defineProperty(exports, "__esModule", {
|
|
642
|
-
value: true
|
|
643
|
-
});
|
|
644
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
645
|
-
|
|
646
|
-
var lodash_1 = __webpack_require__(2);
|
|
647
|
-
|
|
648
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
649
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
650
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
651
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
652
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
653
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
654
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
607
|
+
/***/ (function(module, exports) {
|
|
655
608
|
|
|
656
|
-
|
|
657
|
-
accum[k] = nestedSchema;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
609
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
660
610
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
611
|
+
/***/ }),
|
|
612
|
+
/* 26 */
|
|
613
|
+
/***/ (function(module, exports) {
|
|
664
614
|
|
|
665
|
-
exports
|
|
615
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
666
616
|
|
|
667
617
|
/***/ }),
|
|
668
|
-
/*
|
|
618
|
+
/* 27 */
|
|
669
619
|
/***/ (function(module, exports, __webpack_require__) {
|
|
670
620
|
|
|
671
621
|
"use strict";
|
|
@@ -680,13 +630,13 @@ var React = __webpack_require__(1);
|
|
|
680
630
|
|
|
681
631
|
var T = __webpack_require__(0);
|
|
682
632
|
|
|
683
|
-
var lodash_1 = __webpack_require__(
|
|
633
|
+
var lodash_1 = __webpack_require__(3);
|
|
684
634
|
|
|
685
|
-
var i18n_1 = __webpack_require__(
|
|
635
|
+
var i18n_1 = __webpack_require__(2);
|
|
686
636
|
|
|
687
|
-
var Message_1 = __webpack_require__(
|
|
637
|
+
var Message_1 = __webpack_require__(9);
|
|
688
638
|
|
|
689
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
639
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
690
640
|
/**
|
|
691
641
|
* @method shouldShowIconPlaceholder
|
|
692
642
|
* @param {object} dataSources
|
|
@@ -756,13 +706,13 @@ IconPlaceholder.defaultProps = {
|
|
|
756
706
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
757
707
|
|
|
758
708
|
/***/ }),
|
|
759
|
-
/*
|
|
709
|
+
/* 28 */
|
|
760
710
|
/***/ (function(module, exports, __webpack_require__) {
|
|
761
711
|
|
|
762
712
|
"use strict";
|
|
763
713
|
|
|
764
714
|
|
|
765
|
-
var _defineProperty = __webpack_require__(
|
|
715
|
+
var _defineProperty = __webpack_require__(6);
|
|
766
716
|
|
|
767
717
|
Object.defineProperty(exports, "__esModule", {
|
|
768
718
|
value: true
|
|
@@ -771,9 +721,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
|
771
721
|
|
|
772
722
|
var T = __webpack_require__(0);
|
|
773
723
|
|
|
774
|
-
var lodash_1 = __webpack_require__(
|
|
724
|
+
var lodash_1 = __webpack_require__(3);
|
|
775
725
|
|
|
776
|
-
var DataSource_1 = __webpack_require__(
|
|
726
|
+
var DataSource_1 = __webpack_require__(38);
|
|
777
727
|
|
|
778
728
|
exports.SortParamsPropTypes = T.shape({
|
|
779
729
|
currentSortKey: T.string,
|
|
@@ -826,7 +776,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
826
776
|
exports.getSortingParams = getSortingParams;
|
|
827
777
|
|
|
828
778
|
/***/ }),
|
|
829
|
-
/*
|
|
779
|
+
/* 29 */
|
|
830
780
|
/***/ (function(module, exports, __webpack_require__) {
|
|
831
781
|
|
|
832
782
|
"use strict";
|
|
@@ -839,7 +789,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
|
839
789
|
|
|
840
790
|
var T = __webpack_require__(0);
|
|
841
791
|
|
|
842
|
-
var lodash_1 = __webpack_require__(
|
|
792
|
+
var lodash_1 = __webpack_require__(3);
|
|
843
793
|
|
|
844
794
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
845
795
|
isPaging: T.bool,
|
|
@@ -890,7 +840,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
890
840
|
exports.getPaginationParams = getPaginationParams;
|
|
891
841
|
|
|
892
842
|
/***/ }),
|
|
893
|
-
/*
|
|
843
|
+
/* 30 */
|
|
894
844
|
/***/ (function(module, exports, __webpack_require__) {
|
|
895
845
|
|
|
896
846
|
"use strict";
|
|
@@ -918,7 +868,7 @@ var VizCategory;
|
|
|
918
868
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
919
869
|
|
|
920
870
|
/***/ }),
|
|
921
|
-
/*
|
|
871
|
+
/* 31 */
|
|
922
872
|
/***/ (function(module, exports, __webpack_require__) {
|
|
923
873
|
|
|
924
874
|
"use strict";
|
|
@@ -930,39 +880,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
930
880
|
|
|
931
881
|
var React = __webpack_require__(1);
|
|
932
882
|
|
|
933
|
-
var lodash_1 = __webpack_require__(
|
|
883
|
+
var lodash_1 = __webpack_require__(3);
|
|
934
884
|
|
|
935
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
885
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(32);
|
|
936
886
|
|
|
937
|
-
var Options_1 = __webpack_require__(
|
|
887
|
+
var Options_1 = __webpack_require__(33);
|
|
938
888
|
|
|
939
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
889
|
+
var SanitizeProps_1 = __webpack_require__(34);
|
|
940
890
|
|
|
941
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
891
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
942
892
|
|
|
943
|
-
var moment_1 = __webpack_require__(
|
|
893
|
+
var moment_1 = __webpack_require__(35);
|
|
944
894
|
|
|
945
895
|
var styled_components_1 = __webpack_require__(4);
|
|
946
896
|
|
|
947
|
-
var
|
|
897
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
948
898
|
|
|
949
|
-
var
|
|
899
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
950
900
|
|
|
951
|
-
var
|
|
901
|
+
var SplunkVisualization_1 = __webpack_require__(36);
|
|
952
902
|
|
|
953
|
-
var
|
|
903
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
954
904
|
|
|
955
|
-
var
|
|
905
|
+
var getSorting_1 = __webpack_require__(28);
|
|
956
906
|
|
|
957
|
-
var
|
|
907
|
+
var getPagination_1 = __webpack_require__(29);
|
|
958
908
|
|
|
959
|
-
var
|
|
909
|
+
var useDeepMemo_1 = __webpack_require__(39);
|
|
960
910
|
|
|
961
|
-
var
|
|
911
|
+
var MissingPropsMessage_1 = __webpack_require__(40);
|
|
962
912
|
|
|
963
|
-
var
|
|
913
|
+
var withEditModeCover_1 = __webpack_require__(41);
|
|
964
914
|
|
|
965
|
-
var
|
|
915
|
+
var withPlaceholder_1 = __webpack_require__(42);
|
|
966
916
|
/**
|
|
967
917
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
968
918
|
* @param {DashboardVizOpts} opts
|
|
@@ -1163,37 +1113,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1163
1113
|
exports.default = withDashboardViz;
|
|
1164
1114
|
|
|
1165
1115
|
/***/ }),
|
|
1166
|
-
/*
|
|
1116
|
+
/* 32 */
|
|
1167
1117
|
/***/ (function(module, exports) {
|
|
1168
1118
|
|
|
1169
1119
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1170
1120
|
|
|
1171
1121
|
/***/ }),
|
|
1172
|
-
/*
|
|
1122
|
+
/* 33 */
|
|
1173
1123
|
/***/ (function(module, exports) {
|
|
1174
1124
|
|
|
1175
1125
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1176
1126
|
|
|
1177
1127
|
/***/ }),
|
|
1178
|
-
/*
|
|
1128
|
+
/* 34 */
|
|
1179
1129
|
/***/ (function(module, exports) {
|
|
1180
1130
|
|
|
1181
1131
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1182
1132
|
|
|
1183
1133
|
/***/ }),
|
|
1184
|
-
/*
|
|
1134
|
+
/* 35 */
|
|
1185
1135
|
/***/ (function(module, exports) {
|
|
1186
1136
|
|
|
1187
1137
|
module.exports = require("@splunk/moment");
|
|
1188
1138
|
|
|
1189
1139
|
/***/ }),
|
|
1190
|
-
/*
|
|
1140
|
+
/* 36 */
|
|
1191
1141
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1192
1142
|
|
|
1193
1143
|
"use strict";
|
|
1194
1144
|
|
|
1195
1145
|
|
|
1196
|
-
var _classCallCheck = __webpack_require__(
|
|
1146
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1197
1147
|
|
|
1198
1148
|
Object.defineProperty(exports, "__esModule", {
|
|
1199
1149
|
value: true
|
|
@@ -1203,9 +1153,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
|
1203
1153
|
|
|
1204
1154
|
var T = __webpack_require__(0);
|
|
1205
1155
|
|
|
1206
|
-
var lodash_1 = __webpack_require__(
|
|
1156
|
+
var lodash_1 = __webpack_require__(3);
|
|
1207
1157
|
|
|
1208
|
-
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
|
|
1209
1159
|
|
|
1210
1160
|
|
|
1211
1161
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1338,15 +1288,15 @@ SplunkVisualization.defaultProps = {
|
|
|
1338
1288
|
exports.default = SplunkVisualization;
|
|
1339
1289
|
|
|
1340
1290
|
/***/ }),
|
|
1341
|
-
/*
|
|
1291
|
+
/* 37 */
|
|
1342
1292
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1343
1293
|
|
|
1344
1294
|
"use strict";
|
|
1345
1295
|
|
|
1346
1296
|
|
|
1347
|
-
var _classCallCheck = __webpack_require__(
|
|
1297
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1348
1298
|
|
|
1349
|
-
var _createClass = __webpack_require__(
|
|
1299
|
+
var _createClass = __webpack_require__(18);
|
|
1350
1300
|
|
|
1351
1301
|
Object.defineProperty(exports, "__esModule", {
|
|
1352
1302
|
value: true
|
|
@@ -1375,7 +1325,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1375
1325
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1376
1326
|
|
|
1377
1327
|
/***/ }),
|
|
1378
|
-
/*
|
|
1328
|
+
/* 38 */
|
|
1379
1329
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1380
1330
|
|
|
1381
1331
|
"use strict";
|
|
@@ -1388,7 +1338,7 @@ exports.validSortDirs = void 0;
|
|
|
1388
1338
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1389
1339
|
|
|
1390
1340
|
/***/ }),
|
|
1391
|
-
/*
|
|
1341
|
+
/* 39 */
|
|
1392
1342
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1393
1343
|
|
|
1394
1344
|
"use strict";
|
|
@@ -1401,7 +1351,7 @@ exports.useDeepMemo = void 0;
|
|
|
1401
1351
|
|
|
1402
1352
|
var react_1 = __webpack_require__(1);
|
|
1403
1353
|
|
|
1404
|
-
var lodash_1 = __webpack_require__(
|
|
1354
|
+
var lodash_1 = __webpack_require__(3);
|
|
1405
1355
|
/**
|
|
1406
1356
|
* This hook evaluates and stores the result of a passed function and only
|
|
1407
1357
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -1433,7 +1383,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1433
1383
|
exports.useDeepMemo = useDeepMemo;
|
|
1434
1384
|
|
|
1435
1385
|
/***/ }),
|
|
1436
|
-
/*
|
|
1386
|
+
/* 40 */
|
|
1437
1387
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1438
1388
|
|
|
1439
1389
|
"use strict";
|
|
@@ -1448,11 +1398,11 @@ var React = __webpack_require__(1);
|
|
|
1448
1398
|
|
|
1449
1399
|
var T = __webpack_require__(0);
|
|
1450
1400
|
|
|
1451
|
-
var i18n_1 = __webpack_require__(
|
|
1401
|
+
var i18n_1 = __webpack_require__(2);
|
|
1452
1402
|
|
|
1453
|
-
var Message_1 = __webpack_require__(
|
|
1403
|
+
var Message_1 = __webpack_require__(9);
|
|
1454
1404
|
|
|
1455
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1405
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1456
1406
|
/**
|
|
1457
1407
|
* @method isMissing
|
|
1458
1408
|
* @param {any} v
|
|
@@ -1513,7 +1463,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1513
1463
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1514
1464
|
|
|
1515
1465
|
/***/ }),
|
|
1516
|
-
/*
|
|
1466
|
+
/* 41 */
|
|
1517
1467
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1518
1468
|
|
|
1519
1469
|
"use strict";
|
|
@@ -1527,14 +1477,14 @@ var React = __webpack_require__(1);
|
|
|
1527
1477
|
|
|
1528
1478
|
var styled_components_1 = __webpack_require__(4);
|
|
1529
1479
|
|
|
1530
|
-
var hocUtils_1 = __webpack_require__(
|
|
1480
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1531
1481
|
|
|
1532
1482
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1533
1483
|
displayName: "withEditModeCover__Cover",
|
|
1534
1484
|
componentId: "sc-1gsbnxb-0"
|
|
1535
1485
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1536
1486
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1537
|
-
'data-splunk-visualization-version': "25.
|
|
1487
|
+
'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
|
|
1538
1488
|
}).withConfig({
|
|
1539
1489
|
displayName: "withEditModeCover__Blocker",
|
|
1540
1490
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1564,12 +1514,6 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1564
1514
|
|
|
1565
1515
|
exports.default = withEditModeCover;
|
|
1566
1516
|
|
|
1567
|
-
/***/ }),
|
|
1568
|
-
/* 41 */
|
|
1569
|
-
/***/ (function(module, exports) {
|
|
1570
|
-
|
|
1571
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
1572
|
-
|
|
1573
1517
|
/***/ }),
|
|
1574
1518
|
/* 42 */
|
|
1575
1519
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1583,15 +1527,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1583
1527
|
|
|
1584
1528
|
var React = __webpack_require__(1);
|
|
1585
1529
|
|
|
1586
|
-
var colorUtils_1 = __webpack_require__(
|
|
1530
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1587
1531
|
|
|
1588
|
-
var variables_1 = __webpack_require__(
|
|
1532
|
+
var variables_1 = __webpack_require__(8);
|
|
1589
1533
|
|
|
1590
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1534
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1591
1535
|
|
|
1592
1536
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1593
1537
|
|
|
1594
|
-
var hocUtils_1 = __webpack_require__(
|
|
1538
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1595
1539
|
|
|
1596
1540
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1597
1541
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1666,7 +1610,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1666
1610
|
value: true
|
|
1667
1611
|
});
|
|
1668
1612
|
|
|
1669
|
-
var i18n_1 = __webpack_require__(
|
|
1613
|
+
var i18n_1 = __webpack_require__(2);
|
|
1670
1614
|
|
|
1671
1615
|
var background = function background(_ref) {
|
|
1672
1616
|
var label = _ref.label,
|
|
@@ -1771,13 +1715,20 @@ module.exports = require("d3-scale");
|
|
|
1771
1715
|
/* 85 */,
|
|
1772
1716
|
/* 86 */,
|
|
1773
1717
|
/* 87 */,
|
|
1774
|
-
/* 88
|
|
1718
|
+
/* 88 */,
|
|
1719
|
+
/* 89 */
|
|
1720
|
+
/***/ (function(module, exports) {
|
|
1721
|
+
|
|
1722
|
+
module.exports = require("@splunk/visualization-encoding/utils/types");
|
|
1723
|
+
|
|
1724
|
+
/***/ }),
|
|
1725
|
+
/* 90 */
|
|
1775
1726
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1776
1727
|
|
|
1777
1728
|
"use strict";
|
|
1778
1729
|
|
|
1779
1730
|
|
|
1780
|
-
var _toConsumableArray = __webpack_require__(
|
|
1731
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
1781
1732
|
|
|
1782
1733
|
var _slicedToArray = __webpack_require__(52);
|
|
1783
1734
|
|
|
@@ -1792,32 +1743,32 @@ var react_1 = __webpack_require__(1);
|
|
|
1792
1743
|
|
|
1793
1744
|
var T = __webpack_require__(0);
|
|
1794
1745
|
|
|
1795
|
-
var lodash_1 = __webpack_require__(
|
|
1746
|
+
var lodash_1 = __webpack_require__(3);
|
|
1796
1747
|
|
|
1797
1748
|
var styled_components_1 = __webpack_require__(4);
|
|
1798
1749
|
|
|
1799
|
-
var Message_1 = __webpack_require__(
|
|
1750
|
+
var Message_1 = __webpack_require__(9);
|
|
1800
1751
|
|
|
1801
|
-
var i18n_1 = __webpack_require__(
|
|
1752
|
+
var i18n_1 = __webpack_require__(2);
|
|
1802
1753
|
|
|
1803
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
1754
|
+
var SizeAwareWrapper_1 = __webpack_require__(19);
|
|
1804
1755
|
|
|
1805
|
-
var style_1 = __webpack_require__(
|
|
1756
|
+
var style_1 = __webpack_require__(14);
|
|
1806
1757
|
|
|
1807
1758
|
var visualization_color_palettes_1 = __webpack_require__(44); // eslint-disable-next-line camelcase
|
|
1808
1759
|
|
|
1809
1760
|
|
|
1810
|
-
var sankey_1 = __webpack_require__(
|
|
1761
|
+
var sankey_1 = __webpack_require__(248);
|
|
1811
1762
|
|
|
1812
1763
|
var VizStyleWrapper_1 = __webpack_require__(62);
|
|
1813
1764
|
|
|
1814
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
1765
|
+
var SankeyUtils_1 = __webpack_require__(110);
|
|
1815
1766
|
|
|
1816
|
-
var SankeyNode_1 = __webpack_require__(
|
|
1767
|
+
var SankeyNode_1 = __webpack_require__(249);
|
|
1817
1768
|
|
|
1818
|
-
var SankeyLink_1 = __webpack_require__(
|
|
1769
|
+
var SankeyLink_1 = __webpack_require__(250);
|
|
1819
1770
|
|
|
1820
|
-
var SankeyTooltip_1 = __webpack_require__(
|
|
1771
|
+
var SankeyTooltip_1 = __webpack_require__(251);
|
|
1821
1772
|
|
|
1822
1773
|
exports.DEFAULT_COLORS = {
|
|
1823
1774
|
backgroundColor: '#ffffff',
|
|
@@ -2153,8 +2104,6 @@ PureSankey.defaultProps = {
|
|
|
2153
2104
|
exports.default = PureSankey;
|
|
2154
2105
|
|
|
2155
2106
|
/***/ }),
|
|
2156
|
-
/* 89 */,
|
|
2157
|
-
/* 90 */,
|
|
2158
2107
|
/* 91 */,
|
|
2159
2108
|
/* 92 */,
|
|
2160
2109
|
/* 93 */,
|
|
@@ -2167,29 +2116,34 @@ exports.default = PureSankey;
|
|
|
2167
2116
|
/* 100 */,
|
|
2168
2117
|
/* 101 */,
|
|
2169
2118
|
/* 102 */,
|
|
2170
|
-
/* 103
|
|
2119
|
+
/* 103 */,
|
|
2120
|
+
/* 104 */,
|
|
2121
|
+
/* 105 */
|
|
2171
2122
|
/***/ (function(module, exports) {
|
|
2172
2123
|
|
|
2173
2124
|
module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
2174
2125
|
|
|
2175
2126
|
/***/ }),
|
|
2176
|
-
/* 104 */,
|
|
2177
|
-
/* 105 */,
|
|
2178
2127
|
/* 106 */,
|
|
2179
|
-
/* 107
|
|
2128
|
+
/* 107 */,
|
|
2129
|
+
/* 108 */
|
|
2180
2130
|
/***/ (function(module, exports) {
|
|
2181
2131
|
|
|
2182
2132
|
module.exports = require("@splunk/react-ui/Popover");
|
|
2183
2133
|
|
|
2184
2134
|
/***/ }),
|
|
2185
|
-
/*
|
|
2135
|
+
/* 109 */
|
|
2136
|
+
/***/ (function(module, exports) {
|
|
2137
|
+
|
|
2138
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
2139
|
+
|
|
2140
|
+
/***/ }),
|
|
2141
|
+
/* 110 */
|
|
2186
2142
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2187
2143
|
|
|
2188
2144
|
"use strict";
|
|
2189
2145
|
|
|
2190
2146
|
|
|
2191
|
-
var _typeof = __webpack_require__(23);
|
|
2192
|
-
|
|
2193
2147
|
Object.defineProperty(exports, "__esModule", {
|
|
2194
2148
|
value: true
|
|
2195
2149
|
});
|
|
@@ -2198,6 +2152,8 @@ exports.truncateSVGTextWithEllipsis = exports.checkDigitsOnly = exports.computeA
|
|
|
2198
2152
|
|
|
2199
2153
|
var d3_scale_1 = __webpack_require__(78);
|
|
2200
2154
|
|
|
2155
|
+
var types_1 = __webpack_require__(89);
|
|
2156
|
+
|
|
2201
2157
|
var insertNodeIfNotExist = function insertNodeIfNotExist(sankeyData, nodeName) {
|
|
2202
2158
|
var nodes = sankeyData.nodes;
|
|
2203
2159
|
nodes = nodes || [];
|
|
@@ -2257,7 +2213,7 @@ var getColorCategoryMapping = function getColorCategoryMapping(_ref) {
|
|
|
2257
2213
|
exports.getColorCategoryMapping = getColorCategoryMapping;
|
|
2258
2214
|
|
|
2259
2215
|
var convertInputToSankeyDataFormat = function convertInputToSankeyDataFormat(columns, sourceFieldIdx, targetFieldIdx, linkValueFieldIdx, resultLimit) {
|
|
2260
|
-
if (!columns || !Array.isArray(columns) || !columns.length || !columns[sourceFieldIdx] || !columns[targetFieldIdx] || !columns[linkValueFieldIdx] || columns.length < 3 || !Array.isArray(columns[sourceFieldIdx]) || !Array.isArray(columns[targetFieldIdx]) || !Array.isArray(columns[linkValueFieldIdx]) || !columns[sourceFieldIdx] || typeof columns[sourceFieldIdx][0] !== 'string' || !columns[targetFieldIdx] || typeof columns[targetFieldIdx][0] !== 'string'
|
|
2216
|
+
if (!columns || !Array.isArray(columns) || !columns.length || !columns[sourceFieldIdx] || !columns[targetFieldIdx] || !columns[linkValueFieldIdx] || columns.length < 3 || !Array.isArray(columns[sourceFieldIdx]) || !Array.isArray(columns[targetFieldIdx]) || !Array.isArray(columns[linkValueFieldIdx]) || !columns[sourceFieldIdx] || typeof columns[sourceFieldIdx][0] !== 'string' || !columns[targetFieldIdx] || typeof columns[targetFieldIdx][0] !== 'string') {
|
|
2261
2217
|
return null;
|
|
2262
2218
|
}
|
|
2263
2219
|
|
|
@@ -2267,36 +2223,30 @@ var convertInputToSankeyDataFormat = function convertInputToSankeyDataFormat(col
|
|
|
2267
2223
|
};
|
|
2268
2224
|
var maxlen = Math.min(columns[sourceFieldIdx].length, columns[targetFieldIdx].length, columns[linkValueFieldIdx].length, resultLimit);
|
|
2269
2225
|
|
|
2270
|
-
var
|
|
2271
|
-
if (typeof columns[sourceFieldIdx][i]
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
var targetNodeIdx = exports.getNodesIndex(sankeyData, targetNodeName);
|
|
2285
|
-
var linkExist = sankeyData.links.find(function (link) {
|
|
2286
|
-
return link.source === sourceNodeIdx && link.target === targetNodeIdx;
|
|
2287
|
-
});
|
|
2226
|
+
for (var i = 0; i < maxlen; i += 1) {
|
|
2227
|
+
if (typeof columns[sourceFieldIdx][i] === 'string' && typeof columns[targetFieldIdx][i] === 'string' && types_1.isNumber(columns[linkValueFieldIdx][i])) {
|
|
2228
|
+
(function () {
|
|
2229
|
+
var sourceNodeName = columns[sourceFieldIdx][i].trim();
|
|
2230
|
+
var targetNodeName = columns[targetFieldIdx][i].trim();
|
|
2231
|
+
insertNodeIfNotExist(sankeyData, sourceNodeName);
|
|
2232
|
+
insertNodeIfNotExist(sankeyData, targetNodeName); // If same link exists then sum up the value and donot insert new link
|
|
2233
|
+
|
|
2234
|
+
var sourceNodeIdx = exports.getNodesIndex(sankeyData, sourceNodeName);
|
|
2235
|
+
var targetNodeIdx = exports.getNodesIndex(sankeyData, targetNodeName);
|
|
2236
|
+
var linkExist = sankeyData.links.find(function (link) {
|
|
2237
|
+
return link.source === sourceNodeIdx && link.target === targetNodeIdx;
|
|
2238
|
+
});
|
|
2239
|
+
var linkValue = +columns[linkValueFieldIdx][i];
|
|
2288
2240
|
|
|
2289
|
-
|
|
2290
|
-
|
|
2241
|
+
if (linkExist) {
|
|
2242
|
+
linkExist.value += linkValue;
|
|
2243
|
+
} else {
|
|
2244
|
+
insertLink(sankeyData, sourceNodeIdx, targetNodeIdx, linkValue, i);
|
|
2245
|
+
}
|
|
2246
|
+
})();
|
|
2291
2247
|
} else {
|
|
2292
|
-
|
|
2248
|
+
console.error('Link excluded. Invalid type in column input, row :- ', i, "[".concat(columns[sourceFieldIdx][i], ", ").concat(columns[targetFieldIdx][i], ", ").concat(columns[linkValueFieldIdx][i], "]"));
|
|
2293
2249
|
}
|
|
2294
|
-
};
|
|
2295
|
-
|
|
2296
|
-
for (var i = 0; i < maxlen; i += 1) {
|
|
2297
|
-
var _ret = _loop(i);
|
|
2298
|
-
|
|
2299
|
-
if (_typeof(_ret) === "object") return _ret.v;
|
|
2300
2250
|
}
|
|
2301
2251
|
|
|
2302
2252
|
return sankeyData;
|
|
@@ -2474,25 +2424,23 @@ var truncateSVGTextWithEllipsis = function truncateSVGTextWithEllipsis(textEleme
|
|
|
2474
2424
|
exports.truncateSVGTextWithEllipsis = truncateSVGTextWithEllipsis;
|
|
2475
2425
|
|
|
2476
2426
|
/***/ }),
|
|
2477
|
-
/* 109 */,
|
|
2478
|
-
/* 110 */,
|
|
2479
2427
|
/* 111 */,
|
|
2480
2428
|
/* 112 */,
|
|
2481
2429
|
/* 113 */,
|
|
2482
|
-
/* 114
|
|
2430
|
+
/* 114 */,
|
|
2431
|
+
/* 115 */,
|
|
2432
|
+
/* 116 */
|
|
2483
2433
|
/***/ (function(module, exports) {
|
|
2484
2434
|
|
|
2485
2435
|
module.exports = require("d3-interpolate");
|
|
2486
2436
|
|
|
2487
2437
|
/***/ }),
|
|
2488
|
-
/*
|
|
2438
|
+
/* 117 */
|
|
2489
2439
|
/***/ (function(module, exports) {
|
|
2490
2440
|
|
|
2491
2441
|
module.exports = require("d3-collection");
|
|
2492
2442
|
|
|
2493
2443
|
/***/ }),
|
|
2494
|
-
/* 116 */,
|
|
2495
|
-
/* 117 */,
|
|
2496
2444
|
/* 118 */,
|
|
2497
2445
|
/* 119 */,
|
|
2498
2446
|
/* 120 */,
|
|
@@ -2511,32 +2459,34 @@ module.exports = require("d3-collection");
|
|
|
2511
2459
|
/* 133 */,
|
|
2512
2460
|
/* 134 */,
|
|
2513
2461
|
/* 135 */,
|
|
2514
|
-
/* 136
|
|
2462
|
+
/* 136 */,
|
|
2463
|
+
/* 137 */,
|
|
2464
|
+
/* 138 */
|
|
2515
2465
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2516
2466
|
|
|
2517
2467
|
"use strict";
|
|
2518
2468
|
|
|
2519
2469
|
|
|
2520
|
-
var _typeof = __webpack_require__(
|
|
2470
|
+
var _typeof = __webpack_require__(109);
|
|
2521
2471
|
|
|
2522
2472
|
Object.defineProperty(exports, "__esModule", {
|
|
2523
2473
|
value: true
|
|
2524
2474
|
});
|
|
2525
2475
|
exports.PureSankey = exports.config = exports.themes = exports.computeVizProps = exports.showPlaceHolderIcon = void 0;
|
|
2526
2476
|
|
|
2527
|
-
var lodash_1 = __webpack_require__(
|
|
2477
|
+
var lodash_1 = __webpack_require__(3);
|
|
2528
2478
|
|
|
2529
|
-
var dataSourceUtils_1 = __webpack_require__(
|
|
2479
|
+
var dataSourceUtils_1 = __webpack_require__(105);
|
|
2530
2480
|
|
|
2531
|
-
var colorUtils_1 = __webpack_require__(
|
|
2481
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
2532
2482
|
|
|
2533
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
2483
|
+
var withDashboardViz_1 = __webpack_require__(31);
|
|
2534
2484
|
|
|
2535
|
-
var PureSankey_1 = __webpack_require__(
|
|
2485
|
+
var PureSankey_1 = __webpack_require__(90);
|
|
2536
2486
|
|
|
2537
2487
|
exports.PureSankey = PureSankey_1.default;
|
|
2538
2488
|
|
|
2539
|
-
var config_1 = __webpack_require__(
|
|
2489
|
+
var config_1 = __webpack_require__(252);
|
|
2540
2490
|
|
|
2541
2491
|
exports.config = config_1.default;
|
|
2542
2492
|
/**
|
|
@@ -2624,8 +2574,6 @@ exports.themes = themes;
|
|
|
2624
2574
|
exports.default = Sankey;
|
|
2625
2575
|
|
|
2626
2576
|
/***/ }),
|
|
2627
|
-
/* 137 */,
|
|
2628
|
-
/* 138 */,
|
|
2629
2577
|
/* 139 */,
|
|
2630
2578
|
/* 140 */,
|
|
2631
2579
|
/* 141 */,
|
|
@@ -2731,7 +2679,10 @@ exports.default = Sankey;
|
|
|
2731
2679
|
/* 241 */,
|
|
2732
2680
|
/* 242 */,
|
|
2733
2681
|
/* 243 */,
|
|
2734
|
-
/* 244
|
|
2682
|
+
/* 244 */,
|
|
2683
|
+
/* 245 */,
|
|
2684
|
+
/* 246 */,
|
|
2685
|
+
/* 247 */
|
|
2735
2686
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2736
2687
|
|
|
2737
2688
|
"use strict";
|
|
@@ -2761,9 +2712,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2761
2712
|
});
|
|
2762
2713
|
exports.default = void 0;
|
|
2763
2714
|
|
|
2764
|
-
__exportStar(__webpack_require__(
|
|
2715
|
+
__exportStar(__webpack_require__(138), exports);
|
|
2765
2716
|
|
|
2766
|
-
var Sankey_1 = __webpack_require__(
|
|
2717
|
+
var Sankey_1 = __webpack_require__(138);
|
|
2767
2718
|
|
|
2768
2719
|
Object.defineProperty(exports, "default", {
|
|
2769
2720
|
enumerable: true,
|
|
@@ -2773,17 +2724,17 @@ Object.defineProperty(exports, "default", {
|
|
|
2773
2724
|
});
|
|
2774
2725
|
|
|
2775
2726
|
/***/ }),
|
|
2776
|
-
/*
|
|
2727
|
+
/* 248 */
|
|
2777
2728
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2778
2729
|
|
|
2779
2730
|
"use strict";
|
|
2780
2731
|
__webpack_require__.r(__webpack_exports__);
|
|
2781
2732
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d3_sankey", function() { return d3_sankey; });
|
|
2782
|
-
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2733
|
+
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(116);
|
|
2783
2734
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3_interpolate__WEBPACK_IMPORTED_MODULE_0__);
|
|
2784
2735
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54);
|
|
2785
2736
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(d3_array__WEBPACK_IMPORTED_MODULE_1__);
|
|
2786
|
-
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
2737
|
+
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(117);
|
|
2787
2738
|
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3_collection__WEBPACK_IMPORTED_MODULE_2__);
|
|
2788
2739
|
// reference link :- https://github.com/csaladenes/sankey
|
|
2789
2740
|
|
|
@@ -3339,7 +3290,7 @@ var d3_sankey = function d3_sankey() {
|
|
|
3339
3290
|
};
|
|
3340
3291
|
|
|
3341
3292
|
/***/ }),
|
|
3342
|
-
/*
|
|
3293
|
+
/* 249 */
|
|
3343
3294
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3344
3295
|
|
|
3345
3296
|
"use strict";
|
|
@@ -3357,9 +3308,9 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
3357
3308
|
|
|
3358
3309
|
var react_1 = __webpack_require__(1);
|
|
3359
3310
|
|
|
3360
|
-
var PureSankey_1 = __webpack_require__(
|
|
3311
|
+
var PureSankey_1 = __webpack_require__(90);
|
|
3361
3312
|
|
|
3362
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
3313
|
+
var SankeyUtils_1 = __webpack_require__(110);
|
|
3363
3314
|
|
|
3364
3315
|
var MAX_NODE_TEXT_WIDTH = 150;
|
|
3365
3316
|
|
|
@@ -3459,7 +3410,7 @@ SankeyNode.defaultProps = {
|
|
|
3459
3410
|
exports.default = SankeyNode;
|
|
3460
3411
|
|
|
3461
3412
|
/***/ }),
|
|
3462
|
-
/*
|
|
3413
|
+
/* 250 */
|
|
3463
3414
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3464
3415
|
|
|
3465
3416
|
"use strict";
|
|
@@ -3473,9 +3424,9 @@ var React = __webpack_require__(1);
|
|
|
3473
3424
|
|
|
3474
3425
|
var T = __webpack_require__(0);
|
|
3475
3426
|
|
|
3476
|
-
var PureSankey_1 = __webpack_require__(
|
|
3427
|
+
var PureSankey_1 = __webpack_require__(90);
|
|
3477
3428
|
|
|
3478
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
3429
|
+
var SankeyUtils_1 = __webpack_require__(110);
|
|
3479
3430
|
|
|
3480
3431
|
var getLinkFill = function getLinkFill(link, colorCategoryMapping, colorMode) {
|
|
3481
3432
|
if (colorMode === 'categorical') {
|
|
@@ -3567,7 +3518,7 @@ SankeyLink.defaultProps = {
|
|
|
3567
3518
|
exports.default = SankeyLink;
|
|
3568
3519
|
|
|
3569
3520
|
/***/ }),
|
|
3570
|
-
/*
|
|
3521
|
+
/* 251 */
|
|
3571
3522
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3572
3523
|
|
|
3573
3524
|
"use strict";
|
|
@@ -3581,13 +3532,13 @@ var React = __webpack_require__(1);
|
|
|
3581
3532
|
|
|
3582
3533
|
var T = __webpack_require__(0);
|
|
3583
3534
|
|
|
3584
|
-
var Popover_1 = __webpack_require__(
|
|
3535
|
+
var Popover_1 = __webpack_require__(108);
|
|
3585
3536
|
|
|
3586
3537
|
var styled_components_1 = __webpack_require__(4);
|
|
3587
3538
|
|
|
3588
|
-
var numberUtils_1 = __webpack_require__(
|
|
3539
|
+
var numberUtils_1 = __webpack_require__(26);
|
|
3589
3540
|
|
|
3590
|
-
var PureSankey_1 = __webpack_require__(
|
|
3541
|
+
var PureSankey_1 = __webpack_require__(90);
|
|
3591
3542
|
|
|
3592
3543
|
var DEFAULT_PLACEMENT = 'below';
|
|
3593
3544
|
var StyledTooltipContainer = styled_components_1.default.div.withConfig({
|
|
@@ -3837,7 +3788,7 @@ SankeyTooltip.defaultProps = {
|
|
|
3837
3788
|
exports.default = SankeyTooltip;
|
|
3838
3789
|
|
|
3839
3790
|
/***/ }),
|
|
3840
|
-
/*
|
|
3791
|
+
/* 252 */
|
|
3841
3792
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3842
3793
|
|
|
3843
3794
|
"use strict";
|
|
@@ -3853,21 +3804,21 @@ var placeholders_1 = __webpack_require__(45);
|
|
|
3853
3804
|
|
|
3854
3805
|
var visualization_color_palettes_1 = __webpack_require__(44);
|
|
3855
3806
|
|
|
3856
|
-
var schemaUtils_1 = __webpack_require__(
|
|
3807
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
3857
3808
|
|
|
3858
3809
|
var PresetPalettes_1 = __webpack_require__(53);
|
|
3859
3810
|
|
|
3860
3811
|
var themes_1 = __webpack_require__(69);
|
|
3861
3812
|
|
|
3862
|
-
var i18n_1 = __webpack_require__(
|
|
3813
|
+
var i18n_1 = __webpack_require__(2);
|
|
3863
3814
|
|
|
3864
3815
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3865
3816
|
|
|
3866
|
-
var VizCategory_1 = __webpack_require__(
|
|
3817
|
+
var VizCategory_1 = __webpack_require__(30);
|
|
3867
3818
|
|
|
3868
|
-
var configUtils_1 = __webpack_require__(
|
|
3819
|
+
var configUtils_1 = __webpack_require__(16);
|
|
3869
3820
|
|
|
3870
|
-
var DynamicLinkColorsEditor_1 = __webpack_require__(
|
|
3821
|
+
var DynamicLinkColorsEditor_1 = __webpack_require__(253);
|
|
3871
3822
|
|
|
3872
3823
|
var BackgroundColor_1 = __webpack_require__(49);
|
|
3873
3824
|
|
|
@@ -4080,16 +4031,16 @@ var config = {
|
|
|
4080
4031
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
4081
4032
|
|
|
4082
4033
|
/***/ }),
|
|
4083
|
-
/*
|
|
4034
|
+
/* 253 */
|
|
4084
4035
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4085
4036
|
|
|
4086
4037
|
"use strict";
|
|
4087
4038
|
__webpack_require__.r(__webpack_exports__);
|
|
4088
4039
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicLinkColorsEditor", function() { return getDynamicLinkColorsEditor; });
|
|
4089
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4040
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
4090
4041
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
4091
|
-
/* harmony import */ var
|
|
4092
|
-
/* harmony import */ var
|
|
4042
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
4043
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
4093
4044
|
|
|
4094
4045
|
|
|
4095
4046
|
var getDynamicLinkColorsEditor = function getDynamicLinkColorsEditor(_ref) {
|
|
@@ -4102,7 +4053,7 @@ var getDynamicLinkColorsEditor = function getDynamicLinkColorsEditor(_ref) {
|
|
|
4102
4053
|
editor: 'editor.dynamicColor',
|
|
4103
4054
|
showEditor: function showEditor(_ref2) {
|
|
4104
4055
|
var options = _ref2.options;
|
|
4105
|
-
return Object(
|
|
4056
|
+
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.linkColors);
|
|
4106
4057
|
},
|
|
4107
4058
|
editorProps: {
|
|
4108
4059
|
labelPosition: 'left',
|