@splunk/visualizations 26.2.1 → 26.4.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 (150) hide show
  1. package/Area.config.js +92 -595
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +296 -801
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +93 -562
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +299 -770
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +84 -483
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +286 -687
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +77 -202
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +272 -400
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +93 -600
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +299 -808
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +82 -200
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +233 -356
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +62 -283
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +326 -530
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +91 -220
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -401
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +61 -157
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +217 -327
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +92 -607
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +297 -814
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +75 -257
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +1755 -17415
  44. package/LinkGraph.js.map +1 -1
  45. package/MIGRATION.md +6 -0
  46. package/Map.config.js +128 -1123
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +470 -782
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +62 -189
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +272 -401
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +138 -298
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +309 -470
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +72 -192
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +333 -442
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +77 -241
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +336 -471
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +72 -306
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +356 -583
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +211 -347
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +371 -509
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +72 -214
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +343 -475
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +86 -464
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +1118 -1493
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +124 -411
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +522 -789
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +73 -61
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +123 -380
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +508 -745
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +121 -385
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +1642 -1885
  95. package/SingleValueRadial.js.map +1 -1
  96. package/SparkLine.js +39 -39
  97. package/SparkLine.js.map +1 -1
  98. package/Table.config.js +82 -496
  99. package/Table.config.js.map +1 -1
  100. package/Table.js +416 -825
  101. package/Table.js.map +1 -1
  102. package/common/Charting.js +37 -57
  103. package/common/Charting.js.map +1 -1
  104. package/common/DocExampleWithVizSandbox.js +21 -21
  105. package/common/DocExampleWithVizSandbox.js.map +1 -1
  106. package/common/EventsDoc.js +18 -18
  107. package/common/EventsDoc.js.map +1 -1
  108. package/common/GaugeMajorTicks.js +4 -4
  109. package/common/GaugeMajorTicks.js.map +1 -1
  110. package/common/GaugeValueMarker.js +2 -2
  111. package/common/GaugeValueMarker.js.map +1 -1
  112. package/common/OptionsDoc.js +4 -4
  113. package/common/OptionsDoc.js.map +1 -1
  114. package/common/OverviewDoc.js +39 -40
  115. package/common/OverviewDoc.js.map +1 -1
  116. package/common/SplunkVisualization.js +2 -2
  117. package/common/SplunkVisualization.js.map +1 -1
  118. package/common/SplunkVisualizationApi.js +2 -2
  119. package/common/SplunkVisualizationApi.js.map +1 -1
  120. package/common/ThemesDoc.js +19 -19
  121. package/common/ThemesDoc.js.map +1 -1
  122. package/common/chartingUtils.js +2 -2
  123. package/common/chartingUtils.js.map +1 -1
  124. package/common/gaugeUtils.js +10 -10
  125. package/common/gaugeUtils.js.map +1 -1
  126. package/common/shapeUtils.js +10 -10
  127. package/common/shapeUtils.js.map +1 -1
  128. package/common/utils/configUtils.js +25 -155
  129. package/common/utils/configUtils.js.map +1 -1
  130. package/common/utils/dataUtils.js +87 -105
  131. package/common/utils/dataUtils.js.map +1 -1
  132. package/common/utils/featureFlagUtils.js +4 -4
  133. package/common/utils/featureFlagUtils.js.map +1 -1
  134. package/common/utils/hocUtils.js +2 -2
  135. package/common/utils/hocUtils.js.map +1 -1
  136. package/common/utils/mapUtils.js +51 -54
  137. package/common/utils/mapUtils.js.map +1 -1
  138. package/common/utils/singleValueUtils.js +30 -18
  139. package/common/utils/singleValueUtils.js.map +1 -1
  140. package/common/utils/testHelper.js +7 -36
  141. package/common/utils/testHelper.js.map +1 -1
  142. package/common/utils/trellisUtils.js +7 -6
  143. package/common/utils/trellisUtils.js.map +1 -1
  144. package/common/utils/urlUtils.js +2 -2
  145. package/common/utils/urlUtils.js.map +1 -1
  146. package/common/withDashboardViz.js +93 -101
  147. package/common/withDashboardViz.js.map +1 -1
  148. package/package.json +48 -50
  149. package/common/utils/layoutUtils.js +0 -115
  150. package/common/utils/layoutUtils.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 = 65);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 56);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,18 +109,11 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/themes/variables");
