@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
|
@@ -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 = 74);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -140,12 +140,7 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
140
140
|
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
141
141
|
|
|
142
142
|
/***/ }),
|
|
143
|
-
/* 9
|
|
144
|
-
/***/ (function(module, exports) {
|
|
145
|
-
|
|
146
|
-
module.exports = require("@babel/runtime/helpers/typeof");
|
|
147
|
-
|
|
148
|
-
/***/ }),
|
|
143
|
+
/* 9 */,
|
|
149
144
|
/* 10 */,
|
|
150
145
|
/* 11 */,
|
|
151
146
|
/* 12 */,
|
|
@@ -159,65 +154,27 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
159
154
|
/* 15 */,
|
|
160
155
|
/* 16 */,
|
|
161
156
|
/* 17 */,
|
|
162
|
-
/* 18
|
|
163
|
-
/* 19 */
|
|
157
|
+
/* 18 */
|
|
164
158
|
/***/ (function(module, exports) {
|
|
165
159
|
|
|
166
160
|
module.exports = require("@splunk/visualizations-shared/Message");
|
|
167
161
|
|
|
168
162
|
/***/ }),
|
|
163
|
+
/* 19 */,
|
|
169
164
|
/* 20 */
|
|
170
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
171
|
-
|
|
172
|
-
"use strict";
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
Object.defineProperty(exports, "__esModule", {
|
|
176
|
-
value: true
|
|
177
|
-
});
|
|
178
|
-
exports.VizBehavior = void 0;
|
|
179
|
-
var VizBehavior;
|
|
180
|
-
|
|
181
|
-
(function (VizBehavior) {
|
|
182
|
-
/**
|
|
183
|
-
* Dynamic Options Behavior.
|
|
184
|
-
* This allows visualization options to be powered by data
|
|
185
|
-
*
|
|
186
|
-
* **Example**
|
|
187
|
-
*
|
|
188
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
189
|
-
* would configure sparklineValues with an array of data points
|
|
190
|
-
* coming from the first series in the primary datasource
|
|
191
|
-
*
|
|
192
|
-
*/
|
|
193
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
194
|
-
VizBehavior["EVENTS"] = "events";
|
|
195
|
-
/**
|
|
196
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
197
|
-
* missing.
|
|
198
|
-
* @type {string}
|
|
199
|
-
*/
|
|
200
|
-
|
|
201
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
202
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
203
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
204
|
-
|
|
205
|
-
/***/ }),
|
|
206
|
-
/* 21 */,
|
|
207
|
-
/* 22 */
|
|
208
165
|
/***/ (function(module, exports) {
|
|
209
166
|
|
|
210
167
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
211
168
|
|
|
212
169
|
/***/ }),
|
|
213
|
-
/*
|
|
170
|
+
/* 21 */
|
|
214
171
|
/***/ (function(module, exports) {
|
|
215
172
|
|
|
216
173
|
module.exports = require("@splunk/visualizations-shared/style");
|
|
217
174
|
|
|
218
175
|
/***/ }),
|
|
219
|
-
/*
|
|
220
|
-
/*
|
|
176
|
+
/* 22 */,
|
|
177
|
+
/* 23 */
|
|
221
178
|
/***/ (function(module, exports, __webpack_require__) {
|
|
222
179
|
|
|
223
180
|
"use strict";
|
|
@@ -235,7 +192,7 @@ var T = __webpack_require__(1);
|
|
|
235
192
|
|
|
236
193
|
var lodash_1 = __webpack_require__(3);
|
|
237
194
|
|
|
238
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
195
|
+
var VizActionHandler_1 = __webpack_require__(24); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
239
196
|
|
|
240
197
|
|
|
241
198
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -368,7 +325,7 @@ SplunkVisualization.defaultProps = {
|
|
|
368
325
|
exports.default = SplunkVisualization;
|
|
369
326
|
|
|
370
327
|
/***/ }),
|
|
371
|
-
/*
|
|
328
|
+
/* 24 */
|
|
372
329
|
/***/ (function(module, exports, __webpack_require__) {
|
|
373
330
|
|
|
374
331
|
"use strict";
|
|
@@ -405,102 +362,54 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
405
362
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
406
363
|
|
|
407
364
|
/***/ }),
|
|
408
|
-
/*
|
|
365
|
+
/* 25 */,
|
|
366
|
+
/* 26 */
|
|
409
367
|
/***/ (function(module, exports) {
|
|
410
368
|
|
|
411
369
|
module.exports = require("@splunk/themes/variables");
|
|
412
370
|
|
|
413
371
|
/***/ }),
|
|
414
|
-
/*
|
|
372
|
+
/* 27 */,
|
|
373
|
+
/* 28 */,
|
|
374
|
+
/* 29 */,
|
|
375
|
+
/* 30 */
|
|
415
376
|
/***/ (function(module, exports, __webpack_require__) {
|
|
416
377
|
|
|
417
378
|
"use strict";
|
|
418
379
|
|
|
419
380
|
|
|
420
|
-
var _typeof = __webpack_require__(9);
|
|
421
|
-
|
|
422
381
|
Object.defineProperty(exports, "__esModule", {
|
|
423
382
|
value: true
|
|
424
383
|
});
|
|
425
|
-
exports.
|
|
426
|
-
|
|
427
|
-
var lodash_1 = __webpack_require__(3);
|
|
428
|
-
|
|
429
|
-
var mapUtils_1 = __webpack_require__(88);
|
|
430
|
-
/**
|
|
431
|
-
* @method extendStaticWrapperProps
|
|
432
|
-
* @param {Object} props
|
|
433
|
-
* @param {DashboardVizType} props.Wrapper
|
|
434
|
-
* @param {DashboardVizType} props.Visualization
|
|
435
|
-
*/
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
439
|
-
var Wrapper = _ref.Wrapper,
|
|
440
|
-
Visualization = _ref.Visualization;
|
|
441
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
442
|
-
extendProperties.forEach(function (prop) {
|
|
443
|
-
if (Visualization[prop]) {
|
|
444
|
-
// eslint-disable-next-line no-param-reassign
|
|
445
|
-
Wrapper[prop] = Visualization[prop];
|
|
446
|
-
}
|
|
447
|
-
});
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
451
|
-
/**
|
|
452
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
453
|
-
* 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
|
|
454
|
-
* 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).
|
|
455
|
-
* 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
|
|
456
|
-
* 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.
|
|
457
|
-
*
|
|
458
|
-
* @method deepMergeWithArrayPrimitiveOverrides
|
|
459
|
-
* @param {Object} initial - target object to merge values into
|
|
460
|
-
* @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
|
|
461
|
-
*
|
|
462
|
-
* @returns {Object}
|
|
463
|
-
*/
|
|
464
|
-
|
|
465
|
-
var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
|
|
466
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
467
|
-
|
|
468
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
469
|
-
sources[_key - 1] = arguments[_key];
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
sources.forEach(function (sourceToApply) {
|
|
473
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
474
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
475
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
476
|
-
}
|
|
384
|
+
exports.VizBehavior = void 0;
|
|
385
|
+
var VizBehavior;
|
|
477
386
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
387
|
+
(function (VizBehavior) {
|
|
388
|
+
/**
|
|
389
|
+
* Dynamic Options Behavior.
|
|
390
|
+
* This allows visualization options to be powered by data
|
|
391
|
+
*
|
|
392
|
+
* **Example**
|
|
393
|
+
*
|
|
394
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
395
|
+
* would configure sparklineValues with an array of data points
|
|
396
|
+
* coming from the first series in the primary datasource
|
|
397
|
+
*
|
|
398
|
+
*/
|
|
399
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
400
|
+
VizBehavior["EVENTS"] = "events";
|
|
401
|
+
/**
|
|
402
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
403
|
+
* missing.
|
|
404
|
+
* @type {string}
|
|
405
|
+
*/
|
|
496
406
|
|
|
497
|
-
|
|
407
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
408
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
409
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
498
410
|
|
|
499
411
|
/***/ }),
|
|
500
|
-
/*
|
|
501
|
-
/* 30 */,
|
|
502
|
-
/* 31 */,
|
|
503
|
-
/* 32 */
|
|
412
|
+
/* 31 */
|
|
504
413
|
/***/ (function(module, exports, __webpack_require__) {
|
|
505
414
|
|
|
506
415
|
"use strict";
|
|
@@ -516,7 +425,7 @@ var styled_components_1 = __webpack_require__(2);
|
|
|
516
425
|
|
|
517
426
|
var SizeAwareWrapper_1 = __webpack_require__(86);
|
|
518
427
|
|
|
519
|
-
var style_1 = __webpack_require__(
|
|
428
|
+
var style_1 = __webpack_require__(21);
|
|
520
429
|
|
|
521
430
|
var colorUtils_1 = __webpack_require__(13);
|
|
522
431
|
|
|
@@ -575,7 +484,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
575
484
|
|
|
576
485
|
return React.createElement(FixSizeItem, {
|
|
577
486
|
"data-test": "fix-size-item",
|
|
578
|
-
"data-splunk-visualization-version": "25.0
|
|
487
|
+
"data-splunk-visualization-version": "25.2.0 - 4373c5a66",
|
|
579
488
|
width: width,
|
|
580
489
|
height: height,
|
|
581
490
|
backgroundColor: backgroundColor
|
|
@@ -595,6 +504,38 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
595
504
|
|
|
596
505
|
exports.default = withFixedSizeContainer;
|
|
597
506
|
|
|
507
|
+
/***/ }),
|
|
508
|
+
/* 32 */
|
|
509
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
510
|
+
|
|
511
|
+
"use strict";
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
Object.defineProperty(exports, "__esModule", {
|
|
515
|
+
value: true
|
|
516
|
+
});
|
|
517
|
+
exports.extendStaticWrapperProps = void 0;
|
|
518
|
+
/**
|
|
519
|
+
* @method extendStaticWrapperProps
|
|
520
|
+
* @param {Object} props
|
|
521
|
+
* @param {DashboardVizType} props.Wrapper
|
|
522
|
+
* @param {DashboardVizType} props.Visualization
|
|
523
|
+
*/
|
|
524
|
+
|
|
525
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
526
|
+
var Wrapper = _ref.Wrapper,
|
|
527
|
+
Visualization = _ref.Visualization;
|
|
528
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
529
|
+
extendProperties.forEach(function (prop) {
|
|
530
|
+
if (Visualization[prop]) {
|
|
531
|
+
// eslint-disable-next-line no-param-reassign
|
|
532
|
+
Wrapper[prop] = Visualization[prop];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
538
|
+
|
|
598
539
|
/***/ }),
|
|
599
540
|
/* 33 */,
|
|
600
541
|
/* 34 */,
|
|
@@ -637,8 +578,7 @@ exports.default = withFixedSizeContainer;
|
|
|
637
578
|
/* 71 */,
|
|
638
579
|
/* 72 */,
|
|
639
580
|
/* 73 */,
|
|
640
|
-
/* 74
|
|
641
|
-
/* 75 */
|
|
581
|
+
/* 74 */
|
|
642
582
|
/***/ (function(module, exports, __webpack_require__) {
|
|
643
583
|
|
|
644
584
|
"use strict";
|
|
@@ -652,37 +592,37 @@ var React = __webpack_require__(0);
|
|
|
652
592
|
|
|
653
593
|
var lodash_1 = __webpack_require__(3);
|
|
654
594
|
|
|
655
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
595
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(75);
|
|
656
596
|
|
|
657
|
-
var Options_1 = __webpack_require__(
|
|
597
|
+
var Options_1 = __webpack_require__(76);
|
|
658
598
|
|
|
659
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
599
|
+
var SanitizeProps_1 = __webpack_require__(77);
|
|
660
600
|
|
|
661
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
601
|
+
var TimezoneContext_1 = __webpack_require__(20);
|
|
662
602
|
|
|
663
|
-
var moment_1 = __webpack_require__(
|
|
603
|
+
var moment_1 = __webpack_require__(78);
|
|
664
604
|
|
|
665
605
|
var styled_components_1 = __webpack_require__(2);
|
|
666
606
|
|
|
667
|
-
var
|
|
607
|
+
var hocUtils_1 = __webpack_require__(79);
|
|
608
|
+
|
|
609
|
+
var JSONSchemaUtils_1 = __webpack_require__(80);
|
|
668
610
|
|
|
669
|
-
var
|
|
611
|
+
var SplunkVisualization_1 = __webpack_require__(23);
|
|
670
612
|
|
|
671
|
-
var
|
|
613
|
+
var VizBehavior_1 = __webpack_require__(30);
|
|
672
614
|
|
|
673
|
-
var
|
|
615
|
+
var getSorting_1 = __webpack_require__(81);
|
|
674
616
|
|
|
675
|
-
var
|
|
617
|
+
var getPagination_1 = __webpack_require__(83);
|
|
676
618
|
|
|
677
|
-
var
|
|
619
|
+
var useDeepMemo_1 = __webpack_require__(84);
|
|
678
620
|
|
|
679
621
|
var MissingPropsMessage_1 = __webpack_require__(85);
|
|
680
622
|
|
|
681
623
|
var withEditModeCover_1 = __webpack_require__(87);
|
|
682
624
|
|
|
683
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
684
|
-
|
|
685
|
-
var hocUtils_1 = __webpack_require__(28);
|
|
625
|
+
var withPlaceholder_1 = __webpack_require__(88);
|
|
686
626
|
/**
|
|
687
627
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
688
628
|
* @param {DashboardVizOpts} opts
|
|
@@ -883,31 +823,43 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
883
823
|
exports.default = withDashboardViz;
|
|
884
824
|
|
|
885
825
|
/***/ }),
|
|
886
|
-
/*
|
|
826
|
+
/* 75 */
|
|
887
827
|
/***/ (function(module, exports) {
|
|
888
828
|
|
|
889
829
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
890
830
|
|
|
891
831
|
/***/ }),
|
|
892
|
-
/*
|
|
832
|
+
/* 76 */
|
|
893
833
|
/***/ (function(module, exports) {
|
|
894
834
|
|
|
895
835
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
896
836
|
|
|
897
837
|
/***/ }),
|
|
898
|
-
/*
|
|
838
|
+
/* 77 */
|
|
899
839
|
/***/ (function(module, exports) {
|
|
900
840
|
|
|
901
841
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
902
842
|
|
|
903
843
|
/***/ }),
|
|
904
|
-
/*
|
|
844
|
+
/* 78 */
|
|
905
845
|
/***/ (function(module, exports) {
|
|
906
846
|
|
|
907
847
|
module.exports = require("@splunk/moment");
|
|
908
848
|
|
|
849
|
+
/***/ }),
|
|
850
|
+
/* 79 */
|
|
851
|
+
/***/ (function(module, exports) {
|
|
852
|
+
|
|
853
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
854
|
+
|
|
909
855
|
/***/ }),
|
|
910
856
|
/* 80 */
|
|
857
|
+
/***/ (function(module, exports) {
|
|
858
|
+
|
|
859
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
860
|
+
|
|
861
|
+
/***/ }),
|
|
862
|
+
/* 81 */
|
|
911
863
|
/***/ (function(module, exports, __webpack_require__) {
|
|
912
864
|
|
|
913
865
|
"use strict";
|
|
@@ -924,7 +876,7 @@ var T = __webpack_require__(1);
|
|
|
924
876
|
|
|
925
877
|
var lodash_1 = __webpack_require__(3);
|
|
926
878
|
|
|
927
|
-
var DataSource_1 = __webpack_require__(
|
|
879
|
+
var DataSource_1 = __webpack_require__(82);
|
|
928
880
|
|
|
929
881
|
exports.SortParamsPropTypes = T.shape({
|
|
930
882
|
currentSortKey: T.string,
|
|
@@ -977,7 +929,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
977
929
|
exports.getSortingParams = getSortingParams;
|
|
978
930
|
|
|
979
931
|
/***/ }),
|
|
980
|
-
/*
|
|
932
|
+
/* 82 */
|
|
981
933
|
/***/ (function(module, exports, __webpack_require__) {
|
|
982
934
|
|
|
983
935
|
"use strict";
|
|
@@ -990,7 +942,7 @@ exports.validSortDirs = void 0;
|
|
|
990
942
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
991
943
|
|
|
992
944
|
/***/ }),
|
|
993
|
-
/*
|
|
945
|
+
/* 83 */
|
|
994
946
|
/***/ (function(module, exports, __webpack_require__) {
|
|
995
947
|
|
|
996
948
|
"use strict";
|
|
@@ -1054,7 +1006,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1054
1006
|
exports.getPaginationParams = getPaginationParams;
|
|
1055
1007
|
|
|
1056
1008
|
/***/ }),
|
|
1057
|
-
/*
|
|
1009
|
+
/* 84 */
|
|
1058
1010
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1059
1011
|
|
|
1060
1012
|
"use strict";
|
|
@@ -1098,39 +1050,6 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1098
1050
|
|
|
1099
1051
|
exports.useDeepMemo = useDeepMemo;
|
|
1100
1052
|
|
|
1101
|
-
/***/ }),
|
|
1102
|
-
/* 84 */
|
|
1103
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1104
|
-
|
|
1105
|
-
"use strict";
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1109
|
-
value: true
|
|
1110
|
-
});
|
|
1111
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
1112
|
-
|
|
1113
|
-
var lodash_1 = __webpack_require__(3);
|
|
1114
|
-
|
|
1115
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
1116
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
1117
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
1118
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
1119
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
1120
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
1121
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
1122
|
-
|
|
1123
|
-
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
1124
|
-
accum[k] = nestedSchema;
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
return accum;
|
|
1129
|
-
}, {});
|
|
1130
|
-
};
|
|
1131
|
-
|
|
1132
|
-
exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
1133
|
-
|
|
1134
1053
|
/***/ }),
|
|
1135
1054
|
/* 85 */
|
|
1136
1055
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1149,9 +1068,9 @@ var T = __webpack_require__(1);
|
|
|
1149
1068
|
|
|
1150
1069
|
var i18n_1 = __webpack_require__(7);
|
|
1151
1070
|
|
|
1152
|
-
var Message_1 = __webpack_require__(
|
|
1071
|
+
var Message_1 = __webpack_require__(18);
|
|
1153
1072
|
|
|
1154
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1073
|
+
var FixedSizeContainer_1 = __webpack_require__(31);
|
|
1155
1074
|
/**
|
|
1156
1075
|
* @method isMissing
|
|
1157
1076
|
* @param {any} v
|
|
@@ -1232,14 +1151,14 @@ var React = __webpack_require__(0);
|
|
|
1232
1151
|
|
|
1233
1152
|
var styled_components_1 = __webpack_require__(2);
|
|
1234
1153
|
|
|
1235
|
-
var hocUtils_1 = __webpack_require__(
|
|
1154
|
+
var hocUtils_1 = __webpack_require__(32);
|
|
1236
1155
|
|
|
1237
1156
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1238
1157
|
displayName: "withEditModeCover__Cover",
|
|
1239
1158
|
componentId: "sc-1gsbnxb-0"
|
|
1240
1159
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1241
1160
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1242
|
-
'data-splunk-visualization-version': "25.0
|
|
1161
|
+
'data-splunk-visualization-version': "25.2.0 - 4373c5a66"
|
|
1243
1162
|
}).withConfig({
|
|
1244
1163
|
displayName: "withEditModeCover__Blocker",
|
|
1245
1164
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1271,12 +1190,6 @@ exports.default = withEditModeCover;
|
|
|
1271
1190
|
|
|
1272
1191
|
/***/ }),
|
|
1273
1192
|
/* 88 */
|
|
1274
|
-
/***/ (function(module, exports) {
|
|
1275
|
-
|
|
1276
|
-
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
1277
|
-
|
|
1278
|
-
/***/ }),
|
|
1279
|
-
/* 89 */
|
|
1280
1193
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1281
1194
|
|
|
1282
1195
|
"use strict";
|
|
@@ -1290,13 +1203,13 @@ var React = __webpack_require__(0);
|
|
|
1290
1203
|
|
|
1291
1204
|
var colorUtils_1 = __webpack_require__(13);
|
|
1292
1205
|
|
|
1293
|
-
var variables_1 = __webpack_require__(
|
|
1206
|
+
var variables_1 = __webpack_require__(26);
|
|
1294
1207
|
|
|
1295
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1208
|
+
var IconPlaceholder_1 = __webpack_require__(89);
|
|
1296
1209
|
|
|
1297
|
-
var VizBehavior_1 = __webpack_require__(
|
|
1210
|
+
var VizBehavior_1 = __webpack_require__(30);
|
|
1298
1211
|
|
|
1299
|
-
var hocUtils_1 = __webpack_require__(
|
|
1212
|
+
var hocUtils_1 = __webpack_require__(32);
|
|
1300
1213
|
|
|
1301
1214
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1302
1215
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1340,7 +1253,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1340
1253
|
exports.default = withPlaceholder;
|
|
1341
1254
|
|
|
1342
1255
|
/***/ }),
|
|
1343
|
-
/*
|
|
1256
|
+
/* 89 */
|
|
1344
1257
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1345
1258
|
|
|
1346
1259
|
"use strict";
|
|
@@ -1359,9 +1272,9 @@ var lodash_1 = __webpack_require__(3);
|
|
|
1359
1272
|
|
|
1360
1273
|
var i18n_1 = __webpack_require__(7);
|
|
1361
1274
|
|
|
1362
|
-
var Message_1 = __webpack_require__(
|
|
1275
|
+
var Message_1 = __webpack_require__(18);
|
|
1363
1276
|
|
|
1364
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1277
|
+
var FixedSizeContainer_1 = __webpack_require__(31);
|
|
1365
1278
|
/**
|
|
1366
1279
|
* @method shouldShowIconPlaceholder
|
|
1367
1280
|
* @param {object} dataSources
|