@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.
Files changed (153) hide show
  1. package/Area.config.js +1399 -1590
  2. package/Area.config.js.map +7 -1
  3. package/Area.js +3750 -4822
  4. package/Area.js.map +7 -1
  5. package/Bar.config.js +1423 -1566
  6. package/Bar.config.js.map +7 -1
  7. package/Bar.js +3856 -4884
  8. package/Bar.js.map +7 -1
  9. package/Bubble.config.js +1009 -1200
  10. package/Bubble.config.js.map +7 -1
  11. package/Bubble.js +2768 -4491
  12. package/Bubble.js.map +7 -1
  13. package/ChoroplethSvg.config.js +282 -582
  14. package/ChoroplethSvg.config.js.map +7 -1
  15. package/ChoroplethSvg.js +2032 -3808
  16. package/ChoroplethSvg.js.map +7 -1
  17. package/Column.config.js +1390 -1534
  18. package/Column.config.js.map +7 -1
  19. package/Column.js +3849 -4906
  20. package/Column.js.map +7 -1
  21. package/Ellipse.config.js +443 -774
  22. package/Ellipse.config.js.map +7 -1
  23. package/Ellipse.js +1667 -3327
  24. package/Ellipse.js.map +7 -1
  25. package/Events.config.js +207 -492
  26. package/Events.config.js.map +7 -1
  27. package/Events.js +2643 -4647
  28. package/Events.js.map +7 -1
  29. package/FillerGauge.config.js +420 -775
  30. package/FillerGauge.config.js.map +7 -1
  31. package/FillerGauge.js +2164 -4575
  32. package/FillerGauge.js.map +7 -1
  33. package/Image.config.js +144 -411
  34. package/Image.config.js.map +7 -1
  35. package/Image.js +1423 -3046
  36. package/Image.js.map +7 -1
  37. package/Line.config.js +1421 -1616
  38. package/Line.config.js.map +7 -1
  39. package/Line.js +3790 -4901
  40. package/Line.js.map +7 -1
  41. package/LinkGraph.config.js +390 -632
  42. package/LinkGraph.config.js.map +7 -1
  43. package/LinkGraph.js +5272 -6185
  44. package/LinkGraph.js.map +7 -1
  45. package/MIGRATION.md +6 -0
  46. package/Map.config.js +501 -801
  47. package/Map.config.js.map +7 -1
  48. package/Map.js +3382 -5659
  49. package/Map.js.map +7 -1
  50. package/Markdown.config.js +232 -528
  51. package/Markdown.config.js.map +7 -1
  52. package/Markdown.js +1671 -3212
  53. package/Markdown.js.map +7 -1
  54. package/MarkerGauge.config.js +308 -613
  55. package/MarkerGauge.config.js.map +7 -1
  56. package/MarkerGauge.js +2215 -4531
  57. package/MarkerGauge.js.map +7 -1
  58. package/ParallelCoordinates.config.js +282 -581
  59. package/ParallelCoordinates.config.js.map +7 -1
  60. package/ParallelCoordinates.js +2057 -4718
  61. package/ParallelCoordinates.js.map +7 -1
  62. package/Pie.config.js +278 -547
  63. package/Pie.config.js.map +7 -1
  64. package/Pie.js +2107 -3984
  65. package/Pie.js.map +7 -1
  66. package/Punchcard.config.js +291 -578
  67. package/Punchcard.config.js.map +7 -1
  68. package/Punchcard.js +2734 -5037
  69. package/Punchcard.js.map +7 -1
  70. package/Rectangle.config.js +455 -770
  71. package/Rectangle.config.js.map +7 -1
  72. package/Rectangle.js +1664 -3258
  73. package/Rectangle.js.map +7 -1
  74. package/Sankey.config.js +291 -626
  75. package/Sankey.config.js.map +7 -1
  76. package/Sankey.js +2766 -4908
  77. package/Sankey.js.map +7 -1
  78. package/Scatter.config.js +988 -1180
  79. package/Scatter.config.js.map +7 -1
  80. package/Scatter.js +2801 -4506
  81. package/Scatter.js.map +7 -1
  82. package/SingleValue.config.js +794 -1250
  83. package/SingleValue.config.js.map +7 -1
  84. package/SingleValue.js +4185 -7327
  85. package/SingleValue.js.map +7 -1
  86. package/SingleValueBasic.js +382 -1527
  87. package/SingleValueBasic.js.map +7 -1
  88. package/SingleValueIcon.config.js +757 -1207
  89. package/SingleValueIcon.config.js.map +7 -1
  90. package/SingleValueIcon.js +3427 -6293
  91. package/SingleValueIcon.js.map +7 -1
  92. package/SingleValueRadial.config.js +686 -1121
  93. package/SingleValueRadial.config.js.map +7 -1
  94. package/SingleValueRadial.js +3923 -6994
  95. package/SingleValueRadial.js.map +7 -1
  96. package/SparkLine.js +439 -746
  97. package/SparkLine.js.map +7 -1
  98. package/TRELLIS.md +16 -15
  99. package/Table.config.js +565 -879
  100. package/Table.config.js.map +7 -1
  101. package/Table.js +3260 -5334
  102. package/Table.js.map +7 -1
  103. package/common/Charting.js +617 -1498
  104. package/common/Charting.js.map +7 -1
  105. package/common/ChartingApi.js +46 -170
  106. package/common/ChartingApi.js.map +7 -1
  107. package/common/DocExampleWithVizSandbox.js +270 -473
  108. package/common/DocExampleWithVizSandbox.js.map +7 -1
  109. package/common/EventsDoc.js +172 -464
  110. package/common/EventsDoc.js.map +7 -1
  111. package/common/GaugeMajorTicks.js +249 -347
  112. package/common/GaugeMajorTicks.js.map +7 -1
  113. package/common/GaugeValueMarker.js +201 -311
  114. package/common/GaugeValueMarker.js.map +7 -1
  115. package/common/OptionsDoc.js +351 -911
  116. package/common/OptionsDoc.js.map +7 -1
  117. package/common/OverviewDoc.js +435 -769
  118. package/common/OverviewDoc.js.map +7 -1
  119. package/common/SplunkVisualization.js +116 -259
  120. package/common/SplunkVisualization.js.map +7 -1
  121. package/common/SplunkVisualizationApi.js +40 -156
  122. package/common/SplunkVisualizationApi.js.map +7 -1
  123. package/common/ThemesDoc.js +271 -420
  124. package/common/ThemesDoc.js.map +7 -1
  125. package/common/chartingUtils.js +140 -312
  126. package/common/chartingUtils.js.map +7 -1
  127. package/common/docUtils.js +148 -266
  128. package/common/docUtils.js.map +7 -1
  129. package/common/gaugeUtils.js +280 -808
  130. package/common/gaugeUtils.js.map +7 -1
  131. package/common/shapeUtils.js +106 -211
  132. package/common/shapeUtils.js.map +7 -1
  133. package/common/utils/configUtils.js +126 -252
  134. package/common/utils/configUtils.js.map +7 -1
  135. package/common/utils/dataUtils.js +217 -812
  136. package/common/utils/dataUtils.js.map +7 -1
  137. package/common/utils/featureFlagUtils.js +53 -133
  138. package/common/utils/featureFlagUtils.js.map +7 -1
  139. package/common/utils/hocUtils.js +32 -122
  140. package/common/utils/hocUtils.js.map +7 -1
  141. package/common/utils/mapUtils.js +502 -1337
  142. package/common/utils/mapUtils.js.map +7 -1
  143. package/common/utils/singleValueUtils.js +466 -1013
  144. package/common/utils/singleValueUtils.js.map +7 -1
  145. package/common/utils/testHelper.js +92 -146
  146. package/common/utils/testHelper.js.map +7 -1
  147. package/common/utils/trellisUtils.js +277 -489
  148. package/common/utils/trellisUtils.js.map +7 -1
  149. package/common/utils/urlUtils.js +28 -112
  150. package/common/utils/urlUtils.js.map +7 -1
  151. package/common/withDashboardViz.js +1191 -2431
  152. package/common/withDashboardViz.js.map +7 -1
  153. package/package.json +53 -45
