@splunk/visualizations 23.2.0 → 23.5.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 (132) hide show
  1. package/Area.config.js +36 -30
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +243 -203
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +29 -23
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +233 -193
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +36 -23
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +247 -196
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +15 -12
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +201 -148
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +29 -23
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +235 -194
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +23 -20
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +176 -123
  24. package/Ellipse.js.map +1 -1
  25. package/FillerGauge.config.js +803 -0
  26. package/FillerGauge.config.js.map +1 -0
  27. package/FillerGauge.js +3634 -0
  28. package/FillerGauge.js.map +1 -0
  29. package/Image.config.js +13 -6
  30. package/Image.config.js.map +1 -1
  31. package/Image.js +260 -200
  32. package/Image.js.map +1 -1
  33. package/LICENSE.md +14 -0
  34. package/Line.config.js +40 -31
  35. package/Line.config.js.map +1 -1
  36. package/Line.js +248 -202
  37. package/Line.js.map +1 -1
  38. package/LinkGraph.config.js +107 -123
  39. package/LinkGraph.config.js.map +1 -1
  40. package/LinkGraph.js +241 -193
  41. package/LinkGraph.js.map +1 -1
  42. package/Markdown.config.js +95 -3
  43. package/Markdown.config.js.map +1 -1
  44. package/Markdown.js +272 -118
  45. package/Markdown.js.map +1 -1
  46. package/MarkerGauge.config.js +750 -0
  47. package/MarkerGauge.config.js.map +1 -0
  48. package/MarkerGauge.js +3758 -0
  49. package/MarkerGauge.js.map +1 -0
  50. package/ParallelCoordinates.config.js +52 -46
  51. package/ParallelCoordinates.config.js.map +1 -1
  52. package/ParallelCoordinates.js +257 -164
  53. package/ParallelCoordinates.js.map +1 -1
  54. package/Pie.config.js +61 -46
  55. package/Pie.config.js.map +1 -1
  56. package/Pie.js +254 -186
  57. package/Pie.js.map +1 -1
  58. package/Punchcard.config.js +279 -39
  59. package/Punchcard.config.js.map +1 -1
  60. package/Punchcard.js +825 -193
  61. package/Punchcard.js.map +1 -1
  62. package/README.external.md +45 -0
  63. package/README.md +18 -3
  64. package/Rectangle.config.js +89 -107
  65. package/Rectangle.config.js.map +1 -1
  66. package/Rectangle.js +204 -145
  67. package/Rectangle.js.map +1 -1
  68. package/Sankey.config.js +29 -22
  69. package/Sankey.config.js.map +1 -1
  70. package/Sankey.js +250 -186
  71. package/Sankey.js.map +1 -1
  72. package/Scatter.config.js +39 -28
  73. package/Scatter.config.js.map +1 -1
  74. package/Scatter.js +2375 -2434
  75. package/Scatter.js.map +1 -1
  76. package/SingleValue.config.js +37 -29
  77. package/SingleValue.config.js.map +1 -1
  78. package/SingleValue.js +3108 -3174
  79. package/SingleValue.js.map +1 -1
  80. package/SingleValueBasic.js +37 -23
  81. package/SingleValueBasic.js.map +1 -1
  82. package/SingleValueIcon.config.js +36 -28
  83. package/SingleValueIcon.config.js.map +1 -1
  84. package/SingleValueIcon.js +279 -210
  85. package/SingleValueIcon.js.map +1 -1
  86. package/SingleValueRadial.config.js +15 -13
  87. package/SingleValueRadial.config.js.map +1 -1
  88. package/SingleValueRadial.js +299 -253
  89. package/SingleValueRadial.js.map +1 -1
  90. package/Table.config.js +26 -10
  91. package/Table.config.js.map +1 -1
  92. package/Table.js +382 -265
  93. package/Table.js.map +1 -1
  94. package/common/Charting.js +33 -30
  95. package/common/Charting.js.map +1 -1
  96. package/common/ChartingApi.js +4 -4
  97. package/common/ChartingApi.js.map +1 -1
  98. package/common/EventsDoc.js +36 -34
  99. package/common/EventsDoc.js.map +1 -1
  100. package/common/GaugeMajorTicks.js +386 -0
  101. package/common/GaugeMajorTicks.js.map +1 -0
  102. package/common/GaugeValueMarker.js +333 -0
  103. package/common/GaugeValueMarker.js.map +1 -0
  104. package/common/OptionsDoc.js +47 -33
  105. package/common/OptionsDoc.js.map +1 -1
  106. package/common/OverviewDoc.js +376 -0
  107. package/common/OverviewDoc.js.map +1 -0
  108. package/common/SplunkVisualization.js +6 -6
  109. package/common/SplunkVisualization.js.map +1 -1
  110. package/common/SplunkVisualizationApi.js +10 -10
  111. package/common/SplunkVisualizationApi.js.map +1 -1
  112. package/common/ThemesDoc.js +55 -72
  113. package/common/ThemesDoc.js.map +1 -1
  114. package/common/chartingUtils.js +15 -13
  115. package/common/chartingUtils.js.map +1 -1
  116. package/common/docUtils.js +4 -4
  117. package/common/docUtils.js.map +1 -1
  118. package/common/gaugeUtils.js +893 -0
  119. package/common/gaugeUtils.js.map +1 -0
  120. package/common/shapeUtils.js +8 -8
  121. package/common/shapeUtils.js.map +1 -1
  122. package/common/utils/JSONSchemaUtils.js.map +1 -1
  123. package/common/utils/configUtils.js.map +1 -1
  124. package/common/utils/hocUtils.js +57 -3
  125. package/common/utils/hocUtils.js.map +1 -1
  126. package/common/utils/singleValueUtils.js +24 -10
  127. package/common/utils/singleValueUtils.js.map +1 -1
  128. package/common/withDashboardViz.js +158 -95
  129. package/common/withDashboardViz.js.map +1 -1
  130. package/package.json +18 -14
  131. package/common/utils/eventUtils.js +0 -115
  132. package/common/utils/eventUtils.js.map +0 -1
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 54);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 60);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -360,6 +360,8 @@ var VizCategory;
360
360
  VizCategory["SHAPES"] = "Shapes";
361
361
  VizCategory["MISC"] = "misc";
362
362
  VizCategory["FLOW"] = "Flow";
363
+ VizCategory["CORRELATION"] = "Correlation";
364
+ VizCategory["SPATIAL"] = "Spatial";
363
365
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
364
366
 
365
367
  /***/ }),
@@ -372,31 +374,31 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
372
374
  /* 7 */
373
375
  /***/ (function(module, exports) {
374
376
 
375
- module.exports = require("@splunk/visualization-icons");
377
+ module.exports = require("@splunk/themes/pick");
376
378
 
377
379
  /***/ }),
378
380
  /* 8 */
379
381
  /***/ (function(module, exports) {
380
382
 
381
- module.exports = require("@splunk/themes/pick");
383
+ module.exports = require("@splunk/themes/variables");
382
384
 
383
385
  /***/ }),
384
386
  /* 9 */
385
387
  /***/ (function(module, exports) {
386
388
 
387
- module.exports = require("@splunk/themes/variables");
389
+ module.exports = require("@splunk/visualization-icons");
388
390
 
389
391
  /***/ }),
390
392
  /* 10 */,
391
393
  /* 11 */,
392
- /* 12 */,
393
- /* 13 */,
394
- /* 14 */
394
+ /* 12 */
395
395
  /***/ (function(module, exports) {
396
396
 
397
397
  module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
398
398
 
399
399
  /***/ }),
400
+ /* 13 */,
401
+ /* 14 */,
400
402
  /* 15 */,
401
403
  /* 16 */,
