@splunk/visualizations 26.2.1 → 26.3.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.
- package/Area.config.js +91 -594
- package/Area.config.js.map +1 -1
- package/Area.js +184 -689
- package/Area.js.map +1 -1
- package/Bar.config.js +92 -561
- package/Bar.config.js.map +1 -1
- package/Bar.js +184 -655
- package/Bar.js.map +1 -1
- package/Bubble.config.js +83 -482
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +177 -578
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +76 -201
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +170 -300
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +92 -599
- package/Column.config.js.map +1 -1
- package/Column.js +184 -693
- package/Column.js.map +1 -1
- package/Ellipse.config.js +82 -200
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +137 -262
- package/Ellipse.js.map +1 -1
- package/Events.config.js +61 -282
- package/Events.config.js.map +1 -1
- package/Events.js +222 -428
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +90 -219
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +163 -299
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +61 -157
- package/Image.config.js.map +1 -1
- package/Image.js +130 -242
- package/Image.js.map +1 -1
- package/Line.config.js +91 -606
- package/Line.config.js.map +1 -1
- package/Line.js +184 -701
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +74 -256
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +545 -729
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +128 -1123
- package/Map.config.js.map +1 -1
- package/Map.js +309 -680
- package/Map.js.map +1 -1
- package/Markdown.config.js +61 -188
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +190 -323
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +137 -297
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +1038 -1203
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +71 -191
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +218 -343
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +72 -240
- package/Pie.config.js.map +1 -1
- package/Pie.js +214 -381
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +71 -305
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +246 -477
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +211 -347
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +274 -416
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +71 -213
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +246 -382
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +85 -463
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +825 -1202
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +114 -409
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +287 -582
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +30 -30
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +113 -378
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +268 -533
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +110 -382
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +272 -543
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +24 -24
- package/SparkLine.js.map +1 -1
- package/Table.config.js +74 -496
- package/Table.config.js.map +1 -1
- package/Table.js +302 -720
- package/Table.js.map +1 -1
- package/common/Charting.js +22 -34
- package/common/Charting.js.map +1 -1
- package/common/DocExampleWithVizSandbox.js +21 -21
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +4 -4
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +4 -4
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +39 -40
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +2 -2
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +2 -2
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +10 -10
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +10 -10
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +25 -155
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +75 -87
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/featureFlagUtils.js +4 -4
- package/common/utils/featureFlagUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/mapUtils.js +51 -54
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +7 -7
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +7 -36
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +7 -6
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +65 -77
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +46 -49
- package/common/utils/layoutUtils.js +0 -115
- package/common/utils/layoutUtils.js.map +0 -1
package/FillerGauge.config.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 46);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -104,51 +104,12 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
|
104
104
|
|
|
105
105
|
/***/ }),
|
|
106
106
|
/* 2 */
|
|
107
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
108
|
-
|
|
109
|
-
"use strict";
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
Object.defineProperty(exports, "__esModule", {
|
|
113
|
-
value: true
|
|
114
|
-
});
|
|
115
|
-
exports.VizBehavior = void 0;
|
|
116
|
-
var VizBehavior;
|
|
117
|
-
|
|
118
|
-
(function (VizBehavior) {
|
|
119
|
-
/**
|
|
120
|
-
* Dynamic Options Behavior.
|
|
121
|
-
* This allows visualization options to be powered by data
|
|
122
|
-
*
|
|
123
|
-
* **Example**
|
|
124
|
-
*
|
|
125
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
126
|
-
* would configure sparklineValues with an array of data points
|
|
127
|
-
* coming from the first series in the primary datasource
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
131
|
-
VizBehavior["EVENTS"] = "events";
|
|
132
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
133
|
-
/**
|
|
134
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
135
|
-
* missing.
|
|
136
|
-
* @type {string}
|
|
137
|
-
*/
|
|
138
|
-
|
|
139
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
140
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
141
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
142
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
143
|
-
|
|
144
|
-
/***/ }),
|
|
145
|
-
/* 3 */
|
|
146
107
|
/***/ (function(module, exports) {
|
|
147
108
|
|
|
148
|
-
module.exports = require("@splunk/
|
|
109
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
149
110
|
|
|
150
111
|
/***/ }),
|
|
151
|
-
/*
|
|
112
|
+
/* 3 */
|
|
152
113
|
/***/ (function(module, exports, __webpack_require__) {
|
|
153
114
|
|
|
154
115
|
"use strict";
|
|
@@ -156,97 +117,22 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
156
117
|
|
|
157
118
|
var _toConsumableArray = __webpack_require__(1);
|
|
158
119
|
|
|
159
|
-
var _defineProperty = __webpack_require__(7);
|
|
160
|
-
|
|
161
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
162
|
-
var t = {};
|
|
163
|
-
|
|
164
|
-
for (var p in s) {
|
|
165
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
169
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
170
|
-
}
|
|
171
|
-
return t;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
120
|
Object.defineProperty(exports, "__esModule", {
|
|
175
121
|
value: true
|
|
176
122
|
});
|
|
177
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.
|
|
178
|
-
|
|
179
|
-
var lodash_1 = __webpack_require__(6);
|
|
180
|
-
|
|
181
|
-
var schemaUtils_1 = __webpack_require__(3);
|
|
123
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
182
124
|
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
var dynamicOptionsDSLType = {
|
|
186
|
-
type: 'string',
|
|
187
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
191
|
-
* @param optionsSchema a visualization's options schema
|
|
192
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
193
|
-
*/
|
|
125
|
+
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
194
126
|
|
|
195
|
-
function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
196
|
-
var enhancedOptionsSchema = {};
|
|
197
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
198
|
-
var _a = optionsSchema[key],
|
|
199
|
-
title = _a.title,
|
|
200
|
-
description = _a.description,
|
|
201
|
-
readOnly = _a.readOnly,
|
|
202
|
-
writeOnly = _a.writeOnly,
|
|
203
|
-
examples = _a.examples,
|
|
204
|
-
defaultValue = _a.default,
|
|
205
|
-
type = _a.type,
|
|
206
|
-
properties = _a.properties,
|
|
207
|
-
patternProperties = _a.patternProperties,
|
|
208
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
209
|
-
|
|
210
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
211
|
-
title: title
|
|
212
|
-
}), description !== undefined && {
|
|
213
|
-
description: description
|
|
214
|
-
}), readOnly !== undefined && {
|
|
215
|
-
readOnly: readOnly
|
|
216
|
-
}), writeOnly !== undefined && {
|
|
217
|
-
writeOnly: writeOnly
|
|
218
|
-
}), examples !== undefined && {
|
|
219
|
-
examples: examples
|
|
220
|
-
}), defaultValue !== undefined && {
|
|
221
|
-
default: defaultValue
|
|
222
|
-
});
|
|
223
127
|
|
|
224
|
-
|
|
225
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
226
|
-
type: type
|
|
227
|
-
}), properties && {
|
|
228
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
if (patternProperties) {
|
|
232
|
-
var enhancedPatternProperties = {};
|
|
233
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
234
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
235
|
-
});
|
|
236
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
237
|
-
}
|
|
238
|
-
} else {
|
|
239
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
240
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
241
|
-
type: type
|
|
242
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
return enhancedOptionsSchema;
|
|
247
|
-
}
|
|
128
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
248
129
|
|
|
249
|
-
exports
|
|
130
|
+
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function get() {
|
|
133
|
+
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
250
136
|
/**
|
|
251
137
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
252
138
|
* this function also collapse all editor panels
|
|
@@ -257,11 +143,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
257
143
|
|
|
258
144
|
function enhanceConfig(vizConfig) {
|
|
259
145
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
260
|
-
|
|
261
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
262
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
146
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
266
147
|
return Object.assign(Object.assign({}, config), {
|
|
267
148
|
open: config.open || false
|
|
@@ -384,25 +265,58 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
384
265
|
exports.insertLayout = insertLayout;
|
|
385
266
|
|
|
386
267
|
/***/ }),
|
|
387
|
-
/*
|
|
268
|
+
/* 4 */
|
|
388
269
|
/***/ (function(module, exports) {
|
|
389
270
|
|
|
390
271
|
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
391
272
|
|
|
392
273
|
/***/ }),
|
|
393
|
-
/*
|
|
274
|
+
/* 5 */
|
|
394
275
|
/***/ (function(module, exports) {
|
|
395
276
|
|
|
396
277
|
module.exports = require("lodash");
|
|
397
278
|
|
|
398
279
|
/***/ }),
|
|
399
|
-
/*
|
|
400
|
-
/***/ (function(module, exports) {
|
|
280
|
+
/* 6 */
|
|
281
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
401
282
|
|
|
402
|
-
|
|
283
|
+
"use strict";
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
Object.defineProperty(exports, "__esModule", {
|
|
287
|
+
value: true
|
|
288
|
+
});
|
|
289
|
+
exports.VizBehavior = void 0;
|
|
290
|
+
var VizBehavior;
|
|
291
|
+
|
|
292
|
+
(function (VizBehavior) {
|
|
293
|
+
/**
|
|
294
|
+
* Dynamic Options Behavior.
|
|
295
|
+
* This allows visualization options to be powered by data
|
|
296
|
+
*
|
|
297
|
+
* **Example**
|
|
298
|
+
*
|
|
299
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
300
|
+
* would configure sparklineValues with an array of data points
|
|
301
|
+
* coming from the first series in the primary datasource
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
304
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
305
|
+
VizBehavior["EVENTS"] = "events";
|
|
306
|
+
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
307
|
+
/**
|
|
308
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
309
|
+
* missing.
|
|
310
|
+
* @type {string}
|
|
311
|
+
*/
|
|
312
|
+
|
|
313
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
314
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
315
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
316
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
403
317
|
|
|
404
318
|
/***/ }),
|
|
405
|
-
/*
|
|
319
|
+
/* 7 */
|
|
406
320
|
/***/ (function(module, exports, __webpack_require__) {
|
|
407
321
|
|
|
408
322
|
"use strict";
|
|
@@ -430,26 +344,26 @@ var VizCategory;
|
|
|
430
344
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
431
345
|
|
|
432
346
|
/***/ }),
|
|
433
|
-
/*
|
|
347
|
+
/* 8 */
|
|
434
348
|
/***/ (function(module, exports) {
|
|
435
349
|
|
|
436
350
|
module.exports = require("@splunk/themes/pick");
|
|
437
351
|
|
|
438
352
|
/***/ }),
|
|
439
|
-
/*
|
|
353
|
+
/* 9 */
|
|
440
354
|
/***/ (function(module, exports) {
|
|
441
355
|
|
|
442
356
|
module.exports = require("@splunk/themes/variables");
|
|
443
357
|
|
|
444
358
|
/***/ }),
|
|
445
|
-
/*
|
|
359
|
+
/* 10 */
|
|
446
360
|
/***/ (function(module, exports) {
|
|
447
361
|
|
|
448
362
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
449
363
|
|
|
450
364
|
/***/ }),
|
|
451
|
-
/*
|
|
452
|
-
/*
|
|
365
|
+
/* 11 */,
|
|
366
|
+
/* 12 */
|
|
453
367
|
/***/ (function(module, exports, __webpack_require__) {
|
|
454
368
|
|
|
455
369
|
"use strict";
|
|
@@ -479,18 +393,14 @@ var background = function background(_ref) {
|
|
|
479
393
|
exports.default = background;
|
|
480
394
|
|
|
481
395
|
/***/ }),
|
|
482
|
-
/*
|
|
483
|
-
/***/ (function(module, exports) {
|
|
484
|
-
|
|
485
|
-
module.exports = require("@splunk/visualization-color-palettes");
|
|
486
|
-
|
|
487
|
-
/***/ }),
|
|
488
|
-
/* 15 */
|
|
396
|
+
/* 13 */
|
|
489
397
|
/***/ (function(module, exports) {
|
|
490
398
|
|
|
491
399
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
492
400
|
|
|
493
401
|
/***/ }),
|
|
402
|
+
/* 14 */,
|
|
403
|
+
/* 15 */,
|
|
494
404
|
/* 16 */,
|
|
495
405
|
/* 17 */,
|
|
496
406
|
/* 18 */,
|
|
@@ -511,10 +421,7 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
|
|
|
511
421
|
/* 33 */,
|
|
512
422
|
/* 34 */,
|
|
513
423
|
/* 35 */,
|
|
514
|
-
/* 36
|
|
515
|
-
/* 37 */,
|
|
516
|
-
/* 38 */,
|
|
517
|
-
/* 39 */
|
|
424
|
+
/* 36 */
|
|
518
425
|
/***/ (function(module, exports, __webpack_require__) {
|
|
519
426
|
|
|
520
427
|
"use strict";
|
|
@@ -578,17 +485,16 @@ var gauge = {
|
|
|
578
485
|
exports.default = gauge;
|
|
579
486
|
|
|
580
487
|
/***/ }),
|
|
488
|
+
/* 37 */,
|
|
489
|
+
/* 38 */,
|
|
490
|
+
/* 39 */,
|
|
581
491
|
/* 40 */,
|
|
582
492
|
/* 41 */,
|
|
583
493
|
/* 42 */,
|
|
584
494
|
/* 43 */,
|
|
585
495
|
/* 44 */,
|
|
586
496
|
/* 45 */,
|
|
587
|
-
/* 46
|
|
588
|
-
/* 47 */,
|
|
589
|
-
/* 48 */,
|
|
590
|
-
/* 49 */,
|
|
591
|
-
/* 50 */
|
|
497
|
+
/* 46 */
|
|
592
498
|
/***/ (function(module, exports, __webpack_require__) {
|
|
593
499
|
|
|
594
500
|
"use strict";
|
|
@@ -600,33 +506,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
600
506
|
|
|
601
507
|
var i18n_1 = __webpack_require__(0);
|
|
602
508
|
|
|
603
|
-
var
|
|
509
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
604
510
|
|
|
605
|
-
var pick_1 = __webpack_require__(
|
|
511
|
+
var pick_1 = __webpack_require__(8);
|
|
606
512
|
|
|
607
|
-
var variables_1 = __webpack_require__(
|
|
513
|
+
var variables_1 = __webpack_require__(9);
|
|
608
514
|
|
|
609
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
515
|
+
var visualization_color_palettes_1 = __webpack_require__(47);
|
|
610
516
|
|
|
611
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
517
|
+
var PresetPalettes_1 = __webpack_require__(13);
|
|
612
518
|
|
|
613
|
-
var GaugeFiller_1 = __webpack_require__(
|
|
519
|
+
var GaugeFiller_1 = __webpack_require__(48);
|
|
614
520
|
|
|
615
|
-
var placeholders_1 = __webpack_require__(
|
|
521
|
+
var placeholders_1 = __webpack_require__(10);
|
|
616
522
|
|
|
617
|
-
var VizBehavior_1 = __webpack_require__(
|
|
523
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
618
524
|
|
|
619
|
-
var VizCategory_1 = __webpack_require__(
|
|
525
|
+
var VizCategory_1 = __webpack_require__(7);
|
|
620
526
|
|
|
621
|
-
var configUtils_1 = __webpack_require__(
|
|
527
|
+
var configUtils_1 = __webpack_require__(3);
|
|
622
528
|
|
|
623
|
-
var Gauge_1 = __webpack_require__(
|
|
529
|
+
var Gauge_1 = __webpack_require__(36);
|
|
624
530
|
|
|
625
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
531
|
+
var BackgroundColor_1 = __webpack_require__(12);
|
|
626
532
|
|
|
627
|
-
var DynamicGaugeColorEditor_1 = __webpack_require__(
|
|
533
|
+
var DynamicGaugeColorEditor_1 = __webpack_require__(49);
|
|
628
534
|
|
|
629
|
-
var StaticGaugeColorEditor_1 = __webpack_require__(
|
|
535
|
+
var StaticGaugeColorEditor_1 = __webpack_require__(50);
|
|
630
536
|
|
|
631
537
|
var dataContract = {
|
|
632
538
|
requiredDataSources: [{
|
|
@@ -666,47 +572,6 @@ var defaultContext = {
|
|
|
666
572
|
value: '#D41F1F'
|
|
667
573
|
}]
|
|
668
574
|
};
|
|
669
|
-
var optionsSchema = {
|
|
670
|
-
backgroundColor: {
|
|
671
|
-
default: '> themes.defaultBackgroundColor',
|
|
672
|
-
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".',
|
|
673
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
674
|
-
type: 'string'
|
|
675
|
-
},
|
|
676
|
-
gaugeColor: {
|
|
677
|
-
default: visualization_color_palettes_1.CATEGORICAL[0],
|
|
678
|
-
description: 'Specify the color for the gauge color of the filler gauge. You may use a dataSource to apply the color. The hex value format should be "#FFFFFF".',
|
|
679
|
-
type: 'string'
|
|
680
|
-
},
|
|
681
|
-
labelDisplay: {
|
|
682
|
-
default: 'number',
|
|
683
|
-
description: 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',
|
|
684
|
-
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
|
|
685
|
-
type: 'string'
|
|
686
|
-
},
|
|
687
|
-
majorTickInterval: {
|
|
688
|
-
description: 'Specify, in pixels, the spacing between major tick marks.',
|
|
689
|
-
default: 'auto',
|
|
690
|
-
type: ['string', 'number']
|
|
691
|
-
},
|
|
692
|
-
orientation: {
|
|
693
|
-
default: 'vertical',
|
|
694
|
-
description: 'Specify the axis orientation of the gauge.',
|
|
695
|
-
pattern: (0, schemaUtils_1.getPattern)(['vertical', 'horizontal']),
|
|
696
|
-
type: 'string'
|
|
697
|
-
},
|
|
698
|
-
value: {
|
|
699
|
-
default: '> primary | seriesByType("number") | lastPoint()',
|
|
700
|
-
description: 'Specify the dataSource applied to the value of the filler gauge.',
|
|
701
|
-
type: 'number'
|
|
702
|
-
},
|
|
703
|
-
valueDisplay: {
|
|
704
|
-
default: 'number',
|
|
705
|
-
description: 'Specify whether to display the value as a number, percentage, or off.',
|
|
706
|
-
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
|
|
707
|
-
type: 'string'
|
|
708
|
-
}
|
|
709
|
-
};
|
|
710
575
|
var themes = {
|
|
711
576
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
712
577
|
return (0, pick_1.default)({
|
|
@@ -865,7 +730,7 @@ var config = {
|
|
|
865
730
|
dataContract: dataContract,
|
|
866
731
|
size: size,
|
|
867
732
|
defaultContext: defaultContext,
|
|
868
|
-
optionsSchema:
|
|
733
|
+
optionsSchema: visualization_schemas_1.fillerGaugeOptionsSchema,
|
|
869
734
|
editorConfig: editorConfig,
|
|
870
735
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
|
|
871
736
|
themes: themes
|
|
@@ -873,13 +738,19 @@ var config = {
|
|
|
873
738
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
874
739
|
|
|
875
740
|
/***/ }),
|
|
876
|
-
/*
|
|
741
|
+
/* 47 */
|
|
742
|
+
/***/ (function(module, exports) {
|
|
743
|
+
|
|
744
|
+
module.exports = require("@splunk/visualization-color-palettes");
|
|
745
|
+
|
|
746
|
+
/***/ }),
|
|
747
|
+
/* 48 */
|
|
877
748
|
/***/ (function(module, exports) {
|
|
878
749
|
|
|
879
750
|
module.exports = require("@splunk/react-icons/enterprise/GaugeFiller");
|
|
880
751
|
|
|
881
752
|
/***/ }),
|
|
882
|
-
/*
|
|
753
|
+
/* 49 */
|
|
883
754
|
/***/ (function(module, exports, __webpack_require__) {
|
|
884
755
|
|
|
885
756
|
"use strict";
|
|
@@ -892,7 +763,7 @@ exports.getDynamicGaugeColorEditor = void 0;
|
|
|
892
763
|
|
|
893
764
|
var i18n_1 = __webpack_require__(0);
|
|
894
765
|
|
|
895
|
-
var configUtils_1 = __webpack_require__(
|
|
766
|
+
var configUtils_1 = __webpack_require__(4);
|
|
896
767
|
|
|
897
768
|
var getDynamicGaugeColorEditor = function getDynamicGaugeColorEditor(_ref) {
|
|
898
769
|
var defaultContext = _ref.defaultContext,
|
|
@@ -928,7 +799,7 @@ var getDynamicGaugeColorEditor = function getDynamicGaugeColorEditor(_ref) {
|
|
|
928
799
|
exports.getDynamicGaugeColorEditor = getDynamicGaugeColorEditor;
|
|
929
800
|
|
|
930
801
|
/***/ }),
|
|
931
|
-
/*
|
|
802
|
+
/* 50 */
|
|
932
803
|
/***/ (function(module, exports, __webpack_require__) {
|
|
933
804
|
|
|
934
805
|
"use strict";
|
|
@@ -940,7 +811,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
940
811
|
|
|
941
812
|
var i18n_1 = __webpack_require__(0);
|
|
942
813
|
|
|
943
|
-
var configUtils_1 = __webpack_require__(
|
|
814
|
+
var configUtils_1 = __webpack_require__(4);
|
|
944
815
|
|
|
945
816
|
var StaticGaugeColorEditor = {
|
|
946
817
|
label: (0, i18n_1._)('Gauge'),
|