@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,47 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 219);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 404);
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 */
108
+
109
+ /***/ 10:
107
110
  /***/ (function(module, exports) {
108
111
 
109
- module.exports = require("lodash");
112
+ module.exports = require("@splunk/visualizations-shared/Message");
110
113
 
111
114
  /***/ }),
112
- /* 3 */
115
+
116
+ /***/ 11:
113
117
  /***/ (function(module, exports) {
114
118
 
115
- module.exports = require("@splunk/ui-utils/i18n");
119
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
116
120
 
117
121
  /***/ }),
118
- /* 4 */
122
+
123
+ /***/ 12:
119
124
  /***/ (function(module, exports) {
120
125
 
121
- module.exports = require("styled-components");
126
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
122
127
 
123
128
  /***/ }),
124
- /* 5 */
129
+
130
+ /***/ 13:
125
131
  /***/ (function(module, exports, __webpack_require__) {
126
132
 
127
133
  "use strict";
@@ -130,41 +136,155 @@ module.exports = require("styled-components");
130
136
  Object.defineProperty(exports, "__esModule", {
131
137
  value: true
132
138
  });
133
- exports.VizBehavior = void 0;
134
- var VizBehavior;
135
139
 
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
- */
140
+ var React = __webpack_require__(1);
155
141
 
156
- VizBehavior["PLACEHOLDER"] = "placeholder";
157
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
158
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
142
+ var styled_components_1 = __webpack_require__(4);
143
+
144
+ var SizeAwareWrapper_1 = __webpack_require__(20);
145
+
146
+ var style_1 = __webpack_require__(15);
147
+
148
+ var colorUtils_1 = __webpack_require__(12);
149
+
150
+ var Item = styled_components_1.default.div.attrs(function (_ref) {
151
+ var width = _ref.width;
152
+ return {
153
+ style: {
154
+ width: style_1.toPx(width)
155
+ }
156
+ };
157
+ }).withConfig({
158
+ displayName: "FixedSizeContainer__Item",
159
+ componentId: "sc-1yhgpod-0"
160
+ })(["position:relative;background-color:", "};"], function (props) {
161
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
162
+ }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
163
+
164
+ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
165
+ var width = _ref2.width,
166
+ height = _ref2.height;
167
+ return {
168
+ style: Object.assign(Object.assign({}, width && {
169
+ width: style_1.toPx(width)
170
+ }), height && {
171
+ height: style_1.toPx(height)
172
+ })
173
+ };
174
+ }).withConfig({
175
+ displayName: "FixedSizeContainer__FixSizeItem",
176
+ componentId: "sc-1yhgpod-1"
177
+ })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
178
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
179
+ });
180
+ var ItemContent = styled_components_1.default.div.withConfig({
181
+ displayName: "FixedSizeContainer__ItemContent",
182
+ componentId: "sc-1yhgpod-2"
183
+ })(["position:relative;min-height:100px;width:100%;"]);
184
+ var FixSizeItemContent = styled_components_1.default.div.withConfig({
185
+ displayName: "FixedSizeContainer__FixSizeItemContent",
186
+ componentId: "sc-1yhgpod-3"
187
+ })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
188
+
189
+ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
190
+ var FixedSizeContainer = function FixedSizeContainer(props) {
191
+ var width = props.width,
192
+ height = props.height,
193
+ backgroundColor = props.backgroundColor;
194
+
195
+ if (!height) {
196
+ return React.createElement(Item, {
197
+ "data-test": "item",
198
+ width: width,
199
+ backgroundColor: backgroundColor
200
+ }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
201
+ }
202
+
203
+ return React.createElement(FixSizeItem, {
204
+ "data-test": "fix-size-item",
205
+ "data-splunk-visualization-version": "25.2.0 - 4373c5a66",
206
+ width: width,
207
+ height: height,
208
+ backgroundColor: backgroundColor
209
+ }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
210
+ var newWidth = _ref3.width,
211
+ newHeight = _ref3.height;
212
+ return React.createElement(Viz, Object.assign({}, props, {
213
+ width: newWidth,
214
+ height: newHeight
215
+ }));
216
+ })));
217
+ };
218
+
219
+ FixedSizeContainer.displayName = 'withFixedSizeContainer';
220
+ return FixedSizeContainer;
221
+ };
222
+
223
+ exports.default = withFixedSizeContainer;
224
+
225
+ /***/ }),
226
+
227
+ /***/ 14:
228
+ /***/ (function(module, exports, __webpack_require__) {
229
+
230
+ "use strict";
231
+
232
+
233
+ Object.defineProperty(exports, "__esModule", {
234
+ value: true
235
+ });
236
+ exports.extendStaticWrapperProps = void 0;
237
+ /**
238
+ * @method extendStaticWrapperProps
239
+ * @param {Object} props
240
+ * @param {DashboardVizType} props.Wrapper
241
+ * @param {DashboardVizType} props.Visualization
242
+ */
243
+
244
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
245
+ var Wrapper = _ref.Wrapper,
246
+ Visualization = _ref.Visualization;
247
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
248
+ extendProperties.forEach(function (prop) {
249
+ if (Visualization[prop]) {
250
+ // eslint-disable-next-line no-param-reassign
251
+ Wrapper[prop] = Visualization[prop];
252
+ }
253
+ });
254
+ };
255
+
256
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
257
+
258
+ /***/ }),
259
+
260
+ /***/ 145:
261
+ /***/ (function(module, exports) {
262
+
263
+ module.exports = require("@mdhnpm/rgb-hex-converter");
264
+
265
+ /***/ }),
266
+
267
+ /***/ 15:
268
+ /***/ (function(module, exports) {
269
+
270
+ module.exports = require("@splunk/visualizations-shared/style");
271
+
272
+ /***/ }),
273
+
274
+ /***/ 16:
275
+ /***/ (function(module, exports) {
276
+
277
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
159
278
 
160
279
  /***/ }),