113
-
114
- /***/ }),
115
-
116
- /***/ 11:
117
- /***/ (function(module, exports) {
118
-
119
112
  module.exports = require("@splunk/visualization-icons/placeholders");
120
113
 
121
114
  /***/ }),
122
115
 
123
- /***/ 13:
116
+ /***/ 12:
124
117
  /***/ (function(module, exports, __webpack_require__) {
125
118
 
126
119
  "use strict";
@@ -137,7 +130,7 @@ var background = function background(_ref) {
137
130
  themes = _ref.themes,
138
131
  labelPosition = _ref.labelPosition;
139
132
  return [{
140
- label: (0, i18n_1._)(label || 'Background'),
133
+ label: (0, i18n_1._)(label || 'Background color'),
141
134
  option: 'backgroundColor',
142
135
  editor: 'editor.color',
143
136
  editorProps: {
@@ -152,118 +145,13 @@ exports.default = background;
152
145
  /***/ }),
153
146
 
154
147
  /***/ 2:
155
- /***/ (function(module, exports, __webpack_require__) {
156
-
157
- "use strict";
158
-
159
-
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
- VizBehavior["DOWNSAMPLING"] = "downsampling";
181
- /**
182
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
183
- * missing.
184
- * @type {string}
185
- */
186
-
187
- VizBehavior["PLACEHOLDER"] = "placeholder";
188
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
189
- VizBehavior["TRELLIS"] = "trellis";
190
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
191
-
192
- /***/ }),
193
-
194
- /***/ 3:
195
148
  /***/ (function(module, exports) {
196
149
 
197
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
150
+ module.exports = require("@splunk/visualization-schemas");
198
151
 
199
152
  /***/ }),
200
153
 
201
- /***/ 39:
202
- /***/ (function(module, exports, __webpack_require__) {
203
-
204
- "use strict";
205
-
206
-
207
- Object.defineProperty(exports, "__esModule", {
208
- value: true
209
- });
210
-
211
- var i18n_1 = __webpack_require__(0);
212
-
213
- var gauge = {
214
- label: (0, i18n_1._)('Data display'),
215
- layout: [[{
216
- label: (0, i18n_1._)('Value display'),
217
- option: 'valueDisplay',
218
- editor: 'editor.radioBar',
219
- editorProps: {
220
- values: [{
221
- label: (0, i18n_1._)('Number'),
222
- value: 'number'
223
- }, {
224
- label: (0, i18n_1._)('Percentage'),
225
- value: 'percentage'
226
- }, {
227
- label: (0, i18n_1._)('Off'),
228
- value: 'off'
229
- }]
230
- }
231
- }], [{
232
- label: (0, i18n_1._)('Label display'),
233
- option: 'labelDisplay',
234
- editor: 'editor.radioBar',
235
- editorProps: {
236
- values: [{
237
- label: (0, i18n_1._)('Numbers'),
238
- value: 'number'
239
- }, {
240
- label: (0, i18n_1._)('Percentages'),
241
- value: 'percentage'
242
- }, {
243
- label: (0, i18n_1._)('Off'),
244
- value: 'off'
245
- }]
246
- }
247
- }], [{
248
- label: (0, i18n_1._)('Orientation'),
249
- option: 'orientation',
250
- editor: 'editor.radioBar',
251
- editorProps: {
252
- values: [{
253
- label: (0, i18n_1._)('Vertical'),
254
- value: 'vertical'
255
- }, {
256
- label: (0, i18n_1._)('Horizontal'),
257
- value: 'horizontal'
258
- }]
259
- }
260
- }]]
261
- };
262
- exports.default = gauge;
263
-
264
- /***/ }),
265
-
266
- /***/ 4:
154
+ /***/ 3:
267
155
  /***/ (function(module, exports, __webpack_require__) {
268
156
 
269
157
  "use strict";
@@ -271,97 +159,22 @@ exports.default = gauge;
271
159
 
272
160
  var _toConsumableArray = __webpack_require__(1);
273
161
 
274
- var _defineProperty = __webpack_require__(7);
275
-
276
- var __rest = this && this.__rest || function (s, e) {
277
- var t = {};
278
-
279
- for (var p in s) {
280
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
281
- }
282
-
283
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
284
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
285
- }
286
- return t;
287
- };
288
-
289
162
  Object.defineProperty(exports, "__esModule", {
290
163
  value: true
291
164
  });
292
- exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
293
-
294
- var lodash_1 = __webpack_require__(6);
295
-
296
- var schemaUtils_1 = __webpack_require__(3);
297
-
298
- var VizBehavior_1 = __webpack_require__(2);
165
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
299
166
 
300
- var dynamicOptionsDSLType = {
301
- type: 'string',
302
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
303
- };
304
- /**
305
- * Helper function to extend an options schema with dynamic options DSL
306
- * @param optionsSchema a visualization's options schema
307
- * @returns an updated options schema that additionally allows strings starting with > for each option
308
- */
167
+ var lodash_1 = __webpack_require__(5); // included for backwards compatibility
309
168
 
310
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
311
- var enhancedOptionsSchema = {};
312
- Object.keys(optionsSchema).forEach(function (key) {
313
- var _a = optionsSchema[key],
314
- title = _a.title,
315
- description = _a.description,
316
- readOnly = _a.readOnly,
317
- writeOnly = _a.writeOnly,
318
- examples = _a.examples,
319
- defaultValue = _a.default,
320
- type = _a.type,
321
- properties = _a.properties,
322
- patternProperties = _a.patternProperties,
323
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
324
-
325
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
326
- title: title
327
- }), description !== undefined && {
328
- description: description
329
- }), readOnly !== undefined && {
330
- readOnly: readOnly
331
- }), writeOnly !== undefined && {
332
- writeOnly: writeOnly
333
- }), examples !== undefined && {
334
- examples: examples
335
- }), defaultValue !== undefined && {
336
- default: defaultValue
337
- });
338
169
 
339
- if (type === 'object') {
340
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
341
- type: type
342
- }), properties && {
343
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
344
- });
345
-
346
- if (patternProperties) {
347
- var enhancedPatternProperties = {};
348
- Object.keys(patternProperties).forEach(function (opt) {
349
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
350
- });
351
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
352
- }
353
- } else {
354
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
355
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
356
- type: type
357
- }), remainingSchemaEntry), dynamicOptionsDSLType]
358
- });
359
- }
360
- });
361
- return enhancedOptionsSchema;
362
- }
170
+ var visualization_schemas_1 = __webpack_require__(2);
363
171
 
364
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
172
+ Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
173
+ enumerable: true,
174
+ get: function get() {
175
+ return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
176
+ }
177
+ });
365
178
  /**
366
179
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
367
180
  * this function also collapse all editor panels
@@ -372,11 +185,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
372
185
 
373
186
  function enhanceConfig(vizConfig) {
374
187
  var enhancedConfig = Object.assign({}, vizConfig);
375
-
376
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
377
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
378
- }
379
-
380
188
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
381
189
  return Object.assign(Object.assign({}, config), {
382
190
  open: config.open || false
@@ -500,14 +308,79 @@ exports.insertLayout = insertLayout;
500
308
 
501
309
  /***/ }),
502
310
 
