@splunk/visualizations 25.0.1 → 25.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_Background_Color_Red.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_Basic.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_Simulated_Instance.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_for_Numeric_Field_Simulated_Instance.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Dark.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Light.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Background_color_cyan.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_after_default.png +0 -0
  10. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueIcon_Unit_specified_Unit_Position_before.png +0 -0
  11. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Background_Color_white_Under_Label_and_Unit_specified.png +0 -0
  12. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Major_Value_is_null.png +0 -0
  13. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_after_default.png +0 -0
  14. package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValue_Unit_specified_Unit_Position_before.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Events_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  31. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  32. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  33. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  34. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  35. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  36. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  37. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  38. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Background_Color_Light_Blue.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields_with_Highlight.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Show_Placeholder.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Events_Events_With_Options.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_ES.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_after.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_Unit_value_before.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_After.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Set_The_Unit_Before.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_After.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_Unit_Value_Before.png +0 -0
  58. package/Area.config.js +146 -157
  59. package/Area.config.js.map +1 -1
  60. package/Area.js +459 -545
  61. package/Area.js.map +1 -1
  62. package/Bar.config.js +148 -153
  63. package/Bar.config.js.map +1 -1
  64. package/Bar.js +468 -548
  65. package/Bar.js.map +1 -1
  66. package/Bubble.config.js +143 -123
  67. package/Bubble.config.js.map +1 -1
  68. package/Bubble.js +475 -530
  69. package/Bubble.js.map +1 -1
  70. package/ChoroplethSvg.config.js +87 -81
  71. package/ChoroplethSvg.config.js.map +1 -1
  72. package/ChoroplethSvg.js +352 -422
  73. package/ChoroplethSvg.js.map +1 -1
  74. package/Column.config.js +144 -151
  75. package/Column.config.js.map +1 -1
  76. package/Column.js +463 -546
  77. package/Column.js.map +1 -1
  78. package/Ellipse.config.js +86 -80
  79. package/Ellipse.config.js.map +1 -1
  80. package/Ellipse.js +319 -389
  81. package/Ellipse.js.map +1 -1
  82. package/Events.config.js +668 -0
  83. package/Events.config.js.map +1 -0
  84. package/Events.js +3116 -0
  85. package/Events.js.map +1 -0
  86. package/FillerGauge.config.js +94 -87
  87. package/FillerGauge.config.js.map +1 -1
  88. package/FillerGauge.js +352 -415
  89. package/FillerGauge.js.map +1 -1
  90. package/Image.config.js +74 -74
  91. package/Image.config.js.map +1 -1
  92. package/Image.js +713 -801
  93. package/Image.js.map +1 -1
  94. package/Line.config.js +145 -142
  95. package/Line.config.js.map +1 -1
  96. package/Line.js +471 -538
  97. package/Line.js.map +1 -1
  98. package/LinkGraph.config.js +120 -113
  99. package/LinkGraph.config.js.map +1 -1
  100. package/LinkGraph.js +24563 -717
  101. package/LinkGraph.js.map +1 -1
  102. package/Map.config.js +107 -100
  103. package/Map.config.js.map +1 -1
  104. package/Map.js +2358 -2465
  105. package/Map.js.map +1 -1
  106. package/Markdown.config.js +112 -112
  107. package/Markdown.config.js.map +1 -1
  108. package/Markdown.js +844 -918
  109. package/Markdown.js.map +1 -1
  110. package/MarkerGauge.config.js +185 -186
  111. package/MarkerGauge.config.js.map +1 -1
  112. package/MarkerGauge.js +1274 -1363
  113. package/MarkerGauge.js.map +1 -1
  114. package/ParallelCoordinates.config.js +137 -137
  115. package/ParallelCoordinates.config.js.map +1 -1
  116. package/ParallelCoordinates.js +732 -923
  117. package/ParallelCoordinates.js.map +1 -1
  118. package/Pie.config.js +132 -132
  119. package/Pie.config.js.map +1 -1
  120. package/Pie.js +1193 -1281
  121. package/Pie.js.map +1 -1
  122. package/Punchcard.config.js +138 -138
  123. package/Punchcard.config.js.map +1 -1
  124. package/Punchcard.js +2723 -2923
  125. package/Punchcard.js.map +1 -1
  126. package/Rectangle.config.js +267 -260
  127. package/Rectangle.config.js.map +1 -1
  128. package/Rectangle.js +1107 -1188
  129. package/Rectangle.js.map +1 -1
  130. package/Sankey.config.js +149 -142
  131. package/Sankey.config.js.map +1 -1
  132. package/Sankey.js +2613 -2808
  133. package/Sankey.js.map +1 -1
  134. package/Scatter.config.js +144 -123
  135. package/Scatter.config.js.map +1 -1
  136. package/Scatter.js +1820 -1889
  137. package/Scatter.js.map +1 -1
  138. package/SingleValue.config.js +121 -114
  139. package/SingleValue.config.js.map +1 -1
  140. package/SingleValue.js +2554 -2635
  141. package/SingleValue.js.map +1 -1
  142. package/SingleValueBasic.js +34 -34
  143. package/SingleValueBasic.js.map +1 -1
  144. package/SingleValueIcon.config.js +129 -120
  145. package/SingleValueIcon.config.js.map +1 -1
  146. package/SingleValueIcon.js +994 -1212
  147. package/SingleValueIcon.js.map +1 -1
  148. package/SingleValueRadial.config.js +216 -178
  149. package/SingleValueRadial.config.js.map +1 -1
  150. package/SingleValueRadial.js +2235 -2316
  151. package/SingleValueRadial.js.map +1 -1
  152. package/Table.config.js +150 -151
  153. package/Table.config.js.map +1 -1
  154. package/Table.js +2446 -2525
  155. package/Table.js.map +1 -1
  156. package/common/Charting.js +11 -11
  157. package/common/Charting.js.map +1 -1
  158. package/common/ChartingApi.js +2 -2
  159. package/common/ChartingApi.js.map +1 -1
  160. package/common/EventsDoc.js +25 -18
  161. package/common/EventsDoc.js.map +1 -1
  162. package/common/GaugeMajorTicks.js +10 -10
  163. package/common/GaugeMajorTicks.js.map +1 -1
  164. package/common/GaugeValueMarker.js +10 -10
  165. package/common/GaugeValueMarker.js.map +1 -1
  166. package/common/OptionsDoc.js +57 -357
  167. package/common/OptionsDoc.js.map +1 -1
  168. package/common/OverviewDoc.js +22 -22
  169. package/common/OverviewDoc.js.map +1 -1
  170. package/common/SplunkVisualization.js +4 -4
  171. package/common/SplunkVisualization.js.map +1 -1
  172. package/common/SplunkVisualizationApi.js +2 -2
  173. package/common/SplunkVisualizationApi.js.map +1 -1
  174. package/common/ThemesDoc.js +21 -21
  175. package/common/ThemesDoc.js.map +1 -1
  176. package/common/chartingUtils.js +4 -4
  177. package/common/chartingUtils.js.map +1 -1
  178. package/common/docUtils.js +4 -4
  179. package/common/docUtils.js.map +1 -1
  180. package/common/gaugeUtils.js +13 -13
  181. package/common/gaugeUtils.js.map +1 -1
  182. package/common/shapeUtils.js +8 -8
  183. package/common/shapeUtils.js.map +1 -1
  184. package/common/utils/configUtils.js +17 -18
  185. package/common/utils/configUtils.js.map +1 -1
  186. package/common/utils/{JSONSchemaUtils.js → dataUtils.js} +24 -25
  187. package/common/utils/dataUtils.js.map +1 -0
  188. package/common/utils/hocUtils.js +5 -85
  189. package/common/utils/hocUtils.js.map +1 -1
  190. package/common/utils/mapUtils.js +198 -0
  191. package/common/utils/mapUtils.js.map +1 -0
  192. package/common/utils/singleValueUtils.js +15 -12
  193. package/common/utils/singleValueUtils.js.map +1 -1
  194. package/common/utils/testHelper.js +8 -8
  195. package/common/utils/testHelper.js.map +1 -1
  196. package/common/withDashboardViz.js +120 -207
  197. package/common/withDashboardViz.js.map +1 -1
  198. package/package.json +16 -14
  199. package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
  200. package/common/utils/JSONSchemaUtils.js.map +0 -1
@@ -87,41 +87,40 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 258);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 443);
91
91
  /******/ })
92
92
  /************************************************************************/