161
- /* 6 */
280
+
281
+ /***/ 17:
162
282
  /***/ (function(module, exports, __webpack_require__) {
163
283
 
164
284
  "use strict";
165
285
 
166
286
 
167
- var _toConsumableArray = __webpack_require__(9);
287
+ var _toConsumableArray = __webpack_require__(8);
168
288
 
169
289
  var _defineProperty = __webpack_require__(7);
170
290
 
@@ -184,13 +304,13 @@ var __rest = this && this.__rest || function (s, e) {
184
304
  Object.defineProperty(exports, "__esModule", {
185
305
  value: true
186
306
  });
187
- exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
307
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
188
308
 
189
- var lodash_1 = __webpack_require__(2);
309
+ var lodash_1 = __webpack_require__(3);
190
310
 
191
311
  var schemaUtils_1 = __webpack_require__(16);
192
312
 
193
- var VizBehavior_1 = __webpack_require__(5);
313
+ var VizBehavior_1 = __webpack_require__(6);
194
314
 
195
315
  var dynamicOptionsDSLType = {
196
316
  type: 'string',
@@ -394,249 +514,36 @@ var insertLayout = function insertLayout(layout, index) {
394
514
  exports.insertLayout = insertLayout;
395
515
 
396
516
  /***/ }),
397
- /* 7 */
398
- /***/ (function(module, exports) {
399
-
400
- module.exports = require("@babel/runtime/helpers/defineProperty");
401
-
402
- /***/ }),
403
- /* 8 */
404
- /***/ (function(module, exports, __webpack_require__) {
405
-
406
- "use strict";
407
-
408
-
409
- var _typeof = __webpack_require__(25);
410
-
411
- Object.defineProperty(exports, "__esModule", {
412
- value: true
413
- });
414
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
415
-
416
- var lodash_1 = __webpack_require__(2);
417
-
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
- */
425
-
426
517
 
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 */
518
+ /***/ 19:
490
519
  /***/ (function(module, exports) {
491
520
 
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");
521
+ module.exports = require("@babel/runtime/helpers/createClass");
505
522
 
506
523
  /***/ }),
507
- /* 12 */
508
- /***/ (function(module, exports) {
509
-
510
- module.exports = require("@babel/runtime/helpers/classCallCheck");
511
524
 
512
- /***/ }),
513
- /* 13 */
525
+ /***/ 2:
514
526
  /***/ (function(module, exports) {
515
527
 
516
- module.exports = require("@splunk/visualizations-shared/colorUtils");
528
+ module.exports = require("@splunk/ui-utils/i18n");
517
529
 
518
530
  /***/ }),
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
531
 
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 */
532
+ /***/ 20:
616
533
  /***/ (function(module, exports) {
617
534
 
618
- module.exports = require("@splunk/visualizations-shared/style");
535
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
619
536
 
620
537
  /***/ }),
621
- /* 16 */
622
- /***/ (function(module, exports) {
623
538
 
624
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
625
-
626
- /***/ }),
627
- /* 17 */
539
+ /***/ 21:
628
540
  /***/ (function(module, exports) {
629
541
 
630
- module.exports = require("@babel/runtime/helpers/createClass");
542
+ module.exports = require("@splunk/themes/pick");
631
543
 
632
544
  /***/ }),
633
- /* 18 */
634
- /***/ (function(module, exports) {
635
545
 
636
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
637
-
638
- /***/ }),
639
- /* 19 */
546
+ /***/ 22:
640
547
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
641
548
 
642
549
  "use strict";
@@ -673,15 +580,15 @@ __webpack_require__.r(__webpack_exports__);
673
580
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
674
581
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
675
582
  /* 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);
583
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
677
584
  /* 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);
585
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
679
586
  /* 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);
587
+ /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49);
681
588
  /* 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);
589
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
683
590
  /* 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);
591
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45);
685
592
  /* 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
593
 
687
594
 
@@ -1644,70 +1551,36 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
1644
1551
  };
1645
1552
 
1646
1553
  /***/ }),
1647
- /* 20 */
1648
- /***/ (function(module, exports) {
1649
-
1650
- module.exports = require("@splunk/themes/pick");
1651
1554
 
1652
- /***/ }),
1653
- /* 21 */
1555
+ /***/ 23:
1654
1556
  /***/ (function(module, exports) {
1655
1557
 
1656
1558
  module.exports = require("@splunk/visualization-context/TimezoneContext");
1657
1559
 
1658
1560
  /***/ }),
1659
- /* 22 */
1561
+
1562
+ /***/ 24:
1660
1563
  /***/ (function(module, exports) {
1661
1564
 
1662
1565
  module.exports = require("@splunk/visualizations-shared/propUtils");
1663
1566
 
1664
1567
  /***/ }),
1665
- /* 23 */
1568
+
1569
+ /***/ 25:
1666
1570
  /***/ (function(module, exports) {
1667
1571
 
1668
- module.exports = require("@splunk/visualizations-shared/numberUtils");
1572
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
1669
1573
 
1670
1574
  /***/ }),
1671
- /* 24 */
1672
- /***/ (function(module, exports, __webpack_require__) {
1673
-
1674
- "use strict";
1675
-
1676
1575
 
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
-
1701
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1702
-
1703
- /***/ }),
1704
- /* 25 */
1576
+ /***/ 26:
1705
1577
  /***/ (function(module, exports) {
1706
1578
 
1707
- module.exports = require("@babel/runtime/helpers/typeof");
1579
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1708
1580
 
1709
1581
  /***/ }),
1710
- /* 26 */
1582
+
1583
+ /***/ 27:
1711
1584
  /***/ (function(module, exports, __webpack_require__) {
1712
1585
 
1713
1586
  "use strict";
@@ -1722,13 +1595,13 @@ var React = __webpack_require__(1);
1722
1595
 
1723
1596
  var T = __webpack_require__(0);
1724
1597
 
1725
- var lodash_1 = __webpack_require__(2);
1598
+ var lodash_1 = __webpack_require__(3);
1726
1599
 
1727
- var i18n_1 = __webpack_require__(3);
1600
+ var i18n_1 = __webpack_require__(2);
1728
1601
 
1729
- var Message_1 = __webpack_require__(11);
1602
+ var Message_1 = __webpack_require__(10);
1730
1603
 
1731
- var FixedSizeContainer_1 = __webpack_require__(14);
1604
+ var FixedSizeContainer_1 = __webpack_require__(13);
1732
1605
  /**
1733
1606
  * @method shouldShowIconPlaceholder
1734
1607
  * @param {object} dataSources
@@ -1798,7 +1671,8 @@ IconPlaceholder.defaultProps = {
1798
1671
  exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1799
1672
 
1800
1673
  /***/ }),
1801
- /* 27 */
1674
+
1675
+ /***/ 28:
1802
1676
  /***/ (function(module, exports, __webpack_require__) {
1803
1677
 
1804
1678
  "use strict";
@@ -1813,9 +1687,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1813
1687
 
1814
1688
  var T = __webpack_require__(0);
1815
1689
 
1816
- var lodash_1 = __webpack_require__(2);
1690
+ var lodash_1 = __webpack_require__(3);
1817
1691
 
1818
- var DataSource_1 = __webpack_require__(37);
1692
+ var DataSource_1 = __webpack_require__(39);
1819
1693
 
1820
1694
  exports.SortParamsPropTypes = T.shape({
1821
1695
  currentSortKey: T.string,
@@ -1868,7 +1742,8 @@ var getSortingParams = function getSortingParams(_ref) {
1868
1742
  exports.getSortingParams = getSortingParams;
1869
1743
 
1870
1744
  /***/ }),
1871
- /* 28 */
1745
+
1746
+ /***/ 29:
1872
1747
  /***/ (function(module, exports, __webpack_require__) {
1873
1748
 
1874
1749
  "use strict";
@@ -1881,7 +1756,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1881
1756
 
1882
1757
  var T = __webpack_require__(0);
1883
1758
 
1884
- var lodash_1 = __webpack_require__(2);
1759
+ var lodash_1 = __webpack_require__(3);
1885
1760
 
1886
1761
  exports.PaginatorParamsPropTypes = T.shape({
1887
1762
  isPaging: T.bool,
@@ -1929,10 +1804,25 @@ var getPaginationParams = function getPaginationParams(_ref) {
1929
1804
  };
1930
1805
  };
1931
1806
 
1932
- exports.getPaginationParams = getPaginationParams;
1807
+ exports.getPaginationParams = getPaginationParams;
1808
+
1809
+ /***/ }),
1810
+
1811
+ /***/ 3:
1812
+ /***/ (function(module, exports) {
1813
+
1814
+ module.exports = require("lodash");
1815
+
1816
+ /***/ }),
1817
+
1818
+ /***/ 30:
1819
+ /***/ (function(module, exports) {
1820
+
1821
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
1933
1822
 
1934
1823
  /***/ }),
1935
- /* 29 */
1824
+
1825
+ /***/ 31:
1936
1826
  /***/ (function(module, exports, __webpack_require__) {
1937
1827
 
1938
1828
  "use strict";
@@ -1960,7 +1850,8 @@ var VizCategory;
1960
1850
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
1961
1851
 
1962
1852
  /***/ }),
1963
- /* 30 */
1853
+
1854
+ /***/ 32:
1964
1855
  /***/ (function(module, exports, __webpack_require__) {
1965
1856
 
1966
1857
  "use strict";
@@ -1972,39 +1863,39 @@ Object.defineProperty(exports, "__esModule", {
1972
1863
 
1973
1864
  var React = __webpack_require__(1);
1974
1865
 
1975
- var lodash_1 = __webpack_require__(2);
1866
+ var lodash_1 = __webpack_require__(3);
1976
1867
 
1977
- var getSettingsFromThemedProps_1 = __webpack_require__(31);
1868
+ var getSettingsFromThemedProps_1 = __webpack_require__(33);
1978
1869
 
1979
- var Options_1 = __webpack_require__(32);
1870
+ var Options_1 = __webpack_require__(34);
1980
1871
 
1981
- var SanitizeProps_1 = __webpack_require__(33);
1872
+ var SanitizeProps_1 = __webpack_require__(35);
1982
1873
 
1983
- var TimezoneContext_1 = __webpack_require__(21);
1874
+ var TimezoneContext_1 = __webpack_require__(23);
1984
1875
 
1985
- var moment_1 = __webpack_require__(34);
1876
+ var moment_1 = __webpack_require__(36);
1986
1877
 
1987
1878
  var styled_components_1 = __webpack_require__(4);
1988
1879
 
1989
- var SplunkVisualization_1 = __webpack_require__(35);
1880
+ var hocUtils_1 = __webpack_require__(25);
1990
1881
 
1991
- var VizBehavior_1 = __webpack_require__(5);
1882
+ var JSONSchemaUtils_1 = __webpack_require__(26);
1992
1883
 
1993
- var getSorting_1 = __webpack_require__(27);
1884
+ var SplunkVisualization_1 = __webpack_require__(37);
1994
1885
 
1995
- var getPagination_1 = __webpack_require__(28);
1886
+ var VizBehavior_1 = __webpack_require__(6);
1996
1887
 
1997
- var useDeepMemo_1 = __webpack_require__(38);
1888
+ var getSorting_1 = __webpack_require__(28);
1998
1889
 
1999
- var JSONSchemaUtils_1 = __webpack_require__(24);
1890
+ var getPagination_1 = __webpack_require__(29);
2000
1891
 
2001
- var MissingPropsMessage_1 = __webpack_require__(39);
1892
+ var useDeepMemo_1 = __webpack_require__(40);
2002
1893
 
2003
- var withEditModeCover_1 = __webpack_require__(40);
1894
+ var MissingPropsMessage_1 = __webpack_require__(41);
2004
1895
 
2005
- var withPlaceholder_1 = __webpack_require__(42);
1896
+ var withEditModeCover_1 = __webpack_require__(42);
2006
1897
 
2007
- var hocUtils_1 = __webpack_require__(8);
1898
+ var withPlaceholder_1 = __webpack_require__(43);
2008
1899
  /**
2009
1900
  * hoc that wraps a pure react visualization in a Dashboard visualization
2010
1901
  * @param {DashboardVizOpts} opts
@@ -2205,37 +2096,42 @@ var withDashboardViz = function withDashboardViz(opts) {
2205
2096
  exports.default = withDashboardViz;
2206
2097
 
2207
2098
  /***/ }),
2208
- /* 31 */
2099
+
2100
+ /***/ 33:
2209
2101
  /***/ (function(module, exports) {
2210
2102
 
2211
2103
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
2212
2104
 
2213
2105
  /***/ }),
2214
- /* 32 */
2106
+
2107
+ /***/ 34:
2215
2108
  /***/ (function(module, exports) {
2216
2109
 
2217
2110
  module.exports = require("@splunk/visualization-encoding/Options");
2218
2111
 
2219
2112
  /***/ }),
2220
- /* 33 */
2113
+
2114
+ /***/ 35:
2221
2115
  /***/ (function(module, exports) {
2222
2116
 
2223
2117
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
2224
2118
 
2225
2119
  /***/ }),
2226
- /* 34 */
2120
+
2121
+ /***/ 36:
2227
2122
  /***/ (function(module, exports) {
2228
2123
 
2229
2124
  module.exports = require("@splunk/moment");
2230
2125
 
2231
2126
  /***/ }),
2232
- /* 35 */
2127
+
2128
+ /***/ 37:
2233
2129
  /***/ (function(module, exports, __webpack_require__) {
2234
2130
 
2235
2131
  "use strict";
2236
2132
 
2237
2133
 
2238
- var _classCallCheck = __webpack_require__(12);
2134
+ var _classCallCheck = __webpack_require__(11);
2239
2135
 
2240
2136
  Object.defineProperty(exports, "__esModule", {
2241
2137
  value: true
@@ -2245,9 +2141,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
2245
2141
 
2246
2142
  var T = __webpack_require__(0);
2247
2143
 
2248
- var lodash_1 = __webpack_require__(2);
2144
+ var lodash_1 = __webpack_require__(3);
2249
2145
 
2250
- var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2146
+ var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2251
2147
 
2252
2148
 
2253
2149
  exports.INITIAL_WIDTH = 250;
@@ -2346,369 +2242,101 @@ SplunkVisualization.propTypes = {
2346
2242
 
2347
2243
  /**
2348
2244
  * A callback to request new data with updated request params
2349
- */
2350
- onRequestParamsChange: T.func
2351
- };
2352
- /**
2353
- *
2354
- */
2355
-
2356
- SplunkVisualization.defaultProps = {
2357
- // BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
2358
- width: '100%',
2359
- height: exports.INITIAL_HEIGHT,
2360
- dataSources: {},
2361
- onEventTrigger: function onEventTrigger() {
2362
- return {};
2363
- },
2364
- mode: 'view',
2365
- hasEventHandlers: false,
2366
- options: {},
2367
- context: {},
2368
- onOptionsChange: function onOptionsChange() {
2369
- return {};
2370
- },
2371
- vizActionHandlerRef: function vizActionHandlerRef() {
2372
- return new VizActionHandler_1.DefaultVizActionHandler();
2373
- },
2374
- onComputedProps: function onComputedProps() {
2375
- return {};
2376
- },
2377
- loading: false,
2378
- onRequestParamsChange: lodash_1.noop
2379
- };
2380
- exports.default = SplunkVisualization;
2381
-
2382
- /***/ }),
2383
- /* 36 */
2384
- /***/ (function(module, exports, __webpack_require__) {
2385
-
2386
- "use strict";
2387
-
2388
-
2389
- var _classCallCheck = __webpack_require__(12);
2390
-
2391
- var _createClass = __webpack_require__(17);
2392
-
2393
- Object.defineProperty(exports, "__esModule", {
2394
- value: true
2395
- });
2396
- exports.DefaultVizActionHandler = void 0;
2397
-
2398
- var DefaultVizActionHandler = /*#__PURE__*/function () {
2399
- function DefaultVizActionHandler() {
2400
- _classCallCheck(this, DefaultVizActionHandler);
2401
- }
2402
-
2403
- _createClass(DefaultVizActionHandler, [{
2404
- key: "focus",
2405
- value: function focus() {// noop
2406
- }
2407
- }, {
2408
- key: "snapshot",
2409
- value: function snapshot() {
2410
- return null; // noop
2411
- }
2412
- }]);
2413
-
2414
- return DefaultVizActionHandler;
2415
- }();
2416
-
2417
- exports.DefaultVizActionHandler = DefaultVizActionHandler;
2418
-
2419
- /***/ }),
2420
- /* 37 */
2421
- /***/ (function(module, exports, __webpack_require__) {
2422
-
2423
- "use strict";
2424
-
2425
-
2426
- Object.defineProperty(exports, "__esModule", {
2427
- value: true
2428
- });
2429
- exports.validSortDirs = void 0;
2430
- exports.validSortDirs = ['asc', 'desc', 'none'];
2431
-
2432
- /***/ }),
2433
- /* 38 */
2434
- /***/ (function(module, exports, __webpack_require__) {
2435
-
2436
- "use strict";
2437
-
2438
-
2439
- Object.defineProperty(exports, "__esModule", {
2440
- value: true
2441
- });
2442
- exports.useDeepMemo = void 0;
2443
-
2444
- var react_1 = __webpack_require__(1);
2445
-
2446
- var lodash_1 = __webpack_require__(2);
2447
- /**
2448
- * This hook evaluates and stores the result of a passed function and only
2449
- * re-evaluates the function when passed dependencies change.
2450
- *
2451
- * It is different from the internal React useMemo in the following aspects:
2452
- * - it only stores the last evaluated result
2453
- * - it uses a deep equality check to determine if dependencies have changed
2454
- *
2455
- * Inspired by apollo-client's useDeepMemo
2456
- *
2457
- * @param fn the function to be executed and
2458
- * @param dependencies an array of dependencies
2459
- */
2460
-
2461
-
2462
- var useDeepMemo = function useDeepMemo(fn, dependencies) {
2463
- var ref = react_1.useRef();
2464
-
2465
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
2466
- ref.current = {
2467
- dependencies: dependencies,
2468
- value: fn()
2469
- };
2470
- }
2471
-
2472
- return ref.current.value;
2473
- };
2474
-
2475
- exports.useDeepMemo = useDeepMemo;
2476
-
2477
- /***/ }),
2478
- /* 39 */
2479
- /***/ (function(module, exports, __webpack_require__) {
2480
-
2481
- "use strict";
2482
-
2483
-
2484
- Object.defineProperty(exports, "__esModule", {
2485
- value: true
2486
- });
2487
- exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
2488
-
2489
- var React = __webpack_require__(1);
2490
-
2491
- var T = __webpack_require__(0);
2492
-
2493
- var i18n_1 = __webpack_require__(3);
2494
-
2495
- var Message_1 = __webpack_require__(11);
2496
-
2497
- var FixedSizeContainer_1 = __webpack_require__(14);
2498
- /**
2499
- * @method isMissing
2500
- * @param {any} v
2501
- * @returns {boolean} true if the input value === null or undefined
2502
- */
2503
-
2504
-
2505
- var isMissing = function isMissing(v) {
2506
- return v === null || v === undefined;
2507
- };
2508
-
2509
- exports.isMissing = isMissing;
2510
- /**
2511
- * @method misskingKeys
2512
- * @param {string[]} keys
2513
- * @param {object} target
2514
- * @returns {string[]} the keys of missing required props
2515
- */
2516
-
2517
- var missingKeys = function missingKeys(keys, target) {
2518
- return keys.filter(function (k) {
2519
- return exports.isMissing(target[k]);
2520
- });
2521
- };
2522
-
2523
- exports.missingKeys = missingKeys;
2524
- var propTypes = {
2525
- width: T.oneOfType([T.string, T.number]),
2526
- height: T.oneOfType([T.string, T.number]),
2527
- // eslint-disable-next-line react/no-unused-prop-types
2528
- backgroundColor: T.string,
2529
- missingProps: T.arrayOf(T.string)
2530
- };
2531
- /**
2532
- * @method MissingPropsMessage
2533
- * @param {MissingPropsProps} props
2534
- * @returns {React.ReactElement}
2535
- */
2536
-
2537
- var MissingPropsMessage = function MissingPropsMessage(props) {
2538
- var width = props.width,
2539
- height = props.height,
2540
- missingProps = props.missingProps;
2541
- return React.createElement(Message_1.default, {
2542
- "data-test": "message",
2543
- width: width,
2544
- height: height,
2545
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
2546
- });
2547
- };
2548
-
2549
- exports.MissingPropsMessage = MissingPropsMessage;
2550
- exports.MissingPropsMessage.propTypes = propTypes;
2551
- exports.MissingPropsMessage.defaultProps = {
2552
- width: '100%',
2553
- height: 250
2554
- };
2555
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2556
-
2557
- /***/ }),
2558
- /* 40 */
2559
- /***/ (function(module, exports, __webpack_require__) {
2560
-
2561
- "use strict";
2562
-
2563
-
2564
- Object.defineProperty(exports, "__esModule", {
2565
- value: true
2566
- });
2567
-
2568
- var React = __webpack_require__(1);
2569
-
2570
- var styled_components_1 = __webpack_require__(4);
2571
-
2572
- var hocUtils_1 = __webpack_require__(8);
2573
-
2574
- var Cover = styled_components_1.default.div.withConfig({
2575
- displayName: "withEditModeCover__Cover",
2576
- componentId: "sc-1gsbnxb-0"
2577
- })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
2578
- var Blocker = styled_components_1.default.div.attrs({
2579
- 'data-splunk-visualization-version': "25.0.1 - de10ad954"
2580
- }).withConfig({
2581
- displayName: "withEditModeCover__Blocker",
2582
- componentId: "sc-1gsbnxb-1"
2583
- })(["position:relative;width:100%;height:100%;"]);
2584
- /**
2585
- * HOC that renders a cover layer in edit mode
2586
- * @method withEditModeCover
2587
- * @param {ExtendedDashViz} Visualization
2588
- * @returns {ExtendedDashViz} Wrapper
2589
- */
2590
-
2591
- var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
2592
- var Wrapper = function Wrapper(props) {
2593
- var mode = props.mode;
2594
- var showEditCover = mode === 'edit' && !disableEditModeCover;
2595
- return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
2596
- "data-test": "edit-mode-cover"
2597
- }));
2598
- };
2599
-
2600
- hocUtils_1.extendStaticWrapperProps({
2601
- Wrapper: Wrapper,
2602
- Visualization: Visualization
2603
- });
2604
- return Wrapper;
2245
+ */
2246
+ onRequestParamsChange: T.func
2605
2247
  };
2248
+ /**
2249
+ *
2250
+ */
2606
2251
 
2607
- exports.default = withEditModeCover;
2252
+ SplunkVisualization.defaultProps = {
2253
+ // BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
2254
+ width: '100%',
2255
+ height: exports.INITIAL_HEIGHT,
2256
+ dataSources: {},
2257
+ onEventTrigger: function onEventTrigger() {
2258
+ return {};
2259
+ },
2260
+ mode: 'view',
2261
+ hasEventHandlers: false,
2262
+ options: {},
2263
+ context: {},
2264
+ onOptionsChange: function onOptionsChange() {
2265
+ return {};
2266
+ },
2267
+ vizActionHandlerRef: function vizActionHandlerRef() {
2268
+ return new VizActionHandler_1.DefaultVizActionHandler();
2269
+ },
2270
+ onComputedProps: function onComputedProps() {
2271
+ return {};
2272
+ },
2273
+ loading: false,
2274
+ onRequestParamsChange: lodash_1.noop
2275
+ };
2276
+ exports.default = SplunkVisualization;
2608
2277
 
2609
2278
  /***/ }),
2610
- /* 41 */
2611
- /***/ (function(module, exports) {
2612
2279
 
2613
- module.exports = require("@splunk/visualizations-shared/mapUtils");
2614
-
2615
- /***/ }),
2616
- /* 42 */
2280
+ /***/ 38:
2617
2281
  /***/ (function(module, exports, __webpack_require__) {
2618
2282
 
2619
2283
  "use strict";
2620
2284
 
2621
2285
 
2286
+ var _classCallCheck = __webpack_require__(11);
2287
+
2288
+ var _createClass = __webpack_require__(19);
2289
+
2622
2290
  Object.defineProperty(exports, "__esModule", {
2623
2291
  value: true
2624
2292
  });
2293
+ exports.DefaultVizActionHandler = void 0;
2625
2294
 
2626
- var React = __webpack_require__(1);
2627
-
2628
- var colorUtils_1 = __webpack_require__(13);
2629
-
2630
- var variables_1 = __webpack_require__(10);
2631
-
2632
- var IconPlaceholder_1 = __webpack_require__(26);
2633
-
2634
- var VizBehavior_1 = __webpack_require__(5);
2635
-
2636
- var hocUtils_1 = __webpack_require__(8);
2637
-
2638
- var withPlaceholder = function withPlaceholder(Visualization) {
2639
- var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
2640
- var config = Visualization.config;
2641
- var themes = config.themes;
2642
-
2643
- var Wrapper = function Wrapper(props) {
2644
- var _a, _b;
2645
-
2646
- var dataSources = props.dataSources,
2647
- loading = props.loading,
2648
- options = props.options,
2649
- height = props.height,
2650
- width = props.width;
2651
- var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
2652
- var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
2653
- var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
2654
- var iconColor = variables_1.default.contentColorActive(props);
2295
+ var DefaultVizActionHandler = /*#__PURE__*/function () {
2296
+ function DefaultVizActionHandler() {
2297
+ _classCallCheck(this, DefaultVizActionHandler);
2298
+ }
2655
2299
 
2656
- if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
2657
- return React.createElement(IconPlaceholder_1.default, {
2658
- "data-test": "icon-placeholder",
2659
- icon: icon,
2660
- width: width,
2661
- height: height,
2662
- backgroundColor: bgColorFromTheme,
2663
- iconColor: iconColor
2664
- });
2300
+ _createClass(DefaultVizActionHandler, [{
2301
+ key: "focus",
2302
+ value: function focus() {// noop
2665
2303
  }
2304
+ }, {
2305
+ key: "snapshot",
2306
+ value: function snapshot() {
2307
+ return null; // noop
2308
+ }
2309
+ }]);
2666
2310
 
2667
- return React.createElement(Visualization, Object.assign({}, props));
2668
- };
2669
-
2670
- hocUtils_1.extendStaticWrapperProps({
2671
- Wrapper: Wrapper,
2672
- Visualization: Visualization
2673
- });
2674
- return Wrapper;
2675
- };
2311
+ return DefaultVizActionHandler;
2312
+ }();
2676
2313
 
2677
- exports.default = withPlaceholder;
2314
+ exports.DefaultVizActionHandler = DefaultVizActionHandler;
2678
2315
 
2679
2316
  /***/ }),
2680
- /* 43 */
2681
- /***/ (function(module, exports) {
2682
-
2683
- module.exports = require("@splunk/visualizations-shared/colorConstants");
2684
2317
 
2685
- /***/ }),
2686
- /* 44 */
2687
- /***/ (function(module, exports) {
2318
+ /***/ 39:
2319
+ /***/ (function(module, exports, __webpack_require__) {
2688
2320
 
2689
- module.exports = require("@splunk/visualization-color-palettes");
2321
+ "use strict";
2690
2322
 
2691
- /***/ }),
2692
- /* 45 */
2693
- /***/ (function(module, exports) {
2694
2323
 
2695
- module.exports = require("@splunk/visualization-icons/placeholders");
2324
+ Object.defineProperty(exports, "__esModule", {
2325
+ value: true
2326
+ });
2327
+ exports.validSortDirs = void 0;
2328
+ exports.validSortDirs = ['asc', 'desc', 'none'];
2696
2329
 
2697
2330
  /***/ }),
2698
- /* 46 */
2699
- /***/ (function(module, exports) {
2700
-
2701
- module.exports = require("@splunk/visualization-icons");
2702
2331
 
2703
- /***/ }),
2704
- /* 47 */,
2705
- /* 48 */
2332
+ /***/ 4:
2706
2333
  /***/ (function(module, exports) {
2707
2334
 
2708
- module.exports = require("@splunk/visualizations-shared/domUtils");
2335
+ module.exports = require("styled-components");
2709
2336
 
2710
2337
  /***/ }),
2711
- /* 49 */
2338
+
2339
+ /***/ 40:
2712
2340
  /***/ (function(module, exports, __webpack_require__) {
2713
2341
 
2714
2342
  "use strict";
@@ -2717,217 +2345,44 @@ module.exports = require("@splunk/visualizations-shared/domUtils");
2717
2345
  Object.defineProperty(exports, "__esModule", {
2718
2346
  value: true
2719
2347
  });
2348
+ exports.useDeepMemo = void 0;
2720
2349
 
2721
- var i18n_1 = __webpack_require__(3);
2722
-
2723
- var background = function background(_ref) {
2724
- var label = _ref.label,
2725
- themes = _ref.themes,
2726
- labelPosition = _ref.labelPosition;
2727
- return [{
2728
- label: i18n_1._(label || 'Background'),
2729
- option: 'backgroundColor',
2730
- editor: 'editor.color',
2731
- editorProps: {
2732
- labelPosition: labelPosition || 'top',
2733
- themes: themes
2734
- }
2735
- }];
2736
- };
2737
-
2738
- exports.default = background;
2350
+ var react_1 = __webpack_require__(1);
2739
2351
 
2740
- /***/ }),
2741
- /* 50 */,
2742
- /* 51 */,
2743
- /* 52 */
2744
- /***/ (function(module, exports) {
2352
+ var lodash_1 = __webpack_require__(3);
2353
+ /**
2354
+ * This hook evaluates and stores the result of a passed function and only
2355
+ * re-evaluates the function when passed dependencies change.
2356
+ *
2357
+ * It is different from the internal React useMemo in the following aspects:
2358
+ * - it only stores the last evaluated result
2359
+ * - it uses a deep equality check to determine if dependencies have changed
2360
+ *
2361
+ * Inspired by apollo-client's useDeepMemo
2362
+ *
2363
+ * @param fn the function to be executed and
2364
+ * @param dependencies an array of dependencies
2365
+ */
2745
2366
 
2746
- module.exports = require("@babel/runtime/helpers/slicedToArray");
2747
2367
 
2748
- /***/ }),
2749
- /* 53 */,
2750
- /* 54 */
2751
- /***/ (function(module, exports) {
2368
+ var useDeepMemo = function useDeepMemo(fn, dependencies) {
2369
+ var ref = react_1.useRef();
2752
2370
 
2753
- module.exports = require("d3-array");
2371
+ if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
2372
+ ref.current = {
2373
+ dependencies: dependencies,
2374
+ value: fn()
2375
+ };
2376
+ }
2754
2377
 
2755
- /***/ }),
2756
- /* 55 */,
2757
- /* 56 */,
2758
- /* 57 */,
2759
- /* 58 */,
2760
- /* 59 */,
2761
- /* 60 */,
2762
- /* 61 */,
2763
- /* 62 */,
2764
- /* 63 */,
2765
- /* 64 */,
2766
- /* 65 */,
2767
- /* 66 */,
2768
- /* 67 */,
2769
- /* 68 */,
2770
- /* 69 */,
2771
- /* 70 */,
2772
- /* 71 */,
2773
- /* 72 */,
2774
- /* 73 */,
2775
- /* 74 */,
2776
- /* 75 */,
2777
- /* 76 */,
2778
- /* 77 */,
2779
- /* 78 */
2780
- /***/ (function(module, exports) {
2378
+ return ref.current.value;
2379
+ };
2781
2380
 
2782
- module.exports = require("d3-scale");
2381
+ exports.useDeepMemo = useDeepMemo;
2783
2382
 
2784
2383
  /***/ }),
2785
- /* 79 */,
2786
- /* 80 */,
2787
- /* 81 */,
2788
- /* 82 */,
2789
- /* 83 */,
2790
- /* 84 */,
2791
- /* 85 */,
2792
- /* 86 */,
2793
- /* 87 */,
2794
- /* 88 */,
2795
- /* 89 */,
2796
- /* 90 */,
2797
- /* 91 */,
2798
- /* 92 */,
2799
- /* 93 */,
2800
- /* 94 */,
2801
- /* 95 */,
2802
- /* 96 */,
2803
- /* 97 */,
2804
- /* 98 */,
2805
- /* 99 */,
2806
- /* 100 */,
2807
- /* 101 */,
2808
- /* 102 */,
2809
- /* 103 */,
2810
- /* 104 */,
2811
- /* 105 */,
2812
- /* 106 */,
2813
- /* 107 */,
2814
- /* 108 */,
2815
- /* 109 */,
2816
- /* 110 */,
2817
- /* 111 */,
2818
- /* 112 */,
2819
- /* 113 */,
2820
- /* 114 */,
2821
- /* 115 */,
2822
- /* 116 */,
2823
- /* 117 */,
2824
- /* 118 */,
2825
- /* 119 */,
2826
- /* 120 */,
2827
- /* 121 */,
2828
- /* 122 */,
2829
- /* 123 */,
2830
- /* 124 */,
2831
- /* 125 */,
2832
- /* 126 */,
2833
- /* 127 */,
2834
- /* 128 */,
2835
- /* 129 */,
2836
- /* 130 */,
2837
- /* 131 */,
2838
- /* 132 */,
2839
- /* 133 */,
2840
- /* 134 */
2841
- /***/ (function(module, exports) {
2842
2384
 
2843
- module.exports = require("@mdhnpm/rgb-hex-converter");
2844
-
2845
- /***/ }),
2846
- /* 135 */,
2847
- /* 136 */,
2848
- /* 137 */,
2849
- /* 138 */,
2850
- /* 139 */,
2851
- /* 140 */,
2852
- /* 141 */,
2853
- /* 142 */,
2854
- /* 143 */,
2855
- /* 144 */,
2856
- /* 145 */,
2857
- /* 146 */,
2858
- /* 147 */,
2859
- /* 148 */,
2860
- /* 149 */,
2861
- /* 150 */,
2862
- /* 151 */,
2863
- /* 152 */,
2864
- /* 153 */,
2865
- /* 154 */,
2866
- /* 155 */,
2867
- /* 156 */,
2868
- /* 157 */,
2869
- /* 158 */,
2870
- /* 159 */,
2871
- /* 160 */,
2872
- /* 161 */,
2873
- /* 162 */,
2874
- /* 163 */,
2875
- /* 164 */,
2876
- /* 165 */,
2877
- /* 166 */,
2878
- /* 167 */,
2879
- /* 168 */,
2880
- /* 169 */,
2881
- /* 170 */,
2882
- /* 171 */,
2883
- /* 172 */,
2884
- /* 173 */,
2885
- /* 174 */,
2886
- /* 175 */,
2887
- /* 176 */,
2888
- /* 177 */,
2889
- /* 178 */,
2890
- /* 179 */,
2891
- /* 180 */,
2892
- /* 181 */,
2893
- /* 182 */,
2894
- /* 183 */,
2895
- /* 184 */,
2896
- /* 185 */,
2897
- /* 186 */,
2898
- /* 187 */,
2899
- /* 188 */,
2900
- /* 189 */,
2901
- /* 190 */,
2902
- /* 191 */,
2903
- /* 192 */,
2904
- /* 193 */,
2905
- /* 194 */,
2906
- /* 195 */,
2907
- /* 196 */,
2908
- /* 197 */,
2909
- /* 198 */,
2910
- /* 199 */,
2911
- /* 200 */,
2912
- /* 201 */,
2913
- /* 202 */,
2914
- /* 203 */,
2915
- /* 204 */,
2916
- /* 205 */,
2917
- /* 206 */,
2918
- /* 207 */,
2919
- /* 208 */,
2920
- /* 209 */,
2921
- /* 210 */,
2922
- /* 211 */,
2923
- /* 212 */,
2924
- /* 213 */,
2925
- /* 214 */,
2926
- /* 215 */,
2927
- /* 216 */,
2928
- /* 217 */,
2929
- /* 218 */,
2930
- /* 219 */
2385
+ /***/ 404:
2931
2386
  /***/ (function(module, exports, __webpack_require__) {
2932
2387
 
2933
2388
  "use strict";
@@ -2951,13 +2406,13 @@ Object.defineProperty(exports, "__esModule", {
2951
2406
  });
2952
2407
  exports.themes = exports.computeVizProps = exports.PureParallelCoordinates = exports.config = void 0;
2953
2408
 
2954
- var PureParallelCoordinates_1 = __webpack_require__(220);
2409
+ var PureParallelCoordinates_1 = __webpack_require__(405);
2955
2410
 
2956
- var withDashboardViz_1 = __webpack_require__(30);
2411
+ var withDashboardViz_1 = __webpack_require__(32);
2957
2412
 
2958
- var config_1 = __webpack_require__(227);
2413
+ var config_1 = __webpack_require__(412);
2959
2414
 
2960
- var singleValueUtils_1 = __webpack_require__(19);
2415
+ var singleValueUtils_1 = __webpack_require__(22);
2961
2416
 
2962
2417
  exports.config = config_1.default;
2963
2418
  exports.PureParallelCoordinates = PureParallelCoordinates_1.default;
@@ -3000,13 +2455,14 @@ exports.themes = config_1.default.themes;
3000
2455
  exports.default = viz;
3001
2456
 
3002
2457
  /***/ }),
3003
- /* 220 */
2458
+
2459
+ /***/ 405:
3004
2460
  /***/ (function(module, exports, __webpack_require__) {
3005
2461
 
3006
2462
  "use strict";
3007
2463
 
3008
2464
 
3009
- var _toConsumableArray = __webpack_require__(9);
2465
+ var _toConsumableArray = __webpack_require__(8);
3010
2466
 
3011
2467
  var __rest = this && this.__rest || function (s, e) {
3012
2468
  var t = {};
@@ -3027,17 +2483,17 @@ Object.defineProperty(exports, "__esModule", {
3027
2483
 
3028
2484
  var React = __webpack_require__(1);
3029
2485
 
3030
- var d3_array_1 = __webpack_require__(54);
2486
+ var d3_array_1 = __webpack_require__(55);
3031
2487
 
3032
- var d3_scale_1 = __webpack_require__(78);
2488
+ var d3_scale_1 = __webpack_require__(79);
3033
2489
 
3034
2490
  var T = __webpack_require__(0);
3035
2491
 
3036
- var i18n_1 = __webpack_require__(3);
2492
+ var i18n_1 = __webpack_require__(2);
3037
2493
 
3038
- var Message_1 = __webpack_require__(11);
2494
+ var Message_1 = __webpack_require__(10);
3039
2495
 
3040
- var ParallelCoordinatesChart_1 = __webpack_require__(221);
2496
+ var ParallelCoordinatesChart_1 = __webpack_require__(406);
3041
2497
 
3042
2498
  var PureParallelCoordinates = function PureParallelCoordinates(_a) {
3043
2499
  var props = __rest(_a, []);
@@ -3229,15 +2685,16 @@ PureParallelCoordinates.defaultProps = {
3229
2685
  exports.default = PureParallelCoordinates;
3230
2686
 
3231
2687
  /***/ }),
3232
- /* 221 */
2688
+
2689
+ /***/ 406:
3233
2690
  /***/ (function(module, exports, __webpack_require__) {
3234
2691
 
3235
2692
  "use strict";
3236
2693
 
3237
2694
 
3238
- var _toConsumableArray = __webpack_require__(9);
2695
+ var _toConsumableArray = __webpack_require__(8);
3239
2696
 
3240
- var _slicedToArray = __webpack_require__(52);
2697
+ var _slicedToArray = __webpack_require__(51);
3241
2698
 
3242
2699
  var __rest = this && this.__rest || function (s, e) {
3243
2700
  var t = {};
@@ -3260,17 +2717,17 @@ var React = __webpack_require__(1);
3260
2717
 
3261
2718
  var styled_components_1 = __webpack_require__(4);
3262
2719
 
3263
- var d3_selection_1 = __webpack_require__(222);
2720
+ var d3_selection_1 = __webpack_require__(407);
3264
2721
 
3265
- var d3_brush_1 = __webpack_require__(223);
2722
+ var d3_brush_1 = __webpack_require__(408);
3266
2723
 
3267
- var d3_axis_1 = __webpack_require__(224);
2724
+ var d3_axis_1 = __webpack_require__(409);
3268
2725
 
3269
- var d3_drag_1 = __webpack_require__(225);
2726
+ var d3_drag_1 = __webpack_require__(410);
3270
2727
 
3271
- var rgb_hex_converter_1 = __webpack_require__(134);
2728
+ var rgb_hex_converter_1 = __webpack_require__(145);
3272
2729
 
3273
- var ParallelCoordinatesCanvas_1 = __webpack_require__(226);
2730
+ var ParallelCoordinatesCanvas_1 = __webpack_require__(411);
3274
2731
 
3275
2732
  var ChartDiv = styled_components_1.default.div.withConfig({
3276
2733
  displayName: "ParallelCoordinatesChart__ChartDiv",
@@ -3597,31 +3054,117 @@ var ParallelCoordinatesChart = function ParallelCoordinatesChart(_a) {
3597
3054
  exports.default = ParallelCoordinatesChart;
3598
3055
 
3599
3056
  /***/ }),
3600
- /* 222 */
3057
+
3058
+ /***/ 407:
3601
3059
  /***/ (function(module, exports) {
3602
3060
 
3603
3061
  module.exports = require("d3-selection");
3604
3062
 
3605
3063
  /***/ }),
3606
- /* 223 */
3064
+
3065
+ /***/ 408:
3066
+ /***/ (function(module, exports) {
3067
+
3068
+ module.exports = require("d3-brush");
3069
+
3070
+ /***/ }),
3071
+
3072
+ /***/ 409:
3607
3073
  /***/ (function(module, exports) {
3608
3074
 
3609
- module.exports = require("d3-brush");
3075
+ module.exports = require("d3-axis");
3076
+
3077
+ /***/ }),
3078
+
3079
+ /***/ 41:
3080
+ /***/ (function(module, exports, __webpack_require__) {
3081
+
3082
+ "use strict";
3083
+
3084
+
3085
+ Object.defineProperty(exports, "__esModule", {
3086
+ value: true
3087
+ });
3088
+ exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
3089
+
3090
+ var React = __webpack_require__(1);
3091
+
3092
+ var T = __webpack_require__(0);
3093
+
3094
+ var i18n_1 = __webpack_require__(2);
3095
+
3096
+ var Message_1 = __webpack_require__(10);
3097
+
3098
+ var FixedSizeContainer_1 = __webpack_require__(13);
3099
+ /**
3100
+ * @method isMissing
3101
+ * @param {any} v
3102
+ * @returns {boolean} true if the input value === null or undefined
3103
+ */
3104
+
3105
+
3106
+ var isMissing = function isMissing(v) {
3107
+ return v === null || v === undefined;
3108
+ };
3109
+
3110
+ exports.isMissing = isMissing;
3111
+ /**
3112
+ * @method misskingKeys
3113
+ * @param {string[]} keys
3114
+ * @param {object} target
3115
+ * @returns {string[]} the keys of missing required props
3116
+ */
3117
+
3118
+ var missingKeys = function missingKeys(keys, target) {
3119
+ return keys.filter(function (k) {
3120
+ return exports.isMissing(target[k]);
3121
+ });
3122
+ };
3123
+
3124
+ exports.missingKeys = missingKeys;
3125
+ var propTypes = {
3126
+ width: T.oneOfType([T.string, T.number]),
3127
+ height: T.oneOfType([T.string, T.number]),
3128
+ // eslint-disable-next-line react/no-unused-prop-types
3129
+ backgroundColor: T.string,
3130
+ missingProps: T.arrayOf(T.string)
3131
+ };
3132
+ /**
3133
+ * @method MissingPropsMessage
3134
+ * @param {MissingPropsProps} props
3135
+ * @returns {React.ReactElement}
3136
+ */
3137
+
3138
+ var MissingPropsMessage = function MissingPropsMessage(props) {
3139
+ var width = props.width,
3140
+ height = props.height,
3141
+ missingProps = props.missingProps;
3142
+ return React.createElement(Message_1.default, {
3143
+ "data-test": "message",
3144
+ width: width,
3145
+ height: height,
3146
+ message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
3147
+ });
3148
+ };
3149
+
3150
+ exports.MissingPropsMessage = MissingPropsMessage;
3151
+ exports.MissingPropsMessage.propTypes = propTypes;
3152
+ exports.MissingPropsMessage.defaultProps = {
3153
+ width: '100%',
3154
+ height: 250
3155
+ };
3156
+ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3610
3157
 
3611
3158
  /***/ }),
3612
- /* 224 */
3613
- /***/ (function(module, exports) {
3614
-
3615
- module.exports = require("d3-axis");
3616
3159
 
3617
- /***/ }),
3618
- /* 225 */
3160
+ /***/ 410:
3619
3161
  /***/ (function(module, exports) {
3620
3162
 
3621
3163
  module.exports = require("d3-drag");
3622
3164
 
3623
3165
  /***/ }),
3624
- /* 226 */
3166
+
3167
+ /***/ 411:
3625
3168
  /***/ (function(module, exports, __webpack_require__) {
3626
3169
 
3627
3170
  "use strict";
@@ -3646,7 +3189,7 @@ Object.defineProperty(exports, "__esModule", {
3646
3189
 
3647
3190
  var React = __webpack_require__(1);
3648
3191
 
3649
- var rgb_hex_converter_1 = __webpack_require__(134);
3192
+ var rgb_hex_converter_1 = __webpack_require__(145);
3650
3193
 
3651
3194
  var ParallelCoordinatesCanvas = function ParallelCoordinatesCanvas(_a) {
3652
3195
  var props = __rest(_a, []);
@@ -3781,7 +3324,8 @@ var ParallelCoordinatesCanvas = function ParallelCoordinatesCanvas(_a) {
3781
3324
  exports.default = ParallelCoordinatesCanvas;
3782
3325
 
3783
3326
  /***/ }),
3784
- /* 227 */
3327
+
3328
+ /***/ 412:
3785
3329
  /***/ (function(module, exports, __webpack_require__) {
3786
3330
 
3787
3331
  "use strict";
@@ -3791,27 +3335,27 @@ Object.defineProperty(exports, "__esModule", {
3791
3335
  value: true
3792
3336
  });
3793
3337
 
3794
- var i18n_1 = __webpack_require__(3);
3338
+ var i18n_1 = __webpack_require__(2);
3795
3339
 
3796
3340
  var schemaUtils_1 = __webpack_require__(16);
3797
3341
 
3798
- var pick_1 = __webpack_require__(20);
3342
+ var pick_1 = __webpack_require__(21);
3799
3343
 
3800
- var variables_1 = __webpack_require__(10);
3344
+ var variables_1 = __webpack_require__(9);
3801
3345
 
3802
- var visualization_color_palettes_1 = __webpack_require__(44);
3346
+ var visualization_color_palettes_1 = __webpack_require__(46);
3803
3347
 
3804
- var visualization_icons_1 = __webpack_require__(46);
3348
+ var visualization_icons_1 = __webpack_require__(47);
3805
3349
 
3806
- var placeholders_1 = __webpack_require__(45);
3350
+ var placeholders_1 = __webpack_require__(44);
3807
3351
 
3808
- var VizBehavior_1 = __webpack_require__(5);
3352
+ var VizBehavior_1 = __webpack_require__(6);
3809
3353
 
3810
- var configUtils_1 = __webpack_require__(6);
3354
+ var configUtils_1 = __webpack_require__(17);
3811
3355
 
3812
- var VizCategory_1 = __webpack_require__(29);
3356
+ var VizCategory_1 = __webpack_require__(31);
3813
3357
 
3814
- var BackgroundColor_1 = __webpack_require__(49);
3358
+ var BackgroundColor_1 = __webpack_require__(50);
3815
3359
 
3816
3360
  var dataContract = {
3817
3361
  requiredDataSources: [{
@@ -4015,6 +3559,271 @@ var config = {
4015
3559
  };
4016
3560
  exports.default = configUtils_1.enhanceConfig(config);
4017
3561
 
3562
+ /***/ }),
3563
+
3564
+ /***/ 42:
3565
+ /***/ (function(module, exports, __webpack_require__) {
3566
+
3567
+ "use strict";
3568
+
3569
+
3570
+ Object.defineProperty(exports, "__esModule", {
3571
+ value: true
3572
+ });
3573
+
3574
+ var React = __webpack_require__(1);
3575
+
3576
+ var styled_components_1 = __webpack_require__(4);
3577
+
3578
+ var hocUtils_1 = __webpack_require__(14);
3579
+
3580
+ var Cover = styled_components_1.default.div.withConfig({
3581
+ displayName: "withEditModeCover__Cover",
3582
+ componentId: "sc-1gsbnxb-0"
3583
+ })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3584
+ var Blocker = styled_components_1.default.div.attrs({
3585
+ 'data-splunk-visualization-version': "25.2.0 - 4373c5a66"
3586
+ }).withConfig({
3587
+ displayName: "withEditModeCover__Blocker",
3588
+ componentId: "sc-1gsbnxb-1"
3589
+ })(["position:relative;width:100%;height:100%;"]);
3590
+ /**
3591
+ * HOC that renders a cover layer in edit mode
3592
+ * @method withEditModeCover
3593
+ * @param {ExtendedDashViz} Visualization
3594
+ * @returns {ExtendedDashViz} Wrapper
3595
+ */
3596
+
3597
+ var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
3598
+ var Wrapper = function Wrapper(props) {
3599
+ var mode = props.mode;
3600
+ var showEditCover = mode === 'edit' && !disableEditModeCover;
3601
+ return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
3602
+ "data-test": "edit-mode-cover"
3603
+ }));
3604
+ };
3605
+
3606
+ hocUtils_1.extendStaticWrapperProps({
3607
+ Wrapper: Wrapper,
3608
+ Visualization: Visualization
3609
+ });
3610
+ return Wrapper;
3611
+ };
3612
+
3613
+ exports.default = withEditModeCover;
3614
+
3615
+ /***/ }),
3616
+
3617
+ /***/ 43:
3618
+ /***/ (function(module, exports, __webpack_require__) {
3619
+
3620
+ "use strict";
3621
+
3622
+
3623
+ Object.defineProperty(exports, "__esModule", {
3624
+ value: true
3625
+ });
3626
+
3627
+ var React = __webpack_require__(1);
3628
+
3629
+ var colorUtils_1 = __webpack_require__(12);
3630
+
3631
+ var variables_1 = __webpack_require__(9);
3632
+
3633
+ var IconPlaceholder_1 = __webpack_require__(27);
3634
+
3635
+ var VizBehavior_1 = __webpack_require__(6);
3636
+
3637
+ var hocUtils_1 = __webpack_require__(14);
3638
+
3639
+ var withPlaceholder = function withPlaceholder(Visualization) {
3640
+ var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
3641
+ var config = Visualization.config;
3642
+ var themes = config.themes;
3643
+
3644
+ var Wrapper = function Wrapper(props) {
3645
+ var _a, _b;
3646
+
3647
+ var dataSources = props.dataSources,
3648
+ loading = props.loading,
3649
+ options = props.options,
3650
+ height = props.height,
3651
+ width = props.width;
3652
+ var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3653
+ var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
3654
+ var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3655
+ var iconColor = variables_1.default.contentColorActive(props);
3656
+
3657
+ if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
3658
+ return React.createElement(IconPlaceholder_1.default, {
3659
+ "data-test": "icon-placeholder",
3660
+ icon: icon,
3661
+ width: width,
3662
+ height: height,
3663
+ backgroundColor: bgColorFromTheme,
3664
+ iconColor: iconColor
3665
+ });
3666
+ }
3667
+
3668
+ return React.createElement(Visualization, Object.assign({}, props));
3669
+ };
3670
+
3671
+ hocUtils_1.extendStaticWrapperProps({
3672
+ Wrapper: Wrapper,
3673
+ Visualization: Visualization
3674
+ });
3675
+ return Wrapper;
3676
+ };
3677
+
3678
+ exports.default = withPlaceholder;
3679
+
3680
+ /***/ }),
3681
+
3682
+ /***/ 44:
3683
+ /***/ (function(module, exports) {
3684
+
3685
+ module.exports = require("@splunk/visualization-icons/placeholders");
3686
+
3687
+ /***/ }),
3688
+
3689
+ /***/ 45:
3690
+ /***/ (function(module, exports) {
3691
+
3692
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
3693
+
3694
+ /***/ }),
3695
+
3696
+ /***/ 46:
3697
+ /***/ (function(module, exports) {
3698
+
3699
+ module.exports = require("@splunk/visualization-color-palettes");
3700
+
3701
+ /***/ }),
3702
+
3703
+ /***/ 47:
3704
+ /***/ (function(module, exports) {
3705
+
3706
+ module.exports = require("@splunk/visualization-icons");
3707
+
3708
+ /***/ }),
3709
+
3710
+ /***/ 49:
3711
+ /***/ (function(module, exports) {
3712
+
3713
+ module.exports = require("@splunk/visualizations-shared/domUtils");
3714
+
3715
+ /***/ }),
3716
+
3717
+ /***/ 50:
3718
+ /***/ (function(module, exports, __webpack_require__) {
3719
+
3720
+ "use strict";
3721
+
3722
+
3723
+ Object.defineProperty(exports, "__esModule", {
3724
+ value: true
3725
+ });
3726
+
3727
+ var i18n_1 = __webpack_require__(2);
3728
+
3729
+ var background = function background(_ref) {
3730
+ var label = _ref.label,
3731
+ themes = _ref.themes,
3732
+ labelPosition = _ref.labelPosition;
3733
+ return [{
3734
+ label: i18n_1._(label || 'Background'),
3735
+ option: 'backgroundColor',
3736
+ editor: 'editor.color',
3737
+ editorProps: {
3738
+ labelPosition: labelPosition || 'top',
3739
+ themes: themes
3740
+ }
3741
+ }];
3742
+ };
3743
+
3744
+ exports.default = background;
3745
+
3746
+ /***/ }),
3747
+
3748
+ /***/ 51:
3749
+ /***/ (function(module, exports) {
3750
+
3751
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
3752
+
3753
+ /***/ }),
3754
+
3755
+ /***/ 55:
3756
+ /***/ (function(module, exports) {
3757
+
3758
+ module.exports = require("d3-array");
3759
+
3760
+ /***/ }),
3761
+
3762
+ /***/ 6:
3763
+ /***/ (function(module, exports, __webpack_require__) {
3764
+
3765
+ "use strict";
3766
+
3767
+
3768
+ Object.defineProperty(exports, "__esModule", {
3769
+ value: true
3770
+ });
3771
+ exports.VizBehavior = void 0;
3772
+ var VizBehavior;
3773
+
3774
+ (function (VizBehavior) {
3775
+ /**
3776
+ * Dynamic Options Behavior.
3777
+ * This allows visualization options to be powered by data
3778
+ *
3779
+ * **Example**
3780
+ *
3781
+ * sparklineValues: ">primary|seriesByIndex(0)"
3782
+ * would configure sparklineValues with an array of data points
3783
+ * coming from the first series in the primary datasource
3784
+ *
3785
+ */
3786
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
3787
+ VizBehavior["EVENTS"] = "events";
3788
+ /**
3789
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
3790
+ * missing.
3791
+ * @type {string}
3792
+ */
3793
+
3794
+ VizBehavior["PLACEHOLDER"] = "placeholder";
3795
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
3796
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
3797
+
3798
+ /***/ }),
3799
+
3800
+ /***/ 7:
3801
+ /***/ (function(module, exports) {
3802
+
3803
+ module.exports = require("@babel/runtime/helpers/defineProperty");
3804
+
3805
+ /***/ }),
3806
+
3807
+ /***/ 79:
3808
+ /***/ (function(module, exports) {
3809
+
3810
+ module.exports = require("d3-scale");
3811
+
3812
+ /***/ }),
3813
+
3814
+ /***/ 8:
3815
+ /***/ (function(module, exports) {
3816
+
3817
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
3818
+
3819
+ /***/ }),
3820
+
3821
+ /***/ 9:
3822
+ /***/ (function(module, exports) {
3823
+
3824
+ module.exports = require("@splunk/themes/variables");
3825
+
4018
3826
  /***/ })
4019
- /******/ ]);
3827
+
3828
+ /******/ });
4020
3829
  //# sourceMappingURL=ParallelCoordinates.js.map