@splunk/visualizations 26.4.1 → 27.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area.config.js +1399 -1590
- package/Area.config.js.map +7 -1
- package/Area.js +3750 -4822
- package/Area.js.map +7 -1
- package/Bar.config.js +1423 -1566
- package/Bar.config.js.map +7 -1
- package/Bar.js +3856 -4884
- package/Bar.js.map +7 -1
- package/Bubble.config.js +1009 -1200
- package/Bubble.config.js.map +7 -1
- package/Bubble.js +2768 -4491
- package/Bubble.js.map +7 -1
- package/ChoroplethSvg.config.js +282 -582
- package/ChoroplethSvg.config.js.map +7 -1
- package/ChoroplethSvg.js +2032 -3808
- package/ChoroplethSvg.js.map +7 -1
- package/Column.config.js +1390 -1534
- package/Column.config.js.map +7 -1
- package/Column.js +3849 -4906
- package/Column.js.map +7 -1
- package/Ellipse.config.js +443 -774
- package/Ellipse.config.js.map +7 -1
- package/Ellipse.js +1667 -3327
- package/Ellipse.js.map +7 -1
- package/Events.config.js +207 -492
- package/Events.config.js.map +7 -1
- package/Events.js +2643 -4647
- package/Events.js.map +7 -1
- package/FillerGauge.config.js +420 -775
- package/FillerGauge.config.js.map +7 -1
- package/FillerGauge.js +2164 -4575
- package/FillerGauge.js.map +7 -1
- package/Image.config.js +144 -411
- package/Image.config.js.map +7 -1
- package/Image.js +1423 -3046
- package/Image.js.map +7 -1
- package/Line.config.js +1421 -1616
- package/Line.config.js.map +7 -1
- package/Line.js +3790 -4901
- package/Line.js.map +7 -1
- package/LinkGraph.config.js +390 -632
- package/LinkGraph.config.js.map +7 -1
- package/LinkGraph.js +5272 -6185
- package/LinkGraph.js.map +7 -1
- package/MIGRATION.md +6 -0
- package/Map.config.js +501 -801
- package/Map.config.js.map +7 -1
- package/Map.js +3382 -5659
- package/Map.js.map +7 -1
- package/Markdown.config.js +232 -528
- package/Markdown.config.js.map +7 -1
- package/Markdown.js +1671 -3212
- package/Markdown.js.map +7 -1
- package/MarkerGauge.config.js +308 -613
- package/MarkerGauge.config.js.map +7 -1
- package/MarkerGauge.js +2215 -4531
- package/MarkerGauge.js.map +7 -1
- package/ParallelCoordinates.config.js +282 -581
- package/ParallelCoordinates.config.js.map +7 -1
- package/ParallelCoordinates.js +2057 -4718
- package/ParallelCoordinates.js.map +7 -1
- package/Pie.config.js +278 -547
- package/Pie.config.js.map +7 -1
- package/Pie.js +2107 -3984
- package/Pie.js.map +7 -1
- package/Punchcard.config.js +291 -578
- package/Punchcard.config.js.map +7 -1
- package/Punchcard.js +2734 -5037
- package/Punchcard.js.map +7 -1
- package/Rectangle.config.js +455 -770
- package/Rectangle.config.js.map +7 -1
- package/Rectangle.js +1664 -3258
- package/Rectangle.js.map +7 -1
- package/Sankey.config.js +291 -626
- package/Sankey.config.js.map +7 -1
- package/Sankey.js +2766 -4908
- package/Sankey.js.map +7 -1
- package/Scatter.config.js +988 -1180
- package/Scatter.config.js.map +7 -1
- package/Scatter.js +2801 -4506
- package/Scatter.js.map +7 -1
- package/SingleValue.config.js +794 -1250
- package/SingleValue.config.js.map +7 -1
- package/SingleValue.js +4185 -7327
- package/SingleValue.js.map +7 -1
- package/SingleValueBasic.js +382 -1527
- package/SingleValueBasic.js.map +7 -1
- package/SingleValueIcon.config.js +757 -1207
- package/SingleValueIcon.config.js.map +7 -1
- package/SingleValueIcon.js +3427 -6293
- package/SingleValueIcon.js.map +7 -1
- package/SingleValueRadial.config.js +686 -1121
- package/SingleValueRadial.config.js.map +7 -1
- package/SingleValueRadial.js +3923 -6994
- package/SingleValueRadial.js.map +7 -1
- package/SparkLine.js +439 -746
- package/SparkLine.js.map +7 -1
- package/TRELLIS.md +16 -15
- package/Table.config.js +565 -879
- package/Table.config.js.map +7 -1
- package/Table.js +3260 -5334
- package/Table.js.map +7 -1
- package/common/Charting.js +617 -1498
- package/common/Charting.js.map +7 -1
- package/common/ChartingApi.js +46 -170
- package/common/ChartingApi.js.map +7 -1
- package/common/DocExampleWithVizSandbox.js +270 -473
- package/common/DocExampleWithVizSandbox.js.map +7 -1
- package/common/EventsDoc.js +172 -464
- package/common/EventsDoc.js.map +7 -1
- package/common/GaugeMajorTicks.js +249 -347
- package/common/GaugeMajorTicks.js.map +7 -1
- package/common/GaugeValueMarker.js +201 -311
- package/common/GaugeValueMarker.js.map +7 -1
- package/common/OptionsDoc.js +351 -911
- package/common/OptionsDoc.js.map +7 -1
- package/common/OverviewDoc.js +435 -769
- package/common/OverviewDoc.js.map +7 -1
- package/common/SplunkVisualization.js +116 -259
- package/common/SplunkVisualization.js.map +7 -1
- package/common/SplunkVisualizationApi.js +40 -156
- package/common/SplunkVisualizationApi.js.map +7 -1
- package/common/ThemesDoc.js +271 -420
- package/common/ThemesDoc.js.map +7 -1
- package/common/chartingUtils.js +140 -312
- package/common/chartingUtils.js.map +7 -1
- package/common/docUtils.js +148 -266
- package/common/docUtils.js.map +7 -1
- package/common/gaugeUtils.js +280 -808
- package/common/gaugeUtils.js.map +7 -1
- package/common/shapeUtils.js +106 -211
- package/common/shapeUtils.js.map +7 -1
- package/common/utils/configUtils.js +126 -252
- package/common/utils/configUtils.js.map +7 -1
- package/common/utils/dataUtils.js +217 -812
- package/common/utils/dataUtils.js.map +7 -1
- package/common/utils/featureFlagUtils.js +53 -133
- package/common/utils/featureFlagUtils.js.map +7 -1
- package/common/utils/hocUtils.js +32 -122
- package/common/utils/hocUtils.js.map +7 -1
- package/common/utils/mapUtils.js +502 -1337
- package/common/utils/mapUtils.js.map +7 -1
- package/common/utils/singleValueUtils.js +466 -1013
- package/common/utils/singleValueUtils.js.map +7 -1
- package/common/utils/testHelper.js +92 -146
- package/common/utils/testHelper.js.map +7 -1
- package/common/utils/trellisUtils.js +277 -489
- package/common/utils/trellisUtils.js.map +7 -1
- package/common/utils/urlUtils.js +28 -112
- package/common/utils/urlUtils.js.map +7 -1
- package/common/withDashboardViz.js +1191 -2431
- package/common/withDashboardViz.js.map +7 -1
- package/package.json +53 -45
package/MarkerGauge.config.js
CHANGED
|
@@ -1,428 +1,220 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/******/ };
|
|
24
|
-
/******/
|
|
25
|
-
/******/ // Execute the module function
|
|
26
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
27
|
-
/******/
|
|
28
|
-
/******/ // Flag the module as loaded
|
|
29
|
-
/******/ module.l = true;
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // Return the exports of the module
|
|
32
|
-
/******/ return module.exports;
|
|
33
|
-
/******/ }
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
37
|
-
/******/ __webpack_require__.m = modules;
|
|
38
|
-
/******/
|
|
39
|
-
/******/ // expose the module cache
|
|
40
|
-
/******/ __webpack_require__.c = installedModules;
|
|
41
|
-
/******/
|
|
42
|
-
/******/ // define getter function for harmony exports
|
|
43
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
44
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
45
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
46
|
-
/******/ }
|
|
47
|
-
/******/ };
|
|
48
|
-
/******/
|
|
49
|
-
/******/ // define __esModule on exports
|
|
50
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
51
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
52
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
53
|
-
/******/ }
|
|
54
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
55
|
-
/******/ };
|
|
56
|
-
/******/
|
|
57
|
-
/******/ // create a fake namespace object
|
|
58
|
-
/******/ // mode & 1: value is a module id, require it
|
|
59
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
60
|
-
/******/ // mode & 4: return value when already ns object
|
|
61
|
-
/******/ // mode & 8|1: behave like require
|
|
62
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
63
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
64
|
-
/******/ if(mode & 8) return value;
|
|
65
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
66
|
-
/******/ var ns = Object.create(null);
|
|
67
|
-
/******/ __webpack_require__.r(ns);
|
|
68
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
69
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
70
|
-
/******/ return ns;
|
|
71
|
-
/******/ };
|
|
72
|
-
/******/
|
|
73
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
74
|
-
/******/ __webpack_require__.n = function(module) {
|
|
75
|
-
/******/ var getter = module && module.__esModule ?
|
|
76
|
-
/******/ function getDefault() { return module['default']; } :
|
|
77
|
-
/******/ function getModuleExports() { return module; };
|
|
78
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
79
|
-
/******/ return getter;
|
|
80
|
-
/******/ };
|
|
81
|
-
/******/
|
|
82
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
83
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
84
|
-
/******/
|
|
85
|
-
/******/ // __webpack_public_path__
|
|
86
|
-
/******/ __webpack_require__.p = "";
|
|
87
|
-
/******/
|
|
88
|
-
/******/
|
|
89
|
-
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s = 56);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ({
|
|
94
|
-
|
|
95
|
-
/***/ 0:
|
|
96
|
-
/***/ (function(module, exports) {
|
|
97
|
-
|
|
98
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
99
|
-
|
|
100
|
-
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ 1:
|
|
103
|
-
/***/ (function(module, exports) {
|
|
104
|
-
|
|
105
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
106
|
-
|
|
107
|
-
/***/ }),
|
|
108
|
-
|
|
109
|
-
/***/ 10:
|
|
110
|
-
/***/ (function(module, exports) {
|
|
111
|
-
|
|
112
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
113
|
-
|
|
114
|
-
/***/ }),
|
|
115
|
-
|
|
116
|
-
/***/ 12:
|
|
117
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
118
|
-
|
|
119
|
-
"use strict";
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Object.defineProperty(exports, "__esModule", {
|
|
123
|
-
value: true
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
var i18n_1 = __webpack_require__(0);
|
|
127
|
-
|
|
128
|
-
var background = function background(_ref) {
|
|
129
|
-
var label = _ref.label,
|
|
130
|
-
themes = _ref.themes,
|
|
131
|
-
labelPosition = _ref.labelPosition;
|
|
132
|
-
return [{
|
|
133
|
-
label: (0, i18n_1._)(label || 'Background color'),
|
|
134
|
-
option: 'backgroundColor',
|
|
135
|
-
editor: 'editor.color',
|
|
136
|
-
editorProps: {
|
|
137
|
-
labelPosition: labelPosition || 'top',
|
|
138
|
-
themes: themes
|
|
1
|
+
/* Copyright © 2020 Splunk Inc.
|
|
2
|
+
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
3
|
+
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defProps = Object.defineProperties;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
12
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
|
+
var __spreadValues = (a, b) => {
|
|
16
|
+
for (var prop in b || (b = {}))
|
|
17
|
+
if (__hasOwnProp.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
if (__getOwnPropSymbols)
|
|
20
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
21
|
+
if (__propIsEnum.call(b, prop))
|
|
22
|
+
__defNormalProp(a, prop, b[prop]);
|
|
139
23
|
}
|
|
140
|
-
|
|
24
|
+
return a;
|
|
141
25
|
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
26
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __export = (target, all) => {
|
|
28
|
+
for (var name in all)
|
|
29
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
30
|
+
};
|
|
31
|
+
var __copyProps = (to, from, except, desc) => {
|
|
32
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
33
|
+
for (let key of __getOwnPropNames(from))
|
|
34
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
35
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
36
|
+
}
|
|
37
|
+
return to;
|
|
38
|
+
};
|
|
39
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
40
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
41
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
42
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
43
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
44
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
45
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
46
|
+
mod
|
|
47
|
+
));
|
|
48
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
49
|
+
|
|
50
|
+
// src/MarkerGauge/config.ts
|
|
51
|
+
var config_exports = {};
|
|
52
|
+
__export(config_exports, {
|
|
53
|
+
default: () => config_default
|
|
164
54
|
});
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
55
|
+
module.exports = __toCommonJS(config_exports);
|
|
168
56
|
|
|
57
|
+
// esm-externals:@splunk/ui-utils/i18n
|
|
58
|
+
var i18n_exports = {};
|
|
59
|
+
__export(i18n_exports, {
|
|
60
|
+
default: () => i18n_default
|
|
61
|
+
});
|
|
62
|
+
var defaultImport = __toESM(require("@splunk/ui-utils/i18n"));
|
|
63
|
+
__reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
|
|
64
|
+
var i18n_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
65
|
+
|
|
66
|
+
// esm-externals:@splunk/visualization-icons
|
|
67
|
+
var visualization_icons_exports = {};
|
|
68
|
+
__export(visualization_icons_exports, {
|
|
69
|
+
default: () => visualization_icons_default
|
|
70
|
+
});
|
|
71
|
+
var defaultImport2 = __toESM(require("@splunk/visualization-icons"));
|
|
72
|
+
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
73
|
+
var visualization_icons_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
74
|
+
|
|
75
|
+
// esm-externals:@splunk/visualization-icons/placeholders
|
|
76
|
+
var placeholders_exports = {};
|
|
77
|
+
__export(placeholders_exports, {
|
|
78
|
+
default: () => placeholders_default
|
|
79
|
+
});
|
|
80
|
+
var defaultImport3 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
81
|
+
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
82
|
+
var placeholders_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
83
|
+
|
|
84
|
+
// esm-externals:@splunk/visualization-schemas
|
|
85
|
+
var visualization_schemas_exports = {};
|
|
86
|
+
__export(visualization_schemas_exports, {
|
|
87
|
+
default: () => visualization_schemas_default
|
|
88
|
+
});
|
|
89
|
+
var defaultImport4 = __toESM(require("@splunk/visualization-schemas"));
|
|
90
|
+
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
91
|
+
var visualization_schemas_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
92
|
+
|
|
93
|
+
// esm-externals:@splunk/themes/variables
|
|
94
|
+
var variables_exports = {};
|
|
95
|
+
__export(variables_exports, {
|
|
96
|
+
default: () => variables_default
|
|
97
|
+
});
|
|
98
|
+
var defaultImport5 = __toESM(require("@splunk/themes/variables"));
|
|
99
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
100
|
+
var variables_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
101
|
+
|
|
102
|
+
// esm-externals:@splunk/themes/pick
|
|
103
|
+
var pick_exports = {};
|
|
104
|
+
__export(pick_exports, {
|
|
105
|
+
default: () => pick_default
|
|
106
|
+
});
|
|
107
|
+
var defaultImport6 = __toESM(require("@splunk/themes/pick"));
|
|
108
|
+
__reExport(pick_exports, require("@splunk/themes/pick"));
|
|
109
|
+
var pick_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
169
110
|
|
|
170
|
-
|
|
111
|
+
// src/common/editorConfig/Gauge.ts
|
|
112
|
+
var gauge = {
|
|
113
|
+
label: (0, i18n_exports._)("Data display"),
|
|
114
|
+
layout: [
|
|
115
|
+
[
|
|
116
|
+
{
|
|
117
|
+
label: (0, i18n_exports._)("Value display"),
|
|
118
|
+
option: "valueDisplay",
|
|
119
|
+
editor: "editor.radioBar",
|
|
120
|
+
editorProps: {
|
|
121
|
+
values: [
|
|
122
|
+
{ label: (0, i18n_exports._)("Number"), value: "number" },
|
|
123
|
+
{ label: (0, i18n_exports._)("Percentage"), value: "percentage" },
|
|
124
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
[
|
|
130
|
+
{
|
|
131
|
+
label: (0, i18n_exports._)("Label display"),
|
|
132
|
+
option: "labelDisplay",
|
|
133
|
+
editor: "editor.radioBar",
|
|
134
|
+
editorProps: {
|
|
135
|
+
values: [
|
|
136
|
+
{ label: (0, i18n_exports._)("Numbers"), value: "number" },
|
|
137
|
+
{ label: (0, i18n_exports._)("Percentages"), value: "percentage" },
|
|
138
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
[
|
|
144
|
+
{
|
|
145
|
+
label: (0, i18n_exports._)("Orientation"),
|
|
146
|
+
option: "orientation",
|
|
147
|
+
editor: "editor.radioBar",
|
|
148
|
+
editorProps: {
|
|
149
|
+
values: [
|
|
150
|
+
{ label: (0, i18n_exports._)("Vertical"), value: "vertical" },
|
|
151
|
+
{ label: (0, i18n_exports._)("Horizontal"), value: "horizontal" }
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
]
|
|
157
|
+
};
|
|
158
|
+
var Gauge_default = gauge;
|
|
171
159
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
160
|
+
// esm-externals:lodash
|
|
161
|
+
var lodash_exports = {};
|
|
162
|
+
__export(lodash_exports, {
|
|
163
|
+
default: () => lodash_default
|
|
164
|
+
});
|
|
165
|
+
var defaultImport7 = __toESM(require("lodash"));
|
|
166
|
+
__reExport(lodash_exports, require("lodash"));
|
|
167
|
+
var lodash_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
|
|
168
|
+
|
|
169
|
+
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
170
|
+
var configUtils_exports = {};
|
|
171
|
+
__export(configUtils_exports, {
|
|
172
|
+
default: () => configUtils_default
|
|
177
173
|
});
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
* @param vizConfig a Visualization Config
|
|
182
|
-
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
183
|
-
* and containing `open: false` for all editor panels in editorConfig
|
|
184
|
-
*/
|
|
174
|
+
var defaultImport8 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
175
|
+
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
176
|
+
var configUtils_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
|
|
185
177
|
|
|
178
|
+
// src/common/utils/configUtils.ts
|
|
186
179
|
function enhanceConfig(vizConfig) {
|
|
187
|
-
|
|
188
|
-
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
189
|
-
|
|
190
|
-
open:
|
|
191
|
-
}
|
|
192
|
-
|
|
180
|
+
const enhancedConfig = __spreadValues({}, vizConfig);
|
|
181
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
182
|
+
(config2) => {
|
|
183
|
+
return __spreadProps(__spreadValues({}, config2), { open: config2.open || false });
|
|
184
|
+
}
|
|
185
|
+
);
|
|
193
186
|
return enhancedConfig;
|
|
194
187
|
}
|
|
195
188
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
207
|
-
return Object.assign(Object.assign({}, config), {
|
|
208
|
-
open: true
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
return editorPanelUncollapsedConfig;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
215
|
-
|
|
216
|
-
function isDynamicOption(option) {
|
|
217
|
-
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
221
|
-
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
225
|
-
* if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
|
|
226
|
-
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
227
|
-
* the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
|
|
228
|
-
*
|
|
229
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
function hasCompatibleContexts(vizContext, presetContext) {
|
|
233
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
234
|
-
return presetContextKeys.every(function (contextKey) {
|
|
235
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
244
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
245
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
246
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
251
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
252
|
-
*
|
|
253
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
254
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
255
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
256
|
-
*/
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
260
|
-
return presets.find(function (preset) {
|
|
261
|
-
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
262
|
-
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
263
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
264
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
265
|
-
// if not, then the preset is invalid in config.ts
|
|
266
|
-
|
|
267
|
-
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
268
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
exports.getInitialPreset = getInitialPreset;
|
|
273
|
-
/**
|
|
274
|
-
* generates number precision values for a Select editor
|
|
275
|
-
*
|
|
276
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
277
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
278
|
-
*/
|
|
279
|
-
|
|
280
|
-
function generatePrecisionValues(numPrecisionValues) {
|
|
281
|
-
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
282
|
-
return {
|
|
283
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
284
|
-
value: i
|
|
285
|
-
};
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
exports.generatePrecisionValues = generatePrecisionValues;
|
|
290
|
-
/**
|
|
291
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
292
|
-
*
|
|
293
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
294
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
295
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
296
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
297
|
-
*/
|
|
298
|
-
|
|
299
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
300
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
301
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
exports.insertLayout = insertLayout;
|
|
308
|
-
|
|
309
|
-
/***/ }),
|
|
310
|
-
|
|
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',
|
|
189
|
+
// src/common/editorConfig/BackgroundColor.ts
|
|
190
|
+
var background = ({
|
|
191
|
+
label,
|
|
192
|
+
themes: themes2,
|
|
193
|
+
labelPosition
|
|
194
|
+
}) => [
|
|
195
|
+
{
|
|
196
|
+
label: (0, i18n_exports._)(label || "Background color"),
|
|
197
|
+
option: "backgroundColor",
|
|
198
|
+
editor: "editor.color",
|
|
345
199
|
editorProps: {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
value: 'number'
|
|
349
|
-
}, {
|
|
350
|
-
label: (0, i18n_1._)('Percentages'),
|
|
351
|
-
value: 'percentage'
|
|
352
|
-
}, {
|
|
353
|
-
label: (0, i18n_1._)('Off'),
|
|
354
|
-
value: 'off'
|
|
355
|
-
}]
|
|
200
|
+
labelPosition: labelPosition || "top",
|
|
201
|
+
themes: themes2
|
|
356
202
|
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
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:
|
|
377
|
-
/***/ (function(module, exports) {
|
|
378
|
-
|
|
379
|
-
module.exports = require("lodash");
|
|
380
|
-
|
|
381
|
-
/***/ }),
|
|
382
|
-
|
|
383
|
-
/***/ 56:
|
|
384
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
385
|
-
|
|
386
|
-
"use strict";
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
Object.defineProperty(exports, "__esModule", {
|
|
390
|
-
value: true
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
var i18n_1 = __webpack_require__(0);
|
|
394
|
-
|
|
395
|
-
var GaugeMarker_1 = __webpack_require__(57);
|
|
396
|
-
|
|
397
|
-
var placeholders_1 = __webpack_require__(10);
|
|
398
|
-
|
|
399
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
400
|
-
|
|
401
|
-
var variables_1 = __webpack_require__(9);
|
|
402
|
-
|
|
403
|
-
var pick_1 = __webpack_require__(8);
|
|
404
|
-
|
|
405
|
-
var Gauge_1 = __webpack_require__(36);
|
|
406
|
-
|
|
407
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
408
|
-
|
|
409
|
-
var VizCategory_1 = __webpack_require__(7);
|
|
410
|
-
|
|
411
|
-
var configUtils_1 = __webpack_require__(3);
|
|
412
|
-
|
|
413
|
-
var BackgroundColor_1 = __webpack_require__(12);
|
|
203
|
+
}
|
|
204
|
+
];
|
|
205
|
+
var BackgroundColor_default = background;
|
|
414
206
|
|
|
207
|
+
// src/MarkerGauge/config.ts
|
|
415
208
|
var dataContract = {
|
|
416
|
-
requiredDataSources: [
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
209
|
+
requiredDataSources: [
|
|
210
|
+
{
|
|
211
|
+
name: "primary",
|
|
212
|
+
description: "DataSource that powers the visualization"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
420
215
|
optionalDataSources: [],
|
|
421
216
|
initialRequestParams: {
|
|
422
|
-
primary: {
|
|
423
|
-
offset: 0,
|
|
424
|
-
count: 10000
|
|
425
|
-
}
|
|
217
|
+
primary: { offset: 0, count: 1e4 }
|
|
426
218
|
}
|
|
427
219
|
};
|
|
428
220
|
var size = {
|
|
@@ -431,222 +223,125 @@ var size = {
|
|
|
431
223
|
};
|
|
432
224
|
var defaultContext = {};
|
|
433
225
|
var themes = {
|
|
434
|
-
defaultFillColor:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
light: variables_1.default.neutral100(props),
|
|
459
|
-
dark: variables_1.default.contentColorMuted(props) // was #D7DAE0; contentColor
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
})(props);
|
|
463
|
-
},
|
|
464
|
-
majorTickStrokeColor: function majorTickStrokeColor(props) {
|
|
465
|
-
return (0, pick_1.default)({
|
|
466
|
-
enterprise: {
|
|
467
|
-
light: variables_1.default.textGray(props),
|
|
468
|
-
dark: variables_1.default.contentColorMuted(props)
|
|
469
|
-
},
|
|
470
|
-
prisma: variables_1.default.contentColorMuted(props)
|
|
471
|
-
})(props);
|
|
472
|
-
},
|
|
473
|
-
valueMarkerFillColor: function valueMarkerFillColor(props) {
|
|
474
|
-
return (0, pick_1.default)({
|
|
475
|
-
enterprise: variables_1.default.textColor(props),
|
|
476
|
-
prisma: {
|
|
477
|
-
dark: variables_1.default.white(props),
|
|
478
|
-
light: variables_1.default.black(props)
|
|
479
|
-
}
|
|
480
|
-
})(props);
|
|
481
|
-
},
|
|
482
|
-
valueMarkerLabelFillColor: function valueMarkerLabelFillColor(props) {
|
|
483
|
-
return (0, pick_1.default)({
|
|
484
|
-
enterprise: {
|
|
485
|
-
light: variables_1.default.gray96(props),
|
|
486
|
-
dark: variables_1.default.black(props)
|
|
487
|
-
},
|
|
488
|
-
prisma: variables_1.default.black(props)
|
|
489
|
-
})(props);
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
var editorConfig = [{
|
|
493
|
-
label: (0, i18n_1._)('Data configurations'),
|
|
494
|
-
layout: [[{
|
|
495
|
-
label: (0, i18n_1._)('Value'),
|
|
496
|
-
editor: 'editor.columnSelector',
|
|
497
|
-
option: 'value',
|
|
498
|
-
context: 'defaultContext',
|
|
499
|
-
editorProps: {
|
|
500
|
-
dataSourceKey: 'primary',
|
|
501
|
-
prepareValue: function prepareValue(definition) {
|
|
502
|
-
var value = definition.options.value;
|
|
503
|
-
return {
|
|
504
|
-
context: {},
|
|
505
|
-
options: {
|
|
506
|
-
value: "".concat(value, " | lastPoint()")
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
}
|
|
226
|
+
defaultFillColor: (props) => pick_default({
|
|
227
|
+
enterprise: variables_default.backgroundColorHover(props),
|
|
228
|
+
prisma: variables_default.neutral100(props)
|
|
229
|
+
})(props),
|
|
230
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
231
|
+
enterprise: {
|
|
232
|
+
dark: variables_default.black(props),
|
|
233
|
+
light: variables_default.backgroundColor(props)
|
|
234
|
+
},
|
|
235
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
236
|
+
})(props),
|
|
237
|
+
majorTickFillColor: (props) => pick_default({
|
|
238
|
+
enterprise: {
|
|
239
|
+
light: variables_default.gray30(props),
|
|
240
|
+
// was '#33343B'
|
|
241
|
+
dark: variables_default.textGray(props)
|
|
242
|
+
// was #D7DAE0
|
|
243
|
+
},
|
|
244
|
+
prisma: {
|
|
245
|
+
// TODO: missed colors :(
|
|
246
|
+
light: variables_default.neutral100(props),
|
|
247
|
+
// TBD
|
|
248
|
+
dark: variables_default.contentColorMuted(props)
|
|
249
|
+
// was #D7DAE0; contentColor
|
|
510
250
|
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
251
|
+
})(props),
|
|
252
|
+
majorTickStrokeColor: (props) => pick_default({
|
|
253
|
+
enterprise: {
|
|
254
|
+
light: variables_default.textGray(props),
|
|
255
|
+
dark: variables_default.contentColorMuted(props)
|
|
256
|
+
},
|
|
257
|
+
prisma: variables_default.contentColorMuted(props)
|
|
258
|
+
})(props),
|
|
259
|
+
valueMarkerFillColor: (props) => pick_default({
|
|
260
|
+
enterprise: variables_default.textColor(props),
|
|
261
|
+
prisma: {
|
|
262
|
+
dark: variables_default.white(props),
|
|
263
|
+
light: variables_default.black(props)
|
|
522
264
|
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
265
|
+
})(props),
|
|
266
|
+
valueMarkerLabelFillColor: (props) => pick_default({
|
|
267
|
+
enterprise: {
|
|
268
|
+
light: variables_default.gray96(props),
|
|
269
|
+
dark: variables_default.black(props)
|
|
270
|
+
},
|
|
271
|
+
prisma: variables_default.black(props)
|
|
272
|
+
})(props)
|
|
273
|
+
};
|
|
274
|
+
var editorConfig = [
|
|
275
|
+
{
|
|
276
|
+
label: (0, i18n_exports._)("Data configurations"),
|
|
277
|
+
layout: [
|
|
278
|
+
[
|
|
279
|
+
{
|
|
280
|
+
label: (0, i18n_exports._)("Value"),
|
|
281
|
+
editor: "editor.columnSelector",
|
|
282
|
+
option: "value",
|
|
283
|
+
context: "defaultContext",
|
|
284
|
+
editorProps: {
|
|
285
|
+
dataSourceKey: "primary",
|
|
286
|
+
prepareValue: (definition) => {
|
|
287
|
+
const {
|
|
288
|
+
options: { value }
|
|
289
|
+
} = definition;
|
|
290
|
+
return {
|
|
291
|
+
context: {},
|
|
292
|
+
options: {
|
|
293
|
+
value: `${value} | lastPoint()`
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
Gauge_default,
|
|
303
|
+
{
|
|
304
|
+
label: (0, i18n_exports._)("Color and style"),
|
|
305
|
+
layout: [
|
|
306
|
+
[
|
|
307
|
+
{
|
|
308
|
+
label: (0, i18n_exports._)("Gauge ranges"),
|
|
309
|
+
option: "gaugeRanges",
|
|
310
|
+
editor: "editor.threshold",
|
|
311
|
+
editorProps: {
|
|
312
|
+
openRanges: false,
|
|
313
|
+
// Use closed ranges
|
|
314
|
+
isTogglable: false
|
|
315
|
+
// Can not disable thresholds
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
BackgroundColor_default({ themes, labelPosition: "top" })
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
];
|
|
532
323
|
var config = {
|
|
533
324
|
/**
|
|
534
325
|
* unique viz key
|
|
535
326
|
*/
|
|
536
|
-
key:
|
|
537
|
-
|
|
327
|
+
key: "splunk.markergauge",
|
|
538
328
|
/**
|
|
539
329
|
* viz name
|
|
540
330
|
*/
|
|
541
|
-
name: (0,
|
|
542
|
-
category:
|
|
543
|
-
|
|
331
|
+
name: (0, i18n_exports._)("Marker gauge"),
|
|
332
|
+
category: "Gauge" /* GAUGE */,
|
|
544
333
|
/**
|
|
545
334
|
* viz icon
|
|
546
335
|
*/
|
|
547
|
-
icon:
|
|
548
|
-
placeholderIcon:
|
|
549
|
-
dataContract
|
|
550
|
-
size
|
|
551
|
-
defaultContext
|
|
552
|
-
optionsSchema:
|
|
553
|
-
editorConfig
|
|
554
|
-
supports: [
|
|
555
|
-
themes
|
|
336
|
+
icon: visualization_icons_exports.MarkerGauge,
|
|
337
|
+
placeholderIcon: placeholders_exports.MarkerGauge,
|
|
338
|
+
dataContract,
|
|
339
|
+
size,
|
|
340
|
+
defaultContext,
|
|
341
|
+
optionsSchema: visualization_schemas_exports.markerGaugeOptionsSchema,
|
|
342
|
+
editorConfig,
|
|
343
|
+
supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "placeholder" /* PLACEHOLDER */],
|
|
344
|
+
themes
|
|
556
345
|
};
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
/***/ }),
|
|
560
|
-
|
|
561
|
-
/***/ 57:
|
|
562
|
-
/***/ (function(module, exports) {
|
|
563
|
-
|
|
564
|
-
module.exports = require("@splunk/react-icons/enterprise/GaugeMarker");
|
|
565
|
-
|
|
566
|
-
/***/ }),
|
|
567
|
-
|
|
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
|
-
*/
|
|
600
|
-
|
|
601
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
602
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
603
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
604
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
605
|
-
|
|
606
|
-
/***/ }),
|
|
607
|
-
|
|
608
|
-
/***/ 7:
|
|
609
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
610
|
-
|
|
611
|
-
"use strict";
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
Object.defineProperty(exports, "__esModule", {
|
|
615
|
-
value: true
|
|
616
|
-
});
|
|
617
|
-
exports.VizCategory = void 0;
|
|
618
|
-
var VizCategory;
|
|
619
|
-
|
|
620
|
-
(function (VizCategory) {
|
|
621
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
622
|
-
VizCategory["TRENDS"] = "Trends";
|
|
623
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
624
|
-
VizCategory["TABLE"] = "Table";
|
|
625
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
626
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
627
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
628
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
629
|
-
VizCategory["MISC"] = "misc";
|
|
630
|
-
VizCategory["FLOW"] = "Flow";
|
|
631
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
632
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
633
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
634
|
-
|
|
635
|
-
/***/ }),
|
|
636
|
-
|
|
637
|
-
/***/ 8:
|
|
638
|
-
/***/ (function(module, exports) {
|
|
639
|
-
|
|
640
|
-
module.exports = require("@splunk/themes/pick");
|
|
641
|
-
|
|
642
|
-
/***/ }),
|
|
643
|
-
|
|
644
|
-
/***/ 9:
|
|
645
|
-
/***/ (function(module, exports) {
|
|
646
|
-
|
|
647
|
-
module.exports = require("@splunk/themes/variables");
|
|
648
|
-
|
|
649
|
-
/***/ })
|
|
650
|
-
|
|
651
|
-
/******/ });
|
|
652
|
-
//# sourceMappingURL=MarkerGauge.config.js.map
|
|
346
|
+
var config_default = enhanceConfig(config);
|
|
347
|
+
//# sourceMappingURL=MarkerGauge.config.js.map
|