Move to vis_types folder part 3 (#112084)

* Move to vis_types folder part 3

* Fix jest tests
This commit is contained in:
Stratoula Kalafateli 2021-09-15 14:46:48 +03:00 committed by GitHub
parent 6f810c651f
commit e20f530762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
257 changed files with 233 additions and 226 deletions

View file

@ -21,7 +21,7 @@ snapshots.js
# plugin overrides
/src/core/lib/kbn_internal_native_observable
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
/src/plugins/vis_type_timelion/common/_generated_/**
/src/plugins/vis_types/timelion/common/_generated_/**
/x-pack/plugins/apm/e2e/tmp/*
/x-pack/plugins/canvas/canvas_plugin
/x-pack/plugins/canvas/shareable_runtime/build

4
.github/CODEOWNERS vendored
View file

@ -27,9 +27,9 @@
/src/plugins/kibana_legacy/ @elastic/kibana-vis-editors
/src/plugins/vis_default_editor/ @elastic/kibana-vis-editors
/src/plugins/vis_types/metric/ @elastic/kibana-vis-editors
/src/plugins/vis_type_table/ @elastic/kibana-vis-editors
/src/plugins/vis_types/table/ @elastic/kibana-vis-editors
/src/plugins/vis_types/tagcloud/ @elastic/kibana-vis-editors
/src/plugins/vis_type_timelion/ @elastic/kibana-vis-editors
/src/plugins/vis_types/timelion/ @elastic/kibana-vis-editors
/src/plugins/vis_type_timeseries/ @elastic/kibana-vis-editors
/src/plugins/vis_types/vega/ @elastic/kibana-vis-editors
/src/plugins/vis_types/vislib/ @elastic/kibana-vis-editors

View file

@ -56,12 +56,12 @@
"server": "src/legacy/server",
"statusPage": "src/legacy/core_plugins/status_page",
"telemetry": ["src/plugins/telemetry", "src/plugins/telemetry_management_section"],
"timelion": ["src/plugins/vis_type_timelion"],
"timelion": ["src/plugins/vis_types/timelion"],
"uiActions": "src/plugins/ui_actions",
"visDefaultEditor": "src/plugins/vis_default_editor",
"visTypeMarkdown": "src/plugins/vis_type_markdown",
"visTypeMetric": "src/plugins/vis_types/metric",
"visTypeTable": "src/plugins/vis_type_table",
"visTypeTable": "src/plugins/vis_types/table",
"visTypeTagCloud": "src/plugins/vis_types/tagcloud",
"visTypeTimeseries": "src/plugins/vis_type_timeseries",
"visTypeVega": "src/plugins/vis_types/vega",

View file

@ -753,19 +753,19 @@
"references": [
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/plugin.ts"
"path": "src/plugins/vis_types/table/public/plugin.ts"
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/plugin.ts"
"path": "src/plugins/vis_types/table/public/plugin.ts"
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/target/types/public/plugin.d.ts"
"path": "src/plugins/vis_types/table/target/types/public/plugin.d.ts"
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/target/types/public/plugin.d.ts"
"path": "src/plugins/vis_types/table/target/types/public/plugin.d.ts"
}
],
"children": [

View file

@ -5004,11 +5004,11 @@
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts"
"path": "src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts"
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts"
"path": "src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts"
},
{
"plugin": "visTypeVega",
@ -16631,11 +16631,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visualize",
@ -16671,11 +16671,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_fn.ts"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_fn.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_fn.ts"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_fn.ts"
},
{
"plugin": "dashboard",
@ -18119,11 +18119,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/plugin_services.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/plugin_services.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts"
},
{
"plugin": "indexPatternManagement",
@ -18135,11 +18135,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts"
"path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts"
"path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts"
},
{
"plugin": "discover",
@ -19008,27 +19008,27 @@
"references": [
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx"
}
],
"initialIsOpen": false
@ -21706,15 +21706,15 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visTypeVega",
@ -24261,7 +24261,7 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/plugin.ts"
"path": "src/plugins/vis_types/timelion/public/plugin.ts"
},
{
"plugin": "visTypeTimeseries",
@ -24479,7 +24479,7 @@
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/plugin.ts"
"path": "src/plugins/vis_types/table/public/plugin.ts"
},
{
"plugin": "visTypeTimeseries",
@ -27306,11 +27306,11 @@
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts"
"path": "src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts"
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts"
"path": "src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts"
},
{
"plugin": "visTypeVega",
@ -32208,11 +32208,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visualize",
@ -32248,11 +32248,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_fn.ts"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_fn.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_fn.ts"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_fn.ts"
},
{
"plugin": "dashboard",
@ -38924,11 +38924,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts"
},
{
"plugin": "visualize",
@ -38964,11 +38964,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_fn.ts"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_fn.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_fn.ts"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_fn.ts"
},
{
"plugin": "dashboard",
@ -39892,27 +39892,27 @@
"references": [
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx"
"path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx"
"path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx"
}
],
"initialIsOpen": false

View file

@ -5927,11 +5927,11 @@
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts"
"path": "src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts"
},
{
"plugin": "visTypeTable",
"path": "src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts"
"path": "src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts"
},
{
"plugin": "visTypeVega",
@ -13270,11 +13270,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/plugin_services.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/helpers/plugin_services.ts"
"path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts"
},
{
"plugin": "indexPatternManagement",
@ -13286,11 +13286,11 @@
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts"
"path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts"
},
{
"plugin": "visTypeTimelion",
"path": "src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts"
"path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts"
},
{
"plugin": "discover",

View file

@ -898,11 +898,11 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| Deprecated API | Reference location(s) | Remove By |
| ---------------|-----------|-----------|
| <DocLink id="kibDataPluginApi" section="def-public.IndexPattern" text="IndexPattern"/> | [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern), [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern) | - |
| <DocLink id="kibDataPluginApi" section="def-public.DataPublicPluginStart.fieldFormats" text="fieldFormats"/> | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/plugin.ts#:~:text=fieldFormats) | - |
| <DocLink id="kibDataPluginApi" section="def-common.IndexPattern" text="IndexPattern"/> | [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern), [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern) | - |
| <DocLink id="kibDataPluginApi" section="def-server.IndexPattern" text="IndexPattern"/> | [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern), [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern) | - |
| <DocLink id="kibCorePluginApi" section="def-public.AsyncPlugin" text="AsyncPlugin"/> | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/plugin.ts#:~:text=AsyncPlugin), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/public/plugin.ts#:~:text=AsyncPlugin), [plugin.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/target/types/public/plugin.d.ts#:~:text=AsyncPlugin), [plugin.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_table/target/types/public/plugin.d.ts#:~:text=AsyncPlugin) | - |
| <DocLink id="kibDataPluginApi" section="def-public.IndexPattern" text="IndexPattern"/> | [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern), [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern) | - |
| <DocLink id="kibDataPluginApi" section="def-public.DataPublicPluginStart.fieldFormats" text="fieldFormats"/> | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/plugin.ts#:~:text=fieldFormats) | - |
| <DocLink id="kibDataPluginApi" section="def-common.IndexPattern" text="IndexPattern"/> | [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern), [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern) | - |
| <DocLink id="kibDataPluginApi" section="def-server.IndexPattern" text="IndexPattern"/> | [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern), [table_vis_controller.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/legacy/table_vis_controller.test.ts#:~:text=IndexPattern) | - |
| <DocLink id="kibCorePluginApi" section="def-public.AsyncPlugin" text="AsyncPlugin"/> | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/plugin.ts#:~:text=AsyncPlugin), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/public/plugin.ts#:~:text=AsyncPlugin), [plugin.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/target/types/public/plugin.d.ts#:~:text=AsyncPlugin), [plugin.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/table/target/types/public/plugin.d.ts#:~:text=AsyncPlugin) | - |
@ -910,15 +910,15 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| Deprecated API | Reference location(s) | Remove By |
| ---------------|-----------|-----------|
| <DocLink id="kibDataPluginApi" section="def-public.IndexPatternsContract" text="IndexPatternsContract"/> | [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract) | - |
| <DocLink id="kibDataPluginApi" section="def-public.DataPublicPluginStart.indexPatterns" text="indexPatterns"/> | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/plugin.ts#:~:text=indexPatterns) | - |
| <DocLink id="kibDataPluginApi" section="def-public.RangeFilterParams" text="RangeFilterParams"/> | [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-public.esQuery" text="esQuery"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=esQuery), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=esQuery), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=esQuery) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-public.Filter" text="Filter"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_fn.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_fn.ts#:~:text=Filter) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-common.Filter" text="Filter"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_fn.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_fn.ts#:~:text=Filter) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-common.RangeFilterParams" text="RangeFilterParams"/> | [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-common.IndexPatternsContract" text="IndexPatternsContract"/> | [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract) | - |
| <DocLink id="kibDataPluginApi" section="def-server.Filter" text="Filter"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_fn.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timelion/public/timelion_vis_fn.ts#:~:text=Filter) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-public.IndexPatternsContract" text="IndexPatternsContract"/> | [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract) | - |
| <DocLink id="kibDataPluginApi" section="def-public.DataPublicPluginStart.indexPatterns" text="indexPatterns"/> | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/plugin.ts#:~:text=indexPatterns) | - |
| <DocLink id="kibDataPluginApi" section="def-public.RangeFilterParams" text="RangeFilterParams"/> | [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-public.esQuery" text="esQuery"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=esQuery), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=esQuery), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=esQuery) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-public.Filter" text="Filter"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts#:~:text=Filter) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-common.Filter" text="Filter"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts#:~:text=Filter) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-common.RangeFilterParams" text="RangeFilterParams"/> | [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams) | 8.1 |
| <DocLink id="kibDataPluginApi" section="def-common.IndexPatternsContract" text="IndexPatternsContract"/> | [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract) | - |
| <DocLink id="kibDataPluginApi" section="def-server.Filter" text="Filter"/> | [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_request_handler.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts#:~:text=Filter), [timelion_vis_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts#:~:text=Filter) | 8.1 |

View file

@ -27,7 +27,7 @@
"tags": [],
"label": "TableVisParams",
"description": [],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false,
"children": [
{
@ -40,7 +40,7 @@
"signature": [
"number | \"\""
],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
},
{
@ -50,7 +50,7 @@
"tags": [],
"label": "showPartialRows",
"description": [],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
},
{
@ -60,7 +60,7 @@
"tags": [],
"label": "showMetricsAtAllLevels",
"description": [],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
},
{
@ -70,7 +70,7 @@
"tags": [],
"label": "showToolbar",
"description": [],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
},
{
@ -80,7 +80,7 @@
"tags": [],
"label": "showTotal",
"description": [],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
},
{
@ -99,7 +99,7 @@
"text": "AggTypes"
}
],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
},
{
@ -109,7 +109,7 @@
"tags": [],
"label": "percentageCol",
"description": [],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
},
{
@ -122,7 +122,7 @@
"signature": [
"boolean | undefined"
],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false
}
],
@ -137,7 +137,7 @@
"tags": [],
"label": "AggTypes",
"description": [],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false,
"initialIsOpen": false
}
@ -153,7 +153,7 @@
"signature": [
"\"table\""
],
"path": "src/plugins/vis_type_table/common/types.ts",
"path": "src/plugins/vis_types/table/common/types.ts",
"deprecated": false,
"initialIsOpen": false
}

View file

@ -14,7 +14,7 @@
"tags": [],
"label": "_LEGACY_",
"description": [],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false,
"children": [
{
@ -24,7 +24,7 @@
"tags": [],
"label": "DEFAULT_TIME_FORMAT",
"description": [],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false
},
{
@ -37,7 +37,7 @@
"signature": [
"(from: number, to: number, size: number, interval: string, min: string) => string"
],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false,
"returnComment": [],
"children": [
@ -48,7 +48,7 @@
"tags": [],
"label": "from",
"description": [],
"path": "src/plugins/vis_type_timelion/common/lib/calculate_interval.ts",
"path": "src/plugins/vis_types/timelion/common/lib/calculate_interval.ts",
"deprecated": false
},
{
@ -58,7 +58,7 @@
"tags": [],
"label": "to",
"description": [],
"path": "src/plugins/vis_type_timelion/common/lib/calculate_interval.ts",
"path": "src/plugins/vis_types/timelion/common/lib/calculate_interval.ts",
"deprecated": false
},
{
@ -68,7 +68,7 @@
"tags": [],
"label": "size",
"description": [],
"path": "src/plugins/vis_type_timelion/common/lib/calculate_interval.ts",
"path": "src/plugins/vis_types/timelion/common/lib/calculate_interval.ts",
"deprecated": false
},
{
@ -78,7 +78,7 @@
"tags": [],
"label": "interval",
"description": [],
"path": "src/plugins/vis_type_timelion/common/lib/calculate_interval.ts",
"path": "src/plugins/vis_types/timelion/common/lib/calculate_interval.ts",
"deprecated": false
},
{
@ -88,7 +88,7 @@
"tags": [],
"label": "min",
"description": [],
"path": "src/plugins/vis_type_timelion/common/lib/calculate_interval.ts",
"path": "src/plugins/vis_types/timelion/common/lib/calculate_interval.ts",
"deprecated": false
}
]
@ -105,7 +105,7 @@
"ParsedExpression",
">"
],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false,
"returnComment": [],
"children": [
@ -116,7 +116,7 @@
"tags": [],
"label": "input",
"description": [],
"path": "src/plugins/vis_type_timelion/common/parser_async.ts",
"path": "src/plugins/vis_types/timelion/common/parser_async.ts",
"deprecated": false
}
]
@ -137,7 +137,7 @@
"LegacyAxis",
"): string; }"
],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false,
"returnComment": [],
"children": []
@ -160,7 +160,7 @@
},
") => string"
],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false,
"returnComment": [],
"children": [
@ -180,7 +180,7 @@
"text": "IUiSettingsClient"
}
],
"path": "src/plugins/vis_type_timelion/public/helpers/get_timezone.ts",
"path": "src/plugins/vis_types/timelion/public/helpers/get_timezone.ts",
"deprecated": false
}
]
@ -203,7 +203,7 @@
},
") => (esInterval: any) => any"
],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false,
"returnComment": [],
"children": [
@ -223,7 +223,7 @@
"text": "IUiSettingsClient"
}
],
"path": "src/plugins/vis_type_timelion/public/helpers/xaxis_formatter.ts",
"path": "src/plugins/vis_types/timelion/public/helpers/xaxis_formatter.ts",
"deprecated": false
}
]
@ -240,7 +240,7 @@
"IAxis",
") => number[]"
],
"path": "src/plugins/vis_type_timelion/public/index.ts",
"path": "src/plugins/vis_types/timelion/public/index.ts",
"deprecated": false,
"returnComment": [],
"children": []
@ -256,7 +256,7 @@
"tags": [],
"label": "VisTypeTimelionPluginStart",
"description": [],
"path": "src/plugins/vis_type_timelion/public/plugin.ts",
"path": "src/plugins/vis_types/timelion/public/plugin.ts",
"deprecated": false,
"children": [
{
@ -275,7 +275,7 @@
"TimelionFunctionArgsSuggestion",
"[]; }"
],
"path": "src/plugins/vis_type_timelion/public/plugin.ts",
"path": "src/plugins/vis_types/timelion/public/plugin.ts",
"deprecated": false,
"returnComment": [],
"children": []
@ -291,7 +291,7 @@
"tags": [],
"label": "VisTypeTimelionPluginSetup",
"description": [],
"path": "src/plugins/vis_type_timelion/public/plugin.ts",
"path": "src/plugins/vis_types/timelion/public/plugin.ts",
"deprecated": false,
"children": [
{
@ -301,7 +301,7 @@
"tags": [],
"label": "isUiEnabled",
"description": [],
"path": "src/plugins/vis_type_timelion/public/plugin.ts",
"path": "src/plugins/vis_types/timelion/public/plugin.ts",
"deprecated": false
}
],
@ -322,7 +322,7 @@
"description": [
"\nDescribes public Timelion plugin contract returned at the `setup` stage."
],
"path": "src/plugins/vis_type_timelion/server/plugin.ts",
"path": "src/plugins/vis_types/timelion/server/plugin.ts",
"deprecated": false,
"children": [
{
@ -332,7 +332,7 @@
"tags": [],
"label": "uiEnabled",
"description": [],
"path": "src/plugins/vis_type_timelion/server/plugin.ts",
"path": "src/plugins/vis_types/timelion/server/plugin.ts",
"deprecated": false
}
],

View file

@ -285,7 +285,7 @@ The plugin exposes the static DefaultEditorController class to consume.
|WARNING: Missing README.
|{kib-repo}blob/{branch}/src/plugins/vis_type_table/README.md[visTypeTable]
|{kib-repo}blob/{branch}/src/plugins/vis_types/table/README.md[visTypeTable]
|Contains the data table visualization, that allows presenting data in a simple table format.
@ -293,7 +293,7 @@ The plugin exposes the static DefaultEditorController class to consume.
|WARNING: Missing README.
|{kib-repo}blob/{branch}/src/plugins/vis_type_timelion/README.md[visTypeTimelion]
|{kib-repo}blob/{branch}/src/plugins/vis_types/timelion/README.md[visTypeTimelion]
|Contains the timelion visualization and the timelion backend.

View file

@ -42,7 +42,7 @@ export async function findUsedDependencies(listedPkgDependencies: any, baseDir:
// Another way would be to include an index file and import all the functions
// using named imports
const dynamicRequiredEntries = await globby([
normalize(Path.resolve(baseDir, 'src/plugins/vis_type_timelion/server/**/*.js')),
normalize(Path.resolve(baseDir, 'src/plugins/vis_types/timelion/server/**/*.js')),
]);
// Compose all the needed entries