402
404
  /* 17 */,
@@ -433,7 +435,8 @@ var StaticBackgroundColorEditor = {
433
435
  /* 26 */,
434
436
  /* 27 */,
435
437
  /* 28 */,
436
- /* 29 */
438
+ /* 29 */,
439
+ /* 30 */
437
440
  /***/ (function(module, exports, __webpack_require__) {
438
441
 
439
442
  "use strict";
@@ -473,7 +476,7 @@ exports.defaultContext = {
473
476
  };
474
477
 
475
478
  /***/ }),
476
- /* 30 */
479
+ /* 31 */
477
480
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
478
481
 
479
482
  "use strict";
@@ -525,7 +528,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
525
528
  };
526
529
 
527
530
  /***/ }),
528
- /* 31 */
531
+ /* 32 */
529
532
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
530
533
 
531
534
  "use strict";
@@ -569,7 +572,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
569
572
  };
570
573
 
571
574
  /***/ }),
572
- /* 32 */
575
+ /* 33 */
573
576
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
574
577
 
575
578
  "use strict";
@@ -625,7 +628,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
625
628
  };
626
629
 
627
630
  /***/ }),
628
- /* 33 */
631
+ /* 34 */
629
632
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
630
633
 
631
634
  "use strict";
@@ -723,7 +726,7 @@ var StaticMajorAndTrendLayout = [[{
723
726
  /* harmony default export */ __webpack_exports__["default"] = (StaticMajorAndTrendLayout);
724
727
 
725
728
  /***/ }),
726
- /* 34 */
729
+ /* 35 */
727
730
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
728
731
 
729
732
  "use strict";
@@ -746,7 +749,7 @@ var StaticMajorColorEditor = {
746
749
  /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
747
750
 
748
751
  /***/ }),
749
- /* 35 */
752
+ /* 36 */
750
753
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
751
754
 
752
755
  "use strict";
@@ -773,7 +776,6 @@ var StaticTrendColorEditor = {
773
776
  /* harmony default export */ __webpack_exports__["default"] = (StaticTrendColorEditor);
774
777
 
775
778
  /***/ }),
776
- /* 36 */,
777
779
  /* 37 */,
778
780
  /* 38 */,
779
781
  /* 39 */,
