@splunk/visualizations 25.10.0 → 25.12.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 (108) hide show
  1. package/Area.config.js +1 -1
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +3 -3
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +1 -1
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +3 -3
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +2 -2
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +4 -4
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +2 -2
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +11 -11
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +2 -2
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +4 -4
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +2 -2
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +15 -15
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +1 -1
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +37 -22
  28. package/Events.js.map +1 -1
  29. package/FEATUREFLAGS.md +5 -4
  30. package/FillerGauge.config.js +3 -3
  31. package/FillerGauge.config.js.map +1 -1
  32. package/FillerGauge.js +32 -22
  33. package/FillerGauge.js.map +1 -1
  34. package/Image.config.js +1 -1
  35. package/Image.config.js.map +1 -1
  36. package/Image.js +3 -3
  37. package/Image.js.map +1 -1
  38. package/Line.config.js +2 -2
  39. package/Line.config.js.map +1 -1
  40. package/Line.js +4 -4
  41. package/Line.js.map +1 -1
  42. package/LinkGraph.config.js +1 -1
  43. package/LinkGraph.config.js.map +1 -1
  44. package/LinkGraph.js +25 -25
  45. package/LinkGraph.js.map +1 -1
  46. package/Map.config.js +2 -2
  47. package/Map.config.js.map +1 -1
  48. package/Map.js +203 -142
  49. package/Map.js.map +1 -1
  50. package/Markdown.config.js +1 -1
  51. package/Markdown.config.js.map +1 -1
  52. package/Markdown.js +7 -7
  53. package/Markdown.js.map +1 -1
  54. package/MarkerGauge.config.js +2 -2
  55. package/MarkerGauge.config.js.map +1 -1
  56. package/MarkerGauge.js +32 -21
  57. package/MarkerGauge.js.map +1 -1
  58. package/ParallelCoordinates.config.js +2 -2
  59. package/ParallelCoordinates.config.js.map +1 -1
  60. package/ParallelCoordinates.js +5 -5
  61. package/ParallelCoordinates.js.map +1 -1
  62. package/Pie.config.js +1 -1
  63. package/Pie.config.js.map +1 -1
  64. package/Pie.js +11 -11
  65. package/Pie.js.map +1 -1
  66. package/Punchcard.config.js +2 -2
  67. package/Punchcard.config.js.map +1 -1
  68. package/Punchcard.js +6 -6
  69. package/Punchcard.js.map +1 -1
  70. package/Rectangle.config.js +2 -2
  71. package/Rectangle.config.js.map +1 -1
  72. package/Rectangle.js +14 -14
  73. package/Rectangle.js.map +1 -1
  74. package/Sankey.config.js +1 -1
  75. package/Sankey.config.js.map +1 -1
  76. package/Sankey.js +8 -8
  77. package/Sankey.js.map +1 -1
  78. package/Scatter.config.js +2 -2
  79. package/Scatter.config.js.map +1 -1
  80. package/Scatter.js +8 -6
  81. package/Scatter.js.map +1 -1
  82. package/SingleValue.config.js +3 -3
  83. package/SingleValue.config.js.map +1 -1
  84. package/SingleValue.js +8 -8
  85. package/SingleValue.js.map +1 -1
  86. package/SingleValueBasic.js +1 -1
  87. package/SingleValueBasic.js.map +1 -1
  88. package/SingleValueIcon.config.js +3 -3
  89. package/SingleValueIcon.config.js.map +1 -1
  90. package/SingleValueIcon.js +6 -6
  91. package/SingleValueIcon.js.map +1 -1
  92. package/SingleValueRadial.config.js +3 -3
  93. package/SingleValueRadial.config.js.map +1 -1
  94. package/SingleValueRadial.js +33 -27
  95. package/SingleValueRadial.js.map +1 -1
  96. package/Table.config.js +1 -1
  97. package/Table.config.js.map +1 -1
  98. package/Table.js +13 -13
  99. package/Table.js.map +1 -1
  100. package/common/GaugeValueMarker.js +20 -10
  101. package/common/GaugeValueMarker.js.map +1 -1
  102. package/common/utils/mapUtils.js +4 -3
  103. package/common/utils/mapUtils.js.map +1 -1
  104. package/common/utils/singleValueUtils.js +1 -1
  105. package/common/utils/singleValueUtils.js.map +1 -1
  106. package/common/withDashboardViz.js +2 -2
  107. package/common/withDashboardViz.js.map +1 -1
  108. package/package.json +15 -14