View file

@ -1,28 +0,0 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*",
"*.ts"
],
"references": [
{ "path": "../../core/tsconfig.json" },
{ "path": "../data/tsconfig.json" },
{ "path": "../visualizations/tsconfig.json" },
{ "path": "../share/tsconfig.json" },
{ "path": "../usage_collection/tsconfig.json" },
{ "path": "../expressions/tsconfig.json" },
{ "path": "../kibana_utils/tsconfig.json" },
{ "path": "../kibana_legacy/tsconfig.json" },
{ "path": "../kibana_react/tsconfig.json" },
{ "path": "../vis_default_editor/tsconfig.json" },
{ "path": "../field_formats/tsconfig.json" }
]
}

View file

@ -1,24 +0,0 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*",
"*.ts"
],
"references": [
{ "path": "../../core/tsconfig.json" },
{ "path": "../visualizations/tsconfig.json" },
{ "path": "../data/tsconfig.json" },
{ "path": "../expressions/tsconfig.json" },
{ "path": "../kibana_utils/tsconfig.json" },
{ "path": "../kibana_react/tsconfig.json" },
{ "path": "../vis_default_editor/tsconfig.json" },
]
}

View file

@ -8,12 +8,12 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/vis_type_table'],
rootDir: '../../../..',
roots: ['<rootDir>/src/plugins/vis_types/table'],
testRunner: 'jasmine2',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/vis_type_table',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/vis_types/table',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/vis_type_table/{common,public,server}/**/*.{js,ts,tsx}',
'<rootDir>/src/plugins/vis_types/table/{common,public,server}/**/*.{js,ts,tsx}',
],
};