93
- /******/ ([
94
- /* 0 */
93
+ /******/ ({
94
+
95
+ /***/ 0:
95
96
  /***/ (function(module, exports) {
96
97
 
97
98
  module.exports = require("prop-types");
98
99
 
99
100
  /***/ }),
100
- /* 1 */
101
+
102
+ /***/ 1:
101
103
  /***/ (function(module, exports) {
102
104
 
103
105
  module.exports = require("react");
104
106
 
105
107
  /***/ }),
106
- /* 2 */
107
- /***/ (function(module, exports) {
108
-
109
- module.exports = require("lodash");
110
108
 
111
- /***/ }),
112
- /* 3 */
109
+ /***/ 10:
113
110
  /***/ (function(module, exports) {
114
111
 
115
- module.exports = require("@splunk/ui-utils/i18n");
112
+ module.exports = require("@splunk/visualizations-shared/Message");
116
113
 
117
114
  /***/ }),
118
- /* 4 */
115
+
116
+ /***/ 11:
119
117
  /***/ (function(module, exports) {
120
118
 
121
- module.exports = require("styled-components");
119
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
122
120
 
123
121
  /***/ }),
124
- /* 5 */
122
+
123
+ /***/ 118:
125
124
  /***/ (function(module, exports, __webpack_require__) {
126
125
 
127
126
  "use strict";
@@ -130,131 +129,431 @@ module.exports = require("styled-components");
130
129
  Object.defineProperty(exports, "__esModule", {
131
130
  value: true
132
131
  });
133
- exports.VizBehavior = void 0;
134
- var VizBehavior;
132
+ exports.defaultContext = void 0;
133
+ exports.defaultContext = {
134
+ trendColorConfig: [{
135
+ to: 0,
136
+ value: '#9E2520'
137
+ }, {
138
+ from: 0,
139
+ value: '#1C6B2D'
140
+ }],
141
+ majorColorConfig: [{
142
+ to: 20,
143
+ value: '#D41F1F'
144
+ }, {
145
+ from: 20,
146
+ to: 40,
147
+ value: '#D94E17'
148
+ }, {
149
+ from: 40,
150
+ to: 60,
151
+ value: '#CBA700'
152
+ }, {
153
+ from: 60,
154
+ to: 80,
155
+ value: '#669922'
156
+ }, {
157
+ from: 80,
158
+ value: '#118832'
159
+ }],
160
+ majorColorMatchConfig: [{
161
+ match: '',
162
+ value: '#5C33FF'
163
+ }]
164
+ };
135
165
 
136
- (function (VizBehavior) {
137
- /**
138
- * Dynamic Options Behavior.
139
- * This allows visualization options to be powered by data
140
- *
141
- * **Example**
142
- *
143
- * sparklineValues: ">primary|seriesByIndex(0)"
144
- * would configure sparklineValues with an array of data points
145
- * coming from the first series in the primary datasource
146
- *
147
- */
148
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
149
- VizBehavior["EVENTS"] = "events";
150
- /**
151
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
152
- * missing.
153
- * @type {string}
154
- */
166
+ /***/ }),
155
167
 
156
- VizBehavior["PLACEHOLDER"] = "placeholder";
157
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
158
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
168
+ /***/ 119:
169
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
170
+
171
+ "use strict";
172
+ __webpack_require__.r(__webpack_exports__);
173
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
174
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
175
+
176
+ var StaticMajorAndTrendLayout = [[{
177
+ label: 'Unit Position',
178
+ // todo: we need a new editor combining unit and position
179
+ option: 'unitPosition',
180
+ editor: 'editor.select',
181
+ editorProps: {
182
+ values: [{
183
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Before'),
184
+ value: 'before'
185
+ }, {
186
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('After'),
187
+ value: 'after'
188
+ }]
189
+ },
190
+ showEditor: function showEditor(_ref) {
191
+ var options = _ref.options;
192
+ return options.showValue || options.showValue === undefined;
193
+ }
194
+ }, {
195
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Unit Label'),
196
+ option: 'unit',
197
+ editor: 'editor.text',
198
+ showEditor: function showEditor(_ref2) {
199
+ var options = _ref2.options;
200
+ return options.showValue || options.showValue === undefined;
201
+ }
202
+ }], [{
203
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Precision'),
204
+ option: 'numberPrecision',
205
+ editor: 'editor.number',
206
+ editorProps: {
207
+ min: 0,
208
+ max: 20
209
+ },
210
+ showEditor: function showEditor(_ref3) {
211
+ var options = _ref3.options;
212
+ return options.showValue || options.showValue === undefined;
213
+ }
214
+ }, {
215
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value Size (px)'),
216
+ option: 'majorFontSize',
217
+ editor: 'editor.number',
218
+ editorProps: {
219
+ min: 1
220
+ },
221
+ placeholder: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Auto'),
222
+ showEditor: function showEditor(_ref4) {
223
+ var options = _ref4.options;
224
+ return options.showValue || options.showValue === undefined;
225
+ }
226
+ }], [{
227
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend Display'),
228
+ option: 'trendDisplay',
229
+ editor: 'editor.select',
230
+ editorProps: {
231
+ values: [{
232
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Percent'),
233
+ value: 'percent'
234
+ }, {
235
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Absolute'),
236
+ value: 'absolute'
237
+ }, {
238
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Off'),
239
+ value: 'off'
240
+ }]
241
+ },
242
+ showEditor: function showEditor(_ref5) {
243
+ var options = _ref5.options;
244
+ return options.showValue || options.showValue === undefined;
245
+ }
246
+ }, {
247
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend Size (px)'),
248
+ option: 'trendFontSize',
249
+ editor: 'editor.number',
250
+ editorProps: {
251
+ min: 1
252
+ },
253
+ placeholder: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Auto'),
254
+ showEditor: function showEditor(_ref6) {
255
+ var options = _ref6.options;
256
+ return options.showValue || options.showValue === undefined;
257
+ },
258
+ isDisabled: function isDisabled(_ref7) {
259
+ var options = _ref7.options;
260
+ return options.trendDisplay === 'off';
261
+ }
262
+ }]];
263
+ /* harmony default export */ __webpack_exports__["default"] = (StaticMajorAndTrendLayout);
159
264
 
160
265
  /***/ }),
161
- /* 6 */
162
- /***/ (function(module, exports, __webpack_require__) {
163
266
 
164
- "use strict";
267
+ /***/ 12:
268
+ /***/ (function(module, exports) {
165
269
 
270
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
166
271
 
167
- var _toConsumableArray = __webpack_require__(9);
272
+ /***/ }),
168
273
 
169
- var _defineProperty = __webpack_require__(7);
274
+ /***/ 125:
275
+ /***/ (function(module, exports) {
170
276
 
171
- var __rest = this && this.__rest || function (s, e) {
172
- var t = {};
277
+ module.exports = require("@splunk/visualizations/SingleValueBasic");
173
278
 
174
- for (var p in s) {
175
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
176
- }
279
+ /***/ }),
280
+
281
+ /***/ 13:
282
+ /***/ (function(module, exports, __webpack_require__) {
283
+
284
+ "use strict";
177
285
 
178
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
179
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
180
- }
181
- return t;
182
- };
183
286
 
184
287
  Object.defineProperty(exports, "__esModule", {
185
288
  value: true
186
289
  });
187
- exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
188
-
189
- var lodash_1 = __webpack_require__(2);
190
290
 
191
- var schemaUtils_1 = __webpack_require__(16);
192
-
193
- var VizBehavior_1 = __webpack_require__(5);
291
+ var React = __webpack_require__(1);
194
292
 
195
- var dynamicOptionsDSLType = {
196
- type: 'string',
197
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
198
- };
199
- /**
200
- * Helper function to extend an options schema with dynamic options DSL
201
- * @param optionsSchema a visualization's options schema
202
- * @returns an updated options schema that additionally allows strings starting with > for each option
203
- */
293
+ var styled_components_1 = __webpack_require__(4);
204
294
 
205
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
206
- var enhancedOptionsSchema = {};
207
- Object.keys(optionsSchema).forEach(function (key) {
208
- var _a = optionsSchema[key],
209
- title = _a.title,
210
- description = _a.description,
211
- readOnly = _a.readOnly,
212
- writeOnly = _a.writeOnly,
213
- examples = _a.examples,
214
- defaultValue = _a.default,
215
- type = _a.type,
216
- properties = _a.properties,
217
- patternProperties = _a.patternProperties,
218
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
295
+ var SizeAwareWrapper_1 = __webpack_require__(20);
219
296
 
220
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
221
- title: title
222
- }), description !== undefined && {
223
- description: description
224
- }), readOnly !== undefined && {
225
- readOnly: readOnly
226
- }), writeOnly !== undefined && {
227
- writeOnly: writeOnly
228
- }), examples !== undefined && {
229
- examples: examples
230
- }), defaultValue !== undefined && {
231
- default: defaultValue
232
- });
297
+ var style_1 = __webpack_require__(15);
233
298
 
234
- if (type === 'object') {
235
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
236
- type: type
237
- }), properties && {
238
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
239
- });
299
+ var colorUtils_1 = __webpack_require__(12);
240
300
 
241
- if (patternProperties) {
242
- var enhancedPatternProperties = {};
243
- Object.keys(patternProperties).forEach(function (opt) {
244
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
245
- });
246
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
247
- }
248
- } else {
249
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
250
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
251
- type: type
252
- }), remainingSchemaEntry), dynamicOptionsDSLType]
253
- });
301
+ var Item = styled_components_1.default.div.attrs(function (_ref) {
302
+ var width = _ref.width;
303
+ return {
304
+ style: {
305
+ width: style_1.toPx(width)
254
306
  }
255
- });
256
- return enhancedOptionsSchema;
257
- }
307
+ };
308
+ }).withConfig({
309
+ displayName: "FixedSizeContainer__Item",
310
+ componentId: "sc-1yhgpod-0"
311
+ })(["position:relative;background-color:", "};"], function (props) {
312
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
313
+ }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
314
+
315
+ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
316
+ var width = _ref2.width,
317
+ height = _ref2.height;
318
+ return {
319
+ style: Object.assign(Object.assign({}, width && {
320
+ width: style_1.toPx(width)
321
+ }), height && {
322
+ height: style_1.toPx(height)
323
+ })
324
+ };
325
+ }).withConfig({
326
+ displayName: "FixedSizeContainer__FixSizeItem",
327
+ componentId: "sc-1yhgpod-1"
328
+ })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
329
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
330
+ });
331
+ var ItemContent = styled_components_1.default.div.withConfig({
332
+ displayName: "FixedSizeContainer__ItemContent",
333
+ componentId: "sc-1yhgpod-2"
334
+ })(["position:relative;min-height:100px;width:100%;"]);
335
+ var FixSizeItemContent = styled_components_1.default.div.withConfig({
336
+ displayName: "FixedSizeContainer__FixSizeItemContent",
337
+ componentId: "sc-1yhgpod-3"
338
+ })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
339
+
340
+ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
341
+ var FixedSizeContainer = function FixedSizeContainer(props) {
342
+ var width = props.width,
343
+ height = props.height,
344
+ backgroundColor = props.backgroundColor;
345
+
346
+ if (!height) {
347
+ return React.createElement(Item, {
348
+ "data-test": "item",
349
+ width: width,
350
+ backgroundColor: backgroundColor
351
+ }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
352
+ }
353
+
354
+ return React.createElement(FixSizeItem, {
355
+ "data-test": "fix-size-item",
356
+ "data-splunk-visualization-version": "25.2.0 - 4373c5a66",
357
+ width: width,
358
+ height: height,
359
+ backgroundColor: backgroundColor
360
+ }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
361
+ var newWidth = _ref3.width,
362
+ newHeight = _ref3.height;
363
+ return React.createElement(Viz, Object.assign({}, props, {
364
+ width: newWidth,
365
+ height: newHeight
366
+ }));
367
+ })));
368
+ };
369
+
370
+ FixedSizeContainer.displayName = 'withFixedSizeContainer';
371
+ return FixedSizeContainer;
372
+ };
373
+
374
+ exports.default = withFixedSizeContainer;
375
+
376
+ /***/ }),
377
+
378
+ /***/ 14:
379
+ /***/ (function(module, exports, __webpack_require__) {
380
+
381
+ "use strict";
382
+
383
+
384
+ Object.defineProperty(exports, "__esModule", {
385
+ value: true
386
+ });
387
+ exports.extendStaticWrapperProps = void 0;
388
+ /**
389
+ * @method extendStaticWrapperProps
390
+ * @param {Object} props
391
+ * @param {DashboardVizType} props.Wrapper
392
+ * @param {DashboardVizType} props.Visualization
393
+ */
394
+
395
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
396
+ var Wrapper = _ref.Wrapper,
397
+ Visualization = _ref.Visualization;
398
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
399
+ extendProperties.forEach(function (prop) {
400
+ if (Visualization[prop]) {
401
+ // eslint-disable-next-line no-param-reassign
402
+ Wrapper[prop] = Visualization[prop];
403
+ }
404
+ });
405
+ };
406
+
407
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
408
+
409
+ /***/ }),
410
+
411
+ /***/ 15:
412
+ /***/ (function(module, exports) {
413
+
414
+ module.exports = require("@splunk/visualizations-shared/style");
415
+
416
+ /***/ }),
417
+
418
+ /***/ 154:
419
+ /***/ (function(module, exports) {
420
+
421
+ module.exports = require("@splunk/react-icons/Activity");
422
+
423
+ /***/ }),
424
+
425
+ /***/ 155:
426
+ /***/ (function(module, exports) {
427
+
428
+ module.exports = require("@splunk/react-icons/Clock");
429
+
430
+ /***/ }),
431
+
432
+ /***/ 156:
433
+ /***/ (function(module, exports) {
434
+
435
+ module.exports = require("@splunk/react-icons/Pencil");
436
+
437
+ /***/ }),
438
+
439
+ /***/ 157:
440
+ /***/ (function(module, exports) {
441
+
442
+ module.exports = require("@splunk/react-icons/Star");
443
+
444
+ /***/ }),
445
+
446
+ /***/ 158:
447
+ /***/ (function(module, exports) {
448
+
449
+ module.exports = require("@splunk/react-icons/Question");
450
+
451
+ /***/ }),
452
+
453
+ /***/ 16:
454
+ /***/ (function(module, exports) {
455
+
456
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
457
+
458
+ /***/ }),
459
+
460
+ /***/ 17:
461
+ /***/ (function(module, exports, __webpack_require__) {
462
+
463
+ "use strict";
464
+
465
+
466
+ var _toConsumableArray = __webpack_require__(8);
467
+
468
+ var _defineProperty = __webpack_require__(7);
469
+
470
+ var __rest = this && this.__rest || function (s, e) {
471
+ var t = {};
472
+
473
+ for (var p in s) {
474
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
475
+ }
476
+
477
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
478
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
479
+ }
480
+ return t;
481
+ };
482
+
483
+ Object.defineProperty(exports, "__esModule", {
484
+ value: true
485
+ });
486
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
487
+
488
+ var lodash_1 = __webpack_require__(3);
489
+
490
+ var schemaUtils_1 = __webpack_require__(16);
491
+
492
+ var VizBehavior_1 = __webpack_require__(6);
493
+
494
+ var dynamicOptionsDSLType = {
495
+ type: 'string',
496
+ pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
497
+ };
498
+ /**
499
+ * Helper function to extend an options schema with dynamic options DSL
500
+ * @param optionsSchema a visualization's options schema
501
+ * @returns an updated options schema that additionally allows strings starting with > for each option
502
+ */
503
+
504
+ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
505
+ var enhancedOptionsSchema = {};
506
+ Object.keys(optionsSchema).forEach(function (key) {
507
+ var _a = optionsSchema[key],
508
+ title = _a.title,
509
+ description = _a.description,
510
+ readOnly = _a.readOnly,
511
+ writeOnly = _a.writeOnly,
512
+ examples = _a.examples,
513
+ defaultValue = _a.default,
514
+ type = _a.type,
515
+ properties = _a.properties,
516
+ patternProperties = _a.patternProperties,
517
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
518
+
519
+ var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
520
+ title: title
521
+ }), description !== undefined && {
522
+ description: description
523
+ }), readOnly !== undefined && {
524
+ readOnly: readOnly
525
+ }), writeOnly !== undefined && {
526
+ writeOnly: writeOnly
527
+ }), examples !== undefined && {
528
+ examples: examples
529
+ }), defaultValue !== undefined && {
530
+ default: defaultValue
531
+ });
532
+
533
+ if (type === 'object') {
534
+ enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
535
+ type: type
536
+ }), properties && {
537
+ properties: enhanceOptionsSchemaWithDynamicOptions(properties)
538
+ });
539
+
540
+ if (patternProperties) {
541
+ var enhancedPatternProperties = {};
542
+ Object.keys(patternProperties).forEach(function (opt) {
543
+ enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
544
+ });
545
+ enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
546
+ }
547
+ } else {
548
+ enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
549
+ anyOf: [Object.assign(Object.assign({}, type !== undefined && {
550
+ type: type
551
+ }), remainingSchemaEntry), dynamicOptionsDSLType]
552
+ });
553
+ }
554
+ });
555
+ return enhancedOptionsSchema;
556
+ }
258
557
 
