* Move to vis types part 1 * Fix types * fix more types * Fix paths * Update readme file Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # .github/CODEOWNERS
This commit is contained in:
parent
f0f4b4c2d6
commit
a7289d1da8
|
@ -65,9 +65,9 @@
|
|||
"visTypeTagCloud": "src/plugins/vis_type_tagcloud",
|
||||
"visTypeTimeseries": "src/plugins/vis_type_timeseries",
|
||||
"visTypeVega": "src/plugins/vis_type_vega",
|
||||
"visTypeVislib": "src/plugins/vis_type_vislib",
|
||||
"visTypeXy": "src/plugins/vis_type_xy",
|
||||
"visTypePie": "src/plugins/vis_type_pie",
|
||||
"visTypeVislib": "src/plugins/vis_types/vislib",
|
||||
"visTypeXy": "src/plugins/vis_types/xy",
|
||||
"visTypePie": "src/plugins/vis_types/pie",
|
||||
"visualizations": "src/plugins/visualizations",
|
||||
"visualize": "src/plugins/visualize",
|
||||
"apmOss": "src/plugins/apm_oss",
|
||||
|
|
|
@ -294,7 +294,7 @@ The plugin exposes the static DefaultEditorController class to consume.
|
|||
|WARNING: Missing README.
|
||||
|
||||
|
||||
|{kib-repo}blob/{branch}/src/plugins/vis_type_pie[visTypePie]
|
||||
|{kib-repo}blob/{branch}/src/plugins/vis_types/pie[visTypePie]
|
||||
|WARNING: Missing README.
|
||||
|
||||
|
||||
|
@ -318,11 +318,11 @@ The plugin exposes the static DefaultEditorController class to consume.
|
|||
|WARNING: Missing README.
|
||||
|
||||
|
||||
|{kib-repo}blob/{branch}/src/plugins/vis_type_vislib[visTypeVislib]
|
||||
|{kib-repo}blob/{branch}/src/plugins/vis_types/vislib[visTypeVislib]
|
||||
|WARNING: Missing README.
|
||||
|
||||
|
||||
|{kib-repo}blob/{branch}/src/plugins/vis_type_xy[visTypeXy]
|
||||
|{kib-repo}blob/{branch}/src/plugins/vis_types/xy[visTypeXy]
|
||||
|WARNING: Missing README.
|
||||
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ module.exports = {
|
|||
'<rootDir>/packages/*/jest.config.js',
|
||||
'<rootDir>/src/*/jest.config.js',
|
||||
'<rootDir>/src/plugins/*/jest.config.js',
|
||||
'<rootDir>/src/plugins/vis_types/*/jest.config.js',
|
||||
'<rootDir>/test/*/jest.config.js',
|
||||
'<rootDir>/x-pack/plugins/*/jest.config.js',
|
||||
],
|
||||
|
|
|
@ -70,6 +70,7 @@ export const PROJECTS = [
|
|||
|
||||
...findProjects('packages/*/tsconfig.json'),
|
||||
...findProjects('src/plugins/*/tsconfig.json'),
|
||||
...findProjects('src/plugins/vis_types/*/tsconfig.json'),
|
||||
...findProjects('x-pack/plugins/*/tsconfig.json'),
|
||||
...findProjects('examples/*/tsconfig.json'),
|
||||
...findProjects('x-pack/examples/*/tsconfig.json'),
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
{ "path": "../field_formats/tsconfig.json" }
|
||||
]
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../kibana_legacy/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
{ "path": "../vis_type_xy/tsconfig.json" },
|
||||
{ "path": "../vis_type_pie/tsconfig.json" },
|
||||
]
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
]
|
||||
}
|
19
src/plugins/vis_types/README.md
Normal file
19
src/plugins/vis_types/README.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Vis types
|
||||
|
||||
This folder contains all the legacy visualizations plugins. The legacy visualizations are:
|
||||
- TSVB
|
||||
- Vega
|
||||
- All the aggregation-based visualizations
|
||||
|
||||
The structure is:
|
||||
```
|
||||
└ vis_types (just a folder)
|
||||
|
||||
└ pie (previous vis_type_pie)
|
||||
|
||||
└ tagcloud (previous vis_type_tagcloud)
|
||||
|
||||
└ ...
|
||||
```
|
||||
|
||||
If their renderer/expression is not shared with any other plugin, it can be contained within the vis_types/* plugin in this folder. If it's sharing a renderer/expression with Lens or Canvas, the renderer must be extracted into the chart_expression folder.
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
module.exports = {
|
||||
preset: '@kbn/test',
|
||||
rootDir: '../../..',
|
||||
roots: ['<rootDir>/src/plugins/vis_type_xy'],
|
||||
rootDir: '../../../..',
|
||||
roots: ['<rootDir>/src/plugins/vis_types/pie'],
|
||||
};
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import React from 'react';
|
||||
import { Accessor, AccessorFn, GroupBy, GroupBySort, SmallMultiples } from '@elastic/charts';
|
||||
import { DatatableColumn } from '../../../expressions/public';
|
||||
import { DatatableColumn } from '../../../../expressions/public';
|
||||
import { SplitDimensionParams } from '../types';
|
||||
|
||||
interface ChartSplitProps {
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import React, { lazy } from 'react';
|
||||
import { VisEditorOptionsProps } from '../../../../visualizations/public';
|
||||
import { VisEditorOptionsProps } from '../../../../../visualizations/public';
|
||||
import { PieVisParams, PieTypeProps } from '../../types';
|
||||
|
||||
const PieOptionsLazy = lazy(() => import('./pie'));
|
|
@ -10,7 +10,7 @@ import React from 'react';
|
|||
import { mountWithIntl } from '@kbn/test/jest';
|
||||
import { ReactWrapper } from 'enzyme';
|
||||
import PieOptions, { PieOptionsProps } from './pie';
|
||||
import { chartPluginMock } from '../../../../charts/public/mocks';
|
||||
import { chartPluginMock } from '../../../../../charts/public/mocks';
|
||||
import { findTestSubject } from '@elastic/eui/lib/test';
|
||||
import { act } from 'react-dom/test-utils';
|
||||
|
|
@ -27,10 +27,10 @@ import {
|
|||
SelectOption,
|
||||
PalettePicker,
|
||||
LongLegendOptions,
|
||||
} from '../../../../vis_default_editor/public';
|
||||
import { VisEditorOptionsProps } from '../../../../visualizations/public';
|
||||
} from '../../../../../vis_default_editor/public';
|
||||
import { VisEditorOptionsProps } from '../../../../../visualizations/public';
|
||||
import { TruncateLabelsOption } from './truncate_labels';
|
||||
import { PaletteRegistry } from '../../../../charts/public';
|
||||
import { PaletteRegistry } from '../../../../../charts/public';
|
||||
import { DEFAULT_PERCENT_DECIMALS } from '../../../common';
|
||||
import { PieVisParams, LabelPositions, ValueFormats, PieTypeProps } from '../../types';
|
||||
import { getLabelPositions, getValuesFormats } from '../collections';
|
|
@ -11,7 +11,7 @@ import {
|
|||
ExpressionFunctionDefinition,
|
||||
Datatable,
|
||||
ExpressionValueBoxed,
|
||||
} from '../../../expressions/public';
|
||||
} from '../../../../expressions/public';
|
||||
|
||||
interface Arguments {
|
||||
show: boolean;
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { Datatable } from '../../expressions/public';
|
||||
import { Datatable } from '../../../expressions/public';
|
||||
import { BucketColumns, PieVisParams, LabelPositions, ValueFormats } from './types';
|
||||
|
||||
export const createMockBucketColumns = (): BucketColumns[] => {
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
import React from 'react';
|
||||
import { Settings, TooltipType, SeriesIdentifier } from '@elastic/charts';
|
||||
import { chartPluginMock } from '../../charts/public/mocks';
|
||||
import { dataPluginMock } from '../../data/public/mocks';
|
||||
import { chartPluginMock } from '../../../charts/public/mocks';
|
||||
import { dataPluginMock } from '../../../data/public/mocks';
|
||||
import { shallow, mount } from 'enzyme';
|
||||
import { findTestSubject } from '@elastic/eui/lib/test';
|
||||
import { act } from 'react-dom/test-utils';
|
|
@ -25,11 +25,15 @@ import {
|
|||
ClickTriggerEvent,
|
||||
ChartsPluginSetup,
|
||||
PaletteRegistry,
|
||||
} from '../../charts/public';
|
||||
import { DataPublicPluginStart } from '../../data/public';
|
||||
import type { FieldFormat } from '../../field_formats/common';
|
||||
import type { PersistedState } from '../../visualizations/public';
|
||||
import { Datatable, DatatableColumn, IInterpreterRenderHandlers } from '../../expressions/public';
|
||||
} from '../../../charts/public';
|
||||
import { DataPublicPluginStart } from '../../../data/public';
|
||||
import type { PersistedState } from '../../../visualizations/public';
|
||||
import {
|
||||
Datatable,
|
||||
DatatableColumn,
|
||||
IInterpreterRenderHandlers,
|
||||
} from '../../../expressions/public';
|
||||
import type { FieldFormat } from '../../../field_formats/common';
|
||||
import { DEFAULT_PERCENT_DECIMALS } from '../common';
|
||||
import { PieVisParams, BucketColumns, ValueFormats, PieContainerDimensions } from './types';
|
||||
import {
|
|
@ -6,9 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { functionWrapper } from '../../expressions/common/expression_functions/specs/tests/utils';
|
||||
import { functionWrapper } from '../../../expressions/common/expression_functions/specs/tests/utils';
|
||||
import { createPieVisFn } from './pie_fn';
|
||||
import { Datatable } from '../../expressions/common/expression_types/specs';
|
||||
import { Datatable } from '../../../expressions/common/expression_types/specs';
|
||||
|
||||
describe('interpreter/functions#pie', () => {
|
||||
const fn = functionWrapper(createPieVisFn());
|
|
@ -7,9 +7,9 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { ExpressionFunctionDefinition, Datatable, Render } from '../../expressions/common';
|
||||
import { ExpressionFunctionDefinition, Datatable, Render } from '../../../expressions/common';
|
||||
import { PieVisParams, PieVisConfig } from './types';
|
||||
import { prepareLogTable } from '../../visualizations/public';
|
||||
import { prepareLogTable } from '../../../visualizations/public';
|
||||
|
||||
export const vislibPieName = 'pie_vis';
|
||||
|
|
@ -9,9 +9,9 @@
|
|||
import React, { lazy } from 'react';
|
||||
import { render, unmountComponentAtNode } from 'react-dom';
|
||||
import { I18nProvider } from '@kbn/i18n/react';
|
||||
import { ExpressionRenderDefinition } from '../../expressions/public';
|
||||
import { VisualizationContainer } from '../../visualizations/public';
|
||||
import type { PersistedState } from '../../visualizations/public';
|
||||
import { ExpressionRenderDefinition } from '../../../expressions/public';
|
||||
import { VisualizationContainer } from '../../../visualizations/public';
|
||||
import type { PersistedState } from '../../../visualizations/public';
|
||||
import { VisTypePieDependencies } from './plugin';
|
||||
|
||||
import { RenderValue, vislibPieName } from './pie_fn';
|
|
@ -7,11 +7,11 @@
|
|||
*/
|
||||
|
||||
import { CoreSetup, DocLinksStart } from 'src/core/public';
|
||||
import { VisualizationsSetup } from '../../visualizations/public';
|
||||
import { Plugin as ExpressionsPublicPlugin } from '../../expressions/public';
|
||||
import { ChartsPluginSetup } from '../../charts/public';
|
||||
import { UsageCollectionSetup } from '../../usage_collection/public';
|
||||
import { DataPublicPluginStart } from '../../data/public';
|
||||
import { VisualizationsSetup } from '../../../visualizations/public';
|
||||
import { Plugin as ExpressionsPublicPlugin } from '../../../expressions/public';
|
||||
import { ChartsPluginSetup } from '../../../charts/public';
|
||||
import { UsageCollectionSetup } from '../../../usage_collection/public';
|
||||
import { DataPublicPluginStart } from '../../../data/public';
|
||||
import { LEGACY_PIE_CHARTS_LIBRARY } from '../common';
|
||||
import { pieLabels as pieLabelsExpressionFunction } from './expression_functions/pie_labels';
|
||||
import { createPieVisFn } from './pie_fn';
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { Vis } from '../../visualizations/public';
|
||||
import { Vis } from '../../../visualizations/public';
|
||||
|
||||
import { PieVisParams } from './types';
|
||||
import { samplePieVis } from './sample_vis.test.mocks';
|
|
@ -6,8 +6,8 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { getVisSchemas, VisToExpressionAst, SchemaConfig } from '../../visualizations/public';
|
||||
import { buildExpression, buildExpressionFunction } from '../../expressions/public';
|
||||
import { getVisSchemas, VisToExpressionAst, SchemaConfig } from '../../../visualizations/public';
|
||||
import { buildExpression, buildExpressionFunction } from '../../../expressions/public';
|
||||
import { PieVisParams, LabelsParams } from './types';
|
||||
import { vislibPieName, VisTypePieExpressionFunctionDefinition } from './pie_fn';
|
||||
import { getEsaggsFn } from './to_ast_esaggs';
|
|
@ -6,12 +6,12 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { Vis } from '../../visualizations/public';
|
||||
import { buildExpression, buildExpressionFunction } from '../../expressions/public';
|
||||
import { Vis } from '../../../visualizations/public';
|
||||
import { buildExpression, buildExpressionFunction } from '../../../expressions/public';
|
||||
import {
|
||||
EsaggsExpressionFunctionDefinition,
|
||||
IndexPatternLoadExpressionFunctionDefinition,
|
||||
} from '../../data/public';
|
||||
} from '../../../data/public';
|
||||
|
||||
import { PieVisParams } from './types';
|
||||
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
import { Position } from '@elastic/charts';
|
||||
import { UiCounterMetricType } from '@kbn/analytics';
|
||||
import { DatatableColumn, SerializedFieldFormat } from '../../../expressions/public';
|
||||
import { ExpressionValueVisDimension } from '../../../visualizations/public';
|
||||
import { DatatableColumn, SerializedFieldFormat } from '../../../../expressions/public';
|
||||
import { ExpressionValueVisDimension } from '../../../../visualizations/public';
|
||||
import { ExpressionValuePieLabels } from '../expression_functions/pie_labels';
|
||||
import { PaletteOutput, ChartsPluginSetup } from '../../../charts/public';
|
||||
import { PaletteOutput, ChartsPluginSetup } from '../../../../charts/public';
|
||||
|
||||
export interface Dimension {
|
||||
accessor: number;
|
|
@ -5,7 +5,7 @@
|
|||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
import { DatatableColumn } from '../../../expressions/public';
|
||||
import { DatatableColumn } from '../../../../expressions/public';
|
||||
import { getFilterClickData, getFilterEventData } from './filter_helpers';
|
||||
import { createMockBucketColumns, createMockVisData } from '../mocks';
|
||||
|
|
@ -7,11 +7,11 @@
|
|||
*/
|
||||
|
||||
import { LayerValue, SeriesIdentifier } from '@elastic/charts';
|
||||
import { Datatable, DatatableColumn } from '../../../expressions/public';
|
||||
import { DataPublicPluginStart } from '../../../data/public';
|
||||
import type { FieldFormat } from '../../../field_formats/common';
|
||||
import { ClickTriggerEvent } from '../../../charts/public';
|
||||
import { ValueClickContext } from '../../../embeddable/public';
|
||||
import { Datatable, DatatableColumn } from '../../../../expressions/public';
|
||||
import { DataPublicPluginStart } from '../../../../data/public';
|
||||
import { ClickTriggerEvent } from '../../../../charts/public';
|
||||
import { ValueClickContext } from '../../../../embeddable/public';
|
||||
import type { FieldFormat } from '../../../../field_formats/common';
|
||||
import { BucketColumns } from '../types';
|
||||
|
||||
export const canFilter = async (
|
|
@ -12,8 +12,8 @@ import { EuiPopover } from '@elastic/eui';
|
|||
import { mountWithIntl } from '@kbn/test/jest';
|
||||
import { ComponentType, ReactWrapper } from 'enzyme';
|
||||
import { getColorPicker } from './get_color_picker';
|
||||
import { ColorPicker } from '../../../charts/public';
|
||||
import type { PersistedState } from '../../../visualizations/public';
|
||||
import { ColorPicker } from '../../../../charts/public';
|
||||
import type { PersistedState } from '../../../../visualizations/public';
|
||||
import { createMockBucketColumns, createMockVisData } from '../mocks';
|
||||
|
||||
const bucketColumns = createMockBucketColumns();
|
|
@ -10,9 +10,9 @@ import React, { useCallback } from 'react';
|
|||
import Color from 'color';
|
||||
import { LegendColorPicker, Position } from '@elastic/charts';
|
||||
import { PopoverAnchorPosition, EuiPopover, EuiOutsideClickDetector } from '@elastic/eui';
|
||||
import type { DatatableRow } from '../../../expressions/public';
|
||||
import type { PersistedState } from '../../../visualizations/public';
|
||||
import { ColorPicker } from '../../../charts/public';
|
||||
import type { DatatableRow } from '../../../../expressions/public';
|
||||
import type { PersistedState } from '../../../../visualizations/public';
|
||||
import { ColorPicker } from '../../../../charts/public';
|
||||
import { BucketColumns } from '../types';
|
||||
|
||||
const KEY_CODE_ENTER = 13;
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { DatatableColumn, Datatable } from '../../../expressions/public';
|
||||
import { DatatableColumn, Datatable } from '../../../../expressions/public';
|
||||
import { BucketColumns, PieVisParams } from '../types';
|
||||
|
||||
export const getColumns = (
|
|
@ -5,7 +5,7 @@
|
|||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
import { DatatableRow } from '../../../expressions/public';
|
||||
import { DatatableRow } from '../../../../expressions/public';
|
||||
import { BucketColumns } from '../types';
|
||||
|
||||
export const getDistinctSeries = (rows: DatatableRow[], buckets: Array<Partial<BucketColumns>>) => {
|
|
@ -6,9 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
import { ShapeTreeNode } from '@elastic/charts';
|
||||
import { PaletteDefinition, SeriesLayer } from '../../../charts/public';
|
||||
import { dataPluginMock } from '../../../data/public/mocks';
|
||||
import type { DataPublicPluginStart } from '../../../data/public';
|
||||
import { PaletteDefinition, SeriesLayer } from '../../../../charts/public';
|
||||
import { dataPluginMock } from '../../../../data/public/mocks';
|
||||
import type { DataPublicPluginStart } from '../../../../data/public';
|
||||
import { computeColor } from './get_layers';
|
||||
import { createMockVisData, createMockBucketColumns, createMockPieParams } from '../mocks';
|
||||
|
|
@ -14,9 +14,9 @@ import {
|
|||
ArrayEntry,
|
||||
} from '@elastic/charts';
|
||||
import { isEqual } from 'lodash';
|
||||
import { SeriesLayer, PaletteRegistry, lightenColor } from '../../../charts/public';
|
||||
import type { DataPublicPluginStart } from '../../../data/public';
|
||||
import type { DatatableRow } from '../../../expressions/public';
|
||||
import { SeriesLayer, PaletteRegistry, lightenColor } from '../../../../charts/public';
|
||||
import type { DataPublicPluginStart } from '../../../../data/public';
|
||||
import type { DatatableRow } from '../../../../expressions/public';
|
||||
import type { BucketColumns, PieVisParams, SplitDimensionParams } from '../types';
|
||||
import { getDistinctSeries } from './get_distinct_series';
|
||||
|
|
@ -11,9 +11,9 @@ import React, { useState, useEffect, useMemo } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { EuiContextMenuPanelDescriptor, EuiIcon, EuiPopover, EuiContextMenu } from '@elastic/eui';
|
||||
import { LegendAction, SeriesIdentifier } from '@elastic/charts';
|
||||
import { DataPublicPluginStart } from '../../../data/public';
|
||||
import { DataPublicPluginStart } from '../../../../data/public';
|
||||
import { PieVisParams } from '../types';
|
||||
import { ClickTriggerEvent } from '../../../charts/public';
|
||||
import { ClickTriggerEvent } from '../../../../charts/public';
|
||||
|
||||
export const getLegendActions = (
|
||||
canFilter: (
|
|
@ -6,8 +6,8 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
import { AccessorFn } from '@elastic/charts';
|
||||
import type { FieldFormatsStart } from '../../../field_formats/public';
|
||||
import { DatatableColumn } from '../../../expressions/public';
|
||||
import { DatatableColumn } from '../../../../expressions/public';
|
||||
import type { FieldFormatsStart } from '../../../../field_formats/public';
|
||||
import { Dimension } from '../types';
|
||||
|
||||
export const getSplitDimensionAccessor = (
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { Position } from '@elastic/charts';
|
||||
import { AggGroupNames } from '../../../data/public';
|
||||
import { VIS_EVENT_TO_TRIGGER, VisTypeDefinition } from '../../../visualizations/public';
|
||||
import { AggGroupNames } from '../../../../data/public';
|
||||
import { VIS_EVENT_TO_TRIGGER, VisTypeDefinition } from '../../../../visualizations/public';
|
||||
import { DEFAULT_PERCENT_DECIMALS } from '../../common';
|
||||
import { PieVisParams, LabelPositions, ValueFormats, PieTypeProps } from '../types';
|
||||
import { toExpressionAst } from '../to_ast';
|
24
src/plugins/vis_types/pie/tsconfig.json
Normal file
24
src/plugins/vis_types/pie/tsconfig.json
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../../core/tsconfig.json" },
|
||||
{ "path": "../../charts/tsconfig.json" },
|
||||
{ "path": "../../data/tsconfig.json" },
|
||||
{ "path": "../../expressions/tsconfig.json" },
|
||||
{ "path": "../../visualizations/tsconfig.json" },
|
||||
{ "path": "../../usage_collection/tsconfig.json" },
|
||||
{ "path": "../../vis_default_editor/tsconfig.json" },
|
||||
{ "path": "../../field_formats/tsconfig.json" }
|
||||
]
|
||||
}
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
module.exports = {
|
||||
preset: '@kbn/test',
|
||||
rootDir: '../../..',
|
||||
roots: ['<rootDir>/src/plugins/vis_type_vislib'],
|
||||
rootDir: '../../../..',
|
||||
roots: ['<rootDir>/src/plugins/vis_types/vislib'],
|
||||
};
|
|
@ -6,8 +6,8 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { xyVisTypes } from '../../vis_type_xy/public';
|
||||
import { VisTypeDefinition } from '../../visualizations/public';
|
||||
import { xyVisTypes } from '../../xy/public';
|
||||
import { VisTypeDefinition } from '../../../visualizations/public';
|
||||
|
||||
import { toExpressionAst } from './to_ast';
|
||||
import { BasicVislibParams } from './types';
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { colorSchemas } from '../../../charts/public';
|
||||
import { getPositions, getScaleTypes } from '../../../vis_type_xy/public';
|
||||
import { colorSchemas } from '../../../../charts/public';
|
||||
import { getPositions, getScaleTypes } from '../../../xy/public';
|
||||
|
||||
import { Alignment, GaugeType } from '../types';
|
||||
|
|
@ -10,7 +10,7 @@ import React from 'react';
|
|||
import { EuiPanel, EuiSpacer, EuiTitle } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import { SwitchOption, TextInputOption } from '../../../../../vis_default_editor/public';
|
||||
import { SwitchOption, TextInputOption } from '../../../../../../vis_default_editor/public';
|
||||
import { GaugeOptionsInternalProps } from '../gauge';
|
||||
|
||||
function LabelsPanel({ stateParams, setValue, setGaugeValue }: GaugeOptionsInternalProps) {
|
|
@ -16,8 +16,8 @@ import {
|
|||
SwitchOption,
|
||||
ColorSchemaOptions,
|
||||
PercentageModeOption,
|
||||
} from '../../../../../vis_default_editor/public';
|
||||
import { ColorSchemaParams, ColorSchemas, colorSchemas } from '../../../../../charts/public';
|
||||
} from '../../../../../../vis_default_editor/public';
|
||||
import { ColorSchemaParams, ColorSchemas, colorSchemas } from '../../../../../../charts/public';
|
||||
import { GaugeOptionsInternalProps } from '../gauge';
|
||||
import { Gauge } from '../../../gauge';
|
||||
|
|
@ -11,9 +11,9 @@ import { EuiPanel, EuiSpacer, EuiTitle } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
import { SelectOption } from '../../../../../vis_default_editor/public';
|
||||
import { SelectOption } from '../../../../../../vis_default_editor/public';
|
||||
import { GaugeOptionsInternalProps } from '../gauge';
|
||||
import { AggGroupNames } from '../../../../../data/public';
|
||||
import { AggGroupNames } from '../../../../../../data/public';
|
||||
import { getGaugeCollections } from './../../collections';
|
||||
|
||||
const gaugeCollections = getGaugeCollections();
|
|
@ -13,7 +13,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
import { VisEditorOptionsProps } from 'src/plugins/visualizations/public';
|
||||
import { ValueAxis } from '../../../../../vis_type_xy/public';
|
||||
import { ValueAxis } from '../../../../../xy/public';
|
||||
import {
|
||||
BasicOptions,
|
||||
SelectOption,
|
||||
|
@ -24,7 +24,7 @@ import {
|
|||
ColorSchemaOptions,
|
||||
NumberInputOption,
|
||||
PercentageModeOption,
|
||||
} from '../../../../../vis_default_editor/public';
|
||||
} from '../../../../../../vis_default_editor/public';
|
||||
|
||||
import { HeatmapVisParams } from '../../../heatmap';
|
||||
import { LabelsPanel } from './labels_panel';
|
|
@ -13,8 +13,8 @@ import { i18n } from '@kbn/i18n';
|
|||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
import { VisEditorOptionsProps } from 'src/plugins/visualizations/public';
|
||||
import { SwitchOption } from '../../../../../vis_default_editor/public';
|
||||
import { ValueAxis } from '../../../../../vis_type_xy/public';
|
||||
import { SwitchOption } from '../../../../../../vis_default_editor/public';
|
||||
import { ValueAxis } from '../../../../../xy/public';
|
||||
|
||||
import { HeatmapVisParams } from '../../../heatmap';
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue