@splunk/visualizations 24.3.0 → 24.3.3
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_Tooltip_Dark.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_geostats_by.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Additional_Cases.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Markdown_with_number_as_DSL.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_By_Type_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Kitchen_Sink.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Single_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Color_light_blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_No_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table_With_No_Click.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Gradient.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Override.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Count_2.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Header_Colors.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Row_Colors.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_No_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_none.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_100_no_paginator.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Invalid_Background_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Multi_Value_Field.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes_Row_Numbers.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Row_Numbers_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Width.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Gradient.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Height.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Percentage.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Px.png +0 -0
- package/Area.js +121 -65
- package/Area.js.map +1 -1
- package/Bar.js +121 -65
- package/Bar.js.map +1 -1
- package/Bubble.js +121 -65
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +145 -76
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +121 -65
- package/Column.js.map +1 -1
- package/Ellipse.js +124 -68
- package/Ellipse.js.map +1 -1
- package/FillerGauge.js +124 -68
- package/FillerGauge.js.map +1 -1
- package/Image.js +125 -69
- package/Image.js.map +1 -1
- package/Line.js +121 -65
- package/Line.js.map +1 -1
- package/LinkGraph.js +124 -68
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +16 -6
- package/Map.config.js.map +1 -1
- package/Map.js +480 -172
- package/Map.js.map +1 -1
- package/Markdown.js +136 -78
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +135 -79
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +143 -86
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +133 -77
- package/Pie.js.map +1 -1
- package/Punchcard.js +149 -92
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +131 -75
- package/Rectangle.js.map +1 -1
- package/Sankey.js +208 -152
- package/Sankey.js.map +1 -1
- package/Scatter.js +131 -75
- package/Scatter.js.map +1 -1
- package/SingleValue.js +162 -106
- package/SingleValue.js.map +1 -1
- package/SingleValueIcon.js +138 -81
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.js +204 -148
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +1 -2
- package/Table.config.js.map +1 -1
- package/Table.js +301 -347
- package/Table.js.map +1 -1
- package/common/utils/hocUtils.js +65 -9
- package/common/utils/hocUtils.js.map +1 -1
- package/common/withDashboardViz.js +68 -12
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +10 -10
package/SingleValue.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 = 245);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -339,7 +339,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
339
339
|
|
|
340
340
|
return React.createElement(FixSizeItem, {
|
|
341
341
|
"data-test": "fix-size-item",
|
|
342
|
-
"data-splunk-visualization-version": "24.3.
|
|
342
|
+
"data-splunk-visualization-version": "24.3.3 - 8d441d88c",
|
|
343
343
|
width: width,
|
|
344
344
|
height: height,
|
|
345
345
|
backgroundColor: backgroundColor
|
|
@@ -1457,7 +1457,7 @@ var T = __webpack_require__(0);
|
|
|
1457
1457
|
|
|
1458
1458
|
var lodash_1 = __webpack_require__(2);
|
|
1459
1459
|
|
|
1460
|
-
var DataSource_1 = __webpack_require__(
|
|
1460
|
+
var DataSource_1 = __webpack_require__(34);
|
|
1461
1461
|
|
|
1462
1462
|
exports.SortParamsPropTypes = T.shape({
|
|
1463
1463
|
currentSortKey: T.string,
|
|
@@ -1576,7 +1576,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1576
1576
|
|
|
1577
1577
|
/***/ }),
|
|
1578
1578
|
|
|
1579
|
-
/***/
|
|
1579
|
+
/***/ 245:
|
|
1580
1580
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1581
1581
|
|
|
1582
1582
|
"use strict";
|
|
@@ -1587,13 +1587,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1587
1587
|
});
|
|
1588
1588
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
1589
1589
|
|
|
1590
|
-
var SingleValue_1 = __webpack_require__(
|
|
1590
|
+
var SingleValue_1 = __webpack_require__(268);
|
|
1591
1591
|
|
|
1592
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
1592
|
+
var withDashboardViz_1 = __webpack_require__(28);
|
|
1593
1593
|
|
|
1594
1594
|
var singleValueUtils_1 = __webpack_require__(17);
|
|
1595
1595
|
|
|
1596
|
-
var config_1 = __webpack_require__(
|
|
1596
|
+
var config_1 = __webpack_require__(246);
|
|
1597
1597
|
|
|
1598
1598
|
exports.config = config_1.default;
|
|
1599
1599
|
exports.PureSingleValue = SingleValue_1.default;
|
|
@@ -1632,7 +1632,7 @@ exports.default = viz;
|
|
|
1632
1632
|
|
|
1633
1633
|
/***/ }),
|
|
1634
1634
|
|
|
1635
|
-
/***/
|
|
1635
|
+
/***/ 246:
|
|
1636
1636
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1637
1637
|
|
|
1638
1638
|
"use strict";
|
|
@@ -1646,9 +1646,9 @@ var i18n_1 = __webpack_require__(3);
|
|
|
1646
1646
|
|
|
1647
1647
|
var schemaUtils_1 = __webpack_require__(14);
|
|
1648
1648
|
|
|
1649
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
1649
|
+
var PresetPalettes_1 = __webpack_require__(48);
|
|
1650
1650
|
|
|
1651
|
-
var variables_1 = __webpack_require__(
|
|
1651
|
+
var variables_1 = __webpack_require__(247);
|
|
1652
1652
|
|
|
1653
1653
|
var pick_1 = __webpack_require__(21);
|
|
1654
1654
|
|
|
@@ -1676,7 +1676,7 @@ var StaticBackgroundColorEditor_1 = __webpack_require__(68);
|
|
|
1676
1676
|
|
|
1677
1677
|
var configUtils_1 = __webpack_require__(6);
|
|
1678
1678
|
|
|
1679
|
-
var VizCategory_1 = __webpack_require__(
|
|
1679
|
+
var VizCategory_1 = __webpack_require__(27);
|
|
1680
1680
|
|
|
1681
1681
|
var dataContract = {
|
|
1682
1682
|
requiredDataSources: [{
|
|
@@ -2155,7 +2155,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2155
2155
|
|
|
2156
2156
|
/***/ }),
|
|
2157
2157
|
|
|
2158
|
-
/***/
|
|
2158
|
+
/***/ 247:
|
|
2159
2159
|
/***/ (function(module, exports) {
|
|
2160
2160
|
|
|
2161
2161
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
@@ -2168,6 +2168,40 @@ module.exports = require("@splunk/visualization-themes/variables");
|
|
|
2168
2168
|
"use strict";
|
|
2169
2169
|
|
|
2170
2170
|
|
|
2171
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2172
|
+
value: true
|
|
2173
|
+
});
|
|
2174
|
+
exports.pickFieldFromJSONSchema = void 0;
|
|
2175
|
+
|
|
2176
|
+
var lodash_1 = __webpack_require__(2);
|
|
2177
|
+
|
|
2178
|
+
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
2179
|
+
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
2180
|
+
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
2181
|
+
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
2182
|
+
accum[k] = optionsSchema[k][fieldName];
|
|
2183
|
+
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
2184
|
+
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
2185
|
+
|
|
2186
|
+
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
2187
|
+
accum[k] = nestedSchema;
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
return accum;
|
|
2192
|
+
}, {});
|
|
2193
|
+
};
|
|
2194
|
+
|
|
2195
|
+
exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
2196
|
+
|
|
2197
|
+
/***/ }),
|
|
2198
|
+
|
|
2199
|
+
/***/ 26:
|
|
2200
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2201
|
+
|
|
2202
|
+
"use strict";
|
|
2203
|
+
|
|
2204
|
+
|
|
2171
2205
|
Object.defineProperty(exports, "__esModule", {
|
|
2172
2206
|
value: true
|
|
2173
2207
|
});
|
|
@@ -2251,36 +2285,7 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
2251
2285
|
|
|
2252
2286
|
/***/ }),
|
|
2253
2287
|
|
|
2254
|
-
/***/
|
|
2255
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2256
|
-
|
|
2257
|
-
"use strict";
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2261
|
-
value: true
|
|
2262
|
-
});
|
|
2263
|
-
exports.VizCategory = void 0;
|
|
2264
|
-
var VizCategory;
|
|
2265
|
-
|
|
2266
|
-
(function (VizCategory) {
|
|
2267
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
2268
|
-
VizCategory["TRENDS"] = "Trends";
|
|
2269
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
2270
|
-
VizCategory["TABLE"] = "Table";
|
|
2271
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
2272
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
2273
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
2274
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
2275
|
-
VizCategory["MISC"] = "misc";
|
|
2276
|
-
VizCategory["FLOW"] = "Flow";
|
|
2277
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
2278
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
2279
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
2280
|
-
|
|
2281
|
-
/***/ }),
|
|
2282
|
-
|
|
2283
|
-
/***/ 267:
|
|
2288
|
+
/***/ 268:
|
|
2284
2289
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2285
2290
|
|
|
2286
2291
|
"use strict";
|
|
@@ -3142,6 +3147,35 @@ SingleValue_SingleValue.defaultProps = {
|
|
|
3142
3147
|
"use strict";
|
|
3143
3148
|
|
|
3144
3149
|
|
|
3150
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3151
|
+
value: true
|
|
3152
|
+
});
|
|
3153
|
+
exports.VizCategory = void 0;
|
|
3154
|
+
var VizCategory;
|
|
3155
|
+
|
|
3156
|
+
(function (VizCategory) {
|
|
3157
|
+
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
3158
|
+
VizCategory["TRENDS"] = "Trends";
|
|
3159
|
+
VizCategory["COMPARISONS"] = "Comparisons";
|
|
3160
|
+
VizCategory["TABLE"] = "Table";
|
|
3161
|
+
VizCategory["GAUGE"] = "Gauge";
|
|
3162
|
+
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
3163
|
+
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
3164
|
+
VizCategory["SHAPES"] = "Shapes";
|
|
3165
|
+
VizCategory["MISC"] = "misc";
|
|
3166
|
+
VizCategory["FLOW"] = "Flow";
|
|
3167
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
3168
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
3169
|
+
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
3170
|
+
|
|
3171
|
+
/***/ }),
|
|
3172
|
+
|
|
3173
|
+
/***/ 28:
|
|
3174
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3175
|
+
|
|
3176
|
+
"use strict";
|
|
3177
|
+
|
|
3178
|
+
|
|
3145
3179
|
Object.defineProperty(exports, "__esModule", {
|
|
3146
3180
|
value: true
|
|
3147
3181
|
});
|
|
@@ -3150,15 +3184,15 @@ var React = __webpack_require__(1);
|
|
|
3150
3184
|
|
|
3151
3185
|
var lodash_1 = __webpack_require__(2);
|
|
3152
3186
|
|
|
3153
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
3187
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(29);
|
|
3154
3188
|
|
|
3155
|
-
var Options_1 = __webpack_require__(
|
|
3189
|
+
var Options_1 = __webpack_require__(30);
|
|
3156
3190
|
|
|
3157
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
3191
|
+
var SanitizeProps_1 = __webpack_require__(31);
|
|
3158
3192
|
|
|
3159
3193
|
var styled_components_1 = __webpack_require__(4);
|
|
3160
3194
|
|
|
3161
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
3195
|
+
var SplunkVisualization_1 = __webpack_require__(32);
|
|
3162
3196
|
|
|
3163
3197
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3164
3198
|
|
|
@@ -3166,9 +3200,9 @@ var getSorting_1 = __webpack_require__(23);
|
|
|
3166
3200
|
|
|
3167
3201
|
var getPagination_1 = __webpack_require__(24);
|
|
3168
3202
|
|
|
3169
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
3203
|
+
var useDeepMemo_1 = __webpack_require__(35);
|
|
3170
3204
|
|
|
3171
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
3205
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
3172
3206
|
|
|
3173
3207
|
var MissingPropsMessage_1 = __webpack_require__(36);
|
|
3174
3208
|
|
|
@@ -3230,7 +3264,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3230
3264
|
try {
|
|
3231
3265
|
return Options_1.Options.evaluate({
|
|
3232
3266
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
3233
|
-
options: hocUtils_1.
|
|
3267
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
3234
3268
|
}, dataSources, themeFunc);
|
|
3235
3269
|
} catch (e) {
|
|
3236
3270
|
// eslint-disable-next-line no-console
|
|
@@ -3361,35 +3395,35 @@ exports.default = withDashboardViz;
|
|
|
3361
3395
|
|
|
3362
3396
|
/***/ }),
|
|
3363
3397
|
|
|
3364
|
-
/***/
|
|
3398
|
+
/***/ 29:
|
|
3365
3399
|
/***/ (function(module, exports) {
|
|
3366
3400
|
|
|
3367
3401
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
3368
3402
|
|
|
3369
3403
|
/***/ }),
|
|
3370
3404
|
|
|
3371
|
-
/***/
|
|
3405
|
+
/***/ 3:
|
|
3372
3406
|
/***/ (function(module, exports) {
|
|
3373
3407
|
|
|
3374
|
-
module.exports = require("@splunk/
|
|
3408
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
3375
3409
|
|
|
3376
3410
|
/***/ }),
|
|
3377
3411
|
|
|
3378
|
-
/***/
|
|
3412
|
+
/***/ 30:
|
|
3379
3413
|
/***/ (function(module, exports) {
|
|
3380
3414
|
|
|
3381
|
-
module.exports = require("@splunk/
|
|
3415
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
3382
3416
|
|
|
3383
3417
|
/***/ }),
|
|
3384
3418
|
|
|
3385
|
-
/***/
|
|
3419
|
+
/***/ 31:
|
|
3386
3420
|
/***/ (function(module, exports) {
|
|
3387
3421
|
|
|
3388
3422
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
3389
3423
|
|
|
3390
3424
|
/***/ }),
|
|
3391
3425
|
|
|
3392
|
-
/***/
|
|
3426
|
+
/***/ 32:
|
|
3393
3427
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3394
3428
|
|
|
3395
3429
|
"use strict";
|
|
@@ -3407,7 +3441,7 @@ var T = __webpack_require__(0);
|
|
|
3407
3441
|
|
|
3408
3442
|
var lodash_1 = __webpack_require__(2);
|
|
3409
3443
|
|
|
3410
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
3444
|
+
var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
3411
3445
|
|
|
3412
3446
|
|
|
3413
3447
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -3541,7 +3575,7 @@ exports.default = SplunkVisualization;
|
|
|
3541
3575
|
|
|
3542
3576
|
/***/ }),
|
|
3543
3577
|
|
|
3544
|
-
/***/
|
|
3578
|
+
/***/ 33:
|
|
3545
3579
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3546
3580
|
|
|
3547
3581
|
"use strict";
|
|
@@ -3579,7 +3613,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
3579
3613
|
|
|
3580
3614
|
/***/ }),
|
|
3581
3615
|
|
|
3582
|
-
/***/
|
|
3616
|
+
/***/ 34:
|
|
3583
3617
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3584
3618
|
|
|
3585
3619
|
"use strict";
|
|
@@ -3593,7 +3627,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
3593
3627
|
|
|
3594
3628
|
/***/ }),
|
|
3595
3629
|
|
|
3596
|
-
/***/
|
|
3630
|
+
/***/ 35:
|
|
3597
3631
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3598
3632
|
|
|
3599
3633
|
"use strict";
|
|
@@ -3639,40 +3673,6 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
3639
3673
|
|
|
3640
3674
|
/***/ }),
|
|
3641
3675
|
|
|
3642
|
-
/***/ 35:
|
|
3643
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3644
|
-
|
|
3645
|
-
"use strict";
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3649
|
-
value: true
|
|
3650
|
-
});
|
|
3651
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
3652
|
-
|
|
3653
|
-
var lodash_1 = __webpack_require__(2);
|
|
3654
|
-
|
|
3655
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
3656
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
3657
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
3658
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
3659
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
3660
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
3661
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
3662
|
-
|
|
3663
|
-
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
3664
|
-
accum[k] = nestedSchema;
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3667
|
-
|
|
3668
|
-
return accum;
|
|
3669
|
-
}, {});
|
|
3670
|
-
};
|
|
3671
|
-
|
|
3672
|
-
exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
3673
|
-
|
|
3674
|
-
/***/ }),
|
|
3675
|
-
|
|
3676
3676
|
/***/ 36:
|
|
3677
3677
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3678
3678
|
|
|
@@ -3775,7 +3775,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3775
3775
|
componentId: "sc-1gsbnxb-0"
|
|
3776
3776
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3777
3777
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3778
|
-
'data-splunk-visualization-version': "24.3.
|
|
3778
|
+
'data-splunk-visualization-version': "24.3.3 - 8d441d88c"
|
|
3779
3779
|
}).withConfig({
|
|
3780
3780
|
displayName: "withEditModeCover__Blocker",
|
|
3781
3781
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3821,7 +3821,7 @@ var React = __webpack_require__(1);
|
|
|
3821
3821
|
|
|
3822
3822
|
var colorUtils_1 = __webpack_require__(11);
|
|
3823
3823
|
|
|
3824
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
3824
|
+
var IconPlaceholder_1 = __webpack_require__(26);
|
|
3825
3825
|
|
|
3826
3826
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3827
3827
|
|
|
@@ -3902,7 +3902,7 @@ module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
|
3902
3902
|
|
|
3903
3903
|
/***/ }),
|
|
3904
3904
|
|
|
3905
|
-
/***/
|
|
3905
|
+
/***/ 48:
|
|
3906
3906
|
/***/ (function(module, exports) {
|
|
3907
3907
|
|
|
3908
3908
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
@@ -4522,7 +4522,7 @@ var _typeof = __webpack_require__(20);
|
|
|
4522
4522
|
Object.defineProperty(exports, "__esModule", {
|
|
4523
4523
|
value: true
|
|
4524
4524
|
});
|
|
4525
|
-
exports.
|
|
4525
|
+
exports.findClosestMatchFromDefaultList = exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
|
|
4526
4526
|
|
|
4527
4527
|
var lodash_1 = __webpack_require__(2);
|
|
4528
4528
|
/**
|
|
@@ -4548,17 +4548,19 @@ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
|
4548
4548
|
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
4549
4549
|
/**
|
|
4550
4550
|
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
4551
|
-
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
|
|
4552
|
-
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
4551
|
+
* 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
|
|
4552
|
+
* 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).
|
|
4553
|
+
* 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
|
|
4554
|
+
* 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.
|
|
4553
4555
|
*
|
|
4554
|
-
* @method
|
|
4556
|
+
* @method deepMergeWithArrayPrimitiveOverrides
|
|
4555
4557
|
* @param {Object} initial - target object to merge values into
|
|
4556
4558
|
* @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
|
|
4557
4559
|
*
|
|
4558
4560
|
* @returns {Object}
|
|
4559
4561
|
*/
|
|
4560
4562
|
|
|
4561
|
-
var
|
|
4563
|
+
var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
|
|
4562
4564
|
var clone = lodash_1.cloneDeep(initial);
|
|
4563
4565
|
|
|
4564
4566
|
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -4569,18 +4571,72 @@ var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial)
|
|
|
4569
4571
|
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
4570
4572
|
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
4571
4573
|
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
4572
|
-
}
|
|
4573
|
-
|
|
4574
|
+
}
|
|
4574
4575
|
|
|
4575
4576
|
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
4576
|
-
clone[sourceKey] = exports.
|
|
4577
|
+
clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
4578
|
+
} else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
|
|
4579
|
+
// If option is an array of objects
|
|
4580
|
+
for (var i = 0; i < clone[sourceKey].length; i += 1) {
|
|
4581
|
+
if (_typeof(clone[sourceKey][i]) === 'object') {
|
|
4582
|
+
var closestMatchIdx = exports.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
|
|
4583
|
+
|
|
4584
|
+
if (closestMatchIdx > -1) {
|
|
4585
|
+
clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
|
|
4586
|
+
}
|
|
4587
|
+
}
|
|
4588
|
+
}
|
|
4577
4589
|
}
|
|
4578
4590
|
});
|
|
4579
4591
|
});
|
|
4580
4592
|
return clone;
|
|
4581
4593
|
};
|
|
4582
4594
|
|
|
4583
|
-
exports.
|
|
4595
|
+
exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
|
|
4596
|
+
/**
|
|
4597
|
+
* Finds the closest matching object from the list, which has the max same key value pairs.
|
|
4598
|
+
* Returns the index of match if found, or -1
|
|
4599
|
+
* For eg :-
|
|
4600
|
+
const list = [{
|
|
4601
|
+
type: "marker",
|
|
4602
|
+
lat: "value1"
|
|
4603
|
+
}, {
|
|
4604
|
+
type: "bubble",
|
|
4605
|
+
size: "value2"
|
|
4606
|
+
}];
|
|
4607
|
+
|
|
4608
|
+
const obj = {
|
|
4609
|
+
type: 'bubble'
|
|
4610
|
+
};
|
|
4611
|
+
|
|
4612
|
+
findClosestMatch(list, obj) -> returns index 1.
|
|
4613
|
+
*/
|
|
4614
|
+
|
|
4615
|
+
var findClosestMatchFromDefaultList = function findClosestMatchFromDefaultList(searchList, inputObj) {
|
|
4616
|
+
if (!Array.isArray(searchList) || searchList.length === 0) {
|
|
4617
|
+
return -1;
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
var keys = Object.keys(inputObj);
|
|
4621
|
+
var maxMatchCnt = 0;
|
|
4622
|
+
var maxMatchIdx = 0;
|
|
4623
|
+
searchList.forEach(function (item, idx) {
|
|
4624
|
+
var matchCnt = 0;
|
|
4625
|
+
keys.forEach(function (key) {
|
|
4626
|
+
if (item[key] === inputObj[key]) {
|
|
4627
|
+
matchCnt += 1;
|
|
4628
|
+
}
|
|
4629
|
+
});
|
|
4630
|
+
|
|
4631
|
+
if (Math.max(maxMatchCnt, matchCnt) > maxMatchCnt) {
|
|
4632
|
+
maxMatchCnt = matchCnt;
|
|
4633
|
+
maxMatchIdx = idx;
|
|
4634
|
+
}
|
|
4635
|
+
});
|
|
4636
|
+
return maxMatchIdx;
|
|
4637
|
+
};
|
|
4638
|
+
|
|
4639
|
+
exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
|
|
4584
4640
|
|
|
4585
4641
|
/***/ }),
|
|
4586
4642
|
|