@splunk/visualizations 24.1.0 → 24.3.1
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_PureFillerGauge_Orientation_horizontal_height_90_show_placeholder.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureFillerGauge_Too_Small_to_Render.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Dark.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Hover.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Light.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_base_map_light.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_geostats_by.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_center_seattle.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.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_PureVisualizations_PureMap_zoom_9.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_duplicate_entries_from.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_duplicate_entries_to.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_discontinuous_ranges.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_from_equals_to_to.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_from_is_larger_than_to.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_missing_entries.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Orientation_horizontal_width_150_show_placeholder.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Too_Small_to_Render.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSankey_dimensions_less_than_minWidth_300_and_minHeight_200.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSankey_invalid_columns_data.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Missing_Props_Message_When_No_Svg.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Filler_Gauge_Filler_Gauge_Orientation_horizontal_height_90_show_placeholder.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_with_geostats_data_No_render.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Missing_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Sankey_Sankey_Dimension_Too_Small.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_Column_Width.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_Internal_Fields_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.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.config.js +15 -15
- package/Area.config.js.map +1 -1
- package/Area.js +74 -67
- package/Area.js.map +1 -1
- package/Bar.config.js +15 -15
- package/Bar.config.js.map +1 -1
- package/Bar.js +74 -67
- package/Bar.js.map +1 -1
- package/Bubble.config.js +8 -8
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +66 -59
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +11 -9
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +76 -67
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +15 -15
- package/Column.config.js.map +1 -1
- package/Column.js +74 -67
- package/Column.js.map +1 -1
- package/Ellipse.config.js +22 -2
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +64 -37
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +8 -8
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +52 -45
- package/FillerGauge.js.map +1 -1
- package/Image.js +46 -41
- package/Image.js.map +1 -1
- package/Line.config.js +8 -8
- package/Line.config.js.map +1 -1
- package/Line.js +66 -59
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +4 -4
- package/LinkGraph.js +83 -76
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +740 -0
- package/Map.config.js.map +1 -0
- package/Map.js +3141 -0
- package/Map.js.map +1 -0
- package/Markdown.config.js +12 -12
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +57 -52
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +6 -6
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2948 -3035
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +11 -11
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +94 -76
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +13 -13
- package/Pie.config.js.map +1 -1
- package/Pie.js +904 -991
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +11 -11
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +101 -83
- package/Punchcard.js.map +1 -1
- package/README.internal.md +36 -3
- package/README.md +7 -9
- package/Rectangle.config.js +32 -12
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +141 -116
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +35 -25
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +2949 -3044
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +11 -11
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +198 -193
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +23 -22
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +238 -233
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +6 -6
- package/SingleValueIcon.config.js +33 -34
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +128 -113
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +22 -22
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +245 -240
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +26 -7
- package/Table.config.js.map +1 -1
- package/Table.js +260 -194
- package/Table.js.map +1 -1
- package/common/OptionsDoc.js +1 -1
- package/common/OptionsDoc.js.map +1 -1
- package/common/withDashboardViz.js +9 -4
- package/common/withDashboardViz.js.map +1 -1
- package/loki.config.js +2 -0
- package/package.json +20 -15
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueRadial_Trend_Indicator_Position_pushed_below_value_does_not_fit_inside_of_radial.png +0 -0
package/SingleValueBasic.js
CHANGED
|
@@ -106,7 +106,7 @@ module.exports = require("react");
|
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
|
-
/***/
|
|
109
|
+
/***/ 17:
|
|
110
110
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
111
111
|
|
|
112
112
|
"use strict";
|
|
@@ -141,11 +141,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
141
141
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
|
|
142
142
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
|
|
143
143
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
|
|
144
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
144
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
145
145
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
146
146
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
147
147
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
148
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
148
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
|
|
149
149
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
150
150
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44);
|
|
151
151
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
@@ -1129,7 +1129,7 @@ module.exports = require("lodash");
|
|
|
1129
1129
|
|
|
1130
1130
|
/***/ }),
|
|
1131
1131
|
|
|
1132
|
-
/***/
|
|
1132
|
+
/***/ 22:
|
|
1133
1133
|
/***/ (function(module, exports) {
|
|
1134
1134
|
|
|
1135
1135
|
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
@@ -1191,7 +1191,7 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
1191
1191
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
1192
1192
|
|
|
1193
1193
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
1194
|
-
var singleValueUtils = __webpack_require__(
|
|
1194
|
+
var singleValueUtils = __webpack_require__(17);
|
|
1195
1195
|
|
|
1196
1196
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
|
|
1197
1197
|
var ArrowUp_ = __webpack_require__(65);
|
|
@@ -1474,7 +1474,7 @@ module.exports = require("cssesc");
|
|
|
1474
1474
|
|
|
1475
1475
|
/***/ }),
|
|
1476
1476
|
|
|
1477
|
-
/***/
|
|
1477
|
+
/***/ 8:
|
|
1478
1478
|
/***/ (function(module, exports) {
|
|
1479
1479
|
|
|
1480
1480
|
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
@@ -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 = 64);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -423,13 +423,13 @@ var StaticBackgroundColorEditor = {
|
|
|
423
423
|
/* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
|
|
424
424
|
|
|
425
425
|
/***/ }),
|
|
426
|
-
/* 17
|
|
426
|
+
/* 17 */,
|
|
427
|
+
/* 18 */
|
|
427
428
|
/***/ (function(module, exports) {
|
|
428
429
|
|
|
429
430
|
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
430
431
|
|
|
431
432
|
/***/ }),
|
|
432
|
-
/* 18 */,
|
|
433
433
|
/* 19 */,
|
|
434
434
|
/* 20 */,
|
|
435
435
|
/* 21 */,
|
|
@@ -466,15 +466,13 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
466
466
|
defaults: {
|
|
467
467
|
majorValue: defaultContext.majorColorConfig
|
|
468
468
|
}
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
// },
|
|
477
|
-
],
|
|
469
|
+
}, {
|
|
470
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
471
|
+
value: 'matchValue',
|
|
472
|
+
defaults: {
|
|
473
|
+
majorValue: defaultContext.majorColorMatchConfig
|
|
474
|
+
}
|
|
475
|
+
}],
|
|
478
476
|
dataSelectors: [{
|
|
479
477
|
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
|
|
480
478
|
value: 'majorValue'
|
|
@@ -563,15 +561,13 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
563
561
|
majorValue: defaultContext.majorColorConfig,
|
|
564
562
|
trendValue: defaultContext.trendColorConfig
|
|
565
563
|
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
// },
|
|
574
|
-
],
|
|
564
|
+
}, {
|
|
565
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
566
|
+
value: 'matchValue',
|
|
567
|
+
defaults: {
|
|
568
|
+
majorValue: defaultContext.majorColorMatchConfig
|
|
569
|
+
}
|
|
570
|
+
}],
|
|
575
571
|
dataSelectors: [{
|
|
576
572
|
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
|
|
577
573
|
value: 'majorValue'
|
|
@@ -679,6 +675,10 @@ exports.defaultContext = {
|
|
|
679
675
|
}, {
|
|
680
676
|
from: 80,
|
|
681
677
|
value: '#118832'
|
|
678
|
+
}],
|
|
679
|
+
majorColorMatchConfig: [{
|
|
680
|
+
match: '',
|
|
681
|
+
value: '#5C33FF'
|
|
682
682
|
}]
|
|
683
683
|
};
|
|
684
684
|
|
|
@@ -807,7 +807,8 @@ var StaticMajorAndTrendLayout = [[{
|
|
|
807
807
|
/* 60 */,
|
|
808
808
|
/* 61 */,
|
|
809
809
|
/* 62 */,
|
|
810
|
-
/* 63
|
|
810
|
+
/* 63 */,
|
|
811
|
+
/* 64 */
|
|
811
812
|
/***/ (function(module, exports, __webpack_require__) {
|
|
812
813
|
|
|
813
814
|
"use strict";
|
|
@@ -835,7 +836,7 @@ var StaticMajorAndTrendLayout_1 = __webpack_require__(36);
|
|
|
835
836
|
|
|
836
837
|
var StaticBackgroundColorEditor_1 = __webpack_require__(16);
|
|
837
838
|
|
|
838
|
-
var StaticIconColorEditor_1 = __webpack_require__(
|
|
839
|
+
var StaticIconColorEditor_1 = __webpack_require__(65);
|
|
839
840
|
|
|
840
841
|
var StaticMajorColorEditor_1 = __webpack_require__(25);
|
|
841
842
|
|
|
@@ -1118,15 +1119,13 @@ var editorConfig = [{
|
|
|
1118
1119
|
trendValue: singleValueContext_1.defaultContext.trendColorConfig,
|
|
1119
1120
|
majorValue: singleValueContext_1.defaultContext.majorColorConfig
|
|
1120
1121
|
}
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
// },
|
|
1129
|
-
],
|
|
1122
|
+
}, {
|
|
1123
|
+
label: i18n_1._('Matches'),
|
|
1124
|
+
value: 'matchValue',
|
|
1125
|
+
defaults: {
|
|
1126
|
+
majorValue: singleValueContext_1.defaultContext.majorColorMatchConfig
|
|
1127
|
+
}
|
|
1128
|
+
}],
|
|
1130
1129
|
dataSelectors: [{
|
|
1131
1130
|
label: i18n_1._('Major Value'),
|
|
1132
1131
|
value: 'majorValue'
|
|
@@ -1199,7 +1198,7 @@ var config = {
|
|
|
1199
1198
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
1200
1199
|
|
|
1201
1200
|
/***/ }),
|
|
1202
|
-
/*
|
|
1201
|
+
/* 65 */
|
|
1203
1202
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1204
1203
|
|
|
1205
1204
|
"use strict";
|
|
@@ -1208,7 +1207,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1208
1207
|
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
|
|
1209
1208
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
|
|
1210
1209
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
|
1211
|
-
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
1210
|
+
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
|
|
1212
1211
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__);
|
|
1213
1212
|
/* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
1214
1213
|
/* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///./src/common/utils/configUtils.ts","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///external \"lodash\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///./src/common/editorConfig/StaticBackgroundColorEditor.js","webpack:///external \"@splunk/visualizations-shared/colorConstants\"","webpack:///./src/common/editorConfig/DynamicMajorColorEditor.js","webpack:///./src/common/editorConfig/DynamicTrendColorEditor.js","webpack:///./src/common/editorConfig/DynamicBackgroundColorEditor.js","webpack:///./src/common/editorConfig/StaticMajorColorEditor.js","webpack:///./src/common/editorConfig/StaticTrendColorEditor.js","webpack:///./src/common/configContext/singleValueContext.ts","webpack:///./src/common/editorConfig/StaticMajorAndTrendLayout.js","webpack:///./src/SingleValueIcon/config.ts","webpack:///./src/common/editorConfig/StaticIconColorEditor.js"],"names":["StaticBackgroundColorEditor","label","_","option","editor","showEditor","options","isDynamicOption","getDynamicMajorColorEditor","defaultContext","defaultPalettesConfig","context","editorProps","labelPosition","flyoutTitle","formatters","value","defaults","majorValue","majorColorConfig","dataSelectors","getDynamicTrendColorEditor","trendValue","trendColorConfig","getDynamicBackgroundColorEditor","StaticMajorColorEditor","StaticTrendColorEditor","isDisabled","StaticMajorAndTrendLayout","values","min","max","placeholder","StaticIconColorEditor","palette"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,kD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;AACA;;AAEA;;AAUA,IAAM,qBAAqB,GAAG;AAC1B,MAAI,EAAE,QADoB;AAE1B,SAAO,EAAE;AAFiB,CAA9B;AAKA;;;;AAIG;;AACH,SAAS,sCAAT,CACI,aADJ,EACwD;AAEpD,MAAM,qBAAqB,GAAkB,EAA7C;AACA,QAAM,CAAC,IAAP,CAA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C,+DAAC,CADZ,aACY,CADZ;AAEIC,QAAM,EAFV;AAGIC,QAAM,EAHV;AAIIC,YAAU,EAAE;AAAA,QAAGC,OAAH;AAAA,WAAiB,CAACC,0EAAe,CAACD,OAAO,CAAzC,SAAiC,CAAjC;AAJhB;AAKIM,aAAW,EAAE;AACTC,iBAAa,EADJ;AAETG,SAAK,EAFI;AAGTkB,WAAO;AAHE;AALjB,CAD0B,CAA9B;AAcA,sF","file":"SingleValueIcon.config.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 63);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport type { JSONSchema7Definition } from 'json-schema';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\n}\n\nconst dynamicOptionsDSLType = {\n type: 'string',\n pattern: DYNAMIC_OPTIONS_DSL_PATTERN,\n} as const;\n\n/**\n * Helper function to extend an options schema with dynamic options DSL\n * @param optionsSchema a visualization's options schema\n * @returns an updated options schema that additionally allows strings starting with > for each option\n */\nfunction enhanceOptionsSchemaWithDynamicOptions(\n optionsSchema: OptionsSchema | JSONSchema7Definition\n): OptionsSchema {\n const enhancedOptionsSchema: OptionsSchema = {};\n Object.keys(optionsSchema).forEach((key): void => {\n const {\n // The next a few are schema annotations, we should leave them as is.\n // Note: in reality we don't use `readOnly`, `writeOnly` or `examples`, but they are listed here for completeness.\n // Ref: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01\n title,\n description,\n readOnly,\n writeOnly,\n examples,\n default: defaultValue,\n // The next a few need special care\n type,\n properties,\n patternProperties,\n // The rest should be handled together\n ...remainingSchemaEntry\n } = optionsSchema[key];\n\n const annotations = {\n ...(title !== undefined && { title }),\n ...(description !== undefined && { description }),\n ...(readOnly !== undefined && { readOnly }),\n ...(writeOnly !== undefined && { writeOnly }),\n ...(examples !== undefined && { examples }),\n ...(defaultValue !== undefined && { default: defaultValue }),\n };\n\n if (type === 'object') {\n enhancedOptionsSchema[key] = {\n ...remainingSchemaEntry,\n ...annotations,\n type,\n ...(properties && { properties: enhanceOptionsSchemaWithDynamicOptions(properties) }),\n };\n if (patternProperties) {\n let enhancedPatternProperties = {};\n Object.keys(patternProperties).forEach((opt): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [opt]: patternProperties[opt] }),\n };\n });\n enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;\n }\n } else {\n enhancedOptionsSchema[key] = {\n ...annotations,\n anyOf: [\n // we can't assume `type` is always there because there are `enum` and `const`.\n { ...(type !== undefined && { type }), ...remainingSchemaEntry },\n dynamicOptionsDSLType,\n ],\n };\n }\n });\n return enhancedOptionsSchema;\n}\n\n/**\n * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n */\nfunction enhanceConfig(vizConfig: VizConfig): VizConfig {\n const enhancedConfig: VizConfig = vizConfig;\n if (vizConfig.supports.indexOf(VizBehavior.DYNAMIC_OPTIONS) !== -1) {\n enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);\n }\n return enhancedConfig;\n}\n\nfunction isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\n// private helpers to improve readability of getInitialPreset\n// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset\n\n/**\n * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset\n * 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\n * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext\n * 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\n *\n * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values\n */\nfunction hasCompatibleContexts(\n vizContext: { [configKey: string]: any },\n presetContext: { [configKey: string]: any }\n): boolean {\n const presetContextKeys = Object.keys(presetContext);\n return presetContextKeys.every(\n (contextKey): boolean =>\n (presetContext[contextKey] === undefined && vizContext[contextKey] === undefined) ||\n (presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined)\n );\n}\n\n/**\n * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions\n */\nfunction hasCompatibleOptions(\n vizOptions: { [configKey: string]: any },\n presetOptions: { [configKey: string]: any }\n): boolean {\n const presetOptionKeys = Object.keys(presetOptions);\n return presetOptionKeys.every(\n (optionKey): boolean =>\n isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey])\n );\n}\n\n/**\n * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions\n * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure\n *\n * @param {Object} vizContext - the current vizContext definition\n * @param {Object} vizOptions - the current vizOptions definition\n * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset\n */\nfunction getInitialPreset(\n vizContext: { [configKey: string]: any },\n vizOptions: { [configKey: string]: any },\n presets: PresetEntry[]\n): PresetEntry | null {\n return presets.find((preset): boolean => {\n const presetContext = get(preset, ['value', 'context'], {});\n const presetOptions = get(preset, ['value', 'options'], {});\n const presetContextKeys = Object.keys(presetContext);\n const presetOptionKeys = Object.keys(presetOptions);\n\n // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)\n // if not, then the preset is invalid in config.ts\n if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;\n\n return (\n hasCompatibleContexts(vizContext, presetContext) &&\n hasCompatibleOptions(vizOptions, presetOptions)\n );\n });\n}\n\ninterface PrecisionOption {\n label: string;\n value: number;\n}\n\n/**\n * generates number precision values for a Select editor\n *\n * @param {Number} numPrecisionValues - number of integer precision values to generate\n * @returns {{ label: string; value; string }[]} array of { label, value } tuples\n */\nfunction generatePrecisionValues(numPrecisionValues: number): PrecisionOption[] {\n return range(0, numPrecisionValues + 1).map(\n (i): PrecisionOption => ({\n label: `${i} (0${i > 0 ? '.' : ''}${'0'.repeat(i)})`, // e.g. 0.000 for numPrecisionValues = 3\n value: i,\n })\n );\n}\n\nexport {\n enhanceConfig,\n enhanceOptionsSchemaWithDynamicOptions,\n isDynamicOption,\n getInitialPreset,\n generatePrecisionValues,\n};\n","export enum VizBehavior {\n /**\n * Dynamic Options Behavior.\n * This allows visualization options to be powered by data\n *\n * **Example**\n *\n * sparklineValues: \">primary|seriesByIndex(0)\"\n * would configure sparklineValues with an array of data points\n * coming from the first series in the primary datasource\n *\n */\n DYNAMIC_OPTIONS = 'dynamic-options',\n EVENTS = 'events',\n /**\n * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is\n * missing.\n * @type {string}\n */\n PLACEHOLDER = 'placeholder',\n PAGE_AND_SORT = 'page-and-sort',\n}\n","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","module.exports = require(\"lodash\");","export enum VizCategory {\n SINGLE_VALUE = 'Single Value',\n TRENDS = 'Trends',\n COMPARISONS = 'Comparisons',\n TABLE = 'Table',\n GAUGE = 'Gauge',\n DISTRIBUTIONS = 'Distributions',\n CHOROPLETH = 'Choropleth Maps',\n SHAPES = 'Shapes',\n MISC = 'misc',\n FLOW = 'Flow',\n CORRELATION = 'Correlation',\n SPATIAL = 'Spatial',\n}\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@splunk/themes/pick\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticBackgroundColorEditor = {\n label: _('Static Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.backgroundColor),\n};\n\nexport default StaticBackgroundColorEditor;\n","module.exports = require(\"@splunk/visualizations-shared/colorConstants\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicMajorColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Major Value'),\n option: 'majorColor',\n context: 'majorColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.majorColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Major Value'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n },\n },\n // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor\n // {\n // label: _('Matches'),\n // value: 'matchValue',\n // defaults: {\n // majorValue: [{ match: 'foo', value: '#f00' }],\n // },\n // },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicTrendColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Trend'),\n option: 'trendColor',\n context: 'trendColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.trendColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Trend'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n trendValue: defaultContext.trendColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicBackgroundColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Background'),\n option: 'backgroundColor',\n context: 'backgroundColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.backgroundColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Background'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n trendValue: defaultContext.trendColorConfig,\n },\n },\n // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor\n // {\n // label: _('Matches'),\n // value: 'matchValue',\n // defaults: {\n // majorValue: [{ match: 'foo', value: '#f00' }],\n // },\n // },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticMajorColorEditor = {\n label: _('Static Major Value'),\n option: 'majorColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.majorColor),\n};\n\nexport default StaticMajorColorEditor;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticTrendColorEditor = {\n label: _('Static Trend'),\n option: 'trendColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.trendColor),\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n};\n\nexport default StaticTrendColorEditor;\n","import { DefaultContext } from '../interfaces/DefaultContext';\n\nexport const defaultContext: DefaultContext = {\n trendColorConfig: [\n {\n to: 0,\n value: '#9E2520',\n },\n {\n from: 0,\n value: '#1C6B2D',\n },\n ],\n majorColorConfig: [\n { to: 20, value: '#D41F1F' },\n { from: 20, to: 40, value: '#D94E17' },\n { from: 40, to: 60, value: '#CBA700' },\n { from: 60, to: 80, value: '#669922' },\n { from: 80, value: '#118832' },\n ],\n};\n","import { _ } from '@splunk/ui-utils/i18n';\n\nconst StaticMajorAndTrendLayout = [\n [\n {\n label: 'Unit Position', // todo: we need a new editor combining unit and position\n option: 'unitPosition',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Before'), value: 'before' },\n { label: _('After'), value: 'after' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Unit Label'),\n option: 'unit',\n editor: 'editor.text',\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Precision'),\n option: 'numberPrecision',\n editor: 'editor.number',\n editorProps: {\n min: 0,\n max: 20,\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Major Value Size (px)'),\n option: 'majorFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Trend Display'),\n option: 'trendDisplay',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Percent'), value: 'percent' },\n { label: _('Absolute'), value: 'absolute' },\n { label: _('Off'), value: 'off' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Trend Size (px)'),\n option: 'trendFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n },\n ],\n];\n\nexport default StaticMajorAndTrendLayout;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_OR_TOKEN_PATTERN, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { defaultContext } from '../common/configContext/singleValueContext';\nimport StaticMajorAndTrendLayout from '../common/editorConfig/StaticMajorAndTrendLayout';\nimport StaticBackgroundColorEditor from '../common/editorConfig/StaticBackgroundColorEditor';\nimport StaticIconColorEditor from '../common/editorConfig/StaticIconColorEditor';\nimport StaticMajorColorEditor from '../common/editorConfig/StaticMajorColorEditor';\nimport StaticTrendColorEditor from '../common/editorConfig/StaticTrendColorEditor';\nimport { getDynamicMajorColorEditor } from '../common/editorConfig/DynamicMajorColorEditor';\nimport { getDynamicTrendColorEditor } from '../common/editorConfig/DynamicTrendColorEditor';\nimport { getDynamicBackgroundColorEditor } from '../common/editorConfig/DynamicBackgroundColorEditor';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { PresetEntry, enhanceConfig, getInitialPreset, isDynamicOption } from '../common/utils/configUtils';\nimport { VizCategory } from '../common/interfaces/VizCategory';\n\nconst dataContract: DataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [],\n initialRequestParams: {\n primary: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 250,\n initialHeight: 250,\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: 'transparent',\n description:\n 'Specify the color for the background. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”.',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n icon: { default: 'default', description: 'Specify an icon.', type: 'string' },\n iconColor: {\n default: null,\n description:\n 'Specify the color for the icon. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n iconOpacity: {\n default: 1,\n description: 'Specify the opacity for the icon using a number between 0 and 1 (inclusive).',\n type: 'number',\n },\n iconPosition: {\n default: 'before',\n description: 'Specify where to display the icon in relation to the major value.',\n type: 'string',\n },\n majorColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n majorFontSize: {\n description:\n 'Specify the font size (px) for the major value. By default the major value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n majorValue: {\n default: '> primary|seriesByPrioritizedTypes(\"number\", \"string\", \"time\")|lastPoint()',\n description: 'The major value to display in the visualization.',\n type: ['string', 'number'],\n },\n majorValueField: {\n default: '> majorValue | getField()',\n description: 'The field name of major value.',\n type: 'string',\n },\n numberPrecision: {\n default: 0,\n maximum: 20,\n minimum: 0,\n description:\n 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. The maximum value is 20.',\n type: 'number',\n },\n shouldAbbreviateTrendValue: {\n default: false,\n description:\n 'Specify whether to abbreviate the trend value to 2 decimal points. A magnitude unit will be displayed.',\n type: 'boolean',\n },\n shouldUseThousandSeparators: {\n default: true,\n description: 'Specify whether numeric values use commas as thousandths separators.',\n type: 'boolean',\n },\n showValue: {\n default: true,\n description: 'Specify whether to enable or disable the value and trend indicator displays.',\n type: 'boolean',\n },\n trendColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n trendDisplay: {\n default: 'absolute',\n description: 'Specify whether the trend value is displayed as a percentage or an absolute count.',\n pattern: getPattern(['off', 'percent', 'absolute']),\n type: 'string',\n },\n trendFontSize: {\n description:\n 'Specify the font size (px) for the trend value. By default the trend value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n trendValue: {\n default: '> primary|seriesByPrioritizedTypes(\"number\", \"string\", \"time\")|delta(-2)', // todo: may need update delta method\n description: 'The trend value to display in the visualization.',\n type: 'number',\n },\n underLabel: { description: 'Specify the text that appears below the major value.', type: 'string' },\n unit: {\n description: 'Specify text to show next to the major value.',\n type: 'string',\n },\n unitPosition: {\n default: 'after',\n description: 'Specify whether the unit text should appear before or after the major value.',\n pattern: getPattern(['before', 'after']),\n type: 'string',\n },\n};\n\nconst basePresetContext = {\n iconColorEditorConfig: undefined,\n majorColorEditorConfig: undefined,\n trendColorEditorConfig: undefined,\n backgroundColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n iconColor: undefined,\n majorColor: undefined,\n trendColor: undefined,\n backgroundColor: undefined,\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'singleValueIcon.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Icon'),\n name: 'singleValueIcon.icon',\n value: {\n context: {\n ...basePresetContext,\n iconColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n iconColor: '> majorValue | rangeValue(iconColorEditorConfig)',\n },\n },\n },\n {\n label: _('Major Value'),\n name: 'singleValueIcon.majorValue',\n value: {\n context: {\n ...basePresetContext,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n },\n },\n },\n {\n label: _('Trend'),\n name: 'singleValueIcon.trend',\n value: {\n context: {\n ...basePresetContext,\n trendColorEditorConfig: defaultContext.trendColorConfig,\n },\n options: {\n ...basePresetOptions,\n trendColor: '> trendValue | rangeValue(trendColorEditorConfig)',\n },\n },\n },\n {\n label: _('Icon & Major Value'),\n name: 'singleValueIcon.iconAndMajorValue',\n value: {\n context: {\n ...basePresetContext,\n iconColorEditorConfig: defaultContext.majorColorConfig,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n iconColor: '> majorValue | rangeValue(iconColorEditorConfig)',\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n },\n },\n },\n {\n label: _('Background'),\n name: 'singleValueIcon.background',\n value: {\n context: {\n ...basePresetContext,\n backgroundColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n backgroundColor: '> majorValue | rangeValue(backgroundColorEditorConfig)',\n },\n },\n },\n];\n\n/**\n * TODO\n * common theme variables such as enterprise.defaultFontColor\n * that are repeated in multiple viz config themes should be DRYd up.\n */\nconst themes = {\n defaultFontColor: props =>\n pick({\n enterprise: {\n dark: variables.textColor(props),\n light: variables.gray20(props),\n },\n prisma: variables.contentColorActive(props),\n })(props),\n defaultBlockFontColor: props =>\n pick({\n enterprise: variables.white(props),\n prisma: variables.contentColorActive(props),\n })(props),\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Major Value & Trend'),\n layout: [\n [\n {\n label: _('Enable'),\n option: 'showValue',\n editor: 'editor.toggle',\n },\n ],\n ...StaticMajorAndTrendLayout,\n ],\n },\n {\n label: _('Coloring'),\n layout: [\n [\n {\n label: 'Dynamic Elements',\n key: 'presetSelector',\n editor: 'editor.presetSelector',\n editorProps: {\n presets,\n value: ({ context, options }) => {\n const initialPreset = getInitialPreset(context, options, presets);\n return (initialPreset && initialPreset.label) || null;\n },\n },\n },\n ],\n StaticIconColorEditor,\n [\n {\n label: _('Dynamic Icon'),\n option: 'iconColor',\n context: 'iconColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.iconColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: 'Dynamic Coloring: Icon',\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n trendValue: defaultContext.trendColorConfig,\n majorValue: defaultContext.majorColorConfig,\n },\n },\n // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor\n // {\n // label: _('Matches'),\n // value: 'matchValue',\n // defaults: {\n // majorValue: [{ match: 'foo', value: '#f00' }],\n // },\n // },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n },\n ],\n [\n {\n ...StaticMajorColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicMajorColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticTrendColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicTrendColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticBackgroundColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicBackgroundColorEditor({ defaultContext, defaultPalettesConfig })],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.singlevalueicon',\n /**\n * viz name\n */\n name: 'Single Value Icon',\n category: VizCategory.SINGLE_VALUE,\n /**\n * viz icon\n */\n icon: null,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'value.click': {\n description: 'trigger when user clicks major value or icon',\n payloadKeys: ['majorValue', 'trendValue', 'icon'],\n },\n },\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.EVENTS],\n themes,\n};\n\nexport default enhanceConfig(config);\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_EDITOR_PALETTE } from '@splunk/visualizations-shared/colorConstants';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticIconColorEditor = [\n {\n label: _('Static Icon'),\n option: 'iconColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.iconColor),\n editorProps: {\n labelPosition: 'left',\n value: null,\n palette: [null, ...COLOR_EDITOR_PALETTE],\n },\n },\n];\n\nexport default StaticIconColorEditor;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///./src/common/utils/configUtils.ts","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///external \"lodash\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///./src/common/editorConfig/StaticBackgroundColorEditor.js","webpack:///external \"@splunk/visualizations-shared/colorConstants\"","webpack:///./src/common/editorConfig/DynamicMajorColorEditor.js","webpack:///./src/common/editorConfig/DynamicTrendColorEditor.js","webpack:///./src/common/editorConfig/DynamicBackgroundColorEditor.js","webpack:///./src/common/editorConfig/StaticMajorColorEditor.js","webpack:///./src/common/editorConfig/StaticTrendColorEditor.js","webpack:///./src/common/configContext/singleValueContext.ts","webpack:///./src/common/editorConfig/StaticMajorAndTrendLayout.js","webpack:///./src/SingleValueIcon/config.ts","webpack:///./src/common/editorConfig/StaticIconColorEditor.js"],"names":["StaticBackgroundColorEditor","label","_","option","editor","showEditor","options","isDynamicOption","getDynamicMajorColorEditor","defaultContext","defaultPalettesConfig","context","editorProps","labelPosition","flyoutTitle","formatters","value","defaults","majorValue","majorColorConfig","majorColorMatchConfig","dataSelectors","getDynamicTrendColorEditor","trendValue","trendColorConfig","getDynamicBackgroundColorEditor","StaticMajorColorEditor","StaticTrendColorEditor","isDisabled","StaticMajorAndTrendLayout","values","min","max","placeholder","StaticIconColorEditor","palette"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,kD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;AACA;;AAEA;;AAUA,IAAM,qBAAqB,GAAG;AAC1B,MAAI,EAAE,QADoB;AAE1B,SAAO,EAAE;AAFiB,CAA9B;AAKA;;;;AAIG;;AACH,SAAS,sCAAT,CACI,aADJ,EACwD;AAEpD,MAAM,qBAAqB,GAAkB,EAA7C;AACA,QAAM,CAAC,IAAP,CAAY,aAAZ,EAA2B,OAA3B,CAAmC,UAAC,GAAD,EAAc;AACvC,aAgBF,aAAa,CAhBX,GAgBW,CAhBX;AAAA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YAAf,EAA6B,MAA7B;AAFF;AADX,GAnBc;AAyBtB,UAAQ,EAAE,CAAC,0BAAY,eAAb,EAA8B,0BAAY,MAA1C,CAzBY;AA0BtB,QAAM,EAAN;AA1BsB,CAA1B;AA6BA,kBAAe,4BAAc,MAAd,CAAf,C;;;;;;;;;;;;;;;;;ACvZA;AACA;AACA;AAEA,IAAM4B,qBAAqB,GAAG,CAC1B;AACIjC,OAAK,EAAEC,+DAAC,CADZ,aACY,CADZ;AAEIC,QAAM,EAFV;AAGIC,QAAM,EAHV;AAIIC,YAAU,EAAE;AAAA,QAAGC,OAAH;AAAA,WAAiB,CAACC,0EAAe,CAACD,OAAO,CAAzC,SAAiC,CAAjC;AAJhB;AAKIM,aAAW,EAAE;AACTC,iBAAa,EADJ;AAETG,SAAK,EAFI;AAGTmB,WAAO;AAHE;AALjB,CAD0B,CAA9B;AAcA,sF","file":"SingleValueIcon.config.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 64);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport type { JSONSchema7Definition } from 'json-schema';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\n}\n\nconst dynamicOptionsDSLType = {\n type: 'string',\n pattern: DYNAMIC_OPTIONS_DSL_PATTERN,\n} as const;\n\n/**\n * Helper function to extend an options schema with dynamic options DSL\n * @param optionsSchema a visualization's options schema\n * @returns an updated options schema that additionally allows strings starting with > for each option\n */\nfunction enhanceOptionsSchemaWithDynamicOptions(\n optionsSchema: OptionsSchema | JSONSchema7Definition\n): OptionsSchema {\n const enhancedOptionsSchema: OptionsSchema = {};\n Object.keys(optionsSchema).forEach((key): void => {\n const {\n // The next a few are schema annotations, we should leave them as is.\n // Note: in reality we don't use `readOnly`, `writeOnly` or `examples`, but they are listed here for completeness.\n // Ref: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01\n title,\n description,\n readOnly,\n writeOnly,\n examples,\n default: defaultValue,\n // The next a few need special care\n type,\n properties,\n patternProperties,\n // The rest should be handled together\n ...remainingSchemaEntry\n } = optionsSchema[key];\n\n const annotations = {\n ...(title !== undefined && { title }),\n ...(description !== undefined && { description }),\n ...(readOnly !== undefined && { readOnly }),\n ...(writeOnly !== undefined && { writeOnly }),\n ...(examples !== undefined && { examples }),\n ...(defaultValue !== undefined && { default: defaultValue }),\n };\n\n if (type === 'object') {\n enhancedOptionsSchema[key] = {\n ...remainingSchemaEntry,\n ...annotations,\n type,\n ...(properties && { properties: enhanceOptionsSchemaWithDynamicOptions(properties) }),\n };\n if (patternProperties) {\n let enhancedPatternProperties = {};\n Object.keys(patternProperties).forEach((opt): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [opt]: patternProperties[opt] }),\n };\n });\n enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;\n }\n } else {\n enhancedOptionsSchema[key] = {\n ...annotations,\n anyOf: [\n // we can't assume `type` is always there because there are `enum` and `const`.\n { ...(type !== undefined && { type }), ...remainingSchemaEntry },\n dynamicOptionsDSLType,\n ],\n };\n }\n });\n return enhancedOptionsSchema;\n}\n\n/**\n * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n */\nfunction enhanceConfig(vizConfig: VizConfig): VizConfig {\n const enhancedConfig: VizConfig = vizConfig;\n if (vizConfig.supports.indexOf(VizBehavior.DYNAMIC_OPTIONS) !== -1) {\n enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);\n }\n return enhancedConfig;\n}\n\nfunction isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\n// private helpers to improve readability of getInitialPreset\n// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset\n\n/**\n * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset\n * 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\n * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext\n * 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\n *\n * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values\n */\nfunction hasCompatibleContexts(\n vizContext: { [configKey: string]: any },\n presetContext: { [configKey: string]: any }\n): boolean {\n const presetContextKeys = Object.keys(presetContext);\n return presetContextKeys.every(\n (contextKey): boolean =>\n (presetContext[contextKey] === undefined && vizContext[contextKey] === undefined) ||\n (presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined)\n );\n}\n\n/**\n * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions\n */\nfunction hasCompatibleOptions(\n vizOptions: { [configKey: string]: any },\n presetOptions: { [configKey: string]: any }\n): boolean {\n const presetOptionKeys = Object.keys(presetOptions);\n return presetOptionKeys.every(\n (optionKey): boolean =>\n isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey])\n );\n}\n\n/**\n * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions\n * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure\n *\n * @param {Object} vizContext - the current vizContext definition\n * @param {Object} vizOptions - the current vizOptions definition\n * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset\n */\nfunction getInitialPreset(\n vizContext: { [configKey: string]: any },\n vizOptions: { [configKey: string]: any },\n presets: PresetEntry[]\n): PresetEntry | null {\n return presets.find((preset): boolean => {\n const presetContext = get(preset, ['value', 'context'], {});\n const presetOptions = get(preset, ['value', 'options'], {});\n const presetContextKeys = Object.keys(presetContext);\n const presetOptionKeys = Object.keys(presetOptions);\n\n // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)\n // if not, then the preset is invalid in config.ts\n if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;\n\n return (\n hasCompatibleContexts(vizContext, presetContext) &&\n hasCompatibleOptions(vizOptions, presetOptions)\n );\n });\n}\n\ninterface PrecisionOption {\n label: string;\n value: number;\n}\n\n/**\n * generates number precision values for a Select editor\n *\n * @param {Number} numPrecisionValues - number of integer precision values to generate\n * @returns {{ label: string; value; string }[]} array of { label, value } tuples\n */\nfunction generatePrecisionValues(numPrecisionValues: number): PrecisionOption[] {\n return range(0, numPrecisionValues + 1).map(\n (i): PrecisionOption => ({\n label: `${i} (0${i > 0 ? '.' : ''}${'0'.repeat(i)})`, // e.g. 0.000 for numPrecisionValues = 3\n value: i,\n })\n );\n}\n\nexport {\n enhanceConfig,\n enhanceOptionsSchemaWithDynamicOptions,\n isDynamicOption,\n getInitialPreset,\n generatePrecisionValues,\n};\n","export enum VizBehavior {\n /**\n * Dynamic Options Behavior.\n * This allows visualization options to be powered by data\n *\n * **Example**\n *\n * sparklineValues: \">primary|seriesByIndex(0)\"\n * would configure sparklineValues with an array of data points\n * coming from the first series in the primary datasource\n *\n */\n DYNAMIC_OPTIONS = 'dynamic-options',\n EVENTS = 'events',\n /**\n * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is\n * missing.\n * @type {string}\n */\n PLACEHOLDER = 'placeholder',\n PAGE_AND_SORT = 'page-and-sort',\n}\n","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","module.exports = require(\"lodash\");","export enum VizCategory {\n SINGLE_VALUE = 'Single Value',\n TRENDS = 'Trends',\n COMPARISONS = 'Comparisons',\n TABLE = 'Table',\n GAUGE = 'Gauge',\n DISTRIBUTIONS = 'Distributions',\n CHOROPLETH = 'Choropleth Maps',\n SHAPES = 'Shapes',\n MISC = 'misc',\n FLOW = 'Flow',\n CORRELATION = 'Correlation',\n SPATIAL = 'Spatial',\n}\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@splunk/themes/pick\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticBackgroundColorEditor = {\n label: _('Static Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.backgroundColor),\n};\n\nexport default StaticBackgroundColorEditor;\n","module.exports = require(\"@splunk/visualizations-shared/colorConstants\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicMajorColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Major Value'),\n option: 'majorColor',\n context: 'majorColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.majorColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Major Value'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n },\n },\n {\n label: _('Matches'),\n value: 'matchValue',\n defaults: {\n majorValue: defaultContext.majorColorMatchConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicTrendColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Trend'),\n option: 'trendColor',\n context: 'trendColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.trendColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Trend'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n trendValue: defaultContext.trendColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicBackgroundColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Background'),\n option: 'backgroundColor',\n context: 'backgroundColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.backgroundColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Background'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n trendValue: defaultContext.trendColorConfig,\n },\n },\n {\n label: _('Matches'),\n value: 'matchValue',\n defaults: {\n majorValue: defaultContext.majorColorMatchConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticMajorColorEditor = {\n label: _('Static Major Value'),\n option: 'majorColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.majorColor),\n};\n\nexport default StaticMajorColorEditor;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticTrendColorEditor = {\n label: _('Static Trend'),\n option: 'trendColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.trendColor),\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n};\n\nexport default StaticTrendColorEditor;\n","import { DefaultContext } from '../interfaces/DefaultContext';\n\nexport const defaultContext: DefaultContext = {\n trendColorConfig: [\n {\n to: 0,\n value: '#9E2520',\n },\n {\n from: 0,\n value: '#1C6B2D',\n },\n ],\n majorColorConfig: [\n { to: 20, value: '#D41F1F' },\n { from: 20, to: 40, value: '#D94E17' },\n { from: 40, to: 60, value: '#CBA700' },\n { from: 60, to: 80, value: '#669922' },\n { from: 80, value: '#118832' },\n ],\n majorColorMatchConfig: [{ match: '', value: '#5C33FF' }],\n};\n","import { _ } from '@splunk/ui-utils/i18n';\n\nconst StaticMajorAndTrendLayout = [\n [\n {\n label: 'Unit Position', // todo: we need a new editor combining unit and position\n option: 'unitPosition',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Before'), value: 'before' },\n { label: _('After'), value: 'after' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Unit Label'),\n option: 'unit',\n editor: 'editor.text',\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Precision'),\n option: 'numberPrecision',\n editor: 'editor.number',\n editorProps: {\n min: 0,\n max: 20,\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Major Value Size (px)'),\n option: 'majorFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Trend Display'),\n option: 'trendDisplay',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Percent'), value: 'percent' },\n { label: _('Absolute'), value: 'absolute' },\n { label: _('Off'), value: 'off' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Trend Size (px)'),\n option: 'trendFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n },\n ],\n];\n\nexport default StaticMajorAndTrendLayout;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_OR_TOKEN_PATTERN, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { defaultContext } from '../common/configContext/singleValueContext';\nimport StaticMajorAndTrendLayout from '../common/editorConfig/StaticMajorAndTrendLayout';\nimport StaticBackgroundColorEditor from '../common/editorConfig/StaticBackgroundColorEditor';\nimport StaticIconColorEditor from '../common/editorConfig/StaticIconColorEditor';\nimport StaticMajorColorEditor from '../common/editorConfig/StaticMajorColorEditor';\nimport StaticTrendColorEditor from '../common/editorConfig/StaticTrendColorEditor';\nimport { getDynamicMajorColorEditor } from '../common/editorConfig/DynamicMajorColorEditor';\nimport { getDynamicTrendColorEditor } from '../common/editorConfig/DynamicTrendColorEditor';\nimport { getDynamicBackgroundColorEditor } from '../common/editorConfig/DynamicBackgroundColorEditor';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { PresetEntry, enhanceConfig, getInitialPreset, isDynamicOption } from '../common/utils/configUtils';\nimport { VizCategory } from '../common/interfaces/VizCategory';\n\nconst dataContract: DataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [],\n initialRequestParams: {\n primary: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 250,\n initialHeight: 250,\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: 'transparent',\n description:\n 'Specify the color for the background. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”.',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n icon: { default: 'default', description: 'Specify an icon.', type: 'string' },\n iconColor: {\n default: null,\n description:\n 'Specify the color for the icon. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n iconOpacity: {\n default: 1,\n description: 'Specify the opacity for the icon using a number between 0 and 1 (inclusive).',\n type: 'number',\n },\n iconPosition: {\n default: 'before',\n description: 'Specify where to display the icon in relation to the major value.',\n type: 'string',\n },\n majorColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n majorFontSize: {\n description:\n 'Specify the font size (px) for the major value. By default the major value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n majorValue: {\n default: '> primary|seriesByPrioritizedTypes(\"number\", \"string\", \"time\")|lastPoint()',\n description: 'The major value to display in the visualization.',\n type: ['string', 'number'],\n },\n majorValueField: {\n default: '> majorValue | getField()',\n description: 'The field name of major value.',\n type: 'string',\n },\n numberPrecision: {\n default: 0,\n maximum: 20,\n minimum: 0,\n description:\n 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. The maximum value is 20.',\n type: 'number',\n },\n shouldAbbreviateTrendValue: {\n default: false,\n description:\n 'Specify whether to abbreviate the trend value to 2 decimal points. A magnitude unit will be displayed.',\n type: 'boolean',\n },\n shouldUseThousandSeparators: {\n default: true,\n description: 'Specify whether numeric values use commas as thousandths separators.',\n type: 'boolean',\n },\n showValue: {\n default: true,\n description: 'Specify whether to enable or disable the value and trend indicator displays.',\n type: 'boolean',\n },\n trendColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n trendDisplay: {\n default: 'absolute',\n description: 'Specify whether the trend value is displayed as a percentage or an absolute count.',\n pattern: getPattern(['off', 'percent', 'absolute']),\n type: 'string',\n },\n trendFontSize: {\n description:\n 'Specify the font size (px) for the trend value. By default the trend value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n trendValue: {\n default: '> primary|seriesByPrioritizedTypes(\"number\", \"string\", \"time\")|delta(-2)', // todo: may need update delta method\n description: 'The trend value to display in the visualization.',\n type: 'number',\n },\n underLabel: { description: 'Specify the text that appears below the major value.', type: 'string' },\n unit: {\n description: 'Specify text to show next to the major value.',\n type: 'string',\n },\n unitPosition: {\n default: 'after',\n description: 'Specify whether the unit text should appear before or after the major value.',\n pattern: getPattern(['before', 'after']),\n type: 'string',\n },\n};\n\nconst basePresetContext = {\n iconColorEditorConfig: undefined,\n majorColorEditorConfig: undefined,\n trendColorEditorConfig: undefined,\n backgroundColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n iconColor: undefined,\n majorColor: undefined,\n trendColor: undefined,\n backgroundColor: undefined,\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'singleValueIcon.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Icon'),\n name: 'singleValueIcon.icon',\n value: {\n context: {\n ...basePresetContext,\n iconColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n iconColor: '> majorValue | rangeValue(iconColorEditorConfig)',\n },\n },\n },\n {\n label: _('Major Value'),\n name: 'singleValueIcon.majorValue',\n value: {\n context: {\n ...basePresetContext,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n },\n },\n },\n {\n label: _('Trend'),\n name: 'singleValueIcon.trend',\n value: {\n context: {\n ...basePresetContext,\n trendColorEditorConfig: defaultContext.trendColorConfig,\n },\n options: {\n ...basePresetOptions,\n trendColor: '> trendValue | rangeValue(trendColorEditorConfig)',\n },\n },\n },\n {\n label: _('Icon & Major Value'),\n name: 'singleValueIcon.iconAndMajorValue',\n value: {\n context: {\n ...basePresetContext,\n iconColorEditorConfig: defaultContext.majorColorConfig,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n iconColor: '> majorValue | rangeValue(iconColorEditorConfig)',\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n },\n },\n },\n {\n label: _('Background'),\n name: 'singleValueIcon.background',\n value: {\n context: {\n ...basePresetContext,\n backgroundColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n backgroundColor: '> majorValue | rangeValue(backgroundColorEditorConfig)',\n },\n },\n },\n];\n\n/**\n * TODO\n * common theme variables such as enterprise.defaultFontColor\n * that are repeated in multiple viz config themes should be DRYd up.\n */\nconst themes = {\n defaultFontColor: props =>\n pick({\n enterprise: {\n dark: variables.textColor(props),\n light: variables.gray20(props),\n },\n prisma: variables.contentColorActive(props),\n })(props),\n defaultBlockFontColor: props =>\n pick({\n enterprise: variables.white(props),\n prisma: variables.contentColorActive(props),\n })(props),\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Major Value & Trend'),\n layout: [\n [\n {\n label: _('Enable'),\n option: 'showValue',\n editor: 'editor.toggle',\n },\n ],\n ...StaticMajorAndTrendLayout,\n ],\n },\n {\n label: _('Coloring'),\n layout: [\n [\n {\n label: 'Dynamic Elements',\n key: 'presetSelector',\n editor: 'editor.presetSelector',\n editorProps: {\n presets,\n value: ({ context, options }) => {\n const initialPreset = getInitialPreset(context, options, presets);\n return (initialPreset && initialPreset.label) || null;\n },\n },\n },\n ],\n StaticIconColorEditor,\n [\n {\n label: _('Dynamic Icon'),\n option: 'iconColor',\n context: 'iconColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.iconColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: 'Dynamic Coloring: Icon',\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n trendValue: defaultContext.trendColorConfig,\n majorValue: defaultContext.majorColorConfig,\n },\n },\n {\n label: _('Matches'),\n value: 'matchValue',\n defaults: {\n majorValue: defaultContext.majorColorMatchConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n },\n ],\n [\n {\n ...StaticMajorColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicMajorColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticTrendColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicTrendColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticBackgroundColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicBackgroundColorEditor({ defaultContext, defaultPalettesConfig })],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.singlevalueicon',\n /**\n * viz name\n */\n name: 'Single Value Icon',\n category: VizCategory.SINGLE_VALUE,\n /**\n * viz icon\n */\n icon: null,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'value.click': {\n description: 'trigger when user clicks major value or icon',\n payloadKeys: ['majorValue', 'trendValue', 'icon'],\n },\n },\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.EVENTS],\n themes,\n};\n\nexport default enhanceConfig(config);\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_EDITOR_PALETTE } from '@splunk/visualizations-shared/colorConstants';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticIconColorEditor = [\n {\n label: _('Static Icon'),\n option: 'iconColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.iconColor),\n editorProps: {\n labelPosition: 'left',\n value: null,\n palette: [null, ...COLOR_EDITOR_PALETTE],\n },\n },\n];\n\nexport default StaticIconColorEditor;\n"],"sourceRoot":""}
|