@splunk/visualizations 25.11.0 → 25.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area.config.js +1 -1
- package/Area.config.js.map +1 -1
- package/Area.js +115 -114
- package/Area.js.map +1 -1
- package/Bar.config.js +1 -1
- package/Bar.config.js.map +1 -1
- package/Bar.js +115 -114
- package/Bar.js.map +1 -1
- package/Bubble.config.js +1 -1
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +104 -103
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +1 -1
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +208 -124
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +1 -1
- package/Column.config.js.map +1 -1
- package/Column.js +117 -114
- package/Column.js.map +1 -1
- package/Ellipse.config.js +1 -1
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +73 -70
- package/Ellipse.js.map +1 -1
- package/Events.config.js +2 -2
- package/Events.config.js.map +1 -1
- package/Events.js +182 -135
- package/Events.js.map +1 -1
- package/FEATUREFLAGS.md +5 -4
- package/FillerGauge.config.js +1 -1
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +96 -93
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +1 -1
- package/Image.config.js.map +1 -1
- package/Image.js +99 -99
- package/Image.js.map +1 -1
- package/Line.config.js +1 -1
- package/Line.config.js.map +1 -1
- package/Line.js +117 -114
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +1 -1
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +660 -657
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +1 -1
- package/Map.config.js.map +1 -1
- package/Map.js +351 -336
- package/Map.js.map +1 -1
- package/Markdown.config.js +1 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +105 -105
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +1 -1
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +89 -89
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +1 -1
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +111 -111
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +1 -1
- package/Pie.config.js.map +1 -1
- package/Pie.js +126 -126
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +1 -1
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +229 -229
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +1 -1
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +112 -112
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +1 -1
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +179 -178
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +1 -1
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +152 -152
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +1 -1
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +955 -351
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +43 -27
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +1 -1
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +433 -432
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +1 -1
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +425 -420
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +754 -0
- package/SparkLine.js.map +1 -0
- package/Table.config.js +1 -1
- package/Table.config.js.map +1 -1
- package/Table.js +727 -123
- package/Table.js.map +1 -1
- package/common/utils/mapUtils.js +7 -4
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/urlUtils.js +118 -0
- package/common/utils/urlUtils.js.map +1 -0
- package/common/withDashboardViz.js +2 -2
- package/package.json +13 -13
package/Image.config.js
CHANGED
package/Image.config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///external \"@splunk/visualization-icons\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///./src/Image/config.ts","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/common/interfaces/VizCategory.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","i18n_1","visualization_icons_1","VizCategory_1","configUtils_1","dataContract","requiredDataSources","optionalDataSources","initialRequestParams","size","initialWidth","initialHeight","defaultContext","src","preserveAspectRatio","_","editor","showEditor","_ref","options","themes","name","category","VizCategory","MISC","icon","Image","PLACEHOLDER","EVENTS","events"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA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AW,CAACiH,WAAW,EAAE5G,aAAA,CAAAL,WAAW,CAACkH,MAAM,CAAC;EACpFR,MAAM,EAANA,MAAM;EACNS,MAAM,EAAE;IACJ,aAAa,EAAE;MACXhG,WAAW,EAAE;;;CAGxB;AAEDlB,OAAA,CAAAuB,OAAA,GAAekE,aAAA,CAAAtD,aAAa,CAACQ,MAAM,CAAC,C;;;;;;;ACrGpC,mC;;;;;;;ACAA,kE;;;;;;;;;;;;;;ACAA,IAAYiE,WAaX;AAbD,WAAYA,WAAW;EACnBA,WAAA,iCAA6B;EAC7BA,WAAA,qBAAiB;EACjBA,WAAA,+BAA2B;EAC3BA,WAAA,mBAAe;EACfA,WAAA,mBAAe;EACfA,WAAA,mCAA+B;EAC/BA,WAAA,kCAA8B;EAC9BA,WAAA,qBAAiB;EACjBA,WAAA,iBAAa;EACbA,WAAA,iBAAa;EACbA,WAAA,+BAA2B;EAC3BA,WAAA,uBAAmB;AACvB,CAAC,EAbWA,WAAW,GAAX5G,OAAA,CAAA4G,WAAW,KAAX5G,OAAA,CAAA4G,WAAW,Q","file":"Image.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 = 53);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"@splunk/visualization-icons\");","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","import { _ } from '@splunk/ui-utils/i18n';\n\nimport { Image as ImageIcon } from '@splunk/visualization-icons';\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 { enhanceConfig } from '../common/utils/configUtils';\n\nconst dataContract: DataContract = {\n requiredDataSources: [],\n optionalDataSources: [\n // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later\n // {\n // name: 'annotation',\n // description: 'DataSource that populate event annotations',\n // },\n ],\n initialRequestParams: {},\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {};\n\nconst optionsSchema: OptionsSchema = {\n src: {\n description: 'URL of an image file. All browser-supported image formats are acceptable.',\n type: 'string',\n },\n preserveAspectRatio: {\n default: false,\n description: 'Set to true to maintain the aspect ratio of an image when the screen is resized.',\n type: 'boolean',\n },\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Image content'),\n layout: [\n [\n {\n label: _('Image file'),\n option: 'src',\n editor: 'editor.image',\n },\n ],\n [\n {\n label: _('Preserve aspect ratio'),\n option: 'preserveAspectRatio',\n editor: 'editor.checkbox',\n showEditor: ({ options }) => !!options.src,\n },\n ],\n ],\n },\n];\n\nconst themes: ThemedDefaults = {};\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.image',\n /**\n * viz name\n */\n name: 'Image',\n category: VizCategory.MISC,\n /**\n * viz icon\n */\n icon: ImageIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.PLACEHOLDER, VizBehavior.EVENTS],\n themes,\n events: {\n 'image.click': {\n description: 'triggered when user clicks on the image',\n },\n },\n};\n\nexport default enhanceConfig(config);\n","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"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///external \"@splunk/visualization-icons\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///./src/Image/config.ts","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/common/interfaces/VizCategory.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","i18n_1","visualization_icons_1","VizCategory_1","configUtils_1","dataContract","requiredDataSources","optionalDataSources","initialRequestParams","size","initialWidth","initialHeight","defaultContext","src","preserveAspectRatio","_","editor","showEditor","_ref","options","themes","name","category","VizCategory","MISC","icon","Image","PLACEHOLDER","EVENTS","events"],"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,wD;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;ACA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AED,IAAMO,MAAM,GAAmB,EAAE;AAEjC;;;AAGA,IAAM9D,MAAM,GAAc;EACtB;;;EAGA5B,GAAG,EAAE,cAAc;EACnB;;;EAGA2F,IAAI,EAAEpB,MAAA,CAAAc,CAAC,CAAC,OAAO,CAAC;EAChBO,QAAQ,EAAEnB,aAAA,CAAAoB,WAAW,CAACC,IAAI;EAC1B;;;EAGAC,IAAI,EAAEvB,qBAAA,CAAAwB,KAAS;EACfrB,YAAY,EAAZA,YAAY;EACZI,IAAI,EAAJA,IAAI;EACJG,cAAc,EAAdA,cAAc;EACdvF,aAAa,EAAbA,aAAa;EACb+B,YAAY,EAAZA,YAAY;EACZH,QAAQ,EAAE,CAAClC,aAAA,CAAAL,WAAW,CAACyC,eAAe,EAAEpC,aAAA,CAAAL,WAAW,CAACiH,WAAW,EAAE5G,aAAA,CAAAL,WAAW,CAACkH,MAAM,CAAC;EACpFR,MAAM,EAANA,MAAM;EACNS,MAAM,EAAE;IACJ,aAAa,EAAE;MACXhG,WAAW,EAAE;;;CAGxB;AAEDlB,OAAA,CAAAuB,OAAA,GAAekE,aAAA,CAAAtD,aAAa,CAACQ,MAAM,CAAC,C;;;;;;;ACrGpC,mC;;;;;;;ACAA,kE;;;;;;;;;;;;;;ACAA,IAAYiE,WAaX;AAbD,WAAYA,WAAW;EACnBA,WAAA,iCAA6B;EAC7BA,WAAA,qBAAiB;EACjBA,WAAA,+BAA2B;EAC3BA,WAAA,mBAAe;EACfA,WAAA,mBAAe;EACfA,WAAA,mCAA+B;EAC/BA,WAAA,kCAA8B;EAC9BA,WAAA,qBAAiB;EACjBA,WAAA,iBAAa;EACbA,WAAA,iBAAa;EACbA,WAAA,+BAA2B;EAC3BA,WAAA,uBAAmB;AACvB,CAAC,EAbWA,WAAW,GAAX5G,OAAA,CAAA4G,WAAW,KAAX5G,OAAA,CAAA4G,WAAW,Q","file":"Image.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 = 53);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"@splunk/visualization-icons\");","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","import { _ } from '@splunk/ui-utils/i18n';\n\nimport { Image as ImageIcon } from '@splunk/visualization-icons';\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 { enhanceConfig } from '../common/utils/configUtils';\n\nconst dataContract: DataContract = {\n requiredDataSources: [],\n optionalDataSources: [\n // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later\n // {\n // name: 'annotation',\n // description: 'DataSource that populate event annotations',\n // },\n ],\n initialRequestParams: {},\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {};\n\nconst optionsSchema: OptionsSchema = {\n src: {\n description: 'URL of an image file. All browser-supported image formats are acceptable.',\n type: 'string',\n },\n preserveAspectRatio: {\n default: false,\n description: 'Set to true to maintain the aspect ratio of an image when the screen is resized.',\n type: 'boolean',\n },\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Image content'),\n layout: [\n [\n {\n label: _('Image file'),\n option: 'src',\n editor: 'editor.image',\n },\n ],\n [\n {\n label: _('Preserve aspect ratio'),\n option: 'preserveAspectRatio',\n editor: 'editor.checkbox',\n showEditor: ({ options }) => !!options.src,\n },\n ],\n ],\n },\n];\n\nconst themes: ThemedDefaults = {};\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.image',\n /**\n * viz name\n */\n name: _('Image'),\n category: VizCategory.MISC,\n /**\n * viz icon\n */\n icon: ImageIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.PLACEHOLDER, VizBehavior.EVENTS],\n themes,\n events: {\n 'image.click': {\n description: 'triggered when user clicks on the image',\n },\n },\n};\n\nexport default enhanceConfig(config);\n","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"],"sourceRoot":""}
|
package/Image.js
CHANGED
|
@@ -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 =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 217);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,28 +95,28 @@ module.exports =
|
|
|
95
95
|
/***/ 0:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("prop-types");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
103
|
/***/ (function(module, exports) {
|
|
104
104
|
|
|
105
|
-
module.exports = require("
|
|
105
|
+
module.exports = require("react");
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@splunk/
|
|
112
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
116
|
/***/ 11:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
|
-
module.exports = require("@
|
|
119
|
+
module.exports = require("@splunk/themes/variables");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
@@ -136,9 +136,9 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
136
136
|
Object.defineProperty(exports, "__esModule", {
|
|
137
137
|
value: true
|
|
138
138
|
});
|
|
139
|
-
var React = __webpack_require__(
|
|
139
|
+
var React = __webpack_require__(1);
|
|
140
140
|
var styled_components_1 = __webpack_require__(4);
|
|
141
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
141
|
+
var SizeAwareWrapper_1 = __webpack_require__(19);
|
|
142
142
|
var style_1 = __webpack_require__(14);
|
|
143
143
|
var colorUtils_1 = __webpack_require__(12);
|
|
144
144
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
@@ -193,7 +193,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
193
193
|
}
|
|
194
194
|
return React.createElement(FixSizeItem, {
|
|
195
195
|
"data-test": "fix-size-item",
|
|
196
|
-
"data-splunk-visualization-version": "25.
|
|
196
|
+
"data-splunk-visualization-version": "25.13.0 - 572f25c03",
|
|
197
197
|
width: width,
|
|
198
198
|
height: height,
|
|
199
199
|
backgroundColor: backgroundColor
|
|
@@ -220,7 +220,38 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
220
220
|
|
|
221
221
|
/***/ }),
|
|
222
222
|
|
|
223
|
-
/***/
|
|
223
|
+
/***/ 15:
|
|
224
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
225
|
+
|
|
226
|
+
"use strict";
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
Object.defineProperty(exports, "__esModule", {
|
|
230
|
+
value: true
|
|
231
|
+
});
|
|
232
|
+
exports.extendStaticWrapperProps = void 0;
|
|
233
|
+
/**
|
|
234
|
+
* @method extendStaticWrapperProps
|
|
235
|
+
* @param {Object} props
|
|
236
|
+
* @param {DashboardVizType} props.Wrapper
|
|
237
|
+
* @param {DashboardVizType} props.Visualization
|
|
238
|
+
*/
|
|
239
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
240
|
+
var Wrapper = _ref.Wrapper,
|
|
241
|
+
Visualization = _ref.Visualization;
|
|
242
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
243
|
+
extendProperties.forEach(function (prop) {
|
|
244
|
+
if (Visualization[prop]) {
|
|
245
|
+
// eslint-disable-next-line no-param-reassign
|
|
246
|
+
Wrapper[prop] = Visualization[prop];
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
251
|
+
|
|
252
|
+
/***/ }),
|
|
253
|
+
|
|
254
|
+
/***/ 150:
|
|
224
255
|
/***/ (function(module, exports, __webpack_require__) {
|
|
225
256
|
|
|
226
257
|
"use strict";
|
|
@@ -241,16 +272,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
241
272
|
});
|
|
242
273
|
exports.config = exports.themes = exports.toImageDimensions = exports.shouldShowPlaceholder = void 0;
|
|
243
274
|
var lodash_1 = __webpack_require__(3);
|
|
244
|
-
var React = __webpack_require__(
|
|
275
|
+
var React = __webpack_require__(1);
|
|
245
276
|
var i18n_1 = __webpack_require__(2);
|
|
246
277
|
var style_1 = __webpack_require__(14);
|
|
247
|
-
var RemoteImage_1 = __webpack_require__(
|
|
278
|
+
var RemoteImage_1 = __webpack_require__(151);
|
|
248
279
|
var styled_components_1 = __webpack_require__(4);
|
|
249
|
-
var T = __webpack_require__(
|
|
250
|
-
var config_1 = __webpack_require__(
|
|
280
|
+
var T = __webpack_require__(0);
|
|
281
|
+
var config_1 = __webpack_require__(218);
|
|
251
282
|
exports.config = config_1.default;
|
|
252
283
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
253
|
-
var ImageApi_1 = __webpack_require__(
|
|
284
|
+
var ImageApi_1 = __webpack_require__(219);
|
|
254
285
|
var useEffect = React.useEffect,
|
|
255
286
|
useRef = React.useRef;
|
|
256
287
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
@@ -376,38 +407,7 @@ exports.default = Image;
|
|
|
376
407
|
|
|
377
408
|
/***/ }),
|
|
378
409
|
|
|
379
|
-
/***/
|
|
380
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
381
|
-
|
|
382
|
-
"use strict";
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
Object.defineProperty(exports, "__esModule", {
|
|
386
|
-
value: true
|
|
387
|
-
});
|
|
388
|
-
exports.extendStaticWrapperProps = void 0;
|
|
389
|
-
/**
|
|
390
|
-
* @method extendStaticWrapperProps
|
|
391
|
-
* @param {Object} props
|
|
392
|
-
* @param {DashboardVizType} props.Wrapper
|
|
393
|
-
* @param {DashboardVizType} props.Visualization
|
|
394
|
-
*/
|
|
395
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
396
|
-
var Wrapper = _ref.Wrapper,
|
|
397
|
-
Visualization = _ref.Visualization;
|
|
398
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
399
|
-
extendProperties.forEach(function (prop) {
|
|
400
|
-
if (Visualization[prop]) {
|
|
401
|
-
// eslint-disable-next-line no-param-reassign
|
|
402
|
-
Wrapper[prop] = Visualization[prop];
|
|
403
|
-
}
|
|
404
|
-
});
|
|
405
|
-
};
|
|
406
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
407
|
-
|
|
408
|
-
/***/ }),
|
|
409
|
-
|
|
410
|
-
/***/ 150:
|
|
410
|
+
/***/ 151:
|
|
411
411
|
/***/ (function(module, exports) {
|
|
412
412
|
|
|
413
413
|
module.exports = require("@splunk/visualizations-shared/RemoteImage");
|
|
@@ -431,18 +431,32 @@ module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
|
431
431
|
/***/ 18:
|
|
432
432
|
/***/ (function(module, exports) {
|
|
433
433
|
|
|
434
|
-
module.exports = require("@
|
|
434
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
435
435
|
|
|
436
436
|
/***/ }),
|
|
437
437
|
|
|
438
438
|
/***/ 19:
|
|
439
|
+
/***/ (function(module, exports) {
|
|
440
|
+
|
|
441
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
442
|
+
|
|
443
|
+
/***/ }),
|
|
444
|
+
|
|
445
|
+
/***/ 2:
|
|
446
|
+
/***/ (function(module, exports) {
|
|
447
|
+
|
|
448
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
449
|
+
|
|
450
|
+
/***/ }),
|
|
451
|
+
|
|
452
|
+
/***/ 20:
|
|
439
453
|
/***/ (function(module, exports, __webpack_require__) {
|
|
440
454
|
|
|
441
455
|
"use strict";
|
|
442
456
|
|
|
443
457
|
|
|
444
|
-
var _toConsumableArray = __webpack_require__(
|
|
445
|
-
var _defineProperty = __webpack_require__(
|
|
458
|
+
var _toConsumableArray = __webpack_require__(8);
|
|
459
|
+
var _defineProperty = __webpack_require__(7);
|
|
446
460
|
var __rest = this && this.__rest || function (s, e) {
|
|
447
461
|
var t = {};
|
|
448
462
|
for (var p in s) {
|
|
@@ -639,21 +653,14 @@ exports.insertLayout = insertLayout;
|
|
|
639
653
|
|
|
640
654
|
/***/ }),
|
|
641
655
|
|
|
642
|
-
/***/
|
|
643
|
-
/***/ (function(module, exports) {
|
|
644
|
-
|
|
645
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
646
|
-
|
|
647
|
-
/***/ }),
|
|
648
|
-
|
|
649
|
-
/***/ 20:
|
|
656
|
+
/***/ 21:
|
|
650
657
|
/***/ (function(module, exports) {
|
|
651
658
|
|
|
652
659
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
653
660
|
|
|
654
661
|
/***/ }),
|
|
655
662
|
|
|
656
|
-
/***/
|
|
663
|
+
/***/ 217:
|
|
657
664
|
/***/ (function(module, exports, __webpack_require__) {
|
|
658
665
|
|
|
659
666
|
"use strict";
|
|
@@ -680,8 +687,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
680
687
|
value: true
|
|
681
688
|
});
|
|
682
689
|
exports.default = void 0;
|
|
683
|
-
__exportStar(__webpack_require__(
|
|
684
|
-
var Image_1 = __webpack_require__(
|
|
690
|
+
__exportStar(__webpack_require__(150), exports);
|
|
691
|
+
var Image_1 = __webpack_require__(150);
|
|
685
692
|
Object.defineProperty(exports, "default", {
|
|
686
693
|
enumerable: true,
|
|
687
694
|
get: function get() {
|
|
@@ -691,7 +698,7 @@ Object.defineProperty(exports, "default", {
|
|
|
691
698
|
|
|
692
699
|
/***/ }),
|
|
693
700
|
|
|
694
|
-
/***/
|
|
701
|
+
/***/ 218:
|
|
695
702
|
/***/ (function(module, exports, __webpack_require__) {
|
|
696
703
|
|
|
697
704
|
"use strict";
|
|
@@ -701,10 +708,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
701
708
|
value: true
|
|
702
709
|
});
|
|
703
710
|
var i18n_1 = __webpack_require__(2);
|
|
704
|
-
var visualization_icons_1 = __webpack_require__(
|
|
711
|
+
var visualization_icons_1 = __webpack_require__(52);
|
|
705
712
|
var VizBehavior_1 = __webpack_require__(6);
|
|
706
713
|
var VizCategory_1 = __webpack_require__(35);
|
|
707
|
-
var configUtils_1 = __webpack_require__(
|
|
714
|
+
var configUtils_1 = __webpack_require__(20);
|
|
708
715
|
var dataContract = {
|
|
709
716
|
requiredDataSources: [],
|
|
710
717
|
optionalDataSources: [
|
|
@@ -760,7 +767,7 @@ var config = {
|
|
|
760
767
|
/**
|
|
761
768
|
* viz name
|
|
762
769
|
*/
|
|
763
|
-
name: 'Image',
|
|
770
|
+
name: i18n_1._('Image'),
|
|
764
771
|
category: VizCategory_1.VizCategory.MISC,
|
|
765
772
|
/**
|
|
766
773
|
* viz icon
|
|
@@ -783,19 +790,19 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
783
790
|
|
|
784
791
|
/***/ }),
|
|
785
792
|
|
|
786
|
-
/***/
|
|
793
|
+
/***/ 219:
|
|
787
794
|
/***/ (function(module, exports, __webpack_require__) {
|
|
788
795
|
|
|
789
796
|
"use strict";
|
|
790
797
|
|
|
791
798
|
|
|
792
|
-
var _classCallCheck = __webpack_require__(
|
|
793
|
-
var _createClass = __webpack_require__(
|
|
799
|
+
var _classCallCheck = __webpack_require__(9);
|
|
800
|
+
var _createClass = __webpack_require__(18);
|
|
794
801
|
Object.defineProperty(exports, "__esModule", {
|
|
795
802
|
value: true
|
|
796
803
|
});
|
|
797
804
|
var lodash_1 = __webpack_require__(3);
|
|
798
|
-
var RemoteImage_1 = __webpack_require__(
|
|
805
|
+
var RemoteImage_1 = __webpack_require__(151);
|
|
799
806
|
/**
|
|
800
807
|
* Image Api
|
|
801
808
|
*/
|
|
@@ -832,13 +839,6 @@ exports.default = ImageApi;
|
|
|
832
839
|
|
|
833
840
|
/***/ }),
|
|
834
841
|
|
|
835
|
-
/***/ 22:
|
|
836
|
-
/***/ (function(module, exports) {
|
|
837
|
-
|
|
838
|
-
module.exports = require("@babel/runtime/helpers/createClass");
|
|
839
|
-
|
|
840
|
-
/***/ }),
|
|
841
|
-
|
|
842
842
|
/***/ 25:
|
|
843
843
|
/***/ (function(module, exports) {
|
|
844
844
|
|
|
@@ -884,11 +884,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
884
884
|
value: true
|
|
885
885
|
});
|
|
886
886
|
exports.shouldShowIconPlaceholder = void 0;
|
|
887
|
-
var React = __webpack_require__(
|
|
888
|
-
var T = __webpack_require__(
|
|
887
|
+
var React = __webpack_require__(1);
|
|
888
|
+
var T = __webpack_require__(0);
|
|
889
889
|
var lodash_1 = __webpack_require__(3);
|
|
890
890
|
var i18n_1 = __webpack_require__(2);
|
|
891
|
-
var Message_1 = __webpack_require__(
|
|
891
|
+
var Message_1 = __webpack_require__(10);
|
|
892
892
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
893
893
|
/**
|
|
894
894
|
* @method shouldShowIconPlaceholder
|
|
@@ -966,12 +966,12 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
966
966
|
"use strict";
|
|
967
967
|
|
|
968
968
|
|
|
969
|
-
var _defineProperty = __webpack_require__(
|
|
969
|
+
var _defineProperty = __webpack_require__(7);
|
|
970
970
|
Object.defineProperty(exports, "__esModule", {
|
|
971
971
|
value: true
|
|
972
972
|
});
|
|
973
973
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
974
|
-
var T = __webpack_require__(
|
|
974
|
+
var T = __webpack_require__(0);
|
|
975
975
|
var lodash_1 = __webpack_require__(3);
|
|
976
976
|
var DataSource_1 = __webpack_require__(43);
|
|
977
977
|
exports.SortParamsPropTypes = T.shape({
|
|
@@ -1030,7 +1030,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1030
1030
|
value: true
|
|
1031
1031
|
});
|
|
1032
1032
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1033
|
-
var T = __webpack_require__(
|
|
1033
|
+
var T = __webpack_require__(0);
|
|
1034
1034
|
var lodash_1 = __webpack_require__(3);
|
|
1035
1035
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
1036
1036
|
isPaging: T.bool,
|
|
@@ -1112,14 +1112,14 @@ var _slicedToArray = __webpack_require__(17);
|
|
|
1112
1112
|
Object.defineProperty(exports, "__esModule", {
|
|
1113
1113
|
value: true
|
|
1114
1114
|
});
|
|
1115
|
-
var React = __webpack_require__(
|
|
1115
|
+
var React = __webpack_require__(1);
|
|
1116
1116
|
var lodash_1 = __webpack_require__(3);
|
|
1117
1117
|
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
1118
1118
|
var Options_1 = __webpack_require__(29);
|
|
1119
1119
|
var SanitizeProps_1 = __webpack_require__(38);
|
|
1120
1120
|
var TimezoneContext_1 = __webpack_require__(25);
|
|
1121
1121
|
var moment_1 = __webpack_require__(39);
|
|
1122
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
1122
|
+
var FeatureFlagContext_1 = __webpack_require__(21);
|
|
1123
1123
|
var styled_components_1 = __webpack_require__(4);
|
|
1124
1124
|
var hocUtils_1 = __webpack_require__(26);
|
|
1125
1125
|
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
@@ -1422,13 +1422,13 @@ module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
|
1422
1422
|
"use strict";
|
|
1423
1423
|
|
|
1424
1424
|
|
|
1425
|
-
var _classCallCheck = __webpack_require__(
|
|
1425
|
+
var _classCallCheck = __webpack_require__(9);
|
|
1426
1426
|
Object.defineProperty(exports, "__esModule", {
|
|
1427
1427
|
value: true
|
|
1428
1428
|
});
|
|
1429
1429
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
1430
1430
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
1431
|
-
var T = __webpack_require__(
|
|
1431
|
+
var T = __webpack_require__(0);
|
|
1432
1432
|
var lodash_1 = __webpack_require__(3);
|
|
1433
1433
|
var VizActionHandler_1 = __webpack_require__(42);
|
|
1434
1434
|
// this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
@@ -1552,8 +1552,8 @@ exports.default = SplunkVisualization;
|
|
|
1552
1552
|
"use strict";
|
|
1553
1553
|
|
|
1554
1554
|
|
|
1555
|
-
var _classCallCheck = __webpack_require__(
|
|
1556
|
-
var _createClass = __webpack_require__(
|
|
1555
|
+
var _classCallCheck = __webpack_require__(9);
|
|
1556
|
+
var _createClass = __webpack_require__(18);
|
|
1557
1557
|
Object.defineProperty(exports, "__esModule", {
|
|
1558
1558
|
value: true
|
|
1559
1559
|
});
|
|
@@ -1603,7 +1603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1603
1603
|
value: true
|
|
1604
1604
|
});
|
|
1605
1605
|
exports.useDeepMemo = void 0;
|
|
1606
|
-
var react_1 = __webpack_require__(
|
|
1606
|
+
var react_1 = __webpack_require__(1);
|
|
1607
1607
|
var lodash_1 = __webpack_require__(3);
|
|
1608
1608
|
/**
|
|
1609
1609
|
* This hook evaluates and stores the result of a passed function and only
|
|
@@ -1642,10 +1642,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1642
1642
|
value: true
|
|
1643
1643
|
});
|
|
1644
1644
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
1645
|
-
var React = __webpack_require__(
|
|
1646
|
-
var T = __webpack_require__(
|
|
1645
|
+
var React = __webpack_require__(1);
|
|
1646
|
+
var T = __webpack_require__(0);
|
|
1647
1647
|
var i18n_1 = __webpack_require__(2);
|
|
1648
|
-
var Message_1 = __webpack_require__(
|
|
1648
|
+
var Message_1 = __webpack_require__(10);
|
|
1649
1649
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1650
1650
|
/**
|
|
1651
1651
|
* @method isMissing
|
|
@@ -1710,7 +1710,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
1710
1710
|
Object.defineProperty(exports, "__esModule", {
|
|
1711
1711
|
value: true
|
|
1712
1712
|
});
|
|
1713
|
-
var React = __webpack_require__(
|
|
1713
|
+
var React = __webpack_require__(1);
|
|
1714
1714
|
var styled_components_1 = __webpack_require__(4);
|
|
1715
1715
|
var hocUtils_1 = __webpack_require__(15);
|
|
1716
1716
|
var Cover = styled_components_1.default.div.withConfig({
|
|
@@ -1718,7 +1718,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1718
1718
|
componentId: "sc-1gsbnxb-0"
|
|
1719
1719
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1720
1720
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1721
|
-
'data-splunk-visualization-version': "25.
|
|
1721
|
+
'data-splunk-visualization-version': "25.13.0 - 572f25c03"
|
|
1722
1722
|
}).withConfig({
|
|
1723
1723
|
displayName: "withEditModeCover__Blocker",
|
|
1724
1724
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1756,9 +1756,9 @@ exports.default = withEditModeCover;
|
|
|
1756
1756
|
Object.defineProperty(exports, "__esModule", {
|
|
1757
1757
|
value: true
|
|
1758
1758
|
});
|
|
1759
|
-
var React = __webpack_require__(
|
|
1759
|
+
var React = __webpack_require__(1);
|
|
1760
1760
|
var colorUtils_1 = __webpack_require__(12);
|
|
1761
|
-
var variables_1 = __webpack_require__(
|
|
1761
|
+
var variables_1 = __webpack_require__(11);
|
|
1762
1762
|
var IconPlaceholder_1 = __webpack_require__(31);
|
|
1763
1763
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1764
1764
|
var hocUtils_1 = __webpack_require__(15);
|
|
@@ -1799,7 +1799,7 @@ exports.default = withPlaceholder;
|
|
|
1799
1799
|
|
|
1800
1800
|
/***/ }),
|
|
1801
1801
|
|
|
1802
|
-
/***/
|
|
1802
|
+
/***/ 52:
|
|
1803
1803
|
/***/ (function(module, exports) {
|
|
1804
1804
|
|
|
1805
1805
|
module.exports = require("@splunk/visualization-icons");
|
|
@@ -1846,21 +1846,21 @@ var VizBehavior;
|
|
|
1846
1846
|
/***/ 7:
|
|
1847
1847
|
/***/ (function(module, exports) {
|
|
1848
1848
|
|
|
1849
|
-
module.exports = require("@babel/runtime/helpers/
|
|
1849
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
1850
1850
|
|
|
1851
1851
|
/***/ }),
|
|
1852
1852
|
|
|
1853
1853
|
/***/ 8:
|
|
1854
1854
|
/***/ (function(module, exports) {
|
|
1855
1855
|
|
|
1856
|
-
module.exports = require("@babel/runtime/helpers/
|
|
1856
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
1857
1857
|
|
|
1858
1858
|
/***/ }),
|
|
1859
1859
|
|
|
1860
1860
|
/***/ 9:
|
|
1861
1861
|
/***/ (function(module, exports) {
|
|
1862
1862
|
|
|
1863
|
-
module.exports = require("@
|
|
1863
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
1864
1864
|
|
|
1865
1865
|
/***/ })
|
|
1866
1866
|
|