@splunk/visualizations 25.0.0 → 25.1.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 (181) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  45. package/Area.config.js +166 -152
  46. package/Area.config.js.map +1 -1
  47. package/Area.js +362 -433
  48. package/Area.js.map +1 -1
  49. package/Bar.config.js +168 -148
  50. package/Bar.config.js.map +1 -1
  51. package/Bar.js +364 -429
  52. package/Bar.js.map +1 -1
  53. package/Bubble.config.js +155 -117
  54. package/Bubble.config.js.map +1 -1
  55. package/Bubble.js +353 -400
  56. package/Bubble.js.map +1 -1
  57. package/ChoroplethSvg.config.js +112 -82
  58. package/ChoroplethSvg.config.js.map +1 -1
  59. package/ChoroplethSvg.js +336 -391
  60. package/ChoroplethSvg.js.map +1 -1
  61. package/Column.config.js +164 -146
  62. package/Column.config.js.map +1 -1
  63. package/Column.js +360 -427
  64. package/Column.js.map +1 -1
  65. package/Ellipse.config.js +111 -80
  66. package/Ellipse.config.js.map +1 -1
  67. package/Ellipse.js +317 -371
  68. package/Ellipse.js.map +1 -1
  69. package/FillerGauge.config.js +117 -86
  70. package/FillerGauge.config.js.map +1 -1
  71. package/FillerGauge.js +324 -378
  72. package/FillerGauge.js.map +1 -1
  73. package/Image.config.js +100 -76
  74. package/Image.config.js.map +1 -1
  75. package/Image.js +725 -789
  76. package/Image.js.map +1 -1
  77. package/Line.config.js +164 -137
  78. package/Line.config.js.map +1 -1
  79. package/Line.js +360 -418
  80. package/Line.js.map +1 -1
  81. package/LinkGraph.config.js +137 -112
  82. package/LinkGraph.config.js.map +1 -1
  83. package/LinkGraph.js +351 -410
  84. package/LinkGraph.js.map +1 -1
  85. package/Map.config.js +140 -97
  86. package/Map.config.js.map +1 -1
  87. package/Map.js +517 -523
  88. package/Map.js.map +1 -1
  89. package/Markdown.config.js +138 -115
  90. package/Markdown.config.js.map +1 -1
  91. package/Markdown.js +502 -553
  92. package/Markdown.js.map +1 -1
  93. package/MarkerGauge.config.js +218 -195
  94. package/MarkerGauge.config.js.map +1 -1
  95. package/MarkerGauge.js +2926 -3098
  96. package/MarkerGauge.js.map +1 -1
  97. package/ParallelCoordinates.config.js +158 -133
  98. package/ParallelCoordinates.config.js.map +1 -1
  99. package/ParallelCoordinates.js +319 -377
  100. package/ParallelCoordinates.js.map +1 -1
  101. package/Pie.config.js +160 -136
  102. package/Pie.config.js.map +1 -1
  103. package/Pie.js +1316 -1492
  104. package/Pie.js.map +1 -1
  105. package/Punchcard.config.js +164 -141
  106. package/Punchcard.config.js.map +1 -1
  107. package/Punchcard.js +344 -404
  108. package/Punchcard.js.map +1 -1
  109. package/Rectangle.config.js +280 -248
  110. package/Rectangle.config.js.map +1 -1
  111. package/Rectangle.js +1247 -1303
  112. package/Rectangle.js.map +1 -1
  113. package/Sankey.config.js +175 -143
  114. package/Sankey.config.js.map +1 -1
  115. package/Sankey.js +377 -426
  116. package/Sankey.js.map +1 -1
  117. package/Scatter.config.js +156 -117
  118. package/Scatter.config.js.map +1 -1
  119. package/Scatter.js +550 -601
  120. package/Scatter.js.map +1 -1
  121. package/SingleValue.config.js +147 -115
  122. package/SingleValue.config.js.map +1 -1
  123. package/SingleValue.js +542 -598
  124. package/SingleValue.js.map +1 -1
  125. package/SingleValueBasic.js +19 -19
  126. package/SingleValueBasic.js.map +1 -1
  127. package/SingleValueIcon.config.js +154 -120
  128. package/SingleValueIcon.config.js.map +1 -1
  129. package/SingleValueIcon.js +373 -424
  130. package/SingleValueIcon.js.map +1 -1
  131. package/SingleValueRadial.config.js +143 -111
  132. package/SingleValueRadial.config.js.map +1 -1
  133. package/SingleValueRadial.js +612 -668
  134. package/SingleValueRadial.js.map +1 -1
  135. package/Table.config.js +176 -152
  136. package/Table.config.js.map +1 -1
  137. package/Table.js +740 -797
  138. package/Table.js.map +1 -1
  139. package/common/Charting.js +11 -11
  140. package/common/Charting.js.map +1 -1
  141. package/common/ChartingApi.js +2 -2
  142. package/common/ChartingApi.js.map +1 -1
  143. package/common/EventsDoc.js +12 -12
  144. package/common/EventsDoc.js.map +1 -1
  145. package/common/GaugeMajorTicks.js +8 -8
  146. package/common/GaugeMajorTicks.js.map +1 -1
  147. package/common/GaugeValueMarker.js +8 -8
  148. package/common/GaugeValueMarker.js.map +1 -1
  149. package/common/OptionsDoc.js +51 -327
  150. package/common/OptionsDoc.js.map +1 -1
  151. package/common/OverviewDoc.js +22 -22
  152. package/common/OverviewDoc.js.map +1 -1
  153. package/common/SplunkVisualization.js +4 -4
  154. package/common/SplunkVisualization.js.map +1 -1
  155. package/common/SplunkVisualizationApi.js +2 -2
  156. package/common/SplunkVisualizationApi.js.map +1 -1
  157. package/common/ThemesDoc.js +19 -19
  158. package/common/ThemesDoc.js.map +1 -1
  159. package/common/chartingUtils.js +4 -4
  160. package/common/chartingUtils.js.map +1 -1
  161. package/common/docUtils.js +4 -4
  162. package/common/docUtils.js.map +1 -1
  163. package/common/gaugeUtils.js +13 -13
  164. package/common/gaugeUtils.js.map +1 -1
  165. package/common/shapeUtils.js +8 -8
  166. package/common/shapeUtils.js.map +1 -1
  167. package/common/utils/configUtils.js +42 -18
  168. package/common/utils/configUtils.js.map +1 -1
  169. package/common/utils/hocUtils.js +6 -86
  170. package/common/utils/hocUtils.js.map +1 -1
  171. package/common/utils/{JSONSchemaUtils.js → mapUtils.js} +89 -29
  172. package/common/utils/mapUtils.js.map +1 -0
  173. package/common/utils/singleValueUtils.js +14 -12
  174. package/common/utils/singleValueUtils.js.map +1 -1
  175. package/common/utils/testHelper.js +8 -8
  176. package/common/utils/testHelper.js.map +1 -1
  177. package/common/withDashboardViz.js +120 -207
  178. package/common/withDashboardViz.js.map +1 -1
  179. package/package.json +12 -12
  180. package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
  181. package/common/utils/JSONSchemaUtils.js.map +0 -1
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 57);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 59);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -100,14 +100,176 @@ module.exports = require("@splunk/ui-utils/i18n");
100
100
  /***/ }),
