@splunk/visualizations 25.0.1 → 25.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/Area.config.js +141 -152
- package/Area.config.js.map +1 -1
- package/Area.js +334 -431
- package/Area.js.map +1 -1
- package/Bar.config.js +143 -148
- package/Bar.config.js.map +1 -1
- package/Bar.js +336 -427
- package/Bar.js.map +1 -1
- package/Bubble.config.js +130 -117
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +325 -398
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +86 -80
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +305 -385
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +139 -146
- package/Column.config.js.map +1 -1
- package/Column.js +332 -425
- package/Column.js.map +1 -1
- package/Ellipse.config.js +86 -80
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +288 -368
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +91 -85
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +296 -376
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +74 -74
- package/Image.config.js.map +1 -1
- package/Image.js +710 -798
- package/Image.js.map +1 -1
- package/Line.config.js +139 -137
- package/Line.config.js.map +1 -1
- package/Line.js +332 -416
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +112 -112
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +320 -405
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +101 -95
- package/Map.config.js.map +1 -1
- package/Map.js +472 -518
- package/Map.js.map +1 -1
- package/Markdown.config.js +113 -113
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +500 -574
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +192 -193
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1200 -1289
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +138 -138
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +292 -376
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +133 -133
- package/Pie.config.js.map +1 -1
- package/Pie.js +496 -584
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +139 -139
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +315 -399
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +267 -260
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +499 -580
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +150 -143
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +316 -390
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +130 -117
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +547 -623
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +119 -113
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +523 -604
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +19 -19
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +128 -120
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +343 -420
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +215 -178
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +668 -749
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +150 -151
- package/Table.config.js.map +1 -1
- package/Table.js +772 -854
- package/Table.js.map +1 -1
- package/common/Charting.js +11 -11
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +12 -12
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +8 -8
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +8 -8
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +51 -352
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +22 -22
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +4 -4
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +13 -13
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +17 -18
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +6 -86
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/{JSONSchemaUtils.js → mapUtils.js} +89 -29
- package/common/utils/mapUtils.js.map +1 -0
- package/common/utils/singleValueUtils.js +14 -12
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +8 -8
- package/common/utils/testHelper.js.map +1 -1
- package/common/withDashboardViz.js +120 -207
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +12 -12
- package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
- package/common/utils/JSONSchemaUtils.js.map +0 -1
package/Pie.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 = 230);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -109,39 +109,148 @@ module.exports = require("react");
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@
|
|
112
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 11:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
|
-
module.exports = require("@splunk/
|
|
119
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
124
|
-
/***/ (function(module, exports) {
|
|
123
|
+
/***/ 12:
|
|
124
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
"use strict";
|
|
127
127
|
|
|
128
|
-
/***/ }),
|
|
129
128
|
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
Object.defineProperty(exports, "__esModule", {
|
|
130
|
+
value: true
|
|
131
|
+
});
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
var React = __webpack_require__(1);
|
|
134
|
+
|
|
135
|
+
var styled_components_1 = __webpack_require__(4);
|
|
136
|
+
|
|
137
|
+
var SizeAwareWrapper_1 = __webpack_require__(19);
|
|
138
|
+
|
|
139
|
+
var style_1 = __webpack_require__(14);
|
|
140
|
+
|
|
141
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
142
|
+
|
|
143
|
+
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
144
|
+
var width = _ref.width;
|
|
145
|
+
return {
|
|
146
|
+
style: {
|
|
147
|
+
width: style_1.toPx(width)
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}).withConfig({
|
|
151
|
+
displayName: "FixedSizeContainer__Item",
|
|
152
|
+
componentId: "sc-1yhgpod-0"
|
|
153
|
+
})(["position:relative;background-color:", "};"], function (props) {
|
|
154
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
155
|
+
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
156
|
+
|
|
157
|
+
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
158
|
+
var width = _ref2.width,
|
|
159
|
+
height = _ref2.height;
|
|
160
|
+
return {
|
|
161
|
+
style: Object.assign(Object.assign({}, width && {
|
|
162
|
+
width: style_1.toPx(width)
|
|
163
|
+
}), height && {
|
|
164
|
+
height: style_1.toPx(height)
|
|
165
|
+
})
|
|
166
|
+
};
|
|
167
|
+
}).withConfig({
|
|
168
|
+
displayName: "FixedSizeContainer__FixSizeItem",
|
|
169
|
+
componentId: "sc-1yhgpod-1"
|
|
170
|
+
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
171
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
172
|
+
});
|
|
173
|
+
var ItemContent = styled_components_1.default.div.withConfig({
|
|
174
|
+
displayName: "FixedSizeContainer__ItemContent",
|
|
175
|
+
componentId: "sc-1yhgpod-2"
|
|
176
|
+
})(["position:relative;min-height:100px;width:100%;"]);
|
|
177
|
+
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
178
|
+
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
179
|
+
componentId: "sc-1yhgpod-3"
|
|
180
|
+
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
181
|
+
|
|
182
|
+
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
183
|
+
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
184
|
+
var width = props.width,
|
|
185
|
+
height = props.height,
|
|
186
|
+
backgroundColor = props.backgroundColor;
|
|
187
|
+
|
|
188
|
+
if (!height) {
|
|
189
|
+
return React.createElement(Item, {
|
|
190
|
+
"data-test": "item",
|
|
191
|
+
width: width,
|
|
192
|
+
backgroundColor: backgroundColor
|
|
193
|
+
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return React.createElement(FixSizeItem, {
|
|
197
|
+
"data-test": "fix-size-item",
|
|
198
|
+
"data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
|
|
199
|
+
width: width,
|
|
200
|
+
height: height,
|
|
201
|
+
backgroundColor: backgroundColor
|
|
202
|
+
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
203
|
+
var newWidth = _ref3.width,
|
|
204
|
+
newHeight = _ref3.height;
|
|
205
|
+
return React.createElement(Viz, Object.assign({}, props, {
|
|
206
|
+
width: newWidth,
|
|
207
|
+
height: newHeight
|
|
208
|
+
}));
|
|
209
|
+
})));
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
213
|
+
return FixedSizeContainer;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
exports.default = withFixedSizeContainer;
|
|
134
217
|
|
|
135
218
|
/***/ }),
|
|
136
219
|
|
|
137
220
|
/***/ 13:
|
|
138
|
-
/***/ (function(module, exports) {
|
|
221
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
139
222
|
|
|
140
|
-
|
|
223
|
+
"use strict";
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
Object.defineProperty(exports, "__esModule", {
|
|
227
|
+
value: true
|
|
228
|
+
});
|
|
229
|
+
exports.extendStaticWrapperProps = void 0;
|
|
230
|
+
/**
|
|
231
|
+
* @method extendStaticWrapperProps
|
|
232
|
+
* @param {Object} props
|
|
233
|
+
* @param {DashboardVizType} props.Wrapper
|
|
234
|
+
* @param {DashboardVizType} props.Visualization
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
238
|
+
var Wrapper = _ref.Wrapper,
|
|
239
|
+
Visualization = _ref.Visualization;
|
|
240
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
241
|
+
extendProperties.forEach(function (prop) {
|
|
242
|
+
if (Visualization[prop]) {
|
|
243
|
+
// eslint-disable-next-line no-param-reassign
|
|
244
|
+
Wrapper[prop] = Visualization[prop];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
141
250
|
|
|
142
251
|
/***/ }),
|
|
143
252
|
|
|
144
|
-
/***/
|
|
253
|
+
/***/ 136:
|
|
145
254
|
/***/ (function(module, exports, __webpack_require__) {
|
|
146
255
|
|
|
147
256
|
"use strict";
|
|
@@ -165,7 +274,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
165
274
|
});
|
|
166
275
|
exports.config = exports.themes = exports.showPlaceHolderIcon = exports.computeVizProps = exports.PieInnerSize = void 0;
|
|
167
276
|
|
|
168
|
-
var lodash_1 = __webpack_require__(
|
|
277
|
+
var lodash_1 = __webpack_require__(3); // Charting imports i18n which needs to be run to instantiate window globals in the
|
|
169
278
|
// eslint-disable-next-line import/order
|
|
170
279
|
|
|
171
280
|
|
|
@@ -175,17 +284,17 @@ var charting_bundle_1 = __webpack_require__(51);
|
|
|
175
284
|
|
|
176
285
|
var simpleXMLOptions_1 = __webpack_require__(61);
|
|
177
286
|
|
|
178
|
-
var config_1 = __webpack_require__(
|
|
287
|
+
var config_1 = __webpack_require__(231);
|
|
179
288
|
|
|
180
289
|
exports.config = config_1.default;
|
|
181
290
|
|
|
182
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
291
|
+
var withDashboardViz_1 = __webpack_require__(31);
|
|
183
292
|
|
|
184
|
-
var pieUtils_1 = __webpack_require__(
|
|
293
|
+
var pieUtils_1 = __webpack_require__(233);
|
|
185
294
|
|
|
186
295
|
var chartingUtils_1 = __webpack_require__(50);
|
|
187
296
|
|
|
188
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
297
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
189
298
|
|
|
190
299
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
191
300
|
exports.PieInnerSize = 0.7;
|
|
@@ -272,159 +381,299 @@ exports.default = Pie;
|
|
|
272
381
|
/***/ }),
|
|
273
382
|
|
|
274
383
|
/***/ 14:
|
|
275
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
276
|
-
|
|
277
|
-
"use strict";
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
Object.defineProperty(exports, "__esModule", {
|
|
281
|
-
value: true
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
var React = __webpack_require__(1);
|
|
285
|
-
|
|
286
|
-
var styled_components_1 = __webpack_require__(4);
|
|
287
|
-
|
|
288
|
-
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
289
|
-
|
|
290
|
-
var style_1 = __webpack_require__(15);
|
|
291
|
-
|
|
292
|
-
var colorUtils_1 = __webpack_require__(13);
|
|
293
|
-
|
|
294
|
-
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
295
|
-
var width = _ref.width;
|
|
296
|
-
return {
|
|
297
|
-
style: {
|
|
298
|
-
width: style_1.toPx(width)
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
}).withConfig({
|
|
302
|
-
displayName: "FixedSizeContainer__Item",
|
|
303
|
-
componentId: "sc-1yhgpod-0"
|
|
304
|
-
})(["position:relative;background-color:", "};"], function (props) {
|
|
305
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
306
|
-
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
307
|
-
|
|
308
|
-
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
309
|
-
var width = _ref2.width,
|
|
310
|
-
height = _ref2.height;
|
|
311
|
-
return {
|
|
312
|
-
style: Object.assign(Object.assign({}, width && {
|
|
313
|
-
width: style_1.toPx(width)
|
|
314
|
-
}), height && {
|
|
315
|
-
height: style_1.toPx(height)
|
|
316
|
-
})
|
|
317
|
-
};
|
|
318
|
-
}).withConfig({
|
|
319
|
-
displayName: "FixedSizeContainer__FixSizeItem",
|
|
320
|
-
componentId: "sc-1yhgpod-1"
|
|
321
|
-
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
322
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
323
|
-
});
|
|
324
|
-
var ItemContent = styled_components_1.default.div.withConfig({
|
|
325
|
-
displayName: "FixedSizeContainer__ItemContent",
|
|
326
|
-
componentId: "sc-1yhgpod-2"
|
|
327
|
-
})(["position:relative;min-height:100px;width:100%;"]);
|
|
328
|
-
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
329
|
-
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
330
|
-
componentId: "sc-1yhgpod-3"
|
|
331
|
-
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
332
|
-
|
|
333
|
-
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
334
|
-
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
335
|
-
var width = props.width,
|
|
336
|
-
height = props.height,
|
|
337
|
-
backgroundColor = props.backgroundColor;
|
|
338
|
-
|
|
339
|
-
if (!height) {
|
|
340
|
-
return React.createElement(Item, {
|
|
341
|
-
"data-test": "item",
|
|
342
|
-
width: width,
|
|
343
|
-
backgroundColor: backgroundColor
|
|
344
|
-
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
return React.createElement(FixSizeItem, {
|
|
348
|
-
"data-test": "fix-size-item",
|
|
349
|
-
"data-splunk-visualization-version": "25.0.1 - de10ad954",
|
|
350
|
-
width: width,
|
|
351
|
-
height: height,
|
|
352
|
-
backgroundColor: backgroundColor
|
|
353
|
-
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
354
|
-
var newWidth = _ref3.width,
|
|
355
|
-
newHeight = _ref3.height;
|
|
356
|
-
return React.createElement(Viz, Object.assign({}, props, {
|
|
357
|
-
width: newWidth,
|
|
358
|
-
height: newHeight
|
|
359
|
-
}));
|
|
360
|
-
})));
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
364
|
-
return FixedSizeContainer;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
exports.default = withFixedSizeContainer;
|
|
368
|
-
|
|
369
|
-
/***/ }),
|
|
370
|
-
|
|
371
|
-
/***/ 15:
|
|
372
384
|
/***/ (function(module, exports) {
|
|
373
385
|
|
|
374
386
|
module.exports = require("@splunk/visualizations-shared/style");
|
|
375
387
|
|
|
376
388
|
/***/ }),
|
|
377
389
|
|
|
378
|
-
/***/
|
|
390
|
+
/***/ 15:
|
|
379
391
|
/***/ (function(module, exports) {
|
|
380
392
|
|
|
381
393
|
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
382
394
|
|
|
383
395
|
/***/ }),
|
|
384
396
|
|
|
385
|
-
/***/
|
|
386
|
-
/***/ (function(module, exports) {
|
|
387
|
-
|
|
388
|
-
module.exports = require("@babel/runtime/helpers/createClass");
|
|
397
|
+
/***/ 16:
|
|
398
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
389
399
|
|
|
390
|
-
|
|
400
|
+
"use strict";
|
|
391
401
|
|
|
392
|
-
/***/ 18:
|
|
393
|
-
/***/ (function(module, exports) {
|
|
394
402
|
|
|
395
|
-
|
|
403
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
396
404
|
|
|
397
|
-
|
|
405
|
+
var _defineProperty = __webpack_require__(6);
|
|
398
406
|
|
|
399
|
-
|
|
400
|
-
|
|
407
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
408
|
+
var t = {};
|
|
401
409
|
|
|
402
|
-
|
|
410
|
+
for (var p in s) {
|
|
411
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
412
|
+
}
|
|
403
413
|
|
|
404
|
-
|
|
414
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
415
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
416
|
+
}
|
|
417
|
+
return t;
|
|
418
|
+
};
|
|
405
419
|
|
|
406
|
-
|
|
407
|
-
|
|
420
|
+
Object.defineProperty(exports, "__esModule", {
|
|
421
|
+
value: true
|
|
422
|
+
});
|
|
423
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
408
424
|
|
|
409
|
-
|
|
425
|
+
var lodash_1 = __webpack_require__(3);
|
|
410
426
|
|
|
411
|
-
|
|
427
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
412
428
|
|
|
413
|
-
|
|
414
|
-
/***/ (function(module, exports) {
|
|
429
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
415
430
|
|
|
416
|
-
|
|
431
|
+
var dynamicOptionsDSLType = {
|
|
432
|
+
type: 'string',
|
|
433
|
+
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
434
|
+
};
|
|
435
|
+
/**
|
|
436
|
+
* Helper function to extend an options schema with dynamic options DSL
|
|
437
|
+
* @param optionsSchema a visualization's options schema
|
|
438
|
+
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
442
|
+
var enhancedOptionsSchema = {};
|
|
443
|
+
Object.keys(optionsSchema).forEach(function (key) {
|
|
444
|
+
var _a = optionsSchema[key],
|
|
445
|
+
title = _a.title,
|
|
446
|
+
description = _a.description,
|
|
447
|
+
readOnly = _a.readOnly,
|
|
448
|
+
writeOnly = _a.writeOnly,
|
|
449
|
+
examples = _a.examples,
|
|
450
|
+
defaultValue = _a.default,
|
|
451
|
+
type = _a.type,
|
|
452
|
+
properties = _a.properties,
|
|
453
|
+
patternProperties = _a.patternProperties,
|
|
454
|
+
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
455
|
+
|
|
456
|
+
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
457
|
+
title: title
|
|
458
|
+
}), description !== undefined && {
|
|
459
|
+
description: description
|
|
460
|
+
}), readOnly !== undefined && {
|
|
461
|
+
readOnly: readOnly
|
|
462
|
+
}), writeOnly !== undefined && {
|
|
463
|
+
writeOnly: writeOnly
|
|
464
|
+
}), examples !== undefined && {
|
|
465
|
+
examples: examples
|
|
466
|
+
}), defaultValue !== undefined && {
|
|
467
|
+
default: defaultValue
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
if (type === 'object') {
|
|
471
|
+
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
472
|
+
type: type
|
|
473
|
+
}), properties && {
|
|
474
|
+
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
if (patternProperties) {
|
|
478
|
+
var enhancedPatternProperties = {};
|
|
479
|
+
Object.keys(patternProperties).forEach(function (opt) {
|
|
480
|
+
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
481
|
+
});
|
|
482
|
+
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
483
|
+
}
|
|
484
|
+
} else {
|
|
485
|
+
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
486
|
+
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
487
|
+
type: type
|
|
488
|
+
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
return enhancedOptionsSchema;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
496
|
+
/**
|
|
497
|
+
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
498
|
+
* this function also collapse all editor panels
|
|
499
|
+
* @param vizConfig a Visualization Config
|
|
500
|
+
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
501
|
+
* and containing `open: false` for all editor panels in editorConfig
|
|
502
|
+
*/
|
|
503
|
+
|
|
504
|
+
function enhanceConfig(vizConfig) {
|
|
505
|
+
var enhancedConfig = vizConfig;
|
|
506
|
+
|
|
507
|
+
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
508
|
+
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
512
|
+
return Object.assign(Object.assign({}, config), {
|
|
513
|
+
open: false
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
return enhancedConfig;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
exports.enhanceConfig = enhanceConfig;
|
|
520
|
+
/**
|
|
521
|
+
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
522
|
+
* Created for editor unit tests
|
|
523
|
+
* @param vizConfig a Visualization Config
|
|
524
|
+
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
525
|
+
*/
|
|
526
|
+
|
|
527
|
+
function uncollapseEditorConfig(vizConfig) {
|
|
528
|
+
var editorPanelUncollapsedConfig = vizConfig;
|
|
529
|
+
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
530
|
+
return Object.assign(Object.assign({}, config), {
|
|
531
|
+
open: true
|
|
532
|
+
});
|
|
533
|
+
});
|
|
534
|
+
return editorPanelUncollapsedConfig;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
538
|
+
|
|
539
|
+
function isDynamicOption(option) {
|
|
540
|
+
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
544
|
+
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
548
|
+
* 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
|
|
549
|
+
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
550
|
+
* 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
|
|
551
|
+
*
|
|
552
|
+
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
553
|
+
*/
|
|
554
|
+
|
|
555
|
+
function hasCompatibleContexts(vizContext, presetContext) {
|
|
556
|
+
var presetContextKeys = Object.keys(presetContext);
|
|
557
|
+
return presetContextKeys.every(function (contextKey) {
|
|
558
|
+
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
563
|
+
*/
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
567
|
+
var presetOptionKeys = Object.keys(presetOptions);
|
|
568
|
+
return presetOptionKeys.every(function (optionKey) {
|
|
569
|
+
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
574
|
+
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
575
|
+
*
|
|
576
|
+
* @param {Object} vizContext - the current vizContext definition
|
|
577
|
+
* @param {Object} vizOptions - the current vizOptions definition
|
|
578
|
+
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
579
|
+
*/
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
583
|
+
return presets.find(function (preset) {
|
|
584
|
+
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
585
|
+
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
586
|
+
var presetContextKeys = Object.keys(presetContext);
|
|
587
|
+
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
588
|
+
// if not, then the preset is invalid in config.ts
|
|
589
|
+
|
|
590
|
+
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
591
|
+
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
exports.getInitialPreset = getInitialPreset;
|
|
596
|
+
/**
|
|
597
|
+
* generates number precision values for a Select editor
|
|
598
|
+
*
|
|
599
|
+
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
600
|
+
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
601
|
+
*/
|
|
602
|
+
|
|
603
|
+
function generatePrecisionValues(numPrecisionValues) {
|
|
604
|
+
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
605
|
+
return {
|
|
606
|
+
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
607
|
+
value: i
|
|
608
|
+
};
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
exports.generatePrecisionValues = generatePrecisionValues;
|
|
613
|
+
/**
|
|
614
|
+
* insert layout in layout array, return a new layout array instead of updating the original
|
|
615
|
+
*
|
|
616
|
+
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
617
|
+
* @param {Number} index - the index to insert layout item(s)
|
|
618
|
+
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
619
|
+
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
620
|
+
*/
|
|
621
|
+
|
|
622
|
+
var insertLayout = function insertLayout(layout, index) {
|
|
623
|
+
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
624
|
+
layoutItems[_key - 2] = arguments[_key];
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
exports.insertLayout = insertLayout;
|
|
631
|
+
|
|
632
|
+
/***/ }),
|
|
633
|
+
|
|
634
|
+
/***/ 18:
|
|
635
|
+
/***/ (function(module, exports) {
|
|
636
|
+
|
|
637
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
638
|
+
|
|
639
|
+
/***/ }),
|
|
640
|
+
|
|
641
|
+
/***/ 19:
|
|
642
|
+
/***/ (function(module, exports) {
|
|
643
|
+
|
|
644
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
645
|
+
|
|
646
|
+
/***/ }),
|
|
647
|
+
|
|
648
|
+
/***/ 2:
|
|
649
|
+
/***/ (function(module, exports) {
|
|
650
|
+
|
|
651
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
652
|
+
|
|
653
|
+
/***/ }),
|
|
654
|
+
|
|
655
|
+
/***/ 21:
|
|
656
|
+
/***/ (function(module, exports) {
|
|
657
|
+
|
|
658
|
+
module.exports = require("@splunk/themes/pick");
|
|
417
659
|
|
|
418
660
|
/***/ }),
|
|
419
661
|
|
|
420
662
|
/***/ 22:
|
|
421
663
|
/***/ (function(module, exports) {
|
|
422
664
|
|
|
665
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
666
|
+
|
|
667
|
+
/***/ }),
|
|
668
|
+
|
|
669
|
+
/***/ 23:
|
|
670
|
+
/***/ (function(module, exports) {
|
|
671
|
+
|
|
423
672
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
424
673
|
|
|
425
674
|
/***/ }),
|
|
426
675
|
|
|
427
|
-
/***/
|
|
676
|
+
/***/ 230:
|
|
428
677
|
/***/ (function(module, exports, __webpack_require__) {
|
|
429
678
|
|
|
430
679
|
"use strict";
|
|
@@ -454,9 +703,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
454
703
|
});
|
|
455
704
|
exports.default = void 0;
|
|
456
705
|
|
|
457
|
-
__exportStar(__webpack_require__(
|
|
706
|
+
__exportStar(__webpack_require__(136), exports);
|
|
458
707
|
|
|
459
|
-
var Pie_1 = __webpack_require__(
|
|
708
|
+
var Pie_1 = __webpack_require__(136);
|
|
460
709
|
|
|
461
710
|
Object.defineProperty(exports, "default", {
|
|
462
711
|
enumerable: true,
|
|
@@ -467,7 +716,7 @@ Object.defineProperty(exports, "default", {
|
|
|
467
716
|
|
|
468
717
|
/***/ }),
|
|
469
718
|
|
|
470
|
-
/***/
|
|
719
|
+
/***/ 231:
|
|
471
720
|
/***/ (function(module, exports, __webpack_require__) {
|
|
472
721
|
|
|
473
722
|
"use strict";
|
|
@@ -477,25 +726,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
477
726
|
value: true
|
|
478
727
|
});
|
|
479
728
|
|
|
480
|
-
var ChartPie_1 = __webpack_require__(
|
|
729
|
+
var ChartPie_1 = __webpack_require__(232);
|
|
481
730
|
|
|
482
731
|
var placeholders_1 = __webpack_require__(45);
|
|
483
732
|
|
|
484
|
-
var i18n_1 = __webpack_require__(
|
|
733
|
+
var i18n_1 = __webpack_require__(2);
|
|
485
734
|
|
|
486
|
-
var schemaUtils_1 = __webpack_require__(
|
|
735
|
+
var schemaUtils_1 = __webpack_require__(15);
|
|
487
736
|
|
|
488
737
|
var visualization_color_palettes_1 = __webpack_require__(44);
|
|
489
738
|
|
|
490
|
-
var pick_1 = __webpack_require__(
|
|
739
|
+
var pick_1 = __webpack_require__(21);
|
|
491
740
|
|
|
492
|
-
var variables_1 = __webpack_require__(
|
|
741
|
+
var variables_1 = __webpack_require__(8);
|
|
493
742
|
|
|
494
743
|
var VizBehavior_1 = __webpack_require__(5);
|
|
495
744
|
|
|
496
|
-
var VizCategory_1 = __webpack_require__(
|
|
745
|
+
var VizCategory_1 = __webpack_require__(30);
|
|
497
746
|
|
|
498
|
-
var configUtils_1 = __webpack_require__(
|
|
747
|
+
var configUtils_1 = __webpack_require__(16);
|
|
499
748
|
|
|
500
749
|
var BackgroundColor_1 = __webpack_require__(49);
|
|
501
750
|
|
|
@@ -526,7 +775,7 @@ var optionsSchema = {
|
|
|
526
775
|
backgroundColor: {
|
|
527
776
|
default: '> themes.defaultBackgroundColor',
|
|
528
777
|
description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
529
|
-
pattern: schemaUtils_1.
|
|
778
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
530
779
|
type: 'string'
|
|
531
780
|
},
|
|
532
781
|
collapseLabel: {
|
|
@@ -700,14 +949,14 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
700
949
|
|
|
701
950
|
/***/ }),
|
|
702
951
|
|
|
703
|
-
/***/
|
|
952
|
+
/***/ 232:
|
|
704
953
|
/***/ (function(module, exports) {
|
|
705
954
|
|
|
706
955
|
module.exports = require("@splunk/react-icons/ChartPie");
|
|
707
956
|
|
|
708
957
|
/***/ }),
|
|
709
958
|
|
|
710
|
-
/***/
|
|
959
|
+
/***/ 233:
|
|
711
960
|
/***/ (function(module, exports, __webpack_require__) {
|
|
712
961
|
|
|
713
962
|
"use strict";
|
|
@@ -731,15 +980,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
731
980
|
});
|
|
732
981
|
exports.allInvalidDataValues = exports.invalidOptionField = exports.getPieOptionFieldIndex = exports.getPieMergedOptions = exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay = exports.convertToStringValues = void 0;
|
|
733
982
|
|
|
734
|
-
var lodash_1 = __webpack_require__(
|
|
983
|
+
var lodash_1 = __webpack_require__(3);
|
|
735
984
|
|
|
736
|
-
var propUtils_1 = __webpack_require__(
|
|
985
|
+
var propUtils_1 = __webpack_require__(23);
|
|
737
986
|
|
|
738
|
-
var dsl_1 = __webpack_require__(
|
|
987
|
+
var dsl_1 = __webpack_require__(88);
|
|
739
988
|
|
|
740
|
-
var
|
|
989
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
741
990
|
|
|
742
|
-
var
|
|
991
|
+
var JSONSchemaUtils_1 = __webpack_require__(25); // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
|
|
743
992
|
// map for key names which are either new or not present in SimpleXML options mapping
|
|
744
993
|
|
|
745
994
|
|
|
@@ -900,47 +1149,20 @@ exports.allInvalidDataValues = allInvalidDataValues;
|
|
|
900
1149
|
/***/ }),
|
|
901
1150
|
|
|
902
1151
|
/***/ 24:
|
|
903
|
-
/***/ (function(module, exports
|
|
904
|
-
|
|
905
|
-
"use strict";
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
Object.defineProperty(exports, "__esModule", {
|
|
909
|
-
value: true
|
|
910
|
-
});
|
|
911
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
912
|
-
|
|
913
|
-
var lodash_1 = __webpack_require__(2);
|
|
914
|
-
|
|
915
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
916
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
917
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
918
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
919
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
920
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
921
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
922
|
-
|
|
923
|
-
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
924
|
-
accum[k] = nestedSchema;
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
return accum;
|
|
929
|
-
}, {});
|
|
930
|
-
};
|
|
1152
|
+
/***/ (function(module, exports) {
|
|
931
1153
|
|
|
932
|
-
exports
|
|
1154
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
933
1155
|
|
|
934
1156
|
/***/ }),
|
|
935
1157
|
|
|
936
1158
|
/***/ 25:
|
|
937
1159
|
/***/ (function(module, exports) {
|
|
938
1160
|
|
|
939
|
-
module.exports = require("@
|
|
1161
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
940
1162
|
|
|
941
1163
|
/***/ }),
|
|
942
1164
|
|
|
943
|
-
/***/
|
|
1165
|
+
/***/ 27:
|
|
944
1166
|
/***/ (function(module, exports, __webpack_require__) {
|
|
945
1167
|
|
|
946
1168
|
"use strict";
|
|
@@ -955,13 +1177,13 @@ var React = __webpack_require__(1);
|
|
|
955
1177
|
|
|
956
1178
|
var T = __webpack_require__(0);
|
|
957
1179
|
|
|
958
|
-
var lodash_1 = __webpack_require__(
|
|
1180
|
+
var lodash_1 = __webpack_require__(3);
|
|
959
1181
|
|
|
960
|
-
var i18n_1 = __webpack_require__(
|
|
1182
|
+
var i18n_1 = __webpack_require__(2);
|
|
961
1183
|
|
|
962
|
-
var Message_1 = __webpack_require__(
|
|
1184
|
+
var Message_1 = __webpack_require__(9);
|
|
963
1185
|
|
|
964
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1186
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
965
1187
|
/**
|
|
966
1188
|
* @method shouldShowIconPlaceholder
|
|
967
1189
|
* @param {object} dataSources
|
|
@@ -1032,13 +1254,13 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
1032
1254
|
|
|
1033
1255
|
/***/ }),
|
|
1034
1256
|
|
|
1035
|
-
/***/
|
|
1257
|
+
/***/ 28:
|
|
1036
1258
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1037
1259
|
|
|
1038
1260
|
"use strict";
|
|
1039
1261
|
|
|
1040
1262
|
|
|
1041
|
-
var _defineProperty = __webpack_require__(
|
|
1263
|
+
var _defineProperty = __webpack_require__(6);
|
|
1042
1264
|
|
|
1043
1265
|
Object.defineProperty(exports, "__esModule", {
|
|
1044
1266
|
value: true
|
|
@@ -1047,9 +1269,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
|
1047
1269
|
|
|
1048
1270
|
var T = __webpack_require__(0);
|
|
1049
1271
|
|
|
1050
|
-
var lodash_1 = __webpack_require__(
|
|
1272
|
+
var lodash_1 = __webpack_require__(3);
|
|
1051
1273
|
|
|
1052
|
-
var DataSource_1 = __webpack_require__(
|
|
1274
|
+
var DataSource_1 = __webpack_require__(38);
|
|
1053
1275
|
|
|
1054
1276
|
exports.SortParamsPropTypes = T.shape({
|
|
1055
1277
|
currentSortKey: T.string,
|
|
@@ -1103,7 +1325,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1103
1325
|
|
|
1104
1326
|
/***/ }),
|
|
1105
1327
|
|
|
1106
|
-
/***/
|
|
1328
|
+
/***/ 29:
|
|
1107
1329
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1108
1330
|
|
|
1109
1331
|
"use strict";
|
|
@@ -1116,7 +1338,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
|
1116
1338
|
|
|
1117
1339
|
var T = __webpack_require__(0);
|
|
1118
1340
|
|
|
1119
|
-
var lodash_1 = __webpack_require__(
|
|
1341
|
+
var lodash_1 = __webpack_require__(3);
|
|
1120
1342
|
|
|
1121
1343
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1122
1344
|
isPaging: T.bool,
|
|
@@ -1168,7 +1390,14 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1168
1390
|
|
|
1169
1391
|
/***/ }),
|
|
1170
1392
|
|
|
1171
|
-
/***/
|
|
1393
|
+
/***/ 3:
|
|
1394
|
+
/***/ (function(module, exports) {
|
|
1395
|
+
|
|
1396
|
+
module.exports = require("lodash");
|
|
1397
|
+
|
|
1398
|
+
/***/ }),
|
|
1399
|
+
|
|
1400
|
+
/***/ 30:
|
|
1172
1401
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1173
1402
|
|
|
1174
1403
|
"use strict";
|
|
@@ -1197,14 +1426,7 @@ var VizCategory;
|
|
|
1197
1426
|
|
|
1198
1427
|
/***/ }),
|
|
1199
1428
|
|
|
1200
|
-
/***/
|
|
1201
|
-
/***/ (function(module, exports) {
|
|
1202
|
-
|
|
1203
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
1204
|
-
|
|
1205
|
-
/***/ }),
|
|
1206
|
-
|
|
1207
|
-
/***/ 30:
|
|
1429
|
+
/***/ 31:
|
|
1208
1430
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1209
1431
|
|
|
1210
1432
|
"use strict";
|
|
@@ -1216,39 +1438,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1216
1438
|
|
|
1217
1439
|
var React = __webpack_require__(1);
|
|
1218
1440
|
|
|
1219
|
-
var lodash_1 = __webpack_require__(
|
|
1441
|
+
var lodash_1 = __webpack_require__(3);
|
|
1220
1442
|
|
|
1221
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1443
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(32);
|
|
1222
1444
|
|
|
1223
|
-
var Options_1 = __webpack_require__(
|
|
1445
|
+
var Options_1 = __webpack_require__(33);
|
|
1224
1446
|
|
|
1225
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1447
|
+
var SanitizeProps_1 = __webpack_require__(34);
|
|
1226
1448
|
|
|
1227
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1449
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
1228
1450
|
|
|
1229
|
-
var moment_1 = __webpack_require__(
|
|
1451
|
+
var moment_1 = __webpack_require__(35);
|
|
1230
1452
|
|
|
1231
1453
|
var styled_components_1 = __webpack_require__(4);
|
|
1232
1454
|
|
|
1233
|
-
var
|
|
1455
|
+
var hocUtils_1 = __webpack_require__(24);
|
|
1234
1456
|
|
|
1235
|
-
var
|
|
1457
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
1236
1458
|
|
|
1237
|
-
var
|
|
1459
|
+
var SplunkVisualization_1 = __webpack_require__(36);
|
|
1238
1460
|
|
|
1239
|
-
var
|
|
1461
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
1240
1462
|
|
|
1241
|
-
var
|
|
1463
|
+
var getSorting_1 = __webpack_require__(28);
|
|
1242
1464
|
|
|
1243
|
-
var
|
|
1465
|
+
var getPagination_1 = __webpack_require__(29);
|
|
1244
1466
|
|
|
1245
|
-
var
|
|
1467
|
+
var useDeepMemo_1 = __webpack_require__(39);
|
|
1246
1468
|
|
|
1247
|
-
var
|
|
1469
|
+
var MissingPropsMessage_1 = __webpack_require__(40);
|
|
1248
1470
|
|
|
1249
|
-
var
|
|
1471
|
+
var withEditModeCover_1 = __webpack_require__(41);
|
|
1250
1472
|
|
|
1251
|
-
var
|
|
1473
|
+
var withPlaceholder_1 = __webpack_require__(42);
|
|
1252
1474
|
/**
|
|
1253
1475
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1254
1476
|
* @param {DashboardVizOpts} opts
|
|
@@ -1450,41 +1672,41 @@ exports.default = withDashboardViz;
|
|
|
1450
1672
|
|
|
1451
1673
|
/***/ }),
|
|
1452
1674
|
|
|
1453
|
-
/***/
|
|
1675
|
+
/***/ 32:
|
|
1454
1676
|
/***/ (function(module, exports) {
|
|
1455
1677
|
|
|
1456
1678
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1457
1679
|
|
|
1458
1680
|
/***/ }),
|
|
1459
1681
|
|
|
1460
|
-
/***/
|
|
1682
|
+
/***/ 33:
|
|
1461
1683
|
/***/ (function(module, exports) {
|
|
1462
1684
|
|
|
1463
1685
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1464
1686
|
|
|
1465
1687
|
/***/ }),
|
|
1466
1688
|
|
|
1467
|
-
/***/
|
|
1689
|
+
/***/ 34:
|
|
1468
1690
|
/***/ (function(module, exports) {
|
|
1469
1691
|
|
|
1470
1692
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1471
1693
|
|
|
1472
1694
|
/***/ }),
|
|
1473
1695
|
|
|
1474
|
-
/***/
|
|
1696
|
+
/***/ 35:
|
|
1475
1697
|
/***/ (function(module, exports) {
|
|
1476
1698
|
|
|
1477
1699
|
module.exports = require("@splunk/moment");
|
|
1478
1700
|
|
|
1479
1701
|
/***/ }),
|
|
1480
1702
|
|
|
1481
|
-
/***/
|
|
1703
|
+
/***/ 36:
|
|
1482
1704
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1483
1705
|
|
|
1484
1706
|
"use strict";
|
|
1485
1707
|
|
|
1486
1708
|
|
|
1487
|
-
var _classCallCheck = __webpack_require__(
|
|
1709
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1488
1710
|
|
|
1489
1711
|
Object.defineProperty(exports, "__esModule", {
|
|
1490
1712
|
value: true
|
|
@@ -1494,9 +1716,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
|
1494
1716
|
|
|
1495
1717
|
var T = __webpack_require__(0);
|
|
1496
1718
|
|
|
1497
|
-
var lodash_1 = __webpack_require__(
|
|
1719
|
+
var lodash_1 = __webpack_require__(3);
|
|
1498
1720
|
|
|
1499
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1721
|
+
var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1500
1722
|
|
|
1501
1723
|
|
|
1502
1724
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1630,15 +1852,15 @@ exports.default = SplunkVisualization;
|
|
|
1630
1852
|
|
|
1631
1853
|
/***/ }),
|
|
1632
1854
|
|
|
1633
|
-
/***/
|
|
1855
|
+
/***/ 37:
|
|
1634
1856
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1635
1857
|
|
|
1636
1858
|
"use strict";
|
|
1637
1859
|
|
|
1638
1860
|
|
|
1639
|
-
var _classCallCheck = __webpack_require__(
|
|
1861
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1640
1862
|
|
|
1641
|
-
var _createClass = __webpack_require__(
|
|
1863
|
+
var _createClass = __webpack_require__(18);
|
|
1642
1864
|
|
|
1643
1865
|
Object.defineProperty(exports, "__esModule", {
|
|
1644
1866
|
value: true
|
|
@@ -1668,7 +1890,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1668
1890
|
|
|
1669
1891
|
/***/ }),
|
|
1670
1892
|
|
|
1671
|
-
/***/
|
|
1893
|
+
/***/ 38:
|
|
1672
1894
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1673
1895
|
|
|
1674
1896
|
"use strict";
|
|
@@ -1682,7 +1904,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1682
1904
|
|
|
1683
1905
|
/***/ }),
|
|
1684
1906
|
|
|
1685
|
-
/***/
|
|
1907
|
+
/***/ 39:
|
|
1686
1908
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1687
1909
|
|
|
1688
1910
|
"use strict";
|
|
@@ -1695,7 +1917,7 @@ exports.useDeepMemo = void 0;
|
|
|
1695
1917
|
|
|
1696
1918
|
var react_1 = __webpack_require__(1);
|
|
1697
1919
|
|
|
1698
|
-
var lodash_1 = __webpack_require__(
|
|
1920
|
+
var lodash_1 = __webpack_require__(3);
|
|
1699
1921
|
/**
|
|
1700
1922
|
* This hook evaluates and stores the result of a passed function and only
|
|
1701
1923
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -1728,7 +1950,14 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1728
1950
|
|
|
1729
1951
|
/***/ }),
|
|
1730
1952
|
|
|
1731
|
-
/***/
|
|
1953
|
+
/***/ 4:
|
|
1954
|
+
/***/ (function(module, exports) {
|
|
1955
|
+
|
|
1956
|
+
module.exports = require("styled-components");
|
|
1957
|
+
|
|
1958
|
+
/***/ }),
|
|
1959
|
+
|
|
1960
|
+
/***/ 40:
|
|
1732
1961
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1733
1962
|
|
|
1734
1963
|
"use strict";
|
|
@@ -1743,11 +1972,11 @@ var React = __webpack_require__(1);
|
|
|
1743
1972
|
|
|
1744
1973
|
var T = __webpack_require__(0);
|
|
1745
1974
|
|
|
1746
|
-
var i18n_1 = __webpack_require__(
|
|
1975
|
+
var i18n_1 = __webpack_require__(2);
|
|
1747
1976
|
|
|
1748
|
-
var Message_1 = __webpack_require__(
|
|
1977
|
+
var Message_1 = __webpack_require__(9);
|
|
1749
1978
|
|
|
1750
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1979
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1751
1980
|
/**
|
|
1752
1981
|
* @method isMissing
|
|
1753
1982
|
* @param {any} v
|
|
@@ -1809,14 +2038,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
1809
2038
|
|
|
1810
2039
|
/***/ }),
|
|
1811
2040
|
|
|
1812
|
-
/***/
|
|
1813
|
-
/***/ (function(module, exports) {
|
|
1814
|
-
|
|
1815
|
-
module.exports = require("styled-components");
|
|
1816
|
-
|
|
1817
|
-
/***/ }),
|
|
1818
|
-
|
|
1819
|
-
/***/ 40:
|
|
2041
|
+
/***/ 41:
|
|
1820
2042
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1821
2043
|
|
|
1822
2044
|
"use strict";
|
|
@@ -1830,14 +2052,14 @@ var React = __webpack_require__(1);
|
|
|
1830
2052
|
|
|
1831
2053
|
var styled_components_1 = __webpack_require__(4);
|
|
1832
2054
|
|
|
1833
|
-
var hocUtils_1 = __webpack_require__(
|
|
2055
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1834
2056
|
|
|
1835
2057
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1836
2058
|
displayName: "withEditModeCover__Cover",
|
|
1837
2059
|
componentId: "sc-1gsbnxb-0"
|
|
1838
2060
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1839
2061
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1840
|
-
'data-splunk-visualization-version': "25.0
|
|
2062
|
+
'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
|
|
1841
2063
|
}).withConfig({
|
|
1842
2064
|
displayName: "withEditModeCover__Blocker",
|
|
1843
2065
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1869,13 +2091,6 @@ exports.default = withEditModeCover;
|
|
|
1869
2091
|
|
|
1870
2092
|
/***/ }),
|
|
1871
2093
|
|
|
1872
|
-
/***/ 41:
|
|
1873
|
-
/***/ (function(module, exports) {
|
|
1874
|
-
|
|
1875
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
1876
|
-
|
|
1877
|
-
/***/ }),
|
|
1878
|
-
|
|
1879
2094
|
/***/ 42:
|
|
1880
2095
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1881
2096
|
|
|
@@ -1888,15 +2103,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1888
2103
|
|
|
1889
2104
|
var React = __webpack_require__(1);
|
|
1890
2105
|
|
|
1891
|
-
var colorUtils_1 = __webpack_require__(
|
|
2106
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1892
2107
|
|
|
1893
|
-
var variables_1 = __webpack_require__(
|
|
2108
|
+
var variables_1 = __webpack_require__(8);
|
|
1894
2109
|
|
|
1895
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2110
|
+
var IconPlaceholder_1 = __webpack_require__(27);
|
|
1896
2111
|
|
|
1897
2112
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1898
2113
|
|
|
1899
|
-
var hocUtils_1 = __webpack_require__(
|
|
2114
|
+
var hocUtils_1 = __webpack_require__(13);
|
|
1900
2115
|
|
|
1901
2116
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1902
2117
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1965,7 +2180,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1965
2180
|
value: true
|
|
1966
2181
|
});
|
|
1967
2182
|
|
|
1968
|
-
var i18n_1 = __webpack_require__(
|
|
2183
|
+
var i18n_1 = __webpack_require__(2);
|
|
1969
2184
|
|
|
1970
2185
|
var background = function background(_ref) {
|
|
1971
2186
|
var label = _ref.label,
|
|
@@ -2030,7 +2245,7 @@ var VizBehavior;
|
|
|
2030
2245
|
"use strict";
|
|
2031
2246
|
|
|
2032
2247
|
|
|
2033
|
-
var _toConsumableArray = __webpack_require__(
|
|
2248
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2034
2249
|
|
|
2035
2250
|
var __rest = this && this.__rest || function (s, e) {
|
|
2036
2251
|
var t = {};
|
|
@@ -2050,7 +2265,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2050
2265
|
});
|
|
2051
2266
|
exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
|
|
2052
2267
|
|
|
2053
|
-
var lodash_1 = __webpack_require__(
|
|
2268
|
+
var lodash_1 = __webpack_require__(3);
|
|
2054
2269
|
/**
|
|
2055
2270
|
* Get formatted annotations
|
|
2056
2271
|
* @method getAnnotations
|
|
@@ -2265,9 +2480,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2265
2480
|
exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
|
|
2266
2481
|
/* eslint-disable react/no-unused-prop-types */
|
|
2267
2482
|
|
|
2268
|
-
var lodash_1 = __webpack_require__(
|
|
2483
|
+
var lodash_1 = __webpack_require__(3);
|
|
2269
2484
|
|
|
2270
|
-
var i18n_1 = __webpack_require__(
|
|
2485
|
+
var i18n_1 = __webpack_require__(2);
|
|
2271
2486
|
|
|
2272
2487
|
var visualization_color_palettes_1 = __webpack_require__(44);
|
|
2273
2488
|
|
|
@@ -2284,13 +2499,13 @@ __webpack_require__(57); // fixme, @splunk/charting should be refactor to use lo
|
|
|
2284
2499
|
|
|
2285
2500
|
var charting_bundle_1 = __webpack_require__(51);
|
|
2286
2501
|
|
|
2287
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2502
|
+
var TimezoneContext_1 = __webpack_require__(22);
|
|
2288
2503
|
|
|
2289
|
-
var style_1 = __webpack_require__(
|
|
2504
|
+
var style_1 = __webpack_require__(14);
|
|
2290
2505
|
|
|
2291
2506
|
var styled_components_1 = __webpack_require__(4);
|
|
2292
2507
|
|
|
2293
|
-
var Message_1 = __webpack_require__(
|
|
2508
|
+
var Message_1 = __webpack_require__(9);
|
|
2294
2509
|
|
|
2295
2510
|
var useSplunkTheme_1 = __webpack_require__(58);
|
|
2296
2511
|
|
|
@@ -2705,239 +2920,9 @@ module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
|
2705
2920
|
/***/ }),
|
|
2706
2921
|
|
|
2707
2922
|
/***/ 6:
|
|
2708
|
-
/***/ (function(module, exports
|
|
2709
|
-
|
|
2710
|
-
"use strict";
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
var _toConsumableArray = __webpack_require__(9);
|
|
2714
|
-
|
|
2715
|
-
var _defineProperty = __webpack_require__(7);
|
|
2716
|
-
|
|
2717
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
2718
|
-
var t = {};
|
|
2719
|
-
|
|
2720
|
-
for (var p in s) {
|
|
2721
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
2722
|
-
}
|
|
2723
|
-
|
|
2724
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2725
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
2726
|
-
}
|
|
2727
|
-
return t;
|
|
2728
|
-
};
|
|
2729
|
-
|
|
2730
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2731
|
-
value: true
|
|
2732
|
-
});
|
|
2733
|
-
exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
2734
|
-
|
|
2735
|
-
var lodash_1 = __webpack_require__(2);
|
|
2736
|
-
|
|
2737
|
-
var schemaUtils_1 = __webpack_require__(16);
|
|
2738
|
-
|
|
2739
|
-
var VizBehavior_1 = __webpack_require__(5);
|
|
2740
|
-
|
|
2741
|
-
var dynamicOptionsDSLType = {
|
|
2742
|
-
type: 'string',
|
|
2743
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
2744
|
-
};
|
|
2745
|
-
/**
|
|
2746
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
2747
|
-
* @param optionsSchema a visualization's options schema
|
|
2748
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
2749
|
-
*/
|
|
2750
|
-
|
|
2751
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
2752
|
-
var enhancedOptionsSchema = {};
|
|
2753
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
2754
|
-
var _a = optionsSchema[key],
|
|
2755
|
-
title = _a.title,
|
|
2756
|
-
description = _a.description,
|
|
2757
|
-
readOnly = _a.readOnly,
|
|
2758
|
-
writeOnly = _a.writeOnly,
|
|
2759
|
-
examples = _a.examples,
|
|
2760
|
-
defaultValue = _a.default,
|
|
2761
|
-
type = _a.type,
|
|
2762
|
-
properties = _a.properties,
|
|
2763
|
-
patternProperties = _a.patternProperties,
|
|
2764
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
2765
|
-
|
|
2766
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
2767
|
-
title: title
|
|
2768
|
-
}), description !== undefined && {
|
|
2769
|
-
description: description
|
|
2770
|
-
}), readOnly !== undefined && {
|
|
2771
|
-
readOnly: readOnly
|
|
2772
|
-
}), writeOnly !== undefined && {
|
|
2773
|
-
writeOnly: writeOnly
|
|
2774
|
-
}), examples !== undefined && {
|
|
2775
|
-
examples: examples
|
|
2776
|
-
}), defaultValue !== undefined && {
|
|
2777
|
-
default: defaultValue
|
|
2778
|
-
});
|
|
2779
|
-
|
|
2780
|
-
if (type === 'object') {
|
|
2781
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
2782
|
-
type: type
|
|
2783
|
-
}), properties && {
|
|
2784
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
2785
|
-
});
|
|
2786
|
-
|
|
2787
|
-
if (patternProperties) {
|
|
2788
|
-
var enhancedPatternProperties = {};
|
|
2789
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
2790
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
2791
|
-
});
|
|
2792
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
2793
|
-
}
|
|
2794
|
-
} else {
|
|
2795
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
2796
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
2797
|
-
type: type
|
|
2798
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
2799
|
-
});
|
|
2800
|
-
}
|
|
2801
|
-
});
|
|
2802
|
-
return enhancedOptionsSchema;
|
|
2803
|
-
}
|
|
2804
|
-
|
|
2805
|
-
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
2806
|
-
/**
|
|
2807
|
-
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
2808
|
-
* this function also collapse all editor panels
|
|
2809
|
-
* @param vizConfig a Visualization Config
|
|
2810
|
-
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
2811
|
-
* and containing `open: false` for all editor panels in editorConfig
|
|
2812
|
-
*/
|
|
2813
|
-
|
|
2814
|
-
function enhanceConfig(vizConfig) {
|
|
2815
|
-
var enhancedConfig = vizConfig;
|
|
2816
|
-
|
|
2817
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
2818
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
2822
|
-
return Object.assign(Object.assign({}, config), {
|
|
2823
|
-
open: false
|
|
2824
|
-
});
|
|
2825
|
-
});
|
|
2826
|
-
return enhancedConfig;
|
|
2827
|
-
}
|
|
2828
|
-
|
|
2829
|
-
exports.enhanceConfig = enhanceConfig;
|
|
2830
|
-
/**
|
|
2831
|
-
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
2832
|
-
* Created for editor unit tests
|
|
2833
|
-
* @param vizConfig a Visualization Config
|
|
2834
|
-
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
2835
|
-
*/
|
|
2836
|
-
|
|
2837
|
-
function uncollapseEditorConfig(vizConfig) {
|
|
2838
|
-
var editorPanelUncollapsedConfig = vizConfig;
|
|
2839
|
-
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
2840
|
-
return Object.assign(Object.assign({}, config), {
|
|
2841
|
-
open: true
|
|
2842
|
-
});
|
|
2843
|
-
});
|
|
2844
|
-
return editorPanelUncollapsedConfig;
|
|
2845
|
-
}
|
|
2846
|
-
|
|
2847
|
-
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
2848
|
-
|
|
2849
|
-
function isDynamicOption(option) {
|
|
2850
|
-
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
2851
|
-
}
|
|
2852
|
-
|
|
2853
|
-
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
2854
|
-
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
2855
|
-
|
|
2856
|
-
/**
|
|
2857
|
-
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
2858
|
-
* 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
|
|
2859
|
-
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
2860
|
-
* 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
|
|
2861
|
-
*
|
|
2862
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
2863
|
-
*/
|
|
2864
|
-
|
|
2865
|
-
function hasCompatibleContexts(vizContext, presetContext) {
|
|
2866
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
2867
|
-
return presetContextKeys.every(function (contextKey) {
|
|
2868
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
2869
|
-
});
|
|
2870
|
-
}
|
|
2871
|
-
/**
|
|
2872
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
2873
|
-
*/
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
2877
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
2878
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
2879
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
2880
|
-
});
|
|
2881
|
-
}
|
|
2882
|
-
/**
|
|
2883
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
2884
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
2885
|
-
*
|
|
2886
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
2887
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
2888
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
2889
|
-
*/
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
2893
|
-
return presets.find(function (preset) {
|
|
2894
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
2895
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
2896
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
2897
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
2898
|
-
// if not, then the preset is invalid in config.ts
|
|
2899
|
-
|
|
2900
|
-
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
2901
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
2902
|
-
});
|
|
2903
|
-
}
|
|
2904
|
-
|
|
2905
|
-
exports.getInitialPreset = getInitialPreset;
|
|
2906
|
-
/**
|
|
2907
|
-
* generates number precision values for a Select editor
|
|
2908
|
-
*
|
|
2909
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
2910
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
2911
|
-
*/
|
|
2912
|
-
|
|
2913
|
-
function generatePrecisionValues(numPrecisionValues) {
|
|
2914
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
2915
|
-
return {
|
|
2916
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
2917
|
-
value: i
|
|
2918
|
-
};
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
|
|
2922
|
-
exports.generatePrecisionValues = generatePrecisionValues;
|
|
2923
|
-
/**
|
|
2924
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
2925
|
-
*
|
|
2926
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
2927
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
2928
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
2929
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
2930
|
-
*/
|
|
2931
|
-
|
|
2932
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
2933
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
2934
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
2935
|
-
}
|
|
2936
|
-
|
|
2937
|
-
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
2938
|
-
};
|
|
2923
|
+
/***/ (function(module, exports) {
|
|
2939
2924
|
|
|
2940
|
-
exports
|
|
2925
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
2941
2926
|
|
|
2942
2927
|
/***/ }),
|
|
2943
2928
|
|
|
@@ -2947,9 +2932,9 @@ exports.insertLayout = insertLayout;
|
|
|
2947
2932
|
"use strict";
|
|
2948
2933
|
|
|
2949
2934
|
|
|
2950
|
-
var _classCallCheck = __webpack_require__(
|
|
2935
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2951
2936
|
|
|
2952
|
-
var _createClass = __webpack_require__(
|
|
2937
|
+
var _createClass = __webpack_require__(18);
|
|
2953
2938
|
|
|
2954
2939
|
Object.defineProperty(exports, "__esModule", {
|
|
2955
2940
|
value: true
|
|
@@ -3020,101 +3005,28 @@ module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
|
3020
3005
|
/***/ 7:
|
|
3021
3006
|
/***/ (function(module, exports) {
|
|
3022
3007
|
|
|
3023
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3008
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3024
3009
|
|
|
3025
3010
|
/***/ }),
|
|
3026
3011
|
|
|
3027
3012
|
/***/ 8:
|
|
3028
|
-
/***/ (function(module, exports
|
|
3029
|
-
|
|
3030
|
-
"use strict";
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
var _typeof = __webpack_require__(25);
|
|
3034
|
-
|
|
3035
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3036
|
-
value: true
|
|
3037
|
-
});
|
|
3038
|
-
exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
|
|
3039
|
-
|
|
3040
|
-
var lodash_1 = __webpack_require__(2);
|
|
3041
|
-
|
|
3042
|
-
var mapUtils_1 = __webpack_require__(41);
|
|
3043
|
-
/**
|
|
3044
|
-
* @method extendStaticWrapperProps
|
|
3045
|
-
* @param {Object} props
|
|
3046
|
-
* @param {DashboardVizType} props.Wrapper
|
|
3047
|
-
* @param {DashboardVizType} props.Visualization
|
|
3048
|
-
*/
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
3052
|
-
var Wrapper = _ref.Wrapper,
|
|
3053
|
-
Visualization = _ref.Visualization;
|
|
3054
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
3055
|
-
extendProperties.forEach(function (prop) {
|
|
3056
|
-
if (Visualization[prop]) {
|
|
3057
|
-
// eslint-disable-next-line no-param-reassign
|
|
3058
|
-
Wrapper[prop] = Visualization[prop];
|
|
3059
|
-
}
|
|
3060
|
-
});
|
|
3061
|
-
};
|
|
3062
|
-
|
|
3063
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
3064
|
-
/**
|
|
3065
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
3066
|
-
* 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
|
|
3067
|
-
* 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).
|
|
3068
|
-
* 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
|
|
3069
|
-
* 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.
|
|
3070
|
-
*
|
|
3071
|
-
* @method deepMergeWithArrayPrimitiveOverrides
|
|
3072
|
-
* @param {Object} initial - target object to merge values into
|
|
3073
|
-
* @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
|
|
3074
|
-
*
|
|
3075
|
-
* @returns {Object}
|
|
3076
|
-
*/
|
|
3077
|
-
|
|
3078
|
-
var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
|
|
3079
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
3013
|
+
/***/ (function(module, exports) {
|
|
3080
3014
|
|
|
3081
|
-
|
|
3082
|
-
sources[_key - 1] = arguments[_key];
|
|
3083
|
-
}
|
|
3015
|
+
module.exports = require("@splunk/themes/variables");
|
|
3084
3016
|
|
|
3085
|
-
|
|
3086
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
3087
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
3088
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
3089
|
-
}
|
|
3017
|
+
/***/ }),
|
|
3090
3018
|
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
} else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
|
|
3094
|
-
// If option is an array of objects
|
|
3095
|
-
for (var i = 0; i < clone[sourceKey].length; i += 1) {
|
|
3096
|
-
if (_typeof(clone[sourceKey][i]) === 'object') {
|
|
3097
|
-
var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
|
|
3098
|
-
|
|
3099
|
-
if (closestMatchIdx > -1) {
|
|
3100
|
-
clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
|
|
3101
|
-
}
|
|
3102
|
-
}
|
|
3103
|
-
}
|
|
3104
|
-
}
|
|
3105
|
-
});
|
|
3106
|
-
});
|
|
3107
|
-
return clone;
|
|
3108
|
-
};
|
|
3019
|
+
/***/ 88:
|
|
3020
|
+
/***/ (function(module, exports) {
|
|
3109
3021
|
|
|
3110
|
-
exports
|
|
3022
|
+
module.exports = require("@splunk/visualization-encoding/utils/dsl");
|
|
3111
3023
|
|
|
3112
3024
|
/***/ }),
|
|
3113
3025
|
|
|
3114
3026
|
/***/ 9:
|
|
3115
3027
|
/***/ (function(module, exports) {
|
|
3116
3028
|
|
|
3117
|
-
module.exports = require("@
|
|
3029
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
3118
3030
|
|
|
3119
3031
|
/***/ })
|
|
3120
3032
|
|