package/FEATUREFLAGS.md CHANGED
@@ -33,8 +33,9 @@ const MyComponent = () => {
33
33
  If leveraging these visualizations from within UDF you may follow their guidance on `featureFlags` as documented in Dashboard Context. UDF will automatically leverage visualization feature flags as defined below.
34
34
 
35
35
  ```markup
36
- | Feature Flag | Default | Description
37
- | ----------------------------------- |----------------------- | ------------------------------------------------------------------------------------------------------------------
38
- | visualizations_enableTrellis | false | Supported visualizations can be rendered in trellis layout display mode if `splitByLayout: trellis` is configured.
39
- | visualizations_useWebWorkersForDSL | false | This offloads the DSL evaluation to a web-worker. Every visualization that uses `withDashboardViz` will send the options to a static method `AsyncDynamicOptionsEvaluator.evaluate` which returns a promise. When the DSL evaluation is complete the results are returned back to the viz via the promise.
36
+ | Feature Flag | Default | Description
37
+ | ----------------------------------- |----------------------- | ------------------------------------------------------------------------------------------------------------------
38
+ | visualizations_enableTrellis | false | Supported visualizations can be rendered in trellis layout display mode if `splitByLayout: trellis` is configured.
39
+ | visualizations_useWebWorkersForDSL | false | This offloads the DSL evaluation to a web-worker. Every visualization that uses `withDashboardViz` will send the options to a static method `AsyncDynamicOptionsEvaluator.evaluate` which returns a promise. When the DSL evaluation is complete the results are returned back to the viz via the promise.
40
+ | visualizations_enableEventsViewerTags | false | This enables viewing and editing tags in the Events visualization.
40
41
  ```
@@ -621,7 +621,7 @@ var optionsSchema = {
621
621
  },
622
622
  labelDisplay: {
623
623
  default: 'number',
624
- description: 'Specify whether to display the labels as numbers, percentages, or off.',
624
+ description: 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',
625
625
  pattern: schemaUtils_1.getPattern(['number', 'percentage', 'off']),
626
626
  type: 'string'
627
627
  },
@@ -758,7 +758,7 @@ var editorConfig = [{
758
758
  }, Gauge_1.default, {
759
759
  label: i18n_1._('Color and style'),
760
760
  layout: [[{
761
- label: 'Dynamic elements',
761
+ label: i18n_1._('Dynamic elements'),
762
762
  key: 'presetSelector',
763
763
  editor: 'editor.presetSelector',
764
764
  editorProps: {
@@ -792,7 +792,7 @@ var config = {
792
792
  /**
793
793
  * viz name
794
794
  */
795
- name: 'FillerGauge',
795
+ name: i18n_1._('Filler gauge'),
796
796
  category: VizCategory_1.VizCategory.GAUGE,
797
797
  /**
798
798
  * viz icon
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///external \"@splunk/visualizations-shared/configUtils\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-icons/placeholders\"","webpack:///./src/common/editorConfig/BackgroundColor.ts","webpack:///external \"@splunk/visualization-color-palettes\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///./src/common/editorConfig/Gauge.ts","webpack:///./src/FillerGauge/config.ts","webpack:///external \"@splunk/react-icons/enterprise/GaugeFiller\"","webpack:///./src/common/editorConfig/DynamicGaugeColorEditor.ts","webpack:///./src/common/editorConfig/StaticGaugeColorEditor.ts"],"names":["VizBehavior","exports","lodash_1","require","schemaUtils_1","VizBehavior_1","dynamicOptionsDSLType","type","pattern","DYNAMIC_OPTIONS_DSL_PATTERN","enhanceOptionsSchemaWithDynamicOptions","optionsSchema","enhancedOptionsSchema","Object","keys","forEach","key","_a","title","description","readOnly","writeOnly","examples","defaultValue","default","properties","patternProperties","remainingSchemaEntry","__rest","annotations","assign","undefined","enhancedPatternProperties","opt","_defineProperty","anyOf","enhanceConfig","vizConfig","enhancedConfig","supports","indexOf","DYNAMIC_OPTIONS","editorConfig","map","config","open","uncollapseEditorConfig","editorPanelUncollapsedConfig","isDynamicOption","option","trim","startsWith","hasCompatibleContexts","vizContext","presetContext","presetContextKeys","every","contextKey","hasCompatibleOptions","vizOptions","presetOptions","presetOptionKeys","optionKey","getInitialPreset","presets","find","preset","get","length","generatePrecisionValues","numPrecisionValues","range","i","label","concat","repeat","value","insertLayout","layout","index","_len","arguments","layoutItems","Array","_key","_toConsumableArray","slice","VizCategory","i18n_1","background","_ref","themes","labelPosition","_","editor","editorProps","gauge","values","pick_1","variables_1","visualization_color_palettes_1","PresetPalettes_1","GaugeFiller_1","placeholders_1","VizCategory_1","configUtils_1","Gauge_1","BackgroundColor_1","DynamicGaugeColorEditor_1","StaticGaugeColorEditor_1","dataContract","requiredDataSources","name","optionalDataSources","initialRequestParams","primary","offset","count","size","initialWidth","initialHeight","defaultContext","gaugeColorConfig","to","from","backgroundColor","COLOR_OR_TOKEN_PATTERN_WITH_RGBA","gaugeColor","CATEGORICAL","labelDisplay","getPattern","majorTickInterval","orientation","valueDisplay","defaultBackgroundColor","props","enterprise","dark","black","light","prisma","backgroundColorSidebar","defaultBackgroundBarFillColor","backgroundColorHover","contentColorActive","neutral100","majorTickFillColor","gray30","textGray","contentColorMuted","majorTickStrokeColor","valueMarkerFillColor","textColor","white","valueMarkerLabelFillColor","gray96","basePresetContext","gaugeColorEditorConfig","basePresetOptions","context","options","dataSourceKey","prepareValue","definition","initialPreset","getDynamicGaugeColorEditor","defaultPalettesConfig","category","GAUGE","icon","placeholderIcon","FillerGauge","PLACEHOLDER","showEditor","_ref2","flyoutTitle","formatters","defaults","dataSelectors","StaticGaugeColorEditor"],"mappings":";;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AAA,OAAO,CAACvD,aAAA,CAAAzD,eAAe,CAACgH,OAAO,CAACjC,UAAU,CAAC;EAAA;CACpE;AAED9H,OAAA,CAAAuB,OAAA,GAAe2J,sBAAsB,C","file":"FillerGauge.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 = 49);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","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 TRELLIS = 'trellis',\n}\n","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport type { JSONSchema7Definition } from 'json-schema';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\nimport { EditorLayoutConfig, EditorConfig } from '../interfaces/Editor';\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((opt): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [opt]: patternProperties[opt] }),\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 * this function also collapse all editor panels\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n * and containing `open: false` for all editor panels in editorConfig\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 enhancedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: config.open || false };\n }\n );\n return enhancedConfig;\n}\n\n/**\n * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig\n * Created for editor unit tests\n * @param vizConfig a Visualization Config\n * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig\n */\nfunction uncollapseEditorConfig(vizConfig: VizConfig): VizConfig {\n const editorPanelUncollapsedConfig: VizConfig = { ...vizConfig };\n editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: true };\n }\n );\n return editorPanelUncollapsedConfig;\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 getInitialPreset,\n generatePrecisionValues,\n uncollapseEditorConfig,\n isDynamicOption,\n};\n\n/**\n * insert layout in layout array, return a new layout array instead of updating the original\n *\n * @param {EditorLayoutConfig[][]} layout - editor layout\n * @param {Number} index - the index to insert layout item(s)\n * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert\n * @returns {EditorLayoutConfig[][]} new editor layout with insertion\n */\nexport const insertLayout = (\n layout: EditorLayoutConfig[][],\n index: number,\n ...layoutItems: EditorLayoutConfig[][]\n): EditorLayoutConfig[][] => [\n // copy part of the array before the specified index\n ...layout.slice(0, index),\n // inserted layout item\n ...layoutItems,\n // copy part of the array after the specified index\n ...layout.slice(index),\n];\n","module.exports = require(\"@splunk/visualizations-shared/configUtils\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","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(\"@splunk/themes/pick\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-icons/placeholders\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorLayoutConfig } from '../interfaces/Editor';\nimport { ThemedDefaults } from '../interfaces/ThemedDefaults';\n\ninterface backgroundEditorProps {\n label?: string;\n themes: ThemedDefaults;\n labelPosition?: string;\n}\n\nconst background: ({ label, themes, labelPosition }: backgroundEditorProps) => EditorLayoutConfig[] = ({\n label,\n themes,\n labelPosition,\n}) => [\n {\n label: _(label || 'Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: labelPosition || 'top',\n themes,\n },\n },\n];\n\nexport default background;\n","module.exports = require(\"@splunk/visualization-color-palettes\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorConfig } from '../interfaces/Editor';\n\nconst gauge: EditorConfig = {\n label: _('Data display'),\n layout: [\n [\n {\n label: _('Value display'),\n option: 'valueDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Number'), value: 'number' },\n { label: _('Percentage'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Label display'),\n option: 'labelDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Numbers'), value: 'number' },\n { label: _('Percentages'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Orientation'),\n option: 'orientation',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Vertical'), value: 'vertical' },\n { label: _('Horizontal'), value: 'horizontal' },\n ],\n },\n },\n ],\n ],\n};\n\nexport default gauge;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_OR_TOKEN_PATTERN_WITH_RGBA, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { CATEGORICAL } from '@splunk/visualization-color-palettes';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\n\nimport SuiGaugeFillerIcon from '@splunk/react-icons/enterprise/GaugeFiller';\nimport { FillerGauge as FillerGaugePlaceholderIcon } from '@splunk/visualization-icons/placeholders';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { VizCategory } from '../common/interfaces/VizCategory';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { PresetEntry, enhanceConfig, getInitialPreset } from '../common/utils/configUtils';\nimport GaugeConfig from '../common/editorConfig/Gauge';\nimport getBackgroundColorEditor from '../common/editorConfig/BackgroundColor';\nimport { getDynamicGaugeColorEditor } from '../common/editorConfig/DynamicGaugeColorEditor';\nimport StaticGaugeColorEditor from '../common/editorConfig/StaticGaugeColorEditor';\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: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {\n gaugeColorConfig: [\n { to: 9, value: '#118832' },\n { from: 10, to: 29, value: '#669922' },\n { from: 30, to: 49, value: '#CBA700' },\n { from: 50, to: 69, value: '#D94E17' },\n { from: 70, value: '#D41F1F' },\n ],\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color used for the background. 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 gaugeColor: {\n default: CATEGORICAL[0],\n description:\n 'Specify the color for the gauge color of the filler gauge. You may use a dataSource to apply the color. The hex value format should be \"#FFFFFF\".',\n type: 'string',\n },\n labelDisplay: {\n default: 'number',\n description: 'Specify whether to display the labels as numbers, percentages, or off.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\n },\n majorTickInterval: {\n description: 'Specify, in pixels, the spacing between major tick marks.',\n default: 'auto',\n type: ['string', 'number'],\n },\n orientation: {\n default: 'vertical',\n description: 'Specify the axis orientation of the gauge.',\n pattern: getPattern(['vertical', 'horizontal']),\n type: 'string',\n },\n value: {\n default: '> primary | seriesByType(\"number\") | lastPoint()',\n description: 'Specify the dataSource applied to the value of the filler gauge.',\n type: 'number',\n },\n valueDisplay: {\n default: 'number',\n description: 'Specify whether to display the value as a number, percentage, or off.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\n },\n};\n\nconst themes: ThemedDefaults = {\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 defaultBackgroundBarFillColor: props =>\n pick({\n enterprise: variables.backgroundColorHover(props),\n prisma: {\n light: variables.contentColorActive(props),\n dark: variables.neutral100(props),\n },\n })(props),\n majorTickFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray30(props), // was '#33343B'\n dark: variables.textGray(props), // was #D7DAE0\n },\n prisma: {\n // TODO: missed colors :(\n light: variables.neutral100(props), // TBD\n dark: variables.contentColorMuted(props), // was #D7DAE0; contentColor\n },\n })(props),\n majorTickStrokeColor: props =>\n pick({\n enterprise: {\n light: variables.textGray(props),\n dark: variables.contentColorMuted(props),\n },\n prisma: variables.contentColorMuted(props),\n })(props),\n valueMarkerFillColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: {\n dark: variables.white(props),\n light: variables.black(props),\n },\n })(props),\n valueMarkerLabelFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray96(props),\n dark: variables.black(props),\n },\n prisma: variables.black(props),\n })(props),\n};\n\nconst basePresetContext = {\n gaugeColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n gaugeColor: CATEGORICAL[0],\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'fillerGauge.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Gauge'),\n name: 'fillerGauge.gauge',\n value: {\n context: {\n gaugeColorEditorConfig: defaultContext.gaugeColorConfig,\n },\n options: {\n gaugeColor: '> value | rangeValue(gaugeColorEditorConfig)',\n },\n },\n },\n];\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Data configurations'),\n layout: [\n [\n {\n label: _('Value'),\n editor: 'editor.columnSelector',\n option: 'value',\n context: 'defaultContext',\n editorProps: {\n dataSourceKey: 'primary',\n prepareValue: (\n definition\n ): { context: Record<string, any>; options: Record<string, any> } => {\n const {\n options: { value },\n } = definition;\n return {\n context: {},\n options: {\n value: `${value} | lastPoint()`,\n },\n };\n },\n },\n },\n ],\n ],\n },\n GaugeConfig,\n {\n label: _('Color and style'),\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 [getDynamicGaugeColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticGaugeColorEditor,\n editorProps: {\n themes,\n },\n },\n ],\n getBackgroundColorEditor({ themes }),\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.fillergauge',\n /**\n * viz name\n */\n name: 'FillerGauge',\n category: VizCategory.GAUGE,\n /**\n * viz icon\n */\n icon: SuiGaugeFillerIcon,\n placeholderIcon: FillerGaugePlaceholderIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.PLACEHOLDER],\n themes,\n};\n\nexport default enhanceConfig(config);\n","module.exports = require(\"@splunk/react-icons/enterprise/GaugeFiller\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nexport const getDynamicGaugeColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Gauge'),\n option: 'gaugeColor',\n context: 'gaugeColorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.gaugeColor),\n editorProps: {\n labelPosition: 'top',\n flyoutTitle: _('Dynamic coloring: gauge'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n value: defaultContext.gaugeColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Value'),\n value: 'value',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nconst StaticGaugeColorEditor = {\n label: _('Gauge'),\n option: 'gaugeColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.gaugeColor),\n};\n\nexport default StaticGaugeColorEditor;\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///external \"@splunk/visualizations-shared/configUtils\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-icons/placeholders\"","webpack:///./src/common/editorConfig/BackgroundColor.ts","webpack:///external \"@splunk/visualization-color-palettes\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///./src/common/editorConfig/Gauge.ts","webpack:///./src/FillerGauge/config.ts","webpack:///external \"@splunk/react-icons/enterprise/GaugeFiller\"","webpack:///./src/common/editorConfig/DynamicGaugeColorEditor.ts","webpack:///./src/common/editorConfig/StaticGaugeColorEditor.ts"],"names":["VizBehavior","exports","lodash_1","require","schemaUtils_1","VizBehavior_1","dynamicOptionsDSLType","type","pattern","DYNAMIC_OPTIONS_DSL_PATTERN","enhanceOptionsSchemaWithDynamicOptions","optionsSchema","enhancedOptionsSchema","Object","keys","forEach","key","_a","title","description","readOnly","writeOnly","examples","defaultValue","default","properties","patternProperties","remainingSchemaEntry","__rest","annotations","assign","undefined","enhancedPatternProperties","opt","_defineProperty","anyOf","enhanceConfig","vizConfig","enhancedConfig","supports","indexOf","DYNAMIC_OPTIONS","editorConfig","map","config","open","uncollapseEditorConfig","editorPanelUncollapsedConfig","isDynamicOption","option","trim","startsWith","hasCompatibleContexts","vizContext","presetContext","presetContextKeys","every","contextKey","hasCompatibleOptions","vizOptions","presetOptions","presetOptionKeys","optionKey","getInitialPreset","presets","find","preset","get","length","generatePrecisionValues","numPrecisionValues","range","i","label","concat","repeat","value","insertLayout","layout","index","_len","arguments","layoutItems","Array","_key","_toConsumableArray","slice","VizCategory","i18n_1","background","_ref","themes","labelPosition","_","editor","editorProps","gauge","values","pick_1","variables_1","visualization_color_palettes_1","PresetPalettes_1","GaugeFiller_1","placeholders_1","VizCategory_1","configUtils_1","Gauge_1","BackgroundColor_1","DynamicGaugeColorEditor_1","StaticGaugeColorEditor_1","dataContract","requiredDataSources","name","optionalDataSources","initialRequestParams","primary","offset","count","size","initialWidth","initialHeight","defaultContext","gaugeColorConfig","to","from","backgroundColor","COLOR_OR_TOKEN_PATTERN_WITH_RGBA","gaugeColor","CATEGORICAL","labelDisplay","getPattern","majorTickInterval","orientation","valueDisplay","defaultBackgroundColor","props","enterprise","dark","black","light","prisma","backgroundColorSidebar","defaultBackgroundBarFillColor","backgroundColorHover","contentColorActive","neutral100","majorTickFillColor","gray30","textGray","contentColorMuted","majorTickStrokeColor","valueMarkerFillColor","textColor","white","valueMarkerLabelFillColor","gray96","basePresetContext","gaugeColorEditorConfig","basePresetOptions","context","options","dataSourceKey","prepareValue","definition","initialPreset","getDynamicGaugeColorEditor","defaultPalettesConfig","category","GAUGE","icon","placeholderIcon","FillerGauge","PLACEHOLDER","showEditor","_ref2","flyoutTitle","formatters","defaults","dataSelectors","StaticGaugeColorEditor"],"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,qE;;;;;;;;;;;;;ACAA,IAAYA,WAsBX;AAtBD,WAAYA,WAAW;EACnB;;;;;;;;;;;EAWAA,WAAA,uCAAmC;EACnCA,WAAA,qBAAiB;EACjB;;;;;EAKAA,WAAA,+BAA2B;EAC3BA,WAAA,mCAA+B;EAC/BA,WAAA,uBAAmB;AACvB,CAAC,EAtBWA,WAAW,GAAXC,OAAA,CAAAD,WAAW,KAAXC,OAAA,CAAAD,WAAW,Q;;;;;;ACAvB,sE;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAE,QAAA,GAAAC,mBAAA;AACA,IAAAC,aAAA,GAAAD,mBAAA;AAGA,IAAAE,aAAA,GAAAF,mBAAA;AAWA,IAAMG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;;;ACHvC,IAAA7E,MAAA,GAAArF,mBAAA;AACA,IAAAsG,aAAA,GAAAtG,mBAAA;AAEA,IAAMgL,sBAAsB,GAAG;EAC3B1G,KAAK,EAAEe,MAAA,CAAAK,CAAC,CAAC,OAAO,CAAC;EACjB5C,MAAM,EAAE,YAAY;EACpB6C,MAAM,EAAE,cAAc;EACtB+E,UAAU,EAAE,SAAAA,WAAAnF,IAAA;IAAA,IAAGsE,OAAO,GAAAtE,IAAA,CAAPsE,OAAO;IAAA,OAAO,CAACvD,aAAA,CAAAzD,eAAe,CAACgH,OAAO,CAACjC,UAAU,CAAC;EAAA;CACpE;AAED9H,OAAA,CAAAuB,OAAA,GAAe2J,sBAAsB,C","file":"FillerGauge.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 = 49);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","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 TRELLIS = 'trellis',\n}\n","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport type { JSONSchema7Definition } from 'json-schema';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\nimport { EditorLayoutConfig, EditorConfig } from '../interfaces/Editor';\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((opt): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [opt]: patternProperties[opt] }),\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 * this function also collapse all editor panels\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n * and containing `open: false` for all editor panels in editorConfig\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 enhancedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: config.open || false };\n }\n );\n return enhancedConfig;\n}\n\n/**\n * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig\n * Created for editor unit tests\n * @param vizConfig a Visualization Config\n * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig\n */\nfunction uncollapseEditorConfig(vizConfig: VizConfig): VizConfig {\n const editorPanelUncollapsedConfig: VizConfig = { ...vizConfig };\n editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: true };\n }\n );\n return editorPanelUncollapsedConfig;\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 getInitialPreset,\n generatePrecisionValues,\n uncollapseEditorConfig,\n isDynamicOption,\n};\n\n/**\n * insert layout in layout array, return a new layout array instead of updating the original\n *\n * @param {EditorLayoutConfig[][]} layout - editor layout\n * @param {Number} index - the index to insert layout item(s)\n * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert\n * @returns {EditorLayoutConfig[][]} new editor layout with insertion\n */\nexport const insertLayout = (\n layout: EditorLayoutConfig[][],\n index: number,\n ...layoutItems: EditorLayoutConfig[][]\n): EditorLayoutConfig[][] => [\n // copy part of the array before the specified index\n ...layout.slice(0, index),\n // inserted layout item\n ...layoutItems,\n // copy part of the array after the specified index\n ...layout.slice(index),\n];\n","module.exports = require(\"@splunk/visualizations-shared/configUtils\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","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(\"@splunk/themes/pick\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-icons/placeholders\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorLayoutConfig } from '../interfaces/Editor';\nimport { ThemedDefaults } from '../interfaces/ThemedDefaults';\n\ninterface backgroundEditorProps {\n label?: string;\n themes: ThemedDefaults;\n labelPosition?: string;\n}\n\nconst background: ({ label, themes, labelPosition }: backgroundEditorProps) => EditorLayoutConfig[] = ({\n label,\n themes,\n labelPosition,\n}) => [\n {\n label: _(label || 'Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: labelPosition || 'top',\n themes,\n },\n },\n];\n\nexport default background;\n","module.exports = require(\"@splunk/visualization-color-palettes\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorConfig } from '../interfaces/Editor';\n\nconst gauge: EditorConfig = {\n label: _('Data display'),\n layout: [\n [\n {\n label: _('Value display'),\n option: 'valueDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Number'), value: 'number' },\n { label: _('Percentage'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Label display'),\n option: 'labelDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Numbers'), value: 'number' },\n { label: _('Percentages'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Orientation'),\n option: 'orientation',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Vertical'), value: 'vertical' },\n { label: _('Horizontal'), value: 'horizontal' },\n ],\n },\n },\n ],\n ],\n};\n\nexport default gauge;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_OR_TOKEN_PATTERN_WITH_RGBA, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { CATEGORICAL } from '@splunk/visualization-color-palettes';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\n\nimport SuiGaugeFillerIcon from '@splunk/react-icons/enterprise/GaugeFiller';\nimport { FillerGauge as FillerGaugePlaceholderIcon } from '@splunk/visualization-icons/placeholders';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { VizCategory } from '../common/interfaces/VizCategory';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { PresetEntry, enhanceConfig, getInitialPreset } from '../common/utils/configUtils';\nimport GaugeConfig from '../common/editorConfig/Gauge';\nimport getBackgroundColorEditor from '../common/editorConfig/BackgroundColor';\nimport { getDynamicGaugeColorEditor } from '../common/editorConfig/DynamicGaugeColorEditor';\nimport StaticGaugeColorEditor from '../common/editorConfig/StaticGaugeColorEditor';\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: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {\n gaugeColorConfig: [\n { to: 9, value: '#118832' },\n { from: 10, to: 29, value: '#669922' },\n { from: 30, to: 49, value: '#CBA700' },\n { from: 50, to: 69, value: '#D94E17' },\n { from: 70, value: '#D41F1F' },\n ],\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color used for the background. 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 gaugeColor: {\n default: CATEGORICAL[0],\n description:\n 'Specify the color for the gauge color of the filler gauge. You may use a dataSource to apply the color. The hex value format should be \"#FFFFFF\".',\n type: 'string',\n },\n labelDisplay: {\n default: 'number',\n description:\n 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\n },\n majorTickInterval: {\n description: 'Specify, in pixels, the spacing between major tick marks.',\n default: 'auto',\n type: ['string', 'number'],\n },\n orientation: {\n default: 'vertical',\n description: 'Specify the axis orientation of the gauge.',\n pattern: getPattern(['vertical', 'horizontal']),\n type: 'string',\n },\n value: {\n default: '> primary | seriesByType(\"number\") | lastPoint()',\n description: 'Specify the dataSource applied to the value of the filler gauge.',\n type: 'number',\n },\n valueDisplay: {\n default: 'number',\n description: 'Specify whether to display the value as a number, percentage, or off.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\n },\n};\n\nconst themes: ThemedDefaults = {\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 defaultBackgroundBarFillColor: props =>\n pick({\n enterprise: variables.backgroundColorHover(props),\n prisma: {\n light: variables.contentColorActive(props),\n dark: variables.neutral100(props),\n },\n })(props),\n majorTickFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray30(props), // was '#33343B'\n dark: variables.textGray(props), // was #D7DAE0\n },\n prisma: {\n // TODO: missed colors :(\n light: variables.neutral100(props), // TBD\n dark: variables.contentColorMuted(props), // was #D7DAE0; contentColor\n },\n })(props),\n majorTickStrokeColor: props =>\n pick({\n enterprise: {\n light: variables.textGray(props),\n dark: variables.contentColorMuted(props),\n },\n prisma: variables.contentColorMuted(props),\n })(props),\n valueMarkerFillColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: {\n dark: variables.white(props),\n light: variables.black(props),\n },\n })(props),\n valueMarkerLabelFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray96(props),\n dark: variables.black(props),\n },\n prisma: variables.black(props),\n })(props),\n};\n\nconst basePresetContext = {\n gaugeColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n gaugeColor: CATEGORICAL[0],\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'fillerGauge.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Gauge'),\n name: 'fillerGauge.gauge',\n value: {\n context: {\n gaugeColorEditorConfig: defaultContext.gaugeColorConfig,\n },\n options: {\n gaugeColor: '> value | rangeValue(gaugeColorEditorConfig)',\n },\n },\n },\n];\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Data configurations'),\n layout: [\n [\n {\n label: _('Value'),\n editor: 'editor.columnSelector',\n option: 'value',\n context: 'defaultContext',\n editorProps: {\n dataSourceKey: 'primary',\n prepareValue: (\n definition\n ): { context: Record<string, any>; options: Record<string, any> } => {\n const {\n options: { value },\n } = definition;\n return {\n context: {},\n options: {\n value: `${value} | lastPoint()`,\n },\n };\n },\n },\n },\n ],\n ],\n },\n GaugeConfig,\n {\n label: _('Color and style'),\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 [getDynamicGaugeColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticGaugeColorEditor,\n editorProps: {\n themes,\n },\n },\n ],\n getBackgroundColorEditor({ themes }),\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.fillergauge',\n /**\n * viz name\n */\n name: _('Filler gauge'),\n category: VizCategory.GAUGE,\n /**\n * viz icon\n */\n icon: SuiGaugeFillerIcon,\n placeholderIcon: FillerGaugePlaceholderIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.PLACEHOLDER],\n themes,\n};\n\nexport default enhanceConfig(config);\n","module.exports = require(\"@splunk/react-icons/enterprise/GaugeFiller\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nexport const getDynamicGaugeColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Gauge'),\n option: 'gaugeColor',\n context: 'gaugeColorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.gaugeColor),\n editorProps: {\n labelPosition: 'top',\n flyoutTitle: _('Dynamic coloring: gauge'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n value: defaultContext.gaugeColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Value'),\n value: 'value',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nconst StaticGaugeColorEditor = {\n label: _('Gauge'),\n option: 'gaugeColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.gaugeColor),\n};\n\nexport default StaticGaugeColorEditor;\n"],"sourceRoot":""}
package/FillerGauge.js CHANGED
@@ -260,7 +260,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
260
260
  }
261
261
  return React.createElement(FixSizeItem, {
262
262
  "data-test": "fix-size-item",
263
- "data-splunk-visualization-version": "25.10.0 - 8d01deb08",
263
+ "data-splunk-visualization-version": "25.12.0 - d7a0fecdf",
264
264
  width: width,
265
265
  height: height,
266
266
  backgroundColor: backgroundColor
@@ -1414,7 +1414,7 @@ var Cover = styled_components_1.default.div.withConfig({
1414
1414
  componentId: "sc-1gsbnxb-0"
1415
1415
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1416
1416
  var Blocker = styled_components_1.default.div.attrs({
1417
- 'data-splunk-visualization-version': "25.10.0 - 8d01deb08"
1417
+ 'data-splunk-visualization-version': "25.12.0 - d7a0fecdf"
1418
1418
  }).withConfig({
1419
1419
  displayName: "withEditModeCover__Blocker",
1420
1420
  componentId: "sc-1gsbnxb-1"
@@ -2304,8 +2304,7 @@ exports.convertToGaugeProperties = convertToGaugeProperties;
2304
2304
  /* 121 */,
2305
2305
  /* 122 */,
2306
2306
  /* 123 */,
2307
- /* 124 */,
2308
- /* 125 */
2307
+ /* 124 */
2309
2308
  /***/ (function(module, exports, __webpack_require__) {
2310
2309
 
2311
2310
  "use strict";
@@ -2367,7 +2366,7 @@ var gauge = {
2367
2366
  exports.default = gauge;
2368
2367
 
2369
2368
  /***/ }),
2370
- /* 126 */
2369
+ /* 125 */
2371
2370
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2372
2371
 
2373
2372
  "use strict";
@@ -2611,7 +2610,7 @@ MajorTicks.defaultProps = {
2611
2610
  /* harmony default export */ __webpack_exports__["default"] = (MajorTicks);
2612
2611
 
2613
2612
  /***/ }),
2614
- /* 127 */
2613
+ /* 126 */
2615
2614
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2616
2615
 
2617
2616
  "use strict";
@@ -2672,10 +2671,12 @@ var positionValueMarkerRect = function positionValueMarkerRect(_ref) {
2672
2671
  var x = _ref.x,
2673
2672
  y = _ref.y,
2674
2673
  orientation = _ref.orientation,
2675
- valueMarkerRectLength = _ref.valueMarkerRectLength;
2674
+ valueMarkerRectLength = _ref.valueMarkerRectLength,
2675
+ _ref$alignCenter = _ref.alignCenter,
2676
+ alignCenter = _ref$alignCenter === void 0 ? false : _ref$alignCenter;
2676
2677
  var hLength = MARKER_THICKNESS;
2677
2678
  var vLength = valueMarkerRectLength;
2678
- var markerStartX = x - MARKER_THICKNESS;
2679
+ var markerStartX = alignCenter ? x - MARKER_THICKNESS / 2 : x - MARKER_THICKNESS;
2679
2680
  var markerStartY = y;
2680
2681
  var innerHLength = hLength / 3;
2681
2682
  var innerVLength = MARKER_INNER_LENGTH;
@@ -2685,6 +2686,7 @@ var positionValueMarkerRect = function positionValueMarkerRect(_ref) {
2685
2686
  hLength = valueMarkerRectLength;
2686
2687
  vLength = MARKER_THICKNESS;
2687
2688
  markerStartX = x;
2689
+ markerStartY = alignCenter ? y - MARKER_THICKNESS / 2 : y;
2688
2690
  innerHLength = MARKER_INNER_LENGTH;
2689
2691
  innerVLength = vLength / 3;
2690
2692
  innerStartX = markerStartX + 7;
@@ -2711,13 +2713,15 @@ var positionLabel = function positionLabel(_ref2) {
2711
2713
  var x = _ref2.x,
2712
2714
  y = _ref2.y,
2713
2715
  length = _ref2.length,
2714
- orientation = _ref2.orientation;
2716
+ orientation = _ref2.orientation,
2717
+ _ref2$alignCenter = _ref2.alignCenter,
2718
+ alignCenter = _ref2$alignCenter === void 0 ? false : _ref2$alignCenter;
2715
2719
  // for horizontal view
2716
- var labelRectX = x - MARKER_THICKNESS / 2 - MARKER_LABEL_WIDTH / 2;
2720
+ var labelRectX = alignCenter ? x - MARKER_LABEL_WIDTH / 2 : x - MARKER_THICKNESS / 2 - MARKER_LABEL_WIDTH / 2;
2717
2721
  var labelRectY = y + length;
2718
2722
  if (orientation === 'vertical') {
2719
2723
  labelRectX = x + length;
2720
- labelRectY = y - (MARKER_LABEL_HEIGHT - MARKER_THICKNESS) / 2;
2724
+ labelRectY = alignCenter ? y - MARKER_LABEL_HEIGHT / 2 : y - (MARKER_LABEL_HEIGHT - MARKER_THICKNESS) / 2;
2721
2725
  }
2722
2726
  var labelX = labelRectX + MARKER_LABEL_WIDTH / 2;
2723
2727
  var labelY = labelRectY + MARKER_LABEL_HEIGHT / 2;
@@ -2740,13 +2744,15 @@ var ValueMarker = function ValueMarker(_ref3) {
2740
2744
  showValue = props.showValue,
2741
2745
  usePercentageValue = props.usePercentageValue,
2742
2746
  valueMarkerFillColor = props.valueMarkerFillColor,
2743
- valueMarkerLabelFillColor = props.valueMarkerLabelFillColor;
2747
+ valueMarkerLabelFillColor = props.valueMarkerLabelFillColor,
2748
+ alignCenter = props.alignCenter;
2744
2749
  var valueMarkerRectLength = length + DELTA_LENGTH;
2745
2750
  var _positionLabel = positionLabel({
2746
2751
  x: x,
2747
2752
  y: y,
2748
2753
  length: length,
2749
- orientation: orientation
2754
+ orientation: orientation,
2755
+ alignCenter: alignCenter
2750
2756
  }),
2751
2757
  labelRectX = _positionLabel.labelRectX,
2752
2758
  labelRectY = _positionLabel.labelRectY,
@@ -2758,7 +2764,8 @@ var ValueMarker = function ValueMarker(_ref3) {
2758
2764
  x: x,
2759
2765
  y: y,
2760
2766
  orientation: orientation,
2761
- valueMarkerRectLength: valueMarkerRectLength
2767
+ valueMarkerRectLength: valueMarkerRectLength,
2768
+ alignCenter: alignCenter
2762
2769
  }),
2763
2770
  valueMarkerFillColor: valueMarkerFillColor
2764
2771
  }), showValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ValueMarkerLabelRect, {
@@ -2791,18 +2798,21 @@ ValueMarker.propTypes = {
2791
2798
  showValue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
2792
2799
  usePercentageValue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
2793
2800
  valueMarkerFillColor: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
2794
- valueMarkerLabelFillColor: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
2801
+ valueMarkerLabelFillColor: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
2802
+ alignCenter: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
2795
2803
  };
2796
2804
  ValueMarker.defaultProps = {
2797
2805
  min: 0,
2798
2806
  max: 100,
2799
2807
  orientation: 'horizontal',
2800
2808
  showValue: true,
2801
- usePercentageValue: false
2809
+ usePercentageValue: false,
2810
+ alignCenter: false
2802
2811
  };
2803
2812
  /* harmony default export */ __webpack_exports__["default"] = (ValueMarker);
2804
2813
 
2805
2814
  /***/ }),
2815
+ /* 127 */,
2806
2816
  /* 128 */,
2807
2817
  /* 129 */,
2808
2818
  /* 130 */,
@@ -2953,7 +2963,7 @@ var placeholders_1 = __webpack_require__(48);
2953
2963
  var VizBehavior_1 = __webpack_require__(6);
2954
2964
  var VizCategory_1 = __webpack_require__(35);
2955
2965
  var configUtils_1 = __webpack_require__(19);
2956
- var Gauge_1 = __webpack_require__(125);
2966
+ var Gauge_1 = __webpack_require__(124);
2957
2967
  var BackgroundColor_1 = __webpack_require__(53);
2958
2968
  var DynamicGaugeColorEditor_1 = __webpack_require__(211);
2959
2969
  var StaticGaugeColorEditor_1 = __webpack_require__(212);
@@ -3009,7 +3019,7 @@ var optionsSchema = {
3009
3019
  },
3010
3020
  labelDisplay: {
3011
3021
  default: 'number',
3012
- description: 'Specify whether to display the labels as numbers, percentages, or off.',
3022
+ description: 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',
3013
3023
  pattern: schemaUtils_1.getPattern(['number', 'percentage', 'off']),
3014
3024
  type: 'string'
3015
3025
  },
@@ -3146,7 +3156,7 @@ var editorConfig = [{
3146
3156
  }, Gauge_1.default, {
3147
3157
  label: i18n_1._('Color and style'),
3148
3158
  layout: [[{
3149
- label: 'Dynamic elements',
3159
+ label: i18n_1._('Dynamic elements'),
3150
3160
  key: 'presetSelector',
3151
3161
  editor: 'editor.presetSelector',
3152
3162
  editorProps: {
@@ -3180,7 +3190,7 @@ var config = {
3180
3190
  /**
3181
3191
  * viz name
3182
3192
  */
3183
- name: 'FillerGauge',
3193
+ name: i18n_1._('Filler gauge'),
3184
3194
  category: VizCategory_1.VizCategory.GAUGE,
3185
3195
  /**
3186
3196
  * viz icon
@@ -3301,8 +3311,8 @@ var style_1 = __webpack_require__(14);
3301
3311
  var SizeAwareWrapper_1 = __webpack_require__(18);
3302
3312
  var Message_1 = __webpack_require__(9);
3303
3313
  var gaugeUtils_1 = __webpack_require__(92);
3304
- var GaugeMajorTicks_1 = __webpack_require__(126);
3305
- var GaugeValueMarker_1 = __webpack_require__(127);
3314
+ var GaugeMajorTicks_1 = __webpack_require__(125);
3315
+ var GaugeValueMarker_1 = __webpack_require__(126);
3306
3316
  var Container = styled_components_1.default.div.withConfig({
3307
3317
  displayName: "FillerGauge__Container",
3308
3318
  componentId: "u356pd-0"