503
- /***/ 6:
311
+ /***/ 36:
312
+ /***/ (function(module, exports, __webpack_require__) {
313
+
314
+ "use strict";
315
+
316
+
317
+ Object.defineProperty(exports, "__esModule", {
318
+ value: true
319
+ });
320
+
321
+ var i18n_1 = __webpack_require__(0);
322
+
323
+ var gauge = {
324
+ label: (0, i18n_1._)('Data display'),
325
+ layout: [[{
326
+ label: (0, i18n_1._)('Value display'),
327
+ option: 'valueDisplay',
328
+ editor: 'editor.radioBar',
329
+ editorProps: {
330
+ values: [{
331
+ label: (0, i18n_1._)('Number'),
332
+ value: 'number'
333
+ }, {
334
+ label: (0, i18n_1._)('Percentage'),
335
+ value: 'percentage'
336
+ }, {
337
+ label: (0, i18n_1._)('Off'),
338
+ value: 'off'
339
+ }]
340
+ }
341
+ }], [{
342
+ label: (0, i18n_1._)('Label display'),
343
+ option: 'labelDisplay',
344
+ editor: 'editor.radioBar',
345
+ editorProps: {
346
+ values: [{
347
+ label: (0, i18n_1._)('Numbers'),
348
+ value: 'number'
349
+ }, {
350
+ label: (0, i18n_1._)('Percentages'),
351
+ value: 'percentage'
352
+ }, {
353
+ label: (0, i18n_1._)('Off'),
354
+ value: 'off'
355
+ }]
356
+ }
357
+ }], [{
358
+ label: (0, i18n_1._)('Orientation'),
359
+ option: 'orientation',
360
+ editor: 'editor.radioBar',
361
+ editorProps: {
362
+ values: [{
363
+ label: (0, i18n_1._)('Vertical'),
364
+ value: 'vertical'
365
+ }, {
366
+ label: (0, i18n_1._)('Horizontal'),
367
+ value: 'horizontal'
368
+ }]
369
+ }
370
+ }]]
371
+ };
372
+ exports.default = gauge;
373
+
374
+ /***/ }),
375
+
376
+ /***/ 5:
504
377
  /***/ (function(module, exports) {
505
378
 
506
379
  module.exports = require("lodash");
507
380
 
508
381
  /***/ }),
509
382
 
