From 4a4d29eee21fdb0fc945d93044761019c78f309b Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Mon, 8 Jul 2019 16:41:44 -0500 Subject: [PATCH] [7.x] Upgrade EUI to v10.0.1 (#35112) (#40533) * Upgrade EUI to v10.0.1 (#35112) * eui@10.0.0; tsconfig update * limit key lookups to strings * Search Profiler hightlight details flyout classes * bump * snapshot updates * x-pack snapshot updates * keyofstringsonly update --- packages/kbn-test/types/ftr.d.ts | 2 +- tsconfig.json | 2 - .../canvas/common/lib/pivot_object_array.ts | 2 +- .../directives/highlight_details/index.html | 108 +++++++++--------- 4 files changed, 57 insertions(+), 57 deletions(-) diff --git a/packages/kbn-test/types/ftr.d.ts b/packages/kbn-test/types/ftr.d.ts index 279234369f6b..d85363892c99 100644 --- a/packages/kbn-test/types/ftr.d.ts +++ b/packages/kbn-test/types/ftr.d.ts @@ -58,7 +58,7 @@ export interface GenericFtrProviderContext< */ hasService(serviceName: 'config' | 'log' | 'lifecycle'): true; hasService(serviceName: K): serviceName is K; - hasService(serviceName: string): serviceName is keyof ServiceMap; + hasService(serviceName: string): serviceName is Extract; /** * Get the instance of a service, if the service is loaded async and the service needs to be used diff --git a/tsconfig.json b/tsconfig.json index f495f79082aa..7d4b6a6e6be8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,8 +42,6 @@ "moduleResolution": "node", // Disallow inconsistently-cased references to the same file. "forceConsistentCasingInFileNames": true, - // Disable the breaking keyof behaviour introduced in TS 2.9.2 until EUI is updated to support that too - "keyofStringsOnly": true, // Forbid unused local variables as the rule was deprecated by ts-lint "noUnusedLocals": true, // Provide full support for iterables in for..of, spread and destructuring when targeting ES5 or ES3. diff --git a/x-pack/legacy/plugins/canvas/common/lib/pivot_object_array.ts b/x-pack/legacy/plugins/canvas/common/lib/pivot_object_array.ts index 2d741888efc8..4fe419a18f9e 100644 --- a/x-pack/legacy/plugins/canvas/common/lib/pivot_object_array.ts +++ b/x-pack/legacy/plugins/canvas/common/lib/pivot_object_array.ts @@ -10,7 +10,7 @@ const isString = (val: any): boolean => typeof val === 'string'; export function pivotObjectArray< RowType extends { [key: string]: any }, - ReturnColumns extends string = keyof RowType + ReturnColumns extends string = Extract >( rows: RowType[], columns?: string[] diff --git a/x-pack/legacy/plugins/searchprofiler/public/directives/highlight_details/index.html b/x-pack/legacy/plugins/searchprofiler/public/directives/highlight_details/index.html index cb70661d55f4..f58515390ded 100644 --- a/x-pack/legacy/plugins/searchprofiler/public/directives/highlight_details/index.html +++ b/x-pack/legacy/plugins/searchprofiler/public/directives/highlight_details/index.html @@ -6,58 +6,60 @@

-
-
-
-
{{detailRow.query_type}}
-
-
{{detailRow.lucene}}
-
- -
-
{{detailRow.time | msToPretty:3 }}
-
- -
-
{{detailRow.selfTime | msToPretty:3 }}
-
+
+
+
+
+
{{detailRow.query_type}}
+
+
{{detailRow.lucene}}
+
+ +
+
{{detailRow.time | msToPretty:3 }}
+
+ +
+
{{detailRow.selfTime | msToPretty:3 }}
+
+
+
+

+
+ + + + + + +
{{breakdown.key}} + + {{breakdown.time | nsToPretty: 1}} + + + + + {{breakdown.relative}}% + +
-
-

-
- - - - - - -
{{breakdown.key}} - - {{breakdown.time | nsToPretty: 1}} - - - - - {{breakdown.relative}}% - -