@splunk/visualizations 28.3.0 → 28.4.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.
Files changed (225) hide show
  1. package/Area/Area.d.ts.map +1 -1
  2. package/Area.config.js +0 -1
  3. package/Area.config.js.map +2 -2
  4. package/Area.js +495 -99
  5. package/Area.js.map +3 -3
  6. package/Bar/Bar.d.ts.map +1 -1
  7. package/Bar.config.js +0 -1
  8. package/Bar.config.js.map +2 -2
  9. package/Bar.js +505 -99
  10. package/Bar.js.map +3 -3
  11. package/Bubble.config.js +0 -1
  12. package/Bubble.config.js.map +2 -2
  13. package/Bubble.js +494 -86
  14. package/Bubble.js.map +3 -3
  15. package/CHANGELOG.external.md +76 -0
  16. package/ChoroplethSvg/ChoroplethSvg.d.ts +4 -3
  17. package/ChoroplethSvg/ChoroplethSvg.d.ts.map +1 -1
  18. package/ChoroplethSvg.config.js +1 -3
  19. package/ChoroplethSvg.config.js.map +2 -2
  20. package/ChoroplethSvg.js +539 -103
  21. package/ChoroplethSvg.js.map +4 -4
  22. package/Column/Column.d.ts.map +1 -1
  23. package/Column.config.js +0 -1
  24. package/Column.config.js.map +2 -2
  25. package/Column.js +495 -99
  26. package/Column.js.map +3 -3
  27. package/Ellipse.js +528 -104
  28. package/Ellipse.js.map +4 -4
  29. package/Events/PureEvents/PureEvents.d.ts.map +1 -1
  30. package/Events.js +612 -149
  31. package/Events.js.map +4 -4
  32. package/FillerGauge/FillerGauge.d.ts.map +1 -1
  33. package/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +1 -1
  34. package/FillerGauge.js +535 -140
  35. package/FillerGauge.js.map +4 -4
  36. package/Image/Image.d.ts.map +1 -1
  37. package/Image.js +564 -108
  38. package/Image.js.map +4 -4
  39. package/Line/Line.d.ts.map +1 -1
  40. package/Line/lineUtils.d.ts.map +1 -1
  41. package/Line/mockdata/LineData.d.ts +59 -0
  42. package/Line/mockdata/LineData.d.ts.map +1 -1
  43. package/Line.config.js +0 -1
  44. package/Line.config.js.map +2 -2
  45. package/Line.js +601 -100
  46. package/Line.js.map +3 -3
  47. package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts +5 -0
  48. package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -1
  49. package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -1
  50. package/LinkGraph/PureLinkGraph/components/Graph.d.ts +9 -1
  51. package/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +1 -1
  52. package/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +1 -1
  53. package/LinkGraph/PureLinkGraph/components/Node.d.ts +1 -0
  54. package/LinkGraph/PureLinkGraph/components/Node.d.ts.map +1 -1
  55. package/LinkGraph/PureLinkGraph/components/Nodes.d.ts +1 -0
  56. package/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +1 -1
  57. package/LinkGraph/PureLinkGraph/measurementUtils.d.ts +16 -0
  58. package/LinkGraph/PureLinkGraph/measurementUtils.d.ts.map +1 -0
  59. package/LinkGraph/PureLinkGraph/utils/iconLoader.d.ts.map +1 -1
  60. package/LinkGraph/config.d.ts.map +1 -1
  61. package/LinkGraph.config.js +15 -1
  62. package/LinkGraph.config.js.map +2 -2
  63. package/LinkGraph.js +1355 -654
  64. package/LinkGraph.js.map +4 -4
  65. package/Map/Map.d.ts +2 -2
  66. package/Map/Map.d.ts.map +1 -1
  67. package/Map/PureMap/BubbleLayer.d.ts +5 -0
  68. package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
  69. package/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -1
  70. package/Map/PureMap/PureMap.d.ts.map +1 -1
  71. package/Map/PureMap/PureMapContainer.d.ts.map +1 -1
  72. package/Map/PureMap/Tooltip.d.ts.map +1 -1
  73. package/Map/config.d.ts.map +1 -1
  74. package/Map.config.js +0 -1
  75. package/Map.config.js.map +2 -2
  76. package/Map.js +738 -228
  77. package/Map.js.map +4 -4
  78. package/Markdown/Markdown.d.ts.map +1 -1
  79. package/Markdown.js +548 -95
  80. package/Markdown.js.map +4 -4
  81. package/MarkerGauge/MarkerGauge.d.ts +5 -1
  82. package/MarkerGauge/MarkerGauge.d.ts.map +1 -1
  83. package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts +4 -0
  84. package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -1
  85. package/MarkerGauge/config.d.ts.map +1 -1
  86. package/MarkerGauge.config.js +121 -3
  87. package/MarkerGauge.config.js.map +3 -3
  88. package/MarkerGauge.js +1318 -142
  89. package/MarkerGauge.js.map +4 -4
  90. package/NetworkGraph/NetworkGraph.d.ts +22 -0
  91. package/NetworkGraph/NetworkGraph.d.ts.map +1 -0
  92. package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts +60 -0
  93. package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -0
  94. package/NetworkGraph/PureNetworkGraph/components/Link.d.ts +19 -0
  95. package/NetworkGraph/PureNetworkGraph/components/Link.d.ts.map +1 -0
  96. package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts +29 -0
  97. package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts.map +1 -0
  98. package/NetworkGraph/PureNetworkGraph/components/Node.d.ts +27 -0
  99. package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -0
  100. package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts +12 -0
  101. package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts.map +1 -0
  102. package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts +13 -0
  103. package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -0
  104. package/NetworkGraph/PureNetworkGraph/mockdata/data.d.ts +140 -0
  105. package/NetworkGraph/PureNetworkGraph/mockdata/data.d.ts.map +1 -0
  106. package/NetworkGraph/PureNetworkGraph/mockdata/datasource.d.ts +89 -0
  107. package/NetworkGraph/PureNetworkGraph/mockdata/datasource.d.ts.map +1 -0
  108. package/NetworkGraph/PureNetworkGraph/utils/forceLayout.d.ts +47 -0
  109. package/NetworkGraph/PureNetworkGraph/utils/forceLayout.d.ts.map +1 -0
  110. package/NetworkGraph/PureNetworkGraph/utils/iconLoader.d.ts +78 -0
  111. package/NetworkGraph/PureNetworkGraph/utils/iconLoader.d.ts.map +1 -0
  112. package/NetworkGraph/PureNetworkGraph/utils/networkGraphShared.d.ts +111 -0
  113. package/NetworkGraph/PureNetworkGraph/utils/networkGraphShared.d.ts.map +1 -0
  114. package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +123 -0
  115. package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -0
  116. package/NetworkGraph/config.d.ts +4 -0
  117. package/NetworkGraph/config.d.ts.map +1 -0
  118. package/NetworkGraph/index.d.ts +3 -0
  119. package/NetworkGraph/index.d.ts.map +1 -0
  120. package/NetworkGraph.config.js +938 -0
  121. package/NetworkGraph.config.js.map +7 -0
  122. package/NetworkGraph.js +6793 -0
  123. package/NetworkGraph.js.map +7 -0
  124. package/ParallelCoordinates.js +532 -93
  125. package/ParallelCoordinates.js.map +4 -4
  126. package/Pie/Pie.d.ts.map +1 -1
  127. package/Pie/pieUtils.d.ts.map +1 -1
  128. package/Pie.js +510 -101
  129. package/Pie.js.map +3 -3
  130. package/Punchcard.js +523 -84
  131. package/Punchcard.js.map +4 -4
  132. package/Rectangle.js +537 -113
  133. package/Rectangle.js.map +4 -4
  134. package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
  135. package/Sankey.js +562 -111
  136. package/Sankey.js.map +4 -4
  137. package/Scatter/Scatter.d.ts.map +1 -1
  138. package/Scatter.config.js +0 -1
  139. package/Scatter.config.js.map +2 -2
  140. package/Scatter.js +505 -99
  141. package/Scatter.js.map +3 -3
  142. package/SingleValue/SingleValue.d.ts.map +1 -1
  143. package/SingleValue/config.d.ts.map +1 -1
  144. package/SingleValue.config.js +15 -2
  145. package/SingleValue.config.js.map +2 -2
  146. package/SingleValue.js +656 -173
  147. package/SingleValue.js.map +3 -3
  148. package/SingleValueBasic.js.map +1 -1
  149. package/SingleValueIcon/SingleValueIcon.d.ts.map +1 -1
  150. package/SingleValueIcon/config.d.ts.map +1 -1
  151. package/SingleValueIcon.config.js +0 -1
  152. package/SingleValueIcon.config.js.map +2 -2
  153. package/SingleValueIcon.js +512 -124
  154. package/SingleValueIcon.js.map +3 -3
  155. package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts +0 -8
  156. package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -1
  157. package/SingleValueRadial/SingleValueRadial.d.ts.map +1 -1
  158. package/SingleValueRadial.config.js +0 -1
  159. package/SingleValueRadial.config.js.map +2 -2
  160. package/SingleValueRadial.js +517 -124
  161. package/SingleValueRadial.js.map +4 -4
  162. package/SparkLine.js +46 -8
  163. package/SparkLine.js.map +2 -2
  164. package/Table/PureTable.d.ts +10 -0
  165. package/Table/PureTable.d.ts.map +1 -1
  166. package/Table/cells/SparklineCell.d.ts.map +1 -1
  167. package/Table/config.d.ts.map +1 -1
  168. package/Table/hooks.d.ts +4 -0
  169. package/Table/hooks.d.ts.map +1 -1
  170. package/Table.config.js +1 -1
  171. package/Table.config.js.map +2 -2
  172. package/Table.js +760 -223
  173. package/Table.js.map +4 -4
  174. package/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +1 -1
  175. package/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +1 -1
  176. package/Timeline/config.d.ts.map +1 -1
  177. package/Timeline.config.js +31 -12
  178. package/Timeline.config.js.map +4 -4
  179. package/Timeline.js +649 -211
  180. package/Timeline.js.map +4 -4
  181. package/common/Charting.d.ts +5 -0
  182. package/common/Charting.d.ts.map +1 -1
  183. package/common/Charting.js +12 -0
  184. package/common/Charting.js.map +2 -2
  185. package/common/OptionsDoc.js.map +1 -1
  186. package/common/ThemesDoc.js +0 -1
  187. package/common/ThemesDoc.js.map +2 -2
  188. package/common/TimeSeriesChartWrapper.d.ts +24 -11
  189. package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
  190. package/common/TimeSeriesChartWrapper.js +561 -83
  191. package/common/TimeSeriesChartWrapper.js.map +4 -4
  192. package/common/chartingUtils.d.ts +45 -5
  193. package/common/chartingUtils.d.ts.map +1 -1
  194. package/common/chartingUtils.js +102 -8
  195. package/common/chartingUtils.js.map +3 -3
  196. package/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -1
  197. package/common/hocs/withTrellis.d.ts.map +1 -1
  198. package/common/interfaces/DashboardVizProps.d.ts +0 -3
  199. package/common/interfaces/DashboardVizProps.d.ts.map +1 -1
  200. package/common/interfaces/DataSource.d.ts +1 -1
  201. package/common/interfaces/DataSource.d.ts.map +1 -1
  202. package/common/shapeUtils.js +5 -20
  203. package/common/shapeUtils.js.map +2 -2
  204. package/common/utils/dataUtils.d.ts.map +1 -1
  205. package/common/utils/dataUtils.js +5 -4
  206. package/common/utils/dataUtils.js.map +2 -2
  207. package/common/utils/mapUtils.js +16 -9
  208. package/common/utils/mapUtils.js.map +2 -2
  209. package/common/utils/singleValueUtils.js +17 -18
  210. package/common/utils/singleValueUtils.js.map +2 -2
  211. package/common/utils/textUtils.d.ts +20 -0
  212. package/common/utils/textUtils.d.ts.map +1 -0
  213. package/common/utils/textUtils.js +76 -0
  214. package/common/utils/textUtils.js.map +7 -0
  215. package/common/utils/trellisUtils.d.ts.map +1 -1
  216. package/common/utils/trellisUtils.js +12 -14
  217. package/common/utils/trellisUtils.js.map +2 -2
  218. package/common/withDashboardViz.d.ts.map +1 -1
  219. package/common/withDashboardViz.js +544 -84
  220. package/common/withDashboardViz.js.map +4 -4
  221. package/package.json +33 -26
  222. package/common/utils/styleUtils.d.ts +0 -2
  223. package/common/utils/styleUtils.d.ts.map +0 -1
  224. package/common/utils/styleUtils.js +0 -30
  225. package/common/utils/styleUtils.js.map +0 -7
