@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/Sankey.config.js
CHANGED
|
@@ -1,456 +1,217 @@
|
|
|
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 = 63);
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"use strict";
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
var _toConsumableArray = __webpack_require__(1);
|
|
182
|
-
|
|
183
|
-
Object.defineProperty(exports, "__esModule", {
|
|
184
|
-
value: true
|
|
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/Sankey/config.ts
|
|
51
|
+
var config_exports = {};
|
|
52
|
+
__export(config_exports, {
|
|
53
|
+
default: () => config_default
|
|
185
54
|
});
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
var lodash_1 = __webpack_require__(5); // included for backwards compatibility
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
var visualization_schemas_1 = __webpack_require__(2);
|
|
55
|
+
module.exports = __toCommonJS(config_exports);
|
|
192
56
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
57
|
+
// esm-externals:@splunk/visualization-icons
|
|
58
|
+
var visualization_icons_exports = {};
|
|
59
|
+
__export(visualization_icons_exports, {
|
|
60
|
+
default: () => visualization_icons_default
|
|
61
|
+
});
|
|
62
|
+
var defaultImport = __toESM(require("@splunk/visualization-icons"));
|
|
63
|
+
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
64
|
+
var visualization_icons_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
65
|
+
|
|
66
|
+
// esm-externals:@splunk/visualization-icons/placeholders
|
|
67
|
+
var placeholders_exports = {};
|
|
68
|
+
__export(placeholders_exports, {
|
|
69
|
+
default: () => placeholders_default
|
|
70
|
+
});
|
|
71
|
+
var defaultImport2 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
72
|
+
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
73
|
+
var placeholders_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
74
|
+
|
|
75
|
+
// esm-externals:@splunk/visualization-schemas
|
|
76
|
+
var visualization_schemas_exports = {};
|
|
77
|
+
__export(visualization_schemas_exports, {
|
|
78
|
+
default: () => visualization_schemas_default
|
|
79
|
+
});
|
|
80
|
+
var defaultImport3 = __toESM(require("@splunk/visualization-schemas"));
|
|
81
|
+
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
82
|
+
var visualization_schemas_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
83
|
+
|
|
84
|
+
// esm-externals:@splunk/visualization-color-palettes/editors/PresetPalettes
|
|
85
|
+
var PresetPalettes_exports = {};
|
|
86
|
+
__export(PresetPalettes_exports, {
|
|
87
|
+
default: () => PresetPalettes_default
|
|
88
|
+
});
|
|
89
|
+
var defaultImport4 = __toESM(require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
90
|
+
__reExport(PresetPalettes_exports, require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
91
|
+
var PresetPalettes_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
92
|
+
|
|
93
|
+
// esm-externals:@splunk/themes
|
|
94
|
+
var themes_exports = {};
|
|
95
|
+
__export(themes_exports, {
|
|
96
|
+
default: () => themes_default
|
|
97
|
+
});
|
|
98
|
+
var defaultImport5 = __toESM(require("@splunk/themes"));
|
|
99
|
+
__reExport(themes_exports, require("@splunk/themes"));
|
|
100
|
+
var themes_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
101
|
+
|
|
102
|
+
// esm-externals:@splunk/ui-utils/i18n
|
|
103
|
+
var i18n_exports = {};
|
|
104
|
+
__export(i18n_exports, {
|
|
105
|
+
default: () => i18n_default
|
|
198
106
|
});
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
107
|
+
var defaultImport6 = __toESM(require("@splunk/ui-utils/i18n"));
|
|
108
|
+
__reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
|
|
109
|
+
var i18n_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;
|
|
206
128
|
|
|
129
|
+
// src/common/utils/configUtils.ts
|
|
207
130
|
function enhanceConfig(vizConfig) {
|
|
208
|
-
|
|
209
|
-
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
210
|
-
|
|
211
|
-
open:
|
|
212
|
-
}
|
|
213
|
-
|
|
131
|
+
const enhancedConfig = __spreadValues({}, vizConfig);
|
|
132
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(
|
|
133
|
+
(config2) => {
|
|
134
|
+
return __spreadProps(__spreadValues({}, config2), { open: config2.open || false });
|
|
135
|
+
}
|
|
136
|
+
);
|
|
214
137
|
return enhancedConfig;
|
|
215
138
|
}
|
|
216
139
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
* Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
|
|
251
|
-
*/
|
|
252
|
-
|
|
253
|
-
function hasCompatibleContexts(vizContext, presetContext) {
|
|
254
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
255
|
-
return presetContextKeys.every(function (contextKey) {
|
|
256
|
-
return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
|
|
261
|
-
*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
265
|
-
var presetOptionKeys = Object.keys(presetOptions);
|
|
266
|
-
return presetOptionKeys.every(function (optionKey) {
|
|
267
|
-
return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
|
|
272
|
-
* This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
|
|
273
|
-
*
|
|
274
|
-
* @param {Object} vizContext - the current vizContext definition
|
|
275
|
-
* @param {Object} vizOptions - the current vizOptions definition
|
|
276
|
-
* @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
|
|
277
|
-
*/
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
281
|
-
return presets.find(function (preset) {
|
|
282
|
-
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
283
|
-
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
284
|
-
var presetContextKeys = Object.keys(presetContext);
|
|
285
|
-
var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
286
|
-
// if not, then the preset is invalid in config.ts
|
|
287
|
-
|
|
288
|
-
if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
|
|
289
|
-
return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
exports.getInitialPreset = getInitialPreset;
|
|
294
|
-
/**
|
|
295
|
-
* generates number precision values for a Select editor
|
|
296
|
-
*
|
|
297
|
-
* @param {Number} numPrecisionValues - number of integer precision values to generate
|
|
298
|
-
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
299
|
-
*/
|
|
300
|
-
|
|
301
|
-
function generatePrecisionValues(numPrecisionValues) {
|
|
302
|
-
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
303
|
-
return {
|
|
304
|
-
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
305
|
-
value: i
|
|
306
|
-
};
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
exports.generatePrecisionValues = generatePrecisionValues;
|
|
311
|
-
/**
|
|
312
|
-
* insert layout in layout array, return a new layout array instead of updating the original
|
|
313
|
-
*
|
|
314
|
-
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
315
|
-
* @param {Number} index - the index to insert layout item(s)
|
|
316
|
-
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
317
|
-
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
318
|
-
*/
|
|
319
|
-
|
|
320
|
-
var insertLayout = function insertLayout(layout, index) {
|
|
321
|
-
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
322
|
-
layoutItems[_key - 2] = arguments[_key];
|
|
140
|
+
// src/common/editorConfig/DynamicLinkColorsEditor.js
|
|
141
|
+
var getDynamicLinkColorsEditor = ({ defaultContext: defaultContext2, defaultPalettesConfig: defaultPalettesConfig2 }) => ({
|
|
142
|
+
label: (0, i18n_exports._)("Link"),
|
|
143
|
+
option: "linkColors",
|
|
144
|
+
context: "linkColorRangeConfig",
|
|
145
|
+
editor: "editor.dynamicColor",
|
|
146
|
+
showEditor: ({ options }) => (0, configUtils_exports.isDynamicOption)(options.linkColors),
|
|
147
|
+
editorProps: {
|
|
148
|
+
labelPosition: "top",
|
|
149
|
+
flyoutTitle: (0, i18n_exports._)("Dynamic coloring: link"),
|
|
150
|
+
formatters: [
|
|
151
|
+
{
|
|
152
|
+
label: (0, i18n_exports._)("Ranges"),
|
|
153
|
+
value: "rangeValue",
|
|
154
|
+
defaults: {
|
|
155
|
+
linkValues: defaultContext2.linkColorRangeConfig
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: (0, i18n_exports._)("Matches"),
|
|
160
|
+
value: "matchValue",
|
|
161
|
+
defaults: {
|
|
162
|
+
linkValues: defaultContext2.linkColorMatchConfig
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
dataSelectors: [
|
|
167
|
+
{
|
|
168
|
+
label: (0, i18n_exports._)("Link"),
|
|
169
|
+
value: "linkValues"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
defaultPalettesConfig: defaultPalettesConfig2
|
|
323
173
|
}
|
|
324
|
-
|
|
325
|
-
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
exports.insertLayout = insertLayout;
|
|
329
|
-
|
|
330
|
-
/***/ }),
|
|
331
|
-
|
|
332
|
-
/***/ 4:
|
|
333
|
-
/***/ (function(module, exports) {
|
|
334
|
-
|
|
335
|
-
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
336
|
-
|
|
337
|
-
/***/ }),
|
|
338
|
-
|
|
339
|
-
/***/ 5:
|
|
340
|
-
/***/ (function(module, exports) {
|
|
341
|
-
|
|
342
|
-
module.exports = require("lodash");
|
|
343
|
-
|
|
344
|
-
/***/ }),
|
|
345
|
-
|
|
346
|
-
/***/ 6:
|
|
347
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
348
|
-
|
|
349
|
-
"use strict";
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
Object.defineProperty(exports, "__esModule", {
|
|
353
|
-
value: true
|
|
354
174
|
});
|
|
355
|
-
exports.VizBehavior = void 0;
|
|
356
|
-
var VizBehavior;
|
|
357
|
-
|
|
358
|
-
(function (VizBehavior) {
|
|
359
|
-
/**
|
|
360
|
-
* Dynamic Options Behavior.
|
|
361
|
-
* This allows visualization options to be powered by data
|
|
362
|
-
*
|
|
363
|
-
* **Example**
|
|
364
|
-
*
|
|
365
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
366
|
-
* would configure sparklineValues with an array of data points
|
|
367
|
-
* coming from the first series in the primary datasource
|
|
368
|
-
*
|
|
369
|
-
*/
|
|
370
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
371
|
-
VizBehavior["EVENTS"] = "events";
|
|
372
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
373
|
-
/**
|
|
374
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
375
|
-
* missing.
|
|
376
|
-
* @type {string}
|
|
377
|
-
*/
|
|
378
|
-
|
|
379
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
380
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
381
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
382
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
383
|
-
|
|
384
|
-
/***/ }),
|
|
385
|
-
|
|
386
|
-
/***/ 63:
|
|
387
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
388
|
-
|
|
389
|
-
"use strict";
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
Object.defineProperty(exports, "__esModule", {
|
|
393
|
-
value: true
|
|
394
|
-
});
|
|
395
|
-
|
|
396
|
-
var visualization_icons_1 = __webpack_require__(11);
|
|
397
175
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
var
|
|
415
|
-
|
|
416
|
-
var BackgroundColor_1 = __webpack_require__(12);
|
|
176
|
+
// src/common/editorConfig/BackgroundColor.ts
|
|
177
|
+
var background = ({
|
|
178
|
+
label,
|
|
179
|
+
themes: themes2,
|
|
180
|
+
labelPosition
|
|
181
|
+
}) => [
|
|
182
|
+
{
|
|
183
|
+
label: (0, i18n_exports._)(label || "Background color"),
|
|
184
|
+
option: "backgroundColor",
|
|
185
|
+
editor: "editor.color",
|
|
186
|
+
editorProps: {
|
|
187
|
+
labelPosition: labelPosition || "top",
|
|
188
|
+
themes: themes2
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
];
|
|
192
|
+
var BackgroundColor_default = background;
|
|
417
193
|
|
|
194
|
+
// src/Sankey/config.ts
|
|
418
195
|
var defaultContext = {
|
|
419
|
-
linkColorRangeConfig: [
|
|
420
|
-
to: 20,
|
|
421
|
-
value:
|
|
422
|
-
|
|
423
|
-
from:
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
from: 40,
|
|
428
|
-
to: 60,
|
|
429
|
-
value: '#CBA700'
|
|
430
|
-
}, {
|
|
431
|
-
from: 60,
|
|
432
|
-
to: 80,
|
|
433
|
-
value: '#669922'
|
|
434
|
-
}, {
|
|
435
|
-
from: 80,
|
|
436
|
-
value: '#118832'
|
|
437
|
-
}],
|
|
438
|
-
linkColorMatchConfig: [{
|
|
439
|
-
match: '',
|
|
440
|
-
value: '#5C33FF'
|
|
441
|
-
}]
|
|
196
|
+
linkColorRangeConfig: [
|
|
197
|
+
{ to: 20, value: "#D41F1F" },
|
|
198
|
+
{ from: 20, to: 40, value: "#D94E17" },
|
|
199
|
+
{ from: 40, to: 60, value: "#CBA700" },
|
|
200
|
+
{ from: 60, to: 80, value: "#669922" },
|
|
201
|
+
{ from: 80, value: "#118832" }
|
|
202
|
+
],
|
|
203
|
+
linkColorMatchConfig: [{ match: "", value: "#5C33FF" }]
|
|
442
204
|
};
|
|
443
205
|
var dataContract = {
|
|
444
|
-
requiredDataSources: [
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
206
|
+
requiredDataSources: [
|
|
207
|
+
{
|
|
208
|
+
name: "primary",
|
|
209
|
+
description: "DataSource that powers the visualization"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
448
212
|
optionalDataSources: [],
|
|
449
213
|
initialRequestParams: {
|
|
450
|
-
primary: {
|
|
451
|
-
offset: 0,
|
|
452
|
-
count: 10000
|
|
453
|
-
}
|
|
214
|
+
primary: { offset: 0, count: 1e4 }
|
|
454
215
|
}
|
|
455
216
|
};
|
|
456
217
|
var size = {
|
|
@@ -458,213 +219,117 @@ var size = {
|
|
|
458
219
|
initialHeight: 300
|
|
459
220
|
};
|
|
460
221
|
var themes = {
|
|
461
|
-
defaultBackgroundColor:
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
222
|
+
defaultBackgroundColor: (props) => (0, themes_exports.pick)({
|
|
223
|
+
enterprise: {
|
|
224
|
+
dark: themes_exports.variables.black(props),
|
|
225
|
+
light: themes_exports.variables.backgroundColor(props)
|
|
226
|
+
},
|
|
227
|
+
prisma: themes_exports.variables.backgroundColorSidebar(props)
|
|
228
|
+
})(props),
|
|
229
|
+
nodeTextColor: (props) => (0, themes_exports.pick)({
|
|
230
|
+
enterprise: {
|
|
231
|
+
dark: themes_exports.variables.textColor(props),
|
|
232
|
+
light: themes_exports.variables.textColor(props)
|
|
233
|
+
},
|
|
234
|
+
prisma: themes_exports.variables.contentColorActive(props)
|
|
235
|
+
})(props),
|
|
236
|
+
tooltipRowColor: (props) => (0, themes_exports.pick)({
|
|
237
|
+
enterprise: {
|
|
238
|
+
dark: themes_exports.variables.textColor(props),
|
|
239
|
+
light: themes_exports.variables.textColor(props)
|
|
240
|
+
},
|
|
241
|
+
prisma: themes_exports.variables.contentColorActive(props)
|
|
242
|
+
})(props),
|
|
243
|
+
tooltipLinkHeaderColor: (props) => (0, themes_exports.pick)({
|
|
244
|
+
enterprise: {
|
|
245
|
+
dark: themes_exports.variables.textColor(props),
|
|
246
|
+
light: themes_exports.variables.textColor(props)
|
|
247
|
+
},
|
|
248
|
+
prisma: themes_exports.variables.contentColorActive(props)
|
|
249
|
+
})(props),
|
|
250
|
+
tooltipHeaderColor: (props) => (0, themes_exports.pick)({
|
|
251
|
+
enterprise: {
|
|
252
|
+
dark: themes_exports.variables.textGray(props),
|
|
253
|
+
light: themes_exports.variables.textGray(props)
|
|
254
|
+
},
|
|
255
|
+
prisma: themes_exports.variables.contentColorMuted(props)
|
|
256
|
+
})(props)
|
|
257
|
+
};
|
|
258
|
+
var editorConfig = [
|
|
259
|
+
{
|
|
260
|
+
label: (0, i18n_exports._)("Data configurations"),
|
|
261
|
+
layout: [
|
|
262
|
+
[
|
|
263
|
+
{
|
|
264
|
+
label: "Link value",
|
|
265
|
+
editor: "editor.columnSelector",
|
|
266
|
+
option: "linkValues",
|
|
267
|
+
context: "linkValuesContext",
|
|
268
|
+
editorProps: {
|
|
269
|
+
dataSourceKey: "primary",
|
|
270
|
+
filterByTypes: ["number"]
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
]
|
|
496
275
|
},
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
276
|
+
{
|
|
277
|
+
label: (0, i18n_exports._)("Color and style"),
|
|
278
|
+
layout: [
|
|
279
|
+
[
|
|
280
|
+
{
|
|
281
|
+
label: (0, i18n_exports._)("Color mode"),
|
|
282
|
+
option: "colorMode",
|
|
283
|
+
editor: "editor.radioBar",
|
|
284
|
+
editorProps: {
|
|
285
|
+
values: [
|
|
286
|
+
{ label: (0, i18n_exports._)("Categorical"), value: "categorical" },
|
|
287
|
+
{ label: (0, i18n_exports._)("Dynamic"), value: "dynamic" }
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
[
|
|
293
|
+
__spreadProps(__spreadValues({}, getDynamicLinkColorsEditor({ defaultContext, defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig })), {
|
|
294
|
+
showEditor: ({ options }) => options.colorMode === "dynamic"
|
|
295
|
+
})
|
|
296
|
+
],
|
|
297
|
+
BackgroundColor_default({ themes })
|
|
298
|
+
]
|
|
505
299
|
}
|
|
506
|
-
|
|
507
|
-
var editorConfig = [{
|
|
508
|
-
label: (0, i18n_1._)('Data configurations'),
|
|
509
|
-
layout: [[{
|
|
510
|
-
label: 'Link value',
|
|
511
|
-
editor: 'editor.columnSelector',
|
|
512
|
-
option: 'linkValues',
|
|
513
|
-
context: 'linkValuesContext',
|
|
514
|
-
editorProps: {
|
|
515
|
-
dataSourceKey: 'primary',
|
|
516
|
-
filterByTypes: ['number']
|
|
517
|
-
}
|
|
518
|
-
}]]
|
|
519
|
-
}, {
|
|
520
|
-
label: (0, i18n_1._)('Color and style'),
|
|
521
|
-
layout: [[{
|
|
522
|
-
label: (0, i18n_1._)('Color mode'),
|
|
523
|
-
option: 'colorMode',
|
|
524
|
-
editor: 'editor.radioBar',
|
|
525
|
-
editorProps: {
|
|
526
|
-
values: [{
|
|
527
|
-
label: (0, i18n_1._)('Categorical'),
|
|
528
|
-
value: 'categorical'
|
|
529
|
-
}, {
|
|
530
|
-
label: (0, i18n_1._)('Dynamic'),
|
|
531
|
-
value: 'dynamic'
|
|
532
|
-
}]
|
|
533
|
-
}
|
|
534
|
-
}], [Object.assign(Object.assign({}, (0, DynamicLinkColorsEditor_1.getDynamicLinkColorsEditor)({
|
|
535
|
-
defaultContext: defaultContext,
|
|
536
|
-
defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
|
|
537
|
-
})), {
|
|
538
|
-
showEditor: function showEditor(_ref) {
|
|
539
|
-
var options = _ref.options;
|
|
540
|
-
return options.colorMode === 'dynamic';
|
|
541
|
-
}
|
|
542
|
-
})], (0, BackgroundColor_1.default)({
|
|
543
|
-
themes: themes
|
|
544
|
-
})]
|
|
545
|
-
}];
|
|
546
|
-
/**
|
|
547
|
-
* visualization configuration
|
|
548
|
-
*/
|
|
549
|
-
|
|
300
|
+
];
|
|
550
301
|
var config = {
|
|
551
302
|
/**
|
|
552
303
|
* unique viz key
|
|
553
304
|
*/
|
|
554
|
-
key:
|
|
555
|
-
|
|
305
|
+
key: "splunk.sankey",
|
|
556
306
|
/**
|
|
557
307
|
* viz name
|
|
558
308
|
*/
|
|
559
|
-
name: (0,
|
|
560
|
-
category:
|
|
561
|
-
status:
|
|
562
|
-
|
|
309
|
+
name: (0, i18n_exports._)("Sankey"),
|
|
310
|
+
category: "Flow" /* FLOW */,
|
|
311
|
+
status: "preview",
|
|
563
312
|
/**
|
|
564
313
|
* viz icon
|
|
565
314
|
*/
|
|
566
|
-
icon:
|
|
567
|
-
placeholderIcon:
|
|
568
|
-
dataContract
|
|
569
|
-
size
|
|
570
|
-
defaultContext
|
|
571
|
-
optionsSchema:
|
|
572
|
-
editorConfig
|
|
315
|
+
icon: visualization_icons_exports.Sankey,
|
|
316
|
+
placeholderIcon: placeholders_exports.Sankey,
|
|
317
|
+
dataContract,
|
|
318
|
+
size,
|
|
319
|
+
defaultContext,
|
|
320
|
+
optionsSchema: visualization_schemas_exports.sankeyOptionsSchema,
|
|
321
|
+
editorConfig,
|
|
573
322
|
events: {
|
|
574
|
-
|
|
575
|
-
description:
|
|
323
|
+
"node.click": {
|
|
324
|
+
description: "Triggered when user clicks on a node"
|
|
576
325
|
},
|
|
577
|
-
|
|
578
|
-
description:
|
|
326
|
+
"link.click": {
|
|
327
|
+
description: "Triggered when user clicks on a link"
|
|
579
328
|
}
|
|
580
329
|
},
|
|
581
|
-
supports: [
|
|
582
|
-
themes
|
|
330
|
+
supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "events" /* EVENTS */, "placeholder" /* PLACEHOLDER */],
|
|
331
|
+
themes,
|
|
583
332
|
requiredProps: []
|
|
584
333
|
};
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
/***/ }),
|
|
588
|
-
|
|
589
|
-
/***/ 64:
|
|
590
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
591
|
-
|
|
592
|
-
"use strict";
|
|
593
|
-
__webpack_require__.r(__webpack_exports__);
|
|
594
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicLinkColorsEditor", function() { return getDynamicLinkColorsEditor; });
|
|
595
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
596
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
597
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
598
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
var getDynamicLinkColorsEditor = function getDynamicLinkColorsEditor(_ref) {
|
|
602
|
-
var defaultContext = _ref.defaultContext,
|
|
603
|
-
defaultPalettesConfig = _ref.defaultPalettesConfig;
|
|
604
|
-
return {
|
|
605
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Link'),
|
|
606
|
-
option: 'linkColors',
|
|
607
|
-
context: 'linkColorRangeConfig',
|
|
608
|
-
editor: 'editor.dynamicColor',
|
|
609
|
-
showEditor: function showEditor(_ref2) {
|
|
610
|
-
var options = _ref2.options;
|
|
611
|
-
return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.linkColors);
|
|
612
|
-
},
|
|
613
|
-
editorProps: {
|
|
614
|
-
labelPosition: 'top',
|
|
615
|
-
flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: link'),
|
|
616
|
-
formatters: [{
|
|
617
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
|
|
618
|
-
value: 'rangeValue',
|
|
619
|
-
defaults: {
|
|
620
|
-
linkValues: defaultContext.linkColorRangeConfig
|
|
621
|
-
}
|
|
622
|
-
}, {
|
|
623
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
624
|
-
value: 'matchValue',
|
|
625
|
-
defaults: {
|
|
626
|
-
linkValues: defaultContext.linkColorMatchConfig
|
|
627
|
-
}
|
|
628
|
-
}],
|
|
629
|
-
dataSelectors: [{
|
|
630
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Link'),
|
|
631
|
-
value: 'linkValues'
|
|
632
|
-
}],
|
|
633
|
-
defaultPalettesConfig: defaultPalettesConfig
|
|
634
|
-
}
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
/***/ }),
|
|
639
|
-
|
|
640
|
-
/***/ 7:
|
|
641
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
642
|
-
|
|
643
|
-
"use strict";
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
Object.defineProperty(exports, "__esModule", {
|
|
647
|
-
value: true
|
|
648
|
-
});
|
|
649
|
-
exports.VizCategory = void 0;
|
|
650
|
-
var VizCategory;
|
|
651
|
-
|
|
652
|
-
(function (VizCategory) {
|
|
653
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
654
|
-
VizCategory["TRENDS"] = "Trends";
|
|
655
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
656
|
-
VizCategory["TABLE"] = "Table";
|
|
657
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
658
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
659
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
660
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
661
|
-
VizCategory["MISC"] = "misc";
|
|
662
|
-
VizCategory["FLOW"] = "Flow";
|
|
663
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
664
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
665
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
666
|
-
|
|
667
|
-
/***/ })
|
|
668
|
-
|
|
669
|
-
/******/ });
|
|
670
|
-
//# sourceMappingURL=Sankey.config.js.map
|
|
334
|
+
var config_default = enhanceConfig(config);
|
|
335
|
+
//# sourceMappingURL=Sankey.config.js.map
|