mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Update dependency @elastic/charts to v69.1.1 (main) (#213623)
This commit is contained in:
parent
5e90e557cf
commit
f2b5f3fe48
10 changed files with 41 additions and 362 deletions
|
@ -116,7 +116,7 @@
|
|||
"@elastic/apm-rum": "^5.16.3",
|
||||
"@elastic/apm-rum-core": "^5.22.1",
|
||||
"@elastic/apm-rum-react": "^2.0.5",
|
||||
"@elastic/charts": "69.1.0",
|
||||
"@elastic/charts": "69.1.1",
|
||||
"@elastic/datemath": "5.0.3",
|
||||
"@elastic/ebt": "^1.1.1",
|
||||
"@elastic/ecs": "^8.11.5",
|
||||
|
|
|
@ -97,24 +97,6 @@ exports[`GaugeComponent renders the chart 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
|
|
@ -327,24 +327,6 @@ exports[`PartitionVisComponent should render correct structure for donut 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -1258,24 +1240,6 @@ exports[`PartitionVisComponent should render correct structure for mosaic 1`] =
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -2249,24 +2213,6 @@ exports[`PartitionVisComponent should render correct structure for multi-metric
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -3242,24 +3188,6 @@ exports[`PartitionVisComponent should render correct structure for pie 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -4173,24 +4101,6 @@ exports[`PartitionVisComponent should render correct structure for treemap 1`] =
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -5059,24 +4969,6 @@ exports[`PartitionVisComponent should render correct structure for waffle 1`] =
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
|
|
@ -654,24 +654,6 @@ exports[`XYChart component it renders area 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -2225,24 +2207,6 @@ exports[`XYChart component it renders bar 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -3796,24 +3760,6 @@ exports[`XYChart component it renders horizontal bar 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -5367,24 +5313,6 @@ exports[`XYChart component it renders line 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -6938,24 +6866,6 @@ exports[`XYChart component it renders stacked area 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -8509,24 +8419,6 @@ exports[`XYChart component it renders stacked bar 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -10080,24 +9972,6 @@ exports[`XYChart component it renders stacked horizontal bar 1`] = `
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -11681,24 +11555,6 @@ exports[`XYChart component split chart should render split chart if both, splitR
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -13490,24 +13346,6 @@ exports[`XYChart component split chart should render split chart if splitColumnA
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
@ -15292,24 +15130,6 @@ exports[`XYChart component split chart should render split chart if splitRowAcce
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
|
|
@ -11,6 +11,7 @@ import { AnnotationDomainType, LineAnnotation } from '@elastic/charts';
|
|||
import { EuiText, useEuiTheme } from '@elastic/eui';
|
||||
import { useFormContext } from 'react-hook-form';
|
||||
import { SLOWithSummaryResponse } from '@kbn/slo-schema';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import { AnnotationIcon } from '.';
|
||||
import { AnnotationTooltip } from './annotation_tooltip';
|
||||
import type { Annotation, CreateAnnotationParams } from '../../../../common/annotations';
|
||||
|
@ -34,7 +35,7 @@ export function NewLineAnnotation({
|
|||
|
||||
return (
|
||||
<ObsLineAnnotation
|
||||
annotation={{
|
||||
annotation={cloneDeep({
|
||||
...values,
|
||||
annotation: {
|
||||
...values.annotation,
|
||||
|
@ -42,7 +43,7 @@ export function NewLineAnnotation({
|
|||
type: annotationType,
|
||||
},
|
||||
...(slo ? { slo: { id: slo.id, instanceId: slo.instanceId } } : {}),
|
||||
}}
|
||||
})}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ import { useEuiTheme } from '@elastic/eui';
|
|||
import moment from 'moment';
|
||||
import { useFormContext } from 'react-hook-form';
|
||||
import { SLOWithSummaryResponse } from '@kbn/slo-schema';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import { AnnotationTooltip } from './annotation_tooltip';
|
||||
import type { Annotation, CreateAnnotationParams } from '../../../../common/annotations';
|
||||
|
||||
|
@ -35,7 +36,7 @@ export function NewRectAnnotation({
|
|||
|
||||
return (
|
||||
<ObsRectAnnotation
|
||||
annotation={{
|
||||
annotation={cloneDeep({
|
||||
...values,
|
||||
annotation: {
|
||||
...values.annotation,
|
||||
|
@ -43,7 +44,7 @@ export function NewRectAnnotation({
|
|||
type: annotationType,
|
||||
},
|
||||
...(slo ? { slo: { id: slo.id, instanceId: slo.instanceId } } : {}),
|
||||
}}
|
||||
})}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -10,10 +10,6 @@ import { FormProvider, useForm } from 'react-hook-form';
|
|||
import moment from 'moment';
|
||||
import useKey from 'react-use/lib/useKey';
|
||||
import { clone } from 'lodash';
|
||||
import {
|
||||
defaultRangeAnnotationLabel,
|
||||
defaultAnnotationRangeColor,
|
||||
} from '@kbn/event-annotation-common';
|
||||
import { SLOWithSummaryResponse } from '@kbn/slo-schema';
|
||||
import { getDefaultAnnotation } from './default_annotation';
|
||||
import { useEditAnnotationHelper } from './hooks/use_edit_annotation_helper';
|
||||
|
@ -160,20 +156,16 @@ export const useAnnotations = ({
|
|||
},
|
||||
createAnnotation: (start: string | number, end?: string | null) => {
|
||||
if (isCreateOpen) return;
|
||||
reset(getDefaultAnnotation({ slo }));
|
||||
const timestampStart = isNaN(Number(start)) ? moment(start) : moment(new Date(Number(start)));
|
||||
|
||||
reset(
|
||||
getDefaultAnnotation({
|
||||
slo,
|
||||
timestamp: timestampStart,
|
||||
eventEnd: end ? moment(new Date(Number(end))) : undefined,
|
||||
})
|
||||
);
|
||||
|
||||
if (isNaN(Number(start))) {
|
||||
setValue('@timestamp', moment(start));
|
||||
} else {
|
||||
setValue('@timestamp', moment(new Date(Number(start))));
|
||||
}
|
||||
if (end) {
|
||||
setValue('event.end', moment(new Date(Number(end))));
|
||||
}
|
||||
if (end) {
|
||||
setValue('message', defaultRangeAnnotationLabel);
|
||||
setValue('annotation.style.color', defaultAnnotationRangeColor);
|
||||
}
|
||||
setIsCreateOpen(true);
|
||||
},
|
||||
AddAnnotationButton: () => {
|
||||
|
|
|
@ -56,6 +56,7 @@ export function AnnotationsList() {
|
|||
const renderToolsLeft = () => {
|
||||
return (
|
||||
<DeleteAnnotations
|
||||
key="delete-annotations"
|
||||
selection={selection}
|
||||
isLoading={isDeleteLoading}
|
||||
permissions={permissions}
|
||||
|
@ -65,7 +66,14 @@ export function AnnotationsList() {
|
|||
};
|
||||
const renderToolsRight = () => {
|
||||
return [
|
||||
<DatePicker start={start} end={end} setStart={setStart} setEnd={setEnd} refetch={refetch} />,
|
||||
<DatePicker
|
||||
key="date-picker"
|
||||
start={start}
|
||||
end={end}
|
||||
setStart={setStart}
|
||||
setEnd={setEnd}
|
||||
refetch={refetch}
|
||||
/>,
|
||||
];
|
||||
};
|
||||
const allTags = data?.items?.map((obj) => obj.tags ?? []).flat() ?? [];
|
||||
|
|
|
@ -110,24 +110,6 @@ exports[`DonutChart component passes correct props without errors for valid prop
|
|||
"strokeWidth": 1,
|
||||
"visible": true,
|
||||
},
|
||||
"lumaSteps": Array [
|
||||
224,
|
||||
184,
|
||||
128,
|
||||
96,
|
||||
64,
|
||||
32,
|
||||
16,
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"vertical": Object {
|
||||
"dash": Array [
|
||||
0,
|
||||
|
|
31
yarn.lock
31
yarn.lock
|
@ -2188,12 +2188,13 @@
|
|||
dependencies:
|
||||
object-hash "^1.3.0"
|
||||
|
||||
"@elastic/charts@69.1.0":
|
||||
version "69.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-69.1.0.tgz#5dff4f10f59a66ab291961ace141a99356751924"
|
||||
integrity sha512-Ab1c/8i4wf3guFtMe7tK6ZClZ7TWHk6lVEAXdJJmKd5SCaXvGHrz8mZi9HkAQmooAtm54bnt43Nli8DfIigITw==
|
||||
"@elastic/charts@69.1.1":
|
||||
version "69.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-69.1.1.tgz#3a639965e9217de083b28d777517aeebf322f3ed"
|
||||
integrity sha512-qW08ntBXr4MQ1JP3VNh2bJC6RLm8I0ha+UqZQ/J6p3alQd/6yxuoj568ugTCXvvRw3nBXAsnkEkYyJ0TXR9RtA==
|
||||
dependencies:
|
||||
"@popperjs/core" "^2.11.8"
|
||||
"@reduxjs/toolkit" "1.9.7"
|
||||
bezier-easing "^2.1.0"
|
||||
chroma-js "^2.4.2"
|
||||
classnames "^2.2.6"
|
||||
|
@ -2203,12 +2204,12 @@
|
|||
d3-interpolate "^3.0.1"
|
||||
d3-scale "^3.3.0"
|
||||
d3-shape "^2.0.0"
|
||||
immer "^9.0.21"
|
||||
luxon "^1.25.0"
|
||||
prop-types "^15.7.2"
|
||||
re-reselect "^3.4.0"
|
||||
react-redux "^7.1.0"
|
||||
redux "^4.0.4"
|
||||
reselect "^4.0.0"
|
||||
re-reselect "^4.0.1"
|
||||
react-redux "^7.2.8"
|
||||
redux "^4.2.1"
|
||||
ts-debounce "^4.0.0"
|
||||
utility-types "^3.10.0"
|
||||
uuid "^9"
|
||||
|
@ -28238,10 +28239,10 @@ rc@^1.2.7:
|
|||
minimist "^1.2.0"
|
||||
strip-json-comments "~2.0.1"
|
||||
|
||||
re-reselect@^3.4.0:
|
||||
version "3.4.0"
|
||||
resolved "https://registry.yarnpkg.com/re-reselect/-/re-reselect-3.4.0.tgz#0f2303f3c84394f57f0cd31fea08a1ca4840a7cd"
|
||||
integrity sha512-JsecfN+JlckncVXTWFWjn0Vk6uInl8GSf4eEd9tTk5qXHlgqkPdILpnYpgZcISXNYAzvfvsCZviaDk8AxyS5sg==
|
||||
re-reselect@^4.0.1:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/re-reselect/-/re-reselect-4.0.1.tgz#21a2306d11bbf377ac78687aa46e1a8848974194"
|
||||
integrity sha512-xVTNGQy/dAxOolunBLmVMGZ49VUUR1s8jZUiJQb+g1sI63GAv9+a5Jas9yHvdxeUgiZkU9r3gDExDorxHzOgRA==
|
||||
|
||||
re-resizable@^6.9.9:
|
||||
version "6.9.9"
|
||||
|
@ -28494,7 +28495,7 @@ react-recompose@^0.33.0:
|
|||
react-lifecycles-compat "^3.0.4"
|
||||
symbol-observable "^4.0.0"
|
||||
|
||||
react-redux@^7.1.0, react-redux@^7.2.8:
|
||||
react-redux@^7.2.8:
|
||||
version "7.2.8"
|
||||
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.2.8.tgz#a894068315e65de5b1b68899f9c6ee0923dd28de"
|
||||
integrity sha512-6+uDjhs3PSIclqoCk0kd6iX74gzrGc3W5zcAjbrFgEdIjRSQObdIwfx80unTkVUYvbQ95Y8Av3OvFHq1w5EOUw==
|
||||
|
@ -29028,7 +29029,7 @@ redux-thunks@^1.0.0:
|
|||
resolved "https://registry.yarnpkg.com/redux-thunks/-/redux-thunks-1.0.0.tgz#56e03b86d281a2664c884ab05c543d9ab1673658"
|
||||
integrity sha1-VuA7htKBomZMiEqwXFQ9mrFnNlg=
|
||||
|
||||
redux@^4.0.0, redux@^4.0.4, redux@^4.2.1:
|
||||
redux@^4.0.0, redux@^4.2.1:
|
||||
version "4.2.1"
|
||||
resolved "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz"
|
||||
integrity sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==
|
||||
|
@ -29468,7 +29469,7 @@ requires-port@^1.0.0:
|
|||
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
|
||||
integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=
|
||||
|
||||
reselect@^4.0.0, reselect@^4.1.8:
|
||||
reselect@^4.1.8:
|
||||
version "4.1.8"
|
||||
resolved "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz"
|
||||
integrity sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue