@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/SingleValue.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 = 66);
|
|
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.
|
|
123
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
178
124
|
|
|
179
|
-
var lodash_1 = __webpack_require__(
|
|
125
|
+
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
180
126
|
|
|
181
|
-
var schemaUtils_1 = __webpack_require__(3);
|
|
182
|
-
|
|
183
|
-
var VizBehavior_1 = __webpack_require__(2);
|
|
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
|
-
*/
|
|
194
127
|
|
|
195
|
-
|
|
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
|
-
});
|
|
128
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
223
129
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
}
|
|
248
|
-
|
|
249
|
-
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
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__) {
|
|
282
|
+
|
|
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
|
+
*/
|
|
401
312
|
|
|
402
|
-
|
|
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,38 +344,39 @@ 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
|
-
/*
|
|
365
|
+
/* 11 */
|
|
452
366
|
/***/ (function(module, exports) {
|
|
453
367
|
|
|
454
368
|
module.exports = require("@splunk/visualization-icons");
|
|
455
369
|
|
|
456
370
|
/***/ }),
|
|
457
|
-
/*
|
|
458
|
-
/*
|
|
459
|
-
/* 15 */
|
|
371
|
+
/* 12 */,
|
|
372
|
+
/* 13 */
|
|
460
373
|
/***/ (function(module, exports) {
|
|
461
374
|
|
|
462
375
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
463
376
|
|
|
464
377
|
/***/ }),
|
|
378
|
+
/* 14 */,
|
|
379
|
+
/* 15 */,
|
|
465
380
|
/* 16 */,
|
|
466
381
|
/* 17 */,
|
|
467
382
|
/* 18 */,
|
|
@@ -469,33 +384,13 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
|
|
|
469
384
|
/* 20 */,
|
|
470
385
|
/* 21 */,
|
|
471
386
|
/* 22 */
|
|
472
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
473
|
-
|
|
474
|
-
"use strict";
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
Object.defineProperty(exports, "__esModule", {
|
|
478
|
-
value: true
|
|
479
|
-
});
|
|
480
|
-
exports.LAYOUT_TYPE = void 0;
|
|
481
|
-
var LAYOUT_TYPE;
|
|
482
|
-
|
|
483
|
-
(function (LAYOUT_TYPE) {
|
|
484
|
-
LAYOUT_TYPE["Off"] = "off";
|
|
485
|
-
LAYOUT_TYPE["Trellis"] = "trellis";
|
|
486
|
-
})(LAYOUT_TYPE = exports.LAYOUT_TYPE || (exports.LAYOUT_TYPE = {}));
|
|
487
|
-
|
|
488
|
-
/***/ }),
|
|
489
|
-
/* 23 */,
|
|
490
|
-
/* 24 */,
|
|
491
|
-
/* 25 */
|
|
492
387
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
493
388
|
|
|
494
389
|
"use strict";
|
|
495
390
|
__webpack_require__.r(__webpack_exports__);
|
|
496
391
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
497
392
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
498
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
393
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
499
394
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
500
395
|
|
|
501
396
|
|
|
@@ -511,8 +406,8 @@ var StaticBackgroundColorEditor = {
|
|
|
511
406
|
/* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
|
|
512
407
|
|
|
513
408
|
/***/ }),
|
|
514
|
-
/*
|
|
515
|
-
/*
|
|
409
|
+
/* 23 */,
|
|
410
|
+
/* 24 */
|
|
516
411
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
517
412
|
|
|
518
413
|
"use strict";
|
|
@@ -520,7 +415,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
520
415
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
|
|
521
416
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
522
417
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
523
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
418
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
524
419
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
525
420
|
|
|
526
421
|
|
|
@@ -556,7 +451,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
556
451
|
};
|
|
557
452
|
|
|
558
453
|
/***/ }),
|
|
559
|
-
/*
|
|
454
|
+
/* 25 */
|
|
560
455
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
561
456
|
|
|
562
457
|
"use strict";
|
|
@@ -564,7 +459,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
564
459
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
|
|
565
460
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
566
461
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
567
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
462
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
568
463
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
569
464
|
|
|
570
465
|
|
|
@@ -610,7 +505,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
610
505
|
};
|
|
611
506
|
|
|
612
507
|
/***/ }),
|
|
613
|
-
/*
|
|
508
|
+
/* 26 */
|
|
614
509
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
615
510
|
|
|
616
511
|
"use strict";
|
|
@@ -660,14 +555,14 @@ var StaticMajorAndTrendLayout = [[{
|
|
|
660
555
|
/* harmony default export */ __webpack_exports__["default"] = (StaticMajorAndTrendLayout);
|
|
661
556
|
|
|
662
557
|
/***/ }),
|
|
663
|
-
/*
|
|
558
|
+
/* 27 */
|
|
664
559
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
665
560
|
|
|
666
561
|
"use strict";
|
|
667
562
|
__webpack_require__.r(__webpack_exports__);
|
|
668
563
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
669
564
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
670
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
565
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
671
566
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
672
567
|
|
|
673
568
|
|
|
@@ -683,14 +578,14 @@ var StaticMajorColorEditor = {
|
|
|
683
578
|
/* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
|
|
684
579
|
|
|
685
580
|
/***/ }),
|
|
686
|
-
/*
|
|
581
|
+
/* 28 */
|
|
687
582
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
688
583
|
|
|
689
584
|
"use strict";
|
|
690
585
|
__webpack_require__.r(__webpack_exports__);
|
|
691
586
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
692
587
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
693
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
588
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
694
589
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
695
590
|
|
|
696
591
|
|
|
@@ -710,7 +605,7 @@ var StaticTrendColorEditor = {
|
|
|
710
605
|
/* harmony default export */ __webpack_exports__["default"] = (StaticTrendColorEditor);
|
|
711
606
|
|
|
712
607
|
/***/ }),
|
|
713
|
-
/*
|
|
608
|
+
/* 29 */
|
|
714
609
|
/***/ (function(module, exports, __webpack_require__) {
|
|
715
610
|
|
|
716
611
|
"use strict";
|
|
@@ -721,13 +616,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
721
616
|
});
|
|
722
617
|
exports.TrellisBackgroundColorEditor = exports.TrellisEditorConfig = void 0;
|
|
723
618
|
|
|
724
|
-
var React = __webpack_require__(
|
|
619
|
+
var React = __webpack_require__(30);
|
|
725
620
|
|
|
726
621
|
var i18n_1 = __webpack_require__(0);
|
|
727
622
|
|
|
728
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
623
|
+
var FeatureFlagContext_1 = __webpack_require__(31);
|
|
729
624
|
|
|
730
|
-
var
|
|
625
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
731
626
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
732
627
|
|
|
733
628
|
|
|
@@ -751,7 +646,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
751
646
|
var options = _ref.options;
|
|
752
647
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
753
648
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
754
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
649
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
755
650
|
}
|
|
756
651
|
}], [{
|
|
757
652
|
label: (0, i18n_1._)('Number of columns'),
|
|
@@ -765,7 +660,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
765
660
|
var options = _ref2.options;
|
|
766
661
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
767
662
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
768
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
663
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
769
664
|
}
|
|
770
665
|
}], [{
|
|
771
666
|
label: (0, i18n_1._)('Min column width'),
|
|
@@ -778,7 +673,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
778
673
|
var options = _ref3.options;
|
|
779
674
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
780
675
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
781
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
676
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
782
677
|
}
|
|
783
678
|
}, {
|
|
784
679
|
label: (0, i18n_1._)('Row height'),
|
|
@@ -791,7 +686,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
791
686
|
var options = _ref4.options;
|
|
792
687
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
793
688
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
794
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
689
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
795
690
|
}
|
|
796
691
|
}], [{
|
|
797
692
|
label: (0, i18n_1._)('Max number of components per page'),
|
|
@@ -804,7 +699,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
804
699
|
var options = _ref5.options;
|
|
805
700
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
806
701
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
807
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
702
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
808
703
|
}
|
|
809
704
|
}]];
|
|
810
705
|
exports.TrellisBackgroundColorEditor = {
|
|
@@ -815,29 +710,29 @@ exports.TrellisBackgroundColorEditor = {
|
|
|
815
710
|
var options = _ref6.options;
|
|
816
711
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
817
712
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
818
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
713
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
819
714
|
}
|
|
820
715
|
};
|
|
821
716
|
|
|
822
717
|
/***/ }),
|
|
823
|
-
/*
|
|
718
|
+
/* 30 */
|
|
824
719
|
/***/ (function(module, exports) {
|
|
825
720
|
|
|
826
721
|
module.exports = require("react");
|
|
827
722
|
|
|
828
723
|
/***/ }),
|
|
829
|
-
/*
|
|
724
|
+
/* 31 */
|
|
830
725
|
/***/ (function(module, exports) {
|
|
831
726
|
|
|
832
727
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
833
728
|
|
|
834
729
|
/***/ }),
|
|
730
|
+
/* 32 */,
|
|
731
|
+
/* 33 */,
|
|
732
|
+
/* 34 */,
|
|
835
733
|
/* 35 */,
|
|
836
734
|
/* 36 */,
|
|
837
|
-
/* 37
|
|
838
|
-
/* 38 */,
|
|
839
|
-
/* 39 */,
|
|
840
|
-
/* 40 */
|
|
735
|
+
/* 37 */
|
|
841
736
|
/***/ (function(module, exports, __webpack_require__) {
|
|
842
737
|
|
|
843
738
|
"use strict";
|
|
@@ -881,7 +776,7 @@ exports.defaultContext = {
|
|
|
881
776
|
};
|
|
882
777
|
|
|
883
778
|
/***/ }),
|
|
884
|
-
/*
|
|
779
|
+
/* 38 */
|
|
885
780
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
886
781
|
|
|
887
782
|
"use strict";
|
|
@@ -889,7 +784,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
889
784
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
|
|
890
785
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
891
786
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
892
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
787
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
893
788
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
894
789
|
|
|
895
790
|
|
|
@@ -931,6 +826,9 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
931
826
|
};
|
|
932
827
|
|
|
933
828
|
/***/ }),
|
|
829
|
+
/* 39 */,
|
|
830
|
+
/* 40 */,
|
|
831
|
+
/* 41 */,
|
|
934
832
|
/* 42 */,
|
|
935
833
|
/* 43 */,
|
|
936
834
|
/* 44 */,
|
|
@@ -955,16 +853,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
955
853
|
/* 63 */,
|
|
956
854
|
/* 64 */,
|
|
957
855
|
/* 65 */,
|
|
958
|
-
/* 66
|
|
959
|
-
/* 67 */,
|
|
960
|
-
/* 68 */,
|
|
961
|
-
/* 69 */,
|
|
962
|
-
/* 70 */,
|
|
963
|
-
/* 71 */,
|
|
964
|
-
/* 72 */,
|
|
965
|
-
/* 73 */,
|
|
966
|
-
/* 74 */,
|
|
967
|
-
/* 75 */
|
|
856
|
+
/* 66 */
|
|
968
857
|
/***/ (function(module, exports, __webpack_require__) {
|
|
969
858
|
|
|
970
859
|
"use strict";
|
|
@@ -978,45 +867,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
978
867
|
|
|
979
868
|
var i18n_1 = __webpack_require__(0);
|
|
980
869
|
|
|
981
|
-
var
|
|
870
|
+
var visualization_schemas_1 = __webpack_require__(2);
|
|
982
871
|
|
|
983
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
872
|
+
var PresetPalettes_1 = __webpack_require__(13);
|
|
984
873
|
|
|
985
|
-
var variables_1 = __webpack_require__(
|
|
874
|
+
var variables_1 = __webpack_require__(67);
|
|
986
875
|
|
|
987
|
-
var pick_1 = __webpack_require__(
|
|
876
|
+
var pick_1 = __webpack_require__(8);
|
|
988
877
|
|
|
989
|
-
var variables_2 = __webpack_require__(
|
|
878
|
+
var variables_2 = __webpack_require__(9);
|
|
990
879
|
|
|
991
|
-
var visualization_icons_1 = __webpack_require__(
|
|
880
|
+
var visualization_icons_1 = __webpack_require__(11);
|
|
992
881
|
|
|
993
|
-
var placeholders_1 = __webpack_require__(
|
|
882
|
+
var placeholders_1 = __webpack_require__(10);
|
|
994
883
|
|
|
995
|
-
var singleValueContext_1 = __webpack_require__(
|
|
884
|
+
var singleValueContext_1 = __webpack_require__(37);
|
|
996
885
|
|
|
997
|
-
var VizBehavior_1 = __webpack_require__(
|
|
886
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
998
887
|
|
|
999
|
-
var DynamicMajorColorEditor_1 = __webpack_require__(
|
|
888
|
+
var DynamicMajorColorEditor_1 = __webpack_require__(38);
|
|
1000
889
|
|
|
1001
|
-
var DynamicTrendColorEditor_1 = __webpack_require__(
|
|
890
|
+
var DynamicTrendColorEditor_1 = __webpack_require__(24);
|
|
1002
891
|
|
|
1003
|
-
var DynamicBackgroundColorEditor_1 = __webpack_require__(
|
|
892
|
+
var DynamicBackgroundColorEditor_1 = __webpack_require__(25);
|
|
1004
893
|
|
|
1005
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
894
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(26);
|
|
1006
895
|
|
|
1007
|
-
var StaticMajorColorEditor_1 = __webpack_require__(
|
|
896
|
+
var StaticMajorColorEditor_1 = __webpack_require__(27);
|
|
1008
897
|
|
|
1009
|
-
var StaticTrendColorEditor_1 = __webpack_require__(
|
|
898
|
+
var StaticTrendColorEditor_1 = __webpack_require__(28);
|
|
1010
899
|
|
|
1011
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
900
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(22);
|
|
1012
901
|
|
|
1013
|
-
var configUtils_1 = __webpack_require__(
|
|
902
|
+
var configUtils_1 = __webpack_require__(3);
|
|
1014
903
|
|
|
1015
|
-
var TrellisEditors_1 = __webpack_require__(
|
|
904
|
+
var TrellisEditors_1 = __webpack_require__(29);
|
|
1016
905
|
|
|
1017
|
-
var VizCategory_1 = __webpack_require__(
|
|
1018
|
-
|
|
1019
|
-
var layoutUtils_1 = __webpack_require__(22);
|
|
906
|
+
var VizCategory_1 = __webpack_require__(7);
|
|
1020
907
|
|
|
1021
908
|
var dataContract = {
|
|
1022
909
|
requiredDataSources: [{
|
|
@@ -1035,188 +922,6 @@ var size = {
|
|
|
1035
922
|
initialWidth: 250,
|
|
1036
923
|
initialHeight: 250
|
|
1037
924
|
};
|
|
1038
|
-
var optionsSchema = {
|
|
1039
|
-
align: {
|
|
1040
|
-
default: 'center',
|
|
1041
|
-
description: 'Specify how to align the center content.',
|
|
1042
|
-
pattern: (0, schemaUtils_1.getPattern)(['left', 'center', 'right']),
|
|
1043
|
-
type: 'string'
|
|
1044
|
-
},
|
|
1045
|
-
backgroundColor: {
|
|
1046
|
-
default: '> themes.defaultBackgroundColor',
|
|
1047
|
-
description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
1048
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1049
|
-
type: 'string'
|
|
1050
|
-
},
|
|
1051
|
-
majorColor: {
|
|
1052
|
-
default: '> themes.defaultFontColor',
|
|
1053
|
-
description: 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
1054
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1055
|
-
type: 'string'
|
|
1056
|
-
},
|
|
1057
|
-
majorFontSize: {
|
|
1058
|
-
description: 'Specify the font size (px) for the major value. By default the major value font size is calculated dynamically based on the available space.',
|
|
1059
|
-
type: 'number'
|
|
1060
|
-
},
|
|
1061
|
-
majorValue: {
|
|
1062
|
-
default: '> sparklineValues|lastPoint()',
|
|
1063
|
-
description: 'The major value to display in the visualization.',
|
|
1064
|
-
type: ['string', 'number']
|
|
1065
|
-
},
|
|
1066
|
-
majorValueField: {
|
|
1067
|
-
default: '> majorValue | getField()',
|
|
1068
|
-
description: 'The field name of major value.',
|
|
1069
|
-
type: 'string'
|
|
1070
|
-
},
|
|
1071
|
-
numberPrecision: {
|
|
1072
|
-
default: 0,
|
|
1073
|
-
maximum: 20,
|
|
1074
|
-
minimum: 0,
|
|
1075
|
-
description: 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. Values can range from 0 to 20.',
|
|
1076
|
-
type: 'number'
|
|
1077
|
-
},
|
|
1078
|
-
shouldAbbreviateTrendValue: {
|
|
1079
|
-
default: false,
|
|
1080
|
-
description: 'Specify whether to abbreviate the trend value to 2 decimal points. A magnitude unit will be displayed.',
|
|
1081
|
-
type: 'boolean'
|
|
1082
|
-
},
|
|
1083
|
-
shouldSparklineAcceptNullData: {
|
|
1084
|
-
default: true,
|
|
1085
|
-
description: 'Specify whether to convert null and non-numeric values in the sparkline to 0.',
|
|
1086
|
-
type: 'boolean'
|
|
1087
|
-
},
|
|
1088
|
-
shouldUseThousandSeparators: {
|
|
1089
|
-
default: true,
|
|
1090
|
-
description: 'Specify whether numeric values use commas as thousandths separators.',
|
|
1091
|
-
type: 'boolean'
|
|
1092
|
-
},
|
|
1093
|
-
showSparklineAreaGraph: {
|
|
1094
|
-
default: false,
|
|
1095
|
-
description: 'Specify whether to show the sparkline as an area graph rather than a line.',
|
|
1096
|
-
type: 'boolean'
|
|
1097
|
-
},
|
|
1098
|
-
showSparklineTooltip: {
|
|
1099
|
-
default: false,
|
|
1100
|
-
description: 'Show a tooltip to display values on the sparkline.',
|
|
1101
|
-
type: 'boolean'
|
|
1102
|
-
},
|
|
1103
|
-
splitByLayout: {
|
|
1104
|
-
default: 'off',
|
|
1105
|
-
description: 'Specify the layout method by which to display the visualization, which splits the data into individual visualizations based on a certain category.',
|
|
1106
|
-
type: 'string',
|
|
1107
|
-
pattern: (0, schemaUtils_1.getPattern)([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
|
|
1108
|
-
enum: [layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]
|
|
1109
|
-
},
|
|
1110
|
-
sparklineAreaColor: {
|
|
1111
|
-
default: '> sparklineStrokeColor',
|
|
1112
|
-
description: 'Specify the color for the sparkline area fill. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The graph area will have an opacity of 20% and will blend with the background color.',
|
|
1113
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1114
|
-
type: 'string'
|
|
1115
|
-
},
|
|
1116
|
-
sparklineDisplay: {
|
|
1117
|
-
default: 'below',
|
|
1118
|
-
description: 'Specify how to display a sparkline.',
|
|
1119
|
-
pattern: (0, schemaUtils_1.getPattern)(['before', 'after', 'below', 'off']),
|
|
1120
|
-
type: 'string'
|
|
1121
|
-
},
|
|
1122
|
-
sparklineHighlightDots: {
|
|
1123
|
-
default: 0,
|
|
1124
|
-
description: 'Specify the number of markers, or dots, to display at the top of a sparkline area graph.',
|
|
1125
|
-
type: 'number'
|
|
1126
|
-
},
|
|
1127
|
-
sparklineHighlightSegments: {
|
|
1128
|
-
default: 0,
|
|
1129
|
-
description: 'Specify the number of segments to be highlighted at the top of a sparkline area graph.',
|
|
1130
|
-
type: 'number'
|
|
1131
|
-
},
|
|
1132
|
-
sparklineStrokeColor: {
|
|
1133
|
-
default: '> themes.defaultSparklineStrokeColor',
|
|
1134
|
-
description: 'Specify the color for the sparkline stroke. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
1135
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1136
|
-
type: 'string'
|
|
1137
|
-
},
|
|
1138
|
-
sparklineValues: {
|
|
1139
|
-
default: '> primary|seriesByPrioritizedTypes("number", "string", "time")',
|
|
1140
|
-
description: 'List of numerical values to display on a sparkline. If the values are string type, the sparkline will not be shown.',
|
|
1141
|
-
type: 'array',
|
|
1142
|
-
items: {
|
|
1143
|
-
type: ['string', 'number']
|
|
1144
|
-
}
|
|
1145
|
-
},
|
|
1146
|
-
trendColor: {
|
|
1147
|
-
default: '> themes.defaultFontColor',
|
|
1148
|
-
description: 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
1149
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1150
|
-
type: 'string'
|
|
1151
|
-
},
|
|
1152
|
-
trendDisplay: {
|
|
1153
|
-
default: 'absolute',
|
|
1154
|
-
description: 'Specify how to display the trend value.',
|
|
1155
|
-
pattern: (0, schemaUtils_1.getPattern)(['percent', 'absolute', 'off']),
|
|
1156
|
-
type: 'string'
|
|
1157
|
-
},
|
|
1158
|
-
trendFontSize: {
|
|
1159
|
-
description: 'Specify the font size (px) for the trend value. By default the trend value font size is calculated dynamically based on the available space.',
|
|
1160
|
-
type: 'number'
|
|
1161
|
-
},
|
|
1162
|
-
trendValue: {
|
|
1163
|
-
default: '> sparklineValues|delta(-2)',
|
|
1164
|
-
description: 'The trend value to display in the visualization.',
|
|
1165
|
-
type: 'number'
|
|
1166
|
-
},
|
|
1167
|
-
trellisBackgroundColor: {
|
|
1168
|
-
default: '> themes.defaultBackgroundColor',
|
|
1169
|
-
description: 'Specify the color used for the trellis container background by using a hexadecimal code. For example, #0000FF.',
|
|
1170
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
1171
|
-
type: 'string'
|
|
1172
|
-
},
|
|
1173
|
-
trellisColumns: {
|
|
1174
|
-
description: 'Specify the number of visualizations to display in a given row of the trellis container. The remaining visualizations will wrap accordingly. If nothing is specified, it will be auto-set based on the trellisMinColumnWidth. The minimum value is 1.',
|
|
1175
|
-
type: 'number',
|
|
1176
|
-
minimum: 1
|
|
1177
|
-
},
|
|
1178
|
-
trellisMinColumnWidth: {
|
|
1179
|
-
default: 100,
|
|
1180
|
-
minimum: 1,
|
|
1181
|
-
description: 'Specify the minimum width, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1.',
|
|
1182
|
-
type: 'number'
|
|
1183
|
-
},
|
|
1184
|
-
trellisPageCount: {
|
|
1185
|
-
default: 20,
|
|
1186
|
-
minimum: 1,
|
|
1187
|
-
description: 'Specify the maximum number of visualizations to display in a single page in the trellis container. The remaining visualizations will paginate accordingly. The minimum value is 1.',
|
|
1188
|
-
type: 'number'
|
|
1189
|
-
},
|
|
1190
|
-
trellisRowHeight: {
|
|
1191
|
-
default: 70,
|
|
1192
|
-
minimum: 1,
|
|
1193
|
-
description: 'Specify the height, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1.',
|
|
1194
|
-
type: 'number'
|
|
1195
|
-
},
|
|
1196
|
-
trellisSplitBy: {
|
|
1197
|
-
description: 'Specify the field name of the column with categories used, or “aggregations”, to split the data into individual visualizations for trellis display, if applicable. If a SPL `timechart` command is used, this may default to the SPL `by` clause field. If a SPL `chart` command is used, this may default to the first string field.',
|
|
1198
|
-
type: 'string'
|
|
1199
|
-
},
|
|
1200
|
-
underLabel: {
|
|
1201
|
-
description: 'Specify the text that appears below the major value.',
|
|
1202
|
-
type: 'string'
|
|
1203
|
-
},
|
|
1204
|
-
underLabelFontSize: {
|
|
1205
|
-
default: 12,
|
|
1206
|
-
description: 'Specify the font size (px) for the under label text.',
|
|
1207
|
-
type: 'number'
|
|
1208
|
-
},
|
|
1209
|
-
unit: {
|
|
1210
|
-
description: 'Specify text to show next to the major value.',
|
|
1211
|
-
type: 'string'
|
|
1212
|
-
},
|
|
1213
|
-
unitPosition: {
|
|
1214
|
-
default: 'after',
|
|
1215
|
-
description: 'Specify whether the unit text should appear before or after the major value.',
|
|
1216
|
-
pattern: (0, schemaUtils_1.getPattern)(['before', 'after']),
|
|
1217
|
-
type: 'string'
|
|
1218
|
-
}
|
|
1219
|
-
};
|
|
1220
925
|
var basePresetContext = {
|
|
1221
926
|
majorColorEditorConfig: undefined,
|
|
1222
927
|
trendColorEditorConfig: undefined,
|
|
@@ -1437,7 +1142,7 @@ var editorConfig = [{
|
|
|
1437
1142
|
},
|
|
1438
1143
|
isDisabled: function isDisabled(_ref) {
|
|
1439
1144
|
var options = _ref.options;
|
|
1440
|
-
return options.splitByLayout ===
|
|
1145
|
+
return options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
1441
1146
|
}
|
|
1442
1147
|
}]]
|
|
1443
1148
|
}, {
|
|
@@ -1596,7 +1301,7 @@ var config = {
|
|
|
1596
1301
|
dataContract: dataContract,
|
|
1597
1302
|
size: size,
|
|
1598
1303
|
defaultContext: singleValueContext_1.defaultContext,
|
|
1599
|
-
optionsSchema:
|
|
1304
|
+
optionsSchema: visualization_schemas_1.singleValueOptionsSchema,
|
|
1600
1305
|
editorConfig: editorConfig,
|
|
1601
1306
|
events: {
|
|
1602
1307
|
'value.click': {
|
|
@@ -1611,7 +1316,7 @@ var config = {
|
|
|
1611
1316
|
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
1612
1317
|
|
|
1613
1318
|
/***/ }),
|
|
1614
|
-
/*
|
|
1319
|
+
/* 67 */
|
|
1615
1320
|
/***/ (function(module, exports) {
|
|
1616
1321
|
|
|
1617
1322
|
module.exports = require("@splunk/visualization-themes/variables");
|