101
101
 
102
102
  /***/ 1:
103
+ /***/ (function(module, exports) {
104
+
105
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
106
+
107
+ /***/ }),
108
+
109
+ /***/ 10:
110
+ /***/ (function(module, exports) {
111
+
112
+ module.exports = require("@splunk/themes/variables");
113
+
114
+ /***/ }),
115
+
116
+ /***/ 11:
117
+ /***/ (function(module, exports) {
118
+
119
+ module.exports = require("@splunk/visualization-icons/placeholders");
120
+
121
+ /***/ }),
122
+
123
+ /***/ 14:
124
+ /***/ (function(module, exports, __webpack_require__) {
125
+
126
+ "use strict";
127
+
128
+
129
+ Object.defineProperty(exports, "__esModule", {
130
+ value: true
131
+ });
132
+
133
+ var i18n_1 = __webpack_require__(0);
134
+
135
+ var background = function background(_ref) {
136
+ var label = _ref.label,
137
+ themes = _ref.themes,
138
+ labelPosition = _ref.labelPosition;
139
+ return [{
140
+ label: i18n_1._(label || 'Background'),
141
+ option: 'backgroundColor',
142
+ editor: 'editor.color',
143
+ editorProps: {
144
+ labelPosition: labelPosition || 'top',
145
+ themes: themes
146
+ }
147
+ }];
148
+ };
149
+
150
+ exports.default = background;
151
+
152
+ /***/ }),
153
+
154
+ /***/ 2:
103
155
  /***/ (function(module, exports, __webpack_require__) {
104
156
 
105
157
  "use strict";
106
158
 
107
159
 
108
- var _toConsumableArray = __webpack_require__(2);
160
+ Object.defineProperty(exports, "__esModule", {
161
+ value: true
162
+ });
163
+ exports.VizBehavior = void 0;
164
+ var VizBehavior;
165
+
166
+ (function (VizBehavior) {
167
+ /**
168
+ * Dynamic Options Behavior.
169
+ * This allows visualization options to be powered by data
170
+ *
171
+ * **Example**
172
+ *
173
+ * sparklineValues: ">primary|seriesByIndex(0)"
174
+ * would configure sparklineValues with an array of data points
175
+ * coming from the first series in the primary datasource
176
+ *
177
+ */
178
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
179
+ VizBehavior["EVENTS"] = "events";
180
+ /**
181
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
182
+ * missing.
183
+ * @type {string}
184
+ */
185
+
186
+ VizBehavior["PLACEHOLDER"] = "placeholder";
187
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
188
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
189
+
190
+ /***/ }),
109
191
 
110
- var _defineProperty = __webpack_require__(6);
192
+ /***/ 3:
193
+ /***/ (function(module, exports) {
194
+
195
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
196
+
197
+ /***/ }),
198
+
199
+ /***/ 35:
200
+ /***/ (function(module, exports, __webpack_require__) {
201
+
202
+ "use strict";
203
+
204
+
205
+ Object.defineProperty(exports, "__esModule", {
206
+ value: true
207
+ });
208
+
209
+ var i18n_1 = __webpack_require__(0);
210
+
211
+ var gauge = {
212
+ label: i18n_1._('Gauge Settings'),
213
+ layout: [[{
214
+ label: i18n_1._('Value Display'),
215
+ option: 'valueDisplay',
216
+ editor: 'editor.radioBar',
217
+ editorProps: {
218
+ values: [{
219
+ label: i18n_1._('Number'),
220
+ value: 'number'
221
+ }, {
222
+ label: i18n_1._('Percentage'),
223
+ value: 'percentage'
224
+ }, {
225
+ label: i18n_1._('Off'),
226
+ value: 'off'
227
+ }]
228
+ }
229
+ }], [{
230
+ label: i18n_1._('Label Display'),
231
+ option: 'labelDisplay',
232
+ editor: 'editor.radioBar',
233
+ editorProps: {
234
+ values: [{
235
+ label: i18n_1._('Numbers'),
236
+ value: 'number'
237
+ }, {
238
+ label: i18n_1._('Percentages'),
239
+ value: 'percentage'
240
+ }, {
241
+ label: i18n_1._('Off'),
242
+ value: 'off'
243
+ }]
244
+ }
245
+ }], [{
246
+ label: i18n_1._('Orientation'),
247
+ option: 'orientation',
248
+ editor: 'editor.radioBar',
249
+ editorProps: {
250
+ values: [{
251
+ label: i18n_1._('Vertical'),
252
+ value: 'vertical'
253
+ }, {
254
+ label: i18n_1._('Horizontal'),
255
+ value: 'horizontal'
256
+ }]
257
+ }
258
+ }]]
259
+ };
260
+ exports.default = gauge;
261
+
262
+ /***/ }),
263
+
264
+ /***/ 4:
265
+ /***/ (function(module, exports, __webpack_require__) {
266
+
267
+ "use strict";
268
+
269
+
270
+ var _toConsumableArray = __webpack_require__(1);
271
+
272
+ var _defineProperty = __webpack_require__(7);
111
273
 
112
274
  var __rest = this && this.__rest || function (s, e) {
113
275
  var t = {};
@@ -125,13 +287,13 @@ var __rest = this && this.__rest || function (s, e) {
125
287
  Object.defineProperty(exports, "__esModule", {
126
288
  value: true
127
289
  });
128
- exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
290
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
129
291
 
130
- var lodash_1 = __webpack_require__(5);
292
+ var lodash_1 = __webpack_require__(6);
131
293
 
132
- var schemaUtils_1 = __webpack_require__(4);
294
+ var schemaUtils_1 = __webpack_require__(3);
133
295
 
134
- var VizBehavior_1 = __webpack_require__(3);
296
+ var VizBehavior_1 = __webpack_require__(2);
135
297
 
136
298
  var dynamicOptionsDSLType = {
137
299
  type: 'string',
@@ -200,8 +362,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
200
362
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
201
363
  /**
202
364
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
365
+ * this function also collapse all editor panels
203
366
  * @param vizConfig a Visualization Config
204
367
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
368
+ * and containing `open: false` for all editor panels in editorConfig
205
369
  */
206
370
 
207
371
  function enhanceConfig(vizConfig) {
@@ -211,10 +375,33 @@ function enhanceConfig(vizConfig) {
211
375
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
212
376
  }
213
377
 
378
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
379
+ return Object.assign(Object.assign({}, config), {
380
+ open: false
381
+ });
382
+ });
214
383
  return enhancedConfig;
215
384
  }
216
385
 
217
386
  exports.enhanceConfig = enhanceConfig;
387
+ /**
388
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
389
+ * Created for editor unit tests
390
+ * @param vizConfig a Visualization Config
391
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
392
+ */
393
+
394
+ function uncollapseEditorConfig(vizConfig) {
395
+ var editorPanelUncollapsedConfig = vizConfig;
396
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
397
+ return Object.assign(Object.assign({}, config), {
398
+ open: true
399
+ });
400
+ });
401
+ return editorPanelUncollapsedConfig;
402
+ }
403
+
404
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
218
405
 
219
406
  function isDynamicOption(option) {
220
407
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
@@ -311,169 +498,7 @@ exports.insertLayout = insertLayout;
311
498
 
312
499
  /***/ }),
313
500
 
314
- /***/ 10:
315
- /***/ (function(module, exports) {
316
-
317
- module.exports = require("@splunk/visualization-icons/placeholders");
318
-
319
- /***/ }),
320
-
321
- /***/ 13:
322
- /***/ (function(module, exports, __webpack_require__) {
323
-
324
- "use strict";
325
-
326
-
327
- Object.defineProperty(exports, "__esModule", {
328
- value: true
329
- });
330
-
331
- var i18n_1 = __webpack_require__(0);
332
-
333
- var background = function background(_ref) {
334
- var label = _ref.label,
335
- themes = _ref.themes,
336
- labelPosition = _ref.labelPosition;
337
- return [{
338
- label: i18n_1._(label || 'Background'),
339
- option: 'backgroundColor',
340
- editor: 'editor.color',
341
- editorProps: {
342
- labelPosition: labelPosition || 'top',
343
- themes: themes
344
- }
345
- }];
346
- };
347
-
348
- exports.default = background;
349
-
350
- /***/ }),
351
-
352
- /***/ 2:
353
- /***/ (function(module, exports) {
354
-
355
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
356
-
357
- /***/ }),
358
-
359
- /***/ 3:
360
- /***/ (function(module, exports, __webpack_require__) {
361
-
362
- "use strict";
363
-
364
-
365
- Object.defineProperty(exports, "__esModule", {
366
- value: true
367
- });
368
- exports.VizBehavior = void 0;
369
- var VizBehavior;
370
-
371
- (function (VizBehavior) {
372
- /**
373
- * Dynamic Options Behavior.
374
- * This allows visualization options to be powered by data
375
- *
376
- * **Example**
377
- *
378
- * sparklineValues: ">primary|seriesByIndex(0)"
379
- * would configure sparklineValues with an array of data points
380
- * coming from the first series in the primary datasource
381
- *
382
- */
383
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
384
- VizBehavior["EVENTS"] = "events";
385
- /**
386
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
387
- * missing.
388
- * @type {string}
389
- */
390
-
391
- VizBehavior["PLACEHOLDER"] = "placeholder";
392
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
393
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
394
-
395
- /***/ }),
396
-
397
- /***/ 34:
398
- /***/ (function(module, exports, __webpack_require__) {
399
-
400
- "use strict";
401
-
402
-
403
- Object.defineProperty(exports, "__esModule", {
404
- value: true
405
- });
406
-
407
- var i18n_1 = __webpack_require__(0);
408
-
409
- var gauge = {
410
- label: i18n_1._('Gauge Settings'),
411
- layout: [[{
412
- label: i18n_1._('Value Display'),
413
- option: 'valueDisplay',
414
- editor: 'editor.radioBar',
415
- editorProps: {
416
- values: [{
417
- label: i18n_1._('Number'),
418
- value: 'number'
419
- }, {
420
- label: i18n_1._('Percentage'),
421
- value: 'percentage'
422
- }, {
423
- label: i18n_1._('Off'),
424
- value: 'off'
425
- }]
426
- }
427
- }], [{
428
- label: i18n_1._('Label Display'),
429
- option: 'labelDisplay',
430
- editor: 'editor.radioBar',
431
- editorProps: {
432
- values: [{
433
- label: i18n_1._('Numbers'),
434
- value: 'number'
435
- }, {
436
- label: i18n_1._('Percentages'),
437
- value: 'percentage'
438
- }, {
439
- label: i18n_1._('Off'),
440
- value: 'off'
441
- }]
442
- }
443
- }], [{
444
- label: i18n_1._('Orientation'),
445
- option: 'orientation',
446
- editor: 'editor.radioBar',
447
- editorProps: {
448
- values: [{
449
- label: i18n_1._('Vertical'),
450
- value: 'vertical'
451
- }, {
452
- label: i18n_1._('Horizontal'),
453
- value: 'horizontal'
454
- }]
455
- }
456
- }]]
457
- };
458
- exports.default = gauge;
459
-
460
- /***/ }),
461
-
462
- /***/ 4:
463
- /***/ (function(module, exports) {
464
-
465
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
466
-
467
- /***/ }),
468
-
469
- /***/ 5:
470
- /***/ (function(module, exports) {
471
-
472
- module.exports = require("lodash");
473
-
474
- /***/ }),
475
-
476
- /***/ 57:
501
+ /***/ 59:
477
502
  /***/ (function(module, exports, __webpack_require__) {
478
503
 
479
504
  "use strict";
@@ -485,25 +510,25 @@ Object.defineProperty(exports, "__esModule", {
485
510
 
486
511
  var i18n_1 = __webpack_require__(0);
487
512
 
488
- var GaugeMarker_1 = __webpack_require__(58);
513
+ var GaugeMarker_1 = __webpack_require__(60);
489
514
 
490
- var placeholders_1 = __webpack_require__(10);
515
+ var placeholders_1 = __webpack_require__(11);
491
516
 
492
- var schemaUtils_1 = __webpack_require__(4);
517
+ var schemaUtils_1 = __webpack_require__(3);
493
518
 
494
- var variables_1 = __webpack_require__(9);
519
+ var variables_1 = __webpack_require__(10);
495
520
 
496
- var pick_1 = __webpack_require__(8);
521
+ var pick_1 = __webpack_require__(9);
497
522
 
498
- var Gauge_1 = __webpack_require__(34);
523
+ var Gauge_1 = __webpack_require__(35);
499
524
 
500
- var VizBehavior_1 = __webpack_require__(3);
525
+ var VizBehavior_1 = __webpack_require__(2);
501
526
 
502
- var VizCategory_1 = __webpack_require__(7);
527
+ var VizCategory_1 = __webpack_require__(8);
503
528
 
504
- var configUtils_1 = __webpack_require__(1);
529
+ var configUtils_1 = __webpack_require__(4);
505
530
 
506
- var BackgroundColor_1 = __webpack_require__(13);
531
+ var BackgroundColor_1 = __webpack_require__(14);
507
532
 
508
533
  var dataContract = {
509
534
  requiredDataSources: [{
@@ -560,8 +585,7 @@ var optionsSchema = {
560
585
  value: {
561
586
  description: 'Color for sub range.',
562
587
  type: 'string',
563
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN // insert pattern for color variables - #HEX etc
564
-
588
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
565
589
  }
566
590
  },
567
591
  required: ['from', 'to', 'value'],
@@ -659,7 +683,7 @@ var themes = {
659
683
  var editorConfig = [{
660
684
  label: i18n_1._('Select Data Field'),
661
685
  layout: [[{
662
- label: '',
686
+ label: i18n_1._('Data field'),
663
687
  editor: 'editor.columnSelector',
664
688
  option: 'value',
665
689
  context: 'defaultContext',
@@ -678,7 +702,6 @@ var editorConfig = [{
678
702
  }]]
679
703
  }, Gauge_1.default, {
680
704
  label: i18n_1._('Coloring'),
681
- open: true,
682
705
  layout: [[{
683
706
  label: i18n_1._('Gauge Ranges'),
684
707
  option: 'gaugeRanges',
@@ -726,21 +749,28 @@ exports.default = configUtils_1.enhanceConfig(config);
726
749
 
727
750
  /***/ }),
728
751
 
729
- /***/ 58:
752
+ /***/ 6:
753
+ /***/ (function(module, exports) {
754
+
755
+ module.exports = require("lodash");
756
+
757
+ /***/ }),
758
+
759
+ /***/ 60:
730
760
  /***/ (function(module, exports) {
731
761
 
732
762
  module.exports = require("@splunk/react-icons/GaugeMarker");
733
763
 
734
764
  /***/ }),
735
765
 
736
- /***/ 6:
766
+ /***/ 7:
737
767
  /***/ (function(module, exports) {
738
768
 
739
769
  module.exports = require("@babel/runtime/helpers/defineProperty");
740
770
 
741
771
  /***/ }),
742
772
 
743
- /***/ 7:
773
+ /***/ 8:
744
774
  /***/ (function(module, exports, __webpack_require__) {
745
775
 
746
776
  "use strict";
@@ -769,17 +799,10 @@ var VizCategory;
769
799
 
770
800
  /***/ }),
771
801
 
772
- /***/ 8:
773
- /***/ (function(module, exports) {
774
-
775
- module.exports = require("@splunk/themes/pick");
776
-
777
- /***/ }),
778
-
779
802
  /***/ 9:
780
803
  /***/ (function(module, exports) {
781
804
 
782
- module.exports = require("@splunk/themes/variables");
805
+ module.exports = require("@splunk/themes/pick");
783
806
 
784
807
  /***/ })
785
808