@splunk/visualizations 28.4.0 → 28.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area.config.js +28 -7
- package/Area.config.js.map +2 -2
- package/Area.js +106 -39
- package/Area.js.map +2 -2
- package/Bar.config.js +28 -7
- package/Bar.config.js.map +2 -2
- package/Bar.js +106 -39
- package/Bar.js.map +2 -2
- package/Bubble.config.js +4 -4
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +78 -30
- package/Bubble.js.map +2 -2
- package/CHANGELOG.external.md +89 -0
- package/ChoroplethSvg.js +74 -26
- package/ChoroplethSvg.js.map +2 -2
- package/Column.config.js +28 -7
- package/Column.config.js.map +2 -2
- package/Column.js +106 -39
- package/Column.js.map +2 -2
- package/Ellipse/config.d.ts.map +1 -1
- package/Ellipse.config.js +14 -5
- package/Ellipse.config.js.map +4 -4
- package/Ellipse.js +130 -73
- package/Ellipse.js.map +4 -4
- package/Events.js +74 -26
- package/Events.js.map +2 -2
- package/FillerGauge.js +234 -47
- package/FillerGauge.js.map +2 -2
- package/Image.js +74 -26
- package/Image.js.map +2 -2
- package/Line/lineUtils.d.ts.map +1 -1
- package/Line/mockdata/LineData.d.ts +95 -0
- package/Line/mockdata/LineData.d.ts.map +1 -1
- package/Line.config.js +28 -7
- package/Line.config.js.map +2 -2
- package/Line.js +122 -41
- package/Line.js.map +2 -2
- package/LinkGraph.js +74 -26
- package/LinkGraph.js.map +2 -2
- package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
- package/Map/PureMap/ClusterLayer.d.ts.map +1 -1
- package/Map/PureMap/MapUtils.d.ts +2 -2
- package/Map/PureMap/MapUtils.d.ts.map +1 -1
- package/Map/PureMap/PureMap.d.ts.map +1 -1
- package/Map.js +111 -37
- package/Map.js.map +2 -2
- package/Markdown/config.d.ts.map +1 -1
- package/Markdown.config.js +14 -5
- package/Markdown.config.js.map +4 -4
- package/Markdown.js +91 -34
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +243 -56
- package/MarkerGauge.js.map +4 -4
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/utils/dragUtils.d.ts +78 -0
- package/NetworkGraph/PureNetworkGraph/utils/dragUtils.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +1 -2
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -1
- package/NetworkGraph.config.js.map +2 -2
- package/NetworkGraph.js +365 -105
- package/NetworkGraph.js.map +4 -4
- package/PERFORMANCE.md +23 -0
- package/ParallelCoordinates/ParallelCoordinates.d.ts +1 -46
- package/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -1
- package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts +12 -58
- package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -1
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -1
- package/ParallelCoordinates.js +150 -153
- package/ParallelCoordinates.js.map +4 -4
- package/Pie/Pie.d.ts.map +1 -1
- package/Pie/config.d.ts.map +1 -1
- package/Pie/pieUtils.d.ts +4 -0
- package/Pie/pieUtils.d.ts.map +1 -1
- package/Pie.config.js +16 -0
- package/Pie.config.js.map +2 -2
- package/Pie.js +118 -35
- package/Pie.js.map +2 -2
- package/Punchcard.js +74 -26
- package/Punchcard.js.map +2 -2
- package/Rectangle/config.d.ts.map +1 -1
- package/Rectangle.config.js +14 -5
- package/Rectangle.config.js.map +4 -4
- package/Rectangle.js +92 -35
- package/Rectangle.js.map +4 -4
- package/Sankey/PureSankey/PureSankey.d.ts +26 -72
- package/Sankey/PureSankey/PureSankey.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyLink.d.ts +3 -19
- package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyNode.d.ts +3 -20
- package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyTooltip.d.ts +3 -24
- package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
- package/Sankey.js +270 -336
- package/Sankey.js.map +2 -2
- package/Scatter.config.js +168 -147
- package/Scatter.config.js.map +4 -4
- package/Scatter.js +246 -179
- package/Scatter.js.map +4 -4
- package/SingleValue.js +96 -75
- package/SingleValue.js.map +2 -2
- package/SingleValueIcon/config.d.ts.map +1 -1
- package/SingleValueIcon.config.js +14 -5
- package/SingleValueIcon.config.js.map +4 -4
- package/SingleValueIcon.js +118 -76
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -1
- package/SingleValueRadial.js +95 -76
- package/SingleValueRadial.js.map +2 -2
- package/Table/Table.d.ts.map +1 -1
- package/Table/hooks.d.ts +2 -0
- package/Table/hooks.d.ts.map +1 -1
- package/Table.js +95 -49
- package/Table.js.map +2 -2
- package/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +2 -1
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
- package/Timeline.js +154 -54
- package/Timeline.js.map +2 -2
- package/common/GaugeMajorTicks.js +150 -13
- package/common/GaugeMajorTicks.js.map +4 -4
- package/common/GaugeValueMarker.js +84 -17
- package/common/GaugeValueMarker.js.map +4 -4
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.d.ts.map +1 -1
- package/common/OverviewDoc.js +2 -2
- package/common/OverviewDoc.js.map +2 -2
- package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
- package/common/TimeSeriesChartWrapper.js +72 -24
- package/common/TimeSeriesChartWrapper.js.map +2 -2
- package/common/chartingUtils.d.ts +9 -3
- package/common/chartingUtils.d.ts.map +1 -1
- package/common/chartingUtils.js +21 -16
- package/common/chartingUtils.js.map +2 -2
- package/common/editorConfig/AxesChartDataConfig.d.ts +3 -3
- package/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -1
- package/common/editorConfig/AxesChartDataDisplay.d.ts +4 -0
- package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -1
- package/common/editorConfig/AxesChartLegend.d.ts.map +1 -1
- package/common/gaugeUtils.d.ts +37 -0
- package/common/gaugeUtils.d.ts.map +1 -1
- package/common/gaugeUtils.js +152 -2
- package/common/gaugeUtils.js.map +4 -4
- package/common/hocs/mockdata/trellisData.d.ts +119 -0
- package/common/hocs/mockdata/trellisData.d.ts.map +1 -1
- package/common/interfaces/Overview.d.ts +1 -0
- package/common/interfaces/Overview.d.ts.map +1 -1
- package/common/interfaces/VizConfig.d.ts +2 -1
- package/common/interfaces/VizConfig.d.ts.map +1 -1
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/trellisUtils.d.ts.map +1 -1
- package/common/utils/trellisUtils.js +4 -6
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/withDashboardViz.js +74 -26
- package/common/withDashboardViz.js.map +2 -2
- package/package.json +36 -36
package/Markdown/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/Markdown/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/Markdown/config.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;;AA+J3D,wBAAqC"}
|
package/Markdown.config.js
CHANGED
|
@@ -82,23 +82,32 @@ var defaultImport3 = __toESM(require("@splunk/visualization-schemas"));
|
|
|
82
82
|
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
83
83
|
var visualization_schemas_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
84
84
|
|
|
85
|
+
// esm-externals:@splunk/react-icons/Markdown
|
|
86
|
+
var Markdown_exports = {};
|
|
87
|
+
__export(Markdown_exports, {
|
|
88
|
+
default: () => Markdown_default
|
|
89
|
+
});
|
|
90
|
+
var defaultImport4 = __toESM(require("@splunk/react-icons/Markdown"));
|
|
91
|
+
__reExport(Markdown_exports, require("@splunk/react-icons/Markdown"));
|
|
92
|
+
var Markdown_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
93
|
+
|
|
85
94
|
// esm-externals:lodash
|
|
86
95
|
var lodash_exports = {};
|
|
87
96
|
__export(lodash_exports, {
|
|
88
97
|
default: () => lodash_default
|
|
89
98
|
});
|
|
90
|
-
var
|
|
99
|
+
var defaultImport5 = __toESM(require("lodash"));
|
|
91
100
|
__reExport(lodash_exports, require("lodash"));
|
|
92
|
-
var lodash_default = "default" in
|
|
101
|
+
var lodash_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
93
102
|
|
|
94
103
|
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
95
104
|
var configUtils_exports = {};
|
|
96
105
|
__export(configUtils_exports, {
|
|
97
106
|
default: () => configUtils_default
|
|
98
107
|
});
|
|
99
|
-
var
|
|
108
|
+
var defaultImport6 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
100
109
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
101
|
-
var configUtils_default = "default" in
|
|
110
|
+
var configUtils_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
102
111
|
|
|
103
112
|
// src/common/utils/configUtils.ts
|
|
104
113
|
function enhanceConfig(vizConfig) {
|
|
@@ -257,7 +266,7 @@ var config = {
|
|
|
257
266
|
/**
|
|
258
267
|
* viz icon
|
|
259
268
|
*/
|
|
260
|
-
icon:
|
|
269
|
+
icon: Markdown_default,
|
|
261
270
|
dataContract,
|
|
262
271
|
size,
|
|
263
272
|
defaultContext,
|
package/Markdown.config.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["src/Markdown/config.ts", "esm-externals:@splunk/themes", "esm-externals:@splunk/ui-utils/i18n", "esm-externals:@splunk/visualization-schemas", "esm-externals:lodash", "esm-externals:@splunk/visualizations-shared/configUtils", "src/common/utils/configUtils.ts", "src/common/editorConfig/BackgroundColor.ts"],
|
|
4
|
-
"sourcesContent": ["import { pick, variables } from '@splunk/themes';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport { markdownOptionsSchema as optionsSchema } from '@splunk/visualization-schemas';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { EditorConfig } from '../common/interfaces/Editor';\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';\nimport getBackgroundColorEditor from '../common/editorConfig/BackgroundColor';\n\nconst FONT_OPTIONS = new Set(['extraSmall', 'small', 'default', 'large', 'extraLarge']);\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 primary: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {};\n\nconst themes: ThemedDefaults = {\n defaultFontColor: props =>\n pick({\n enterprise: {\n dark: variables.textColor(props),\n light: variables.textColor(props),\n },\n prisma: variables.contentColorDefault(props),\n })(props),\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Color and style'),\n layout: [\n [\n {\n label: _('Font'),\n option: 'fontColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: 'top',\n themes,\n },\n },\n ...getBackgroundColorEditor({ label: 'Background', themes }),\n ],\n [\n {\n label: _('Font family'),\n option: 'fontFamily',\n editor: 'editor.select',\n editorProps: {\n values: [\n { value: 'Splunk Platform Sans' },\n { value: 'Splunk Data Sans' },\n { value: 'Splunk Platform Mono' },\n { value: 'Arial' },\n { value: 'Helvetica' },\n { value: 'Times New Roman' },\n { value: 'Comic Sans MS' },\n ],\n },\n },\n ],\n [\n {\n label: _('Font size'),\n option: 'fontSize',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Extra Small'), value: 'extraSmall' },\n { label: _('Small'), value: 'small' },\n { label: _('Default'), value: 'default' },\n { label: _('Large'), value: 'large' },\n { label: _('Extra Large'), value: 'extraLarge' },\n { label: _('Custom'), value: 'custom' },\n ],\n },\n },\n {\n label: _('Custom font size (px)'),\n option: 'customFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 0,\n labelPosition: 'top',\n },\n showEditor: ({ options }) => options.fontSize && !FONT_OPTIONS.has(options.fontSize),\n },\n ],\n [\n {\n label: _('Rotation (degrees)'),\n option: 'rotation',\n editor: 'editor.number',\n editorProps: {\n min: -360,\n max: 360,\n },\n },\n ],\n ],\n },\n {\n label: _('Markdown content'),\n open: true,\n layout: [\n [\n {\n label: '',\n option: 'markdown',\n editor: 'editor.markdown',\n },\n ],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.markdown',\n /**\n * viz name\n */\n name: _('Markdown'),\n category: VizCategory.COMPARISONS,\n /**\n * viz icon\n */\n icon: null,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'markdown.click': {\n description: 'triggered when user clicks on markdown area not formatted as a link',\n },\n },\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.EVENTS],\n themes,\n};\n\nexport default enhanceConfig(config);\n", "\nimport * as defaultImport from \"@splunk/themes\";\nexport * from \"@splunk/themes\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/ui-utils/i18n\";\nexport * from \"@splunk/ui-utils/i18n\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/visualization-schemas\";\nexport * from \"@splunk/visualization-schemas\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"lodash\";\nexport * from \"lodash\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/visualizations-shared/configUtils\";\nexport * from \"@splunk/visualizations-shared/configUtils\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "import { get, range } from 'lodash';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { EditorLayoutConfig, EditorConfig } from '../interfaces/Editor';\n\n// included for backwards compatibility\nexport { enhanceOptionsSchemaWithDynamicOptions } from '@splunk/visualization-schemas';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\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\n enhancedConfig.editorConfig = vizConfig.editorConfig.map((config: EditorConfig): EditorConfig => {\n return { ...config, open: config.open || false };\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\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 { enhanceConfig, getInitialPreset, generatePrecisionValues, uncollapseEditorConfig, isDynamicOption };\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';\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 color'),\n option: 'backgroundColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: labelPosition || 'top',\n themes,\n },\n },\n];\n\nexport default background;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,2BAAc;AACd,IAAO,iBAAS,aAAa,gBAA8B,wBAAU;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAA,iBAA+B;AAC/B,yBAAc;AACd,IAAO,eAAS,aAAaA,iBAA8B,yBAAUA;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAC,iBAA+B;AAC/B,0CAAc;AACd,IAAO,gCAAS,aAAaA,iBAA8B,yBAAUA;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAC,iBAA+B;AAC/B,2BAAc;AACd,IAAO,iBAAS,aAAaA,iBAA8B,yBAAUA;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAC,iBAA+B;AAC/B,gCAAc;AACd,IAAO,sBAAS,aAAaA,iBAA8B,yBAAUA;;;ACkBrE,SAAS,cAAc,WAAiC;AACpD,QAAM,iBAA4B,mBAAK;AAEvC,iBAAe,eAAe,UAAU,aAAa,IAAI,CAACC,YAAuC;AAC7F,WAAO,iCAAKA,UAAL,EAAa,MAAMA,QAAO,QAAQ,MAAM;AAAA,EACnD,CAAC;AACD,SAAO;AACX;;;AClBA,IAAM,aAAgG,CAAC;AAAA,EACnG;AAAA,EACA,QAAAC;AAAA,EACA;AACJ,MAAM;AAAA,EACF;AAAA,IACI,WAAO,gBAAE,SAAS,kBAAkB;AAAA,IACpC,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,aAAa;AAAA,MACT,eAAe,iBAAiB;AAAA,MAChC,QAAAA;AAAA,IACJ;AAAA,EACJ;AACJ;AAEA,IAAO,0BAAQ;;;
|
|
6
|
-
"names": ["defaultImport", "defaultImport", "defaultImport", "defaultImport", "config", "themes", "optionsSchema"]
|
|
3
|
+
"sources": ["src/Markdown/config.ts", "esm-externals:@splunk/themes", "esm-externals:@splunk/ui-utils/i18n", "esm-externals:@splunk/visualization-schemas", "esm-externals:@splunk/react-icons/Markdown", "esm-externals:lodash", "esm-externals:@splunk/visualizations-shared/configUtils", "src/common/utils/configUtils.ts", "src/common/editorConfig/BackgroundColor.ts"],
|
|
4
|
+
"sourcesContent": ["import { pick, variables } from '@splunk/themes';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport { markdownOptionsSchema as optionsSchema } from '@splunk/visualization-schemas';\nimport Markdown from '@splunk/react-icons/Markdown';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { EditorConfig } from '../common/interfaces/Editor';\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';\nimport getBackgroundColorEditor from '../common/editorConfig/BackgroundColor';\n\nconst FONT_OPTIONS = new Set(['extraSmall', 'small', 'default', 'large', 'extraLarge']);\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 primary: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {};\n\nconst themes: ThemedDefaults = {\n defaultFontColor: props =>\n pick({\n enterprise: {\n dark: variables.textColor(props),\n light: variables.textColor(props),\n },\n prisma: variables.contentColorDefault(props),\n })(props),\n};\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Color and style'),\n layout: [\n [\n {\n label: _('Font'),\n option: 'fontColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: 'top',\n themes,\n },\n },\n ...getBackgroundColorEditor({ label: 'Background', themes }),\n ],\n [\n {\n label: _('Font family'),\n option: 'fontFamily',\n editor: 'editor.select',\n editorProps: {\n values: [\n { value: 'Splunk Platform Sans' },\n { value: 'Splunk Data Sans' },\n { value: 'Splunk Platform Mono' },\n { value: 'Arial' },\n { value: 'Helvetica' },\n { value: 'Times New Roman' },\n { value: 'Comic Sans MS' },\n ],\n },\n },\n ],\n [\n {\n label: _('Font size'),\n option: 'fontSize',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Extra Small'), value: 'extraSmall' },\n { label: _('Small'), value: 'small' },\n { label: _('Default'), value: 'default' },\n { label: _('Large'), value: 'large' },\n { label: _('Extra Large'), value: 'extraLarge' },\n { label: _('Custom'), value: 'custom' },\n ],\n },\n },\n {\n label: _('Custom font size (px)'),\n option: 'customFontSize',\n editor: 'editor.number',\n editorProps: {\n min: 0,\n labelPosition: 'top',\n },\n showEditor: ({ options }) => options.fontSize && !FONT_OPTIONS.has(options.fontSize),\n },\n ],\n [\n {\n label: _('Rotation (degrees)'),\n option: 'rotation',\n editor: 'editor.number',\n editorProps: {\n min: -360,\n max: 360,\n },\n },\n ],\n ],\n },\n {\n label: _('Markdown content'),\n open: true,\n layout: [\n [\n {\n label: '',\n option: 'markdown',\n editor: 'editor.markdown',\n },\n ],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.markdown',\n /**\n * viz name\n */\n name: _('Markdown'),\n category: VizCategory.COMPARISONS,\n /**\n * viz icon\n */\n icon: Markdown,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'markdown.click': {\n description: 'triggered when user clicks on markdown area not formatted as a link',\n },\n },\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.EVENTS],\n themes,\n};\n\nexport default enhanceConfig(config);\n", "\nimport * as defaultImport from \"@splunk/themes\";\nexport * from \"@splunk/themes\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/ui-utils/i18n\";\nexport * from \"@splunk/ui-utils/i18n\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/visualization-schemas\";\nexport * from \"@splunk/visualization-schemas\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/react-icons/Markdown\";\nexport * from \"@splunk/react-icons/Markdown\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"lodash\";\nexport * from \"lodash\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/visualizations-shared/configUtils\";\nexport * from \"@splunk/visualizations-shared/configUtils\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "import { get, range } from 'lodash';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { EditorLayoutConfig, EditorConfig } from '../interfaces/Editor';\n\n// included for backwards compatibility\nexport { enhanceOptionsSchemaWithDynamicOptions } from '@splunk/visualization-schemas';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\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\n enhancedConfig.editorConfig = vizConfig.editorConfig.map((config: EditorConfig): EditorConfig => {\n return { ...config, open: config.open || false };\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\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 { enhanceConfig, getInitialPreset, generatePrecisionValues, uncollapseEditorConfig, isDynamicOption };\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';\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 color'),\n option: 'backgroundColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: labelPosition || 'top',\n themes,\n },\n },\n];\n\nexport default background;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["defaultImport", "defaultImport", "defaultImport", "defaultImport", "defaultImport", "config", "themes", "optionsSchema"]
|
|
7
7
|
}
|
package/Markdown.js
CHANGED
|
@@ -61,16 +61,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
61
61
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
62
62
|
|
|
63
63
|
// src/Markdown/index.ts
|
|
64
|
-
var
|
|
65
|
-
__export(
|
|
64
|
+
var Markdown_exports3 = {};
|
|
65
|
+
__export(Markdown_exports3, {
|
|
66
66
|
FONT_SIZES: () => FONT_SIZES,
|
|
67
67
|
computeVizProps: () => computeVizProps,
|
|
68
68
|
config: () => config_default,
|
|
69
|
-
default: () =>
|
|
69
|
+
default: () => Markdown_default3,
|
|
70
70
|
getFontMap: () => getFontMap,
|
|
71
71
|
themes: () => themes2
|
|
72
72
|
});
|
|
73
|
-
module.exports = __toCommonJS(
|
|
73
|
+
module.exports = __toCommonJS(Markdown_exports3);
|
|
74
74
|
|
|
75
75
|
// esm-externals:lodash
|
|
76
76
|
var lodash_exports = {};
|
|
@@ -560,7 +560,7 @@ var Cover = styled_components_default.div`
|
|
|
560
560
|
bottom: 0;
|
|
561
561
|
`;
|
|
562
562
|
var Blocker = styled_components_default.div.attrs({
|
|
563
|
-
"data-splunk-visualization-version": "28.
|
|
563
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7"
|
|
564
564
|
})`
|
|
565
565
|
position: relative;
|
|
566
566
|
width: 100%;
|
|
@@ -650,7 +650,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
650
650
|
FixSizeItem,
|
|
651
651
|
{
|
|
652
652
|
"data-test": "fix-size-item",
|
|
653
|
-
"data-splunk-visualization-version": "28.
|
|
653
|
+
"data-splunk-visualization-version": "28.5.0 - b192418b7",
|
|
654
654
|
width,
|
|
655
655
|
height,
|
|
656
656
|
backgroundColor
|
|
@@ -1255,25 +1255,27 @@ var parseAxisValue = (val) => {
|
|
|
1255
1255
|
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
1256
1256
|
return Number.isNaN(num) ? void 0 : num;
|
|
1257
1257
|
};
|
|
1258
|
-
var
|
|
1259
|
-
|
|
1258
|
+
var parseXAxisLineVisibility = (visibility) => {
|
|
1259
|
+
if (visibility === "hide") return false;
|
|
1260
|
+
if (visibility === "show") return true;
|
|
1261
|
+
return void 0;
|
|
1262
|
+
};
|
|
1260
1263
|
var getLegend = (props) => {
|
|
1261
1264
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
1262
|
-
const { isSeriesCompare } = props;
|
|
1265
|
+
const { isSeriesCompare, legendTruncation } = props;
|
|
1263
1266
|
const commonLegendProps = {
|
|
1264
1267
|
center: true,
|
|
1265
1268
|
fontSize: 12,
|
|
1266
1269
|
largerTiles: true,
|
|
1267
|
-
hideSeriesValue: !isSeriesCompare
|
|
1270
|
+
hideSeriesValue: !isSeriesCompare,
|
|
1268
1271
|
// Show values if in seriesCompare mode
|
|
1272
|
+
legendTruncation
|
|
1269
1273
|
};
|
|
1270
1274
|
switch (legendPlacement) {
|
|
1271
1275
|
case "off":
|
|
1272
1276
|
return false;
|
|
1273
1277
|
case "left":
|
|
1274
|
-
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
1275
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1276
|
-
}, commonLegendProps));
|
|
1278
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1277
1279
|
case "bottom":
|
|
1278
1280
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
1279
1281
|
wrap: true
|
|
@@ -1283,9 +1285,7 @@ var getLegend = (props) => {
|
|
|
1283
1285
|
wrap: true
|
|
1284
1286
|
}, commonLegendProps));
|
|
1285
1287
|
default:
|
|
1286
|
-
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
1287
|
-
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1288
|
-
}, commonLegendProps));
|
|
1288
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({}, commonLegendProps));
|
|
1289
1289
|
}
|
|
1290
1290
|
};
|
|
1291
1291
|
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
@@ -1346,9 +1346,7 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibilit
|
|
|
1346
1346
|
if (yAxisAbbreviation !== "none") {
|
|
1347
1347
|
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
1348
1348
|
}
|
|
1349
|
-
if (yAxisAbbreviation
|
|
1350
|
-
yConfig.y.width = 55;
|
|
1351
|
-
} else {
|
|
1349
|
+
if (yAxisAbbreviation !== "none") {
|
|
1352
1350
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1353
1351
|
}
|
|
1354
1352
|
if (yAxisLabelVisibility === "hide") {
|
|
@@ -1371,6 +1369,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1371
1369
|
y2Config.y2.type = scaleType;
|
|
1372
1370
|
if (axisAbbreviation !== "none") {
|
|
1373
1371
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
1372
|
+
y2Config.y2.width = label && label.length > 0 ? 50 : 10;
|
|
1374
1373
|
} else if (roundAxisLabelsToInteger) {
|
|
1375
1374
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1376
1375
|
}
|
|
@@ -1386,7 +1385,7 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1386
1385
|
}
|
|
1387
1386
|
return y2Config;
|
|
1388
1387
|
};
|
|
1389
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
1388
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField, stepPosition, stepPositionsByField) => {
|
|
1390
1389
|
const seriesConfig = {};
|
|
1391
1390
|
let spanGaps;
|
|
1392
1391
|
let replaceNullsWithZero;
|
|
@@ -1413,6 +1412,8 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1413
1412
|
);
|
|
1414
1413
|
if (shouldAssignToY2) {
|
|
1415
1414
|
seriesConfig[field].overrides.scale = "y2";
|
|
1415
|
+
} else {
|
|
1416
|
+
seriesConfig[field].overrides.scale = "y";
|
|
1416
1417
|
}
|
|
1417
1418
|
}
|
|
1418
1419
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
@@ -1425,6 +1426,11 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1425
1426
|
if (fieldDashStyle) {
|
|
1426
1427
|
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1427
1428
|
}
|
|
1429
|
+
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1430
|
+
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
1431
|
+
if (fieldStepPosition && fieldStepPosition !== "off") {
|
|
1432
|
+
seriesConfig[field].stepPosition = fieldStepPosition;
|
|
1433
|
+
}
|
|
1428
1434
|
if (replaceNullsWithZero !== void 0) {
|
|
1429
1435
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1430
1436
|
}
|
|
@@ -1658,6 +1664,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1658
1664
|
backgroundColor,
|
|
1659
1665
|
defaultFontColor,
|
|
1660
1666
|
additionalTooltipValues,
|
|
1667
|
+
xAxisLineVisibility: xAxisLineVisibility,
|
|
1668
|
+
yAxisLineVisibility,
|
|
1669
|
+
y2AxisLineVisibility,
|
|
1661
1670
|
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
1662
1671
|
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
1663
1672
|
} = _a, otherOptions = __objRest(_a, [
|
|
@@ -1681,6 +1690,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1681
1690
|
"backgroundColor",
|
|
1682
1691
|
"defaultFontColor",
|
|
1683
1692
|
"additionalTooltipValues",
|
|
1693
|
+
// Extract axis line visibility options from props
|
|
1694
|
+
"xAxisLineVisibility",
|
|
1695
|
+
"yAxisLineVisibility",
|
|
1696
|
+
"y2AxisLineVisibility",
|
|
1684
1697
|
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
1685
1698
|
"showYAxisWithZero",
|
|
1686
1699
|
"showY2AxisWithZero"
|
|
@@ -1693,6 +1706,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1693
1706
|
fieldColors,
|
|
1694
1707
|
legendLabels: legendLabelsStr,
|
|
1695
1708
|
legendMode,
|
|
1709
|
+
legendTruncation,
|
|
1696
1710
|
"axisTitleX.text": xAxisTitleText,
|
|
1697
1711
|
"axisTitleY.text": yAxisTitleText,
|
|
1698
1712
|
"axisTitleY2.text": y2AxisTitleText,
|
|
@@ -1701,6 +1715,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1701
1715
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
1702
1716
|
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
1703
1717
|
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
1718
|
+
"axisLabelsX.maxLabelParts": xAxisMaxLabelParts,
|
|
1704
1719
|
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
1705
1720
|
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
1706
1721
|
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
@@ -1718,6 +1733,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1718
1733
|
lineWidth,
|
|
1719
1734
|
lineDashStyle,
|
|
1720
1735
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
1736
|
+
stepPosition,
|
|
1737
|
+
fieldStepPositions: stepPositionsByFieldStr,
|
|
1721
1738
|
yAxisMin: yAxisMinRaw,
|
|
1722
1739
|
yAxisMax: yAxisMaxRaw,
|
|
1723
1740
|
y2AxisMin: y2AxisMinRaw,
|
|
@@ -1728,6 +1745,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1728
1745
|
showYMinorGridLines,
|
|
1729
1746
|
showY2MinorGridLines,
|
|
1730
1747
|
showLineSmoothing,
|
|
1748
|
+
xAxisMajorTickVisibility,
|
|
1749
|
+
xAxisMajorTickSize,
|
|
1731
1750
|
yAxisMajorTickVisibility,
|
|
1732
1751
|
y2AxisMajorTickVisibility,
|
|
1733
1752
|
yAxisMajorTickSize,
|
|
@@ -1744,10 +1763,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1744
1763
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
1745
1764
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
1746
1765
|
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
1766
|
+
const showXMajorTicks = xAxisMajorTickVisibility !== "hide";
|
|
1747
1767
|
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
1748
1768
|
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
1749
1769
|
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
1750
1770
|
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
1771
|
+
const showXAxisLine = parseXAxisLineVisibility(xAxisLineVisibility);
|
|
1772
|
+
const showYAxisLine = yAxisLineVisibility === "show";
|
|
1773
|
+
const showY2AxisLine = y2AxisLineVisibility === "show";
|
|
1751
1774
|
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
1752
1775
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
1753
1776
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
@@ -1762,13 +1785,15 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1762
1785
|
y2AxisMajorUnitFromSimpleXML,
|
|
1763
1786
|
y2AxisMajorTickInterval
|
|
1764
1787
|
);
|
|
1765
|
-
const
|
|
1766
|
-
const
|
|
1767
|
-
const
|
|
1768
|
-
const
|
|
1788
|
+
const xAxisMajorTickSizeNum = xAxisMajorTickSize != null ? Number(xAxisMajorTickSize) : void 0;
|
|
1789
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize != null ? Number(yAxisMajorTickSize) : void 0;
|
|
1790
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
1791
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
1792
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
1769
1793
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1770
1794
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1771
1795
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
1796
|
+
const stepPositionsByField = stepPositionsByFieldStr ? JSON.parse(stepPositionsByFieldStr) : void 0;
|
|
1772
1797
|
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
1773
1798
|
const bgColor = backgroundColor || bgColorFromOptions;
|
|
1774
1799
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
@@ -1856,7 +1881,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1856
1881
|
nullValueMode,
|
|
1857
1882
|
markerDisplay,
|
|
1858
1883
|
lineDashStyle,
|
|
1859
|
-
lineDashStylesByField
|
|
1884
|
+
lineDashStylesByField,
|
|
1885
|
+
stepPosition,
|
|
1886
|
+
stepPositionsByField
|
|
1860
1887
|
),
|
|
1861
1888
|
[
|
|
1862
1889
|
yFields,
|
|
@@ -1867,7 +1894,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1867
1894
|
nullValueMode,
|
|
1868
1895
|
markerDisplay,
|
|
1869
1896
|
lineDashStyle,
|
|
1870
|
-
lineDashStylesByField
|
|
1897
|
+
lineDashStylesByField,
|
|
1898
|
+
stepPosition,
|
|
1899
|
+
stepPositionsByField
|
|
1871
1900
|
]
|
|
1872
1901
|
);
|
|
1873
1902
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -1882,9 +1911,14 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1882
1911
|
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
1883
1912
|
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
1884
1913
|
);
|
|
1914
|
+
const isSeriesCompare = legendMode === "seriesCompare";
|
|
1885
1915
|
const legend = (0, react_exports.useMemo)(
|
|
1886
|
-
() => getLegend({
|
|
1887
|
-
|
|
1916
|
+
() => getLegend({
|
|
1917
|
+
legendDisplay: isSeriesCompare && legendDisplay !== "off" ? "right" : legendDisplay,
|
|
1918
|
+
isSeriesCompare,
|
|
1919
|
+
legendTruncation
|
|
1920
|
+
}),
|
|
1921
|
+
[legendDisplay, isSeriesCompare, legendTruncation]
|
|
1888
1922
|
);
|
|
1889
1923
|
const handleChartClick = react_exports.useCallback(
|
|
1890
1924
|
(event) => {
|
|
@@ -1989,6 +2023,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1989
2023
|
seriesConfig: seriesOverrides,
|
|
1990
2024
|
legend,
|
|
1991
2025
|
legendLabels,
|
|
2026
|
+
legendTruncation,
|
|
1992
2027
|
isSeriesCompare: legendMode === "seriesCompare",
|
|
1993
2028
|
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
1994
2029
|
scaleConfig,
|
|
@@ -2010,6 +2045,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2010
2045
|
showY2MinorGridLines,
|
|
2011
2046
|
showLineSmoothing,
|
|
2012
2047
|
dataValuesDisplay,
|
|
2048
|
+
showXMajorTicks,
|
|
2049
|
+
xAxisMajorTickSize: xAxisMajorTickSizeNum,
|
|
2013
2050
|
showYMajorTicks,
|
|
2014
2051
|
showY2MajorTicks,
|
|
2015
2052
|
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
@@ -2021,7 +2058,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2021
2058
|
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
2022
2059
|
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
2023
2060
|
showYAxisWithZero,
|
|
2024
|
-
showY2AxisWithZero
|
|
2061
|
+
showY2AxisWithZero,
|
|
2062
|
+
showXAxisLine,
|
|
2063
|
+
showYAxisLine,
|
|
2064
|
+
showY2AxisLine,
|
|
2065
|
+
xAxisMaxLabelParts
|
|
2025
2066
|
}
|
|
2026
2067
|
));
|
|
2027
2068
|
}, [
|
|
@@ -2036,6 +2077,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2036
2077
|
seriesOverrides,
|
|
2037
2078
|
legend,
|
|
2038
2079
|
legendLabels,
|
|
2080
|
+
legendTruncation,
|
|
2039
2081
|
scaleConfig,
|
|
2040
2082
|
onClick,
|
|
2041
2083
|
handleChartClick,
|
|
@@ -2054,6 +2096,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2054
2096
|
showY2MinorGridLines,
|
|
2055
2097
|
showLineSmoothing,
|
|
2056
2098
|
dataValuesDisplay,
|
|
2099
|
+
showXMajorTicks,
|
|
2100
|
+
xAxisMajorTickSizeNum,
|
|
2057
2101
|
showYMajorTicks,
|
|
2058
2102
|
showY2MajorTicks,
|
|
2059
2103
|
yAxisMajorTickSizeNum,
|
|
@@ -2066,7 +2110,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2066
2110
|
y2AxisMinorTickSizeNum,
|
|
2067
2111
|
showYAxisWithZero,
|
|
2068
2112
|
showY2AxisWithZero,
|
|
2069
|
-
|
|
2113
|
+
showXAxisLine,
|
|
2114
|
+
showYAxisLine,
|
|
2115
|
+
showY2AxisLine,
|
|
2116
|
+
legendMode,
|
|
2117
|
+
xAxisMaxLabelParts
|
|
2070
2118
|
]);
|
|
2071
2119
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2072
2120
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
@@ -2378,14 +2426,23 @@ var withDashboardViz = (opts) => {
|
|
|
2378
2426
|
};
|
|
2379
2427
|
var withDashboardViz_default = withDashboardViz;
|
|
2380
2428
|
|
|
2429
|
+
// esm-externals:@splunk/react-icons/Markdown
|
|
2430
|
+
var Markdown_exports2 = {};
|
|
2431
|
+
__export(Markdown_exports2, {
|
|
2432
|
+
default: () => Markdown_default2
|
|
2433
|
+
});
|
|
2434
|
+
var defaultImport35 = __toESM(require("@splunk/react-icons/Markdown"));
|
|
2435
|
+
__reExport(Markdown_exports2, require("@splunk/react-icons/Markdown"));
|
|
2436
|
+
var Markdown_default2 = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
2437
|
+
|
|
2381
2438
|
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
2382
2439
|
var configUtils_exports = {};
|
|
2383
2440
|
__export(configUtils_exports, {
|
|
2384
2441
|
default: () => configUtils_default
|
|
2385
2442
|
});
|
|
2386
|
-
var
|
|
2443
|
+
var defaultImport36 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
2387
2444
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
2388
|
-
var configUtils_default = "default" in
|
|
2445
|
+
var configUtils_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
2389
2446
|
|
|
2390
2447
|
// src/common/utils/configUtils.ts
|
|
2391
2448
|
function enhanceConfig(vizConfig) {
|
|
@@ -2544,7 +2601,7 @@ var config = {
|
|
|
2544
2601
|
/**
|
|
2545
2602
|
* viz icon
|
|
2546
2603
|
*/
|
|
2547
|
-
icon:
|
|
2604
|
+
icon: Markdown_default2,
|
|
2548
2605
|
dataContract,
|
|
2549
2606
|
size,
|
|
2550
2607
|
defaultContext,
|
|
@@ -2818,5 +2875,5 @@ var Markdown = withDashboardViz_default({
|
|
|
2818
2875
|
computeVizProps
|
|
2819
2876
|
});
|
|
2820
2877
|
var { themes: themes2 } = config_default;
|
|
2821
|
-
var
|
|
2878
|
+
var Markdown_default3 = Markdown;
|
|
2822
2879
|
//# sourceMappingURL=Markdown.js.map
|