510
- /***/ 65:
383
+ /***/ 56:
511
384
  /***/ (function(module, exports, __webpack_require__) {
512
385
 
513
386
  "use strict";
@@ -519,25 +392,25 @@ Object.defineProperty(exports, "__esModule", {
519
392
 
520
393
  var i18n_1 = __webpack_require__(0);
521
394
 
522
- var GaugeMarker_1 = __webpack_require__(66);
395
+ var GaugeMarker_1 = __webpack_require__(57);
523
396
 
524
- var placeholders_1 = __webpack_require__(11);
397
+ var placeholders_1 = __webpack_require__(10);
525
398
 
526
- var schemaUtils_1 = __webpack_require__(3);
399
+ var visualization_schemas_1 = __webpack_require__(2);
527
400
 
528
- var variables_1 = __webpack_require__(10);
401
+ var variables_1 = __webpack_require__(9);
529
402
 
530
- var pick_1 = __webpack_require__(9);
403
+ var pick_1 = __webpack_require__(8);
531
404
 
532
- var Gauge_1 = __webpack_require__(39);
405
+ var Gauge_1 = __webpack_require__(36);
533
406
 
534
- var VizBehavior_1 = __webpack_require__(2);
407
+ var VizBehavior_1 = __webpack_require__(6);
535
408
 
536
- var VizCategory_1 = __webpack_require__(8);
409
+ var VizCategory_1 = __webpack_require__(7);
537
410
 
538
- var configUtils_1 = __webpack_require__(4);
411
+ var configUtils_1 = __webpack_require__(3);
539
412
 
540
- var BackgroundColor_1 = __webpack_require__(13);
413
+ var BackgroundColor_1 = __webpack_require__(12);
541
414
 
542
415
  var dataContract = {
543
416
  requiredDataSources: [{
@@ -557,79 +430,6 @@ var size = {
557
430
  initialHeight: 300
558
431
  };
559
432
  var defaultContext = {};
560
- var optionsSchema = {
561
- backgroundColor: {
562
- description: 'Specify the color used for the background. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
563
- type: 'string',
564
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
565
- default: '> themes.defaultBackgroundColor'
566
- },
567
- gaugeRanges: {
568
- description: 'Specify the overall range of the gauge as a series of continuous, color-coded subranges. For example, [{"from": 0, "to": 20, "value": "#4BEBA8"}, {"from": 20, "to": 50, "value": "#F4DF7A"}].',
569
- default: [{
570
- from: 0,
571
- to: 50,
572
- value: '#118832'
573
- }, {
574
- from: 50,
575
- to: 90,
576
- value: '#CBA700'
577
- }, {
578
- from: 90,
579
- to: 100,
580
- value: '#D41F1F'
581
- }],
582
- type: 'array',
583
- items: {
584
- type: 'object',
585
- properties: {
586
- from: {
587
- type: 'number',
588
- description: 'Starting value for range.'
589
- },
590
- to: {
591
- type: 'number',
592
- description: 'Ending value for range.'
593
- },
594
- value: {
595
- description: 'Color for sub range.',
596
- type: 'string',
597
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
598
- }
599
- },
600
- required: ['from', 'to', 'value'],
601
- additionalProperties: false
602
- }
603
- },
604
- labelDisplay: {
605
- description: 'Specify whether to display the labels as numbers, percentages, or off. The label center aligns to the value.',
606
- default: 'number',
607
- type: 'string',
608
- pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off'])
609
- },
610
- majorTickInterval: {
611
- description: 'Specify, in pixels, the spacing between major tick marks.',
612
- default: 'auto',
613
- type: ['string', 'number']
614
- },
615
- orientation: {
616
- description: 'Specify the axis orientation of the gauge.',
617
- default: 'vertical',
618
- type: 'string',
619
- pattern: (0, schemaUtils_1.getPattern)(['horizontal', 'vertical'])
620
- },
621
- value: {
622
- description: 'Specify the dataSource applied to the value of the marker gauge.',
623
- type: 'string',
624
- default: '> primary | seriesByType("number") | lastPoint()'
625
- },
626
- valueDisplay: {
627
- description: 'Specify whether to display the value as a number, percentage, or off.',
628
- default: 'number',
629
- type: 'string',
630
- pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off'])
631
- }
632
- };
633
433
  var themes = {
634
434
  defaultFillColor: function defaultFillColor(props) {
635
435
  return (0, pick_1.default)({
@@ -749,7 +549,7 @@ var config = {
749
549
  dataContract: dataContract,
750
550
  size: size,
751
551
  defaultContext: defaultContext,
752
- optionsSchema: optionsSchema,
552
+ optionsSchema: visualization_schemas_1.markerGaugeOptionsSchema,
753
553
  editorConfig: editorConfig,
754
554
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
755
555
  themes: themes
@@ -758,21 +558,54 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
758
558
 
759
559
  /***/ }),
760
560
 
761
- /***/ 66:
561
+ /***/ 57:
762
562
  /***/ (function(module, exports) {
763
563
 
764
564
  module.exports = require("@splunk/react-icons/enterprise/GaugeMarker");
765
565
 
766
566
  /***/ }),
767
567
 
768
- /***/ 7:
769
- /***/ (function(module, exports) {
568
+ /***/ 6:
569
+ /***/ (function(module, exports, __webpack_require__) {
570
+
571
+ "use strict";
572
+
573
+
574
+ Object.defineProperty(exports, "__esModule", {
575
+ value: true
576
+ });
577
+ exports.VizBehavior = void 0;
578
+ var VizBehavior;
579
+
580
+ (function (VizBehavior) {
581
+ /**
582
+ * Dynamic Options Behavior.
583
+ * This allows visualization options to be powered by data
584
+ *
585
+ * **Example**
586
+ *
587
+ * sparklineValues: ">primary|seriesByIndex(0)"
588
+ * would configure sparklineValues with an array of data points
589
+ * coming from the first series in the primary datasource
590
+ *
591
+ */
592
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
593
+ VizBehavior["EVENTS"] = "events";
594
+ VizBehavior["DOWNSAMPLING"] = "downsampling";
595
+ /**
596
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
597
+ * missing.
598
+ * @type {string}
599
+ */
770
600
 
771
- module.exports = require("@babel/runtime/helpers/defineProperty");
601
+ VizBehavior["PLACEHOLDER"] = "placeholder";
602
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
603
+ VizBehavior["TRELLIS"] = "trellis";
604
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
772
605
 
773
606
  /***/ }),
774
607
 
775
- /***/ 8:
608
+ /***/ 7:
776
609
  /***/ (function(module, exports, __webpack_require__) {
777
610
 
778
611
  "use strict";
@@ -801,11 +634,18 @@ var VizCategory;
801
634
 
802
635
  /***/ }),
803
636
 
804
- /***/ 9:
637
+ /***/ 8:
805
638
  /***/ (function(module, exports) {
806
639
 
807
640
  module.exports = require("@splunk/themes/pick");
808
641
 
642
+ /***/ }),
643
+
644
+ /***/ 9:
645
+ /***/ (function(module, exports) {
646
+
647
+ module.exports = require("@splunk/themes/variables");
648
+
809
649
  /***/ })
810
650
 
811
651
  /******/ });