@@ -1,916 +1,493 @@
1
- /*!
2
- * Copyright © 2024 Splunk Inc.
3
- * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
- * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
- */
6
- module.exports =
7
- /******/ (function(modules) { // webpackBootstrap
8
- /******/ // The module cache
9
- /******/ var installedModules = {};
10
- /******/
11
- /******/ // The require function
12
- /******/ function __webpack_require__(moduleId) {
13
- /******/
14
- /******/ // Check if module is in cache
15
- /******/ if(installedModules[moduleId]) {
16
- /******/ return installedModules[moduleId].exports;
17
- /******/ }
18
- /******/ // Create a new module (and put it into the cache)
19
- /******/ var module = installedModules[moduleId] = {
20
- /******/ i: moduleId,
21
- /******/ l: false,
22
- /******/ exports: {}
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 = 68);
91
- /******/ })
92
- /************************************************************************/
93
- /******/ ([
94
- /* 0 */
95
- /***/ (function(module, exports) {
96
-
97
- module.exports = require("@splunk/ui-utils/i18n");
98
-
99
- /***/ }),
100
- /* 1 */
101
- /***/ (function(module, exports) {
102
-
103
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
104
-
105
- /***/ }),
106
- /* 2 */
107
- /***/ (function(module, exports) {
108
-
109
- module.exports = require("@splunk/visualization-schemas");
110
-
111
- /***/ }),
112
- /* 3 */
113
- /***/ (function(module, exports, __webpack_require__) {
114
-
115
- "use strict";
116
-
117
-
118
- var _toConsumableArray = __webpack_require__(1);
119
-
120
- Object.defineProperty(exports, "__esModule", {
121
- value: true
122
- });
123
- exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
124
-
125
- var lodash_1 = __webpack_require__(5); // included for backwards compatibility
126
-
127
-
128
- var visualization_schemas_1 = __webpack_require__(2);
129
-
130
- Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
131
- enumerable: true,
132
- get: function get() {
133
- return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
134
- }
135
- });
136
- /**
137
- * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
138
- * this function also collapse all editor panels
139
- * @param vizConfig a Visualization Config
140
- * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
141
- * and containing `open: false` for all editor panels in editorConfig
142
- */
143
-
144
- function enhanceConfig(vizConfig) {
145
- var enhancedConfig = Object.assign({}, vizConfig);
146
- enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
147
- return Object.assign(Object.assign({}, config), {
148
- open: config.open || false
149
- });
150
- });
151
- return enhancedConfig;
152
- }
153
-
154
- exports.enhanceConfig = enhanceConfig;
155
- /**
156
- * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
157
- * Created for editor unit tests
158
- * @param vizConfig a Visualization Config
159
- * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
160
- */
161
-
162
- function uncollapseEditorConfig(vizConfig) {
163
- var editorPanelUncollapsedConfig = Object.assign({}, vizConfig);
164
- editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
165
- return Object.assign(Object.assign({}, config), {
166
- open: true
167
- });
168
- });
169
- return editorPanelUncollapsedConfig;
170
- }
171
-
172
- exports.uncollapseEditorConfig = uncollapseEditorConfig;
173
-
174
- function isDynamicOption(option) {
175
- return option && typeof option === 'string' && option.trim().startsWith('>') || false;
176
- }
177
-
178
- exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
179
- // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
180
-
181
- /**
182
- * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
183
- * 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
184
- * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
185
- * 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
186
- *
187
- * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
188
- */
189
-
190
- function hasCompatibleContexts(vizContext, presetContext) {
191
- var presetContextKeys = Object.keys(presetContext);
192
- return presetContextKeys.every(function (contextKey) {
193
- return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
194
- });
195
- }
196
- /**
197
- * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
198
- */
199
-
200
-
201
- function hasCompatibleOptions(vizOptions, presetOptions) {
202
- var presetOptionKeys = Object.keys(presetOptions);
203
- return presetOptionKeys.every(function (optionKey) {
204
- return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
205
- });
206
- }
207
- /**
208
- * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
209
- * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
210
- *
211
- * @param {Object} vizContext - the current vizContext definition
212
- * @param {Object} vizOptions - the current vizOptions definition
213
- * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
214
- */
215
-
216
-
217
- function getInitialPreset(vizContext, vizOptions, presets) {
218
- return presets.find(function (preset) {
219
- var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
220
- var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
221
- var presetContextKeys = Object.keys(presetContext);
222
- var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
223
- // if not, then the preset is invalid in config.ts
224
-
225
- if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
226
- return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
227
- });
228
- }
229
-
230
- exports.getInitialPreset = getInitialPreset;
231
- /**
232
- * generates number precision values for a Select editor
233
- *
234
- * @param {Number} numPrecisionValues - number of integer precision values to generate
235
- * @returns {{ label: string; value; string }[]} array of { label, value } tuples
236
- */
237
-
238
- function generatePrecisionValues(numPrecisionValues) {
239
- return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
240
- return {
241
- label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
242
- value: i
243
- };
244
- });
245
- }
246
-
247
- exports.generatePrecisionValues = generatePrecisionValues;
248
- /**
249
- * insert layout in layout array, return a new layout array instead of updating the original
250
- *
251
- * @param {EditorLayoutConfig[][]} layout - editor layout
252
- * @param {Number} index - the index to insert layout item(s)
253
- * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
254
- * @returns {EditorLayoutConfig[][]} new editor layout with insertion
255
- */
256
-
257
- var insertLayout = function insertLayout(layout, index) {
258
- for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
259
- layoutItems[_key - 2] = arguments[_key];
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]);
23
+ }
24
+ return a;
25
+ };
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 });
260
36
  }
261
-
262
- return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
37
+ return to;
263
38
  };