259
558
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
260
559
  /**
@@ -394,249 +693,43 @@ var insertLayout = function insertLayout(layout, index) {
394
693
  exports.insertLayout = insertLayout;
395
694
 
396
695
  /***/ }),
397
- /* 7 */
696
+
697
+ /***/ 18:
398
698
  /***/ (function(module, exports) {
399
699
 
400
- module.exports = require("@babel/runtime/helpers/defineProperty");
700
+ module.exports = require("@splunk/visualizations-shared/configUtils");
401
701
 
402
702
  /***/ }),
403
- /* 8 */
404
- /***/ (function(module, exports, __webpack_require__) {
405
703
 
406
- "use strict";
704
+ /***/ 19:
705
+ /***/ (function(module, exports) {
407
706
 
707
+ module.exports = require("@babel/runtime/helpers/createClass");
408
708
 
409
- var _typeof = __webpack_require__(25);
709
+ /***/ }),
410
710
 
411
- Object.defineProperty(exports, "__esModule", {
412
- value: true
413
- });
414
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
711
+ /***/ 2:
712
+ /***/ (function(module, exports) {
415
713
 
416
- var lodash_1 = __webpack_require__(2);
714
+ module.exports = require("@splunk/ui-utils/i18n");
417
715
 
418
- var mapUtils_1 = __webpack_require__(41);
419
- /**
420
- * @method extendStaticWrapperProps
421
- * @param {Object} props
422
- * @param {DashboardVizType} props.Wrapper
423
- * @param {DashboardVizType} props.Visualization
424
- */
716
+ /***/ }),
425
717
 
718
+ /***/ 20:
719
+ /***/ (function(module, exports) {
426
720
 
427
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
428
- var Wrapper = _ref.Wrapper,
429
- Visualization = _ref.Visualization;
430
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
431
- extendProperties.forEach(function (prop) {
432
- if (Visualization[prop]) {
433
- // eslint-disable-next-line no-param-reassign
434
- Wrapper[prop] = Visualization[prop];
435
- }
436
- });
437
- };
438
-
439
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
440
- /**
441
- * helper to deeply merge objects while preserving arrays in earlier source objects
442
- * deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays of primitives will be preserved if already present in the resultant merged object
443
- * this prevents default arrays of primitives from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one).
444
- * Array of objects gets merged with the defaults, where the defaults can be an array of objects. Closest matching default object from the defaults list based on key - value pair
445
- * will be used for merging defaults for each object in the array. If no closest match found, first object in default array list used for merging.
446
- *
447
- * @method deepMergeWithArrayPrimitiveOverrides
448
- * @param {Object} initial - target object to merge values into
449
- * @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
450
- *
451
- * @returns {Object}
452
- */
453
-
454
- var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
455
- var clone = lodash_1.cloneDeep(initial);
456
-
457
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
458
- sources[_key - 1] = arguments[_key];
459
- }
460
-
461
- sources.forEach(function (sourceToApply) {
462
- Object.keys(sourceToApply).forEach(function (sourceKey) {
463
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
464
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
465
- }
466
-
467
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
468
- clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
469
- } else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
470
- // If option is an array of objects
471
- for (var i = 0; i < clone[sourceKey].length; i += 1) {
472
- if (_typeof(clone[sourceKey][i]) === 'object') {
473
- var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
474
-
475
- if (closestMatchIdx > -1) {
476
- clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
477
- }
478
- }
479
- }
480
- }
481
- });
482
- });
483
- return clone;
484
- };
485
-
486
- exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
487
-
488
- /***/ }),
489
- /* 9 */
490
- /***/ (function(module, exports) {
491
-
492
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
493
-
494
- /***/ }),
495
- /* 10 */
496
- /***/ (function(module, exports) {
497
-
498
- module.exports = require("@splunk/themes/variables");
499
-
500
- /***/ }),
501
- /* 11 */
502
- /***/ (function(module, exports) {
503
-
504
- module.exports = require("@splunk/visualizations-shared/Message");
505
-
506
- /***/ }),
507
- /* 12 */
508
- /***/ (function(module, exports) {
509
-
510
- module.exports = require("@babel/runtime/helpers/classCallCheck");
511
-
512
- /***/ }),
513
- /* 13 */
514
- /***/ (function(module, exports) {
515
-
516
- module.exports = require("@splunk/visualizations-shared/colorUtils");
517
-
518
- /***/ }),
519
- /* 14 */
520
- /***/ (function(module, exports, __webpack_require__) {
521
-
522
- "use strict";
523
-
524
-
525
- Object.defineProperty(exports, "__esModule", {
526
- value: true
527
- });
528
-
529
- var React = __webpack_require__(1);
530
-
531
- var styled_components_1 = __webpack_require__(4);
532
-
533
- var SizeAwareWrapper_1 = __webpack_require__(18);
534
-
535
- var style_1 = __webpack_require__(15);
536
-
537
- var colorUtils_1 = __webpack_require__(13);
538
-
539
- var Item = styled_components_1.default.div.attrs(function (_ref) {
540
- var width = _ref.width;
541
- return {
542
- style: {
543
- width: style_1.toPx(width)
544
- }
545
- };
546
- }).withConfig({
547
- displayName: "FixedSizeContainer__Item",
548
- componentId: "sc-1yhgpod-0"
549
- })(["position:relative;background-color:", "};"], function (props) {
550
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
551
- }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
552
-
553
- var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
554
- var width = _ref2.width,
555
- height = _ref2.height;
556
- return {
557
- style: Object.assign(Object.assign({}, width && {
558
- width: style_1.toPx(width)
559
- }), height && {
560
- height: style_1.toPx(height)
561
- })
562
- };
563
- }).withConfig({
564
- displayName: "FixedSizeContainer__FixSizeItem",
565
- componentId: "sc-1yhgpod-1"
566
- })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
567
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
568
- });
569
- var ItemContent = styled_components_1.default.div.withConfig({
570
- displayName: "FixedSizeContainer__ItemContent",
571
- componentId: "sc-1yhgpod-2"
572
- })(["position:relative;min-height:100px;width:100%;"]);
573
- var FixSizeItemContent = styled_components_1.default.div.withConfig({
574
- displayName: "FixedSizeContainer__FixSizeItemContent",
575
- componentId: "sc-1yhgpod-3"
576
- })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
577
-
578
- var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
579
- var FixedSizeContainer = function FixedSizeContainer(props) {
580
- var width = props.width,
581
- height = props.height,
582
- backgroundColor = props.backgroundColor;
583
-
584
- if (!height) {
585
- return React.createElement(Item, {
586
- "data-test": "item",
587
- width: width,
588
- backgroundColor: backgroundColor
589
- }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
590
- }
591
-
592
- return React.createElement(FixSizeItem, {
593
- "data-test": "fix-size-item",
594
- "data-splunk-visualization-version": "25.0.1 - de10ad954",
595
- width: width,
596
- height: height,
597
- backgroundColor: backgroundColor
598
- }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
599
- var newWidth = _ref3.width,
600
- newHeight = _ref3.height;
601
- return React.createElement(Viz, Object.assign({}, props, {
602
- width: newWidth,
603
- height: newHeight
604
- }));
605
- })));
606
- };
607
-
608
- FixedSizeContainer.displayName = 'withFixedSizeContainer';
609
- return FixedSizeContainer;
610
- };
611
-
612
- exports.default = withFixedSizeContainer;
613
-
614
- /***/ }),
615
- /* 15 */
616
- /***/ (function(module, exports) {
617
-
618
- module.exports = require("@splunk/visualizations-shared/style");
721
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
619
722
 
620
723
  /***/ }),
621
- /* 16 */
622
- /***/ (function(module, exports) {
623
-
624
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
625
724
 
626
- /***/ }),
627
- /* 17 */
725
+ /***/ 21:
628
726
  /***/ (function(module, exports) {
629
727
 
630
- module.exports = require("@babel/runtime/helpers/createClass");
728
+ module.exports = require("@splunk/themes/pick");
631
729
 
632
730
  /***/ }),
633
- /* 18 */
634
- /***/ (function(module, exports) {
635
-
636
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
637
731
 
638
- /***/ }),
639
- /* 19 */
732
+ /***/ 22:
640
733
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
641
734
 
642
735
  "use strict";
@@ -673,15 +766,15 @@ __webpack_require__.r(__webpack_exports__);
673
766
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
674
767
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
675
768
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
676
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
769
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
677
770
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
678
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
771
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
679
772
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
680
- /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48);
773
+ /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49);
681
774
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
682
- /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
775
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
683
776
  /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
684
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43);
777
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45);
685
778
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
686
779
 
687
780
 
@@ -1644,70 +1737,36 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
1644
1737
  };
1645
1738
 
1646
1739
  /***/ }),
1647
- /* 20 */
1648
- /***/ (function(module, exports) {
1649
-
1650
- module.exports = require("@splunk/themes/pick");
1651
1740
 
1652
- /***/ }),
1653
- /* 21 */
1741
+ /***/ 23:
1654
1742
  /***/ (function(module, exports) {
1655
1743
 
1656
1744
  module.exports = require("@splunk/visualization-context/TimezoneContext");
1657
1745
 
1658
1746
  /***/ }),
1659
- /* 22 */
1747
+
1748
+ /***/ 24:
1660
1749
  /***/ (function(module, exports) {
1661
1750
 
1662
1751
  module.exports = require("@splunk/visualizations-shared/propUtils");
1663
1752
 
1664
1753
  /***/ }),
1665
- /* 23 */
1754
+
1755
+ /***/ 25:
1666
1756
  /***/ (function(module, exports) {
1667
1757
 
1668
- module.exports = require("@splunk/visualizations-shared/numberUtils");
1758
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
1669
1759
 
1670
1760
  /***/ }),
1671
- /* 24 */
1672
- /***/ (function(module, exports, __webpack_require__) {
1673
-
1674
- "use strict";
1675
-
1676
-
1677
- Object.defineProperty(exports, "__esModule", {
1678
- value: true
1679
- });
1680
- exports.pickFieldFromJSONSchema = void 0;
1681
-
1682
- var lodash_1 = __webpack_require__(2);
1683
-
1684
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
1685
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
1686
- return Object.keys(optionsSchema).reduce(function (accum, k) {
1687
- if (lodash_1.has(optionsSchema[k], fieldName)) {
1688
- accum[k] = optionsSchema[k][fieldName];
1689
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
1690
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
1691
-
1692
- if (!lodash_1.isEmpty(nestedSchema)) {
1693
- accum[k] = nestedSchema;
1694
- }
1695
- }
1696
-
1697
- return accum;
1698
- }, {});
1699
- };
1700
1761
 
1701
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1702
-
1703
- /***/ }),
1704
- /* 25 */
1762
+ /***/ 26:
1705
1763
  /***/ (function(module, exports) {
1706
1764
 
1707
- module.exports = require("@babel/runtime/helpers/typeof");
1765
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1708
1766
 
1709
1767
  /***/ }),
