@splunk/visualizations 25.0.1 → 25.2.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_PureEvents_Background_Color_Red.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_Basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_Simulated_Instance.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_for_Numeric_Field_Simulated_Instance.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Dark.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Light.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Background_color_cyan.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_after_default.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_before.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Background_Color_white_Under_Label_and_Unit_specified.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Major_Value_is_null.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_after_default.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_before.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_Events_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_Events_Events_Background_Color_Light_Blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields_with_Highlight.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Show_Placeholder.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_With_Options.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_ES.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_after.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_before.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_After.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_Before.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_After.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_Before.png +0 -0
- package/Area.config.js +146 -157
- package/Area.config.js.map +1 -1
- package/Area.js +459 -545
- package/Area.js.map +1 -1
- package/Bar.config.js +148 -153
- package/Bar.config.js.map +1 -1
- package/Bar.js +468 -548
- package/Bar.js.map +1 -1
- package/Bubble.config.js +143 -123
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +475 -530
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +87 -81
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +352 -422
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +144 -151
- package/Column.config.js.map +1 -1
- package/Column.js +463 -546
- package/Column.js.map +1 -1
- package/Ellipse.config.js +86 -80
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +319 -389
- package/Ellipse.js.map +1 -1
- package/Events.config.js +668 -0
- package/Events.config.js.map +1 -0
- package/Events.js +3116 -0
- package/Events.js.map +1 -0
- package/FillerGauge.config.js +94 -87
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +352 -415
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +74 -74
- package/Image.config.js.map +1 -1
- package/Image.js +713 -801
- package/Image.js.map +1 -1
- package/Line.config.js +145 -142
- package/Line.config.js.map +1 -1
- package/Line.js +471 -538
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +120 -113
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +24563 -717
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +107 -100
- package/Map.config.js.map +1 -1
- package/Map.js +2358 -2465
- package/Map.js.map +1 -1
- package/Markdown.config.js +112 -112
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +844 -918
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +185 -186
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1274 -1363
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +137 -137
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +732 -923
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +132 -132
- package/Pie.config.js.map +1 -1
- package/Pie.js +1193 -1281
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +138 -138
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +2723 -2923
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +267 -260
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +1107 -1188
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +149 -142
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +2613 -2808
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +144 -123
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +1820 -1889
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +121 -114
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +2554 -2635
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +34 -34
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +129 -120
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +994 -1212
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +216 -178
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +2235 -2316
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +150 -151
- package/Table.config.js.map +1 -1
- package/Table.js +2446 -2525
- 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 +25 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +10 -10
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +10 -10
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +57 -357
- 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 +21 -21
- 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/{JSONSchemaUtils.js → dataUtils.js} +24 -25
- package/common/utils/dataUtils.js.map +1 -0
- package/common/utils/hocUtils.js +5 -85
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/mapUtils.js +198 -0
- package/common/utils/mapUtils.js.map +1 -0
- package/common/utils/singleValueUtils.js +15 -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 +16 -14
- package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
- package/common/utils/JSONSchemaUtils.js.map +0 -1
package/Bubble.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 165);
|
|
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 */
|
|
@@ -121,7 +121,8 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
121
121
|
module.exports = require("styled-components");
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
|
-
/* 5
|
|
124
|
+
/* 5 */,
|
|
125
|
+
/* 6 */
|
|
125
126
|
/***/ (function(module, exports, __webpack_require__) {
|
|
126
127
|
|
|
127
128
|
"use strict";
|
|
@@ -158,13 +159,189 @@ var VizBehavior;
|
|
|
158
159
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
159
160
|
|
|
160
161
|
/***/ }),
|
|
161
|
-
/*
|
|
162
|
+
/* 7 */
|
|
163
|
+
/***/ (function(module, exports) {
|
|
164
|
+
|
|
165
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
166
|
+
|
|
167
|
+
/***/ }),
|
|
168
|
+
/* 8 */
|
|
169
|
+
/***/ (function(module, exports) {
|
|
170
|
+
|
|
171
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
172
|
+
|
|
173
|
+
/***/ }),
|
|
174
|
+
/* 9 */
|
|
175
|
+
/***/ (function(module, exports) {
|
|
176
|
+
|
|
177
|
+
module.exports = require("@splunk/themes/variables");
|
|
178
|
+
|
|
179
|
+
/***/ }),
|
|
180
|
+
/* 10 */
|
|
181
|
+
/***/ (function(module, exports) {
|
|
182
|
+
|
|
183
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
184
|
+
|
|
185
|
+
/***/ }),
|
|
186
|
+
/* 11 */
|
|
187
|
+
/***/ (function(module, exports) {
|
|
188
|
+
|
|
189
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
190
|
+
|
|
191
|
+
/***/ }),
|
|
192
|
+
/* 12 */
|
|
193
|
+
/***/ (function(module, exports) {
|
|
194
|
+
|
|
195
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
196
|
+
|
|
197
|
+
/***/ }),
|
|
198
|
+
/* 13 */
|
|
199
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
200
|
+
|
|
201
|
+
"use strict";
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
Object.defineProperty(exports, "__esModule", {
|
|
205
|
+
value: true
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
var React = __webpack_require__(1);
|
|
209
|
+
|
|
210
|
+
var styled_components_1 = __webpack_require__(4);
|
|
211
|
+
|
|
212
|
+
var SizeAwareWrapper_1 = __webpack_require__(20);
|
|
213
|
+
|
|
214
|
+
var style_1 = __webpack_require__(15);
|
|
215
|
+
|
|
216
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
217
|
+
|
|
218
|
+
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
219
|
+
var width = _ref.width;
|
|
220
|
+
return {
|
|
221
|
+
style: {
|
|
222
|
+
width: style_1.toPx(width)
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
}).withConfig({
|
|
226
|
+
displayName: "FixedSizeContainer__Item",
|
|
227
|
+
componentId: "sc-1yhgpod-0"
|
|
228
|
+
})(["position:relative;background-color:", "};"], function (props) {
|
|
229
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
230
|
+
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
231
|
+
|
|
232
|
+
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
233
|
+
var width = _ref2.width,
|
|
234
|
+
height = _ref2.height;
|
|
235
|
+
return {
|
|
236
|
+
style: Object.assign(Object.assign({}, width && {
|
|
237
|
+
width: style_1.toPx(width)
|
|
238
|
+
}), height && {
|
|
239
|
+
height: style_1.toPx(height)
|
|
240
|
+
})
|
|
241
|
+
};
|
|
242
|
+
}).withConfig({
|
|
243
|
+
displayName: "FixedSizeContainer__FixSizeItem",
|
|
244
|
+
componentId: "sc-1yhgpod-1"
|
|
245
|
+
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
246
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
247
|
+
});
|
|
248
|
+
var ItemContent = styled_components_1.default.div.withConfig({
|
|
249
|
+
displayName: "FixedSizeContainer__ItemContent",
|
|
250
|
+
componentId: "sc-1yhgpod-2"
|
|
251
|
+
})(["position:relative;min-height:100px;width:100%;"]);
|
|
252
|
+
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
253
|
+
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
254
|
+
componentId: "sc-1yhgpod-3"
|
|
255
|
+
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
256
|
+
|
|
257
|
+
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
258
|
+
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
259
|
+
var width = props.width,
|
|
260
|
+
height = props.height,
|
|
261
|
+
backgroundColor = props.backgroundColor;
|
|
262
|
+
|
|
263
|
+
if (!height) {
|
|
264
|
+
return React.createElement(Item, {
|
|
265
|
+
"data-test": "item",
|
|
266
|
+
width: width,
|
|
267
|
+
backgroundColor: backgroundColor
|
|
268
|
+
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
return React.createElement(FixSizeItem, {
|
|
272
|
+
"data-test": "fix-size-item",
|
|
273
|
+
"data-splunk-visualization-version": "25.2.0 - 4373c5a66",
|
|
274
|
+
width: width,
|
|
275
|
+
height: height,
|
|
276
|
+
backgroundColor: backgroundColor
|
|
277
|
+
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
278
|
+
var newWidth = _ref3.width,
|
|
279
|
+
newHeight = _ref3.height;
|
|
280
|
+
return React.createElement(Viz, Object.assign({}, props, {
|
|
281
|
+
width: newWidth,
|
|
282
|
+
height: newHeight
|
|
283
|
+
}));
|
|
284
|
+
})));
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
288
|
+
return FixedSizeContainer;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
exports.default = withFixedSizeContainer;
|
|
292
|
+
|
|
293
|
+
/***/ }),
|
|
294
|
+
/* 14 */
|
|
295
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
296
|
+
|
|
297
|
+
"use strict";
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
Object.defineProperty(exports, "__esModule", {
|
|
301
|
+
value: true
|
|
302
|
+
});
|
|
303
|
+
exports.extendStaticWrapperProps = void 0;
|
|
304
|
+
/**
|
|
305
|
+
* @method extendStaticWrapperProps
|
|
306
|
+
* @param {Object} props
|
|
307
|
+
* @param {DashboardVizType} props.Wrapper
|
|
308
|
+
* @param {DashboardVizType} props.Visualization
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
312
|
+
var Wrapper = _ref.Wrapper,
|
|
313
|
+
Visualization = _ref.Visualization;
|
|
314
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
315
|
+
extendProperties.forEach(function (prop) {
|
|
316
|
+
if (Visualization[prop]) {
|
|
317
|
+
// eslint-disable-next-line no-param-reassign
|
|
318
|
+
Wrapper[prop] = Visualization[prop];
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
324
|
+
|
|
325
|
+
/***/ }),
|
|
326
|
+
/* 15 */
|
|
327
|
+
/***/ (function(module, exports) {
|
|
328
|
+
|
|
329
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
330
|
+
|
|
331
|
+
/***/ }),
|
|
332
|
+
/* 16 */
|
|
333
|
+
/***/ (function(module, exports) {
|
|
334
|
+
|
|
335
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
336
|
+
|
|
337
|
+
/***/ }),
|
|
338
|
+
/* 17 */
|
|
162
339
|
/***/ (function(module, exports, __webpack_require__) {
|
|
163
340
|
|
|
164
341
|
"use strict";
|
|
165
342
|
|
|
166
343
|
|
|
167
|
-
var _toConsumableArray = __webpack_require__(
|
|
344
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
168
345
|
|
|
169
346
|
var _defineProperty = __webpack_require__(7);
|
|
170
347
|
|
|
@@ -184,13 +361,13 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
184
361
|
Object.defineProperty(exports, "__esModule", {
|
|
185
362
|
value: true
|
|
186
363
|
});
|
|
187
|
-
exports.insertLayout = exports.
|
|
364
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
188
365
|
|
|
189
|
-
var lodash_1 = __webpack_require__(
|
|
366
|
+
var lodash_1 = __webpack_require__(3);
|
|
190
367
|
|
|
191
368
|
var schemaUtils_1 = __webpack_require__(16);
|
|
192
369
|
|
|
193
|
-
var VizBehavior_1 = __webpack_require__(
|
|
370
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
194
371
|
|
|
195
372
|
var dynamicOptionsDSLType = {
|
|
196
373
|
type: 'string',
|
|
@@ -310,392 +487,135 @@ exports.isDynamicOption = isDynamicOption; // private helpers to improve readabi
|
|
|
310
487
|
/**
|
|
311
488
|
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
312
489
|
* if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
|
|
313
|
-
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
314
|
-
* the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
|
|
315
|
-
*
|
|
316
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
317
|
-
*/
|
|
318
|
-
|
|
319
|
-
function hasCompatibleContexts(vizContext, presetContext) {
|
|
320
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
321
|
-
return presetContextKeys.every(function (contextKey) {
|
|
322
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
327
|
-
*/
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
331
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
332
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
333
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
338
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
339
|
-
*
|
|
340
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
341
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
342
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
343
|
-
*/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
347
|
-
return presets.find(function (preset) {
|
|
348
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
349
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
350
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
351
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
352
|
-
// if not, then the preset is invalid in config.ts
|
|
353
|
-
|
|
354
|
-
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
355
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
exports.getInitialPreset = getInitialPreset;
|
|
360
|
-
/**
|
|
361
|
-
* generates number precision values for a Select editor
|
|
362
|
-
*
|
|
363
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
364
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
365
|
-
*/
|
|
366
|
-
|
|
367
|
-
function generatePrecisionValues(numPrecisionValues) {
|
|
368
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
369
|
-
return {
|
|
370
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
371
|
-
value: i
|
|
372
|
-
};
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
exports.generatePrecisionValues = generatePrecisionValues;
|
|
377
|
-
/**
|
|
378
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
379
|
-
*
|
|
380
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
381
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
382
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
383
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
384
|
-
*/
|
|
385
|
-
|
|
386
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
387
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
388
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
exports.insertLayout = insertLayout;
|
|
395
|
-
|
|
396
|
-
/***/ }),
|
|
397
|
-
/* 7 */
|
|
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;"]);
|
|
490
|
+
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
491
|
+
* the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
|
|
492
|
+
*
|
|
493
|
+
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
494
|
+
*/
|
|
577
495
|
|
|
578
|
-
|
|
579
|
-
var
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
496
|
+
function hasCompatibleContexts(vizContext, presetContext) {
|
|
497
|
+
var presetContextKeys = Object.keys(presetContext);
|
|
498
|
+
return presetContextKeys.every(function (contextKey) {
|
|
499
|
+
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
504
|
+
*/
|
|
583
505
|
|
|
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
506
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
};
|
|
507
|
+
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
508
|
+
var presetOptionKeys = Object.keys(presetOptions);
|
|
509
|
+
return presetOptionKeys.every(function (optionKey) {
|
|
510
|
+
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
515
|
+
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
516
|
+
*
|
|
517
|
+
* @param {Object} vizContext - the current vizContext definition
|
|
518
|
+
* @param {Object} vizOptions - the current vizOptions definition
|
|
519
|
+
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
520
|
+
*/
|
|
607
521
|
|
|
608
|
-
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
609
|
-
return FixedSizeContainer;
|
|
610
|
-
};
|
|
611
522
|
|
|
612
|
-
|
|
523
|
+
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
524
|
+
return presets.find(function (preset) {
|
|
525
|
+
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
526
|
+
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
527
|
+
var presetContextKeys = Object.keys(presetContext);
|
|
528
|
+
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
529
|
+
// if not, then the preset is invalid in config.ts
|
|
613
530
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
531
|
+
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
532
|
+
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
533
|
+
});
|
|
534
|
+
}
|
|
617
535
|
|
|
618
|
-
|
|
536
|
+
exports.getInitialPreset = getInitialPreset;
|
|
537
|
+
/**
|
|
538
|
+
* generates number precision values for a Select editor
|
|
539
|
+
*
|
|
540
|
+
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
541
|
+
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
542
|
+
*/
|
|
619
543
|
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
544
|
+
function generatePrecisionValues(numPrecisionValues) {
|
|
545
|
+
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
546
|
+
return {
|
|
547
|
+
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
548
|
+
value: i
|
|
549
|
+
};
|
|
550
|
+
});
|
|
551
|
+
}
|
|
623
552
|
|
|
624
|
-
|
|
553
|
+
exports.generatePrecisionValues = generatePrecisionValues;
|
|
554
|
+
/**
|
|
555
|
+
* insert layout in layout array, return a new layout array instead of updating the original
|
|
556
|
+
*
|
|
557
|
+
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
558
|
+
* @param {Number} index - the index to insert layout item(s)
|
|
559
|
+
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
560
|
+
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
561
|
+
*/
|
|
562
|
+
|
|
563
|
+
var insertLayout = function insertLayout(layout, index) {
|
|
564
|
+
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
565
|
+
layoutItems[_key - 2] = arguments[_key];
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
exports.insertLayout = insertLayout;
|
|
625
572
|
|
|
626
573
|
/***/ }),
|
|
627
|
-
/*
|
|
574
|
+
/* 18 */,
|
|
575
|
+
/* 19 */
|
|
628
576
|
/***/ (function(module, exports) {
|
|
629
577
|
|
|
630
578
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
631
579
|
|
|
632
580
|
/***/ }),
|
|
633
|
-
/*
|
|
581
|
+
/* 20 */
|
|
634
582
|
/***/ (function(module, exports) {
|
|
635
583
|
|
|
636
584
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
637
585
|
|
|
638
586
|
/***/ }),
|
|
639
|
-
/*
|
|
640
|
-
/* 20 */
|
|
587
|
+
/* 21 */
|
|
641
588
|
/***/ (function(module, exports) {
|
|
642
589
|
|
|
643
590
|
module.exports = require("@splunk/themes/pick");
|
|
644
591
|
|
|
645
592
|
/***/ }),
|
|
646
|
-
/*
|
|
593
|
+
/* 22 */,
|
|
594
|
+
/* 23 */
|
|
647
595
|
/***/ (function(module, exports) {
|
|
648
596
|
|
|
649
597
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
650
598
|
|
|
651
599
|
/***/ }),
|
|
652
|
-
/*
|
|
600
|
+
/* 24 */
|
|
653
601
|
/***/ (function(module, exports) {
|
|
654
602
|
|
|
655
603
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
656
604
|
|
|
657
605
|
/***/ }),
|
|
658
|
-
/*
|
|
659
|
-
|
|
660
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
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
|
-
};
|
|
606
|
+
/* 25 */
|
|
607
|
+
/***/ (function(module, exports) {
|
|
688
608
|
|
|
689
|
-
exports
|
|
609
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
690
610
|
|
|
691
611
|
/***/ }),
|
|
692
|
-
/*
|
|
612
|
+
/* 26 */
|
|
693
613
|
/***/ (function(module, exports) {
|
|
694
614
|
|
|
695
|
-
module.exports = require("@
|
|
615
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
696
616
|
|
|
697
617
|
/***/ }),
|
|
698
|
-
/*
|
|
618
|
+
/* 27 */
|
|
699
619
|
/***/ (function(module, exports, __webpack_require__) {
|
|
700
620
|
|
|
701
621
|
"use strict";
|
|
@@ -710,13 +630,13 @@ var React = __webpack_require__(1);
|
|
|
710
630
|
|
|
711
631
|
var T = __webpack_require__(0);
|
|
712
632
|
|
|
713
|
-
var lodash_1 = __webpack_require__(
|
|
633
|
+
var lodash_1 = __webpack_require__(3);
|
|
714
634
|
|
|
715
|
-
var i18n_1 = __webpack_require__(
|
|
635
|
+
var i18n_1 = __webpack_require__(2);
|
|
716
636
|
|
|
717
|
-
var Message_1 = __webpack_require__(
|
|
637
|
+
var Message_1 = __webpack_require__(10);
|
|
718
638
|
|
|
719
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
639
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
720
640
|
/**
|
|
721
641
|
* @method shouldShowIconPlaceholder
|
|
722
642
|
* @param {object} dataSources
|
|
@@ -786,7 +706,7 @@ IconPlaceholder.defaultProps = {
|
|
|
786
706
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
787
707
|
|
|
788
708
|
/***/ }),
|
|
789
|
-
/*
|
|
709
|
+
/* 28 */
|
|
790
710
|
/***/ (function(module, exports, __webpack_require__) {
|
|
791
711
|
|
|
792
712
|
"use strict";
|
|
@@ -801,9 +721,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
|
801
721
|
|
|
802
722
|
var T = __webpack_require__(0);
|
|
803
723
|
|
|
804
|
-
var lodash_1 = __webpack_require__(
|
|
724
|
+
var lodash_1 = __webpack_require__(3);
|
|
805
725
|
|
|
806
|
-
var DataSource_1 = __webpack_require__(
|
|
726
|
+
var DataSource_1 = __webpack_require__(39);
|
|
807
727
|
|
|
808
728
|
exports.SortParamsPropTypes = T.shape({
|
|
809
729
|
currentSortKey: T.string,
|
|
@@ -856,7 +776,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
856
776
|
exports.getSortingParams = getSortingParams;
|
|
857
777
|
|
|
858
778
|
/***/ }),
|
|
859
|
-
/*
|
|
779
|
+
/* 29 */
|
|
860
780
|
/***/ (function(module, exports, __webpack_require__) {
|
|
861
781
|
|
|
862
782
|
"use strict";
|
|
@@ -869,7 +789,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
|
869
789
|
|
|
870
790
|
var T = __webpack_require__(0);
|
|
871
791
|
|
|
872
|
-
var lodash_1 = __webpack_require__(
|
|
792
|
+
var lodash_1 = __webpack_require__(3);
|
|
873
793
|
|
|
874
794
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
875
795
|
isPaging: T.bool,
|
|
@@ -920,7 +840,8 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
920
840
|
exports.getPaginationParams = getPaginationParams;
|
|
921
841
|
|
|
922
842
|
/***/ }),
|
|
923
|
-
/*
|
|
843
|
+
/* 30 */,
|
|
844
|
+
/* 31 */
|
|
924
845
|
/***/ (function(module, exports, __webpack_require__) {
|
|
925
846
|
|
|
926
847
|
"use strict";
|
|
@@ -948,7 +869,7 @@ var VizCategory;
|
|
|
948
869
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
949
870
|
|
|
950
871
|
/***/ }),
|
|
951
|
-
/*
|
|
872
|
+
/* 32 */
|
|
952
873
|
/***/ (function(module, exports, __webpack_require__) {
|
|
953
874
|
|
|
954
875
|
"use strict";
|
|
@@ -960,39 +881,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
960
881
|
|
|
961
882
|
var React = __webpack_require__(1);
|
|
962
883
|
|
|
963
|
-
var lodash_1 = __webpack_require__(
|
|
884
|
+
var lodash_1 = __webpack_require__(3);
|
|
964
885
|
|
|
965
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
886
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(33);
|
|
966
887
|
|
|
967
|
-
var Options_1 = __webpack_require__(
|
|
888
|
+
var Options_1 = __webpack_require__(34);
|
|
968
889
|
|
|
969
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
890
|
+
var SanitizeProps_1 = __webpack_require__(35);
|
|
970
891
|
|
|
971
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
892
|
+
var TimezoneContext_1 = __webpack_require__(23);
|
|
972
893
|
|
|
973
|
-
var moment_1 = __webpack_require__(
|
|
894
|
+
var moment_1 = __webpack_require__(36);
|
|
974
895
|
|
|
975
896
|
var styled_components_1 = __webpack_require__(4);
|
|
976
897
|
|
|
977
|
-
var
|
|
898
|
+
var hocUtils_1 = __webpack_require__(25);
|
|
978
899
|
|
|
979
|
-
var
|
|
900
|
+
var JSONSchemaUtils_1 = __webpack_require__(26);
|
|
980
901
|
|
|
981
|
-
var
|
|
902
|
+
var SplunkVisualization_1 = __webpack_require__(37);
|
|
982
903
|
|
|
983
|
-
var
|
|
904
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
984
905
|
|
|
985
|
-
var
|
|
906
|
+
var getSorting_1 = __webpack_require__(28);
|
|
986
907
|
|
|
987
|
-
var
|
|
908
|
+
var getPagination_1 = __webpack_require__(29);
|
|
988
909
|
|
|
989
|
-
var
|
|
910
|
+
var useDeepMemo_1 = __webpack_require__(40);
|
|
990
911
|
|
|
991
|
-
var
|
|
912
|
+
var MissingPropsMessage_1 = __webpack_require__(41);
|
|
992
913
|
|
|
993
|
-
var
|
|
914
|
+
var withEditModeCover_1 = __webpack_require__(42);
|
|
994
915
|
|
|
995
|
-
var
|
|
916
|
+
var withPlaceholder_1 = __webpack_require__(43);
|
|
996
917
|
/**
|
|
997
918
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
998
919
|
* @param {DashboardVizOpts} opts
|
|
@@ -1193,37 +1114,37 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1193
1114
|
exports.default = withDashboardViz;
|
|
1194
1115
|
|
|
1195
1116
|
/***/ }),
|
|
1196
|
-
/*
|
|
1117
|
+
/* 33 */
|
|
1197
1118
|
/***/ (function(module, exports) {
|
|
1198
1119
|
|
|
1199
1120
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1200
1121
|
|
|
1201
1122
|
/***/ }),
|
|
1202
|
-
/*
|
|
1123
|
+
/* 34 */
|
|
1203
1124
|
/***/ (function(module, exports) {
|
|
1204
1125
|
|
|
1205
1126
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1206
1127
|
|
|
1207
1128
|
/***/ }),
|
|
1208
|
-
/*
|
|
1129
|
+
/* 35 */
|
|
1209
1130
|
/***/ (function(module, exports) {
|
|
1210
1131
|
|
|
1211
1132
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1212
1133
|
|
|
1213
1134
|
/***/ }),
|
|
1214
|
-
/*
|
|
1135
|
+
/* 36 */
|
|
1215
1136
|
/***/ (function(module, exports) {
|
|
1216
1137
|
|
|
1217
1138
|
module.exports = require("@splunk/moment");
|
|
1218
1139
|
|
|
1219
1140
|
/***/ }),
|
|
1220
|
-
/*
|
|
1141
|
+
/* 37 */
|
|
1221
1142
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1222
1143
|
|
|
1223
1144
|
"use strict";
|
|
1224
1145
|
|
|
1225
1146
|
|
|
1226
|
-
var _classCallCheck = __webpack_require__(
|
|
1147
|
+
var _classCallCheck = __webpack_require__(11);
|
|
1227
1148
|
|
|
1228
1149
|
Object.defineProperty(exports, "__esModule", {
|
|
1229
1150
|
value: true
|
|
@@ -1233,9 +1154,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
|
1233
1154
|
|
|
1234
1155
|
var T = __webpack_require__(0);
|
|
1235
1156
|
|
|
1236
|
-
var lodash_1 = __webpack_require__(
|
|
1157
|
+
var lodash_1 = __webpack_require__(3);
|
|
1237
1158
|
|
|
1238
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1159
|
+
var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1239
1160
|
|
|
1240
1161
|
|
|
1241
1162
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1368,15 +1289,15 @@ SplunkVisualization.defaultProps = {
|
|
|
1368
1289
|
exports.default = SplunkVisualization;
|
|
1369
1290
|
|
|
1370
1291
|
/***/ }),
|
|
1371
|
-
/*
|
|
1292
|
+
/* 38 */
|
|
1372
1293
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1373
1294
|
|
|
1374
1295
|
"use strict";
|
|
1375
1296
|
|
|
1376
1297
|
|
|
1377
|
-
var _classCallCheck = __webpack_require__(
|
|
1298
|
+
var _classCallCheck = __webpack_require__(11);
|
|
1378
1299
|
|
|
1379
|
-
var _createClass = __webpack_require__(
|
|
1300
|
+
var _createClass = __webpack_require__(19);
|
|
1380
1301
|
|
|
1381
1302
|
Object.defineProperty(exports, "__esModule", {
|
|
1382
1303
|
value: true
|
|
@@ -1405,7 +1326,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1405
1326
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1406
1327
|
|
|
1407
1328
|
/***/ }),
|
|
1408
|
-
/*
|
|
1329
|
+
/* 39 */
|
|
1409
1330
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1410
1331
|
|
|
1411
1332
|
"use strict";
|
|
@@ -1418,7 +1339,7 @@ exports.validSortDirs = void 0;
|
|
|
1418
1339
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1419
1340
|
|
|
1420
1341
|
/***/ }),
|
|
1421
|
-
/*
|
|
1342
|
+
/* 40 */
|
|
1422
1343
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1423
1344
|
|
|
1424
1345
|
"use strict";
|
|
@@ -1431,7 +1352,7 @@ exports.useDeepMemo = void 0;
|
|
|
1431
1352
|
|
|
1432
1353
|
var react_1 = __webpack_require__(1);
|
|
1433
1354
|
|
|
1434
|
-
var lodash_1 = __webpack_require__(
|
|
1355
|
+
var lodash_1 = __webpack_require__(3);
|
|
1435
1356
|
/**
|
|
1436
1357
|
* This hook evaluates and stores the result of a passed function and only
|
|
1437
1358
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -1463,7 +1384,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1463
1384
|
exports.useDeepMemo = useDeepMemo;
|
|
1464
1385
|
|
|
1465
1386
|
/***/ }),
|
|
1466
|
-
/*
|
|
1387
|
+
/* 41 */
|
|
1467
1388
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1468
1389
|
|
|
1469
1390
|
"use strict";
|
|
@@ -1478,11 +1399,11 @@ var React = __webpack_require__(1);
|
|
|
1478
1399
|
|
|
1479
1400
|
var T = __webpack_require__(0);
|
|
1480
1401
|
|
|
1481
|
-
var i18n_1 = __webpack_require__(
|
|
1402
|
+
var i18n_1 = __webpack_require__(2);
|
|
1482
1403
|
|
|
1483
|
-
var Message_1 = __webpack_require__(
|
|
1404
|
+
var Message_1 = __webpack_require__(10);
|
|
1484
1405
|
|
|
1485
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1406
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1486
1407
|
/**
|
|
1487
1408
|
* @method isMissing
|
|
1488
1409
|
* @param {any} v
|
|
@@ -1543,7 +1464,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1543
1464
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1544
1465
|
|
|
1545
1466
|
/***/ }),
|
|
1546
|
-
/*
|
|
1467
|
+
/* 42 */
|
|
1547
1468
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1548
1469
|
|
|
1549
1470
|
"use strict";
|
|
@@ -1557,14 +1478,14 @@ var React = __webpack_require__(1);
|
|
|
1557
1478
|
|
|
1558
1479
|
var styled_components_1 = __webpack_require__(4);
|
|
1559
1480
|
|
|
1560
|
-
var hocUtils_1 = __webpack_require__(
|
|
1481
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
1561
1482
|
|
|
1562
1483
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1563
1484
|
displayName: "withEditModeCover__Cover",
|
|
1564
1485
|
componentId: "sc-1gsbnxb-0"
|
|
1565
1486
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1566
1487
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1567
|
-
'data-splunk-visualization-version': "25.0
|
|
1488
|
+
'data-splunk-visualization-version': "25.2.0 - 4373c5a66"
|
|
1568
1489
|
}).withConfig({
|
|
1569
1490
|
displayName: "withEditModeCover__Blocker",
|
|
1570
1491
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1595,13 +1516,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1595
1516
|
exports.default = withEditModeCover;
|
|
1596
1517
|
|
|
1597
1518
|
/***/ }),
|
|
1598
|
-
/*
|
|
1599
|
-
/***/ (function(module, exports) {
|
|
1600
|
-
|
|
1601
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
1602
|
-
|
|
1603
|
-
/***/ }),
|
|
1604
|
-
/* 42 */
|
|
1519
|
+
/* 43 */
|
|
1605
1520
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1606
1521
|
|
|
1607
1522
|
"use strict";
|
|
@@ -1613,15 +1528,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1613
1528
|
|
|
1614
1529
|
var React = __webpack_require__(1);
|
|
1615
1530
|
|
|
1616
|
-
var colorUtils_1 = __webpack_require__(
|
|
1531
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
1617
1532
|
|
|
1618
|
-
var variables_1 = __webpack_require__(
|
|
1533
|
+
var variables_1 = __webpack_require__(9);
|
|
1619
1534
|
|
|
1620
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1535
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1621
1536
|
|
|
1622
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1537
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
1623
1538
|
|
|
1624
|
-
var hocUtils_1 = __webpack_require__(
|
|
1539
|
+
var hocUtils_1 = __webpack_require__(14);
|
|
1625
1540
|
|
|
1626
1541
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1627
1542
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1665,28 +1580,28 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1665
1580
|
exports.default = withPlaceholder;
|
|
1666
1581
|
|
|
1667
1582
|
/***/ }),
|
|
1668
|
-
/* 43 */,
|
|
1669
1583
|
/* 44 */
|
|
1670
1584
|
/***/ (function(module, exports) {
|
|
1671
1585
|
|
|
1672
|
-
module.exports = require("@splunk/visualization-
|
|
1586
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1673
1587
|
|
|
1674
1588
|
/***/ }),
|
|
1675
|
-
/* 45
|
|
1589
|
+
/* 45 */,
|
|
1590
|
+
/* 46 */
|
|
1676
1591
|
/***/ (function(module, exports) {
|
|
1677
1592
|
|
|
1678
|
-
module.exports = require("@splunk/visualization-
|
|
1593
|
+
module.exports = require("@splunk/visualization-color-palettes");
|
|
1679
1594
|
|
|
1680
1595
|
/***/ }),
|
|
1681
|
-
/*
|
|
1596
|
+
/* 47 */
|
|
1682
1597
|
/***/ (function(module, exports) {
|
|
1683
1598
|
|
|
1684
1599
|
module.exports = require("@splunk/visualization-icons");
|
|
1685
1600
|
|
|
1686
1601
|
/***/ }),
|
|
1687
|
-
/* 47 */,
|
|
1688
1602
|
/* 48 */,
|
|
1689
|
-
/* 49
|
|
1603
|
+
/* 49 */,
|
|
1604
|
+
/* 50 */
|
|
1690
1605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1691
1606
|
|
|
1692
1607
|
"use strict";
|
|
@@ -1696,7 +1611,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1696
1611
|
value: true
|
|
1697
1612
|
});
|
|
1698
1613
|
|
|
1699
|
-
var i18n_1 = __webpack_require__(
|
|
1614
|
+
var i18n_1 = __webpack_require__(2);
|
|
1700
1615
|
|
|
1701
1616
|
var background = function background(_ref) {
|
|
1702
1617
|
var label = _ref.label,
|
|
@@ -1716,13 +1631,14 @@ var background = function background(_ref) {
|
|
|
1716
1631
|
exports.default = background;
|
|
1717
1632
|
|
|
1718
1633
|
/***/ }),
|
|
1719
|
-
/*
|
|
1634
|
+
/* 51 */,
|
|
1635
|
+
/* 52 */
|
|
1720
1636
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1721
1637
|
|
|
1722
1638
|
"use strict";
|
|
1723
1639
|
|
|
1724
1640
|
|
|
1725
|
-
var _toConsumableArray = __webpack_require__(
|
|
1641
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
1726
1642
|
|
|
1727
1643
|
var __rest = this && this.__rest || function (s, e) {
|
|
1728
1644
|
var t = {};
|
|
@@ -1742,7 +1658,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1742
1658
|
});
|
|
1743
1659
|
exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
|
|
1744
1660
|
|
|
1745
|
-
var lodash_1 = __webpack_require__(
|
|
1661
|
+
var lodash_1 = __webpack_require__(3);
|
|
1746
1662
|
/**
|
|
1747
1663
|
* Get formatted annotations
|
|
1748
1664
|
* @method getAnnotations
|
|
@@ -1937,16 +1853,15 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
|
1937
1853
|
exports.constructFieldsAndColumns = constructFieldsAndColumns;
|
|
1938
1854
|
|
|
1939
1855
|
/***/ }),
|
|
1940
|
-
/*
|
|
1856
|
+
/* 53 */
|
|
1941
1857
|
/***/ (function(module, exports) {
|
|
1942
1858
|
|
|
1943
1859
|
module.exports = require("@splunk/charting-bundle");
|
|
1944
1860
|
|
|
1945
1861
|
/***/ }),
|
|
1946
|
-
/* 52 */,
|
|
1947
|
-
/* 53 */,
|
|
1948
1862
|
/* 54 */,
|
|
1949
|
-
/* 55
|
|
1863
|
+
/* 55 */,
|
|
1864
|
+
/* 56 */
|
|
1950
1865
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1951
1866
|
|
|
1952
1867
|
"use strict";
|
|
@@ -1958,11 +1873,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1958
1873
|
exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
|
|
1959
1874
|
/* eslint-disable react/no-unused-prop-types */
|
|
1960
1875
|
|
|
1961
|
-
var lodash_1 = __webpack_require__(
|
|
1876
|
+
var lodash_1 = __webpack_require__(3);
|
|
1962
1877
|
|
|
1963
|
-
var i18n_1 = __webpack_require__(
|
|
1878
|
+
var i18n_1 = __webpack_require__(2);
|
|
1964
1879
|
|
|
1965
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
1880
|
+
var visualization_color_palettes_1 = __webpack_require__(46);
|
|
1966
1881
|
|
|
1967
1882
|
var react_1 = __webpack_require__(1);
|
|
1968
1883
|
|
|
@@ -1970,26 +1885,26 @@ var React = __webpack_require__(1);
|
|
|
1970
1885
|
|
|
1971
1886
|
var T = __webpack_require__(0);
|
|
1972
1887
|
|
|
1973
|
-
var react_event_listener_1 = __webpack_require__(
|
|
1888
|
+
var react_event_listener_1 = __webpack_require__(57);
|
|
1974
1889
|
|
|
1975
|
-
__webpack_require__(
|
|
1890
|
+
__webpack_require__(58); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
1976
1891
|
|
|
1977
1892
|
|
|
1978
|
-
var charting_bundle_1 = __webpack_require__(
|
|
1893
|
+
var charting_bundle_1 = __webpack_require__(53);
|
|
1979
1894
|
|
|
1980
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1895
|
+
var TimezoneContext_1 = __webpack_require__(23);
|
|
1981
1896
|
|
|
1982
1897
|
var style_1 = __webpack_require__(15);
|
|
1983
1898
|
|
|
1984
1899
|
var styled_components_1 = __webpack_require__(4);
|
|
1985
1900
|
|
|
1986
|
-
var Message_1 = __webpack_require__(
|
|
1901
|
+
var Message_1 = __webpack_require__(10);
|
|
1987
1902
|
|
|
1988
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
1903
|
+
var useSplunkTheme_1 = __webpack_require__(59);
|
|
1989
1904
|
|
|
1990
|
-
var themeUtils_1 = __webpack_require__(
|
|
1905
|
+
var themeUtils_1 = __webpack_require__(60);
|
|
1991
1906
|
|
|
1992
|
-
var ChartingApi_1 = __webpack_require__(
|
|
1907
|
+
var ChartingApi_1 = __webpack_require__(61);
|
|
1993
1908
|
|
|
1994
1909
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
1995
1910
|
|
|
@@ -2368,39 +2283,39 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
|
|
|
2368
2283
|
exports.default = withEmptyChartMessage(Charting);
|
|
2369
2284
|
|
|
2370
2285
|
/***/ }),
|
|
2371
|
-
/*
|
|
2286
|
+
/* 57 */
|
|
2372
2287
|
/***/ (function(module, exports) {
|
|
2373
2288
|
|
|
2374
2289
|
module.exports = require("react-event-listener");
|
|
2375
2290
|
|
|
2376
2291
|
/***/ }),
|
|
2377
|
-
/*
|
|
2292
|
+
/* 58 */
|
|
2378
2293
|
/***/ (function(module, exports) {
|
|
2379
2294
|
|
|
2380
2295
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
2381
2296
|
|
|
2382
2297
|
/***/ }),
|
|
2383
|
-
/*
|
|
2298
|
+
/* 59 */
|
|
2384
2299
|
/***/ (function(module, exports) {
|
|
2385
2300
|
|
|
2386
2301
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
2387
2302
|
|
|
2388
2303
|
/***/ }),
|
|
2389
|
-
/*
|
|
2304
|
+
/* 60 */
|
|
2390
2305
|
/***/ (function(module, exports) {
|
|
2391
2306
|
|
|
2392
2307
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
2393
2308
|
|
|
2394
2309
|
/***/ }),
|
|
2395
|
-
/*
|
|
2310
|
+
/* 61 */
|
|
2396
2311
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2397
2312
|
|
|
2398
2313
|
"use strict";
|
|
2399
2314
|
|
|
2400
2315
|
|
|
2401
|
-
var _classCallCheck = __webpack_require__(
|
|
2316
|
+
var _classCallCheck = __webpack_require__(11);
|
|
2402
2317
|
|
|
2403
|
-
var _createClass = __webpack_require__(
|
|
2318
|
+
var _createClass = __webpack_require__(19);
|
|
2404
2319
|
|
|
2405
2320
|
Object.defineProperty(exports, "__esModule", {
|
|
2406
2321
|
value: true
|
|
@@ -2460,29 +2375,29 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
|
|
|
2460
2375
|
exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
2461
2376
|
|
|
2462
2377
|
/***/ }),
|
|
2463
|
-
/*
|
|
2378
|
+
/* 62 */
|
|
2464
2379
|
/***/ (function(module, exports) {
|
|
2465
2380
|
|
|
2466
2381
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
2467
2382
|
|
|
2468
2383
|
/***/ }),
|
|
2469
|
-
/*
|
|
2470
|
-
/*
|
|
2384
|
+
/* 63 */,
|
|
2385
|
+
/* 64 */
|
|
2471
2386
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2472
2387
|
|
|
2473
2388
|
"use strict";
|
|
2474
2389
|
|
|
2475
2390
|
|
|
2476
|
-
var _toConsumableArray = __webpack_require__(
|
|
2391
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
2477
2392
|
|
|
2478
2393
|
Object.defineProperty(exports, "__esModule", {
|
|
2479
2394
|
value: true
|
|
2480
2395
|
});
|
|
2481
2396
|
exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
|
|
2482
2397
|
|
|
2483
|
-
var i18n_1 = __webpack_require__(
|
|
2398
|
+
var i18n_1 = __webpack_require__(2);
|
|
2484
2399
|
|
|
2485
|
-
var configUtils_1 = __webpack_require__(
|
|
2400
|
+
var configUtils_1 = __webpack_require__(17);
|
|
2486
2401
|
|
|
2487
2402
|
var AxesChartDataConfig = {
|
|
2488
2403
|
label: i18n_1._('Data configurations'),
|
|
@@ -2523,15 +2438,35 @@ exports.AxesChartDataConfigBar = {
|
|
|
2523
2438
|
};
|
|
2524
2439
|
exports.AxesChartDataConfigScatter = {
|
|
2525
2440
|
label: AxesChartDataConfig.label,
|
|
2526
|
-
|
|
2527
|
-
|
|
2441
|
+
layout: [[{
|
|
2442
|
+
label: i18n_1._('X'),
|
|
2443
|
+
option: 'x',
|
|
2444
|
+
editor: 'editor.columnSelector',
|
|
2445
|
+
editorProps: {
|
|
2446
|
+
dataSourceKey: 'primary'
|
|
2447
|
+
}
|
|
2448
|
+
}], [{
|
|
2449
|
+
label: i18n_1._('Y'),
|
|
2450
|
+
option: 'y',
|
|
2451
|
+
editor: 'editor.columnSelector',
|
|
2452
|
+
editorProps: {
|
|
2453
|
+
dataSourceKey: 'primary'
|
|
2454
|
+
}
|
|
2455
|
+
}], [{
|
|
2528
2456
|
label: i18n_1._('Category'),
|
|
2529
2457
|
option: 'category',
|
|
2530
2458
|
editor: 'editor.columnSelector',
|
|
2531
2459
|
editorProps: {
|
|
2532
2460
|
dataSourceKey: 'primary'
|
|
2533
2461
|
}
|
|
2534
|
-
}]
|
|
2462
|
+
}], [{
|
|
2463
|
+
label: i18n_1._('Result limit'),
|
|
2464
|
+
option: 'resultLimit',
|
|
2465
|
+
editor: 'editor.number',
|
|
2466
|
+
editorProps: {
|
|
2467
|
+
dataSourceKey: 'primary'
|
|
2468
|
+
}
|
|
2469
|
+
}]]
|
|
2535
2470
|
};
|
|
2536
2471
|
exports.AxesChartDataConfigBubble = {
|
|
2537
2472
|
label: exports.AxesChartDataConfigScatter.label,
|
|
@@ -2566,7 +2501,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
|
|
|
2566
2501
|
exports.default = AxesChartDataConfig;
|
|
2567
2502
|
|
|
2568
2503
|
/***/ }),
|
|
2569
|
-
/*
|
|
2504
|
+
/* 65 */
|
|
2570
2505
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2571
2506
|
|
|
2572
2507
|
"use strict";
|
|
@@ -2576,13 +2511,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2576
2511
|
value: true
|
|
2577
2512
|
});
|
|
2578
2513
|
|
|
2579
|
-
var i18n_1 = __webpack_require__(
|
|
2514
|
+
var i18n_1 = __webpack_require__(2);
|
|
2580
2515
|
|
|
2581
|
-
var pick_1 = __webpack_require__(
|
|
2516
|
+
var pick_1 = __webpack_require__(21);
|
|
2582
2517
|
|
|
2583
|
-
var variables_1 = __webpack_require__(
|
|
2518
|
+
var variables_1 = __webpack_require__(9);
|
|
2584
2519
|
|
|
2585
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
2520
|
+
var BackgroundColor_1 = __webpack_require__(50);
|
|
2586
2521
|
|
|
2587
2522
|
var themes = {
|
|
2588
2523
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
@@ -2599,28 +2534,20 @@ var AxesChartColorAndStyle = {
|
|
|
2599
2534
|
label: i18n_1._('Color and style'),
|
|
2600
2535
|
layout: [BackgroundColor_1.default({
|
|
2601
2536
|
themes: themes
|
|
2602
|
-
})
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
// [
|
|
2612
|
-
// {
|
|
2613
|
-
// label: _('Series colors by field name'),
|
|
2614
|
-
// option: 'seriesColorsByField',
|
|
2615
|
-
// editor: 'editor.seriesColorsByField',
|
|
2616
|
-
// },
|
|
2617
|
-
// ],
|
|
2618
|
-
]
|
|
2537
|
+
}), [{
|
|
2538
|
+
label: i18n_1._('Series colors'),
|
|
2539
|
+
option: 'seriesColors',
|
|
2540
|
+
editor: 'editor.seriesColors'
|
|
2541
|
+
}], [{
|
|
2542
|
+
label: i18n_1._('Series colors by field name'),
|
|
2543
|
+
option: 'seriesColorsByField',
|
|
2544
|
+
editor: 'editor.seriesColorsByField'
|
|
2545
|
+
}]]
|
|
2619
2546
|
};
|
|
2620
2547
|
exports.default = AxesChartColorAndStyle;
|
|
2621
2548
|
|
|
2622
2549
|
/***/ }),
|
|
2623
|
-
/*
|
|
2550
|
+
/* 66 */
|
|
2624
2551
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2625
2552
|
|
|
2626
2553
|
"use strict";
|
|
@@ -2630,7 +2557,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2630
2557
|
value: true
|
|
2631
2558
|
});
|
|
2632
2559
|
|
|
2633
|
-
var i18n_1 = __webpack_require__(
|
|
2560
|
+
var i18n_1 = __webpack_require__(2);
|
|
2634
2561
|
|
|
2635
2562
|
var AxesChartLegend = {
|
|
2636
2563
|
label: i18n_1._('Legend'),
|
|
@@ -2684,22 +2611,22 @@ var AxesChartLegend = {
|
|
|
2684
2611
|
exports.default = AxesChartLegend;
|
|
2685
2612
|
|
|
2686
2613
|
/***/ }),
|
|
2687
|
-
/*
|
|
2614
|
+
/* 67 */
|
|
2688
2615
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2689
2616
|
|
|
2690
2617
|
"use strict";
|
|
2691
2618
|
|
|
2692
2619
|
|
|
2693
|
-
var _toConsumableArray = __webpack_require__(
|
|
2620
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
2694
2621
|
|
|
2695
2622
|
Object.defineProperty(exports, "__esModule", {
|
|
2696
2623
|
value: true
|
|
2697
2624
|
});
|
|
2698
2625
|
exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
|
|
2699
2626
|
|
|
2700
|
-
var i18n_1 = __webpack_require__(
|
|
2627
|
+
var i18n_1 = __webpack_require__(2);
|
|
2701
2628
|
|
|
2702
|
-
var configUtils_1 = __webpack_require__(
|
|
2629
|
+
var configUtils_1 = __webpack_require__(17);
|
|
2703
2630
|
|
|
2704
2631
|
exports.AxesChartXGridAndLabelsCommon = {
|
|
2705
2632
|
label: i18n_1._('X-axis grid and labels'),
|
|
@@ -2738,7 +2665,7 @@ var AxesChartXGridAndLabels = {
|
|
|
2738
2665
|
layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
2739
2666
|
label: i18n_1._('Label rotation'),
|
|
2740
2667
|
option: 'xAxisLabelRotation',
|
|
2741
|
-
editor: 'editor.
|
|
2668
|
+
editor: 'editor.select',
|
|
2742
2669
|
editorProps: {
|
|
2743
2670
|
values: [{
|
|
2744
2671
|
label: i18n_1._('-90'),
|
|
@@ -2830,7 +2757,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2830
2757
|
}])), [[{
|
|
2831
2758
|
label: i18n_1._('Label rotation'),
|
|
2832
2759
|
option: 'xAxisLabelRotation',
|
|
2833
|
-
editor: 'editor.
|
|
2760
|
+
editor: 'editor.select',
|
|
2834
2761
|
editorProps: {
|
|
2835
2762
|
values: [{
|
|
2836
2763
|
label: i18n_1._('-90'),
|
|
@@ -2972,7 +2899,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2972
2899
|
exports.default = AxesChartXGridAndLabels;
|
|
2973
2900
|
|
|
2974
2901
|
/***/ }),
|
|
2975
|
-
/*
|
|
2902
|
+
/* 68 */
|
|
2976
2903
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2977
2904
|
|
|
2978
2905
|
"use strict";
|
|
@@ -2982,7 +2909,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2982
2909
|
value: true
|
|
2983
2910
|
});
|
|
2984
2911
|
|
|
2985
|
-
var i18n_1 = __webpack_require__(
|
|
2912
|
+
var i18n_1 = __webpack_require__(2);
|
|
2986
2913
|
|
|
2987
2914
|
var AxesChartYGridAndLabels = {
|
|
2988
2915
|
label: i18n_1._('Y-axis grid and labels'),
|
|
@@ -3134,7 +3061,6 @@ var AxesChartYGridAndLabels = {
|
|
|
3134
3061
|
exports.default = AxesChartYGridAndLabels;
|
|
3135
3062
|
|
|
3136
3063
|
/***/ }),
|
|
3137
|
-
/* 68 */,
|
|
3138
3064
|
/* 69 */,
|
|
3139
3065
|
/* 70 */,
|
|
3140
3066
|
/* 71 */,
|
|
@@ -3186,7 +3112,15 @@ exports.default = AxesChartYGridAndLabels;
|
|
|
3186
3112
|
/* 117 */,
|
|
3187
3113
|
/* 118 */,
|
|
3188
3114
|
/* 119 */,
|
|
3189
|
-
/* 120
|
|
3115
|
+
/* 120 */,
|
|
3116
|
+
/* 121 */,
|
|
3117
|
+
/* 122 */,
|
|
3118
|
+
/* 123 */,
|
|
3119
|
+
/* 124 */,
|
|
3120
|
+
/* 125 */,
|
|
3121
|
+
/* 126 */,
|
|
3122
|
+
/* 127 */,
|
|
3123
|
+
/* 128 */
|
|
3190
3124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3191
3125
|
|
|
3192
3126
|
"use strict";
|
|
@@ -3210,25 +3144,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3210
3144
|
});
|
|
3211
3145
|
exports.config = exports.themes = exports.computeVizProps = void 0;
|
|
3212
3146
|
|
|
3213
|
-
var lodash_1 = __webpack_require__(
|
|
3147
|
+
var lodash_1 = __webpack_require__(3); // Charting imports i18n which needs to be run to instantiate window globals in the tests
|
|
3214
3148
|
// eslint-disable-next-line import/order
|
|
3215
3149
|
|
|
3216
3150
|
|
|
3217
|
-
var Charting_1 = __webpack_require__(
|
|
3151
|
+
var Charting_1 = __webpack_require__(56);
|
|
3218
3152
|
|
|
3219
|
-
var charting_bundle_1 = __webpack_require__(
|
|
3153
|
+
var charting_bundle_1 = __webpack_require__(53);
|
|
3220
3154
|
|
|
3221
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
3155
|
+
var simpleXMLOptions_1 = __webpack_require__(62);
|
|
3222
3156
|
|
|
3223
|
-
var config_1 = __webpack_require__(
|
|
3157
|
+
var config_1 = __webpack_require__(166);
|
|
3224
3158
|
|
|
3225
3159
|
exports.config = config_1.default;
|
|
3226
3160
|
|
|
3227
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3161
|
+
var withDashboardViz_1 = __webpack_require__(32);
|
|
3228
3162
|
|
|
3229
|
-
var bubbleUtils_1 = __webpack_require__(
|
|
3163
|
+
var bubbleUtils_1 = __webpack_require__(167);
|
|
3230
3164
|
|
|
3231
|
-
var chartingUtils_1 = __webpack_require__(
|
|
3165
|
+
var chartingUtils_1 = __webpack_require__(52);
|
|
3232
3166
|
|
|
3233
3167
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
3234
3168
|
|
|
@@ -3310,14 +3244,6 @@ exports.themes = themes;
|
|
|
3310
3244
|
exports.default = Bubble;
|
|
3311
3245
|
|
|
3312
3246
|
/***/ }),
|
|
3313
|
-
/* 121 */,
|
|
3314
|
-
/* 122 */,
|
|
3315
|
-
/* 123 */,
|
|
3316
|
-
/* 124 */,
|
|
3317
|
-
/* 125 */,
|
|
3318
|
-
/* 126 */,
|
|
3319
|
-
/* 127 */,
|
|
3320
|
-
/* 128 */,
|
|
3321
3247
|
/* 129 */,
|
|
3322
3248
|
/* 130 */,
|
|
3323
3249
|
/* 131 */,
|
|
@@ -3342,7 +3268,19 @@ exports.default = Bubble;
|
|
|
3342
3268
|
/* 150 */,
|
|
3343
3269
|
/* 151 */,
|
|
3344
3270
|
/* 152 */,
|
|
3345
|
-
/* 153
|
|
3271
|
+
/* 153 */,
|
|
3272
|
+
/* 154 */,
|
|
3273
|
+
/* 155 */,
|
|
3274
|
+
/* 156 */,
|
|
3275
|
+
/* 157 */,
|
|
3276
|
+
/* 158 */,
|
|
3277
|
+
/* 159 */,
|
|
3278
|
+
/* 160 */,
|
|
3279
|
+
/* 161 */,
|
|
3280
|
+
/* 162 */,
|
|
3281
|
+
/* 163 */,
|
|
3282
|
+
/* 164 */,
|
|
3283
|
+
/* 165 */
|
|
3346
3284
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3347
3285
|
|
|
3348
3286
|
"use strict";
|
|
@@ -3372,9 +3310,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3372
3310
|
});
|
|
3373
3311
|
exports.default = void 0;
|
|
3374
3312
|
|
|
3375
|
-
__exportStar(__webpack_require__(
|
|
3313
|
+
__exportStar(__webpack_require__(128), exports);
|
|
3376
3314
|
|
|
3377
|
-
var Bubble_1 = __webpack_require__(
|
|
3315
|
+
var Bubble_1 = __webpack_require__(128);
|
|
3378
3316
|
|
|
3379
3317
|
Object.defineProperty(exports, "default", {
|
|
3380
3318
|
enumerable: true,
|
|
@@ -3384,47 +3322,47 @@ Object.defineProperty(exports, "default", {
|
|
|
3384
3322
|
});
|
|
3385
3323
|
|
|
3386
3324
|
/***/ }),
|
|
3387
|
-
/*
|
|
3325
|
+
/* 166 */
|
|
3388
3326
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3389
3327
|
|
|
3390
3328
|
"use strict";
|
|
3391
3329
|
|
|
3392
3330
|
|
|
3393
|
-
var _toConsumableArray = __webpack_require__(
|
|
3331
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
3394
3332
|
|
|
3395
3333
|
Object.defineProperty(exports, "__esModule", {
|
|
3396
3334
|
value: true
|
|
3397
3335
|
});
|
|
3398
3336
|
|
|
3399
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3337
|
+
var visualization_icons_1 = __webpack_require__(47);
|
|
3400
3338
|
|
|
3401
|
-
var placeholders_1 = __webpack_require__(
|
|
3339
|
+
var placeholders_1 = __webpack_require__(44);
|
|
3402
3340
|
|
|
3403
3341
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3404
3342
|
|
|
3405
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3343
|
+
var visualization_color_palettes_1 = __webpack_require__(46);
|
|
3406
3344
|
|
|
3407
|
-
var pick_1 = __webpack_require__(
|
|
3345
|
+
var pick_1 = __webpack_require__(21);
|
|
3408
3346
|
|
|
3409
|
-
var variables_1 = __webpack_require__(
|
|
3347
|
+
var variables_1 = __webpack_require__(9);
|
|
3410
3348
|
|
|
3411
|
-
var i18n_1 = __webpack_require__(
|
|
3349
|
+
var i18n_1 = __webpack_require__(2);
|
|
3412
3350
|
|
|
3413
|
-
var AxesChartDataConfig_1 = __webpack_require__(
|
|
3351
|
+
var AxesChartDataConfig_1 = __webpack_require__(64);
|
|
3414
3352
|
|
|
3415
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(
|
|
3353
|
+
var AxesChartXGridAndLabels_1 = __webpack_require__(67);
|
|
3416
3354
|
|
|
3417
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(
|
|
3355
|
+
var AxesChartColorAndStyle_1 = __webpack_require__(65);
|
|
3418
3356
|
|
|
3419
|
-
var AxesChartLegend_1 = __webpack_require__(
|
|
3357
|
+
var AxesChartLegend_1 = __webpack_require__(66);
|
|
3420
3358
|
|
|
3421
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(
|
|
3359
|
+
var AxesChartYGridAndLabels_1 = __webpack_require__(68);
|
|
3422
3360
|
|
|
3423
|
-
var VizBehavior_1 = __webpack_require__(
|
|
3361
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
3424
3362
|
|
|
3425
|
-
var VizCategory_1 = __webpack_require__(
|
|
3363
|
+
var VizCategory_1 = __webpack_require__(31);
|
|
3426
3364
|
|
|
3427
|
-
var configUtils_1 = __webpack_require__(
|
|
3365
|
+
var configUtils_1 = __webpack_require__(17);
|
|
3428
3366
|
|
|
3429
3367
|
var dataContract = {
|
|
3430
3368
|
requiredDataSources: [{
|
|
@@ -3504,7 +3442,7 @@ var optionsSchema = {
|
|
|
3504
3442
|
backgroundColor: {
|
|
3505
3443
|
default: '> themes.defaultBackgroundColor',
|
|
3506
3444
|
description: 'Specify the color used for the chart background by using a hexadecimal code. For example, #0000FF.',
|
|
3507
|
-
pattern: schemaUtils_1.
|
|
3445
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3508
3446
|
type: 'string'
|
|
3509
3447
|
},
|
|
3510
3448
|
bubbleSizeMax: {
|
|
@@ -3549,7 +3487,7 @@ var optionsSchema = {
|
|
|
3549
3487
|
}
|
|
3550
3488
|
},
|
|
3551
3489
|
seriesColorsByField: {
|
|
3552
|
-
description: 'Specify the colors
|
|
3490
|
+
description: 'Specify the colors to use for specific categories, or series names, derived from distinct values in the selected category field. For example, {"user1": "#008000", "user2": "#FFA500"}.',
|
|
3553
3491
|
type: 'object'
|
|
3554
3492
|
},
|
|
3555
3493
|
showXAxisExtendedRange: {
|
|
@@ -3766,7 +3704,14 @@ var themes = {
|
|
|
3766
3704
|
};
|
|
3767
3705
|
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBubble, {
|
|
3768
3706
|
label: AxesChartColorAndStyle_1.default.label,
|
|
3769
|
-
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
|
|
3707
|
+
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout.slice(0, 2)), [[{
|
|
3708
|
+
label: i18n_1._('Series colors by category name'),
|
|
3709
|
+
option: 'seriesColorsByField',
|
|
3710
|
+
editor: 'editor.seriesColorsByField',
|
|
3711
|
+
editorProps: {
|
|
3712
|
+
isCategorical: true
|
|
3713
|
+
}
|
|
3714
|
+
}], [{
|
|
3770
3715
|
label: i18n_1._('Maximum bubble size'),
|
|
3771
3716
|
option: 'bubbleSizeMax',
|
|
3772
3717
|
editor: 'editor.slider',
|
|
@@ -3839,7 +3784,7 @@ var config = {
|
|
|
3839
3784
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
3840
3785
|
|
|
3841
3786
|
/***/ }),
|
|
3842
|
-
/*
|
|
3787
|
+
/* 167 */
|
|
3843
3788
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3844
3789
|
|
|
3845
3790
|
"use strict";
|
|
@@ -3850,11 +3795,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3850
3795
|
});
|
|
3851
3796
|
exports.convertToBubbleSCProperties = exports.mapToOldKey = exports.convertToStringValues = exports.bubbleOptionValuesSCMapping = void 0;
|
|
3852
3797
|
|
|
3853
|
-
var lodash_1 = __webpack_require__(
|
|
3798
|
+
var lodash_1 = __webpack_require__(3);
|
|
3854
3799
|
|
|
3855
|
-
var propUtils_1 = __webpack_require__(
|
|
3800
|
+
var propUtils_1 = __webpack_require__(24);
|
|
3856
3801
|
|
|
3857
|
-
var chartingUtils_1 = __webpack_require__(
|
|
3802
|
+
var chartingUtils_1 = __webpack_require__(52); // map for key names which are either new or not present in SimpleXML options mapping
|
|
3858
3803
|
|
|
3859
3804
|
|
|
3860
3805
|
var bubbleOptionsSCMapping = {
|