@@ -791,7 +793,13 @@ var StaticTrendColorEditor = {
791
793
  /* 51 */,
792
794
  /* 52 */,
793
795
  /* 53 */,
794
- /* 54 */
796
+ /* 54 */,
797
+ /* 55 */,
798
+ /* 56 */,
799
+ /* 57 */,
800
+ /* 58 */,
801
+ /* 59 */,
802
+ /* 60 */
795
803
  /***/ (function(module, exports, __webpack_require__) {
796
804
 
797
805
  "use strict";
@@ -805,31 +813,31 @@ var i18n_1 = __webpack_require__(0);
805
813
 
806
814
  var schemaUtils_1 = __webpack_require__(3);
807
815
 
808
- var PresetPalettes_1 = __webpack_require__(14);
816
+ var PresetPalettes_1 = __webpack_require__(12);
809
817
 
810
- var variables_1 = __webpack_require__(55);
818
+ var variables_1 = __webpack_require__(61);
811
819
 
812
- var pick_1 = __webpack_require__(8);
820
+ var pick_1 = __webpack_require__(7);
813
821
 
814
- var variables_2 = __webpack_require__(9);
822
+ var variables_2 = __webpack_require__(8);
815
823
 
816
- var visualization_icons_1 = __webpack_require__(7);
824
+ var visualization_icons_1 = __webpack_require__(9);
817
825
 
818
- var singleValueContext_1 = __webpack_require__(29);
826
+ var singleValueContext_1 = __webpack_require__(30);
819
827
 
820
828
  var VizBehavior_1 = __webpack_require__(2);
821
829
 
822
- var DynamicMajorColorEditor_1 = __webpack_require__(30);
830
+ var DynamicMajorColorEditor_1 = __webpack_require__(31);
823
831
 
824
- var DynamicTrendColorEditor_1 = __webpack_require__(31);
832
+ var DynamicTrendColorEditor_1 = __webpack_require__(32);
825
833
 
826
- var DynamicBackgroundColorEditor_1 = __webpack_require__(32);
834
+ var DynamicBackgroundColorEditor_1 = __webpack_require__(33);
827
835
 
828
- var StaticMajorAndTrendLayout_1 = __webpack_require__(33);
836
+ var StaticMajorAndTrendLayout_1 = __webpack_require__(34);
829
837
 
830
- var StaticMajorColorEditor_1 = __webpack_require__(34);
838
+ var StaticMajorColorEditor_1 = __webpack_require__(35);
831
839
 
832
- var StaticTrendColorEditor_1 = __webpack_require__(35);
840
+ var StaticTrendColorEditor_1 = __webpack_require__(36);
833
841
 
834
842
  var StaticBackgroundColorEditor_1 = __webpack_require__(20);
835
843
 
@@ -1313,7 +1321,7 @@ var config = {
1313
1321
  exports.default = configUtils_1.enhanceConfig(config);
1314
1322
 
1315
1323
  /***/ }),
1316
- /* 55 */
1324
+ /* 61 */
1317
1325
  /***/ (function(module, exports) {
1318
1326
 
1319
1327
  module.exports = require("@splunk/visualization-themes/variables");
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///./src/common/utils/configUtils.ts","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///external \"lodash\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@splunk/visualization-icons\"","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///./src/common/editorConfig/StaticBackgroundColorEditor.js","webpack:///./src/common/configContext/singleValueContext.ts","webpack:///./src/common/editorConfig/DynamicMajorColorEditor.js","webpack:///./src/common/editorConfig/DynamicTrendColorEditor.js","webpack:///./src/common/editorConfig/DynamicBackgroundColorEditor.js","webpack:///./src/common/editorConfig/StaticMajorAndTrendLayout.js","webpack:///./src/common/editorConfig/StaticMajorColorEditor.js","webpack:///./src/common/editorConfig/StaticTrendColorEditor.js","webpack:///./src/SingleValue/config.ts","webpack:///external \"@splunk/visualization-themes/variables\""],"names":["StaticBackgroundColorEditor","label","_","option","editor","showEditor","options","isDynamicOption","getDynamicMajorColorEditor","defaultContext","defaultPalettesConfig","context","editorProps","labelPosition","flyoutTitle","formatters","value","defaults","majorValue","majorColorConfig","dataSelectors","getDynamicTrendColorEditor","trendValue","trendColorConfig","getDynamicBackgroundColorEditor","StaticMajorAndTrendLayout","values","min","max","placeholder","isDisabled","StaticMajorColorEditor","StaticTrendColorEditor"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CA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4BAAc,MAAd,CAAf,C;;;;;;AC3hBA,mE","file":"SingleValue.config.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 54);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\nimport { JSONSchema7Definition } from 'json-schema';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\n}\n\nconst dynamicOptionsDSLType = {\n type: 'string',\n pattern: DYNAMIC_OPTIONS_DSL_PATTERN,\n} as const;\n\n/**\n * Helper function to extend an options schema with dynamic options DSL\n * @param optionsSchema a visualization's options schema\n * @returns an updated options schema that additionally allows strings starting with > for each option\n */\nfunction enhanceOptionsSchemaWithDynamicOptions(\n optionsSchema: OptionsSchema | JSONSchema7Definition\n): OptionsSchema {\n const enhancedOptionsSchema: OptionsSchema = {};\n Object.keys(optionsSchema).forEach((key): void => {\n const {\n // The next a few are schema annotations, we should leave them as is.\n // Note: in reality we don't use `readOnly`, `writeOnly` or `examples`, but they are listed here for completeness.\n // Ref: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01\n title,\n description,\n readOnly,\n writeOnly,\n examples,\n default: defaultValue,\n // The next a few need special care\n type,\n properties,\n patternProperties,\n // The rest should be handled together\n ...remainingSchemaEntry\n } = optionsSchema[key];\n\n const annotations = {\n ...(title !== undefined && { title }),\n ...(description !== undefined && { description }),\n ...(readOnly !== undefined && { readOnly }),\n ...(writeOnly !== undefined && { writeOnly }),\n ...(examples !== undefined && { examples }),\n ...(defaultValue !== undefined && { default: defaultValue }),\n };\n\n if (type === 'object') {\n enhancedOptionsSchema[key] = {\n ...remainingSchemaEntry,\n ...annotations,\n type,\n ...(properties && { properties: enhanceOptionsSchemaWithDynamicOptions(properties) }),\n };\n if (patternProperties) {\n let enhancedPatternProperties = {};\n Object.keys(patternProperties).forEach((key): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [key]: patternProperties[key] }),\n };\n });\n enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;\n }\n } else {\n enhancedOptionsSchema[key] = {\n ...annotations,\n anyOf: [\n // we can't assume `type` is always there because there are `enum` and `const`.\n { ...(type !== undefined && { type }), ...remainingSchemaEntry },\n dynamicOptionsDSLType,\n ],\n };\n }\n });\n return enhancedOptionsSchema;\n}\n\n/**\n * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n */\nfunction enhanceConfig(vizConfig: VizConfig): VizConfig {\n const enhancedConfig: VizConfig = vizConfig;\n if (vizConfig.supports.indexOf(VizBehavior.DYNAMIC_OPTIONS) !== -1) {\n enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);\n }\n return enhancedConfig;\n}\n\nfunction isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\n// private helpers to improve readability of getInitialPreset\n// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset\n\n/**\n * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset\n * 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\n * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext\n * 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\n *\n * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values\n */\nfunction hasCompatibleContexts(\n vizContext: { [configKey: string]: any },\n presetContext: { [configKey: string]: any }\n): boolean {\n const presetContextKeys = Object.keys(presetContext);\n return presetContextKeys.every(\n (contextKey): boolean =>\n (presetContext[contextKey] === undefined && vizContext[contextKey] === undefined) ||\n (presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined)\n );\n}\n\n/**\n * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions\n */\nfunction hasCompatibleOptions(\n vizOptions: { [configKey: string]: any },\n presetOptions: { [configKey: string]: any }\n): boolean {\n const presetOptionKeys = Object.keys(presetOptions);\n return presetOptionKeys.every(\n (optionKey): boolean =>\n isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey])\n );\n}\n\n/**\n * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions\n * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure\n *\n * @param {Object} vizContext - the current vizContext definition\n * @param {Object} vizOptions - the current vizOptions definition\n * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset\n */\nfunction getInitialPreset(\n vizContext: { [configKey: string]: any },\n vizOptions: { [configKey: string]: any },\n presets: PresetEntry[]\n): PresetEntry | null {\n return presets.find((preset): boolean => {\n const presetContext = get(preset, ['value', 'context'], {});\n const presetOptions = get(preset, ['value', 'options'], {});\n const presetContextKeys = Object.keys(presetContext);\n const presetOptionKeys = Object.keys(presetOptions);\n\n // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)\n // if not, then the preset is invalid in config.ts\n if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;\n\n return (\n hasCompatibleContexts(vizContext, presetContext) &&\n hasCompatibleOptions(vizOptions, presetOptions)\n );\n });\n}\n\ninterface PrecisionOption {\n label: string;\n value: number;\n}\n\n/**\n * generates number precision values for a Select editor\n *\n * @param {Number} numPrecisionValues - number of integer precision values to generate\n * @returns {{ label: string; value; string }[]} array of { label, value } tuples\n */\nfunction generatePrecisionValues(numPrecisionValues: number): PrecisionOption[] {\n return range(0, numPrecisionValues + 1).map(\n (i): PrecisionOption => ({\n label: `${i} (0${i > 0 ? '.' : ''}${'0'.repeat(i)})`, // e.g. 0.000 for numPrecisionValues = 3\n value: i,\n })\n );\n}\n\nexport {\n enhanceConfig,\n enhanceOptionsSchemaWithDynamicOptions,\n isDynamicOption,\n getInitialPreset,\n generatePrecisionValues,\n};\n","export enum VizBehavior {\n /**\n * Dynamic Options Behavior.\n * This allows visualization options to be powered by data\n *\n * **Example**\n *\n * sparklineValues: \">primary|seriesByIndex(0)\"\n * would configure sparklineValues with an array of data points\n * coming from the first series in the primary datasource\n *\n */\n DYNAMIC_OPTIONS = 'dynamic-options',\n EVENTS = 'events',\n /**\n * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is\n * missing.\n * @type {string}\n */\n PLACEHOLDER = 'placeholder',\n PAGE_AND_SORT = 'page-and-sort',\n}\n","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","module.exports = require(\"lodash\");","export enum VizCategory {\n SINGLE_VALUE = 'Single Value',\n TRENDS = 'Trends',\n COMPARISONS = 'Comparisons',\n TABLE = 'Table',\n GAUGE = 'Gauge',\n DISTRIBUTIONS = 'Distributions',\n CHOROPLETH = 'Choropleth Maps',\n SHAPES = 'Shapes',\n MISC = 'misc',\n FLOW = 'Flow',\n}\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@splunk/visualization-icons\");","module.exports = require(\"@splunk/themes/pick\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticBackgroundColorEditor = {\n label: _('Static Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.backgroundColor),\n};\n\nexport default StaticBackgroundColorEditor;\n","import { DefaultContext } from '../interfaces/DefaultContext';\n\nexport const defaultContext: DefaultContext = {\n trendColorConfig: [\n {\n to: 0,\n value: '#9E2520',\n },\n {\n from: 0,\n value: '#1C6B2D',\n },\n ],\n majorColorConfig: [\n { to: 20, value: '#D41F1F' },\n { from: 20, to: 40, value: '#D94E17' },\n { from: 40, to: 60, value: '#CBA700' },\n { from: 60, to: 80, value: '#669922' },\n { from: 80, value: '#118832' },\n ],\n};\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicMajorColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Major Value'),\n option: 'majorColor',\n context: 'majorColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.majorColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Major Value'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n },\n },\n // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor\n // {\n // label: _('Matches'),\n // value: 'matchValue',\n // defaults: {\n // majorValue: [{ match: 'foo', value: '#f00' }],\n // },\n // },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicTrendColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Trend'),\n option: 'trendColor',\n context: 'trendColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.trendColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Trend'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n trendValue: defaultContext.trendColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicBackgroundColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Background'),\n option: 'backgroundColor',\n context: 'backgroundColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.backgroundColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Background'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n trendValue: defaultContext.trendColorConfig,\n },\n },\n // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor\n // {\n // label: _('Matches'),\n // value: 'matchValue',\n // defaults: {\n // majorValue: [{ match: 'foo', value: '#f00' }],\n // },\n // },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\n\nconst StaticMajorAndTrendLayout = [\n [\n {\n label: 'Unit Position', // todo: we need a new editor combining unit and position\n option: 'unitPosition',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Before'), value: 'before' },\n { label: _('After'), value: 'after' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Unit Label'),\n option: 'unit',\n editor: 'editor.text',\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Precision'),\n option: 'numberPrecision',\n editor: 'editor.number',\n editorProps: {\n min: 0,\n max: 20,\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Major Value Size (px)'),\n option: 'majorFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Trend Display'),\n option: 'trendDisplay',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Percent'), value: 'percent' },\n { label: _('Absolute'), value: 'absolute' },\n { label: _('Off'), value: 'off' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Trend Size (px)'),\n option: 'trendFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n },\n ],\n];\n\nexport default StaticMajorAndTrendLayout;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticMajorColorEditor = {\n label: _('Static Major Value'),\n option: 'majorColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.majorColor),\n};\n\nexport default StaticMajorColorEditor;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticTrendColorEditor = {\n label: _('Static Trend'),\n option: 'trendColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.trendColor),\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n};\n\nexport default StaticTrendColorEditor;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport {\n COLOR_OR_TOKEN_PATTERN,\n COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n getPattern,\n} from '@splunk/visualizations-shared/schemaUtils';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\nimport { enterprise, enterpriseDark, scp } from '@splunk/visualization-themes/variables';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { SingleValue as SingleValueIcon } from '@splunk/visualization-icons';\nimport { defaultContext } from '../common/configContext/singleValueContext';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { getDynamicMajorColorEditor } from '../common/editorConfig/DynamicMajorColorEditor';\nimport { getDynamicTrendColorEditor } from '../common/editorConfig/DynamicTrendColorEditor';\nimport { getDynamicBackgroundColorEditor } from '../common/editorConfig/DynamicBackgroundColorEditor';\nimport StaticMajorAndTrendLayout from '../common/editorConfig/StaticMajorAndTrendLayout';\nimport StaticMajorColorEditor from '../common/editorConfig/StaticMajorColorEditor';\nimport StaticTrendColorEditor from '../common/editorConfig/StaticTrendColorEditor';\nimport StaticBackgroundColorEditor from '../common/editorConfig/StaticBackgroundColorEditor';\nimport { PresetEntry, enhanceConfig, getInitialPreset } from '../common/utils/configUtils';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport { VizCategory } from '../common/interfaces/VizCategory';\n\nconst dataContract: DataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [],\n initialRequestParams: {\n primary: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 250,\n initialHeight: 250,\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is \"#ffffff\". The default for enterprise dark is \"#000000\". The default for prisma dark is \"#0b0c0e\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n majorColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n majorFontSize: {\n description:\n 'Specify the font size (px) for the major value. By default the major value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n majorValue: {\n default: '> sparklineValues|lastPoint()',\n description: 'The major value to display in the visualization.',\n type: ['string', 'number'],\n },\n majorValueField: {\n default: '> majorValue | getField()',\n description: 'The field name of major value.',\n type: 'string',\n },\n numberPrecision: {\n default: 0,\n maximum: 20,\n minimum: 0,\n description:\n 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. The maximum value is 20.',\n type: 'number',\n },\n shouldAbbreviateTrendValue: {\n default: false,\n description:\n 'Specify whether to abbreviate the trend value to 2 decimal points. A magnitude unit will be displayed.',\n type: 'boolean',\n },\n shouldSparklineAcceptNullData: {\n default: true,\n description: 'Specify whether to convert null and non-numeric values in the sparkline to 0.',\n type: 'boolean',\n },\n shouldUseThousandSeparators: {\n default: true,\n description: 'Specify whether numeric values use commas as thousandths separators.',\n type: 'boolean',\n },\n showSparklineAreaGraph: {\n default: false,\n description: 'Specify whether to show the sparkline as an area graph rather than a line.',\n type: 'boolean',\n },\n showSparklineTooltip: {\n default: false,\n description: 'Show a tooltip to display values on the sparkline.',\n type: 'boolean',\n },\n sparklineAreaColor: {\n default: '> sparklineStrokeColor',\n description:\n 'Specify the color for the sparkline area fill. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The graph area will have an opacity of 20% and will blend with the background color.',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n sparklineDisplay: {\n default: 'below',\n description: 'Specify how to display a sparkline.',\n pattern: getPattern(['before', 'after', 'below', 'off']),\n type: 'string',\n },\n sparklineHighlightDots: {\n default: 0,\n description:\n 'Specify the number of markers, or dots, to display at the top of a sparkline area graph.',\n type: 'number',\n },\n sparklineHighlightSegments: {\n default: 0,\n description: 'Specify the number of segments to be highlighted at the top of a sparkline area graph.',\n type: 'number',\n },\n sparklineStrokeColor: {\n default: '> themes.defaultSparklineStrokeColor',\n description:\n 'Specify the color for the sparkline stroke. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n sparklineValues: {\n default: '> primary|seriesByPrioritizedTypes(\"number\", \"string\", \"time\")',\n description:\n 'List of numerical values to display on a sparkline. If the values are string type, the sparkline will not be shown.',\n type: 'array',\n items: { type: ['string', 'number'] },\n },\n trendColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n trendDisplay: {\n default: 'absolute',\n description: 'Specify how to display the trend value.',\n pattern: getPattern(['percent', 'absolute', 'off']),\n type: 'string',\n },\n trendFontSize: {\n description:\n 'Specify the font size (px) for the trend value. By default the trend value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n trendValue: {\n default: '> sparklineValues|delta(-2)', // todo: may need update delta method\n description: 'The trend value to display in the visualization.',\n type: 'number',\n },\n underLabel: { description: 'Specify the text that appears below the major value.', type: 'string' },\n underLabelFontSize: {\n default: 12,\n description: 'Specify the font size (px) for the under label text.',\n type: 'number',\n },\n unit: {\n description: 'Specify text to show next to the major value.',\n type: 'string',\n },\n unitPosition: {\n default: 'after',\n description: 'Specify whether the unit text should appear before or after the major value.',\n pattern: getPattern(['before', 'after']),\n type: 'string',\n },\n};\n\nconst basePresetContext = {\n majorColorEditorConfig: undefined,\n trendColorEditorConfig: undefined,\n backgroundColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n majorColor: undefined,\n trendColor: undefined,\n backgroundColor: undefined,\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'singleValue.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Major Value'),\n name: 'singleValue.majorValue',\n value: {\n context: {\n ...basePresetContext,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n },\n },\n },\n {\n label: _('Trend'),\n name: 'singleValue.trend',\n value: {\n context: {\n ...basePresetContext,\n trendColorEditorConfig: defaultContext.trendColorConfig,\n },\n options: {\n ...basePresetOptions,\n trendColor: '> trendValue | rangeValue(trendColorEditorConfig)',\n },\n },\n },\n {\n label: _('Major Value & Trend'),\n name: 'singleValue.majorValueAndTrend',\n value: {\n context: {\n ...basePresetContext,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n trendColorEditorConfig: defaultContext.trendColorConfig,\n },\n options: {\n ...basePresetOptions,\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n trendColor: '> trendValue | rangeValue(trendColorEditorConfig)',\n },\n },\n },\n {\n label: _('Background'),\n name: 'singleValue.background',\n value: {\n context: {\n ...basePresetContext,\n backgroundColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n backgroundColor: '> majorValue | rangeValue(backgroundColorEditorConfig)',\n },\n },\n },\n];\n\n// @TODO(pwied):\n// remove once react-visualizations/SV was deprecated\n// including unused sparklineFillColor\nconst LIGHTMODE_SPARKLINE_AREA_COLOR = '#171D21';\nconst DARKMODE_SPARKLINE_AREA_COLOR = '#FFFFFF';\nconst themes: ThemedDefaults = {\n defaultFontColor: props =>\n pick({\n enterprise: {\n dark: variables.textColor(props),\n light: variables.gray20(props),\n },\n prisma: variables.contentColorActive(props),\n })(props),\n defaultBlockFontColor: props =>\n pick({\n enterprise: variables.white(props),\n prisma: variables.contentColorActive(props),\n })(props),\n defaultBackgroundColor: props =>\n pick({\n enterprise: {\n dark: variables.black(props),\n light: variables.backgroundColor(props),\n },\n prisma: variables.backgroundColorSidebar(props),\n })(props),\n defaultSparklineStrokeColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: variables.contentColorActive(props),\n })(props),\n // TODO(fkurniawan): update with SCP-36839\n sparklineSeverityColors: props =>\n pick({\n enterprise: {\n dark: JSON.stringify({\n none: {\n background: enterpriseDark.gray60, // note: may need update later\n stroke: enterpriseDark.white,\n },\n low: {\n background: enterpriseDark.successColorD50,\n stroke: enterpriseDark.white,\n },\n guarded: {\n background: enterpriseDark.infoColorD50,\n stroke: enterpriseDark.white,\n },\n elevated: {\n background: enterpriseDark.warningColorD50,\n stroke: enterpriseDark.white,\n },\n high: {\n background: enterpriseDark.alertColorD50,\n stroke: enterpriseDark.white,\n },\n severe: {\n background: enterpriseDark.errorColorD50,\n stroke: enterpriseDark.white,\n },\n }),\n light: JSON.stringify({\n none: {\n background: enterprise.gray60,\n stroke: enterprise.gray20,\n },\n low: {\n background: enterprise.successColorD50,\n stroke: enterprise.white,\n },\n guarded: {\n background: enterprise.infoColorD50,\n stroke: enterprise.white,\n },\n elevated: {\n background: enterprise.warningColorD50,\n stroke: enterprise.white,\n },\n high: {\n background: enterprise.alertColorD50,\n stroke: enterprise.white,\n },\n severe: {\n background: enterprise.errorColorD50,\n stroke: enterprise.white,\n },\n }),\n },\n prisma: JSON.stringify({\n none: {\n background: scp.gray52,\n stroke: scp.white,\n },\n low: {\n background: scp.successColorD50,\n stroke: scp.white,\n },\n guarded: {\n background: scp.infoColorD50,\n stroke: scp.white,\n },\n elevated: {\n background: scp.warningColorD50,\n stroke: scp.white,\n },\n high: {\n background: scp.alertColorD50,\n stroke: scp.white,\n },\n severe: {\n background: scp.errorColorD50,\n stroke: scp.white,\n },\n }),\n })(props),\n // TODO(fkurniawan): update with SCP-36839\n sparklineFillColor: props =>\n pick({\n enterprise: {\n light: LIGHTMODE_SPARKLINE_AREA_COLOR,\n dark: DARKMODE_SPARKLINE_AREA_COLOR,\n },\n prisma: DARKMODE_SPARKLINE_AREA_COLOR,\n })(props),\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Selected Data Field'),\n layout: [\n [\n {\n label: '',\n editor: 'editor.columnSelector',\n option: 'sparklineValues',\n context: 'sparklineValuesContext',\n editorProps: {\n dataSourceKey: 'primary',\n prepareValue: (\n definition\n ): { context: Record<string, any>; options: Record<string, any> } => {\n const {\n options: { sparklineValues },\n } = definition;\n return {\n context: {},\n options: {\n majorValue: `> sparklineValues | lastPoint()`,\n trendValue: `> sparklineValues | delta(-2)`,\n sparklineValues,\n },\n };\n },\n },\n },\n ],\n ],\n },\n {\n label: _('Major Value & Trend'),\n layout: StaticMajorAndTrendLayout,\n },\n {\n label: _('Sparkline'),\n layout: [\n [\n {\n label: '',\n option: 'sparklineDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Off'), value: 'off' },\n { label: _('Before'), value: 'before' },\n { label: _('Below'), value: 'below' },\n { label: _('After'), value: 'after' },\n ],\n },\n },\n ],\n ],\n },\n {\n label: _('Coloring'),\n layout: [\n [\n {\n label: 'Dynamic Elements',\n key: 'presetSelector',\n editor: 'editor.presetSelector',\n editorProps: {\n presets,\n value: ({ context, options }) => {\n const initialPreset = getInitialPreset(context, options, presets);\n return (initialPreset && initialPreset.label) || null;\n },\n },\n },\n ],\n [\n {\n ...StaticMajorColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicMajorColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticTrendColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicTrendColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticBackgroundColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicBackgroundColorEditor({ defaultContext, defaultPalettesConfig })],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.singlevalue',\n /**\n * viz name\n */\n name: 'Single Value',\n category: VizCategory.SINGLE_VALUE,\n /**\n * viz icon\n */\n icon: SingleValueIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'value.click': {\n description: 'trigger when user clicks major value',\n payloadKeys: ['majorValue', 'trendValue'],\n },\n },\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.EVENTS, VizBehavior.PLACEHOLDER],\n themes,\n requiredProps: ['majorValue'],\n};\n\nexport default enhanceConfig(config);\n","module.exports = require(\"@splunk/visualization-themes/variables\");"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///./src/common/utils/configUtils.ts","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///external \"lodash\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-icons\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///./src/common/editorConfig/StaticBackgroundColorEditor.js","webpack:///./src/common/configContext/singleValueContext.ts","webpack:///./src/common/editorConfig/DynamicMajorColorEditor.js","webpack:///./src/common/editorConfig/DynamicTrendColorEditor.js","webpack:///./src/common/editorConfig/DynamicBackgroundColorEditor.js","webpack:///./src/common/editorConfig/StaticMajorAndTrendLayout.js","webpack:///./src/common/editorConfig/StaticMajorColorEditor.js","webpack:///./src/common/editorConfig/StaticTrendColorEditor.js","webpack:///./src/SingleValue/config.ts","webpack:///external \"@splunk/visualization-themes/variables\""],"names":["StaticBackgroundColorEditor","label","_","option","editor","showEditor","options","isDynamicOption","getDynamicMajorColorEditor","defaultContext","defaultPalettesConfig","context","editorProps","labelPosition","flyoutTitle","formatters","value","defaults","majorValue","majorColorConfig","dataSelectors","getDynamicTrendColorEditor","trendValue","trendColorConfig","getDynamicBackgroundColorEditor","StaticMajorAndTrendLayout","values","min","max","placeholder","isDisabled","StaticMajorColorEditor","StaticTrendColorEditor"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,kD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;AACA;;AACA;;AAWA,IAAM,qBAAqB,GAAG;AAC1B,MAAI,EAAE,QADoB;AAE1B,SAAO,EAAE;AAFiB,CAA9B;AAKA;;;;AAIG;;AACH,SAAS,sCAAT,CACI,aADJ,EACwD;AAEpD,MAAM,qBAAqB,GAAkB,EAA7C;AACA,QAAM,CAAC,IAAP,CAAY,aAAZ,EAA2B,OAA3B,CAAmC,UAAC,GAAD,EAAc;AACvC,aAgBF,aAAa,CAhBX,GAgBW,CAhBX;AAAA,QAIF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,EAAE,cARgB;AAStB,UAAQ,EAAE,0BAAY,YATA;;AAUtB;;AAEG;AACH,MAAI,EAAE,iCAbgB;AActB,cAAY,EAAZ,YAdsB;AAetB,MAAI,EAAJ,IAfsB;AAgBtB,gBAAc,EAAd,mCAhBsB;AAiBtB,eAAa,EAAb,aAjBsB;AAkBtB,cAAY,EAAZ,YAlBsB;AAmBtB,QAAM,EAAE;AACJ,mBAAe;AACX,iBAAW,EAAE,sCADF;AAEX,iBAAW,EAAE,CAAC,YAAD,EAAe,YAAf;AAFF;AADX,GAnBc;AAyBtB,UAAQ,EAAE,CAAC,0BAAY,eAAb,EAA8B,0BAAY,MAA1C,EAAkD,0BAAY,WAA9D,CAzBY;AA0BtB,QAAM,EAAN,MA1BsB;AA2BtB,eAAa,EAAE,CAAC,YAAD;AA3BO,CAA1B;AA8BA,kBAAe,4BAAc,MAAd,CAAf,C;;;;;;AC3hBA,mE","file":"SingleValue.config.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 60);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\nimport type { JSONSchema7Definition } from 'json-schema';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\n}\n\nconst dynamicOptionsDSLType = {\n type: 'string',\n pattern: DYNAMIC_OPTIONS_DSL_PATTERN,\n} as const;\n\n/**\n * Helper function to extend an options schema with dynamic options DSL\n * @param optionsSchema a visualization's options schema\n * @returns an updated options schema that additionally allows strings starting with > for each option\n */\nfunction enhanceOptionsSchemaWithDynamicOptions(\n optionsSchema: OptionsSchema | JSONSchema7Definition\n): OptionsSchema {\n const enhancedOptionsSchema: OptionsSchema = {};\n Object.keys(optionsSchema).forEach((key): void => {\n const {\n // The next a few are schema annotations, we should leave them as is.\n // Note: in reality we don't use `readOnly`, `writeOnly` or `examples`, but they are listed here for completeness.\n // Ref: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01\n title,\n description,\n readOnly,\n writeOnly,\n examples,\n default: defaultValue,\n // The next a few need special care\n type,\n properties,\n patternProperties,\n // The rest should be handled together\n ...remainingSchemaEntry\n } = optionsSchema[key];\n\n const annotations = {\n ...(title !== undefined && { title }),\n ...(description !== undefined && { description }),\n ...(readOnly !== undefined && { readOnly }),\n ...(writeOnly !== undefined && { writeOnly }),\n ...(examples !== undefined && { examples }),\n ...(defaultValue !== undefined && { default: defaultValue }),\n };\n\n if (type === 'object') {\n enhancedOptionsSchema[key] = {\n ...remainingSchemaEntry,\n ...annotations,\n type,\n ...(properties && { properties: enhanceOptionsSchemaWithDynamicOptions(properties) }),\n };\n if (patternProperties) {\n let enhancedPatternProperties = {};\n Object.keys(patternProperties).forEach((key): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [key]: patternProperties[key] }),\n };\n });\n enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;\n }\n } else {\n enhancedOptionsSchema[key] = {\n ...annotations,\n anyOf: [\n // we can't assume `type` is always there because there are `enum` and `const`.\n { ...(type !== undefined && { type }), ...remainingSchemaEntry },\n dynamicOptionsDSLType,\n ],\n };\n }\n });\n return enhancedOptionsSchema;\n}\n\n/**\n * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n */\nfunction enhanceConfig(vizConfig: VizConfig): VizConfig {\n const enhancedConfig: VizConfig = vizConfig;\n if (vizConfig.supports.indexOf(VizBehavior.DYNAMIC_OPTIONS) !== -1) {\n enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);\n }\n return enhancedConfig;\n}\n\nfunction isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\n// private helpers to improve readability of getInitialPreset\n// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset\n\n/**\n * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset\n * 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\n * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext\n * 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\n *\n * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values\n */\nfunction hasCompatibleContexts(\n vizContext: { [configKey: string]: any },\n presetContext: { [configKey: string]: any }\n): boolean {\n const presetContextKeys = Object.keys(presetContext);\n return presetContextKeys.every(\n (contextKey): boolean =>\n (presetContext[contextKey] === undefined && vizContext[contextKey] === undefined) ||\n (presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined)\n );\n}\n\n/**\n * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions\n */\nfunction hasCompatibleOptions(\n vizOptions: { [configKey: string]: any },\n presetOptions: { [configKey: string]: any }\n): boolean {\n const presetOptionKeys = Object.keys(presetOptions);\n return presetOptionKeys.every(\n (optionKey): boolean =>\n isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey])\n );\n}\n\n/**\n * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions\n * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure\n *\n * @param {Object} vizContext - the current vizContext definition\n * @param {Object} vizOptions - the current vizOptions definition\n * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset\n */\nfunction getInitialPreset(\n vizContext: { [configKey: string]: any },\n vizOptions: { [configKey: string]: any },\n presets: PresetEntry[]\n): PresetEntry | null {\n return presets.find((preset): boolean => {\n const presetContext = get(preset, ['value', 'context'], {});\n const presetOptions = get(preset, ['value', 'options'], {});\n const presetContextKeys = Object.keys(presetContext);\n const presetOptionKeys = Object.keys(presetOptions);\n\n // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)\n // if not, then the preset is invalid in config.ts\n if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;\n\n return (\n hasCompatibleContexts(vizContext, presetContext) &&\n hasCompatibleOptions(vizOptions, presetOptions)\n );\n });\n}\n\ninterface PrecisionOption {\n label: string;\n value: number;\n}\n\n/**\n * generates number precision values for a Select editor\n *\n * @param {Number} numPrecisionValues - number of integer precision values to generate\n * @returns {{ label: string; value; string }[]} array of { label, value } tuples\n */\nfunction generatePrecisionValues(numPrecisionValues: number): PrecisionOption[] {\n return range(0, numPrecisionValues + 1).map(\n (i): PrecisionOption => ({\n label: `${i} (0${i > 0 ? '.' : ''}${'0'.repeat(i)})`, // e.g. 0.000 for numPrecisionValues = 3\n value: i,\n })\n );\n}\n\nexport {\n enhanceConfig,\n enhanceOptionsSchemaWithDynamicOptions,\n isDynamicOption,\n getInitialPreset,\n generatePrecisionValues,\n};\n","export enum VizBehavior {\n /**\n * Dynamic Options Behavior.\n * This allows visualization options to be powered by data\n *\n * **Example**\n *\n * sparklineValues: \">primary|seriesByIndex(0)\"\n * would configure sparklineValues with an array of data points\n * coming from the first series in the primary datasource\n *\n */\n DYNAMIC_OPTIONS = 'dynamic-options',\n EVENTS = 'events',\n /**\n * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is\n * missing.\n * @type {string}\n */\n PLACEHOLDER = 'placeholder',\n PAGE_AND_SORT = 'page-and-sort',\n}\n","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","module.exports = require(\"lodash\");","export enum VizCategory {\n SINGLE_VALUE = 'Single Value',\n TRENDS = 'Trends',\n COMPARISONS = 'Comparisons',\n TABLE = 'Table',\n GAUGE = 'Gauge',\n DISTRIBUTIONS = 'Distributions',\n CHOROPLETH = 'Choropleth Maps',\n SHAPES = 'Shapes',\n MISC = 'misc',\n FLOW = 'Flow',\n CORRELATION = 'Correlation',\n SPATIAL = 'Spatial',\n}\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@splunk/themes/pick\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-icons\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticBackgroundColorEditor = {\n label: _('Static Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.backgroundColor),\n};\n\nexport default StaticBackgroundColorEditor;\n","import { DefaultContext } from '../interfaces/DefaultContext';\n\nexport const defaultContext: DefaultContext = {\n trendColorConfig: [\n {\n to: 0,\n value: '#9E2520',\n },\n {\n from: 0,\n value: '#1C6B2D',\n },\n ],\n majorColorConfig: [\n { to: 20, value: '#D41F1F' },\n { from: 20, to: 40, value: '#D94E17' },\n { from: 40, to: 60, value: '#CBA700' },\n { from: 60, to: 80, value: '#669922' },\n { from: 80, value: '#118832' },\n ],\n};\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicMajorColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Major Value'),\n option: 'majorColor',\n context: 'majorColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.majorColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Major Value'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n },\n },\n // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor\n // {\n // label: _('Matches'),\n // value: 'matchValue',\n // defaults: {\n // majorValue: [{ match: 'foo', value: '#f00' }],\n // },\n // },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicTrendColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Trend'),\n option: 'trendColor',\n context: 'trendColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.trendColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Trend'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n trendValue: defaultContext.trendColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nexport const getDynamicBackgroundColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Dynamic Background'),\n option: 'backgroundColor',\n context: 'backgroundColorEditorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.backgroundColor),\n editorProps: {\n labelPosition: 'left',\n flyoutTitle: _('Dynamic Coloring: Background'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n majorValue: defaultContext.majorColorConfig,\n trendValue: defaultContext.trendColorConfig,\n },\n },\n // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor\n // {\n // label: _('Matches'),\n // value: 'matchValue',\n // defaults: {\n // majorValue: [{ match: 'foo', value: '#f00' }],\n // },\n // },\n ],\n dataSelectors: [\n {\n label: _('Major Value'),\n value: 'majorValue',\n },\n {\n label: _('Trend'),\n value: 'trendValue',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\n\nconst StaticMajorAndTrendLayout = [\n [\n {\n label: 'Unit Position', // todo: we need a new editor combining unit and position\n option: 'unitPosition',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Before'), value: 'before' },\n { label: _('After'), value: 'after' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Unit Label'),\n option: 'unit',\n editor: 'editor.text',\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Precision'),\n option: 'numberPrecision',\n editor: 'editor.number',\n editorProps: {\n min: 0,\n max: 20,\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Major Value Size (px)'),\n option: 'majorFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n ],\n [\n {\n label: _('Trend Display'),\n option: 'trendDisplay',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Percent'), value: 'percent' },\n { label: _('Absolute'), value: 'absolute' },\n { label: _('Off'), value: 'off' },\n ],\n },\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n },\n {\n label: _('Trend Size (px)'),\n option: 'trendFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 1,\n },\n placeholder: _('Auto'),\n showEditor: ({ options }) => options.showValue || options.showValue === undefined,\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n },\n ],\n];\n\nexport default StaticMajorAndTrendLayout;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticMajorColorEditor = {\n label: _('Static Major Value'),\n option: 'majorColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.majorColor),\n};\n\nexport default StaticMajorColorEditor;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '../utils/configUtils';\n\nconst StaticTrendColorEditor = {\n label: _('Static Trend'),\n option: 'trendColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.trendColor),\n isDisabled: ({ options }) => options.trendDisplay === 'off',\n};\n\nexport default StaticTrendColorEditor;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport {\n COLOR_OR_TOKEN_PATTERN,\n COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n getPattern,\n} from '@splunk/visualizations-shared/schemaUtils';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\nimport { enterprise, enterpriseDark, scp } from '@splunk/visualization-themes/variables';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { SingleValue as SingleValueIcon } from '@splunk/visualization-icons';\nimport { defaultContext } from '../common/configContext/singleValueContext';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { getDynamicMajorColorEditor } from '../common/editorConfig/DynamicMajorColorEditor';\nimport { getDynamicTrendColorEditor } from '../common/editorConfig/DynamicTrendColorEditor';\nimport { getDynamicBackgroundColorEditor } from '../common/editorConfig/DynamicBackgroundColorEditor';\nimport StaticMajorAndTrendLayout from '../common/editorConfig/StaticMajorAndTrendLayout';\nimport StaticMajorColorEditor from '../common/editorConfig/StaticMajorColorEditor';\nimport StaticTrendColorEditor from '../common/editorConfig/StaticTrendColorEditor';\nimport StaticBackgroundColorEditor from '../common/editorConfig/StaticBackgroundColorEditor';\nimport { PresetEntry, enhanceConfig, getInitialPreset } from '../common/utils/configUtils';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport { VizCategory } from '../common/interfaces/VizCategory';\n\nconst dataContract: DataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [],\n initialRequestParams: {\n primary: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 250,\n initialHeight: 250,\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is \"#ffffff\". The default for enterprise dark is \"#000000\". The default for prisma dark is \"#0b0c0e\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n majorColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n majorFontSize: {\n description:\n 'Specify the font size (px) for the major value. By default the major value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n majorValue: {\n default: '> sparklineValues|lastPoint()',\n description: 'The major value to display in the visualization.',\n type: ['string', 'number'],\n },\n majorValueField: {\n default: '> majorValue | getField()',\n description: 'The field name of major value.',\n type: 'string',\n },\n numberPrecision: {\n default: 0,\n maximum: 20,\n minimum: 0,\n description:\n 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. The maximum value is 20.',\n type: 'number',\n },\n shouldAbbreviateTrendValue: {\n default: false,\n description:\n 'Specify whether to abbreviate the trend value to 2 decimal points. A magnitude unit will be displayed.',\n type: 'boolean',\n },\n shouldSparklineAcceptNullData: {\n default: true,\n description: 'Specify whether to convert null and non-numeric values in the sparkline to 0.',\n type: 'boolean',\n },\n shouldUseThousandSeparators: {\n default: true,\n description: 'Specify whether numeric values use commas as thousandths separators.',\n type: 'boolean',\n },\n showSparklineAreaGraph: {\n default: false,\n description: 'Specify whether to show the sparkline as an area graph rather than a line.',\n type: 'boolean',\n },\n showSparklineTooltip: {\n default: false,\n description: 'Show a tooltip to display values on the sparkline.',\n type: 'boolean',\n },\n sparklineAreaColor: {\n default: '> sparklineStrokeColor',\n description:\n 'Specify the color for the sparkline area fill. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The graph area will have an opacity of 20% and will blend with the background color.',\n pattern: COLOR_OR_TOKEN_PATTERN,\n type: 'string',\n },\n sparklineDisplay: {\n default: 'below',\n description: 'Specify how to display a sparkline.',\n pattern: getPattern(['before', 'after', 'below', 'off']),\n type: 'string',\n },\n sparklineHighlightDots: {\n default: 0,\n description:\n 'Specify the number of markers, or dots, to display at the top of a sparkline area graph.',\n type: 'number',\n },\n sparklineHighlightSegments: {\n default: 0,\n description: 'Specify the number of segments to be highlighted at the top of a sparkline area graph.',\n type: 'number',\n },\n sparklineStrokeColor: {\n default: '> themes.defaultSparklineStrokeColor',\n description:\n 'Specify the color for the sparkline stroke. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n sparklineValues: {\n default: '> primary|seriesByPrioritizedTypes(\"number\", \"string\", \"time\")',\n description:\n 'List of numerical values to display on a sparkline. If the values are string type, the sparkline will not be shown.',\n type: 'array',\n items: { type: ['string', 'number'] },\n },\n trendColor: {\n default: '> themes.defaultFontColor',\n description:\n 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is \"#000000\". The default for enterprise dark is \"#ffffff\". The default for prisma dark is \"rgba(255, 255, 255, 0.98)\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n trendDisplay: {\n default: 'absolute',\n description: 'Specify how to display the trend value.',\n pattern: getPattern(['percent', 'absolute', 'off']),\n type: 'string',\n },\n trendFontSize: {\n description:\n 'Specify the font size (px) for the trend value. By default the trend value font size is calculated dynamically based on the available space.',\n type: 'number',\n },\n trendValue: {\n default: '> sparklineValues|delta(-2)', // todo: may need update delta method\n description: 'The trend value to display in the visualization.',\n type: 'number',\n },\n underLabel: { description: 'Specify the text that appears below the major value.', type: 'string' },\n underLabelFontSize: {\n default: 12,\n description: 'Specify the font size (px) for the under label text.',\n type: 'number',\n },\n unit: {\n description: 'Specify text to show next to the major value.',\n type: 'string',\n },\n unitPosition: {\n default: 'after',\n description: 'Specify whether the unit text should appear before or after the major value.',\n pattern: getPattern(['before', 'after']),\n type: 'string',\n },\n};\n\nconst basePresetContext = {\n majorColorEditorConfig: undefined,\n trendColorEditorConfig: undefined,\n backgroundColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n majorColor: undefined,\n trendColor: undefined,\n backgroundColor: undefined,\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'singleValue.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Major Value'),\n name: 'singleValue.majorValue',\n value: {\n context: {\n ...basePresetContext,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n },\n },\n },\n {\n label: _('Trend'),\n name: 'singleValue.trend',\n value: {\n context: {\n ...basePresetContext,\n trendColorEditorConfig: defaultContext.trendColorConfig,\n },\n options: {\n ...basePresetOptions,\n trendColor: '> trendValue | rangeValue(trendColorEditorConfig)',\n },\n },\n },\n {\n label: _('Major Value & Trend'),\n name: 'singleValue.majorValueAndTrend',\n value: {\n context: {\n ...basePresetContext,\n majorColorEditorConfig: defaultContext.majorColorConfig,\n trendColorEditorConfig: defaultContext.trendColorConfig,\n },\n options: {\n ...basePresetOptions,\n majorColor: '> majorValue | rangeValue(majorColorEditorConfig)',\n trendColor: '> trendValue | rangeValue(trendColorEditorConfig)',\n },\n },\n },\n {\n label: _('Background'),\n name: 'singleValue.background',\n value: {\n context: {\n ...basePresetContext,\n backgroundColorEditorConfig: defaultContext.majorColorConfig,\n },\n options: {\n ...basePresetOptions,\n backgroundColor: '> majorValue | rangeValue(backgroundColorEditorConfig)',\n },\n },\n },\n];\n\n// @TODO(pwied):\n// remove once react-visualizations/SV was deprecated\n// including unused sparklineFillColor\nconst LIGHTMODE_SPARKLINE_AREA_COLOR = '#171D21';\nconst DARKMODE_SPARKLINE_AREA_COLOR = '#FFFFFF';\nconst themes: ThemedDefaults = {\n defaultFontColor: props =>\n pick({\n enterprise: {\n dark: variables.textColor(props),\n light: variables.gray20(props),\n },\n prisma: variables.contentColorActive(props),\n })(props),\n defaultBlockFontColor: props =>\n pick({\n enterprise: variables.white(props),\n prisma: variables.contentColorActive(props),\n })(props),\n defaultBackgroundColor: props =>\n pick({\n enterprise: {\n dark: variables.black(props),\n light: variables.backgroundColor(props),\n },\n prisma: variables.backgroundColorSidebar(props),\n })(props),\n defaultSparklineStrokeColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: variables.contentColorActive(props),\n })(props),\n // TODO(fkurniawan): update with SCP-36839\n sparklineSeverityColors: props =>\n pick({\n enterprise: {\n dark: JSON.stringify({\n none: {\n background: enterpriseDark.gray60, // note: may need update later\n stroke: enterpriseDark.white,\n },\n low: {\n background: enterpriseDark.successColorD50,\n stroke: enterpriseDark.white,\n },\n guarded: {\n background: enterpriseDark.infoColorD50,\n stroke: enterpriseDark.white,\n },\n elevated: {\n background: enterpriseDark.warningColorD50,\n stroke: enterpriseDark.white,\n },\n high: {\n background: enterpriseDark.alertColorD50,\n stroke: enterpriseDark.white,\n },\n severe: {\n background: enterpriseDark.errorColorD50,\n stroke: enterpriseDark.white,\n },\n }),\n light: JSON.stringify({\n none: {\n background: enterprise.gray60,\n stroke: enterprise.gray20,\n },\n low: {\n background: enterprise.successColorD50,\n stroke: enterprise.white,\n },\n guarded: {\n background: enterprise.infoColorD50,\n stroke: enterprise.white,\n },\n elevated: {\n background: enterprise.warningColorD50,\n stroke: enterprise.white,\n },\n high: {\n background: enterprise.alertColorD50,\n stroke: enterprise.white,\n },\n severe: {\n background: enterprise.errorColorD50,\n stroke: enterprise.white,\n },\n }),\n },\n prisma: JSON.stringify({\n none: {\n background: scp.gray52,\n stroke: scp.white,\n },\n low: {\n background: scp.successColorD50,\n stroke: scp.white,\n },\n guarded: {\n background: scp.infoColorD50,\n stroke: scp.white,\n },\n elevated: {\n background: scp.warningColorD50,\n stroke: scp.white,\n },\n high: {\n background: scp.alertColorD50,\n stroke: scp.white,\n },\n severe: {\n background: scp.errorColorD50,\n stroke: scp.white,\n },\n }),\n })(props),\n // TODO(fkurniawan): update with SCP-36839\n sparklineFillColor: props =>\n pick({\n enterprise: {\n light: LIGHTMODE_SPARKLINE_AREA_COLOR,\n dark: DARKMODE_SPARKLINE_AREA_COLOR,\n },\n prisma: DARKMODE_SPARKLINE_AREA_COLOR,\n })(props),\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Selected Data Field'),\n layout: [\n [\n {\n label: '',\n editor: 'editor.columnSelector',\n option: 'sparklineValues',\n context: 'sparklineValuesContext',\n editorProps: {\n dataSourceKey: 'primary',\n prepareValue: (\n definition\n ): { context: Record<string, any>; options: Record<string, any> } => {\n const {\n options: { sparklineValues },\n } = definition;\n return {\n context: {},\n options: {\n majorValue: `> sparklineValues | lastPoint()`,\n trendValue: `> sparklineValues | delta(-2)`,\n sparklineValues,\n },\n };\n },\n },\n },\n ],\n ],\n },\n {\n label: _('Major Value & Trend'),\n layout: StaticMajorAndTrendLayout,\n },\n {\n label: _('Sparkline'),\n layout: [\n [\n {\n label: '',\n option: 'sparklineDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Off'), value: 'off' },\n { label: _('Before'), value: 'before' },\n { label: _('Below'), value: 'below' },\n { label: _('After'), value: 'after' },\n ],\n },\n },\n ],\n ],\n },\n {\n label: _('Coloring'),\n layout: [\n [\n {\n label: 'Dynamic Elements',\n key: 'presetSelector',\n editor: 'editor.presetSelector',\n editorProps: {\n presets,\n value: ({ context, options }) => {\n const initialPreset = getInitialPreset(context, options, presets);\n return (initialPreset && initialPreset.label) || null;\n },\n },\n },\n ],\n [\n {\n ...StaticMajorColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicMajorColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticTrendColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicTrendColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticBackgroundColorEditor,\n editorProps: {\n labelPosition: 'left',\n themes,\n },\n },\n ],\n [getDynamicBackgroundColorEditor({ defaultContext, defaultPalettesConfig })],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.singlevalue',\n /**\n * viz name\n */\n name: 'Single Value',\n category: VizCategory.SINGLE_VALUE,\n /**\n * viz icon\n */\n icon: SingleValueIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'value.click': {\n description: 'trigger when user clicks major value',\n payloadKeys: ['majorValue', 'trendValue'],\n },\n },\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.EVENTS, VizBehavior.PLACEHOLDER],\n themes,\n requiredProps: ['majorValue'],\n};\n\nexport default enhanceConfig(config);\n","module.exports = require(\"@splunk/visualization-themes/variables\");"],"sourceRoot":""}