View file

@ -19,13 +19,13 @@ import { i18n } from '@kbn/i18n';
import { DatatableColumn, DatatableRow } from 'src/plugins/expressions';
import { CoreStart } from 'kibana/public';
import { useKibana } from '../../../kibana_react/public';
import { exporters } from '../../../data/public';
import { useKibana } from '../../../../kibana_react/public';
import { exporters } from '../../../../data/public';
import {
CSV_SEPARATOR_SETTING,
CSV_QUOTE_VALUES_SETTING,
downloadFileAs,
} from '../../../share/public';
} from '../../../../share/public';
import { getFormatService } from '../services';
interface TableVisControlsProps {

View file

@ -13,8 +13,12 @@ import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import { VisEditorOptionsProps } from 'src/plugins/visualizations/public';
import { search } from '../../../data/public';
import { SwitchOption, SelectOption, NumberInputOption } from '../../../vis_default_editor/public';
import { search } from '../../../../data/public';
import {
SwitchOption,
SelectOption,
NumberInputOption,
} from '../../../../vis_default_editor/public';
import { TableVisParams } from '../../common';
import { totalAggregations } from './utils';

View file

@ -13,7 +13,7 @@ jest.mock('../utils', () => ({
import React from 'react';
import { shallow } from 'enzyme';
import { IInterpreterRenderHandlers } from 'src/plugins/expressions';
import { coreMock } from '../../../../core/public/mocks';
import { coreMock } from '../../../../../core/public/mocks';
import { TableVisConfig, TableVisData } from '../types';
import TableVisualizationComponent from './table_visualization';
import { useUiState } from '../utils';

View file

@ -13,7 +13,7 @@ import classNames from 'classnames';
import { CoreStart } from 'kibana/public';
import { IInterpreterRenderHandlers } from 'src/plugins/expressions';
import type { PersistedState } from 'src/plugins/visualizations/public';
import { KibanaContextProvider } from '../../../kibana_react/public';
import { KibanaContextProvider } from '../../../../kibana_react/public';
import { TableVisConfig, TableVisData } from '../types';
import { TableVisBasic } from './table_vis_basic';
import { TableVisSplit } from './table_vis_split';

View file

@ -7,11 +7,11 @@
*/
import { CoreSetup, CoreStart, Plugin } from 'kibana/public';
import { Plugin as ExpressionsPublicPlugin } from '../../expressions/public';
import { VisualizationsSetup } from '../../visualizations/public';
import { UsageCollectionSetup } from '../../usage_collection/public';
import { Plugin as ExpressionsPublicPlugin } from '../../../expressions/public';
import { VisualizationsSetup } from '../../../visualizations/public';
import { UsageCollectionSetup } from '../../../usage_collection/public';
import { DataPublicPluginStart } from '../../data/public';
import { DataPublicPluginStart } from '../../../data/public';
import { setFormatService } from './services';
import { registerTableVis } from './register_vis';

View file

@ -6,8 +6,8 @@
* Side Public License, v 1.
*/
import { createGetterSetter } from '../../kibana_utils/public';
import { DataPublicPluginStart } from '../../data/public';
import { createGetterSetter } from '../../../kibana_utils/public';
import { DataPublicPluginStart } from '../../../data/public';
export const [getFormatService, setFormatService] = createGetterSetter<
DataPublicPluginStart['fieldFormats']

View file

@ -9,8 +9,8 @@
import { createTableVisFn } from './table_vis_fn';
import { tableVisResponseHandler } from './utils';
import { functionWrapper } from '../../expressions/common/expression_functions/specs/tests/utils';
import { Datatable } from '../../expressions/common/expression_types/specs';
import { functionWrapper } from '../../../expressions/common/expression_functions/specs/tests/utils';
import { Datatable } from '../../../expressions/common/expression_types/specs';
jest.mock('./utils', () => ({
tableVisResponseHandler: jest.fn().mockReturnValue({

View file

@ -7,8 +7,8 @@
*/
import { i18n } from '@kbn/i18n';
import { ExpressionFunctionDefinition, Datatable, Render } from '../../expressions/public';
import { prepareLogTable, Dimension } from '../../visualizations/public';
import { ExpressionFunctionDefinition, Datatable, Render } from '../../../expressions/public';
import { prepareLogTable, Dimension } from '../../../visualizations/public';
import { TableVisData, TableVisConfig } from './types';
import { VIS_TYPE_TABLE } from '../common';
import { tableVisResponseHandler } from './utils';

View file

@ -10,8 +10,8 @@ import React, { lazy } from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { CoreStart } from 'kibana/public';
import { VisualizationContainer } from '../../visualizations/public';
import { ExpressionRenderDefinition } from '../../expressions/common/expression_renderers';
import { VisualizationContainer } from '../../../visualizations/public';
import { ExpressionRenderDefinition } from '../../../expressions/common/expression_renderers';
import { TableVisRenderValue } from './table_vis_fn';
const TableVisualizationComponent = lazy(() => import('./components/table_visualization'));

View file

@ -8,8 +8,8 @@
import { i18n } from '@kbn/i18n';
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 { TableVisParams, VIS_TYPE_TABLE } from '../common';
import { TableOptions } from './components/table_vis_options_lazy';
import { toExpressionAst } from './to_ast';

View file

@ -9,7 +9,7 @@
import { Vis } from 'src/plugins/visualizations/public';
import { toExpressionAst } from './to_ast';
import { AggTypes, TableVisParams } from '../common';
import { buildExpressionFunction } from '../../expressions/public';
import { buildExpressionFunction } from '../../../expressions/public';
const mockSchemas = {
metric: [{ accessor: 1, format: { id: 'number' }, params: {}, label: 'Count', aggType: 'count' }],
@ -32,11 +32,11 @@ const mockTableExpression = {
toAst: jest.fn(),
};
jest.mock('../../visualizations/public', () => ({
jest.mock('../../../visualizations/public', () => ({
getVisSchemas: () => mockSchemas,
}));
jest.mock('../../expressions/public', () => ({
jest.mock('../../../expressions/public', () => ({
buildExpression: jest.fn(() => mockTableExpression),
buildExpressionFunction: jest.fn(() => mockTableExpressionFunction),
}));

View file

@ -9,9 +9,9 @@
import {
EsaggsExpressionFunctionDefinition,
IndexPatternLoadExpressionFunctionDefinition,
} from '../../data/public';
import { buildExpression, buildExpressionFunction } from '../../expressions/public';
import { getVisSchemas, SchemaConfig, VisToExpressionAst } from '../../visualizations/public';
} from '../../../data/public';
import { buildExpression, buildExpressionFunction } from '../../../expressions/public';
import { getVisSchemas, SchemaConfig, VisToExpressionAst } from '../../../visualizations/public';
import { TableVisParams } from '../common';
import { TableExpressionFunctionDefinition } from './table_vis_fn';

View file

@ -7,7 +7,7 @@
*/
import { getStats } from './get_stats';
import type { SavedObjectsClientContract } from '../../../../core/server';
import type { SavedObjectsClientContract } from '../../../../../core/server';
const mockVisualizations = {
saved_objects: [

View file

@ -12,8 +12,8 @@ import type {
ISavedObjectsRepository,
SavedObjectsClientContract,
SavedObjectsFindResult,
} from '../../../../core/server';
import type { SavedVisState } from '../../../visualizations/common';
} from '../../../../../core/server';
import type { SavedVisState } from '../../../../visualizations/common';
export interface VisTypeTableUsage {
/**

View file

@ -9,7 +9,7 @@
import {
createUsageCollectionSetupMock,
createCollectorFetchContextMock,
} from '../../../usage_collection/server/mocks';
} from '../../../../usage_collection/server/mocks';
import { registerVisTypeTableUsageCollector } from './register_usage_collector';
import { getStats } from './get_stats';

View file

@ -7,7 +7,7 @@
*/
import { getStats, VisTypeTableUsage } from './get_stats';
import type { UsageCollectionSetup } from '../../../usage_collection/server';
import type { UsageCollectionSetup } from '../../../../usage_collection/server';
export function registerVisTypeTableUsageCollector(collectorSet: UsageCollectionSetup) {
const collector = collectorSet.makeUsageCollector<VisTypeTableUsage | undefined>({

View file

@ -0,0 +1,28 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*",
"*.ts"
],
"references": [
{ "path": "../../../core/tsconfig.json" },
{ "path": "../../data/tsconfig.json" },
{ "path": "../../visualizations/tsconfig.json" },
{ "path": "../../share/tsconfig.json" },
{ "path": "../../usage_collection/tsconfig.json" },
{ "path": "../../expressions/tsconfig.json" },
{ "path": "../../kibana_utils/tsconfig.json" },
{ "path": "../../kibana_legacy/tsconfig.json" },
{ "path": "../../kibana_react/tsconfig.json" },
{ "path": "../../vis_default_editor/tsconfig.json" },
{ "path": "../../field_formats/tsconfig.json" }
]
}

View file

@ -8,11 +8,11 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/vis_type_timelion'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/vis_type_timelion',
rootDir: '../../../..',
roots: ['<rootDir>/src/plugins/vis_types/timelion'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/vis_types/timelion',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/vis_type_timelion/{common,public,server}/**/*.{js,ts,tsx}',
'<rootDir>/src/plugins/vis_types/timelion/{common,public,server}/**/*.{js,ts,tsx}',
],
};

View file

@ -11,7 +11,7 @@ import { EuiFormLabel } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { monaco } from '@kbn/monaco';
import { CodeEditor, useKibana } from '../../../kibana_react/public';
import { CodeEditor, useKibana } from '../../../../kibana_react/public';
import { suggest, getSuggestion } from './timelion_expression_input_helpers';
import { getArgValueSuggestions } from '../helpers/arg_value_suggestions';
import { ITimelionFunction, TimelionFunctionArgs } from '../../common/types';

View file

@ -10,9 +10,9 @@ import React, { useMemo, useCallback } from 'react';
import { EuiFormRow, EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { search } from '../../../data/public';
import { search } from '../../../../data/public';
const { isValidEsInterval } = search.aggs;
import { useValidation } from '../../../vis_default_editor/public';
import { useValidation } from '../../../../vis_default_editor/public';
const intervalOptions = [
{

View file

@ -19,8 +19,8 @@ import {
} from '@elastic/charts';
import { EuiTitle } from '@elastic/eui';
import { useKibana } from '../../../kibana_react/public';
import { useActiveCursor } from '../../../charts/public';
import { useKibana } from '../../../../kibana_react/public';
import { useActiveCursor } from '../../../../charts/public';
import { AreaSeriesComponent, BarSeriesComponent } from './series';
@ -36,9 +36,9 @@ import { colors } from '../helpers/chart_constants';
import { getCharts } from '../helpers/plugin_services';
import type { Sheet } from '../helpers/timelion_request_handler';
import type { IInterpreterRenderHandlers } from '../../../expressions';
import type { IInterpreterRenderHandlers } from '../../../../expressions';
import type { TimelionVisDependencies } from '../plugin';
import type { RangeFilterParams } from '../../../data/public';
import type { RangeFilterParams } from '../../../../data/public';
import type { Series } from '../helpers/timelion_request_handler';
import './timelion_vis.scss';

View file

@ -10,7 +10,7 @@ import { get } from 'lodash';
import { getIndexPatterns } from './plugin_services';
import { TimelionFunctionArgs } from '../../common/types';
import { TimelionExpressionFunction, TimelionExpressionArgument } from '../../common/parser';
import { indexPatterns as indexPatternsUtils, KBN_FIELD_TYPES } from '../../../data/public';
import { indexPatterns as indexPatternsUtils, KBN_FIELD_TYPES } from '../../../../data/public';
export function getArgValueSuggestions() {
const indexPatterns = getIndexPatterns();

View file

@ -8,7 +8,7 @@
import type { IndexPatternsContract, ISearchStart } from 'src/plugins/data/public';
import type { ChartsPluginStart } from 'src/plugins/charts/public';
import { createGetterSetter } from '../../../kibana_utils/public';
import { createGetterSetter } from '../../../../kibana_utils/public';
export const [getIndexPatterns, setIndexPatterns] = createGetterSetter<IndexPatternsContract>(
'IndexPatterns'

Some files were not shown because too many files have changed in this diff Show more