1710
- /* 26 */
1768
+
1769
+ /***/ 27:
1711
1770
  /***/ (function(module, exports, __webpack_require__) {
1712
1771
 
1713
1772
  "use strict";
@@ -1722,13 +1781,13 @@ var React = __webpack_require__(1);
1722
1781
 
1723
1782
  var T = __webpack_require__(0);
1724
1783
 
1725
- var lodash_1 = __webpack_require__(2);
1784
+ var lodash_1 = __webpack_require__(3);
1726
1785
 
1727
- var i18n_1 = __webpack_require__(3);
1786
+ var i18n_1 = __webpack_require__(2);
1728
1787
 
1729
- var Message_1 = __webpack_require__(11);
1788
+ var Message_1 = __webpack_require__(10);
1730
1789
 
1731
- var FixedSizeContainer_1 = __webpack_require__(14);
1790
+ var FixedSizeContainer_1 = __webpack_require__(13);
1732
1791
  /**
1733
1792
  * @method shouldShowIconPlaceholder
1734
1793
  * @param {object} dataSources
@@ -1798,7 +1857,8 @@ IconPlaceholder.defaultProps = {
1798
1857
  exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1799
1858
 
1800
1859
  /***/ }),
1801
- /* 27 */
1860
+
1861
+ /***/ 28:
1802
1862
  /***/ (function(module, exports, __webpack_require__) {
1803
1863
 
1804
1864
  "use strict";
@@ -1813,9 +1873,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1813
1873
 
1814
1874
  var T = __webpack_require__(0);
1815
1875
 
1816
- var lodash_1 = __webpack_require__(2);
1876
+ var lodash_1 = __webpack_require__(3);
1817
1877
 
1818
- var DataSource_1 = __webpack_require__(37);
1878
+ var DataSource_1 = __webpack_require__(39);
1819
1879
 
1820
1880
  exports.SortParamsPropTypes = T.shape({
1821
1881
  currentSortKey: T.string,
@@ -1868,7 +1928,8 @@ var getSortingParams = function getSortingParams(_ref) {
1868
1928
  exports.getSortingParams = getSortingParams;
1869
1929
 
1870
1930
  /***/ }),
1871
- /* 28 */
1931
+
1932
+ /***/ 29:
1872
1933
  /***/ (function(module, exports, __webpack_require__) {
1873
1934
 
1874
1935
  "use strict";
@@ -1881,7 +1942,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1881
1942
 
1882
1943
  var T = __webpack_require__(0);
1883
1944
 
1884
- var lodash_1 = __webpack_require__(2);
1945
+ var lodash_1 = __webpack_require__(3);
1885
1946
 
1886
1947
  exports.PaginatorParamsPropTypes = T.shape({
1887
1948
  isPaging: T.bool,
@@ -1932,7 +1993,22 @@ var getPaginationParams = function getPaginationParams(_ref) {
1932
1993
  exports.getPaginationParams = getPaginationParams;
1933
1994
 
1934
1995
  /***/ }),
1935
- /* 29 */
1996
+
1997
+ /***/ 3:
1998
+ /***/ (function(module, exports) {
1999
+
2000
+ module.exports = require("lodash");
2001
+
2002
+ /***/ }),
2003
+
2004
+ /***/ 30:
2005
+ /***/ (function(module, exports) {
2006
+
2007
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
2008
+
2009
+ /***/ }),
2010
+
2011
+ /***/ 31:
1936
2012
  /***/ (function(module, exports, __webpack_require__) {
1937
2013
 
1938
2014
  "use strict";
@@ -1960,7 +2036,8 @@ var VizCategory;
1960
2036
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
1961
2037
 
1962
2038
  /***/ }),
1963
- /* 30 */
2039
+
2040
+ /***/ 32:
1964
2041
  /***/ (function(module, exports, __webpack_require__) {
1965
2042
 
1966
2043
  "use strict";
@@ -1972,39 +2049,39 @@ Object.defineProperty(exports, "__esModule", {
1972
2049
 
1973
2050
  var React = __webpack_require__(1);
1974
2051
 
1975
- var lodash_1 = __webpack_require__(2);
2052
+ var lodash_1 = __webpack_require__(3);
1976
2053
 
1977
- var getSettingsFromThemedProps_1 = __webpack_require__(31);
2054
+ var getSettingsFromThemedProps_1 = __webpack_require__(33);
1978
2055
 
1979
- var Options_1 = __webpack_require__(32);
2056
+ var Options_1 = __webpack_require__(34);
1980
2057
 
1981
- var SanitizeProps_1 = __webpack_require__(33);
2058
+ var SanitizeProps_1 = __webpack_require__(35);
1982
2059
 
1983
- var TimezoneContext_1 = __webpack_require__(21);
2060
+ var TimezoneContext_1 = __webpack_require__(23);
1984
2061
 
1985
- var moment_1 = __webpack_require__(34);
2062
+ var moment_1 = __webpack_require__(36);
1986
2063
 
1987
2064
  var styled_components_1 = __webpack_require__(4);
1988
2065
 
1989
- var SplunkVisualization_1 = __webpack_require__(35);
2066
+ var hocUtils_1 = __webpack_require__(25);
1990
2067
 
1991
- var VizBehavior_1 = __webpack_require__(5);
2068
+ var JSONSchemaUtils_1 = __webpack_require__(26);
1992
2069
 
1993
- var getSorting_1 = __webpack_require__(27);
2070
+ var SplunkVisualization_1 = __webpack_require__(37);
1994
2071
 
1995
- var getPagination_1 = __webpack_require__(28);
2072
+ var VizBehavior_1 = __webpack_require__(6);
1996
2073
 
1997
- var useDeepMemo_1 = __webpack_require__(38);
2074
+ var getSorting_1 = __webpack_require__(28);
1998
2075
 
1999
- var JSONSchemaUtils_1 = __webpack_require__(24);
2076
+ var getPagination_1 = __webpack_require__(29);
2000
2077
 
2001
- var MissingPropsMessage_1 = __webpack_require__(39);
2078
+ var useDeepMemo_1 = __webpack_require__(40);
2002
2079
 
2003
- var withEditModeCover_1 = __webpack_require__(40);
2080
+ var MissingPropsMessage_1 = __webpack_require__(41);
2004
2081
 
2005
- var withPlaceholder_1 = __webpack_require__(42);
2082
+ var withEditModeCover_1 = __webpack_require__(42);
2006
2083
 
2007
- var hocUtils_1 = __webpack_require__(8);
2084
+ var withPlaceholder_1 = __webpack_require__(43);
2008
2085
  /**
2009
2086
  * hoc that wraps a pure react visualization in a Dashboard visualization
2010
2087
  * @param {DashboardVizOpts} opts
@@ -2205,37 +2282,42 @@ var withDashboardViz = function withDashboardViz(opts) {
2205
2282
  exports.default = withDashboardViz;
2206
2283
 
2207
2284
  /***/ }),
2208
- /* 31 */
2285
+
2286
+ /***/ 33:
2209
2287
  /***/ (function(module, exports) {
2210
2288
 
2211
2289
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
2212
2290
 
2213
2291
  /***/ }),
2214
- /* 32 */
2292
+
2293
+ /***/ 34:
2215
2294
  /***/ (function(module, exports) {
2216
2295
 
2217
2296
  module.exports = require("@splunk/visualization-encoding/Options");
2218
2297
 
2219
2298
  /***/ }),
2220
- /* 33 */
2299
+
2300
+ /***/ 35:
2221
2301
  /***/ (function(module, exports) {
2222
2302
 
2223
2303
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
2224
2304
 
2225
2305
  /***/ }),
2226
- /* 34 */
2306
+
2307
+ /***/ 36:
2227
2308
  /***/ (function(module, exports) {
2228
2309
 
2229
2310
  module.exports = require("@splunk/moment");
2230
2311
 
2231
2312
  /***/ }),
2232
- /* 35 */
2313
+
2314
+ /***/ 37:
2233
2315
  /***/ (function(module, exports, __webpack_require__) {
2234
2316
 
2235
2317
  "use strict";
2236
2318
 
2237
2319
 
2238
- var _classCallCheck = __webpack_require__(12);
2320
+ var _classCallCheck = __webpack_require__(11);
2239
2321
 
2240
2322
  Object.defineProperty(exports, "__esModule", {
2241
2323
  value: true
@@ -2245,9 +2327,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
2245
2327
 
2246
2328
  var T = __webpack_require__(0);
2247
2329
 
2248
- var lodash_1 = __webpack_require__(2);
2330
+ var lodash_1 = __webpack_require__(3);
2249
2331
 
2250
- var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2332
+ var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2251
2333
 
2252
2334
 
2253
2335
  exports.INITIAL_WIDTH = 250;
@@ -2380,15 +2462,16 @@ SplunkVisualization.defaultProps = {
2380
2462
  exports.default = SplunkVisualization;
2381
2463
 
2382
2464
  /***/ }),
2383
- /* 36 */
2465
+
2466
+ /***/ 38:
2384
2467
  /***/ (function(module, exports, __webpack_require__) {
2385
2468
 
2386
2469
  "use strict";
2387
2470
 
2388
2471
 
2389
- var _classCallCheck = __webpack_require__(12);
2472
+ var _classCallCheck = __webpack_require__(11);
2390
2473
 
2391
- var _createClass = __webpack_require__(17);
2474
+ var _createClass = __webpack_require__(19);
2392
2475
 
2393
2476
  Object.defineProperty(exports, "__esModule", {
2394
2477
  value: true
@@ -2417,7 +2500,8 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
2417
2500
  exports.DefaultVizActionHandler = DefaultVizActionHandler;
2418
2501
 
2419
2502
  /***/ }),
2420
- /* 37 */
2503
+
2504
+ /***/ 39:
2421
2505
  /***/ (function(module, exports, __webpack_require__) {
2422
2506
 
2423
2507
  "use strict";
@@ -2430,7 +2514,15 @@ exports.validSortDirs = void 0;
2430
2514
  exports.validSortDirs = ['asc', 'desc', 'none'];
2431
2515
 
2432
2516
  /***/ }),
2433
- /* 38 */
2517
+
2518
+ /***/ 4:
2519
+ /***/ (function(module, exports) {
2520
+
2521
+ module.exports = require("styled-components");
2522
+
2523
+ /***/ }),
2524
+
2525
+ /***/ 40:
2434
2526
  /***/ (function(module, exports, __webpack_require__) {
2435
2527
 
2436
2528
  "use strict";
@@ -2443,7 +2535,7 @@ exports.useDeepMemo = void 0;
2443
2535
 
2444
2536
  var react_1 = __webpack_require__(1);
2445
2537
 
2446
- var lodash_1 = __webpack_require__(2);
2538
+ var lodash_1 = __webpack_require__(3);
2447
2539
  /**
2448
2540
  * This hook evaluates and stores the result of a passed function and only
2449
2541
  * re-evaluates the function when passed dependencies change.
@@ -2475,7 +2567,8 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
2475
2567
  exports.useDeepMemo = useDeepMemo;
2476
2568
 
2477
2569
  /***/ }),
2478
- /* 39 */
2570
+
2571
+ /***/ 41:
2479
2572
  /***/ (function(module, exports, __webpack_require__) {
2480
2573
 
2481
2574
  "use strict";
@@ -2490,11 +2583,11 @@ var React = __webpack_require__(1);
2490
2583
 
2491
2584
  var T = __webpack_require__(0);
2492
2585
 
2493
- var i18n_1 = __webpack_require__(3);
2586
+ var i18n_1 = __webpack_require__(2);
2494
2587
 
2495
- var Message_1 = __webpack_require__(11);
2588
+ var Message_1 = __webpack_require__(10);
2496
2589
 
2497
- var FixedSizeContainer_1 = __webpack_require__(14);
2590
+ var FixedSizeContainer_1 = __webpack_require__(13);
2498
2591
  /**
2499
2592
  * @method isMissing
2500
2593
  * @param {any} v
@@ -2555,7 +2648,8 @@ exports.MissingPropsMessage.defaultProps = {
2555
2648
  exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2556
2649
 
2557
2650
  /***/ }),
2558
- /* 40 */
2651
+
2652
+ /***/ 42:
2559
2653
  /***/ (function(module, exports, __webpack_require__) {
2560
2654
 
2561
2655
  "use strict";
@@ -2569,14 +2663,14 @@ var React = __webpack_require__(1);
2569
2663
 
2570
2664
  var styled_components_1 = __webpack_require__(4);
2571
2665
 
2572
- var hocUtils_1 = __webpack_require__(8);
2666
+ var hocUtils_1 = __webpack_require__(14);
2573
2667
 
2574
2668
  var Cover = styled_components_1.default.div.withConfig({
2575
2669
  displayName: "withEditModeCover__Cover",
2576
2670
  componentId: "sc-1gsbnxb-0"
2577
2671
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
2578
2672
  var Blocker = styled_components_1.default.div.attrs({
2579
- 'data-splunk-visualization-version': "25.0.1 - de10ad954"
2673
+ 'data-splunk-visualization-version': "25.2.0 - 4373c5a66"
2580
2674
  }).withConfig({
2581
2675
  displayName: "withEditModeCover__Blocker",
2582
2676
  componentId: "sc-1gsbnxb-1"
@@ -2607,13 +2701,8 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
2607
2701
  exports.default = withEditModeCover;
2608
2702
 
2609
2703
  /***/ }),
2610
- /* 41 */
2611
- /***/ (function(module, exports) {
2612
2704
 
2613
- module.exports = require("@splunk/visualizations-shared/mapUtils");
2614
-
2615
- /***/ }),
2616
- /* 42 */
2705
+ /***/ 43:
2617
2706
  /***/ (function(module, exports, __webpack_require__) {
2618
2707
 
2619
2708
  "use strict";
@@ -2625,15 +2714,15 @@ Object.defineProperty(exports, "__esModule", {
2625
2714
 
2626
2715
  var React = __webpack_require__(1);
2627
2716
 
2628
- var colorUtils_1 = __webpack_require__(13);
2717
+ var colorUtils_1 = __webpack_require__(12);
2629
2718
 
2630
- var variables_1 = __webpack_require__(10);
2719
+ var variables_1 = __webpack_require__(9);
2631
2720
 
2632
- var IconPlaceholder_1 = __webpack_require__(26);
2721
+ var IconPlaceholder_1 = __webpack_require__(27);
2633
2722
 
2634
- var VizBehavior_1 = __webpack_require__(5);
2723
+ var VizBehavior_1 = __webpack_require__(6);
2635
2724
 
2636
- var hocUtils_1 = __webpack_require__(8);
2725
+ var hocUtils_1 = __webpack_require__(14);
2637
2726
 
2638
2727
  var withPlaceholder = function withPlaceholder(Visualization) {
2639
2728
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -2677,771 +2766,125 @@ var withPlaceholder = function withPlaceholder(Visualization) {
2677
2766
  exports.default = withPlaceholder;
2678
2767
 
2679
2768
  /***/ }),
2680
- /* 43 */
2681
- /***/ (function(module, exports) {
2682
2769
 
2683
- module.exports = require("@splunk/visualizations-shared/colorConstants");
2770
+ /***/ 443:
2771
+ /***/ (function(module, exports, __webpack_require__) {
2684
2772
 
2685
- /***/ }),
2686
- /* 44 */,
2687
- /* 45 */,
2688
- /* 46 */,
2689
- /* 47 */
2690
- /***/ (function(module, exports) {
2773
+ "use strict";
2691
2774
 
2692
- module.exports = require("@babel/runtime/helpers/extends");
2693
2775
 
2694
- /***/ }),
2695
- /* 48 */
2696
- /***/ (function(module, exports) {
2776
+ Object.defineProperty(exports, "__esModule", {
2777
+ value: true
2778
+ });
2779
+ exports.themes = exports.computeVizProps = exports.PureSingleValueIcon = exports.config = void 0;
2697
2780
 
2698
- module.exports = require("@splunk/visualizations-shared/domUtils");
2781
+ var React = __webpack_require__(1);
2699
2782
 
2700
- /***/ }),
2701
- /* 49 */,
2702
- /* 50 */,
2703
- /* 51 */,
2704
- /* 52 */,
2705
- /* 53 */
2706
- /***/ (function(module, exports) {
2783
+ var RemoteIcon_1 = __webpack_require__(444);
2707
2784
 
2708
- module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
2785
+ var iconUtils_1 = __webpack_require__(445);
2709
2786
 
2710
- /***/ }),
2711
- /* 54 */,
2712
- /* 55 */,
2713
- /* 56 */,
2714
- /* 57 */,
2715
- /* 58 */,
2716
- /* 59 */,
2717
- /* 60 */,
2718
- /* 61 */,
2719
- /* 62 */
2720
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2787
+ var SingleValueIcon_1 = __webpack_require__(464);
2721
2788
 
2722
- "use strict";
2723
- __webpack_require__.r(__webpack_exports__);
2724
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
2725
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
2789
+ var withDashboardViz_1 = __webpack_require__(32);
2726
2790
 
2727
- var VizStyleWrapper = styled_components__WEBPACK_IMPORTED_MODULE_0___default.a.div.attrs(function (_ref) {
2728
- var dataTestKey = _ref.dataTestKey;
2729
- return {
2730
- 'data-test': dataTestKey
2731
- };
2732
- }).withConfig({
2733
- displayName: "VizStyleWrapper",
2734
- componentId: "sc-6rw6wv-0"
2735
- })(["display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;background-color:", ";"], function (props) {
2736
- return props.backgroundColor;
2737
- });
2738
- VizStyleWrapper.displayName = 'VizStyleWrapper';
2739
- /* harmony default export */ __webpack_exports__["default"] = (VizStyleWrapper);
2791
+ var config_1 = __webpack_require__(446);
2740
2792
 
2741
- /***/ }),
2742
- /* 63 */,
2743
- /* 64 */,
2744
- /* 65 */,
2745
- /* 66 */,
2746
- /* 67 */,
2747
- /* 68 */,
2748
- /* 69 */,
2749
- /* 70 */
2750
- /***/ (function(module, exports) {
2793
+ exports.config = config_1.default;
2794
+ exports.PureSingleValueIcon = SingleValueIcon_1.default;
2751
2795
 
2752
- module.exports = require("lodash/pick");
2796
+ var computeVizProps = function computeVizProps(_ref) {
2797
+ var icon = _ref.icon,
2798
+ _ref$IconComponent = _ref.IconComponent,
2799
+ IconComponent = _ref$IconComponent === void 0 ? null : _ref$IconComponent,
2800
+ themeFunc = _ref.themeFunc;
2753
2801
 
2754
- /***/ }),
2755
- /* 71 */
2756
- /***/ (function(module, exports) {
2802
+ if (icon && (iconUtils_1.isRemoteIcon(icon) || iconUtils_1.isDataURI(icon))) {
2803
+ // eslint-disable-next-line no-param-reassign
2804
+ IconComponent = React.createElement(RemoteIcon_1.default, {
2805
+ iconURL: icon
2806
+ });
2807
+ }
2757
2808
 
2758
- module.exports = require("lodash/isEmpty");
2809
+ return {
2810
+ IconComponent: IconComponent,
2811
+ defaultFontColor: themeFunc('defaultFontColor'),
2812
+ defaultBlockFontColor: themeFunc('defaultBlockFontColor')
2813
+ };
2814
+ };
2759
2815
 
2760
- /***/ }),
2761
- /* 72 */,
2762
- /* 73 */,
2763
- /* 74 */,
2764
- /* 75 */,
2765
- /* 76 */,
2766
- /* 77 */
2767
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2816
+ exports.computeVizProps = computeVizProps;
2817
+ var viz = withDashboardViz_1.default({
2818
+ ReactViz: SingleValueIcon_1.default,
2819
+ vizConfig: config_1.default,
2820
+ computeVizProps: exports.computeVizProps
2821
+ });
2822
+ exports.themes = config_1.default.themes;
2823
+ exports.default = viz;
2768
2824
 
2769
- "use strict";
2770
- __webpack_require__.r(__webpack_exports__);
2771
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
2772
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
2773
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
2774
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
2825
+ /***/ }),
2775
2826
 
2827
+ /***/ 444:
2828
+ /***/ (function(module, exports) {
2776
2829
 
2777
- var StaticBackgroundColorEditor = {
2778
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Background'),
2779
- option: 'backgroundColor',
2780
- editor: 'editor.color',
2781
- showEditor: function showEditor(_ref) {
2782
- var options = _ref.options;
2783
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
2784
- }
2785
- };
2786
- /* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
2830
+ module.exports = require("@splunk/visualizations-shared/RemoteIcon");
2787
2831
 
2788
2832
  /***/ }),
2789
- /* 78 */,
2790
- /* 79 */,
2791
- /* 80 */,
2792
- /* 81 */,
2793
- /* 82 */,
2794
- /* 83 */
2795
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2796
-
2797
- "use strict";
2798
- __webpack_require__.r(__webpack_exports__);
2799
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
2800
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
2801
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
2802
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
2803
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
2804
2833
 
2834
+ /***/ 445:
2835
+ /***/ (function(module, exports) {
2805
2836
 
2806
- var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
2807
- var defaultContext = _ref.defaultContext,
2808
- defaultPalettesConfig = _ref.defaultPalettesConfig;
2809
- return {
2810
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Major Value'),
2811
- option: 'majorColor',
2812
- context: 'majorColorEditorConfig',
2813
- editor: 'editor.dynamicColor',
2814
- showEditor: function showEditor(_ref2) {
2815
- var options = _ref2.options;
2816
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
2817
- },
2818
- editorProps: {
2819
- labelPosition: 'left',
2820
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Coloring: Major Value'),
2821
- formatters: [{
2822
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
2823
- value: 'rangeValue',
2824
- defaults: {
2825
- majorValue: defaultContext.majorColorConfig
2826
- }
2827
- }, {
2828
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
2829
- value: 'matchValue',
2830
- defaults: {
2831
- majorValue: defaultContext.majorColorMatchConfig
2832
- }
2833
- }],
2834
- dataSelectors: [{
2835
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
2836
- value: 'majorValue'
2837
- }],
2838
- defaultPalettesConfig: defaultPalettesConfig
2839
- }
2840
- };
2841
- };
2837
+ module.exports = require("@splunk/visualizations-shared/iconUtils");
2842
2838
 
2843
2839
  /***/ }),
2844
- /* 84 */
2845
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2840
+
2841
+ /***/ 446:
2842
+ /***/ (function(module, exports, __webpack_require__) {
2846
2843
 
2847
2844
  "use strict";
2848
- __webpack_require__.r(__webpack_exports__);
2849
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
2850
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
2851
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
2852
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
2853
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
2854
2845
 
2855
2846
 
2856
- var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
2857
- var defaultContext = _ref.defaultContext,
2858
- defaultPalettesConfig = _ref.defaultPalettesConfig;
2859
- return {
2860
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Trend'),
2861
- option: 'trendColor',
2862
- context: 'trendColorEditorConfig',
2863
- editor: 'editor.dynamicColor',
2864
- showEditor: function showEditor(_ref2) {
2865
- var options = _ref2.options;
2866
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
2867
- },
2868
- editorProps: {
2869
- labelPosition: 'left',
2870
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Coloring: Trend'),
2871
- formatters: [{
2872
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
2873
- value: 'rangeValue',
2874
- defaults: {
2875
- trendValue: defaultContext.trendColorConfig
2876
- }
2877
- }],
2878
- dataSelectors: [{
2879
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend'),
2880
- value: 'trendValue'
2881
- }],
2882
- defaultPalettesConfig: defaultPalettesConfig
2883
- }
2884
- };
2885
- };
2847
+ var _toConsumableArray = __webpack_require__(8);
2886
2848
 
2887
- /***/ }),
2888
- /* 85 */
2889
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2849
+ Object.defineProperty(exports, "__esModule", {
2850
+ value: true
2851
+ });
2890
2852
 
2891
- "use strict";
2892
- __webpack_require__.r(__webpack_exports__);
2893
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
2894
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
2895
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
2896
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
2897
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
2853
+ var i18n_1 = __webpack_require__(2);
2898
2854
 
2855
+ var schemaUtils_1 = __webpack_require__(16);
2899
2856
 
2900
- var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
2901
- var defaultContext = _ref.defaultContext,
2902
- defaultPalettesConfig = _ref.defaultPalettesConfig;
2903
- return {
2904
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Background'),
2905
- option: 'backgroundColor',
2906
- context: 'backgroundColorEditorConfig',
2907
- editor: 'editor.dynamicColor',
2908
- showEditor: function showEditor(_ref2) {
2909
- var options = _ref2.options;
2910
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
2911
- },
2912
- editorProps: {
2913
- labelPosition: 'left',
2914
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Coloring: Background'),
2915
- formatters: [{
2916
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
2917
- value: 'rangeValue',
2918
- defaults: {
2919
- majorValue: defaultContext.majorColorConfig,
2920
- trendValue: defaultContext.trendColorConfig
2921
- }
2922
- }, {
2923
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
2924
- value: 'matchValue',
2925
- defaults: {
2926
- majorValue: defaultContext.majorColorMatchConfig
2927
- }
2928
- }],
2929
- dataSelectors: [{
2930
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
2931
- value: 'majorValue'
2932
- }, {
2933
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend'),
2934
- value: 'trendValue'
2935
- }],
2936
- defaultPalettesConfig: defaultPalettesConfig
2937
- }
2938
- };
2939
- };
2857
+ var PresetPalettes_1 = __webpack_require__(54);
2940
2858
 
2941
- /***/ }),
2942
- /* 86 */
2943
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2859
+ var pick_1 = __webpack_require__(21);
2944
2860
 
2945
- "use strict";
2946
- __webpack_require__.r(__webpack_exports__);
2947
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
2948
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
2949
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
2950
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
2861
+ var variables_1 = __webpack_require__(9);
2951
2862
 
2863
+ var configUtils_1 = __webpack_require__(18);
2952
2864
 
2953
- var StaticMajorColorEditor = {
2954
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Major Value'),
2955
- option: 'majorColor',
2956
- editor: 'editor.color',
2957
- showEditor: function showEditor(_ref) {
2958
- var options = _ref.options;
2959
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
2960
- }
2961
- };
2962
- /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
2865
+ var singleValueContext_1 = __webpack_require__(118);
2963
2866
 
2964
- /***/ }),
2965
- /* 87 */
2966
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2867
+ var StaticMajorAndTrendLayout_1 = __webpack_require__(119);
2967
2868
 
2968
- "use strict";
2969
- __webpack_require__.r(__webpack_exports__);
2970
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
2971
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
2972
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
2973
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
2869
+ var StaticBackgroundColorEditor_1 = __webpack_require__(78);
2974
2870
 
2871
+ var StaticIconColorEditor_1 = __webpack_require__(447);
2975
2872
 
2976
- var StaticTrendColorEditor = {
2977
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Trend'),
2978
- option: 'trendColor',
2979
- editor: 'editor.color',
2980
- showEditor: function showEditor(_ref) {
2981
- var options = _ref.options;
2982
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
2983
- },
2984
- isDisabled: function isDisabled(_ref2) {
2985
- var options = _ref2.options;
2986
- return options.trendDisplay === 'off';
2987
- }
2988
- };
2989
- /* harmony default export */ __webpack_exports__["default"] = (StaticTrendColorEditor);
2873
+ var StaticMajorColorEditor_1 = __webpack_require__(90);
2990
2874
 
2991
- /***/ }),
2992
- /* 88 */,
2993
- /* 89 */,
2994
- /* 90 */,
2995
- /* 91 */,
2996
- /* 92 */,
2997
- /* 93 */,
2998
- /* 94 */,
2999
- /* 95 */,
3000
- /* 96 */,
3001
- /* 97 */,
3002
- /* 98 */,
3003
- /* 99 */,
3004
- /* 100 */,
3005
- /* 101 */,
3006
- /* 102 */,
3007
- /* 103 */,
3008
- /* 104 */,
3009
- /* 105 */,
3010
- /* 106 */,
3011
- /* 107 */,
3012
- /* 108 */,
3013
- /* 109 */,
3014
- /* 110 */
3015
- /***/ (function(module, exports, __webpack_require__) {
2875
+ var StaticTrendColorEditor_1 = __webpack_require__(91);
3016
2876
 
3017
- "use strict";
2877
+ var DynamicMajorColorEditor_1 = __webpack_require__(87);
3018
2878
 
2879
+ var DynamicTrendColorEditor_1 = __webpack_require__(88);
3019
2880
 
3020
- Object.defineProperty(exports, "__esModule", {
3021
- value: true
3022
- });
3023
- exports.defaultContext = void 0;
3024
- exports.defaultContext = {
3025
- trendColorConfig: [{
3026
- to: 0,
3027
- value: '#9E2520'
3028
- }, {
3029
- from: 0,
3030
- value: '#1C6B2D'
3031
- }],
3032
- majorColorConfig: [{
3033
- to: 20,
3034
- value: '#D41F1F'
3035
- }, {
3036
- from: 20,
3037
- to: 40,
3038
- value: '#D94E17'
3039
- }, {
3040
- from: 40,
3041
- to: 60,
3042
- value: '#CBA700'
3043
- }, {
3044
- from: 60,
3045
- to: 80,
3046
- value: '#669922'
3047
- }, {
3048
- from: 80,
3049
- value: '#118832'
3050
- }],
3051
- majorColorMatchConfig: [{
3052
- match: '',
3053
- value: '#5C33FF'
3054
- }]
3055
- };
2881
+ var DynamicBackgroundColorEditor_1 = __webpack_require__(89);
3056
2882
 
3057
- /***/ }),
3058
- /* 111 */
3059
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2883
+ var VizBehavior_1 = __webpack_require__(6);
3060
2884
 
3061
- "use strict";
3062
- __webpack_require__.r(__webpack_exports__);
3063
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
3064
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
2885
+ var configUtils_2 = __webpack_require__(17);
3065
2886
 
3066
- var StaticMajorAndTrendLayout = [[{
3067
- label: 'Unit Position',
3068
- // todo: we need a new editor combining unit and position
3069
- option: 'unitPosition',
3070
- editor: 'editor.select',
3071
- editorProps: {
3072
- values: [{
3073
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Before'),
3074
- value: 'before'
3075
- }, {
3076
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('After'),
3077
- value: 'after'
3078
- }]
3079
- },
3080
- showEditor: function showEditor(_ref) {
3081
- var options = _ref.options;
3082
- return options.showValue || options.showValue === undefined;
3083
- }
3084
- }, {
3085
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Unit Label'),
3086
- option: 'unit',
3087
- editor: 'editor.text',
3088
- showEditor: function showEditor(_ref2) {
3089
- var options = _ref2.options;
3090
- return options.showValue || options.showValue === undefined;
3091
- }
3092
- }], [{
3093
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Precision'),
3094
- option: 'numberPrecision',
3095
- editor: 'editor.number',
3096
- editorProps: {
3097
- min: 0,
3098
- max: 20
3099
- },
3100
- showEditor: function showEditor(_ref3) {
3101
- var options = _ref3.options;
3102
- return options.showValue || options.showValue === undefined;
3103
- }
3104
- }, {
3105
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value Size (px)'),
3106
- option: 'majorFontSize',
3107
- editor: 'editor.number',
3108
- editorProps: {
3109
- min: 1
3110
- },
3111
- placeholder: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Auto'),
3112
- showEditor: function showEditor(_ref4) {
3113
- var options = _ref4.options;
3114
- return options.showValue || options.showValue === undefined;
3115
- }
3116
- }], [{
3117
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend Display'),
3118
- option: 'trendDisplay',
3119
- editor: 'editor.select',
3120
- editorProps: {
3121
- values: [{
3122
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Percent'),
3123
- value: 'percent'
3124
- }, {
3125
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Absolute'),
3126
- value: 'absolute'
3127
- }, {
3128
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Off'),
3129
- value: 'off'
3130
- }]
3131
- },
3132
- showEditor: function showEditor(_ref5) {
3133
- var options = _ref5.options;
3134
- return options.showValue || options.showValue === undefined;
3135
- }
3136
- }, {
3137
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend Size (px)'),
3138
- option: 'trendFontSize',
3139
- editor: 'editor.number',
3140
- editorProps: {
3141
- min: 1
3142
- },
3143
- placeholder: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Auto'),
3144
- showEditor: function showEditor(_ref6) {
3145
- var options = _ref6.options;
3146
- return options.showValue || options.showValue === undefined;
3147
- },
3148
- isDisabled: function isDisabled(_ref7) {
3149
- var options = _ref7.options;
3150
- return options.trendDisplay === 'off';
3151
- }
3152
- }]];
3153
- /* harmony default export */ __webpack_exports__["default"] = (StaticMajorAndTrendLayout);
3154
-
3155
- /***/ }),
3156
- /* 112 */,
3157
- /* 113 */,
3158
- /* 114 */,
3159
- /* 115 */,
3160
- /* 116 */,
3161
- /* 117 */
3162
- /***/ (function(module, exports) {
3163
-
3164
- module.exports = require("@splunk/visualizations/SingleValueBasic");
3165
-
3166
- /***/ }),
3167
- /* 118 */,
3168
- /* 119 */,
3169
- /* 120 */,
3170
- /* 121 */,
3171
- /* 122 */,
3172
- /* 123 */,
3173
- /* 124 */,
3174
- /* 125 */,
3175
- /* 126 */,
3176
- /* 127 */,
3177
- /* 128 */,
3178
- /* 129 */,
3179
- /* 130 */,
3180
- /* 131 */,
3181
- /* 132 */,
3182
- /* 133 */,
3183
- /* 134 */,
3184
- /* 135 */,
3185
- /* 136 */,
3186
- /* 137 */,
3187
- /* 138 */,
3188
- /* 139 */,
3189
- /* 140 */,
3190
- /* 141 */,
3191
- /* 142 */
3192
- /***/ (function(module, exports) {
3193
-
3194
- module.exports = require("@splunk/react-icons/Activity");
3195
-
3196
- /***/ }),
3197
- /* 143 */
3198
- /***/ (function(module, exports) {
3199
-
3200
- module.exports = require("@splunk/react-icons/Clock");
3201
-
3202
- /***/ }),
3203
- /* 144 */
3204
- /***/ (function(module, exports) {
3205
-
3206
- module.exports = require("@splunk/react-icons/Pencil");
3207
-
3208
- /***/ }),
3209
- /* 145 */
3210
- /***/ (function(module, exports) {
3211
-
3212
- module.exports = require("@splunk/react-icons/Star");
3213
-
3214
- /***/ }),
3215
- /* 146 */
3216
- /***/ (function(module, exports) {
3217
-
3218
- module.exports = require("@splunk/react-icons/Question");
3219
-
3220
- /***/ }),
3221
- /* 147 */,
3222
- /* 148 */,
3223
- /* 149 */,
3224
- /* 150 */,
3225
- /* 151 */,
3226
- /* 152 */,
3227
- /* 153 */,
3228
- /* 154 */,
3229
- /* 155 */,
3230
- /* 156 */,
3231
- /* 157 */,
3232
- /* 158 */,
3233
- /* 159 */,
3234
- /* 160 */,
3235
- /* 161 */,
3236
- /* 162 */,
3237
- /* 163 */,
3238
- /* 164 */,
3239
- /* 165 */,
3240
- /* 166 */,
3241
- /* 167 */,
3242
- /* 168 */,
3243
- /* 169 */,
3244
- /* 170 */,
3245
- /* 171 */,
3246
- /* 172 */,
3247
- /* 173 */,
3248
- /* 174 */,
3249
- /* 175 */,
3250
- /* 176 */,
3251
- /* 177 */,
3252
- /* 178 */,
3253
- /* 179 */,
3254
- /* 180 */,
3255
- /* 181 */,
3256
- /* 182 */,
3257
- /* 183 */,
3258
- /* 184 */,
3259
- /* 185 */,
3260
- /* 186 */,
3261
- /* 187 */,
3262
- /* 188 */,
3263
- /* 189 */,
3264
- /* 190 */,
3265
- /* 191 */,
3266
- /* 192 */,
3267
- /* 193 */,
3268
- /* 194 */,
3269
- /* 195 */,
3270
- /* 196 */,
3271
- /* 197 */,
3272
- /* 198 */,
3273
- /* 199 */,
3274
- /* 200 */,
3275
- /* 201 */,
3276
- /* 202 */,
3277
- /* 203 */,
3278
- /* 204 */,
3279
- /* 205 */,
3280
- /* 206 */,
3281
- /* 207 */,
3282
- /* 208 */,
3283
- /* 209 */,
3284
- /* 210 */,
3285
- /* 211 */,
3286
- /* 212 */,
3287
- /* 213 */,
3288
- /* 214 */,
3289
- /* 215 */,
3290
- /* 216 */,
3291
- /* 217 */,
3292
- /* 218 */,
3293
- /* 219 */,
3294
- /* 220 */,
3295
- /* 221 */,
3296
- /* 222 */,
3297
- /* 223 */,
3298
- /* 224 */,
3299
- /* 225 */,
3300
- /* 226 */,
3301
- /* 227 */,
3302
- /* 228 */,
3303
- /* 229 */,
3304
- /* 230 */,
3305
- /* 231 */,
3306
- /* 232 */,
3307
- /* 233 */,
3308
- /* 234 */,
3309
- /* 235 */,
3310
- /* 236 */,
3311
- /* 237 */,
3312
- /* 238 */,
3313
- /* 239 */,
3314
- /* 240 */,
3315
- /* 241 */,
3316
- /* 242 */,
3317
- /* 243 */,
3318
- /* 244 */,
3319
- /* 245 */,
3320
- /* 246 */,
3321
- /* 247 */,
3322
- /* 248 */,
3323
- /* 249 */,
3324
- /* 250 */,
3325
- /* 251 */,
3326
- /* 252 */,
3327
- /* 253 */,
3328
- /* 254 */,
3329
- /* 255 */,
3330
- /* 256 */,
3331
- /* 257 */,
3332
- /* 258 */
3333
- /***/ (function(module, exports, __webpack_require__) {
3334
-
3335
- "use strict";
3336
-
3337
-
3338
- Object.defineProperty(exports, "__esModule", {
3339
- value: true
3340
- });
3341
- exports.themes = exports.computeVizProps = exports.PureSingleValueIcon = exports.config = void 0;
3342
-
3343
- var React = __webpack_require__(1);
3344
-
3345
- var RemoteIcon_1 = __webpack_require__(259);
3346
-
3347
- var iconUtils_1 = __webpack_require__(260);
3348
-
3349
- var SingleValueIcon_1 = __webpack_require__(279);
3350
-
3351
- var withDashboardViz_1 = __webpack_require__(30);
3352
-
3353
- var config_1 = __webpack_require__(261);
3354
-
3355
- exports.config = config_1.default;
3356
- exports.PureSingleValueIcon = SingleValueIcon_1.default;
3357
-
3358
- var computeVizProps = function computeVizProps(_ref) {
3359
- var icon = _ref.icon,
3360
- _ref$IconComponent = _ref.IconComponent,
3361
- IconComponent = _ref$IconComponent === void 0 ? null : _ref$IconComponent,
3362
- themeFunc = _ref.themeFunc;
3363
-
3364
- if (icon && (iconUtils_1.isRemoteIcon(icon) || iconUtils_1.isDataURI(icon))) {
3365
- // eslint-disable-next-line no-param-reassign
3366
- IconComponent = React.createElement(RemoteIcon_1.default, {
3367
- iconURL: icon
3368
- });
3369
- }
3370
-
3371
- return {
3372
- IconComponent: IconComponent,
3373
- defaultFontColor: themeFunc('defaultFontColor'),
3374
- defaultBlockFontColor: themeFunc('defaultBlockFontColor')
3375
- };
3376
- };
3377
-
3378
- exports.computeVizProps = computeVizProps;
3379
- var viz = withDashboardViz_1.default({
3380
- ReactViz: SingleValueIcon_1.default,
3381
- vizConfig: config_1.default,
3382
- computeVizProps: exports.computeVizProps
3383
- });
3384
- exports.themes = config_1.default.themes;
3385
- exports.default = viz;
3386
-
3387
- /***/ }),
3388
- /* 259 */
3389
- /***/ (function(module, exports) {
3390
-
3391
- module.exports = require("@splunk/visualizations-shared/RemoteIcon");
3392
-
3393
- /***/ }),
3394
- /* 260 */
3395
- /***/ (function(module, exports) {
3396
-
3397
- module.exports = require("@splunk/visualizations-shared/iconUtils");
3398
-
3399
- /***/ }),
3400
- /* 261 */
3401
- /***/ (function(module, exports, __webpack_require__) {
3402
-
3403
- "use strict";
3404
-
3405
-
3406
- var _toConsumableArray = __webpack_require__(9);
3407
-
3408
- Object.defineProperty(exports, "__esModule", {
3409
- value: true
3410
- });
3411
-
3412
- var i18n_1 = __webpack_require__(3);
3413
-
3414
- var schemaUtils_1 = __webpack_require__(16);
3415
-
3416
- var PresetPalettes_1 = __webpack_require__(53);
3417
-
3418
- var pick_1 = __webpack_require__(20);
3419
-
3420
- var variables_1 = __webpack_require__(10);
3421
-
3422
- var singleValueContext_1 = __webpack_require__(110);
3423
-
3424
- var StaticMajorAndTrendLayout_1 = __webpack_require__(111);
3425
-
3426
- var StaticBackgroundColorEditor_1 = __webpack_require__(77);
3427
-
3428
- var StaticIconColorEditor_1 = __webpack_require__(262);
3429
-
3430
- var StaticMajorColorEditor_1 = __webpack_require__(86);
3431
-
3432
- var StaticTrendColorEditor_1 = __webpack_require__(87);
3433
-
3434
- var DynamicMajorColorEditor_1 = __webpack_require__(83);
3435
-
3436
- var DynamicTrendColorEditor_1 = __webpack_require__(84);
3437
-
3438
- var DynamicBackgroundColorEditor_1 = __webpack_require__(85);
3439
-
3440
- var VizBehavior_1 = __webpack_require__(5);
3441
-
3442
- var configUtils_1 = __webpack_require__(6);
3443
-
3444
- var VizCategory_1 = __webpack_require__(29);
2887
+ var VizCategory_1 = __webpack_require__(31);
3445
2888
 
3446
2889
  var dataContract = {
3447
2890
  requiredDataSources: [{
@@ -3464,7 +2907,7 @@ var optionsSchema = {
3464
2907
  backgroundColor: {
3465
2908
  default: 'transparent',
3466
2909
  description: 'Specify the color for the background. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”.',
3467
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
2910
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3468
2911
  type: 'string'
3469
2912
  },
3470
2913
  icon: {
@@ -3475,7 +2918,7 @@ var optionsSchema = {
3475
2918
  iconColor: {
3476
2919
  default: null,
3477
2920
  description: '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)".',
3478
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
2921
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3479
2922
  type: 'string'
3480
2923
  },
3481
2924
  iconOpacity: {
@@ -3491,7 +2934,7 @@ var optionsSchema = {
3491
2934
  majorColor: {
3492
2935
  default: '> themes.defaultFontColor',
3493
2936
  description: '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)".',
3494
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
2937
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3495
2938
  type: 'string'
3496
2939
  },
3497
2940
  majorFontSize: {
@@ -3533,7 +2976,7 @@ var optionsSchema = {
3533
2976
  trendColor: {
3534
2977
  default: '> themes.defaultFontColor',
3535
2978
  description: '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)".',
3536
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
2979
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3537
2980
  type: 'string'
3538
2981
  },
3539
2982
  trendDisplay: {
@@ -3685,7 +3128,7 @@ var editorConfig = [{
3685
3128
  value: function value(_ref) {
3686
3129
  var context = _ref.context,
3687
3130
  options = _ref.options;
3688
- var initialPreset = configUtils_1.getInitialPreset(context, options, presets);
3131
+ var initialPreset = configUtils_2.getInitialPreset(context, options, presets);
3689
3132
  return initialPreset && initialPreset.label || null;
3690
3133
  }
3691
3134
  }
@@ -3784,22 +3227,23 @@ var config = {
3784
3227
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS],
3785
3228
  themes: themes
3786
3229
  };
3787
- exports.default = configUtils_1.enhanceConfig(config);
3230
+ exports.default = configUtils_2.enhanceConfig(config);
3788
3231
 
3789
3232
  /***/ }),
3790
- /* 262 */
3233
+
3234
+ /***/ 447:
3791
3235
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3792
3236
 
3793
3237
  "use strict";
3794
3238
  __webpack_require__.r(__webpack_exports__);
3795
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
3239
+ /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3796
3240
  /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
3797
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
3241
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
3798
3242
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__);
3799
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43);
3243
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45);
3800
3244
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__);
3801
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
3802
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_3__);
3245
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18);
3246
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__);
3803
3247
 
3804
3248
 
3805
3249
 
@@ -3810,7 +3254,7 @@ var StaticIconColorEditor = [{
3810
3254
  editor: 'editor.color',
3811
3255
  showEditor: function showEditor(_ref) {
3812
3256
  var options = _ref.options;
3813
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_3__["isDynamicOption"])(options.iconColor);
3257
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__["isDynamicOption"])(options.iconColor);
3814
3258
  },
3815
3259
  editorProps: {
3816
3260
  labelPosition: 'left',
@@ -3821,23 +3265,15 @@ var StaticIconColorEditor = [{
3821
3265
  /* harmony default export */ __webpack_exports__["default"] = (StaticIconColorEditor);
3822
3266
 
3823
3267
  /***/ }),
3824
- /* 263 */,
3825
- /* 264 */,
3826
- /* 265 */,
3827
- /* 266 */,
3828
- /* 267 */,
3829
- /* 268 */,
3830
- /* 269 */,
3831
- /* 270 */,
3832
- /* 271 */,
3833
- /* 272 */,
3834
- /* 273 */,
3835
- /* 274 */,
3836
- /* 275 */,
3837
- /* 276 */,
3838
- /* 277 */,
3839
- /* 278 */,
3840
- /* 279 */
3268
+
3269
+ /***/ 45:
3270
+ /***/ (function(module, exports) {
3271
+
3272
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
3273
+
3274
+ /***/ }),
3275
+
3276
+ /***/ 464:
3841
3277
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3842
3278
 
3843
3279
  "use strict";
@@ -3845,7 +3281,7 @@ var StaticIconColorEditor = [{
3845
3281
  __webpack_require__.r(__webpack_exports__);
3846
3282
 
3847
3283
  // EXTERNAL MODULE: external "@babel/runtime/helpers/extends"
3848
- var extends_ = __webpack_require__(47);
3284
+ var extends_ = __webpack_require__(48);
3849
3285
  var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
3850
3286
 
3851
3287
  // EXTERNAL MODULE: external "react"
@@ -3861,60 +3297,60 @@ var external_styled_components_ = __webpack_require__(4);
3861
3297
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
3862
3298
 
3863
3299
  // EXTERNAL MODULE: external "lodash/pick"
3864
- var pick_ = __webpack_require__(70);
3300
+ var pick_ = __webpack_require__(71);
3865
3301
  var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
3866
3302
 
3867
3303
  // EXTERNAL MODULE: external "lodash/isEmpty"
3868
- var isEmpty_ = __webpack_require__(71);
3304
+ var isEmpty_ = __webpack_require__(72);
3869
3305
  var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
3870
3306
 
3871
3307
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
3872
3308
  var style_ = __webpack_require__(15);
3873
3309
 
3874
3310
  // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
3875
- var i18n_ = __webpack_require__(3);
3311
+ var i18n_ = __webpack_require__(2);
3876
3312
 
3877
3313
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
3878
- var SizeAwareWrapper_ = __webpack_require__(18);
3314
+ var SizeAwareWrapper_ = __webpack_require__(20);
3879
3315
  var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
3880
3316
 
3881
3317
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/Message"
3882
- var Message_ = __webpack_require__(11);
3318
+ var Message_ = __webpack_require__(10);
3883
3319
  var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
3884
3320
 
3885
3321
  // EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
3886
- var VizStyleWrapper = __webpack_require__(62);
3322
+ var VizStyleWrapper = __webpack_require__(63);
3887
3323
 
3888
3324
  // EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
3889
3325
  var defineProperty_ = __webpack_require__(7);
3890
3326
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
3891
3327
 
3892
3328
  // EXTERNAL MODULE: external "@splunk/visualizations/SingleValueBasic"
3893
- var SingleValueBasic_ = __webpack_require__(117);
3329
+ var SingleValueBasic_ = __webpack_require__(125);
3894
3330
  var SingleValueBasic_default = /*#__PURE__*/__webpack_require__.n(SingleValueBasic_);
3895
3331
 
3896
3332
  // EXTERNAL MODULE: external "@splunk/react-icons/Activity"
3897
- var Activity_ = __webpack_require__(142);
3333
+ var Activity_ = __webpack_require__(154);
3898
3334
  var Activity_default = /*#__PURE__*/__webpack_require__.n(Activity_);
3899
3335
 
3900
3336
  // EXTERNAL MODULE: external "@splunk/react-icons/Clock"
3901
- var Clock_ = __webpack_require__(143);
3337
+ var Clock_ = __webpack_require__(155);
3902
3338
  var Clock_default = /*#__PURE__*/__webpack_require__.n(Clock_);
3903
3339
 
3904
3340
  // EXTERNAL MODULE: external "@splunk/react-icons/Pencil"
3905
- var Pencil_ = __webpack_require__(144);
3341
+ var Pencil_ = __webpack_require__(156);
3906
3342
  var Pencil_default = /*#__PURE__*/__webpack_require__.n(Pencil_);
3907
3343
 
3908
3344
  // EXTERNAL MODULE: external "@splunk/react-icons/Star"
3909
- var Star_ = __webpack_require__(145);
3345
+ var Star_ = __webpack_require__(157);
3910
3346
  var Star_default = /*#__PURE__*/__webpack_require__.n(Star_);
3911
3347
 
3912
3348
  // EXTERNAL MODULE: external "@splunk/react-icons/Question"
3913
- var Question_ = __webpack_require__(146);
3349
+ var Question_ = __webpack_require__(158);
3914
3350
  var Question_default = /*#__PURE__*/__webpack_require__.n(Question_);
3915
3351
 
3916
3352
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
3917
- var singleValueUtils = __webpack_require__(19);
3353
+ var singleValueUtils = __webpack_require__(22);
3918
3354
 
3919
3355
  // CONCATENATED MODULE: ./src/SingleValueIcon/PureSingleValueIcon/utils/iconUtils.js
3920
3356
  // Todo: this will be replaced by IconLibrary.Registry
@@ -4564,6 +4000,352 @@ SingleValueIcon_SingleValueIcon.defaultProps = {
4564
4000
  };
4565
4001
  /* harmony default export */ var PureSingleValueIcon_SingleValueIcon = __webpack_exports__["default"] = (SingleValueIcon_SingleValueIcon);
4566
4002
 
4567
- /***/ })
4568
- /******/ ]);
4003
+ /***/ }),
4004
+
4005
+ /***/ 48:
4006
+ /***/ (function(module, exports) {
4007
+
4008
+ module.exports = require("@babel/runtime/helpers/extends");
4009
+
4010
+ /***/ }),
4011
+
4012
+ /***/ 49:
4013
+ /***/ (function(module, exports) {
4014
+
4015
+ module.exports = require("@splunk/visualizations-shared/domUtils");
4016
+
4017
+ /***/ }),
4018
+
4019
+ /***/ 54:
4020
+ /***/ (function(module, exports) {
4021
+
4022
+ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
4023
+
4024
+ /***/ }),
4025
+
4026
+ /***/ 6:
4027
+ /***/ (function(module, exports, __webpack_require__) {
4028
+
4029
+ "use strict";
4030
+
4031
+
4032
+ Object.defineProperty(exports, "__esModule", {
4033
+ value: true
4034
+ });
4035
+ exports.VizBehavior = void 0;
4036
+ var VizBehavior;
4037
+
4038
+ (function (VizBehavior) {
4039
+ /**
4040
+ * Dynamic Options Behavior.
4041
+ * This allows visualization options to be powered by data
4042
+ *
4043
+ * **Example**
4044
+ *
4045
+ * sparklineValues: ">primary|seriesByIndex(0)"
4046
+ * would configure sparklineValues with an array of data points
4047
+ * coming from the first series in the primary datasource
4048
+ *
4049
+ */
4050
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
4051
+ VizBehavior["EVENTS"] = "events";
4052
+ /**
4053
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
4054
+ * missing.
4055
+ * @type {string}
4056
+ */
4057
+
4058
+ VizBehavior["PLACEHOLDER"] = "placeholder";
4059
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
4060
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
4061
+
4062
+ /***/ }),
4063
+
4064
+ /***/ 63:
4065
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4066
+
4067
+ "use strict";
4068
+ __webpack_require__.r(__webpack_exports__);
4069
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
4070
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
4071
+
4072
+ var VizStyleWrapper = styled_components__WEBPACK_IMPORTED_MODULE_0___default.a.div.attrs(function (_ref) {
4073
+ var dataTestKey = _ref.dataTestKey;
4074
+ return {
4075
+ 'data-test': dataTestKey
4076
+ };
4077
+ }).withConfig({
4078
+ displayName: "VizStyleWrapper",
4079
+ componentId: "sc-6rw6wv-0"
4080
+ })(["display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;background-color:", ";"], function (props) {
4081
+ return props.backgroundColor;
4082
+ });
4083
+ VizStyleWrapper.displayName = 'VizStyleWrapper';
4084
+ /* harmony default export */ __webpack_exports__["default"] = (VizStyleWrapper);
4085
+
4086
+ /***/ }),
4087
+
4088
+ /***/ 7:
4089
+ /***/ (function(module, exports) {
4090
+
4091
+ module.exports = require("@babel/runtime/helpers/defineProperty");
4092
+
4093
+ /***/ }),
4094
+
4095
+ /***/ 71:
4096
+ /***/ (function(module, exports) {
4097
+
4098
+ module.exports = require("lodash/pick");
4099
+
4100
+ /***/ }),
4101
+
4102
+ /***/ 72:
4103
+ /***/ (function(module, exports) {
4104
+
4105
+ module.exports = require("lodash/isEmpty");
4106
+
4107
+ /***/ }),
4108
+
4109
+ /***/ 78:
4110
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4111
+
4112
+ "use strict";
4113
+ __webpack_require__.r(__webpack_exports__);
4114
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4115
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4116
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
4117
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4118
+
4119
+
4120
+ var StaticBackgroundColorEditor = {
4121
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Background'),
4122
+ option: 'backgroundColor',
4123
+ editor: 'editor.color',
4124
+ showEditor: function showEditor(_ref) {
4125
+ var options = _ref.options;
4126
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4127
+ }
4128
+ };
4129
+ /* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
4130
+
4131
+ /***/ }),
4132
+
4133
+ /***/ 8:
4134
+ /***/ (function(module, exports) {
4135
+
4136
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
4137
+
4138
+ /***/ }),
4139
+
4140
+ /***/ 87:
4141
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4142
+
4143
+ "use strict";
4144
+ __webpack_require__.r(__webpack_exports__);
4145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
4146
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4147
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4148
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
4149
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4150
+
4151
+
4152
+ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4153
+ var defaultContext = _ref.defaultContext,
4154
+ defaultPalettesConfig = _ref.defaultPalettesConfig;
4155
+ return {
4156
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Major Value'),
4157
+ option: 'majorColor',
4158
+ context: 'majorColorEditorConfig',
4159
+ editor: 'editor.dynamicColor',
4160
+ showEditor: function showEditor(_ref2) {
4161
+ var options = _ref2.options;
4162
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4163
+ },
4164
+ editorProps: {
4165
+ labelPosition: 'left',
4166
+ flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Coloring: Major Value'),
4167
+ formatters: [{
4168
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
4169
+ value: 'rangeValue',
4170
+ defaults: {
4171
+ majorValue: defaultContext.majorColorConfig
4172
+ }
4173
+ }, {
4174
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
4175
+ value: 'matchValue',
4176
+ defaults: {
4177
+ majorValue: defaultContext.majorColorMatchConfig
4178
+ }
4179
+ }],
4180
+ dataSelectors: [{
4181
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
4182
+ value: 'majorValue'
4183
+ }],
4184
+ defaultPalettesConfig: defaultPalettesConfig
4185
+ }
4186
+ };
4187
+ };
4188
+
4189
+ /***/ }),
4190
+
4191
+ /***/ 88:
4192
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4193
+
4194
+ "use strict";
4195
+ __webpack_require__.r(__webpack_exports__);
4196
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
4197
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4198
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4199
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
4200
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4201
+
4202
+
4203
+ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4204
+ var defaultContext = _ref.defaultContext,
4205
+ defaultPalettesConfig = _ref.defaultPalettesConfig;
4206
+ return {
4207
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Trend'),
4208
+ option: 'trendColor',
4209
+ context: 'trendColorEditorConfig',
4210
+ editor: 'editor.dynamicColor',
4211
+ showEditor: function showEditor(_ref2) {
4212
+ var options = _ref2.options;
4213
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4214
+ },
4215
+ editorProps: {
4216
+ labelPosition: 'left',
4217
+ flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Coloring: Trend'),
4218
+ formatters: [{
4219
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
4220
+ value: 'rangeValue',
4221
+ defaults: {
4222
+ trendValue: defaultContext.trendColorConfig
4223
+ }
4224
+ }],
4225
+ dataSelectors: [{
4226
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend'),
4227
+ value: 'trendValue'
4228
+ }],
4229
+ defaultPalettesConfig: defaultPalettesConfig
4230
+ }
4231
+ };
4232
+ };
4233
+
4234
+ /***/ }),
4235
+
4236
+ /***/ 89:
4237
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4238
+
4239
+ "use strict";
4240
+ __webpack_require__.r(__webpack_exports__);
4241
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
4242
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4243
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4244
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
4245
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4246
+
4247
+
4248
+ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
4249
+ var defaultContext = _ref.defaultContext,
4250
+ defaultPalettesConfig = _ref.defaultPalettesConfig;
4251
+ return {
4252
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Background'),
4253
+ option: 'backgroundColor',
4254
+ context: 'backgroundColorEditorConfig',
4255
+ editor: 'editor.dynamicColor',
4256
+ showEditor: function showEditor(_ref2) {
4257
+ var options = _ref2.options;
4258
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4259
+ },
4260
+ editorProps: {
4261
+ labelPosition: 'left',
4262
+ flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic Coloring: Background'),
4263
+ formatters: [{
4264
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
4265
+ value: 'rangeValue',
4266
+ defaults: {
4267
+ majorValue: defaultContext.majorColorConfig,
4268
+ trendValue: defaultContext.trendColorConfig
4269
+ }
4270
+ }, {
4271
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
4272
+ value: 'matchValue',
4273
+ defaults: {
4274
+ majorValue: defaultContext.majorColorMatchConfig
4275
+ }
4276
+ }],
4277
+ dataSelectors: [{
4278
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
4279
+ value: 'majorValue'
4280
+ }, {
4281
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend'),
4282
+ value: 'trendValue'
4283
+ }],
4284
+ defaultPalettesConfig: defaultPalettesConfig
4285
+ }
4286
+ };
4287
+ };
4288
+
4289
+ /***/ }),
4290
+
4291
+ /***/ 9:
4292
+ /***/ (function(module, exports) {
4293
+
4294
+ module.exports = require("@splunk/themes/variables");
4295
+
4296
+ /***/ }),
4297
+
4298
+ /***/ 90:
4299
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4300
+
4301
+ "use strict";
4302
+ __webpack_require__.r(__webpack_exports__);
4303
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4304
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4305
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
4306
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4307
+
4308
+
4309
+ var StaticMajorColorEditor = {
4310
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Major Value'),
4311
+ option: 'majorColor',
4312
+ editor: 'editor.color',
4313
+ showEditor: function showEditor(_ref) {
4314
+ var options = _ref.options;
4315
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4316
+ }
4317
+ };
4318
+ /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
4319
+
4320
+ /***/ }),
4321
+
4322
+ /***/ 91:
4323
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4324
+
4325
+ "use strict";
4326
+ __webpack_require__.r(__webpack_exports__);
4327
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4328
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4329
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
4330
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4331
+
4332
+
4333
+ var StaticTrendColorEditor = {
4334
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Static Trend'),
4335
+ option: 'trendColor',
4336
+ editor: 'editor.color',
4337
+ showEditor: function showEditor(_ref) {
4338
+ var options = _ref.options;
4339
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4340
+ },
4341
+ isDisabled: function isDisabled(_ref2) {
4342
+ var options = _ref2.options;
4343
+ return options.trendDisplay === 'off';
4344
+ }
4345
+ };
4346
+ /* harmony default export */ __webpack_exports__["default"] = (StaticTrendColorEditor);
4347
+
4348
+ /***/ })
4349
+
4350
+ /******/ });
4569
4351
  //# sourceMappingURL=SingleValueIcon.js.map