mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Step 1] Move CustomizablePalette from Lens into @kbn/coloring package (#129291)
* [Step 1] Move Coloring into Shared-ux-Components * Fix Joe's comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
8a0cc6efcd
commit
ac50a30eb6
116 changed files with 2369 additions and 1697 deletions
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { cloneDeep, mapValues } from 'lodash';
|
||||
import { PaletteOutput } from 'src/plugins/charts/common';
|
||||
import type { PaletteOutput, CustomPaletteParams } from '@kbn/coloring';
|
||||
import { SerializableRecord } from '@kbn/utility-types';
|
||||
import {
|
||||
mergeMigrationFunctionMaps,
|
||||
|
@ -28,7 +28,7 @@ import {
|
|||
CustomVisualizationMigrations,
|
||||
LensDocShape810,
|
||||
} from './types';
|
||||
import { CustomPaletteParams, DOCUMENT_FIELD_NAME, layerTypes } from '../../common';
|
||||
import { DOCUMENT_FIELD_NAME, layerTypes } from '../../common';
|
||||
import { LensDocShape } from './saved_object_migrations';
|
||||
|
||||
export const commonRenameOperationsForFormula = (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import { cloneDeep } from 'lodash';
|
||||
import type { PaletteOutput, CustomPaletteParams } from '@kbn/coloring';
|
||||
import { getAllMigrations, LensDocShape } from './saved_object_migrations';
|
||||
import {
|
||||
SavedObjectMigrationContext,
|
||||
|
@ -21,8 +22,7 @@ import {
|
|||
VisState810,
|
||||
VisState820,
|
||||
} from './types';
|
||||
import { CustomPaletteParams, layerTypes } from '../../common';
|
||||
import { PaletteOutput } from 'src/plugins/charts/common';
|
||||
import { layerTypes } from '../../common';
|
||||
import { Filter } from '@kbn/es-query';
|
||||
|
||||
describe('Lens migrations', () => {
|
||||
|
@ -188,7 +188,7 @@ describe('Lens migrations', () => {
|
|||
attributes: {
|
||||
expression: `kibana
|
||||
| kibana_context query="{\\"query\\":\\"\\",\\"language\\":\\"kuery\\"}" filters="[]"
|
||||
| lens_merge_tables layerIds="bd09dc71-a7e2-42d0-83bd-85df8291f03c"
|
||||
| lens_merge_tables layerIds="bd09dc71-a7e2-42d0-83bd-85df8291f03c"
|
||||
tables={esaggs
|
||||
index="ff959d40-b880-11e8-a6d9-e546fe2bba5f"
|
||||
metricsAtAllLevels=false
|
||||
|
@ -203,7 +203,7 @@ describe('Lens migrations', () => {
|
|||
| xyVis
|
||||
xTitle="products.created_on"
|
||||
yTitle="Count of records"
|
||||
legend={legendConfig isVisible=true position="right"}
|
||||
legend={legendConfig isVisible=true position="right"}
|
||||
layers={lens_xy_layer
|
||||
layerId="bd09dc71-a7e2-42d0-83bd-85df8291f03c"
|
||||
hide=false
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { PaletteOutput } from 'src/plugins/charts/common';
|
||||
import type { PaletteOutput, CustomPaletteParams } from '@kbn/coloring';
|
||||
import { Filter } from '@kbn/es-query';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { Query } from 'src/plugins/data/public';
|
||||
import type { MigrateFunctionsObject } from 'src/plugins/kibana_utils/common';
|
||||
import type { CustomPaletteParams, LayerType, PersistableFilter } from '../../common';
|
||||
import type { LayerType, PersistableFilter } from '../../common';
|
||||
|
||||
export type CustomVisualizationMigrations = Record<string, () => MigrateFunctionsObject>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue