@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/Bar.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 = 162);
|
|
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 */
|
|
162
199
|
/***/ (function(module, exports, __webpack_require__) {
|
|
163
200
|
|
|
164
201
|
"use strict";
|
|
165
202
|
|
|
166
203
|
|
|
167
|
-
|
|
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 */
|
|
339
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
340
|
+
|
|
341
|
+
"use strict";
|
|
342
|
+
|
|
343
|
+
|
|
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',
|
|
@@ -324,378 +501,121 @@ function hasCompatibleContexts(vizContext, presetContext) {
|
|
|
324
501
|
}
|
|
325
502
|
/**
|
|
326
503
|
* 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;"]);
|
|
504
|
+
*/
|
|
577
505
|
|
|
578
|
-
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
579
|
-
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
580
|
-
var width = props.width,
|
|
581
|
-
height = props.height,
|
|
582
|
-
backgroundColor = props.backgroundColor;
|
|
583
506
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
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
|
+
*/
|
|
591
521
|
|
|
592
|
-
return React.createElement(FixSizeItem, {
|
|
593
|
-
"data-test": "fix-size-item",
|
|
594
|
-
"data-splunk-visualization-version": "25.0.1 - de10ad954",
|
|
595
|
-
width: width,
|
|
596
|
-
height: height,
|
|
597
|
-
backgroundColor: backgroundColor
|
|
598
|
-
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
599
|
-
var newWidth = _ref3.width,
|
|
600
|
-
newHeight = _ref3.height;
|
|
601
|
-
return React.createElement(Viz, Object.assign({}, props, {
|
|
602
|
-
width: newWidth,
|
|
603
|
-
height: newHeight
|
|
604
|
-
}));
|
|
605
|
-
})));
|
|
606
|
-
};
|
|
607
522
|
|
|
608
|
-
|
|
609
|
-
return
|
|
610
|
-
};
|
|
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
|
|
611
530
|
|
|
612
|
-
|
|
531
|
+
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
532
|
+
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
533
|
+
});
|
|
534
|
+
}
|
|
613
535
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
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
|
+
*/
|
|
617
543
|
|
|
618
|
-
|
|
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
|
+
}
|
|
619
552
|
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
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
|
+
*/
|
|
623
562
|
|
|
624
|
-
|
|
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,31 +3061,31 @@ var AxesChartYGridAndLabels = {
|
|
|
3134
3061
|
exports.default = AxesChartYGridAndLabels;
|
|
3135
3062
|
|
|
3136
3063
|
/***/ }),
|
|
3137
|
-
/* 68 */,
|
|
3138
3064
|
/* 69 */,
|
|
3139
3065
|
/* 70 */,
|
|
3140
3066
|
/* 71 */,
|
|
3141
3067
|
/* 72 */,
|
|
3142
3068
|
/* 73 */,
|
|
3143
3069
|
/* 74 */,
|
|
3144
|
-
/* 75
|
|
3070
|
+
/* 75 */,
|
|
3071
|
+
/* 76 */
|
|
3145
3072
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3146
3073
|
|
|
3147
3074
|
"use strict";
|
|
3148
3075
|
|
|
3149
3076
|
|
|
3150
|
-
var _toConsumableArray = __webpack_require__(
|
|
3077
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
3151
3078
|
|
|
3152
3079
|
Object.defineProperty(exports, "__esModule", {
|
|
3153
3080
|
value: true
|
|
3154
3081
|
});
|
|
3155
3082
|
exports.AxesChartDataDisplayColumn = exports.AxesChartDataDisplayBar = exports.AxesChartDataDisplayLine = void 0;
|
|
3156
3083
|
|
|
3157
|
-
var i18n_1 = __webpack_require__(
|
|
3084
|
+
var i18n_1 = __webpack_require__(2);
|
|
3158
3085
|
|
|
3159
|
-
var lodash_1 = __webpack_require__(
|
|
3086
|
+
var lodash_1 = __webpack_require__(3);
|
|
3160
3087
|
|
|
3161
|
-
var configUtils_1 = __webpack_require__(
|
|
3088
|
+
var configUtils_1 = __webpack_require__(17);
|
|
3162
3089
|
|
|
3163
3090
|
exports.AxesChartDataDisplayLine = {
|
|
3164
3091
|
label: i18n_1._('Data display'),
|
|
@@ -3194,13 +3121,6 @@ exports.AxesChartDataDisplayLine = {
|
|
|
3194
3121
|
value: 'minmax'
|
|
3195
3122
|
}]
|
|
3196
3123
|
}
|
|
3197
|
-
}], [{
|
|
3198
|
-
label: i18n_1._('Overlay fields'),
|
|
3199
|
-
option: 'overlayFields',
|
|
3200
|
-
editor: 'editor.columnMultiSelector',
|
|
3201
|
-
editorProps: {
|
|
3202
|
-
dataSourceKey: 'primary'
|
|
3203
|
-
}
|
|
3204
3124
|
}], [{
|
|
3205
3125
|
label: i18n_1._('Split series'),
|
|
3206
3126
|
option: 'showSplitSeries',
|
|
@@ -3220,7 +3140,7 @@ var AxesChartDataDisplay = {
|
|
|
3220
3140
|
layout: [[{
|
|
3221
3141
|
label: i18n_1._('Stack mode'),
|
|
3222
3142
|
option: 'stackMode',
|
|
3223
|
-
editor: 'editor.
|
|
3143
|
+
editor: 'editor.select',
|
|
3224
3144
|
editorProps: {
|
|
3225
3145
|
values: [{
|
|
3226
3146
|
label: i18n_1._('Not stacked'),
|
|
@@ -3240,7 +3160,7 @@ exports.AxesChartDataDisplayBar = {
|
|
|
3240
3160
|
layout: [[{
|
|
3241
3161
|
label: i18n_1._('Stack mode'),
|
|
3242
3162
|
option: 'stackMode',
|
|
3243
|
-
editor: 'editor.
|
|
3163
|
+
editor: 'editor.select',
|
|
3244
3164
|
editorProps: {
|
|
3245
3165
|
values: [{
|
|
3246
3166
|
label: i18n_1._('Not stacked'),
|
|
@@ -3279,7 +3199,7 @@ exports.AxesChartDataDisplayColumn = {
|
|
|
3279
3199
|
exports.default = AxesChartDataDisplay;
|
|
3280
3200
|
|
|
3281
3201
|
/***/ }),
|
|
3282
|
-
/*
|
|
3202
|
+
/* 77 */
|
|
3283
3203
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3284
3204
|
|
|
3285
3205
|
"use strict";
|
|
@@ -3289,7 +3209,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3289
3209
|
value: true
|
|
3290
3210
|
});
|
|
3291
3211
|
|
|
3292
|
-
var i18n_1 = __webpack_require__(
|
|
3212
|
+
var i18n_1 = __webpack_require__(2);
|
|
3293
3213
|
|
|
3294
3214
|
var axesChartY2GridAndLabels = {
|
|
3295
3215
|
label: i18n_1._('Y2-axis grid and labels'),
|
|
@@ -3305,10 +3225,6 @@ var axesChartY2GridAndLabels = {
|
|
|
3305
3225
|
var options = _ref.options;
|
|
3306
3226
|
return options.y2AxisTitleVisibility === 'show' || options.y2AxisTitleVisibility === undefined;
|
|
3307
3227
|
}
|
|
3308
|
-
}], [{
|
|
3309
|
-
label: i18n_1._('Show overlays on the y2-axis'),
|
|
3310
|
-
option: 'showOverlayY2Axis',
|
|
3311
|
-
editor: 'editor.checkbox'
|
|
3312
3228
|
}], [{
|
|
3313
3229
|
label: i18n_1._('Scale'),
|
|
3314
3230
|
option: 'y2AxisScale',
|
|
@@ -3449,7 +3365,6 @@ var axesChartY2GridAndLabels = {
|
|
|
3449
3365
|
exports.default = axesChartY2GridAndLabels;
|
|
3450
3366
|
|
|
3451
3367
|
/***/ }),
|
|
3452
|
-
/* 77 */,
|
|
3453
3368
|
/* 78 */,
|
|
3454
3369
|
/* 79 */,
|
|
3455
3370
|
/* 80 */,
|
|
@@ -3491,7 +3406,15 @@ exports.default = axesChartY2GridAndLabels;
|
|
|
3491
3406
|
/* 116 */,
|
|
3492
3407
|
/* 117 */,
|
|
3493
3408
|
/* 118 */,
|
|
3494
|
-
/* 119
|
|
3409
|
+
/* 119 */,
|
|
3410
|
+
/* 120 */,
|
|
3411
|
+
/* 121 */,
|
|
3412
|
+
/* 122 */,
|
|
3413
|
+
/* 123 */,
|
|
3414
|
+
/* 124 */,
|
|
3415
|
+
/* 125 */,
|
|
3416
|
+
/* 126 */,
|
|
3417
|
+
/* 127 */
|
|
3495
3418
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3496
3419
|
|
|
3497
3420
|
"use strict";
|
|
@@ -3515,25 +3438,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3515
3438
|
});
|
|
3516
3439
|
exports.config = exports.themes = exports.computeVizProps = void 0;
|
|
3517
3440
|
|
|
3518
|
-
var lodash_1 = __webpack_require__(
|
|
3441
|
+
var lodash_1 = __webpack_require__(3); // Charting imports i18n which needs to be run to instantiate window globals in the tests
|
|
3519
3442
|
// eslint-disable-next-line import/order
|
|
3520
3443
|
|
|
3521
3444
|
|
|
3522
|
-
var Charting_1 = __webpack_require__(
|
|
3445
|
+
var Charting_1 = __webpack_require__(56);
|
|
3523
3446
|
|
|
3524
|
-
var charting_bundle_1 = __webpack_require__(
|
|
3447
|
+
var charting_bundle_1 = __webpack_require__(53);
|
|
3525
3448
|
|
|
3526
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
3449
|
+
var simpleXMLOptions_1 = __webpack_require__(62);
|
|
3527
3450
|
|
|
3528
|
-
var config_1 = __webpack_require__(
|
|
3451
|
+
var config_1 = __webpack_require__(163);
|
|
3529
3452
|
|
|
3530
3453
|
exports.config = config_1.default;
|
|
3531
3454
|
|
|
3532
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
3455
|
+
var withDashboardViz_1 = __webpack_require__(32);
|
|
3533
3456
|
|
|
3534
|
-
var barUtils_1 = __webpack_require__(
|
|
3457
|
+
var barUtils_1 = __webpack_require__(164);
|
|
3535
3458
|
|
|
3536
|
-
var chartingUtils_1 = __webpack_require__(
|
|
3459
|
+
var chartingUtils_1 = __webpack_require__(52);
|
|
3537
3460
|
|
|
3538
3461
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
3539
3462
|
|
|
@@ -3602,14 +3525,6 @@ exports.themes = themes;
|
|
|
3602
3525
|
exports.default = Bar;
|
|
3603
3526
|
|
|
3604
3527
|
/***/ }),
|
|
3605
|
-
/* 120 */,
|
|
3606
|
-
/* 121 */,
|
|
3607
|
-
/* 122 */,
|
|
3608
|
-
/* 123 */,
|
|
3609
|
-
/* 124 */,
|
|
3610
|
-
/* 125 */,
|
|
3611
|
-
/* 126 */,
|
|
3612
|
-
/* 127 */,
|
|
3613
3528
|
/* 128 */,
|
|
3614
3529
|
/* 129 */,
|
|
3615
3530
|
/* 130 */,
|
|
@@ -3632,7 +3547,19 @@ exports.default = Bar;
|
|
|
3632
3547
|
/* 147 */,
|
|
3633
3548
|
/* 148 */,
|
|
3634
3549
|
/* 149 */,
|
|
3635
|
-
/* 150
|
|
3550
|
+
/* 150 */,
|
|
3551
|
+
/* 151 */,
|
|
3552
|
+
/* 152 */,
|
|
3553
|
+
/* 153 */,
|
|
3554
|
+
/* 154 */,
|
|
3555
|
+
/* 155 */,
|
|
3556
|
+
/* 156 */,
|
|
3557
|
+
/* 157 */,
|
|
3558
|
+
/* 158 */,
|
|
3559
|
+
/* 159 */,
|
|
3560
|
+
/* 160 */,
|
|
3561
|
+
/* 161 */,
|
|
3562
|
+
/* 162 */
|
|
3636
3563
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3637
3564
|
|
|
3638
3565
|
"use strict";
|
|
@@ -3662,9 +3589,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3662
3589
|
});
|
|
3663
3590
|
exports.default = void 0;
|
|
3664
3591
|
|
|
3665
|
-
__exportStar(__webpack_require__(
|
|
3592
|
+
__exportStar(__webpack_require__(127), exports);
|
|
3666
3593
|
|
|
3667
|
-
var Bar_1 = __webpack_require__(
|
|
3594
|
+
var Bar_1 = __webpack_require__(127);
|
|
3668
3595
|
|
|
3669
3596
|
Object.defineProperty(exports, "default", {
|
|
3670
3597
|
enumerable: true,
|
|
@@ -3674,51 +3601,51 @@ Object.defineProperty(exports, "default", {
|
|
|
3674
3601
|
});
|
|
3675
3602
|
|
|
3676
3603
|
/***/ }),
|
|
3677
|
-
/*
|
|
3604
|
+
/* 163 */
|
|
3678
3605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3679
3606
|
|
|
3680
3607
|
"use strict";
|
|
3681
3608
|
|
|
3682
3609
|
|
|
3683
|
-
var _toConsumableArray = __webpack_require__(
|
|
3610
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
3684
3611
|
|
|
3685
3612
|
Object.defineProperty(exports, "__esModule", {
|
|
3686
3613
|
value: true
|
|
3687
3614
|
});
|
|
3688
3615
|
|
|
3689
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3616
|
+
var visualization_icons_1 = __webpack_require__(47);
|
|
3690
3617
|
|
|
3691
|
-
var placeholders_1 = __webpack_require__(
|
|
3618
|
+
var placeholders_1 = __webpack_require__(44);
|
|
3692
3619
|
|
|
3693
3620
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3694
3621
|
|
|
3695
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3622
|
+
var visualization_color_palettes_1 = __webpack_require__(46);
|
|
3696
3623
|
|
|
3697
|
-
var i18n_1 = __webpack_require__(
|
|
3624
|
+
var i18n_1 = __webpack_require__(2);
|
|
3698
3625
|
|
|
3699
|
-
var pick_1 = __webpack_require__(
|
|
3626
|
+
var pick_1 = __webpack_require__(21);
|
|
3700
3627
|
|
|
3701
|
-
var variables_1 = __webpack_require__(
|
|
3628
|
+
var variables_1 = __webpack_require__(9);
|
|
3702
3629
|
|
|
3703
|
-
var AxesChartDataConfig_1 = __webpack_require__(
|
|
3630
|
+
var AxesChartDataConfig_1 = __webpack_require__(64);
|
|
3704
3631
|
|
|
3705
|
-
var AxesChartDataDisplay_1 = __webpack_require__(
|
|
3632
|
+
var AxesChartDataDisplay_1 = __webpack_require__(76);
|
|
3706
3633
|
|
|
3707
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(
|
|
3634
|
+
var AxesChartXGridAndLabels_1 = __webpack_require__(67);
|
|
3708
3635
|
|
|
3709
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(
|
|
3636
|
+
var AxesChartColorAndStyle_1 = __webpack_require__(65);
|
|
3710
3637
|
|
|
3711
|
-
var AxesChartLegend_1 = __webpack_require__(
|
|
3638
|
+
var AxesChartLegend_1 = __webpack_require__(66);
|
|
3712
3639
|
|
|
3713
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(
|
|
3640
|
+
var AxesChartYGridAndLabels_1 = __webpack_require__(68);
|
|
3714
3641
|
|
|
3715
|
-
var AxesChartY2GridAndLabels_1 = __webpack_require__(
|
|
3642
|
+
var AxesChartY2GridAndLabels_1 = __webpack_require__(77);
|
|
3716
3643
|
|
|
3717
|
-
var VizBehavior_1 = __webpack_require__(
|
|
3644
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
3718
3645
|
|
|
3719
|
-
var VizCategory_1 = __webpack_require__(
|
|
3646
|
+
var VizCategory_1 = __webpack_require__(31);
|
|
3720
3647
|
|
|
3721
|
-
var configUtils_1 = __webpack_require__(
|
|
3648
|
+
var configUtils_1 = __webpack_require__(17);
|
|
3722
3649
|
|
|
3723
3650
|
var dataContract = {
|
|
3724
3651
|
requiredDataSources: [{
|
|
@@ -3788,7 +3715,7 @@ var optionsSchema = {
|
|
|
3788
3715
|
backgroundColor: {
|
|
3789
3716
|
default: '> themes.defaultBackgroundColor',
|
|
3790
3717
|
description: 'Specify the color used for the background. You can use a data source or hexadecimal code to apply the color.',
|
|
3791
|
-
pattern: schemaUtils_1.
|
|
3718
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
3792
3719
|
type: 'string'
|
|
3793
3720
|
},
|
|
3794
3721
|
barSpacing: {
|
|
@@ -4125,15 +4052,6 @@ var themes = {
|
|
|
4125
4052
|
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataDisplay_1.AxesChartDataDisplayBar, {
|
|
4126
4053
|
label: AxesChartColorAndStyle_1.default.label,
|
|
4127
4054
|
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
|
|
4128
|
-
label: i18n_1._('Line width (px)'),
|
|
4129
|
-
option: 'lineWidth',
|
|
4130
|
-
editor: 'editor.slider',
|
|
4131
|
-
editorProps: {
|
|
4132
|
-
min: 0.5,
|
|
4133
|
-
max: 8.0,
|
|
4134
|
-
step: 0.5
|
|
4135
|
-
}
|
|
4136
|
-
}], [{
|
|
4137
4055
|
label: i18n_1._('Series spacing'),
|
|
4138
4056
|
option: 'seriesSpacing',
|
|
4139
4057
|
editor: 'editor.number'
|
|
@@ -4143,7 +4061,7 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
4143
4061
|
editor: 'editor.number'
|
|
4144
4062
|
}]])
|
|
4145
4063
|
}, AxesChartLegend_1.default, {
|
|
4146
|
-
label:
|
|
4064
|
+
label: i18n_1._('X-axis grid and labels (vertical axis)'),
|
|
4147
4065
|
layout: [].concat(_toConsumableArray(AxesChartXGridAndLabels_1.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
4148
4066
|
label: i18n_1._('Number of time label parts'),
|
|
4149
4067
|
option: 'xAxisMaxLabelParts',
|
|
@@ -4194,7 +4112,9 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
4194
4112
|
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
4195
4113
|
}
|
|
4196
4114
|
}]])
|
|
4197
|
-
}, AxesChartYGridAndLabels_1.default,
|
|
4115
|
+
}, Object.assign(Object.assign({}, AxesChartYGridAndLabels_1.default), {
|
|
4116
|
+
label: i18n_1._('Y-axis grid and labels (horizontal axis)')
|
|
4117
|
+
}), AxesChartY2GridAndLabels_1.default];
|
|
4198
4118
|
/**
|
|
4199
4119
|
* visualization configuration
|
|
4200
4120
|
*/
|
|
@@ -4241,7 +4161,7 @@ var config = {
|
|
|
4241
4161
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
4242
4162
|
|
|
4243
4163
|
/***/ }),
|
|
4244
|
-
/*
|
|
4164
|
+
/* 164 */
|
|
4245
4165
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4246
4166
|
|
|
4247
4167
|
"use strict";
|
|
@@ -4252,11 +4172,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4252
4172
|
});
|
|
4253
4173
|
exports.convertToBarSCProperties = exports.mapToOldKey = exports.convertToStringValues = void 0;
|
|
4254
4174
|
|
|
4255
|
-
var lodash_1 = __webpack_require__(
|
|
4175
|
+
var lodash_1 = __webpack_require__(3);
|
|
4256
4176
|
|
|
4257
|
-
var propUtils_1 = __webpack_require__(
|
|
4177
|
+
var propUtils_1 = __webpack_require__(24);
|
|
4258
4178
|
|
|
4259
|
-
var chartingUtils_1 = __webpack_require__(
|
|
4179
|
+
var chartingUtils_1 = __webpack_require__(52); // map for key names which are either new or not present in SimpleXML options mapping
|
|
4260
4180
|
|
|
4261
4181
|
|
|
4262
4182
|
var barOptionsSCMapping = {
|