mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Visualizations] Removes the export * from the plugins index files. (#154019)
## Summary Closes https://github.com/elastic/kibana/issues/110891 Removes the export * from our plugins index files.
This commit is contained in:
parent
3f1ea165da
commit
80c7eb4670
77 changed files with 110 additions and 133 deletions
|
@ -6,7 +6,4 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
// TODO: https://github.com/elastic/kibana/issues/110891
|
||||
/* eslint-disable @kbn/eslint/no_export_all */
|
||||
|
||||
export * from './constants';
|
||||
export { EXPRESSION_NAME, ScaleOptions, Orientation } from './constants';
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
// TODO: https://github.com/elastic/kibana/issues/110891
|
||||
/* eslint-disable @kbn/eslint/no_export_all */
|
||||
|
||||
import { PluginInitializerContext } from '@kbn/core/public';
|
||||
import { DefaultEditorController } from './default_editor_controller';
|
||||
import { VisDefaultEditorPlugin } from './plugin';
|
||||
|
@ -16,11 +13,26 @@ import { VisDefaultEditorPlugin } from './plugin';
|
|||
export { DefaultEditorController };
|
||||
export { useValidation } from './components/controls/utils';
|
||||
export { PalettePicker } from './components/controls/palette_picker';
|
||||
export * from './components/options';
|
||||
export {
|
||||
SwitchOption,
|
||||
TextInputOption,
|
||||
RangeOption,
|
||||
SelectOption,
|
||||
ColorSchemaOptions,
|
||||
PercentageModeOption,
|
||||
NumberInputOption,
|
||||
RequiredNumberInputOption,
|
||||
LongLegendOptions,
|
||||
LegendSizeSettings,
|
||||
ColorRanges,
|
||||
BasicOptions,
|
||||
type SetColorRangeValue,
|
||||
type SetColorSchemaOptionsValue,
|
||||
} from './components/options';
|
||||
export type { RangeValues } from './components/controls/ranges';
|
||||
export { RangesParamEditor } from './components/controls/ranges';
|
||||
export * from './editor_size';
|
||||
export * from './utils';
|
||||
export { groupAndSortBy } from './utils';
|
||||
export { DefaultEditorSize } from './editor_size';
|
||||
|
||||
export const plugin = (context: PluginInitializerContext) => {
|
||||
return new VisDefaultEditorPlugin();
|
||||
|
|
|
@ -6,14 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
// TODO: https://github.com/elastic/kibana/issues/110891
|
||||
/* eslint-disable @kbn/eslint/no_export_all */
|
||||
|
||||
import { PluginInitializerContext } from '@kbn/core/public';
|
||||
import { VisTypeVislibPlugin as Plugin } from './plugin';
|
||||
|
||||
export function plugin(initializerContext: PluginInitializerContext) {
|
||||
return new Plugin(initializerContext);
|
||||
}
|
||||
|
||||
export * from './types';
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
import { Column } from '@kbn/visualizations-plugin/common/convert_to_lens';
|
||||
import { getConfiguration } from '.';
|
||||
import { Layer } from '..';
|
||||
import { ChartType } from '../..';
|
||||
import { ChartType } from '../../../common';
|
||||
import { sampleAreaVis } from '../../sample_vis.test.mocks';
|
||||
import { ChartMode, InterpolationMode } from '../../types';
|
||||
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
// TODO: https://github.com/elastic/kibana/issues/110891
|
||||
/* eslint-disable @kbn/eslint/no_export_all */
|
||||
|
||||
import { VisTypeXyPlugin as Plugin } from './plugin';
|
||||
|
||||
export type { VisTypeXyPluginSetup } from './plugin';
|
||||
|
@ -30,9 +27,6 @@ export { TruncateLabelsOption } from './editor/components/common/truncate_labels
|
|||
export { getPositions } from './editor/positions';
|
||||
export { getScaleTypes } from './editor/scale_types';
|
||||
|
||||
// Export common types
|
||||
export * from '../common';
|
||||
|
||||
export function plugin() {
|
||||
return new Plugin();
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ import type { Direction } from '@elastic/eui';
|
|||
import type { PaletteOutput, CustomPaletteParams } from '@kbn/coloring';
|
||||
import type { CustomPaletteState } from '@kbn/charts-plugin/common';
|
||||
import type { ExpressionFunctionDefinition, DatatableColumn } from '@kbn/expressions-plugin/common';
|
||||
import type { SortingHint } from '../..';
|
||||
import type { SortingHint } from '../../types';
|
||||
import { CollapseFunction } from '../collapse';
|
||||
|
||||
export type LensGridDirection = 'none' | Direction;
|
||||
|
|
|
@ -4,12 +4,5 @@
|
|||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO: https://github.com/elastic/kibana/issues/110891
|
||||
/* eslint-disable @kbn/eslint/no_export_all */
|
||||
|
||||
export * from './constants';
|
||||
export * from './types';
|
||||
|
||||
// Note: do not import the expression folder here or the page bundle will be bloated with all
|
||||
// the package
|
||||
export { DOCUMENT_FIELD_NAME } from './constants';
|
||||
export type { PersistableFilter, LegacyMetricState } from './types';
|
||||
|
|
|
@ -25,7 +25,7 @@ export interface DateRange {
|
|||
toDate: string;
|
||||
}
|
||||
|
||||
export interface PersistableFilterMeta extends FilterMeta {
|
||||
interface PersistableFilterMeta extends FilterMeta {
|
||||
indexRefName?: string;
|
||||
}
|
||||
|
||||
|
@ -40,10 +40,10 @@ export type LayerType = typeof layerTypes[keyof typeof layerTypes];
|
|||
export type ValueLabelConfig = 'hide' | 'show';
|
||||
|
||||
export type PieChartType = $Values<typeof PieChartTypes>;
|
||||
export type CategoryDisplayType = $Values<typeof CategoryDisplay>;
|
||||
export type NumberDisplayType = $Values<typeof NumberDisplay>;
|
||||
type CategoryDisplayType = $Values<typeof CategoryDisplay>;
|
||||
type NumberDisplayType = $Values<typeof NumberDisplay>;
|
||||
|
||||
export type LegendDisplayType = $Values<typeof LegendDisplay>;
|
||||
type LegendDisplayType = $Values<typeof LegendDisplay>;
|
||||
|
||||
export enum EmptySizeRatios {
|
||||
SMALL = 0.3,
|
||||
|
|
|
@ -34,7 +34,7 @@ import {
|
|||
} from '../state_management';
|
||||
import { SaveModalContainer, runSaveLensVisualization } from './save_modal_container';
|
||||
import { LensInspector } from '../lens_inspector_service';
|
||||
import { getEditPath } from '../../common';
|
||||
import { getEditPath } from '../../common/constants';
|
||||
import { isLensEqual } from './lens_document_equality';
|
||||
import {
|
||||
type IndexPatternServiceAPI,
|
||||
|
|
|
@ -11,7 +11,7 @@ import { tableHasFormulas } from '@kbn/data-plugin/common';
|
|||
import { downloadMultipleAs, ShareContext, ShareMenuProvider } from '@kbn/share-plugin/public';
|
||||
import { exporters } from '@kbn/data-plugin/public';
|
||||
import { IUiSettingsClient } from '@kbn/core-ui-settings-browser';
|
||||
import { FormatFactory } from '../../../common';
|
||||
import { FormatFactory } from '../../../common/types';
|
||||
import { DownloadPanelContent } from './csv_download_panel_content_lazy';
|
||||
import { TableInspectorAdapter } from '../../editor_frame_service/types';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import { getEsQueryConfig } from '@kbn/data-plugin/public';
|
|||
import type { DataView } from '@kbn/data-views-plugin/public';
|
||||
import { useKibana } from '@kbn/kibana-react-plugin/public';
|
||||
import { DataViewPickerProps } from '@kbn/unified-search-plugin/public';
|
||||
import { ENABLE_SQL } from '../../common';
|
||||
import { ENABLE_SQL } from '../../common/constants';
|
||||
import { LensAppServices, LensTopNavActions, LensTopNavMenuProps } from './types';
|
||||
import { toggleSettingsMenuOpen } from './settings_menu';
|
||||
import {
|
||||
|
|
|
@ -35,7 +35,7 @@ import { App } from './app';
|
|||
import { EditorFrameStart, LensTopNavMenuEntryGenerator, VisualizeEditorContext } from '../types';
|
||||
import { addHelpMenuToAppChrome } from '../help_menu_util';
|
||||
import { LensPluginStartDependencies } from '../plugin';
|
||||
import { LENS_EMBEDDABLE_TYPE, LENS_EDIT_BY_VALUE, APP_ID } from '../../common';
|
||||
import { LENS_EMBEDDABLE_TYPE, LENS_EDIT_BY_VALUE, APP_ID } from '../../common/constants';
|
||||
import {
|
||||
LensEmbeddableInput,
|
||||
LensByReferenceInput,
|
||||
|
|
|
@ -15,7 +15,7 @@ import type { LensAppProps, LensAppServices } from './types';
|
|||
import type { SaveProps } from './app';
|
||||
import { Document, checkForDuplicateTitle } from '../persistence';
|
||||
import type { LensByReferenceInput, LensEmbeddableInput } from '../embeddable';
|
||||
import { APP_ID, getFullPath, LENS_EMBEDDABLE_TYPE } from '../../common';
|
||||
import { APP_ID, getFullPath, LENS_EMBEDDABLE_TYPE } from '../../common/constants';
|
||||
import type { LensAppState } from '../state_management';
|
||||
import { getPersisted } from '../state_management/init_middleware/load_initial';
|
||||
import { VisualizeEditorContext } from '../types';
|
||||
|
|
|
@ -14,7 +14,7 @@ import type { LensAppServices } from './types';
|
|||
import type { Document } from '../persistence/saved_object_store';
|
||||
import type { DatasourceMap, VisualizationMap } from '../types';
|
||||
import { extractReferencesFromState, getResolvedDateRange } from '../utils';
|
||||
import { getEditPath } from '../../common';
|
||||
import { getEditPath } from '../../common/constants';
|
||||
|
||||
interface ShareableConfiguration
|
||||
extends Pick<
|
||||
|
|
|
@ -30,7 +30,7 @@ import { indexPatternFieldEditorPluginMock } from '@kbn/data-view-field-editor-p
|
|||
import { getFieldByNameFactory } from './pure_helpers';
|
||||
import { uiActionsPluginMock } from '@kbn/ui-actions-plugin/public/mocks';
|
||||
import { TermsIndexPatternColumn } from './operations';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../common/constants';
|
||||
import { createIndexPatternServiceMock } from '../../mocks/data_views_service_mock';
|
||||
import { createMockFramePublicAPI } from '../../mocks';
|
||||
import { DataViewsState } from '../../state_management';
|
||||
|
|
|
@ -54,8 +54,8 @@ import { Filtering } from './filtering';
|
|||
import { ReducedTimeRange } from './reduced_time_range';
|
||||
import { AdvancedOptions } from './advanced_options';
|
||||
import { TimeShift } from './time_shift';
|
||||
import type { LayerType } from '../../../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../common';
|
||||
import type { LayerType } from '../../../../common/types';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../common/constants';
|
||||
import {
|
||||
quickFunctionsName,
|
||||
staticValueOperationName,
|
||||
|
|
|
@ -17,7 +17,7 @@ import { DatasourceDimensionTriggerProps, DatasourceDimensionEditorProps } from
|
|||
import { GenericIndexPatternColumn } from '../form_based';
|
||||
import { FormBasedPrivateState } from '../types';
|
||||
import { DimensionEditor } from './dimension_editor';
|
||||
import { DateRange } from '../../../../common';
|
||||
import { DateRange } from '../../../../common/types';
|
||||
import { getOperationSupportMatrix } from './operation_support';
|
||||
|
||||
export type FormBasedDimensionTriggerProps =
|
||||
|
|
|
@ -15,7 +15,7 @@ import type { DataViewsPublicPluginStart } from '@kbn/data-views-plugin/public';
|
|||
import type { FieldFormatsStart } from '@kbn/field-formats-plugin/public';
|
||||
import { IStorageWrapper } from '@kbn/kibana-utils-plugin/public';
|
||||
import type { DataPublicPluginStart } from '@kbn/data-plugin/public';
|
||||
import type { DateRange } from '../../../../common';
|
||||
import type { DateRange } from '../../../../common/types';
|
||||
import type { OperationSupportMatrix } from './operation_support';
|
||||
import type { GenericIndexPatternColumn, OperationType } from '../form_based';
|
||||
import {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../common/constants';
|
||||
import type { IndexPatternField } from '../../types';
|
||||
|
||||
const customLabel = i18n.translate('xpack.lens.indexPattern.records', {
|
||||
|
|
|
@ -25,7 +25,7 @@ import { dataViewPluginMocks } from '@kbn/data-views-plugin/public/mocks';
|
|||
import { DataView, DataViewField } from '@kbn/data-views-plugin/common';
|
||||
import { loadFieldStats } from '@kbn/unified-field-list-plugin/public/services/field_stats';
|
||||
import { FieldIcon } from '@kbn/unified-field-list-plugin/public';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../common/constants';
|
||||
import { FieldStats, FieldVisualizeButton } from '@kbn/unified-field-list-plugin/public';
|
||||
|
||||
jest.mock('@kbn/unified-field-list-plugin/public/services/field_stats', () => ({
|
||||
|
|
|
@ -27,10 +27,9 @@ import {
|
|||
import { DragDrop } from '@kbn/dom-drag-drop';
|
||||
import { generateFilters, getEsQueryConfig } from '@kbn/data-plugin/public';
|
||||
import { DatasourceDataPanelProps } from '../../types';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../common';
|
||||
import type { IndexPattern, IndexPatternField } from '../../types';
|
||||
import type { LensAppServices } from '../../app_plugin/types';
|
||||
import { APP_ID } from '../../../common/constants';
|
||||
import { APP_ID, DOCUMENT_FIELD_NAME } from '../../../common/constants';
|
||||
import { combineQueryAndFilters } from '../../app_plugin/show_underlying_data';
|
||||
|
||||
export interface FieldItemProps {
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
} from './utils';
|
||||
import { OperationDefinition } from '..';
|
||||
import { getFormatFromPreviousColumn, getFilter } from '../helpers';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../../../common/constants';
|
||||
|
||||
const ofName = buildLabelFunction((name?: string) => {
|
||||
return i18n.translate('xpack.lens.indexPattern.cumulativeSumOf', {
|
||||
|
|
|
@ -10,7 +10,7 @@ import type { AstFunction } from '@kbn/interpreter';
|
|||
import memoizeOne from 'memoize-one';
|
||||
import { LayerTypes } from '@kbn/expression-xy-plugin/public';
|
||||
import type { IndexPattern } from '../../../../../types';
|
||||
import { LayerType } from '../../../../../../common';
|
||||
import { LayerType } from '../../../../../../common/types';
|
||||
import type { TimeScaleUnit } from '../../../../../../common/expressions';
|
||||
import type { FormBasedLayer } from '../../../types';
|
||||
import { adjustTimeScaleLabelSuffix } from '../../time_scale_utils';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { DataView } from '@kbn/data-views-plugin/public';
|
||||
import { Query } from '@kbn/es-query';
|
||||
import type { DateRange } from '../../../../../../common';
|
||||
import type { DateRange } from '../../../../../../common/types';
|
||||
import { convertDataViewIntoLensIndexPattern } from '../../../../../data_views_service/loader';
|
||||
import type { IndexPattern } from '../../../../../types';
|
||||
import type { PersistedIndexPatternLayer } from '../../../types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { isObject } from 'lodash';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../../../common/constants';
|
||||
import {
|
||||
FieldBasedIndexPatternColumn,
|
||||
GenericOperationDefinition,
|
||||
|
|
|
@ -64,7 +64,7 @@ import type {
|
|||
ReferenceBasedIndexPatternColumn,
|
||||
} from './column_types';
|
||||
import { DataViewDragDropOperation, FormBasedLayer } from '../../types';
|
||||
import { DateRange, LayerType } from '../../../../../common';
|
||||
import { DateRange, LayerType } from '../../../../../common/types';
|
||||
import { rangeOperation } from './ranges';
|
||||
import { FormBasedDimensionEditorProps, OperationSupportMatrix } from '../../dimension_panel';
|
||||
import type { OriginalColumn } from '../../to_expression';
|
||||
|
|
|
@ -25,7 +25,7 @@ import {
|
|||
import { uniq } from 'lodash';
|
||||
import { AggFunctionsMapping } from '@kbn/data-plugin/public';
|
||||
import { buildExpressionFunction } from '@kbn/expressions-plugin/public';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../../../../../common/constants';
|
||||
import { insertOrReplaceColumn, updateColumnParam, updateDefaultLabels } from '../../layer_helpers';
|
||||
import type { DataType, OperationMetadata } from '../../../../../types';
|
||||
import { OperationDefinition } from '..';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { CoreStart } from '@kbn/core/public';
|
|||
import type { Query } from '@kbn/es-query';
|
||||
import memoizeOne from 'memoize-one';
|
||||
import type { DataPublicPluginStart } from '@kbn/data-plugin/public';
|
||||
import type { DateRange } from '../../../../common';
|
||||
import type { DateRange } from '../../../../common/types';
|
||||
import type {
|
||||
DatasourceFixAction,
|
||||
FrameDatasourceAPI,
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { LayerTypes } from '@kbn/expression-xy-plugin/public';
|
||||
import type { LayerType } from '../../../../common';
|
||||
import type { LayerType } from '../../../../common/types';
|
||||
import type { FramePublicAPI, Visualization } from '../../../types';
|
||||
|
||||
interface AddLayerButtonProps {
|
||||
|
|
|
@ -25,7 +25,7 @@ import { uiActionsPluginMock } from '@kbn/ui-actions-plugin/public/mocks';
|
|||
import { generateId } from '../../../id_generator';
|
||||
import { mountWithProvider } from '../../../mocks';
|
||||
import { LayerTypes } from '@kbn/expression-xy-plugin/public';
|
||||
import type { LayerType } from '../../../../common';
|
||||
import type { LayerType } from '../../../../common/types';
|
||||
import { ReactWrapper } from 'enzyme';
|
||||
import { addLayer } from '../../../state_management';
|
||||
import { AddLayerButton } from './add_layer';
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
UPDATE_FILTER_REFERENCES_ACTION,
|
||||
UPDATE_FILTER_REFERENCES_TRIGGER,
|
||||
} from '@kbn/unified-search-plugin/public';
|
||||
import { LayerType } from '../../../../common';
|
||||
import { LayerType } from '../../../../common/types';
|
||||
import { changeIndexPattern, removeDimension } from '../../../state_management/lens_slice';
|
||||
import { Visualization } from '../../../types';
|
||||
import { LayerPanel } from './layer_panel';
|
||||
|
|
|
@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import { css } from '@emotion/react';
|
||||
import { euiThemeVars } from '@kbn/ui-theme';
|
||||
import { DragDropIdentifier, ReorderProvider, DropType } from '@kbn/dom-drag-drop';
|
||||
import { LayerType } from '../../../../common';
|
||||
import { LayerType } from '../../../../common/types';
|
||||
import { LayerActions } from './layer_actions';
|
||||
import { IndexPatternServiceAPI } from '../../../data_views_service/service';
|
||||
import { NativeRenderer } from '../../../native_renderer';
|
||||
|
|
|
@ -22,7 +22,7 @@ import type {
|
|||
Suggestion,
|
||||
DatasourceLayers,
|
||||
} from '../../types';
|
||||
import type { LayerType } from '../../../common';
|
||||
import type { LayerType } from '../../../common/types';
|
||||
import { getLayerType } from './config_panel/add_layer';
|
||||
import {
|
||||
LensDispatch,
|
||||
|
|
|
@ -102,7 +102,7 @@ import {
|
|||
UserMessagesDisplayLocationId,
|
||||
} from '../types';
|
||||
|
||||
import { getEditPath, DOC_TYPE } from '../../common';
|
||||
import { getEditPath, DOC_TYPE } from '../../common/constants';
|
||||
import { LensAttributeService } from '../lens_attribute_service';
|
||||
import type { TableInspectorAdapter } from '../editor_frame_service/types';
|
||||
import { getLensInspectorService, LensInspector } from '../lens_inspector_service';
|
||||
|
|
|
@ -24,7 +24,7 @@ import type { LensByReferenceInput, LensByValueInput } from './embeddable';
|
|||
import type { Document } from '../persistence';
|
||||
import type { FormBasedPersistedState } from '../datasources/form_based/types';
|
||||
import type { XYState } from '../visualizations/xy/types';
|
||||
import type { PieVisualizationState, LegacyMetricState } from '../../common';
|
||||
import type { PieVisualizationState, LegacyMetricState } from '../../common/types';
|
||||
import type { DatatableVisualizationState } from '../visualizations/datatable/visualization';
|
||||
import type { MetricVisualizationState } from '../visualizations/metric/visualization';
|
||||
import type { HeatmapVisualizationState } from '../visualizations/heatmap/types';
|
||||
|
|
|
@ -36,7 +36,7 @@ import type {
|
|||
LensSavedObjectAttributes,
|
||||
LensUnwrapMetaInfo,
|
||||
} from '../embeddable/embeddable';
|
||||
import { DOC_TYPE } from '../../common';
|
||||
import { DOC_TYPE } from '../../common/constants';
|
||||
import { LensAppServices } from '../app_plugin/types';
|
||||
import { mockDataPlugin } from './data_plugin_mock';
|
||||
import { getLensInspectorService } from '../lens_inspector_service';
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
ResolvedSimpleSavedObject,
|
||||
} from '@kbn/core/public';
|
||||
import { DataViewSpec } from '@kbn/data-views-plugin/public';
|
||||
import { DOC_TYPE } from '../../common';
|
||||
import { DOC_TYPE } from '../../common/constants';
|
||||
import { LensSavedObjectAttributes } from '../async_services';
|
||||
|
||||
export interface Document {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import type { OverlayStart, SavedObjectsClientContract } from '@kbn/core/public';
|
||||
import { DOC_TYPE } from '../../../common';
|
||||
import { DOC_TYPE } from '../../../common/constants';
|
||||
import { SAVE_DUPLICATE_REJECTED } from './constants';
|
||||
import { findObjectByTitle } from './find_object_by_title';
|
||||
import { displayDuplicateTitleConfirmModal } from './display_duplicate_title_confirm_modal';
|
||||
|
|
|
@ -13,7 +13,7 @@ import type { MainHistoryLocationState } from '../../common/locator/locator';
|
|||
import type { Document } from '../persistence';
|
||||
|
||||
import type { TableInspectorAdapter } from '../editor_frame_service/types';
|
||||
import type { DateRange } from '../../common';
|
||||
import type { DateRange } from '../../common/types';
|
||||
import type { LensAppServices } from '../app_plugin/types';
|
||||
import type {
|
||||
DatasourceMap,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { DataViewsService } from '@kbn/data-views-plugin/public';
|
||||
import type { IEmbeddable } from '@kbn/embeddable-plugin/public';
|
||||
import { ActionExecutionContext } from '@kbn/ui-actions-plugin/public';
|
||||
import { DOC_TYPE } from '../../common';
|
||||
import { DOC_TYPE } from '../../common/constants';
|
||||
import { Embeddable } from '../embeddable';
|
||||
import { createOpenInDiscoverAction } from './open_in_discover_action';
|
||||
import type { DiscoverAppLocator } from './open_in_discover_helpers';
|
||||
|
|
|
@ -11,7 +11,7 @@ import type { DataViewsService } from '@kbn/data-views-plugin/public';
|
|||
import type { LocatorPublic } from '@kbn/share-plugin/public';
|
||||
import type { SerializableRecord } from '@kbn/utility-types';
|
||||
import type { Embeddable } from '../embeddable';
|
||||
import { DOC_TYPE } from '../../common';
|
||||
import { DOC_TYPE } from '../../common/constants';
|
||||
|
||||
interface DiscoverAppLocatorParams extends SerializableRecord {
|
||||
timeRange?: TimeRange;
|
||||
|
|
|
@ -45,7 +45,7 @@ import type {
|
|||
DragContextState,
|
||||
DropType,
|
||||
} from '@kbn/dom-drag-drop';
|
||||
import type { DateRange, LayerType, SortingHint } from '../common';
|
||||
import type { DateRange, LayerType, SortingHint } from '../common/types';
|
||||
import type {
|
||||
LensSortActionData,
|
||||
LensResizeActionData,
|
||||
|
|
|
@ -9,7 +9,7 @@ import React, { useContext, useEffect } from 'react';
|
|||
import { EuiDataGridCellValueElementProps, EuiLink } from '@elastic/eui';
|
||||
import type { IUiSettingsClient } from '@kbn/core/public';
|
||||
import classNames from 'classnames';
|
||||
import type { FormatFactory } from '../../../../common';
|
||||
import type { FormatFactory } from '../../../../common/types';
|
||||
import { getOriginalId } from '../../../../common/expressions/datatable/transpose_helpers';
|
||||
import type { ColumnConfig } from '../../../../common/expressions';
|
||||
import type { DataContextType } from './types';
|
||||
|
|
|
@ -18,7 +18,7 @@ import type {
|
|||
DatatableColumn,
|
||||
DatatableColumnMeta,
|
||||
} from '@kbn/expressions-plugin/common';
|
||||
import type { FormatFactory } from '../../../../common';
|
||||
import type { FormatFactory } from '../../../../common/types';
|
||||
import type { ColumnConfig } from '../../../../common/expressions';
|
||||
import { LensCellValueAction } from '../../../types';
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import { EmptyPlaceholder } from '@kbn/charts-plugin/public';
|
|||
import { ClickTriggerEvent } from '@kbn/charts-plugin/public';
|
||||
import { IconChartDatatable } from '@kbn/chart-icons';
|
||||
import type { LensTableRowContextMenuEvent } from '../../../types';
|
||||
import type { FormatFactory } from '../../../../common';
|
||||
import type { FormatFactory } from '../../../../common/types';
|
||||
import type { LensGridDirection } from '../../../../common/expressions';
|
||||
import { VisualizationContainer } from '../../../visualization_container';
|
||||
import { findMinMaxByColumnId } from '../../../shared_components';
|
||||
|
|
|
@ -21,7 +21,7 @@ import {
|
|||
LENS_TOGGLE_ACTION,
|
||||
LENS_EDIT_PAGESIZE_ACTION,
|
||||
} from './constants';
|
||||
import type { FormatFactory } from '../../../../common';
|
||||
import type { FormatFactory } from '../../../../common/types';
|
||||
import type { DatatableProps, LensGridDirection } from '../../../../common/expressions';
|
||||
|
||||
export interface LensSortActionData {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
import { createMockExecutionContext } from '@kbn/expressions-plugin/common/mocks';
|
||||
import type { DatatableProps } from '../../../common/expressions';
|
||||
import type { FormatFactory } from '../../../common';
|
||||
import type { FormatFactory } from '../../../common/types';
|
||||
import { getDatatable } from '../../../common/expressions';
|
||||
import { getColumnCellValueActions } from './expression';
|
||||
import type { Datatable } from '@kbn/expressions-plugin/common';
|
||||
|
|
|
@ -26,7 +26,7 @@ import type {
|
|||
ILensInterpreterRenderHandlers,
|
||||
LensCellValueAction,
|
||||
} from '../../types';
|
||||
import type { FormatFactory } from '../../../common';
|
||||
import type { FormatFactory } from '../../../common/types';
|
||||
import type { DatatableProps } from '../../../common/expressions';
|
||||
|
||||
async function getColumnsFilterable(table: Datatable, handlers: IInterpreterRenderHandlers) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import type { ChartsPluginSetup } from '@kbn/charts-plugin/public';
|
|||
import type { ExpressionsSetup } from '@kbn/expressions-plugin/public';
|
||||
import type { DataPublicPluginStart } from '@kbn/data-plugin/public';
|
||||
import type { EditorFrameSetup } from '../../types';
|
||||
import type { FormatFactory } from '../../../common';
|
||||
import type { FormatFactory } from '../../../common/types';
|
||||
|
||||
interface DatatableVisualizationPluginStartPlugins {
|
||||
data: DataPublicPluginStart;
|
||||
|
|
|
@ -27,7 +27,7 @@ import type {
|
|||
} from '../../types';
|
||||
import { TableDimensionDataExtraEditor, TableDimensionEditor } from './components/dimension_editor';
|
||||
import { TableDimensionEditorAdditionalSection } from './components/dimension_editor_addtional_section';
|
||||
import type { LayerType } from '../../../common';
|
||||
import type { LayerType } from '../../../common/types';
|
||||
import { getDefaultSummaryLabel } from '../../../common/expressions/datatable/summary';
|
||||
import type {
|
||||
ColumnState,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import type { GaugeState as GaugeStateOriginal } from '@kbn/expression-gauge-plugin/common';
|
||||
import { LayerType } from '../../../common';
|
||||
import { LayerType } from '../../../common/types';
|
||||
|
||||
export const LENS_GAUGE_ID = 'lnsGauge';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { PaletteOutput, CustomPaletteParams } from '@kbn/coloring';
|
||||
import type { HeatmapArguments } from '@kbn/expression-heatmap-plugin/common';
|
||||
import type { LayerType } from '../../../common';
|
||||
import type { LayerType } from '../../../common/types';
|
||||
export type ChartShapes = 'heatmap';
|
||||
|
||||
export type HeatmapLayerState = Omit<HeatmapArguments, 'palette'> & {
|
||||
|
|
|
@ -17,7 +17,7 @@ import { euiLightVars, euiThemeVars } from '@kbn/ui-theme';
|
|||
import { KibanaThemeProvider } from '@kbn/kibana-react-plugin/public';
|
||||
import { IconChartMetric } from '@kbn/chart-icons';
|
||||
import { CollapseFunction } from '../../../common/expressions';
|
||||
import type { LayerType } from '../../../common';
|
||||
import type { LayerType } from '../../../common/types';
|
||||
import { layerTypes } from '../../../common/layer_types';
|
||||
import type { FormBasedPersistedState } from '../../datasources/form_based/types';
|
||||
import { getSuggestions } from './suggestions';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { EuiFormRow, EuiSwitch } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { PieChartTypes } from '../../../common';
|
||||
import { PieChartTypes } from '../../../common/constants';
|
||||
import { PieVisualizationState } from '../..';
|
||||
import { VisualizationLayerSettingsProps } from '../../types';
|
||||
|
||||
|
|
|
@ -16,12 +16,8 @@ import {
|
|||
IconChartMosaic,
|
||||
IconChartWaffle,
|
||||
} from '@kbn/chart-icons';
|
||||
import {
|
||||
CategoryDisplay,
|
||||
NumberDisplay,
|
||||
SharedPieLayerState,
|
||||
EmptySizeRatios,
|
||||
} from '../../../common';
|
||||
import { SharedPieLayerState, EmptySizeRatios } from '../../../common/types';
|
||||
import { CategoryDisplay, NumberDisplay } from '../../../common/constants';
|
||||
import type { PieChartType } from '../../../common/types';
|
||||
|
||||
interface PartitionChartMeta {
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
import type { Datatable } from '@kbn/expressions-plugin/public';
|
||||
|
||||
import { checkTableForContainsSmallValues, shouldShowValuesInLegend } from './render_helpers';
|
||||
import { PieLayerState, PieChartTypes } from '../../../common';
|
||||
import { PieLayerState } from '../../../common/types';
|
||||
import { PieChartTypes } from '../../../common/constants';
|
||||
|
||||
describe('render helpers', () => {
|
||||
describe('#checkTableForContainsSmallValues', () => {
|
||||
|
|
|
@ -8,14 +8,13 @@
|
|||
import type { PaletteOutput } from '@kbn/coloring';
|
||||
import { suggestions } from './suggestions';
|
||||
import type { DataType, SuggestionRequest } from '../../types';
|
||||
import type { PieLayerState, PieVisualizationState } from '../../../common/types';
|
||||
import {
|
||||
CategoryDisplay,
|
||||
LegendDisplay,
|
||||
NumberDisplay,
|
||||
PieChartTypes,
|
||||
PieLayerState,
|
||||
PieVisualizationState,
|
||||
} from '../../../common';
|
||||
} from '../../../common/constants';
|
||||
import { layerTypes } from '../../../common/layer_types';
|
||||
|
||||
describe('suggestions', () => {
|
||||
|
|
|
@ -12,13 +12,13 @@ import type {
|
|||
TableSuggestionColumn,
|
||||
VisualizationSuggestion,
|
||||
} from '../../types';
|
||||
import { PieVisualizationState } from '../../../common/types';
|
||||
import {
|
||||
CategoryDisplay,
|
||||
LegendDisplay,
|
||||
NumberDisplay,
|
||||
PieChartTypes,
|
||||
PieVisualizationState,
|
||||
} from '../../../common';
|
||||
} from '../../../common/constants';
|
||||
import { isPartitionShape } from '../../../common/visualizations';
|
||||
import type { PieChartType } from '../../../common/types';
|
||||
import { PartitionChartsMeta } from './partition_charts_meta';
|
||||
|
|
|
@ -26,15 +26,13 @@ import type { CollapseExpressionFunction } from '../../../common/expressions';
|
|||
import type { Operation, DatasourcePublicAPI, DatasourceLayers } from '../../types';
|
||||
import { DEFAULT_PERCENT_DECIMALS } from './constants';
|
||||
import { shouldShowValuesInLegend } from './render_helpers';
|
||||
import { PieLayerState, PieVisualizationState, EmptySizeRatios } from '../../../common/types';
|
||||
import {
|
||||
CategoryDisplay,
|
||||
LegendDisplay,
|
||||
NumberDisplay,
|
||||
PieChartTypes,
|
||||
PieLayerState,
|
||||
PieVisualizationState,
|
||||
EmptySizeRatios,
|
||||
LegendDisplay,
|
||||
} from '../../../common';
|
||||
} from '../../../common/constants';
|
||||
import { getDefaultVisualValuesForLayer } from '../../shared_components/datasource_default_values';
|
||||
import { isCollapsed } from './visualization';
|
||||
|
||||
|
|
|
@ -24,12 +24,8 @@ import type { PaletteRegistry } from '@kbn/coloring';
|
|||
import { LegendSize } from '@kbn/visualizations-plugin/public';
|
||||
import { DEFAULT_PERCENT_DECIMALS } from './constants';
|
||||
import { PartitionChartsMeta } from './partition_charts_meta';
|
||||
import {
|
||||
LegendDisplay,
|
||||
PieLayerState,
|
||||
PieVisualizationState,
|
||||
SharedPieLayerState,
|
||||
} from '../../../common';
|
||||
import { PieLayerState, PieVisualizationState, SharedPieLayerState } from '../../../common/types';
|
||||
import { LegendDisplay } from '../../../common/constants';
|
||||
import { VisualizationDimensionEditorProps, VisualizationToolbarProps } from '../../types';
|
||||
import {
|
||||
ToolbarPopover,
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
*/
|
||||
|
||||
import { getPieVisualization } from './visualization';
|
||||
import { PieVisualizationState } from '../../../common/types';
|
||||
import {
|
||||
PieVisualizationState,
|
||||
PieChartTypes,
|
||||
CategoryDisplay,
|
||||
NumberDisplay,
|
||||
LegendDisplay,
|
||||
} from '../../../common';
|
||||
NumberDisplay,
|
||||
PieChartTypes,
|
||||
} from '../../../common/constants';
|
||||
import { LayerTypes } from '@kbn/expression-xy-plugin/public';
|
||||
import { chartPluginMock } from '@kbn/charts-plugin/public/mocks';
|
||||
import { createMockDatasource, createMockFramePublicAPI } from '../../mocks';
|
||||
|
|
|
@ -33,14 +33,13 @@ import {
|
|||
toExpression,
|
||||
toPreviewExpression,
|
||||
} from './to_expression';
|
||||
import { PieLayerState, PieVisualizationState } from '../../../common/types';
|
||||
import {
|
||||
CategoryDisplay,
|
||||
LegendDisplay,
|
||||
NumberDisplay,
|
||||
PieChartTypes,
|
||||
PieLayerState,
|
||||
PieVisualizationState,
|
||||
} from '../../../common';
|
||||
} from '../../../common/constants';
|
||||
import { suggestions } from './suggestions';
|
||||
import { PartitionChartsMeta } from './partition_charts_meta';
|
||||
import { DimensionDataExtraEditor, DimensionEditor, PieToolbar } from './toolbar';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { AxisExtentConfig } from '@kbn/expression-xy-plugin/common';
|
||||
import { Datatable } from '@kbn/expressions-plugin/public';
|
||||
import type { IFieldFormat, SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
|
||||
import { FormatFactory } from '../../../common';
|
||||
import { FormatFactory } from '../../../common/types';
|
||||
import {
|
||||
getDataBounds,
|
||||
validateAxisDomain,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { getColorAssignments } from './color_assignment';
|
||||
import type { FormatFactory } from '../../../common';
|
||||
import type { FormatFactory } from '../../../common/types';
|
||||
import { LayerTypes } from '@kbn/expression-xy-plugin/public';
|
||||
import { XYDataLayerConfig } from './types';
|
||||
import { Datatable } from '@kbn/expressions-plugin/common';
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
} from '@kbn/event-annotation-plugin/public';
|
||||
import type { AccessorConfig, FramePublicAPI } from '../../types';
|
||||
import { getColumnToLabelMap } from './state_helpers';
|
||||
import { FormatFactory } from '../../../common';
|
||||
import { FormatFactory } from '../../../common/types';
|
||||
import { isDataLayer, isReferenceLayer, isAnnotationsLayer } from './visualization_helpers';
|
||||
import { getAnnotationsAccessorColorConfig } from './annotations/helpers';
|
||||
import {
|
||||
|
|
|
@ -13,7 +13,7 @@ import type { ChartsPluginSetup } from '@kbn/charts-plugin/public';
|
|||
import { LEGACY_TIME_AXIS } from '@kbn/charts-plugin/common';
|
||||
import type { EditorFrameSetup } from '../../types';
|
||||
import type { LensPluginStartDependencies } from '../../plugin';
|
||||
import type { FormatFactory } from '../../../common';
|
||||
import type { FormatFactory } from '../../../common/types';
|
||||
|
||||
export interface XyVisualizationPluginSetupPlugins {
|
||||
expressions: ExpressionsSetup;
|
||||
|
|
|
@ -29,7 +29,7 @@ import {
|
|||
FieldOptionValue,
|
||||
FieldPicker,
|
||||
} from '../../../../shared_components/field_picker';
|
||||
import { FormatFactory } from '../../../../../common';
|
||||
import { FormatFactory } from '../../../../../common/types';
|
||||
import {
|
||||
DimensionEditorSection,
|
||||
NameInput,
|
||||
|
|
|
@ -12,7 +12,7 @@ import type { PaletteRegistry } from '@kbn/coloring';
|
|||
import type { DatatableUtilitiesService } from '@kbn/data-plugin/common';
|
||||
import type { VisualizationDimensionEditorProps } from '../../../types';
|
||||
import { State, XYState, XYDataLayerConfig, YConfig, YAxisMode } from '../types';
|
||||
import { FormatFactory } from '../../../../common';
|
||||
import { FormatFactory } from '../../../../common/types';
|
||||
import { getSeriesColor, isHorizontalChart } from '../state_helpers';
|
||||
import { ColorPicker } from './color_picker';
|
||||
import { PalettePicker, useDebouncedValue } from '../../../shared_components';
|
||||
|
|
|
@ -12,7 +12,7 @@ import type { PaletteRegistry } from '@kbn/coloring';
|
|||
import { FillStyle } from '@kbn/expression-xy-plugin/common';
|
||||
import type { VisualizationDimensionEditorProps } from '../../../../types';
|
||||
import { State, XYState, XYReferenceLineLayerConfig, YConfig } from '../../types';
|
||||
import { FormatFactory } from '../../../../../common';
|
||||
import { FormatFactory } from '../../../../../common/types';
|
||||
|
||||
import { ColorPicker } from '../color_picker';
|
||||
import { updateLayer } from '..';
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
mergeMigrationFunctionMaps,
|
||||
MigrateFunctionsObject,
|
||||
} from '@kbn/kibana-utils-plugin/common';
|
||||
import { DOC_TYPE } from '../../common';
|
||||
import { DOC_TYPE } from '../../common/constants';
|
||||
import {
|
||||
commonEnhanceTableRowHeight,
|
||||
commonPreserveOldLegendSizeDefault,
|
||||
|
|
|
@ -5,13 +5,10 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO: https://github.com/elastic/kibana/issues/110891
|
||||
/* eslint-disable @kbn/eslint/no_export_all */
|
||||
|
||||
import { LensServerPlugin } from './plugin';
|
||||
|
||||
export type { LensServerPluginSetup } from './plugin';
|
||||
export * from './plugin';
|
||||
export * from './migrations/types';
|
||||
|
||||
export const plugin = () => new LensServerPlugin();
|
||||
|
||||
export type { LensDocShape715 } from './migrations/types';
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
getLensFilterMigrations,
|
||||
commonMigratePartitionChartGroups,
|
||||
} from './common_migrations';
|
||||
import { LensDocShape840 } from '..';
|
||||
import { LensDocShape840 } from './types';
|
||||
|
||||
describe('Lens migrations', () => {
|
||||
describe('applying filter migrations', () => {
|
||||
|
|
|
@ -36,7 +36,8 @@ import {
|
|||
LensDocShape850,
|
||||
LensDocShape860,
|
||||
} from './types';
|
||||
import { DOCUMENT_FIELD_NAME, LegacyMetricState } from '../../common';
|
||||
import { DOCUMENT_FIELD_NAME } from '../../common/constants';
|
||||
import type { LegacyMetricState } from '../../common/types';
|
||||
import { isPartitionShape } from '../../common/visualizations';
|
||||
import { LensDocShape } from './saved_object_migrations';
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import {
|
|||
VisState850,
|
||||
} from './types';
|
||||
import { LayerTypes } from '@kbn/expression-xy-plugin/common';
|
||||
import { LegacyMetricState } from '../../common';
|
||||
import { LegacyMetricState } from '../../common/types';
|
||||
import { Filter } from '@kbn/es-query';
|
||||
import { DataViewSpec } from '@kbn/data-views-plugin/common';
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import type { Query, Filter } from '@kbn/es-query';
|
|||
import { mergeSavedObjectMigrationMaps } from '@kbn/core/server';
|
||||
import { MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common';
|
||||
import { DataViewSpec } from '@kbn/data-views-plugin/common';
|
||||
import { PersistableFilter } from '../../common';
|
||||
import { PersistableFilter } from '../../common/types';
|
||||
import {
|
||||
LensDocShapePost712,
|
||||
LensDocShapePre712,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import type { PaletteOutput, CustomPaletteParams } from '@kbn/coloring';
|
||||
import type { Query, Filter } from '@kbn/es-query';
|
||||
import type { MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common';
|
||||
import type { LayerType, PersistableFilter, ValueLabelConfig } from '../../common';
|
||||
import type { LayerType, PersistableFilter, ValueLabelConfig } from '../../common/types';
|
||||
|
||||
export type CustomVisualizationMigrations = Record<string, () => MigrateFunctionsObject>;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { CoreSetup } from '@kbn/core/server';
|
||||
import { DataViewPersistableStateService } from '@kbn/data-views-plugin/common';
|
||||
import { MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common';
|
||||
import { getEditPath } from '../common';
|
||||
import { getEditPath } from '../common/constants';
|
||||
import { getAllMigrations } from './migrations/saved_object_migrations';
|
||||
import { CustomVisualizationMigrations } from './migrations/types';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue