@splunk/visualizations 26.4.1 → 27.0.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 +1262 -1600
- package/Area.config.js.map +7 -1
- package/Area.js +3002 -4930
- package/Area.js.map +7 -1
- package/Bar.config.js +1247 -1574
- package/Bar.config.js.map +7 -1
- package/Bar.js +2921 -4843
- package/Bar.js.map +7 -1
- package/Bubble.config.js +896 -1213
- package/Bubble.config.js.map +7 -1
- package/Bubble.js +2517 -4483
- package/Bubble.js.map +7 -1
- package/ChoroplethSvg.config.js +282 -582
- package/ChoroplethSvg.config.js.map +7 -1
- package/ChoroplethSvg.js +2004 -3810
- package/ChoroplethSvg.js.map +7 -1
- package/Column.config.js +1208 -1541
- package/Column.config.js.map +7 -1
- package/Column.js +2930 -4886
- package/Column.js.map +7 -1
- package/Ellipse.config.js +443 -774
- package/Ellipse.config.js.map +7 -1
- package/Ellipse.js +1651 -3341
- package/Ellipse.js.map +7 -1
- package/Events.config.js +207 -492
- package/Events.config.js.map +7 -1
- package/Events.js +2615 -4649
- package/Events.js.map +7 -1
- package/FillerGauge.config.js +420 -775
- package/FillerGauge.config.js.map +7 -1
- package/FillerGauge.js +2137 -4578
- package/FillerGauge.js.map +7 -1
- package/Image.config.js +144 -411
- package/Image.config.js.map +7 -1
- package/Image.js +1395 -3048
- package/Image.js.map +7 -1
- package/Line.config.js +1278 -1625
- package/Line.config.js.map +7 -1
- package/Line.js +2954 -4926
- package/Line.js.map +7 -1
- package/LinkGraph.config.js +390 -632
- package/LinkGraph.config.js.map +7 -1
- package/LinkGraph.js +5243 -6190
- 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 +3369 -5676
- package/Map.js.map +7 -1
- package/Markdown.config.js +232 -528
- package/Markdown.config.js.map +7 -1
- package/Markdown.js +1645 -3216
- package/Markdown.js.map +7 -1
- package/MarkerGauge.config.js +308 -613
- package/MarkerGauge.config.js.map +7 -1
- package/MarkerGauge.js +2189 -4535
- package/MarkerGauge.js.map +7 -1
- package/ParallelCoordinates.config.js +282 -581
- package/ParallelCoordinates.config.js.map +7 -1
- package/ParallelCoordinates.js +2023 -4720
- package/ParallelCoordinates.js.map +7 -1
- package/Pie.config.js +278 -547
- package/Pie.config.js.map +7 -1
- package/Pie.js +1996 -3990
- package/Pie.js.map +7 -1
- package/Punchcard.config.js +291 -578
- package/Punchcard.config.js.map +7 -1
- package/Punchcard.js +2709 -5042
- package/Punchcard.js.map +7 -1
- package/Rectangle.config.js +455 -770
- package/Rectangle.config.js.map +7 -1
- package/Rectangle.js +1638 -3262
- package/Rectangle.js.map +7 -1
- package/Sankey.config.js +291 -626
- package/Sankey.config.js.map +7 -1
- package/Sankey.js +2737 -4909
- package/Sankey.js.map +7 -1
- package/Scatter.config.js +876 -1194
- package/Scatter.config.js.map +7 -1
- package/Scatter.js +2529 -4477
- package/Scatter.js.map +7 -1
- package/SingleValue.config.js +819 -1251
- package/SingleValue.config.js.map +7 -1
- package/SingleValue.js +4203 -7413
- package/SingleValue.js.map +7 -1
- package/SingleValueBasic.js +382 -1527
- package/SingleValueBasic.js.map +7 -1
- package/SingleValueIcon.config.js +781 -1207
- package/SingleValueIcon.config.js.map +7 -1
- package/SingleValueIcon.js +3350 -6285
- package/SingleValueIcon.js.map +7 -1
- package/SingleValueRadial.config.js +708 -1119
- package/SingleValueRadial.config.js.map +7 -1
- package/SingleValueRadial.js +3808 -6965
- package/SingleValueRadial.js.map +7 -1
- package/SparkLine.js +439 -746
- package/SparkLine.js.map +7 -1
- package/Table.config.js +565 -879
- package/Table.config.js.map +7 -1
- package/Table.js +3277 -5381
- package/Table.js.map +7 -1
- package/common/Charting.js +481 -1468
- 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 +347 -912
- 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 +462 -1010
- 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 +237 -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 +1168 -2438
- package/common/withDashboardViz.js.map +7 -1
- package/package.json +52 -43
package/Punchcard.config.js
CHANGED
|
@@ -1,413 +1,177 @@
|
|
|
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 = 61);
|
|
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
|
-
/***/ 11:
|
|
117
|
-
/***/ (function(module, exports) {
|
|
118
|
-
|
|
119
|
-
module.exports = require("@splunk/visualization-icons");
|
|
120
|
-
|
|
121
|
-
/***/ }),
|
|
122
|
-
|
|
123
|
-
/***/ 12:
|
|
124
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
125
|
-
|
|
126
|
-
"use strict";
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
Object.defineProperty(exports, "__esModule", {
|
|
130
|
-
value: true
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
var i18n_1 = __webpack_require__(0);
|
|
134
|
-
|
|
135
|
-
var background = function background(_ref) {
|
|
136
|
-
var label = _ref.label,
|
|
137
|
-
themes = _ref.themes,
|
|
138
|
-
labelPosition = _ref.labelPosition;
|
|
139
|
-
return [{
|
|
140
|
-
label: (0, i18n_1._)(label || 'Background color'),
|
|
141
|
-
option: 'backgroundColor',
|
|
142
|
-
editor: 'editor.color',
|
|
143
|
-
editorProps: {
|
|
144
|
-
labelPosition: labelPosition || 'top',
|
|
145
|
-
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]);
|
|
146
23
|
}
|
|
147
|
-
|
|
24
|
+
return a;
|
|
148
25
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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/Punchcard/config.ts
|
|
51
|
+
var config_exports = {};
|
|
52
|
+
__export(config_exports, {
|
|
53
|
+
default: () => config_default
|
|
171
54
|
});
|
|
172
|
-
|
|
55
|
+
module.exports = __toCommonJS(config_exports);
|
|
173
56
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
180
|
-
enumerable: true,
|
|
181
|
-
get: function get() {
|
|
182
|
-
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
183
|
-
}
|
|
57
|
+
// esm-externals:@splunk/ui-utils/i18n
|
|
58
|
+
var i18n_exports = {};
|
|
59
|
+
__export(i18n_exports, {
|
|
60
|
+
default: () => i18n_default
|
|
184
61
|
});
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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-schemas
|
|
67
|
+
var visualization_schemas_exports = {};
|
|
68
|
+
__export(visualization_schemas_exports, {
|
|
69
|
+
default: () => visualization_schemas_default
|
|
70
|
+
});
|
|
71
|
+
var defaultImport2 = __toESM(require("@splunk/visualization-schemas"));
|
|
72
|
+
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
73
|
+
var visualization_schemas_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
74
|
+
|
|
75
|
+
// esm-externals:@splunk/visualization-icons
|
|
76
|
+
var visualization_icons_exports = {};
|
|
77
|
+
__export(visualization_icons_exports, {
|
|
78
|
+
default: () => visualization_icons_default
|
|
79
|
+
});
|
|
80
|
+
var defaultImport3 = __toESM(require("@splunk/visualization-icons"));
|
|
81
|
+
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
82
|
+
var visualization_icons_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
83
|
+
|
|
84
|
+
// esm-externals:@splunk/visualization-icons/placeholders
|
|
85
|
+
var placeholders_exports = {};
|
|
86
|
+
__export(placeholders_exports, {
|
|
87
|
+
default: () => placeholders_default
|
|
88
|
+
});
|
|
89
|
+
var defaultImport4 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
90
|
+
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
91
|
+
var placeholders_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
92
|
+
|
|
93
|
+
// esm-externals:@splunk/themes/pick
|
|
94
|
+
var pick_exports = {};
|
|
95
|
+
__export(pick_exports, {
|
|
96
|
+
default: () => pick_default
|
|
97
|
+
});
|
|
98
|
+
var defaultImport5 = __toESM(require("@splunk/themes/pick"));
|
|
99
|
+
__reExport(pick_exports, require("@splunk/themes/pick"));
|
|
100
|
+
var pick_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
101
|
+
|
|
102
|
+
// esm-externals:@splunk/themes/variables
|
|
103
|
+
var variables_exports = {};
|
|
104
|
+
__export(variables_exports, {
|
|
105
|
+
default: () => variables_default
|
|
106
|
+
});
|
|
107
|
+
var defaultImport6 = __toESM(require("@splunk/themes/variables"));
|
|
108
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
109
|
+
var variables_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
110
|
+
|
|
111
|
+
// esm-externals:lodash
|
|
112
|
+
var lodash_exports = {};
|
|
113
|
+
__export(lodash_exports, {
|
|
114
|
+
default: () => lodash_default
|
|
115
|
+
});
|
|
116
|
+
var defaultImport7 = __toESM(require("lodash"));
|
|
117
|
+
__reExport(lodash_exports, require("lodash"));
|
|
118
|
+
var lodash_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
|
|
119
|
+
|
|
120
|
+
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
121
|
+
var configUtils_exports = {};
|
|
122
|
+
__export(configUtils_exports, {
|
|
123
|
+
default: () => configUtils_default
|
|
124
|
+
});
|
|
125
|
+
var defaultImport8 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
126
|
+
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
127
|
+
var configUtils_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
|
|
192
128
|
|
|
129
|
+
// src/common/utils/configUtils.ts
|
|
193
130
|
function enhanceConfig(vizConfig) {
|
|
194
|
-
|
|
195
|
-
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
196
|
-
|
|
197
|
-
open:
|
|
198
|
-
}
|
|
199
|
-
|
|
131
|
+
const enhancedConfig = __spreadValues({}, vizConfig);
|
|
132
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
133
|
+
(config2) => {
|
|
134
|
+
return __spreadProps(__spreadValues({}, config2), { open: config2.open || false });
|
|
135
|
+
}
|
|
136
|
+
);
|
|
200
137
|
return enhancedConfig;
|
|
201
138
|
}
|
|
202
139
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
return editorPanelUncollapsedConfig;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
222
|
-
|
|
223
|
-
function isDynamicOption(option) {
|
|
224
|
-
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
|
|
228
|
-
// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
|
|
232
|
-
* 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
|
|
233
|
-
* the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
|
|
234
|
-
* 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
|
|
235
|
-
*
|
|
236
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
237
|
-
*/
|
|
238
|
-
|
|
239
|
-
function hasCompatibleContexts(vizContext, presetContext) {
|
|
240
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
241
|
-
return presetContextKeys.every(function (contextKey) {
|
|
242
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
247
|
-
*/
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
251
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
252
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
253
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
258
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
259
|
-
*
|
|
260
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
261
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
262
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
263
|
-
*/
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
267
|
-
return presets.find(function (preset) {
|
|
268
|
-
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
269
|
-
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
270
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
271
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
272
|
-
// if not, then the preset is invalid in config.ts
|
|
273
|
-
|
|
274
|
-
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
275
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
exports.getInitialPreset = getInitialPreset;
|
|
280
|
-
/**
|
|
281
|
-
* generates number precision values for a Select editor
|
|
282
|
-
*
|
|
283
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
284
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
function generatePrecisionValues(numPrecisionValues) {
|
|
288
|
-
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
289
|
-
return {
|
|
290
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
291
|
-
value: i
|
|
292
|
-
};
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
exports.generatePrecisionValues = generatePrecisionValues;
|
|
297
|
-
/**
|
|
298
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
299
|
-
*
|
|
300
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
301
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
302
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
303
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
304
|
-
*/
|
|
305
|
-
|
|
306
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
307
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
308
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
140
|
+
// src/common/editorConfig/BackgroundColor.ts
|
|
141
|
+
var background = ({
|
|
142
|
+
label,
|
|
143
|
+
themes: themes2,
|
|
144
|
+
labelPosition
|
|
145
|
+
}) => [
|
|
146
|
+
{
|
|
147
|
+
label: (0, i18n_exports._)(label || "Background color"),
|
|
148
|
+
option: "backgroundColor",
|
|
149
|
+
editor: "editor.color",
|
|
150
|
+
editorProps: {
|
|
151
|
+
labelPosition: labelPosition || "top",
|
|
152
|
+
themes: themes2
|
|
153
|
+
}
|
|
309
154
|
}
|
|
155
|
+
];
|
|
156
|
+
var BackgroundColor_default = background;
|
|
310
157
|
|
|
311
|
-
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
exports.insertLayout = insertLayout;
|
|
315
|
-
|
|
316
|
-
/***/ }),
|
|
317
|
-
|
|
318
|
-
/***/ 5:
|
|
319
|
-
/***/ (function(module, exports) {
|
|
320
|
-
|
|
321
|
-
module.exports = require("lodash");
|
|
322
|
-
|
|
323
|
-
/***/ }),
|
|
324
|
-
|
|
325
|
-
/***/ 6:
|
|
326
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
327
|
-
|
|
328
|
-
"use strict";
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
Object.defineProperty(exports, "__esModule", {
|
|
332
|
-
value: true
|
|
333
|
-
});
|
|
334
|
-
exports.VizBehavior = void 0;
|
|
335
|
-
var VizBehavior;
|
|
336
|
-
|
|
337
|
-
(function (VizBehavior) {
|
|
338
|
-
/**
|
|
339
|
-
* Dynamic Options Behavior.
|
|
340
|
-
* This allows visualization options to be powered by data
|
|
341
|
-
*
|
|
342
|
-
* **Example**
|
|
343
|
-
*
|
|
344
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
345
|
-
* would configure sparklineValues with an array of data points
|
|
346
|
-
* coming from the first series in the primary datasource
|
|
347
|
-
*
|
|
348
|
-
*/
|
|
349
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
350
|
-
VizBehavior["EVENTS"] = "events";
|
|
351
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
352
|
-
/**
|
|
353
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
354
|
-
* missing.
|
|
355
|
-
* @type {string}
|
|
356
|
-
*/
|
|
357
|
-
|
|
358
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
359
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
360
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
361
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
362
|
-
|
|
363
|
-
/***/ }),
|
|
364
|
-
|
|
365
|
-
/***/ 61:
|
|
366
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
367
|
-
|
|
368
|
-
"use strict";
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
Object.defineProperty(exports, "__esModule", {
|
|
372
|
-
value: true
|
|
373
|
-
});
|
|
374
|
-
|
|
375
|
-
var i18n_1 = __webpack_require__(0);
|
|
376
|
-
|
|
377
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
378
|
-
|
|
379
|
-
var visualization_icons_1 = __webpack_require__(11);
|
|
380
|
-
|
|
381
|
-
var placeholders_1 = __webpack_require__(10);
|
|
382
|
-
|
|
383
|
-
var pick_1 = __webpack_require__(8);
|
|
384
|
-
|
|
385
|
-
var variables_1 = __webpack_require__(9);
|
|
386
|
-
|
|
387
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
388
|
-
|
|
389
|
-
var VizCategory_1 = __webpack_require__(7);
|
|
390
|
-
|
|
391
|
-
var configUtils_1 = __webpack_require__(3);
|
|
392
|
-
|
|
393
|
-
var BackgroundColor_1 = __webpack_require__(12);
|
|
394
|
-
|
|
158
|
+
// src/Punchcard/config.ts
|
|
395
159
|
var dataContract = {
|
|
396
|
-
requiredDataSources: [
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
160
|
+
requiredDataSources: [
|
|
161
|
+
{
|
|
162
|
+
name: "primary",
|
|
163
|
+
description: "DataSource that powers the visualization"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
optionalDataSources: [
|
|
167
|
+
// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
|
|
401
168
|
// {
|
|
402
169
|
// name: 'annotation',
|
|
403
170
|
// description: 'DataSource that populate event annotations',
|
|
404
171
|
// },
|
|
405
172
|
],
|
|
406
173
|
initialRequestParams: {
|
|
407
|
-
primary: {
|
|
408
|
-
offset: 0,
|
|
409
|
-
count: 10000
|
|
410
|
-
}
|
|
174
|
+
primary: { offset: 0, count: 1e4 }
|
|
411
175
|
}
|
|
412
176
|
};
|
|
413
177
|
var size = {
|
|
@@ -416,211 +180,160 @@ var size = {
|
|
|
416
180
|
};
|
|
417
181
|
var defaultContext = {
|
|
418
182
|
bubbleColorConfig: {
|
|
419
|
-
colors: [
|
|
183
|
+
colors: ["rgba(123,86,219,0.4)", "rgba(123,86,219,1)"]
|
|
420
184
|
}
|
|
421
185
|
};
|
|
422
186
|
var themes = {
|
|
423
|
-
defaultBackgroundColor:
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
})(props);
|
|
431
|
-
}
|
|
187
|
+
defaultBackgroundColor: (props) => pick_default({
|
|
188
|
+
enterprise: {
|
|
189
|
+
dark: variables_default.black(props),
|
|
190
|
+
light: variables_default.backgroundColor(props)
|
|
191
|
+
},
|
|
192
|
+
prisma: variables_default.backgroundColorSidebar(props)
|
|
193
|
+
})(props)
|
|
432
194
|
};
|
|
433
|
-
var editorConfig = [
|
|
434
|
-
label: (0, i18n_1._)('Data display'),
|
|
435
|
-
layout: [[{
|
|
436
|
-
label: (0, i18n_1._)('Show bubble labels'),
|
|
437
|
-
option: 'bubbleLabelDisplay',
|
|
438
|
-
editor: 'editor.radioBar',
|
|
439
|
-
editorProps: {
|
|
440
|
-
values: [{
|
|
441
|
-
label: (0, i18n_1._)('All'),
|
|
442
|
-
value: 'all'
|
|
443
|
-
}, {
|
|
444
|
-
label: (0, i18n_1._)('Max'),
|
|
445
|
-
value: 'max'
|
|
446
|
-
}, {
|
|
447
|
-
label: (0, i18n_1._)('Off'),
|
|
448
|
-
value: 'off'
|
|
449
|
-
}]
|
|
450
|
-
}
|
|
451
|
-
}], [{
|
|
452
|
-
label: (0, i18n_1._)('Pulsate max value'),
|
|
453
|
-
option: 'showMaxValuePulsation',
|
|
454
|
-
editor: 'editor.toggle'
|
|
455
|
-
}], [{
|
|
456
|
-
label: (0, i18n_1._)('Bubble scale'),
|
|
457
|
-
option: 'bubbleSizeMethod',
|
|
458
|
-
editor: 'editor.radioBar',
|
|
459
|
-
editorProps: {
|
|
460
|
-
values: [{
|
|
461
|
-
label: (0, i18n_1._)('Radius'),
|
|
462
|
-
value: 'radius'
|
|
463
|
-
}, {
|
|
464
|
-
label: (0, i18n_1._)('Area'),
|
|
465
|
-
value: 'area'
|
|
466
|
-
}]
|
|
467
|
-
}
|
|
468
|
-
}], [{
|
|
469
|
-
label: (0, i18n_1._)('Bubble row scale'),
|
|
470
|
-
option: 'bubbleRowScale',
|
|
471
|
-
editor: 'editor.radioBar',
|
|
472
|
-
editorProps: {
|
|
473
|
-
values: [{
|
|
474
|
-
label: (0, i18n_1._)('Global'),
|
|
475
|
-
value: 'global'
|
|
476
|
-
}, {
|
|
477
|
-
label: (0, i18n_1._)('By Row'),
|
|
478
|
-
value: 'row'
|
|
479
|
-
}]
|
|
480
|
-
}
|
|
481
|
-
}]]
|
|
482
|
-
}, {
|
|
483
|
-
label: (0, i18n_1._)('Color and style'),
|
|
484
|
-
layout: [[{
|
|
485
|
-
label: (0, i18n_1._)('Color mode'),
|
|
486
|
-
option: 'colorMode',
|
|
487
|
-
editor: 'editor.radioBar',
|
|
488
|
-
editorProps: {
|
|
489
|
-
values: [{
|
|
490
|
-
label: (0, i18n_1._)('Dynamic'),
|
|
491
|
-
value: 'dynamic'
|
|
492
|
-
}, {
|
|
493
|
-
label: (0, i18n_1._)('Categorical'),
|
|
494
|
-
value: 'categorical'
|
|
495
|
-
}]
|
|
496
|
-
}
|
|
497
|
-
}], [// This should be hidden in categorical color mode
|
|
195
|
+
var editorConfig = [
|
|
498
196
|
{
|
|
499
|
-
label: (0,
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
context: {},
|
|
513
|
-
options: {
|
|
514
|
-
bubbleColor: "".concat(bubbleColor, " | gradient(bubbleColorConfig)")
|
|
197
|
+
label: (0, i18n_exports._)("Data display"),
|
|
198
|
+
layout: [
|
|
199
|
+
[
|
|
200
|
+
{
|
|
201
|
+
label: (0, i18n_exports._)("Show bubble labels"),
|
|
202
|
+
option: "bubbleLabelDisplay",
|
|
203
|
+
editor: "editor.radioBar",
|
|
204
|
+
editorProps: {
|
|
205
|
+
values: [
|
|
206
|
+
{ label: (0, i18n_exports._)("All"), value: "all" },
|
|
207
|
+
{ label: (0, i18n_exports._)("Max"), value: "max" },
|
|
208
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
209
|
+
]
|
|
515
210
|
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
[
|
|
214
|
+
{
|
|
215
|
+
label: (0, i18n_exports._)("Pulsate max value"),
|
|
216
|
+
option: "showMaxValuePulsation",
|
|
217
|
+
editor: "editor.toggle"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
[
|
|
221
|
+
{
|
|
222
|
+
label: (0, i18n_exports._)("Bubble scale"),
|
|
223
|
+
option: "bubbleSizeMethod",
|
|
224
|
+
editor: "editor.radioBar",
|
|
225
|
+
editorProps: {
|
|
226
|
+
values: [
|
|
227
|
+
{ label: (0, i18n_exports._)("Radius"), value: "radius" },
|
|
228
|
+
{ label: (0, i18n_exports._)("Area"), value: "area" }
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
[
|
|
234
|
+
{
|
|
235
|
+
label: (0, i18n_exports._)("Bubble row scale"),
|
|
236
|
+
option: "bubbleRowScale",
|
|
237
|
+
editor: "editor.radioBar",
|
|
238
|
+
editorProps: {
|
|
239
|
+
values: [
|
|
240
|
+
{ label: (0, i18n_exports._)("Global"), value: "global" },
|
|
241
|
+
{ label: (0, i18n_exports._)("By Row"), value: "row" }
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
label: (0, i18n_exports._)("Color and style"),
|
|
250
|
+
layout: [
|
|
251
|
+
[
|
|
252
|
+
{
|
|
253
|
+
label: (0, i18n_exports._)("Color mode"),
|
|
254
|
+
option: "colorMode",
|
|
255
|
+
editor: "editor.radioBar",
|
|
256
|
+
editorProps: {
|
|
257
|
+
values: [
|
|
258
|
+
{ label: (0, i18n_exports._)("Dynamic"), value: "dynamic" },
|
|
259
|
+
{ label: (0, i18n_exports._)("Categorical"), value: "categorical" }
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
[
|
|
265
|
+
// This should be hidden in categorical color mode
|
|
266
|
+
{
|
|
267
|
+
label: (0, i18n_exports._)("Color by field"),
|
|
268
|
+
editor: "editor.columnSelector",
|
|
269
|
+
option: "bubbleColor",
|
|
270
|
+
context: "bubbleColorConfig",
|
|
271
|
+
showEditor: ({ options }) => options.colorMode === "dynamic" || options.colorMode === void 0,
|
|
272
|
+
editorProps: {
|
|
273
|
+
dataSourceKey: "primary",
|
|
274
|
+
prepareValue: (definition) => {
|
|
275
|
+
const {
|
|
276
|
+
options: { bubbleColor }
|
|
277
|
+
} = definition;
|
|
278
|
+
return {
|
|
279
|
+
context: {},
|
|
280
|
+
options: {
|
|
281
|
+
bubbleColor: `${bubbleColor} | gradient(bubbleColorConfig)`
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
BackgroundColor_default({ themes }),
|
|
289
|
+
[
|
|
290
|
+
{
|
|
291
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
292
|
+
option: "legendDisplay",
|
|
293
|
+
editor: "editor.select",
|
|
294
|
+
editorProps: {
|
|
295
|
+
values: [
|
|
296
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
297
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
showEditor: ({ options }) => options.colorMode === "categorical"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
];
|
|
544
306
|
var config = {
|
|
545
307
|
/**
|
|
546
308
|
* unique viz key
|
|
547
309
|
*/
|
|
548
|
-
key:
|
|
549
|
-
|
|
310
|
+
key: "splunk.punchcard",
|
|
550
311
|
/**
|
|
551
312
|
* viz name
|
|
552
313
|
*/
|
|
553
|
-
name: (0,
|
|
554
|
-
category:
|
|
555
|
-
|
|
314
|
+
name: (0, i18n_exports._)("Punchcard"),
|
|
315
|
+
category: "Correlation" /* CORRELATION */,
|
|
556
316
|
/**
|
|
557
317
|
* viz icon
|
|
558
318
|
*/
|
|
559
|
-
icon:
|
|
560
|
-
placeholderIcon:
|
|
561
|
-
dataContract
|
|
562
|
-
size
|
|
563
|
-
defaultContext
|
|
564
|
-
optionsSchema:
|
|
565
|
-
editorConfig
|
|
319
|
+
icon: visualization_icons_exports.Punchcard,
|
|
320
|
+
placeholderIcon: placeholders_exports.Punchcard,
|
|
321
|
+
dataContract,
|
|
322
|
+
size,
|
|
323
|
+
defaultContext,
|
|
324
|
+
optionsSchema: visualization_schemas_exports.punchcardOptionsSchema,
|
|
325
|
+
editorConfig,
|
|
566
326
|
events: {
|
|
567
|
-
|
|
568
|
-
description:
|
|
327
|
+
"legend.click": {
|
|
328
|
+
description: "Triggered when user clicks a chart legend"
|
|
569
329
|
},
|
|
570
|
-
|
|
571
|
-
description:
|
|
330
|
+
"point.click": {
|
|
331
|
+
description: "Triggered when user clicks a data point"
|
|
572
332
|
}
|
|
573
333
|
},
|
|
574
|
-
supports: [
|
|
575
|
-
themes
|
|
576
|
-
requiredProps: [
|
|
334
|
+
supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "placeholder" /* PLACEHOLDER */, "events" /* EVENTS */],
|
|
335
|
+
themes,
|
|
336
|
+
requiredProps: ["x", "y", "size"]
|
|
577
337
|
};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
/***/ }),
|
|
581
|
-
|
|
582
|
-
/***/ 7:
|
|
583
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
584
|
-
|
|
585
|
-
"use strict";
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
Object.defineProperty(exports, "__esModule", {
|
|
589
|
-
value: true
|
|
590
|
-
});
|
|
591
|
-
exports.VizCategory = void 0;
|
|
592
|
-
var VizCategory;
|
|
593
|
-
|
|
594
|
-
(function (VizCategory) {
|
|
595
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
596
|
-
VizCategory["TRENDS"] = "Trends";
|
|
597
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
598
|
-
VizCategory["TABLE"] = "Table";
|
|
599
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
600
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
601
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
602
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
603
|
-
VizCategory["MISC"] = "misc";
|
|
604
|
-
VizCategory["FLOW"] = "Flow";
|
|
605
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
606
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
607
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
608
|
-
|
|
609
|
-
/***/ }),
|
|
610
|
-
|
|
611
|
-
/***/ 8:
|
|
612
|
-
/***/ (function(module, exports) {
|
|
613
|
-
|
|
614
|
-
module.exports = require("@splunk/themes/pick");
|
|
615
|
-
|
|
616
|
-
/***/ }),
|
|
617
|
-
|
|
618
|
-
/***/ 9:
|
|
619
|
-
/***/ (function(module, exports) {
|
|
620
|
-
|
|
621
|
-
module.exports = require("@splunk/themes/variables");
|
|
622
|
-
|
|
623
|
-
/***/ })
|
|
624
|
-
|
|
625
|
-
/******/ });
|
|
626
|
-
//# sourceMappingURL=Punchcard.config.js.map
|
|
338
|
+
var config_default = enhanceConfig(config);
|
|
339
|
+
//# sourceMappingURL=Punchcard.config.js.map
|