264
-
265
- exports.insertLayout = insertLayout;
266
-
267
- /***/ }),
268
- /* 4 */
269
- /***/ (function(module, exports) {
270
-
271
- module.exports = require("@splunk/visualizations-shared/configUtils");
272
-
273
- /***/ }),
274
- /* 5 */
275
- /***/ (function(module, exports) {
276
-
277
- module.exports = require("lodash");
278
-
279
- /***/ }),
280
- /* 6 */
281
- /***/ (function(module, exports, __webpack_require__) {
282
-
283
- "use strict";
284
-
285
-
286
- Object.defineProperty(exports, "__esModule", {
287
- value: true
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/SingleValueIcon/config.ts
51
+ var config_exports = {};
52
+ __export(config_exports, {
53
+ default: () => config_default
288
54
  });
289
- exports.VizBehavior = void 0;
290
- var VizBehavior;
291
-
292
- (function (VizBehavior) {
293
- /**
294
- * Dynamic Options Behavior.
295
- * This allows visualization options to be powered by data
296
- *
297
- * **Example**
298
- *
299
- * sparklineValues: ">primary|seriesByIndex(0)"
300
- * would configure sparklineValues with an array of data points
301
- * coming from the first series in the primary datasource
302
- *
303
- */
304
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
305
- VizBehavior["EVENTS"] = "events";
306
- VizBehavior["DOWNSAMPLING"] = "downsampling";
307
- /**
308
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
309
- * missing.
310
- * @type {string}
311
- */
312
-
313
- VizBehavior["PLACEHOLDER"] = "placeholder";
314
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
315
- VizBehavior["TRELLIS"] = "trellis";
316
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
55
+ module.exports = __toCommonJS(config_exports);
317
56
 
318
- /***/ }),
319
- /* 7 */
320
- /***/ (function(module, exports, __webpack_require__) {
321
-
322
- "use strict";
323
-
324
-
325
- Object.defineProperty(exports, "__esModule", {
326
- value: true
57
+ // esm-externals:@splunk/ui-utils/i18n
58
+ var i18n_exports = {};
59
+ __export(i18n_exports, {
60
+ default: () => i18n_default
327
61
  });
328
- exports.VizCategory = void 0;
329
- var VizCategory;
330
-
331
- (function (VizCategory) {
332
- VizCategory["SINGLE_VALUE"] = "Single Value";
333
- VizCategory["TRENDS"] = "Trends";
334
- VizCategory["COMPARISONS"] = "Comparisons";
335
- VizCategory["TABLE"] = "Table";
336
- VizCategory["GAUGE"] = "Gauge";
337
- VizCategory["DISTRIBUTIONS"] = "Distributions";
338
- VizCategory["CHOROPLETH"] = "Choropleth Maps";
339
- VizCategory["SHAPES"] = "Shapes";
340
- VizCategory["MISC"] = "misc";
341
- VizCategory["FLOW"] = "Flow";
342
- VizCategory["CORRELATION"] = "Correlation";
343
- VizCategory["SPATIAL"] = "Spatial";
344
- })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
345
-
346
- /***/ }),
347
- /* 8 */
348
- /***/ (function(module, exports) {
349
-
350
- module.exports = require("@splunk/themes/pick");
351
-
352
- /***/ }),
353
- /* 9 */
354
- /***/ (function(module, exports) {
355
-
356
- module.exports = require("@splunk/themes/variables");
357
-
358
- /***/ }),
359
- /* 10 */,
360
- /* 11 */,
361
- /* 12 */,
362
- /* 13 */
363
- /***/ (function(module, exports) {
364
-
365
- module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
366
-
367
- /***/ }),
368
- /* 14 */,
369
- /* 15 */,
370
- /* 16 */,
371
- /* 17 */,
372
- /* 18 */,
373
- /* 19 */,
374
- /* 20 */,
375
- /* 21 */,
376
- /* 22 */
377
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
378
-
379
- "use strict";
380
- __webpack_require__.r(__webpack_exports__);
381
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
382
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
383
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
384
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
385
-
386
-
387
- var StaticBackgroundColorEditor = {
388
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background color'),
389
- option: 'backgroundColor',
390
- editor: 'editor.color',
391
- showEditor: function showEditor(_ref) {
392
- var options = _ref.options;
393
- return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
394
- }
395
- };
396
- /* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
397
-
398
- /***/ }),
399
- /* 23 */
400
- /***/ (function(module, exports) {
401
-
402
- module.exports = require("@splunk/visualizations-shared/colorConstants");
403
-
404
- /***/ }),
405
- /* 24 */
406
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
407
-
408
- "use strict";
409
- __webpack_require__.r(__webpack_exports__);
410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
411
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
412
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
413
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
414
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
415
-
416
-
417
- var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
418
- var defaultContext = _ref.defaultContext,
419
- defaultPalettesConfig = _ref.defaultPalettesConfig;
420
- return {
421
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend value'),
422
- option: 'trendColor',
423
- context: 'trendColorEditorConfig',
424
- editor: 'editor.dynamicColor',
425
- showEditor: function showEditor(_ref2) {
426
- var options = _ref2.options;
427
- return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
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-color-palettes/editors/PresetPalettes
76
+ var PresetPalettes_exports = {};
77
+ __export(PresetPalettes_exports, {
78
+ default: () => PresetPalettes_default
79
+ });
80
+ var defaultImport3 = __toESM(require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
81
+ __reExport(PresetPalettes_exports, require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
82
+ var PresetPalettes_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
83
+
84
+ // esm-externals:@splunk/themes/pick
85
+ var pick_exports = {};
86
+ __export(pick_exports, {
87
+ default: () => pick_default
88
+ });
89
+ var defaultImport4 = __toESM(require("@splunk/themes/pick"));
90
+ __reExport(pick_exports, require("@splunk/themes/pick"));
91
+ var pick_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
92
+
93
+ // esm-externals:@splunk/themes/variables
94
+ var variables_exports = {};
95
+ __export(variables_exports, {
96
+ default: () => variables_default
97
+ });
98
+ var defaultImport5 = __toESM(require("@splunk/themes/variables"));
99
+ __reExport(variables_exports, require("@splunk/themes/variables"));
100
+ var variables_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
101
+
102
+ // esm-externals:@splunk/visualizations-shared/configUtils
103
+ var configUtils_exports = {};
104
+ __export(configUtils_exports, {
105
+ default: () => configUtils_default
106
+ });
107
+ var defaultImport6 = __toESM(require("@splunk/visualizations-shared/configUtils"));
108
+ __reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
109
+ var configUtils_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
110
+
111
+ // src/common/configContext/singleValueContext.ts
112
+ var defaultContext = {
113
+ trendColorConfig: [
114
+ {
115
+ to: 0,
116
+ value: "#9E2520"
428
117
  },
429
- editorProps: {
430
- labelPosition: 'top',
431
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: trend value'),
432
- formatters: [{
433
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
434
- value: 'rangeValue',
435
- defaults: {
436
- trendValue: defaultContext.trendColorConfig
437
- }
438
- }],
439
- dataSelectors: [{
440
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend value'),
441
- value: 'trendValue'
442
- }],
443
- defaultPalettesConfig: defaultPalettesConfig
118
+ {
119
+ from: 0,
120
+ value: "#1C6B2D"
444
121
  }
445
- };
122
+ ],
123
+ majorColorConfig: [
124
+ { to: 20, value: "#D41F1F" },
125
+ { from: 20, to: 40, value: "#D94E17" },
126
+ { from: 40, to: 60, value: "#CBA700" },
127
+ { from: 60, to: 80, value: "#669922" },
128
+ { from: 80, value: "#118832" }
129
+ ],
130
+ majorColorMatchConfig: [{ match: "", value: "#5C33FF" }],
131
+ trendValueCopy: "> trendValue",
132
+ divisor: "> majorValue | subtract(trendValueCopy) | divideBy(100)",
133
+ trendValuePercent: "> trendValue | divideBy(divisor)"
446
134
  };
447
135
 
448
- /***/ }),
449
- /* 25 */
450
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
451
-
452
- "use strict";
453
- __webpack_require__.r(__webpack_exports__);
454
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
455
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
456
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
457
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
458
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
459
-
460
-
461
- var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
462
- var defaultContext = _ref.defaultContext,
463
- defaultPalettesConfig = _ref.defaultPalettesConfig;
464
- return {
465
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background color'),
466
- option: 'backgroundColor',
467
- context: 'backgroundColorEditorConfig',
468
- editor: 'editor.dynamicColor',
469
- showEditor: function showEditor(_ref2) {
470
- var options = _ref2.options;
471
- return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
136
+ // src/common/editorConfig/StaticMajorAndTrendLayout.js
137
+ var StaticMajorAndTrendLayout = [
138
+ [
139
+ {
140
+ label: (0, i18n_exports._)("Unit position"),
141
+ // todo: we need a new editor combining unit and position
142
+ option: "unitPosition",
143
+ editor: "editor.select",
144
+ editorProps: {
145
+ values: [
146
+ { label: (0, i18n_exports._)("Before"), value: "before" },
147
+ { label: (0, i18n_exports._)("After"), value: "after" }
148
+ ]
149
+ },
150
+ showEditor: ({ options }) => options.showValue || options.showValue === void 0
472
151
  },
473
- editorProps: {
474
- labelPosition: 'top',
475
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: background'),
476
- formatters: [{
477
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
478
- value: 'rangeValue',
479
- defaults: {
480
- majorValue: defaultContext.majorColorConfig,
481
- trendValue: defaultContext.trendColorConfig
482
- }
483
- }, {
484
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
485
- value: 'matchValue',
486
- defaults: {
487
- majorValue: defaultContext.majorColorMatchConfig
488
- }
489
- }],
490
- dataSelectors: [{
491
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
492
- value: 'majorValue'
493
- }, {
494
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend'),
495
- value: 'trendValue'
496
- }],
497
- defaultPalettesConfig: defaultPalettesConfig
152
+ {
153
+ label: (0, i18n_exports._)("Unit label"),
154
+ option: "unit",
155
+ editor: "editor.text",
156
+ showEditor: ({ options }) => options.showValue || options.showValue === void 0
498
157
  }
499
- };
500
- };
501
-
502
- /***/ }),
503
- /* 26 */
504
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
158
+ ],
159
+ [
160
+ {
161
+ label: (0, i18n_exports._)("Precision"),
162
+ option: "numberPrecision",
163
+ editor: "editor.number",
164
+ editorProps: {
165
+ min: 0,
166
+ max: 20
167
+ },
168
+ showEditor: ({ options }) => options.showValue || options.showValue === void 0
169
+ }
170
+ ]
171
+ ];
172
+ var StaticMajorAndTrendLayout_default = StaticMajorAndTrendLayout;
505
173
 
506
- "use strict";
507
- __webpack_require__.r(__webpack_exports__);
508
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
509
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
174
+ // src/common/editorConfig/StaticBackgroundColorEditor.js
175
+ var StaticBackgroundColorEditor = {
176
+ label: (0, i18n_exports._)("Background color"),
177
+ option: "backgroundColor",
178
+ editor: "editor.color",
179
+ showEditor: ({ options }) => !(0, configUtils_exports.isDynamicOption)(options.backgroundColor)
180
+ };
181
+ var StaticBackgroundColorEditor_default = StaticBackgroundColorEditor;
510
182
 
511
- var StaticMajorAndTrendLayout = [[{
512
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Unit position'),
513
- // todo: we need a new editor combining unit and position
514
- option: 'unitPosition',
515
- editor: 'editor.select',
516
- editorProps: {
517
- values: [{
518
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Before'),
519
- value: 'before'
520
- }, {
521
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('After'),
522
- value: 'after'
523
- }]
524
- },
525
- showEditor: function showEditor(_ref) {
526
- var options = _ref.options;
527
- return options.showValue || options.showValue === undefined;
528
- }
529
- }, {
530
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Unit label'),
531
- option: 'unit',
532
- editor: 'editor.text',
533
- showEditor: function showEditor(_ref2) {
534
- var options = _ref2.options;
535
- return options.showValue || options.showValue === undefined;
536
- }
537
- }], [{
538
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Precision'),
539
- option: 'numberPrecision',
540
- editor: 'editor.number',
541
- editorProps: {
542
- min: 0,
543
- max: 20
544
- },
545
- showEditor: function showEditor(_ref3) {
546
- var options = _ref3.options;
547
- return options.showValue || options.showValue === undefined;
183
+ // esm-externals:@splunk/visualizations-shared/colorConstants
184
+ var colorConstants_exports = {};
185
+ __export(colorConstants_exports, {
186
+ default: () => colorConstants_default
187
+ });
188
+ var defaultImport7 = __toESM(require("@splunk/visualizations-shared/colorConstants"));
189
+ __reExport(colorConstants_exports, require("@splunk/visualizations-shared/colorConstants"));
190
+ var colorConstants_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
191
+
192
+ // src/common/editorConfig/StaticIconColorEditor.js
193
+ var StaticIconColorEditor = [
194
+ {
195
+ label: (0, i18n_exports._)("Icon"),
196
+ option: "iconColor",
197
+ editor: "editor.color",
198
+ showEditor: ({ options }) => !(0, configUtils_exports.isDynamicOption)(options.iconColor),
199
+ editorProps: {
200
+ labelPosition: "top",
201
+ value: null,
202
+ palette: [null, ...colorConstants_exports.COLOR_EDITOR_PALETTE]
203
+ }
548
204
  }
549
- }]];
550
- /* harmony default export */ __webpack_exports__["default"] = (StaticMajorAndTrendLayout);
551
-
552
- /***/ }),
553
- /* 27 */
554
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
555
-
556
- "use strict";
557
- __webpack_require__.r(__webpack_exports__);
558
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
559
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
560
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
561
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
562
-
205
+ ];
206
+ var StaticIconColorEditor_default = StaticIconColorEditor;
563
207
 
208
+ // src/common/editorConfig/StaticMajorColorEditor.js
564
209
  var StaticMajorColorEditor = {
565
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
566
- option: 'majorColor',
567
- editor: 'editor.color',
568
- showEditor: function showEditor(_ref) {
569
- var options = _ref.options;
570
- return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
571
- }
210
+ label: (0, i18n_exports._)("Major value"),
211
+ option: "majorColor",
212
+ editor: "editor.color",
213
+ showEditor: ({ options }) => !(0, configUtils_exports.isDynamicOption)(options.majorColor)
572
214
  };
573
- /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
574
-
575
- /***/ }),
576
- /* 28 */
577
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
578
-
579
- "use strict";
580
- __webpack_require__.r(__webpack_exports__);
581
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
582
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
583
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
584
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
585
-
215
+ var StaticMajorColorEditor_default = StaticMajorColorEditor;
586
216
 
217
+ // src/common/editorConfig/StaticTrendColorEditor.js
587
218
  var StaticTrendColorEditor = {
588
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Trend value'),
589
- option: 'trendColor',
590
- editor: 'editor.color',
591
- showEditor: function showEditor(_ref) {
592
- var options = _ref.options;
593
- return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
594
- },
595
- isDisabled: function isDisabled(_ref2) {
596
- var options = _ref2.options;
597
- return options.trendDisplay === 'off';
598
- }
219
+ label: (0, i18n_exports._)("Trend value"),
220
+ option: "trendColor",
221
+ editor: "editor.color",
222
+ showEditor: ({ options }) => !(0, configUtils_exports.isDynamicOption)(options.trendColor),
223
+ isDisabled: ({ options }) => options.trendDisplay === "off"
599
224
  };
600
- /* harmony default export */ __webpack_exports__["default"] = (StaticTrendColorEditor);
601
-
602
- /***/ }),
603
- /* 29 */
604
- /***/ (function(module, exports, __webpack_require__) {
605
-
606
- "use strict";
607
-
608
-
609
- Object.defineProperty(exports, "__esModule", {
610
- value: true
611
- });
612
- exports.TrellisBackgroundColorEditor = exports.TrellisEditorConfig = void 0;
613
-
614
- var React = __webpack_require__(30);
615
-
616
- var i18n_1 = __webpack_require__(0);
617
-
618
- var FeatureFlagContext_1 = __webpack_require__(31);
619
-
620
- var visualization_schemas_1 = __webpack_require__(2);
621
- /* eslint-disable react-hooks/rules-of-hooks */
622
-
623
-
624
- exports.TrellisEditorConfig = [[{
625
- label: (0, i18n_1._)('Trellis layout'),
626
- option: 'splitByLayout',
627
- editor: 'editor.toggle',
628
- showEditor: function showEditor() {
629
- var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
630
- var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
631
- return isTrellisFeatureFlagOn;
632
- }
633
- }], [{
634
- label: (0, i18n_1._)('Split by'),
635
- option: 'trellisSplitBy',
636
- editor: 'editor.trellisSplitBy',
637
- editorProps: {
638
- dataSourceKey: 'primary'
639
- },
640
- showEditor: function showEditor(_ref) {
641
- var options = _ref.options;
642
- var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
643
- var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
644
- return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
645
- }
646
- }], [{
647
- label: (0, i18n_1._)('Number of columns'),
648
- option: 'trellisColumns',
649
- editor: 'editor.number',
650
- editorProps: {
651
- min: 1
652
- },
653
- placeholder: (0, i18n_1._)('Auto'),
654
- showEditor: function showEditor(_ref2) {
655
- var options = _ref2.options;
656
- var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
657
- var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
658
- return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
659
- }
660
- }], [{
661
- label: (0, i18n_1._)('Min column width'),
662
- option: 'trellisMinColumnWidth',
663
- editor: 'editor.number',
225
+ var StaticTrendColorEditor_default = StaticTrendColorEditor;
226
+
227
+ // src/common/editorConfig/DynamicMajorColorEditor.js
228
+ var getDynamicMajorColorEditor = ({ defaultContext: defaultContext2, defaultPalettesConfig: defaultPalettesConfig2 }) => ({
229
+ label: (0, i18n_exports._)("Major value"),
230
+ option: "majorColor",
231
+ context: "majorColorEditorConfig",
232
+ editor: "editor.dynamicColor",
233
+ showEditor: ({ options }) => (0, configUtils_exports.isDynamicOption)(options.majorColor),
664
234
  editorProps: {
665
- min: 1
666
- },
667
- showEditor: function showEditor(_ref3) {
668
- var options = _ref3.options;
669
- var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
670
- var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
671
- return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
672
- }
673
- }, {
674
- label: (0, i18n_1._)('Row height'),
675
- option: 'trellisRowHeight',
676
- editor: 'editor.number',
677
- editorProps: {
678
- min: 1
679
- },
680
- showEditor: function showEditor(_ref4) {
681
- var options = _ref4.options;
682
- var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
683
- var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
684
- return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
235
+ labelPosition: "top",
236
+ flyoutTitle: (0, i18n_exports._)("Dynamic coloring: major value"),
237
+ formatters: [
238
+ {
239
+ label: (0, i18n_exports._)("Ranges"),
240
+ value: "rangeValue",
241
+ defaults: {
242
+ majorValue: defaultContext2.majorColorConfig
243
+ }
244
+ },
245
+ {
246
+ label: (0, i18n_exports._)("Matches"),
247
+ value: "matchValue",
248
+ defaults: {
249
+ majorValue: defaultContext2.majorColorMatchConfig
250
+ }
251
+ }
252
+ ],
253
+ dataSelectors: [
254
+ {
255
+ label: (0, i18n_exports._)("Major value"),
256
+ value: "majorValue"
257
+ }
258
+ ],
259
+ defaultPalettesConfig: defaultPalettesConfig2
685
260
  }
686
- }], [{
687
- label: (0, i18n_1._)('Max number of components per page'),
688
- option: 'trellisPageCount',
689
- editor: 'editor.number',
261
+ });
262
+
263
+ // src/common/editorConfig/DynamicTrendColorEditor.js
264
+ var getDynamicTrendColorEditor = ({ defaultContext: defaultContext2, defaultPalettesConfig: defaultPalettesConfig2 }) => ({
265
+ label: (0, i18n_exports._)("Trend value"),
266
+ option: "trendColor",
267
+ context: "trendColorEditorConfig",
268
+ editor: "editor.dynamicColor",
269
+ showEditor: ({ options }) => (0, configUtils_exports.isDynamicOption)(options.trendColor),
690
270
  editorProps: {
691
- min: 1
692
- },
693
- showEditor: function showEditor(_ref5) {
694
- var options = _ref5.options;
695
- var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
696
- var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
697
- return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
698
- }
699
- }]];
700
- exports.TrellisBackgroundColorEditor = {
701
- label: (0, i18n_1._)('Trellis background'),
702
- option: 'trellisBackgroundColor',
703
- editor: 'editor.color',
704
- showEditor: function showEditor(_ref6) {
705
- var options = _ref6.options;
706
- var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
707
- var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
708
- return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
271
+ labelPosition: "top",
272
+ flyoutTitle: (0, i18n_exports._)("Dynamic coloring: trend value"),
273
+ formatters: [
274
+ {
275
+ label: (0, i18n_exports._)("Ranges"),
276
+ value: "rangeValue",
277
+ defaults: {
278
+ trendValue: defaultContext2.trendColorConfig
279
+ }
280
+ }
281
+ ],
282
+ dataSelectors: [
283
+ {
284
+ label: (0, i18n_exports._)("Trend value"),
285
+ value: "trendValue"
286
+ }
287
+ ],
288
+ defaultPalettesConfig: defaultPalettesConfig2
709
289
  }
710
- };
711
-
712
- /***/ }),
713
- /* 30 */
714
- /***/ (function(module, exports) {
715
-
716
- module.exports = require("react");
717
-
718
- /***/ }),
719
- /* 31 */
720
- /***/ (function(module, exports) {
721
-
722
- module.exports = require("@splunk/visualization-context/FeatureFlagContext");
723
-
724
- /***/ }),
725
- /* 32 */,
726
- /* 33 */,
727
- /* 34 */,
728
- /* 35 */,
729
- /* 36 */,
730
- /* 37 */
731
- /***/ (function(module, exports, __webpack_require__) {
732
-
733
- "use strict";
734
-
735
-
736
- Object.defineProperty(exports, "__esModule", {
737
- value: true
738
290
  });
739
- exports.defaultContext = void 0;
740
- exports.defaultContext = {
741
- trendColorConfig: [{
742
- to: 0,
743
- value: '#9E2520'
744
- }, {
745
- from: 0,
746
- value: '#1C6B2D'
747
- }],
748
- majorColorConfig: [{
749
- to: 20,
750
- value: '#D41F1F'
751
- }, {
752
- from: 20,
753
- to: 40,
754
- value: '#D94E17'
755
- }, {
756
- from: 40,
757
- to: 60,
758
- value: '#CBA700'
759
- }, {
760
- from: 60,
761
- to: 80,
762
- value: '#669922'
763
- }, {
764
- from: 80,
765
- value: '#118832'
766
- }],
767
- majorColorMatchConfig: [{
768
- match: '',
769
- value: '#5C33FF'
770
- }]
771
- };
772
-
773
- /***/ }),
774
- /* 38 */
775
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
776
-
777
- "use strict";
778
- __webpack_require__.r(__webpack_exports__);
779
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
780
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
781
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
782
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
783
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
784
291
 
785
-
786
- var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
787
- var defaultContext = _ref.defaultContext,
788
- defaultPalettesConfig = _ref.defaultPalettesConfig;
789
- return {
790
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
791
- option: 'majorColor',
792
- context: 'majorColorEditorConfig',
793
- editor: 'editor.dynamicColor',
794
- showEditor: function showEditor(_ref2) {
795
- var options = _ref2.options;
796
- return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
797
- },
798
- editorProps: {
799
- labelPosition: 'top',
800
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: major value'),
801
- formatters: [{
802
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
803
- value: 'rangeValue',
292
+ // src/common/editorConfig/DynamicBackgroundColorEditor.js
293
+ var getDynamicBackgroundColorEditor = ({ defaultContext: defaultContext2, defaultPalettesConfig: defaultPalettesConfig2 }) => ({
294
+ label: (0, i18n_exports._)("Background color"),
295
+ option: "backgroundColor",
296
+ context: "backgroundColorEditorConfig",
297
+ editor: "editor.dynamicColor",
298
+ showEditor: ({ options }) => (0, configUtils_exports.isDynamicOption)(options.backgroundColor),
299
+ editorProps: {
300
+ labelPosition: "top",
301
+ flyoutTitle: (0, i18n_exports._)("Dynamic coloring: background"),
302
+ formatters: [
303
+ {
304
+ label: (0, i18n_exports._)("Ranges"),
305
+ value: "rangeValue",
804
306
  defaults: {
805
- majorValue: defaultContext.majorColorConfig
307
+ majorValue: defaultContext2.majorColorConfig,
308
+ trendValue: defaultContext2.trendColorConfig
806
309
  }
807
- }, {
808
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
809
- value: 'matchValue',
310
+ },
311
+ {
312
+ label: (0, i18n_exports._)("Matches"),
313
+ value: "matchValue",
810
314
  defaults: {
811
- majorValue: defaultContext.majorColorMatchConfig
315
+ majorValue: defaultContext2.majorColorMatchConfig
812
316
  }
813
- }],
814
- dataSelectors: [{
815
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
816
- value: 'majorValue'
817
- }],
818
- defaultPalettesConfig: defaultPalettesConfig
317
+ }
318
+ ],
319
+ dataSelectors: [
320
+ {
321
+ label: (0, i18n_exports._)("Major Value"),
322
+ value: "majorValue"
323
+ },
324
+ {
325
+ label: (0, i18n_exports._)("Trend"),
326
+ value: "trendValue"
327
+ }
328
+ ],
329
+ defaultPalettesConfig: defaultPalettesConfig2
330
+ }
331
+ });
332
+
333
+ // src/common/editorConfig/TrellisEditors.ts
334
+ var isTrellisFeatureFlagOn = ({ featureFlags }) => {
335
+ return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
336
+ };
337
+ var isTrellisEnabled = ({ options, featureFlags }) => {
338
+ const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
339
+ return isTrellisFeatureFlagOn({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
340
+ };
341
+ var TrellisEditorConfig = [
342
+ [
343
+ {
344
+ label: (0, i18n_exports._)("Trellis layout"),
345
+ option: "splitByLayout",
346
+ editor: "editor.toggle",
347
+ showEditor: isTrellisFeatureFlagOn
348
+ }
349
+ ],
350
+ [
351
+ {
352
+ label: (0, i18n_exports._)("Split by"),
353
+ option: "trellisSplitBy",
354
+ editor: "editor.trellisSplitBy",
355
+ editorProps: {
356
+ dataSourceKey: "primary"
357
+ },
358
+ showEditor: isTrellisEnabled
359
+ }
360
+ ],
361
+ [
362
+ {
363
+ label: (0, i18n_exports._)("Number of columns"),
364
+ option: "trellisColumns",
365
+ editor: "editor.number",
366
+ editorProps: {
367
+ min: 1
368
+ },
369
+ placeholder: (0, i18n_exports._)("Auto"),
370
+ showEditor: isTrellisEnabled
371
+ }
372
+ ],
373
+ [
374
+ {
375
+ label: (0, i18n_exports._)("Min column width"),
376
+ option: "trellisMinColumnWidth",
377
+ editor: "editor.number",
378
+ editorProps: {
379
+ min: 1
380
+ },
381
+ showEditor: isTrellisEnabled
382
+ },
383
+ {
384
+ label: (0, i18n_exports._)("Row height"),
385
+ option: "trellisRowHeight",
386
+ editor: "editor.number",
387
+ editorProps: {
388
+ min: 1
389
+ },
390
+ showEditor: isTrellisEnabled
391
+ }
392
+ ],
393
+ [
394
+ {
395
+ label: (0, i18n_exports._)("Max number of components per page"),
396
+ option: "trellisPageCount",
397
+ editor: "editor.number",
398
+ editorProps: {
399
+ min: 1
400
+ },
401
+ showEditor: isTrellisEnabled
402
+ }
403
+ ]
404
+ ];
405
+ var TimechartTrellisEditorConfig = [
406
+ [
407
+ {
408
+ label: (0, i18n_exports._)("Trellis layout"),
409
+ option: "splitByLayout",
410
+ editor: "editor.toggle",
411
+ showEditor: isTrellisFeatureFlagOn,
412
+ // add help text for timecharts
413
+ editorProps: {
414
+ help: (0, i18n_exports._)(
415
+ "Y2-axis and overlay field configurations are not supported when trellis is enabled."
416
+ ),
417
+ helpFormat: "under"
418
+ }
419
+ }
420
+ ],
421
+ ...TrellisEditorConfig.slice(1),
422
+ [
423
+ {
424
+ label: (0, i18n_exports._)("Shared y-axis scale"),
425
+ option: "trellisSharedScale",
426
+ editor: "editor.checkbox",
427
+ showEditor: isTrellisEnabled
819
428
  }
820
- };
429
+ ]
430
+ ];
431
+ var TrellisBackgroundColorEditor = {
432
+ label: (0, i18n_exports._)("Trellis background"),
433
+ option: "trellisBackgroundColor",
434
+ editor: "editor.color",
435
+ showEditor: isTrellisEnabled
821
436
  };
822
437
 
823
- /***/ }),
824
- /* 39 */,
825
- /* 40 */,
826
- /* 41 */,
827
- /* 42 */,
828
- /* 43 */,
829
- /* 44 */,
830
- /* 45 */,
831
- /* 46 */,
832
- /* 47 */,
833
- /* 48 */,
834
- /* 49 */,
835
- /* 50 */,
836
- /* 51 */,
837
- /* 52 */,
838
- /* 53 */,
839
- /* 54 */,
840
- /* 55 */,
841
- /* 56 */,
842
- /* 57 */,
843
- /* 58 */,
844
- /* 59 */,
845
- /* 60 */,
846
- /* 61 */,
847
- /* 62 */,
848
- /* 63 */,
849
- /* 64 */,
850
- /* 65 */,
851
- /* 66 */,
852
- /* 67 */,
853
- /* 68 */
854
- /***/ (function(module, exports, __webpack_require__) {
855
-
856
- "use strict";
857
-
858
-
859
- var _toConsumableArray = __webpack_require__(1);
860
-
861
- Object.defineProperty(exports, "__esModule", {
862
- value: true
438
+ // esm-externals:lodash
439
+ var lodash_exports = {};
440
+ __export(lodash_exports, {
441
+ default: () => lodash_default
863
442
  });
443
+ var defaultImport8 = __toESM(require("lodash"));
444
+ __reExport(lodash_exports, require("lodash"));
445
+ var lodash_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
864
446
 
865
- var i18n_1 = __webpack_require__(0);
866
-
867
- var visualization_schemas_1 = __webpack_require__(2);
868
-
869
- var PresetPalettes_1 = __webpack_require__(13);
870
-
871
- var pick_1 = __webpack_require__(8);
872
-
873
- var variables_1 = __webpack_require__(9);
874
-
875
- var configUtils_1 = __webpack_require__(4);
876
-
877
- var singleValueContext_1 = __webpack_require__(37);
878
-
879
- var StaticMajorAndTrendLayout_1 = __webpack_require__(26);
880
-
881
- var StaticBackgroundColorEditor_1 = __webpack_require__(22);
882
-
883
- var StaticIconColorEditor_1 = __webpack_require__(69);
884
-
885
- var StaticMajorColorEditor_1 = __webpack_require__(27);
886
-
887
- var StaticTrendColorEditor_1 = __webpack_require__(28);
888
-
889
- var DynamicMajorColorEditor_1 = __webpack_require__(38);
890
-
891
- var DynamicTrendColorEditor_1 = __webpack_require__(24);
892
-
893
- var DynamicBackgroundColorEditor_1 = __webpack_require__(25);
894
-
895
- var TrellisEditors_1 = __webpack_require__(29);
896
-
897
- var VizBehavior_1 = __webpack_require__(6);
898
-
899
- var configUtils_2 = __webpack_require__(3);
900
-
901
- var VizCategory_1 = __webpack_require__(7);
447
+ // src/common/utils/configUtils.ts
448
+ function enhanceConfig(vizConfig) {
449
+ const enhancedConfig = __spreadValues({}, vizConfig);
450
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(
451
+ (config2) => {
452
+ return __spreadProps(__spreadValues({}, config2), { open: config2.open || false });
453
+ }
454
+ );
455
+ return enhancedConfig;
456
+ }
457
+ function hasCompatibleContexts(vizContext, presetContext) {
458
+ const presetContextKeys = Object.keys(presetContext);
459
+ return presetContextKeys.every(
460
+ (contextKey) => presetContext[contextKey] === void 0 && vizContext[contextKey] === void 0 || presetContext[contextKey] !== void 0 && vizContext[contextKey] !== void 0
461
+ );
462
+ }
463
+ function hasCompatibleOptions(vizOptions, presetOptions) {
464
+ const presetOptionKeys = Object.keys(presetOptions);
465
+ return presetOptionKeys.every(
466
+ (optionKey) => (0, configUtils_exports.isDynamicOption)(presetOptions[optionKey]) === (0, configUtils_exports.isDynamicOption)(vizOptions[optionKey])
467
+ );
468
+ }
469
+ function getInitialPreset(vizContext, vizOptions, presets2) {
470
+ return presets2.find((preset) => {
471
+ const presetContext = (0, lodash_exports.get)(preset, ["value", "context"], {});
472
+ const presetOptions = (0, lodash_exports.get)(preset, ["value", "options"], {});
473
+ const presetContextKeys = Object.keys(presetContext);
474
+ const presetOptionKeys = Object.keys(presetOptions);
475
+ if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
476
+ return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
477
+ });
478
+ }
902
479
 
480
+ // src/SingleValueIcon/config.ts
903
481
  var dataContract = {
904
- requiredDataSources: [{
905
- name: 'primary',
906
- description: 'DataSource that powers the visualization'
907
- }],
482
+ requiredDataSources: [
483
+ {
484
+ name: "primary",
485
+ description: "DataSource that powers the visualization"
486
+ }
487
+ ],
908
488
  optionalDataSources: [],
909
489
  initialRequestParams: {
910
- primary: {
911
- offset: 0,
912
- count: 10000
913
- }
490
+ primary: { offset: 0, count: 1e4 }
914
491
  }
915
492
  };
916
493
  var size = {
@@ -918,361 +495,334 @@ var size = {
918
495
  initialHeight: 250
919
496
  };
920
497
  var basePresetContext = {
921
- iconColorEditorConfig: undefined,
922
- majorColorEditorConfig: undefined,
923
- trendColorEditorConfig: undefined,
924
- backgroundColorEditorConfig: undefined
498
+ iconColorEditorConfig: void 0,
499
+ majorColorEditorConfig: void 0,
500
+ trendColorEditorConfig: void 0,
501
+ backgroundColorEditorConfig: void 0
925
502
  };
926
503
  var basePresetOptions = {
927
- iconColor: undefined,
928
- majorColor: undefined,
929
- trendColor: undefined,
930
- backgroundColor: undefined
504
+ iconColor: void 0,
505
+ majorColor: void 0,
506
+ trendColor: void 0,
507
+ backgroundColor: void 0
931
508
  };
932
- var presets = [{
933
- // dummy context variables to allow for resetting of unused context states
934
- label: (0, i18n_1._)('None'),
935
- name: 'singleValueIcon.none',
936
- value: {
937
- context: Object.assign({}, basePresetContext),
938
- options: Object.assign({}, basePresetOptions)
939
- }
940
- }, {
941
- label: (0, i18n_1._)('Icon'),
942
- name: 'singleValueIcon.icon',
943
- value: {
944
- context: Object.assign(Object.assign({}, basePresetContext), {
945
- iconColorEditorConfig: singleValueContext_1.defaultContext.majorColorConfig
946
- }),
947
- options: Object.assign(Object.assign({}, basePresetOptions), {
948
- iconColor: '> majorValue | rangeValue(iconColorEditorConfig)'
949
- })
950
- }
951
- }, {
952
- label: (0, i18n_1._)('Major value'),
953
- name: 'singleValueIcon.majorValue',
954
- value: {
955
- context: Object.assign(Object.assign({}, basePresetContext), {
956
- majorColorEditorConfig: singleValueContext_1.defaultContext.majorColorConfig
957
- }),
958
- options: Object.assign(Object.assign({}, basePresetOptions), {
959
- majorColor: '> majorValue | rangeValue(majorColorEditorConfig)'
960
- })
961
- }
962
- }, {
963
- label: (0, i18n_1._)('Trend value'),
964
- name: 'singleValueIcon.trend',
965
- value: {
966
- context: Object.assign(Object.assign({}, basePresetContext), {
967
- trendColorEditorConfig: singleValueContext_1.defaultContext.trendColorConfig
968
- }),
969
- options: Object.assign(Object.assign({}, basePresetOptions), {
970
- trendColor: '> trendValue | rangeValue(trendColorEditorConfig)'
971
- })
972
- }
973
- }, {
974
- label: (0, i18n_1._)('Icon and Major value'),
975
- name: 'singleValueIcon.iconAndMajorValue',
976
- value: {
977
- context: Object.assign(Object.assign({}, basePresetContext), {
978
- iconColorEditorConfig: singleValueContext_1.defaultContext.majorColorConfig,
979
- majorColorEditorConfig: singleValueContext_1.defaultContext.majorColorConfig
980
- }),
981
- options: Object.assign(Object.assign({}, basePresetOptions), {
982
- iconColor: '> majorValue | rangeValue(iconColorEditorConfig)',
983
- majorColor: '> majorValue | rangeValue(majorColorEditorConfig)'
984
- })
985
- }
986
- }, {
987
- label: (0, i18n_1._)('Background'),
988
- name: 'singleValueIcon.background',
989
- value: {
990
- context: Object.assign(Object.assign({}, basePresetContext), {
991
- backgroundColorEditorConfig: singleValueContext_1.defaultContext.majorColorConfig
992
- }),
993
- options: Object.assign(Object.assign({}, basePresetOptions), {
994
- backgroundColor: '> majorValue | rangeValue(backgroundColorEditorConfig)'
995
- })
996
- }
997
- }];
998
- /**
999
- * TODO
1000
- * common theme variables such as enterprise.defaultFontColor
1001
- * that are repeated in multiple viz config themes should be DRYd up.
1002
- */
1003
-
1004
- var themes = {
1005
- defaultFontColor: function defaultFontColor(props) {
1006
- return (0, pick_1.default)({
1007
- enterprise: {
1008
- dark: variables_1.default.textColor(props),
1009
- light: variables_1.default.gray20(props)
1010
- },
1011
- prisma: variables_1.default.contentColorActive(props)
1012
- })(props);
1013
- },
1014
- defaultBlockFontColor: function defaultBlockFontColor(props) {
1015
- return (0, pick_1.default)({
1016
- enterprise: variables_1.default.white(props),
1017
- prisma: variables_1.default.contentColorActive(props)
1018
- })(props);
1019
- }
1020
- };
1021
- var editorConfig = [{
1022
- label: (0, i18n_1._)('Data configurations'),
1023
- layout: [[{
1024
- label: (0, i18n_1._)('Value'),
1025
- editor: 'editor.columnSelector',
1026
- option: 'majorValue',
1027
- context: 'valuesContext',
1028
- editorProps: {
1029
- dataSourceKey: 'primary',
1030
- prepareValue: function prepareValue(definition) {
1031
- var baseSPL = definition.options.majorValue;
1032
- return {
1033
- context: {},
1034
- options: {
1035
- majorValue: "".concat(baseSPL, " | lastPoint()"),
1036
- trendValue: "".concat(baseSPL, " | delta(-2)")
1037
- }
1038
- };
1039
- }
1040
- },
1041
- isDisabled: function isDisabled(_ref) {
1042
- var options = _ref.options;
1043
- return options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
509
+ var presets = [
510
+ {
511
+ // dummy context variables to allow for resetting of unused context states
512
+ label: (0, i18n_exports._)("None"),
513
+ name: "singleValueIcon.none",
514
+ value: {
515
+ context: __spreadValues({}, basePresetContext),
516
+ options: __spreadValues({}, basePresetOptions)
1044
517
  }
1045
- }]]
1046
- }, {
1047
- label: (0, i18n_1._)('Data display'),
1048
- layout: [[{
1049
- label: (0, i18n_1._)('Show major and trend value'),
1050
- option: 'showValue',
1051
- editor: 'editor.toggle'
1052
- }]].concat(_toConsumableArray(StaticMajorAndTrendLayout_1.default), [[{
1053
- label: (0, i18n_1._)('Trend display'),
1054
- option: 'trendDisplay',
1055
- editor: 'editor.select',
1056
- editorProps: {
1057
- values: [{
1058
- label: (0, i18n_1._)('Percent'),
1059
- value: 'percent'
1060
- }, {
1061
- label: (0, i18n_1._)('Absolute'),
1062
- value: 'absolute'
1063
- }, {
1064
- label: (0, i18n_1._)('Off'),
1065
- value: 'off'
1066
- }]
1067
- },
1068
- showEditor: function showEditor(_ref2) {
1069
- var options = _ref2.options;
1070
- return options.showValue || options.showValue === undefined;
1071
- }
1072
- }]], _toConsumableArray(TrellisEditors_1.TrellisEditorConfig))
1073
- }, {
1074
- label: (0, i18n_1._)('Color and style'),
1075
- layout: [[{
1076
- label: (0, i18n_1._)('Dynamic elements'),
1077
- key: 'presetSelector',
1078
- editor: 'editor.presetSelector',
1079
- editorProps: {
1080
- presets: presets,
1081
- value: function value(_ref3) {
1082
- var context = _ref3.context,
1083
- options = _ref3.options;
1084
- var initialPreset = (0, configUtils_2.getInitialPreset)(context, options, presets);
1085
- return initialPreset && initialPreset.label || null;
1086
- }
1087
- }
1088
- }], StaticIconColorEditor_1.default, [{
1089
- label: (0, i18n_1._)('Icon'),
1090
- option: 'iconColor',
1091
- context: 'iconColorEditorConfig',
1092
- editor: 'editor.dynamicColor',
1093
- showEditor: function showEditor(_ref4) {
1094
- var options = _ref4.options;
1095
- return (0, configUtils_1.isDynamicOption)(options.iconColor);
1096
- },
1097
- editorProps: {
1098
- labelPosition: 'top',
1099
- flyoutTitle: 'Dynamic coloring: icon',
1100
- formatters: [{
1101
- label: (0, i18n_1._)('Ranges'),
1102
- value: 'rangeValue',
1103
- defaults: {
1104
- trendValue: singleValueContext_1.defaultContext.trendColorConfig,
1105
- majorValue: singleValueContext_1.defaultContext.majorColorConfig
1106
- }
1107
- }, {
1108
- label: (0, i18n_1._)('Matches'),
1109
- value: 'matchValue',
1110
- defaults: {
1111
- majorValue: singleValueContext_1.defaultContext.majorColorMatchConfig
1112
- }
1113
- }],
1114
- dataSelectors: [{
1115
- label: (0, i18n_1._)('Major value'),
1116
- value: 'majorValue'
1117
- }, {
1118
- label: (0, i18n_1._)('Trend'),
1119
- value: 'trendValue'
1120
- }],
1121
- defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
1122
- }
1123
- }], [Object.assign(Object.assign({}, StaticMajorColorEditor_1.default), {
1124
- editorProps: {
1125
- themes: themes
1126
- }
1127
- })], [(0, DynamicMajorColorEditor_1.getDynamicMajorColorEditor)({
1128
- defaultContext: singleValueContext_1.defaultContext,
1129
- defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
1130
- })], [Object.assign(Object.assign({}, StaticTrendColorEditor_1.default), {
1131
- editorProps: {
1132
- themes: themes
518
+ },
519
+ {
520
+ label: (0, i18n_exports._)("Icon"),
521
+ name: "singleValueIcon.icon",
522
+ value: {
523
+ context: __spreadProps(__spreadValues({}, basePresetContext), {
524
+ iconColorEditorConfig: defaultContext.majorColorConfig
525
+ }),
526
+ options: __spreadProps(__spreadValues({}, basePresetOptions), {
527
+ iconColor: "> majorValue | rangeValue(iconColorEditorConfig)"
528
+ })
1133
529
  }
1134
- })], [(0, DynamicTrendColorEditor_1.getDynamicTrendColorEditor)({
1135
- defaultContext: singleValueContext_1.defaultContext,
1136
- defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
1137
- })], [Object.assign(Object.assign({}, StaticBackgroundColorEditor_1.default), {
1138
- editorProps: {
1139
- themes: themes
530
+ },
531
+ {
532
+ label: (0, i18n_exports._)("Major value"),
533
+ name: "singleValueIcon.majorValue",
534
+ value: {
535
+ context: __spreadProps(__spreadValues({}, basePresetContext), {
536
+ majorColorEditorConfig: defaultContext.majorColorConfig
537
+ }),
538
+ options: __spreadProps(__spreadValues({}, basePresetOptions), {
539
+ majorColor: "> majorValue | rangeValue(majorColorEditorConfig)"
540
+ })
1140
541
  }
1141
- })], [Object.assign(Object.assign({}, TrellisEditors_1.TrellisBackgroundColorEditor), {
1142
- editorProps: {
1143
- themes: themes
542
+ },
543
+ {
544
+ label: (0, i18n_exports._)("Trend value"),
545
+ name: "singleValueIcon.trend",
546
+ value: {
547
+ context: __spreadProps(__spreadValues({}, basePresetContext), {
548
+ trendColorEditorConfig: defaultContext.trendColorConfig
549
+ }),
550
+ options: __spreadProps(__spreadValues({}, basePresetOptions), {
551
+ trendColor: "> trendValue | rangeValue(trendColorEditorConfig)"
552
+ })
1144
553
  }
1145
- })], [(0, DynamicBackgroundColorEditor_1.getDynamicBackgroundColorEditor)({
1146
- defaultContext: singleValueContext_1.defaultContext,
1147
- defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
1148
- })], [{
1149
- label: (0, i18n_1._)('Major value size (px)'),
1150
- option: 'majorFontSize',
1151
- editor: 'editor.number',
1152
- editorProps: {
1153
- min: 1
1154
- },
1155
- placeholder: (0, i18n_1._)('Auto'),
1156
- showEditor: function showEditor(_ref5) {
1157
- var options = _ref5.options;
1158
- return options.showValue || options.showValue === undefined;
554
+ },
555
+ {
556
+ label: (0, i18n_exports._)("Icon and Major value"),
557
+ name: "singleValueIcon.iconAndMajorValue",
558
+ value: {
559
+ context: __spreadProps(__spreadValues({}, basePresetContext), {
560
+ iconColorEditorConfig: defaultContext.majorColorConfig,
561
+ majorColorEditorConfig: defaultContext.majorColorConfig
562
+ }),
563
+ options: __spreadProps(__spreadValues({}, basePresetOptions), {
564
+ iconColor: "> majorValue | rangeValue(iconColorEditorConfig)",
565
+ majorColor: "> majorValue | rangeValue(majorColorEditorConfig)"
566
+ })
1159
567
  }
1160
- }, {
1161
- label: (0, i18n_1._)('Trend value size (px)'),
1162
- option: 'trendFontSize',
1163
- editor: 'editor.number',
1164
- editorProps: {
1165
- min: 1
1166
- },
1167
- placeholder: (0, i18n_1._)('Auto'),
1168
- showEditor: function showEditor(_ref6) {
1169
- var options = _ref6.options;
1170
- return options.showValue || options.showValue === undefined;
1171
- },
1172
- isDisabled: function isDisabled(_ref7) {
1173
- var options = _ref7.options;
1174
- return options.trendDisplay === 'off';
568
+ },
569
+ {
570
+ label: (0, i18n_exports._)("Background"),
571
+ name: "singleValueIcon.background",
572
+ value: {
573
+ context: __spreadProps(__spreadValues({}, basePresetContext), {
574
+ backgroundColorEditorConfig: defaultContext.majorColorConfig
575
+ }),
576
+ options: __spreadProps(__spreadValues({}, basePresetOptions), {
577
+ backgroundColor: "> majorValue | rangeValue(backgroundColorEditorConfig)"
578
+ })
1175
579
  }
1176
- }], [{
1177
- label: (0, i18n_1._)('Major value abbreviation'),
1178
- option: 'shouldAbbreviateMajorValue',
1179
- editor: 'editor.checkbox'
1180
- }], [{
1181
- label: (0, i18n_1._)('Trend value abbreviation'),
1182
- option: 'shouldAbbreviateTrendValue',
1183
- editor: 'editor.checkbox'
1184
- }], [{
1185
- label: (0, i18n_1._)('Alignment'),
1186
- editor: 'editor.radioBar',
1187
- option: 'align',
1188
- editorProps: {
1189
- values: [{
1190
- label: (0, i18n_1._)('Left'),
1191
- value: 'left'
1192
- }, {
1193
- label: (0, i18n_1._)('Center'),
1194
- value: 'center'
1195
- }, {
1196
- label: (0, i18n_1._)('Right'),
1197
- value: 'right'
1198
- }]
580
+ }
581
+ ];
582
+ var themes = {
583
+ defaultFontColor: (props) => pick_default({
584
+ enterprise: {
585
+ dark: variables_default.textColor(props),
586
+ light: variables_default.gray20(props)
1199
587
  },
1200
- showEditor: function showEditor(_ref8) {
1201
- var options = _ref8.options;
1202
- return options.showValue || options.showValue === undefined;
1203
- }
1204
- }]]
1205
- }];
1206
- /**
1207
- * visualization configuration
1208
- */
1209
-
588
+ prisma: variables_default.contentColorActive(props)
589
+ })(props),
590
+ defaultBlockFontColor: (props) => pick_default({
591
+ enterprise: variables_default.white(props),
592
+ prisma: variables_default.contentColorActive(props)
593
+ })(props)
594
+ };
595
+ var editorConfig = [
596
+ {
597
+ label: (0, i18n_exports._)("Data configurations"),
598
+ layout: [
599
+ [
600
+ {
601
+ label: (0, i18n_exports._)("Value"),
602
+ editor: "editor.columnSelector",
603
+ option: "majorValue",
604
+ context: "valuesContext",
605
+ editorProps: {
606
+ dataSourceKey: "primary",
607
+ prepareValue: (definition) => {
608
+ const {
609
+ options: { majorValue: baseSPL }
610
+ } = definition;
611
+ return {
612
+ context: {},
613
+ options: {
614
+ majorValue: `${baseSPL} | lastPoint()`,
615
+ trendValue: `${baseSPL} | delta(-2)`
616
+ }
617
+ };
618
+ }
619
+ },
620
+ isDisabled: ({ options }) => options.splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis
621
+ }
622
+ ]
623
+ ]
624
+ },
625
+ {
626
+ label: (0, i18n_exports._)("Data display"),
627
+ layout: [
628
+ [
629
+ {
630
+ label: (0, i18n_exports._)("Show major and trend value"),
631
+ option: "showValue",
632
+ editor: "editor.toggle"
633
+ }
634
+ ],
635
+ ...StaticMajorAndTrendLayout_default,
636
+ [
637
+ {
638
+ label: (0, i18n_exports._)("Trend display"),
639
+ option: "trendDisplay",
640
+ editor: "editor.select",
641
+ editorProps: {
642
+ values: [
643
+ { label: (0, i18n_exports._)("Percent"), value: "percent" },
644
+ { label: (0, i18n_exports._)("Absolute"), value: "absolute" },
645
+ { label: (0, i18n_exports._)("Off"), value: "off" }
646
+ ]
647
+ },
648
+ showEditor: ({ options }) => options.showValue || options.showValue === void 0
649
+ }
650
+ ],
651
+ ...TrellisEditorConfig
652
+ ]
653
+ },
654
+ {
655
+ label: (0, i18n_exports._)("Color and style"),
656
+ layout: [
657
+ [
658
+ {
659
+ label: (0, i18n_exports._)("Dynamic elements"),
660
+ key: "presetSelector",
661
+ editor: "editor.presetSelector",
662
+ editorProps: {
663
+ presets,
664
+ value: ({ context, options }) => {
665
+ const initialPreset = getInitialPreset(context, options, presets);
666
+ return initialPreset && initialPreset.label || null;
667
+ }
668
+ }
669
+ }
670
+ ],
671
+ StaticIconColorEditor_default,
672
+ [
673
+ {
674
+ label: (0, i18n_exports._)("Icon"),
675
+ option: "iconColor",
676
+ context: "iconColorEditorConfig",
677
+ editor: "editor.dynamicColor",
678
+ showEditor: ({ options }) => (0, configUtils_exports.isDynamicOption)(options.iconColor),
679
+ editorProps: {
680
+ labelPosition: "top",
681
+ flyoutTitle: "Dynamic coloring: icon",
682
+ formatters: [
683
+ {
684
+ label: (0, i18n_exports._)("Ranges"),
685
+ value: "rangeValue",
686
+ defaults: {
687
+ trendValue: defaultContext.trendColorConfig,
688
+ majorValue: defaultContext.majorColorConfig
689
+ }
690
+ },
691
+ {
692
+ label: (0, i18n_exports._)("Matches"),
693
+ value: "matchValue",
694
+ defaults: {
695
+ majorValue: defaultContext.majorColorMatchConfig
696
+ }
697
+ }
698
+ ],
699
+ dataSelectors: [
700
+ {
701
+ label: (0, i18n_exports._)("Major value"),
702
+ value: "majorValue"
703
+ },
704
+ {
705
+ label: (0, i18n_exports._)("Trend"),
706
+ value: "trendValue"
707
+ }
708
+ ],
709
+ defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig
710
+ }
711
+ }
712
+ ],
713
+ [
714
+ __spreadProps(__spreadValues({}, StaticMajorColorEditor_default), {
715
+ editorProps: {
716
+ themes
717
+ }
718
+ })
719
+ ],
720
+ [getDynamicMajorColorEditor({ defaultContext, defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig })],
721
+ [
722
+ __spreadProps(__spreadValues({}, StaticTrendColorEditor_default), {
723
+ editorProps: {
724
+ themes
725
+ }
726
+ })
727
+ ],
728
+ [getDynamicTrendColorEditor({ defaultContext, defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig })],
729
+ [
730
+ __spreadProps(__spreadValues({}, StaticBackgroundColorEditor_default), {
731
+ editorProps: {
732
+ themes
733
+ }
734
+ })
735
+ ],
736
+ [
737
+ __spreadProps(__spreadValues({}, TrellisBackgroundColorEditor), {
738
+ editorProps: {
739
+ themes
740
+ }
741
+ })
742
+ ],
743
+ [getDynamicBackgroundColorEditor({ defaultContext, defaultPalettesConfig: PresetPalettes_exports.defaultPalettesConfig })],
744
+ [
745
+ {
746
+ label: (0, i18n_exports._)("Major value size (px)"),
747
+ option: "majorFontSize",
748
+ editor: "editor.number",
749
+ editorProps: {
750
+ min: 1
751
+ },
752
+ placeholder: (0, i18n_exports._)("Auto"),
753
+ showEditor: ({ options }) => options.showValue || options.showValue === void 0
754
+ },
755
+ {
756
+ label: (0, i18n_exports._)("Trend value size (px)"),
757
+ option: "trendFontSize",
758
+ editor: "editor.number",
759
+ editorProps: {
760
+ min: 1
761
+ },
762
+ placeholder: (0, i18n_exports._)("Auto"),
763
+ showEditor: ({ options }) => options.showValue || options.showValue === void 0,
764
+ isDisabled: ({ options }) => options.trendDisplay === "off"
765
+ }
766
+ ],
767
+ [
768
+ {
769
+ label: (0, i18n_exports._)("Major value abbreviation"),
770
+ option: "shouldAbbreviateMajorValue",
771
+ editor: "editor.checkbox"
772
+ }
773
+ ],
774
+ [
775
+ {
776
+ label: (0, i18n_exports._)("Trend value abbreviation"),
777
+ option: "shouldAbbreviateTrendValue",
778
+ editor: "editor.checkbox"
779
+ }
780
+ ],
781
+ [
782
+ {
783
+ label: (0, i18n_exports._)("Alignment"),
784
+ editor: "editor.radioBar",
785
+ option: "align",
786
+ editorProps: {
787
+ values: [
788
+ { label: (0, i18n_exports._)("Left"), value: "left" },
789
+ { label: (0, i18n_exports._)("Center"), value: "center" },
790
+ { label: (0, i18n_exports._)("Right"), value: "right" }
791
+ ]
792
+ },
793
+ showEditor: ({ options }) => options.showValue || options.showValue === void 0
794
+ }
795
+ ]
796
+ ]
797
+ }
798
+ ];
1210
799
  var config = {
1211
800
  /**
1212
801
  * unique viz key
1213
802
  */
1214
- key: 'splunk.singlevalueicon',
1215
-
803
+ key: "splunk.singlevalueicon",
1216
804
  /**
1217
805
  * viz name
1218
806
  */
1219
- name: (0, i18n_1._)('Single value icon'),
1220
- category: VizCategory_1.VizCategory.SINGLE_VALUE,
1221
-
807
+ name: (0, i18n_exports._)("Single value icon"),
808
+ category: "Single Value" /* SINGLE_VALUE */,
1222
809
  /**
1223
810
  * viz icon
1224
811
  */
1225
812
  icon: null,
1226
- dataContract: dataContract,
1227
- size: size,
1228
- defaultContext: singleValueContext_1.defaultContext,
1229
- optionsSchema: visualization_schemas_1.singleValueIconOptionsSchema,
1230
- editorConfig: editorConfig,
813
+ dataContract,
814
+ size,
815
+ defaultContext,
816
+ optionsSchema: visualization_schemas_exports.singleValueIconOptionsSchema,
817
+ editorConfig,
1231
818
  events: {
1232
- 'value.click': {
1233
- description: 'trigger when user clicks major value or icon',
1234
- payloadKeys: ['majorValue', 'trendValue', 'icon']
819
+ "value.click": {
820
+ description: "trigger when user clicks major value or icon",
821
+ payloadKeys: ["majorValue", "trendValue", "icon"]
1235
822
  }
1236
823
  },
1237
- supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS, VizBehavior_1.VizBehavior.TRELLIS],
1238
- themes: themes
824
+ supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "events" /* EVENTS */, "trellis" /* TRELLIS */],
825
+ themes
1239
826
  };
1240
- exports.default = (0, configUtils_2.enhanceConfig)(config);
1241
-
1242
- /***/ }),
1243
- /* 69 */
1244
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1245
-
1246
- "use strict";
1247
- __webpack_require__.r(__webpack_exports__);
1248
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
1249
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
1250
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
1251
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__);
1252
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
1253
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__);
1254
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
1255
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__);
1256
-
1257
-
1258
-
1259
-
1260
- var StaticIconColorEditor = [{
1261
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__["_"])('Icon'),
1262
- option: 'iconColor',
1263
- editor: 'editor.color',
1264
- showEditor: function showEditor(_ref) {
1265
- var options = _ref.options;
1266
- return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__["isDynamicOption"])(options.iconColor);
1267
- },
1268
- editorProps: {
1269
- labelPosition: 'top',
1270
- value: null,
1271
- palette: [null].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__["COLOR_EDITOR_PALETTE"]))
1272
- }
1273
- }];
1274
- /* harmony default export */ __webpack_exports__["default"] = (StaticIconColorEditor);
1275
-
1276
- /***/ })
1277
- /******/ ]);
1278
- //# sourceMappingURL=SingleValueIcon.config.js.map
827
+ var config_default = enhanceConfig(config);
828
+ //# sourceMappingURL=SingleValueIcon.config.js.map