@@ -0,0 +1,938 @@
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
+ "use strict";
5
+ var __create = Object.create;
6
+ var __defProp = Object.defineProperty;
7
+ var __defProps = Object.defineProperties;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
10
+ var __getOwnPropNames = Object.getOwnPropertyNames;
11
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
12
+ var __getProtoOf = Object.getPrototypeOf;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
15
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16
+ var __spreadValues = (a, b) => {
17
+ for (var prop in b || (b = {}))
18
+ if (__hasOwnProp.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ if (__getOwnPropSymbols)
21
+ for (var prop of __getOwnPropSymbols(b)) {
22
+ if (__propIsEnum.call(b, prop))
23
+ __defNormalProp(a, prop, b[prop]);
24
+ }
25
+ return a;
26
+ };
27
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28
+ var __export = (target, all) => {
29
+ for (var name in all)
30
+ __defProp(target, name, { get: all[name], enumerable: true });
31
+ };
32
+ var __copyProps = (to, from, except, desc) => {
33
+ if (from && typeof from === "object" || typeof from === "function") {
34
+ for (let key of __getOwnPropNames(from))
35
+ if (!__hasOwnProp.call(to, key) && key !== except)
36
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
37
+ }
38
+ return to;
39
+ };
40
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
41
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
42
+ // If the importer is in node compatibility mode or this is not an ESM
43
+ // file that has been converted to a CommonJS file using a Babel-
44
+ // compatible transform (i.e. "__esModule" has not been set), then set
45
+ // "default" to the CommonJS "module.exports" for node compatibility.
46
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
47
+ mod
48
+ ));
49
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
50
+
51
+ // src/NetworkGraph/config.ts
52
+ var config_exports = {};
53
+ __export(config_exports, {
54
+ default: () => config_default
55
+ });
56
+ module.exports = __toCommonJS(config_exports);
57
+
58
+ // esm-externals:@splunk/ui-utils/i18n
59
+ var i18n_exports = {};
60
+ __export(i18n_exports, {
61
+ default: () => i18n_default
62
+ });
63
+ var defaultImport = __toESM(require("@splunk/ui-utils/i18n"));
64
+ __reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
65
+ var i18n_default = "default" in defaultImport ? defaultImport.default : defaultImport;
66
+
67
+ // esm-externals:@splunk/visualization-color-palettes/editors/PresetPalettes
68
+ var PresetPalettes_exports = {};
69
+ __export(PresetPalettes_exports, {
70
+ default: () => PresetPalettes_default
71
+ });
72
+ var defaultImport2 = __toESM(require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
73
+ __reExport(PresetPalettes_exports, require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
74
+ var PresetPalettes_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
75
+
76
+ // esm-externals:@splunk/visualization-icons
77
+ var visualization_icons_exports = {};
78
+ __export(visualization_icons_exports, {
79
+ default: () => visualization_icons_default
80
+ });
81
+ var defaultImport3 = __toESM(require("@splunk/visualization-icons"));
82
+ __reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
83
+ var visualization_icons_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
84
+
85
+ // esm-externals:@splunk/visualization-icons/placeholders
86
+ var placeholders_exports = {};
87
+ __export(placeholders_exports, {
88
+ default: () => placeholders_default
89
+ });
90
+ var defaultImport4 = __toESM(require("@splunk/visualization-icons/placeholders"));
91
+ __reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
92
+ var placeholders_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
93
+
94
+ // esm-externals:@splunk/visualization-schemas
95
+ var visualization_schemas_exports = {};
96
+ __export(visualization_schemas_exports, {
97
+ default: () => visualization_schemas_default
98
+ });
99
+ var defaultImport5 = __toESM(require("@splunk/visualization-schemas"));
100
+ __reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
101
+ var visualization_schemas_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
102
+
103
+ // esm-externals:@splunk/themes
104
+ var themes_exports = {};
105
+ __export(themes_exports, {
106
+ default: () => themes_default
107
+ });
108
+ var defaultImport6 = __toESM(require("@splunk/themes"));
109
+ __reExport(themes_exports, require("@splunk/themes"));
110
+ var themes_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
111
+
112
+ // esm-externals:lodash
113
+ var lodash_exports = {};
114
+ __export(lodash_exports, {
115
+ default: () => lodash_default
116
+ });
117
+ var defaultImport7 = __toESM(require("lodash"));
118
+ __reExport(lodash_exports, require("lodash"));
119
+ var lodash_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
120
+
121
+ // esm-externals:@splunk/visualizations-shared/configUtils
122
+ var configUtils_exports = {};
123
+ __export(configUtils_exports, {
124
+ default: () => configUtils_default
125
+ });
126
+ var defaultImport8 = __toESM(require("@splunk/visualizations-shared/configUtils"));
127
+ __reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
128
+ var configUtils_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
129
+
130
+ // src/common/utils/configUtils.ts
131
+ function enhanceConfig(vizConfig) {
132
+ const enhancedConfig = __spreadValues({}, vizConfig);
133
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map((config2) => {
134
+ return __spreadProps(__spreadValues({}, config2), { open: config2.open || false });
135
+ });
136
+ return enhancedConfig;
137
+ }
138
+
139
+ // src/NetworkGraph/PureNetworkGraph/utils/networkGraphShared.ts
140
+ var DEFAULT_CHART_WIDTH = 800;
141
+ var DEFAULT_CHART_HEIGHT = 500;
142
+ var DEFAULT_NODE_RADIUS = 24;
143
+
144
+ // esm-externals:@splunk/themes/pick
145
+ var pick_exports = {};
146
+ __export(pick_exports, {
147
+ default: () => pick_default
148
+ });
149
+ var defaultImport9 = __toESM(require("@splunk/themes/pick"));
150
+ __reExport(pick_exports, require("@splunk/themes/pick"));
151
+ var pick_default = "default" in defaultImport9 ? defaultImport9.default : defaultImport9;
152
+
153
+ // esm-externals:@splunk/themes/variables
154
+ var variables_exports = {};
155
+ __export(variables_exports, {
156
+ default: () => variables_default
157
+ });
158
+ var defaultImport10 = __toESM(require("@splunk/themes/variables"));
159
+ __reExport(variables_exports, require("@splunk/themes/variables"));
160
+ var variables_default = "default" in defaultImport10 ? defaultImport10.default : defaultImport10;
161
+
162
+ // src/common/ThemedDefaults.tsx
163
+ var defaultBackgroundColor = (props) => pick_default({
164
+ enterprise: {
165
+ dark: variables_default.black(props),
166
+ light: variables_default.white(props)
167
+ },
168
+ prisma: variables_default.backgroundColorSection(props)
169
+ })(props);
170
+
171
+ // src/common/editorConfig/BackgroundColor.ts
172
+ var background = ({
173
+ label,
174
+ themes: themes2,
175
+ labelPosition
176
+ }) => [
177
+ {
178
+ label: (0, i18n_exports._)(label || "Background color"),
179
+ option: "backgroundColor",
180
+ editor: "editor.color",
181
+ editorProps: {
182
+ labelPosition: labelPosition || "top",
183
+ themes: themes2
184
+ }
185
+ }
186
+ ];
187
+ var BackgroundColor_default = background;
188
+
189
+ // esm-externals:dagre
190
+ var dagre_exports = {};
191
+ __export(dagre_exports, {
192
+ default: () => dagre_default
193
+ });
194
+ var defaultImport11 = __toESM(require("dagre"));
195
+ __reExport(dagre_exports, require("dagre"));
196
+ var dagre_default = "default" in defaultImport11 ? defaultImport11.default : defaultImport11;
197
+
198
+ // esm-externals:@splunk/visualizations-shared/iconUtils
199
+ var iconUtils_exports = {};
200
+ __export(iconUtils_exports, {
201
+ default: () => iconUtils_default
202
+ });
203
+ var defaultImport12 = __toESM(require("@splunk/visualizations-shared/iconUtils"));
204
+ __reExport(iconUtils_exports, require("@splunk/visualizations-shared/iconUtils"));
205
+ var iconUtils_default = "default" in defaultImport12 ? defaultImport12.default : defaultImport12;
206
+
207
+ // esm-externals:@splunk/visualization-encoding/utils/colorUtils
208
+ var colorUtils_exports = {};
209
+ __export(colorUtils_exports, {
210
+ default: () => colorUtils_default
211
+ });
212
+ var defaultImport13 = __toESM(require("@splunk/visualization-encoding/utils/colorUtils"));
213
+ __reExport(colorUtils_exports, require("@splunk/visualization-encoding/utils/colorUtils"));
214
+ var colorUtils_default = "default" in defaultImport13 ? defaultImport13.default : defaultImport13;
215
+
216
+ // src/common/utils/textUtils.ts
217
+ var VIZ_FONT_FAMILY = "'Splunk Platform Sans', 'Splunk Data Sans', Roboto, Droid, 'Helvetica Neue', Helvetica, Arial, sans-serif";
218
+
219
+ // esm-externals:d3-force
220
+ var d3_force_exports = {};
221
+ __export(d3_force_exports, {
222
+ default: () => d3_force_default
223
+ });
224
+ var defaultImport14 = __toESM(require("d3-force"));
225
+ __reExport(d3_force_exports, require("d3-force"));
226
+ var d3_force_default = "default" in defaultImport14 ? defaultImport14.default : defaultImport14;
227
+
228
+ // esm-externals:d3-quadtree
229
+ var d3_quadtree_exports = {};
230
+ __export(d3_quadtree_exports, {
231
+ default: () => d3_quadtree_default
232
+ });
233
+ var defaultImport15 = __toESM(require("d3-quadtree"));
234
+ __reExport(d3_quadtree_exports, require("d3-quadtree"));
235
+ var d3_quadtree_default = "default" in defaultImport15 ? defaultImport15.default : defaultImport15;
236
+
237
+ // src/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.ts
238
+ var LABEL_FONT_SIZE = 12;
239
+ var FONT = `${LABEL_FONT_SIZE}px ${VIZ_FONT_FAMILY}`;
240
+ var MIN_EDGE_LENGTH = 48;
241
+ var MIN_NODE_CONTAINER_SIZE = DEFAULT_NODE_RADIUS * 2 + MIN_EDGE_LENGTH;
242
+ var getDefaultPreferPorts = (layout, hierarchyDirection) => {
243
+ if (layout === "hierarchical") {
244
+ if (hierarchyDirection === "topBottom" || hierarchyDirection === "bottomTop") {
245
+ return "vertical";
246
+ }
247
+ return "horizontal";
248
+ }
249
+ return "none";
250
+ };
251
+
252
+ // src/NetworkGraph/config.ts
253
+ var isDynamicOption2 = (option, valuesName, contextName) => {
254
+ if (option && typeof option === "string" && (option.trim().startsWith(`> ${valuesName} | gradient(${contextName})`) || option.trim().startsWith(`> ${valuesName} | rangeValue(${contextName})`) || option.trim().startsWith(`> ${valuesName} | matchValue(${contextName})`))) {
255
+ return true;
256
+ }
257
+ return false;
258
+ };
259
+ var defaultContext = {
260
+ colorRangeConfig: [
261
+ { to: 20, value: "#D41F1F" },
262
+ { from: 20, to: 40, value: "#D94E17" },
263
+ { from: 40, to: 60, value: "#CBA700" },
264
+ { from: 60, to: 80, value: "#669922" },
265
+ { from: 80, value: "#118832" }
266
+ ],
267
+ colorMatchConfig: [{ match: "", value: "#5C33FF" }],
268
+ colorGradientConfig: { colors: ["#252214", "#B846BB"] }
269
+ };
270
+ var dataContract = {
271
+ requiredDataSources: [
272
+ {
273
+ name: "primary",
274
+ description: "DataSource that powers the visualization"
275
+ }
276
+ ],
277
+ optionalDataSources: [
278
+ {
279
+ name: "nodeSource",
280
+ description: "DataSource that populates node data"
281
+ }
282
+ ],
283
+ initialRequestParams: {
284
+ primary: { offset: 0, count: 1e4 }
285
+ }
286
+ };
287
+ var size = {
288
+ initialWidth: DEFAULT_CHART_WIDTH,
289
+ initialHeight: DEFAULT_CHART_HEIGHT
290
+ };
291
+ var themes = {
292
+ defaultBackgroundColor,
293
+ defaultNodeColor: (props) => themes_exports.variables.neutral100(props),
294
+ defaultNodeIconColor: (props) => themes_exports.variables.contentColorActive(props),
295
+ defaultLinkColor: (props) => themes_exports.variables.borderColorStrong(props)
296
+ };
297
+ var editorConfig = [
298
+ {
299
+ label: (0, i18n_exports._)("Data configurations"),
300
+ layout: [
301
+ [
302
+ {
303
+ label: (0, i18n_exports._)("Source"),
304
+ option: "source",
305
+ editor: "editor.columnSelector",
306
+ editorProps: {
307
+ dataSourceKey: "primary",
308
+ supportsDSL: true,
309
+ expectedDataPrimitive: ["series"],
310
+ filterByTypes: ["string", "number"]
311
+ }
312
+ }
313
+ ],
314
+ [
315
+ {
316
+ label: (0, i18n_exports._)("Target"),
317
+ option: "target",
318
+ editor: "editor.columnSelector",
319
+ editorProps: {
320
+ dataSourceKey: "primary",
321
+ supportsDSL: true,
322
+ expectedDataPrimitive: ["series"],
323
+ filterByTypes: ["string", "number"]
324
+ }
325
+ }
326
+ ],
327
+ [
328
+ {
329
+ label: (0, i18n_exports._)("Node labels"),
330
+ option: "nodeTexts",
331
+ editor: "editor.columnSelector",
332
+ editorProps: {
333
+ dataSourceKey: "primary",
334
+ supportsDSL: true,
335
+ expectedDataPrimitive: ["series"],
336
+ filterByTypes: ["string"]
337
+ }
338
+ }
339
+ ],
340
+ [
341
+ {
342
+ label: (0, i18n_exports._)("Node values"),
343
+ option: "nodeValues",
344
+ editor: "editor.columnSelector",
345
+ editorProps: {
346
+ dataSourceKey: "primary",
347
+ supportsDSL: true,
348
+ expectedDataPrimitive: ["series"],
349
+ filterByTypes: ["number"]
350
+ }
351
+ }
352
+ ],
353
+ [
354
+ {
355
+ label: (0, i18n_exports._)("Tooltip header field"),
356
+ option: "tooltipHeaderField",
357
+ editor: "editor.columnSelector",
358
+ editorProps: {
359
+ dataSourceKey: "primary",
360
+ supportsDSL: true,
361
+ expectedDataPrimitive: ["series"],
362
+ shouldShowInternalFields: false
363
+ }
364
+ }
365
+ ],
366
+ [
367
+ {
368
+ label: (0, i18n_exports._)("Tooltip node fields"),
369
+ option: "tooltipNodeFields",
370
+ editor: "editor.columnMultiSelectionByFieldNameEditor"
371
+ }
372
+ ],
373
+ [
374
+ {
375
+ label: (0, i18n_exports._)("Result limit"),
376
+ option: "resultLimit",
377
+ editor: "editor.number",
378
+ editorProps: {
379
+ min: 0,
380
+ step: 1,
381
+ max: 1e4
382
+ }
383
+ }
384
+ ]
385
+ ]
386
+ },
387
+ {
388
+ label: (0, i18n_exports._)("Data display"),
389
+ layout: [
390
+ [
391
+ {
392
+ label: (0, i18n_exports._)("Layout"),
393
+ option: "layout",
394
+ editor: "editor.select",
395
+ editorProps: {
396
+ values: [
397
+ {
398
+ label: (0, i18n_exports._)("Grid"),
399
+ value: "grid",
400
+ description: (0, i18n_exports._)("Arrange nodes in a grid layout.")
401
+ },
402
+ {
403
+ label: (0, i18n_exports._)("Preset"),
404
+ value: "preset",
405
+ description: (0, i18n_exports._)("Use predefined positions for nodes.")
406
+ },
407
+ {
408
+ label: (0, i18n_exports._)("Hierarchical"),
409
+ value: "hierarchical",
410
+ description: (0, i18n_exports._)("Arrange nodes in a hierarchy.")
411
+ },
412
+ {
413
+ label: (0, i18n_exports._)("Force"),
414
+ value: "force",
415
+ description: (0, i18n_exports._)("Use a force-directed layout.")
416
+ }
417
+ ],
418
+ help: (0, i18n_exports._)("Some nodes may have custom positions. Changing the layout will reset them."),
419
+ showHelp: ({ options }) => options.layout === "force"
420
+ }
421
+ }
422
+ ],
423
+ // grid only options
424
+ [
425
+ {
426
+ label: (0, i18n_exports._)("Grid columns"),
427
+ option: "gridColumns",
428
+ editor: "editor.number",
429
+ editorProps: {
430
+ min: 1,
431
+ // max should be same as result limit
432
+ max: 1e3,
433
+ step: 1
434
+ },
435
+ showEditor: ({ options }) => options.layout === "grid" || options.layout === void 0
436
+ }
437
+ ],
438
+ // preset only options
439
+ [
440
+ {
441
+ label: (0, i18n_exports._)("X positions"),
442
+ option: "xPositions",
443
+ editor: "editor.columnSelector",
444
+ editorProps: {
445
+ dataSourceKey: "primary",
446
+ supportsDSL: true,
447
+ expectedDataPrimitive: ["series"],
448
+ filterByTypes: ["number"]
449
+ },
450
+ showEditor: ({ options }) => options.layout === "preset"
451
+ }
452
+ ],
453
+ [
454
+ {
455
+ label: (0, i18n_exports._)("Y positions"),
456
+ option: "yPositions",
457
+ editor: "editor.columnSelector",
458
+ editorProps: {
459
+ dataSourceKey: "primary",
460
+ supportsDSL: true,
461
+ expectedDataPrimitive: ["series"],
462
+ filterByTypes: ["number"]
463
+ },
464
+ showEditor: ({ options }) => options.layout === "preset"
465
+ }
466
+ ],
467
+ // hierarchical only options
468
+ [
469
+ {
470
+ label: (0, i18n_exports._)("Hierarchy direction"),
471
+ option: "hierarchyDirection",
472
+ editor: "editor.select",
473
+ editorProps: {
474
+ values: [
475
+ { label: (0, i18n_exports._)("Top to Bottom"), value: "topBottom" },
476
+ { label: (0, i18n_exports._)("Bottom to Top"), value: "bottomTop" },
477
+ { label: (0, i18n_exports._)("Left to Right"), value: "leftRight" },
478
+ { label: (0, i18n_exports._)("Right to Left"), value: "rightLeft" }
479
+ ]
480
+ },
481
+ showEditor: ({ options }) => options.layout === "hierarchical"
482
+ }
483
+ ],
484
+ // force only options
485
+ [
486
+ {
487
+ label: (0, i18n_exports._)("Charge strength"),
488
+ option: "chargeStrength",
489
+ editor: "editor.number",
490
+ editorProps: {
491
+ help: (0, i18n_exports._)(
492
+ "Strength of positive charge (attraction) or negative charge (repulsion) between nodes."
493
+ ),
494
+ helpFormat: "tooltip",
495
+ step: 1
496
+ },
497
+ showEditor: ({ options }) => options.layout === "force"
498
+ },
499
+ {
500
+ label: (0, i18n_exports._)("Charge theta"),
501
+ option: "chargeTheta",
502
+ editor: "editor.number",
503
+ editorProps: {
504
+ help: (0, i18n_exports._)(
505
+ "Higher value means faster performance but less predictable node positioning."
506
+ ),
507
+ helpFormat: "tooltip",
508
+ step: 0.1,
509
+ min: 0
510
+ },
511
+ showEditor: ({ options }) => options.layout === "force"
512
+ }
513
+ ],
514
+ [
515
+ {
516
+ label: (0, i18n_exports._)("Charge distance minimum"),
517
+ option: "chargeDistanceMin",
518
+ editor: "editor.number",
519
+ editorProps: {
520
+ min: 0,
521
+ step: 1,
522
+ help: (0, i18n_exports._)("Minimum distance between nodes to apply the charge force to."),
523
+ helpFormat: "tooltip"
524
+ },
525
+ showEditor: ({ options }) => options.layout === "force"
526
+ }
527
+ ],
528
+ [
529
+ {
530
+ label: (0, i18n_exports._)("Charge distance maximum"),
531
+ option: "chargeDistanceMax",
532
+ editor: "editor.number",
533
+ editorProps: {
534
+ min: 0,
535
+ step: 1,
536
+ help: (0, i18n_exports._)("Maximum distance between nodes to apply the charge force to."),
537
+ helpFormat: "tooltip"
538
+ },
539
+ showEditor: ({ options }) => options.layout === "force"
540
+ }
541
+ ],
542
+ [
543
+ {
544
+ label: (0, i18n_exports._)("Collider padding"),
545
+ option: "collidePadding",
546
+ editor: "editor.number",
547
+ editorProps: {
548
+ min: 0,
549
+ step: 1,
550
+ help: (0, i18n_exports._)("Padding around nodes for repulsion between nodes or clusters."),
551
+ helpFormat: "tooltip"
552
+ },
553
+ showEditor: ({ options }) => options.layout === "force"
554
+ },
555
+ {
556
+ label: (0, i18n_exports._)("Collider strength"),
557
+ option: "collideStrength",
558
+ editor: "editor.number",
559
+ editorProps: {
560
+ min: 0,
561
+ step: 0.1,
562
+ help: (0, i18n_exports._)("Strength of the collider used for node repulsion."),
563
+ helpFormat: "tooltip"
564
+ },
565
+ showEditor: ({ options }) => options.layout === "force"
566
+ }
567
+ ],
568
+ [
569
+ {
570
+ label: (0, i18n_exports._)("Node cluster types"),
571
+ option: "nodeTypes",
572
+ editor: "editor.columnSelector",
573
+ editorProps: {
574
+ dataSourceKey: "primary",
575
+ supportsDSL: true,
576
+ expectedDataPrimitive: ["series"],
577
+ tooltip: (0, i18n_exports._)("Array of node types used for clustering."),
578
+ filterByTypes: ["string"]
579
+ },
580
+ showEditor: ({ options }) => options.layout === "force"
581
+ }
582
+ ],
583
+ [
584
+ {
585
+ label: (0, i18n_exports._)("Cluster strength"),
586
+ option: "clusterStrength",
587
+ editor: "editor.number",
588
+ editorProps: {
589
+ min: 0,
590
+ max: 1,
591
+ step: 0.01,
592
+ help: (0, i18n_exports._)("Strength of clustering force between nodes of the same type."),
593
+ helpFormat: "tooltip"
594
+ },
595
+ showEditor: ({ options }) => options.layout === "force" && options.nodeTypes !== void 0
596
+ }
597
+ ],
598
+ [
599
+ {
600
+ label: (0, i18n_exports._)("Link distance"),
601
+ option: "linkDistance",
602
+ editor: "editor.number",
603
+ editorProps: {
604
+ min: 0,
605
+ step: 1,
606
+ help: (0, i18n_exports._)("Ideal distance between linked nodes. Enter a higher value for more space."),
607
+ helpFormat: "tooltip"
608
+ },
609
+ showEditor: ({ options }) => options.layout === "force"
610
+ },
611
+ {
612
+ label: (0, i18n_exports._)("Link strength"),
613
+ option: "linkStrength",
614
+ editor: "editor.number",
615
+ editorProps: {
616
+ min: 0,
617
+ step: 0.1,
618
+ help: (0, i18n_exports._)(
619
+ "Strength of spring force between linked nodes. Higher value makes link lengths closer to linkDistance."
620
+ ),
621
+ helpFormat: "tooltip"
622
+ },
623
+ showEditor: ({ options }) => options.layout === "force"
624
+ }
625
+ ],
626
+ [
627
+ {
628
+ label: (0, i18n_exports._)("Horizontal padding (px)"),
629
+ option: "nodeHorizontalPadding",
630
+ editor: "editor.number",
631
+ editorProps: {
632
+ min: 0,
633
+ step: 1,
634
+ max: 500
635
+ },
636
+ showEditor: ({ options }) => options.layout === "hierarchical" || options.layout === "grid" || options.layout === void 0
637
+ },
638
+ {
639
+ label: (0, i18n_exports._)("Vertical padding (px)"),
640
+ option: "nodeVerticalPadding",
641
+ editor: "editor.number",
642
+ editorProps: {
643
+ min: 0,
644
+ step: 1,
645
+ max: 500
646
+ },
647
+ showEditor: ({ options }) => options.layout === "hierarchical" || options.layout === "grid" || options.layout === void 0
648
+ }
649
+ ],
650
+ [
651
+ {
652
+ label: (0, i18n_exports._)("Link direction"),
653
+ option: "showDirection",
654
+ editor: "editor.radioBar",
655
+ editorProps: {
656
+ values: [
657
+ { label: (0, i18n_exports._)("Bi-direction"), value: "bidirection" },
658
+ { label: (0, i18n_exports._)("One-way"), value: "oneWay" },
659
+ { label: (0, i18n_exports._)("None"), value: "none" }
660
+ ]
661
+ }
662
+ }
663
+ ],
664
+ [
665
+ {
666
+ label: (0, i18n_exports._)("Link connection style"),
667
+ option: "linkStyle",
668
+ editor: "editor.select",
669
+ editorProps: {
670
+ values: [
671
+ { label: (0, i18n_exports._)("Straight"), value: "straight" },
672
+ { label: (0, i18n_exports._)("C Shape"), value: "c" },
673
+ { label: (0, i18n_exports._)("S Shape"), value: "s" },
674
+ { label: (0, i18n_exports._)("Z Shape"), value: "z" }
675
+ ]
676
+ }
677
+ }
678
+ ],
679
+ [
680
+ {
681
+ label: (0, i18n_exports._)("Link port preference"),
682
+ option: "preferPorts",
683
+ editor: "editor.radioBar",
684
+ editorProps: {
685
+ values: [
686
+ { label: (0, i18n_exports._)("Horizontal"), value: "horizontal" },
687
+ { label: (0, i18n_exports._)("Vertical"), value: "vertical" },
688
+ { label: (0, i18n_exports._)("None"), value: "none" }
689
+ ]
690
+ },
691
+ showEditor: ({ options }) => options.linkStyle === "s" || options.linkStyle === "z",
692
+ overrideDefaultValue: ({ options }) => getDefaultPreferPorts(options == null ? void 0 : options.layout, options == null ? void 0 : options.hierarchyDirection)
693
+ }
694
+ ],
695
+ [
696
+ {
697
+ label: (0, i18n_exports._)("Show zoom controls"),
698
+ option: "showZoomControls",
699
+ editor: "editor.checkbox",
700
+ editorProps: {
701
+ labelPosition: "right"
702
+ }
703
+ }
704
+ ]
705
+ ]
706
+ },
707
+ {
708
+ label: (0, i18n_exports._)("Color and style"),
709
+ layout: [
710
+ BackgroundColor_default({ themes }),
711
+ [
712
+ {
713
+ label: (0, i18n_exports._)("Node color"),
714
+ filterKeywords: ["range", "match", "gradient", "dynamic coloring"],
715
+ option: "nodeColors",
716
+ context: "nodeColorsEditorConfig",
717
+ editor: "editor.networkGraphDynamicColor",
718
+ editorProps: {
719
+ themes,
720
+ contextName: "nodeColorsEditorConfig",
721
+ defaultStaticColorValue: "> themes.defaultNodeColor",
722
+ flyoutTitle: (0, i18n_exports._)("Dynamic coloring"),
723
+ formatters: [
724
+ {
725
+ label: (0, i18n_exports._)("Gradient"),
726
+ value: "gradient",
727
+ isDefault: true,
728
+ defaults: {
729
+ nodeColorValues: defaultContext.colorGradientConfig
730
+ }
731
+ },
732
+ {
733
+ label: (0, i18n_exports._)("Ranges"),
734
+ value: "rangeValue",
735
+ defaults: {
736
+ nodeColorValues: defaultContext.colorRangeConfig
737
+ }
738
+ },
739
+ {
740
+ label: (0, i18n_exports._)("Matches"),
741
+ value: "matchValue",
742
+ defaults: {
743
+ nodeColorValues: defaultContext.colorMatchConfig
744
+ }
745
+ }
746
+ ],
747
+ dataSelectors: [
748
+ {
749
+ label: (0, i18n_exports._)("Node color values"),
750
+ value: "nodeColorValues"
751
+ }
752
+ ],
753
+ defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig
754
+ }
755
+ }
756
+ ],
757
+ [
758
+ {
759
+ label: (0, i18n_exports._)("Node color data"),
760
+ option: "nodeColorValues",
761
+ editor: "editor.columnSelector",
762
+ showEditor: ({ options }) => isDynamicOption2(options.nodeColors, "nodeColorValues", "nodeColorsEditorConfig"),
763
+ editorProps: {
764
+ dataSourceKey: "primary",
765
+ supportsDSL: true,
766
+ expectedDataPrimitive: ["series"],
767
+ hideEditorWhenLoading: true
768
+ }
769
+ }
770
+ ],
771
+ [
772
+ {
773
+ label: (0, i18n_exports._)("Node icon color"),
774
+ filterKeywords: ["range", "match", "gradient", "dynamic coloring"],
775
+ option: "nodeIconColors",
776
+ editor: "editor.networkGraphDynamicColor",
777
+ context: "nodeIconColorsEditorConfig",
778
+ editorProps: {
779
+ themes,
780
+ contextName: "nodeIconColorsEditorConfig",
781
+ defaultStaticColorValue: "> themes.defaultNodeIconColor",
782
+ flyoutTitle: (0, i18n_exports._)("Dynamic coloring"),
783
+ formatters: [
784
+ {
785
+ label: (0, i18n_exports._)("Gradient"),
786
+ value: "gradient",
787
+ isDefault: true,
788
+ defaults: {
789
+ nodeIconColorValues: defaultContext.colorGradientConfig
790
+ }
791
+ },
792
+ {
793
+ label: (0, i18n_exports._)("Ranges"),
794
+ value: "rangeValue",
795
+ defaults: {
796
+ nodeIconColorValues: defaultContext.colorRangeConfig
797
+ }
798
+ },
799
+ {
800
+ label: (0, i18n_exports._)("Matches"),
801
+ value: "matchValue",
802
+ defaults: {
803
+ nodeIconColorValues: defaultContext.colorMatchConfig
804
+ }
805
+ }
806
+ ],
807
+ dataSelectors: [
808
+ {
809
+ label: (0, i18n_exports._)("Node Icon color values"),
810
+ value: "nodeIconColorValues"
811
+ }
812
+ ],
813
+ defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig
814
+ }
815
+ }
816
+ ],
817
+ [
818
+ {
819
+ label: (0, i18n_exports._)("Node icon color data"),
820
+ option: "nodeIconColorValues",
821
+ editor: "editor.columnSelector",
822
+ showEditor: ({ options }) => isDynamicOption2(
823
+ options.nodeIconColors,
824
+ "nodeIconColorValues",
825
+ "nodeIconColorsEditorConfig"
826
+ ),
827
+ editorProps: {
828
+ dataSourceKey: "primary",
829
+ supportsDSL: true,
830
+ expectedDataPrimitive: ["series"],
831
+ hideEditorWhenLoading: true
832
+ }
833
+ }
834
+ ],
835
+ [
836
+ {
837
+ label: (0, i18n_exports._)("Link color"),
838
+ filterKeywords: ["range", "match", "gradient", "dynamic coloring"],
839
+ option: "linkColors",
840
+ context: "linkColorsEditorConfig",
841
+ editor: "editor.networkGraphDynamicColor",
842
+ editorProps: {
843
+ themes,
844
+ contextName: "linkColorsEditorConfig",
845
+ defaultStaticColorValue: "> themes.defaultLinkColor",
846
+ flyoutTitle: (0, i18n_exports._)("Dynamic coloring"),
847
+ formatters: [
848
+ {
849
+ label: (0, i18n_exports._)("Gradient"),
850
+ value: "gradient",
851
+ isDefault: true,
852
+ defaults: {
853
+ linkColorValues: defaultContext.colorGradientConfig
854
+ }
855
+ },
856
+ {
857
+ label: (0, i18n_exports._)("Ranges"),
858
+ value: "rangeValue",
859
+ defaults: {
860
+ linkColorValues: defaultContext.colorRangeConfig
861
+ }
862
+ },
863
+ {
864
+ label: (0, i18n_exports._)("Matches"),
865
+ value: "matchValue",
866
+ defaults: {
867
+ linkColorValues: defaultContext.colorMatchConfig
868
+ }
869
+ }
870
+ ],
871
+ dataSelectors: [
872
+ {
873
+ label: (0, i18n_exports._)("Link color values"),
874
+ value: "linkColorValues"
875
+ }
876
+ ],
877
+ defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig
878
+ }
879
+ }
880
+ ],
881
+ [
882
+ {
883
+ label: (0, i18n_exports._)("Link color data"),
884
+ option: "linkColorValues",
885
+ editor: "editor.columnSelector",
886
+ showEditor: ({ options }) => isDynamicOption2(options.linkColors, "linkColorValues", "linkColorsEditorConfig"),
887
+ editorProps: {
888
+ dataSourceKey: "primary",
889
+ supportsDSL: true,
890
+ expectedDataPrimitive: ["series"],
891
+ hideEditorWhenLoading: true
892
+ }
893
+ }
894
+ ]
895
+ ]
896
+ }
897
+ ];
898
+ var config = {
899
+ /**
900
+ * unique viz key
901
+ */
902
+ key: "splunk.networkGraph",
903
+ /**
904
+ * viz name
905
+ */
906
+ name: "NetworkGraph",
907
+ category: "Flow" /* FLOW */,
908
+ status: "preview",
909
+ /**
910
+ * viz icon, this needs to be updated
911
+ */
912
+ icon: visualization_icons_exports.NetworkGraph,
913
+ placeholderIcon: placeholders_exports.NetworkGraph,
914
+ dataContract,
915
+ size,
916
+ defaultContext,
917
+ optionsSchema: visualization_schemas_exports.networkGraphOptionsSchema,
918
+ editorConfig,
919
+ events: {
920
+ "node.click": {
921
+ description: "triggered when user clicks a node"
922
+ },
923
+ "node.mouseOver": {
924
+ description: "triggered when user moves the cursor onto a node"
925
+ },
926
+ "node.mouseOut": {
927
+ description: "triggered when user moves the cursor away from a node"
928
+ },
929
+ "node.drag": {
930
+ description: "triggered when user drags a node"
931
+ }
932
+ },
933
+ supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "events" /* EVENTS */, "placeholder" /* PLACEHOLDER */],
934
+ themes,
935
+ requiredProps: []
936
+ };
937
+ var config_default = enhanceConfig(config);
938
+ //# sourceMappingURL=NetworkGraph.config.js.map