@perses-dev/components 0.55.0-beta.8 → 0.55.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ExemplarMetadata/ExemplarMetadataTooltip.d.ts +27 -0
- package/dist/ExemplarMetadata/ExemplarMetadataTooltip.d.ts.map +1 -0
- package/dist/ExemplarMetadata/ExemplarMetadataTooltip.js +239 -0
- package/dist/ExemplarMetadata/ExemplarMetadataTooltip.js.map +1 -0
- package/dist/ExemplarMetadata/index.d.ts +2 -0
- package/dist/ExemplarMetadata/index.d.ts.map +1 -0
- package/dist/ExemplarMetadata/index.js +14 -0
- package/dist/ExemplarMetadata/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Exemplar, Labels } from '@perses-dev/spec';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
import type { FormatOptions } from '../model/units';
|
|
4
|
+
import type { CursorCoordinates } from '../TimeSeriesTooltip/tooltip-model';
|
|
5
|
+
export interface ExemplarMetadataTooltipProps {
|
|
6
|
+
exemplar: Exemplar;
|
|
7
|
+
seriesLabels?: Labels;
|
|
8
|
+
/**
|
|
9
|
+
* CSS selector of the element the tooltip should be portaled into (e.g. `#dashboard`).
|
|
10
|
+
* Passed as-is to `document.querySelector`, so it must be a selector and not a bare element id.
|
|
11
|
+
*/
|
|
12
|
+
containerId?: string;
|
|
13
|
+
format?: FormatOptions;
|
|
14
|
+
/**
|
|
15
|
+
* Position where the tooltip has been pinned, or null when it follows the mouse.
|
|
16
|
+
*/
|
|
17
|
+
pinnedPos: CursorCoordinates | null;
|
|
18
|
+
enablePinning?: boolean;
|
|
19
|
+
onUnpinClick?: () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Tooltip showing an exemplar's metadata (series labels, exemplar labels, value and timestamp).
|
|
23
|
+
* Follows the mouse while hovering an exemplar marker and can be pinned in place, the same way
|
|
24
|
+
* the annotation tooltip works.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ExemplarMetadataTooltip({ exemplar, seriesLabels, containerId, format, pinnedPos, enablePinning, onUnpinClick, }: ExemplarMetadataTooltipProps): ReactElement | null;
|
|
27
|
+
//# sourceMappingURL=ExemplarMetadataTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExemplarMetadataTooltip.d.ts","sourceRoot":"","sources":["../../src/ExemplarMetadata/ExemplarMetadataTooltip.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAWpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,MAAM,EACN,SAAS,EACT,aAAoB,EACpB,YAAY,GACb,EAAE,4BAA4B,GAAG,YAAY,GAAG,IAAI,CAwGpD"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright The Perses Authors
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
import { Box, Divider, IconButton, Portal, Stack, Typography } from "@mui/material";
|
|
14
|
+
import Pin from "mdi-material-ui/Pin";
|
|
15
|
+
import PinOutline from "mdi-material-ui/PinOutline";
|
|
16
|
+
import { Fragment } from "react";
|
|
17
|
+
import useResizeObserver from "use-resize-observer";
|
|
18
|
+
import { useTimeZone } from "../context/TimeZoneProvider.js";
|
|
19
|
+
import { formatValue } from "../model/units.js";
|
|
20
|
+
import { assembleTransform, getTooltipStyles, PIN_TOOLTIP_HELP_TEXT, TOOLTIP_BG_COLOR_FALLBACK, TOOLTIP_MAX_WIDTH, UNPIN_TOOLTIP_HELP_TEXT, useMousePosition } from "../TimeSeriesTooltip/index.js";
|
|
21
|
+
/**
|
|
22
|
+
* Tooltip showing an exemplar's metadata (series labels, exemplar labels, value and timestamp).
|
|
23
|
+
* Follows the mouse while hovering an exemplar marker and can be pinned in place, the same way
|
|
24
|
+
* the annotation tooltip works.
|
|
25
|
+
*/ export function ExemplarMetadataTooltip({ exemplar, seriesLabels, containerId, format, pinnedPos, enablePinning = true, onUnpinClick }) {
|
|
26
|
+
const { formatWithUserTimeZone } = useTimeZone();
|
|
27
|
+
const mousePos = useMousePosition();
|
|
28
|
+
const { height, width, ref: tooltipRef } = useResizeObserver();
|
|
29
|
+
const isPinned = pinnedPos !== null;
|
|
30
|
+
if (!isPinned && mousePos === null) return null;
|
|
31
|
+
const containerElement = containerId ? document.querySelector(containerId) : undefined;
|
|
32
|
+
const maxHeight = containerElement ? containerElement.getBoundingClientRect().height : undefined;
|
|
33
|
+
// Fall back to the pinned position: a pinned tooltip can render before any mousemove happened.
|
|
34
|
+
const transform = assembleTransform(mousePos ?? pinnedPos, pinnedPos, height ?? 0, width ?? 0, containerElement);
|
|
35
|
+
const { labels, value, timestamp } = exemplar;
|
|
36
|
+
const formattedValue = formatValue(value, format);
|
|
37
|
+
const date = new Date(timestamp);
|
|
38
|
+
const formattedDate = formatWithUserTimeZone(date, 'MMM dd, yyyy - ');
|
|
39
|
+
const formattedTime = formatWithUserTimeZone(date, 'HH:mm:ss');
|
|
40
|
+
// Only sections with content take part in the layout, so no divider is left dangling
|
|
41
|
+
// when a label set is empty.
|
|
42
|
+
const sections = [];
|
|
43
|
+
if (seriesLabels && Object.keys(seriesLabels).length > 0) {
|
|
44
|
+
sections.push({
|
|
45
|
+
key: 'series-labels',
|
|
46
|
+
content: /*#__PURE__*/ _jsx(LabelGrid, {
|
|
47
|
+
title: "Series labels",
|
|
48
|
+
labels: seriesLabels
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (Object.keys(labels).length > 0) {
|
|
53
|
+
sections.push({
|
|
54
|
+
key: 'exemplar-labels',
|
|
55
|
+
content: /*#__PURE__*/ _jsx(LabelGrid, {
|
|
56
|
+
title: "Exemplar labels",
|
|
57
|
+
labels: labels
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
sections.push({
|
|
62
|
+
key: 'value',
|
|
63
|
+
content: /*#__PURE__*/ _jsxs(Box, {
|
|
64
|
+
children: [
|
|
65
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
66
|
+
variant: "overline",
|
|
67
|
+
component: "div",
|
|
68
|
+
children: "Value"
|
|
69
|
+
}),
|
|
70
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
71
|
+
fontWeight: 700,
|
|
72
|
+
children: formattedValue
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
return /*#__PURE__*/ _jsx(Portal, {
|
|
78
|
+
container: containerElement,
|
|
79
|
+
children: /*#__PURE__*/ _jsx(Box, {
|
|
80
|
+
ref: tooltipRef,
|
|
81
|
+
sx: (theme)=>getTooltipStyles(theme, pinnedPos, maxHeight),
|
|
82
|
+
style: {
|
|
83
|
+
transform
|
|
84
|
+
},
|
|
85
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
86
|
+
spacing: 0.5,
|
|
87
|
+
children: [
|
|
88
|
+
/*#__PURE__*/ _jsxs(Box, {
|
|
89
|
+
sx: (theme)=>({
|
|
90
|
+
width: '100%',
|
|
91
|
+
maxWidth: TOOLTIP_MAX_WIDTH,
|
|
92
|
+
padding: theme.spacing(1.5, 2, 0.5, 2),
|
|
93
|
+
backgroundColor: theme.palette.designSystem?.grey[800] ?? TOOLTIP_BG_COLOR_FALLBACK,
|
|
94
|
+
position: 'sticky',
|
|
95
|
+
top: 0,
|
|
96
|
+
left: 0
|
|
97
|
+
}),
|
|
98
|
+
children: [
|
|
99
|
+
/*#__PURE__*/ _jsxs(Box, {
|
|
100
|
+
sx: {
|
|
101
|
+
display: 'flex',
|
|
102
|
+
alignItems: 'center',
|
|
103
|
+
paddingBottom: 0.5,
|
|
104
|
+
width: '100%'
|
|
105
|
+
},
|
|
106
|
+
children: [
|
|
107
|
+
/*#__PURE__*/ _jsxs(Box, {
|
|
108
|
+
sx: {
|
|
109
|
+
flexGrow: 1,
|
|
110
|
+
minWidth: 0
|
|
111
|
+
},
|
|
112
|
+
children: [
|
|
113
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
114
|
+
variant: "caption",
|
|
115
|
+
sx: (theme)=>({
|
|
116
|
+
color: theme.palette.common.white
|
|
117
|
+
}),
|
|
118
|
+
children: formattedDate
|
|
119
|
+
}),
|
|
120
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
121
|
+
variant: "caption",
|
|
122
|
+
children: /*#__PURE__*/ _jsx("strong", {
|
|
123
|
+
children: formattedTime
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
]
|
|
127
|
+
}),
|
|
128
|
+
enablePinning && /*#__PURE__*/ _jsxs(Stack, {
|
|
129
|
+
direction: "row",
|
|
130
|
+
alignItems: "center",
|
|
131
|
+
sx: {
|
|
132
|
+
marginLeft: 1,
|
|
133
|
+
flexShrink: 0
|
|
134
|
+
},
|
|
135
|
+
children: [
|
|
136
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
137
|
+
sx: {
|
|
138
|
+
marginRight: 0.5,
|
|
139
|
+
fontSize: 11,
|
|
140
|
+
verticalAlign: 'middle'
|
|
141
|
+
},
|
|
142
|
+
children: isPinned ? UNPIN_TOOLTIP_HELP_TEXT : PIN_TOOLTIP_HELP_TEXT
|
|
143
|
+
}),
|
|
144
|
+
isPinned ? /*#__PURE__*/ _jsx(IconButton, {
|
|
145
|
+
"aria-label": UNPIN_TOOLTIP_HELP_TEXT,
|
|
146
|
+
onClick: ()=>{
|
|
147
|
+
if (onUnpinClick !== undefined) onUnpinClick();
|
|
148
|
+
},
|
|
149
|
+
sx: {
|
|
150
|
+
padding: 0,
|
|
151
|
+
color: 'inherit'
|
|
152
|
+
},
|
|
153
|
+
children: /*#__PURE__*/ _jsx(Pin, {
|
|
154
|
+
sx: {
|
|
155
|
+
fontSize: 16
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
}) : /*#__PURE__*/ _jsx(PinOutline, {
|
|
159
|
+
sx: {
|
|
160
|
+
fontSize: 16
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
]
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
/*#__PURE__*/ _jsx(Divider, {
|
|
168
|
+
sx: (theme)=>({
|
|
169
|
+
width: '100%',
|
|
170
|
+
borderColor: theme.palette.grey['500']
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
}),
|
|
175
|
+
/*#__PURE__*/ _jsx(Stack, {
|
|
176
|
+
spacing: 1,
|
|
177
|
+
sx: (theme)=>({
|
|
178
|
+
padding: theme.spacing(0.5, 2, 1.5, 2)
|
|
179
|
+
}),
|
|
180
|
+
children: sections.map((section, index)=>/*#__PURE__*/ _jsxs(Fragment, {
|
|
181
|
+
children: [
|
|
182
|
+
index > 0 && /*#__PURE__*/ _jsx(Divider, {
|
|
183
|
+
sx: (theme)=>({
|
|
184
|
+
borderColor: theme.palette.grey['500']
|
|
185
|
+
})
|
|
186
|
+
}),
|
|
187
|
+
section.content
|
|
188
|
+
]
|
|
189
|
+
}, section.key))
|
|
190
|
+
})
|
|
191
|
+
]
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
function LabelGrid({ title, labels }) {
|
|
197
|
+
const entries = Object.entries(labels);
|
|
198
|
+
return /*#__PURE__*/ _jsxs(Box, {
|
|
199
|
+
children: [
|
|
200
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
201
|
+
variant: "overline",
|
|
202
|
+
component: "div",
|
|
203
|
+
children: title
|
|
204
|
+
}),
|
|
205
|
+
/*#__PURE__*/ _jsx(Box, {
|
|
206
|
+
sx: {
|
|
207
|
+
display: 'grid',
|
|
208
|
+
// The first column is sized by the longest label name, so all values line up
|
|
209
|
+
// at the same horizontal position.
|
|
210
|
+
gridTemplateColumns: 'minmax(0, max-content) minmax(0, 1fr)',
|
|
211
|
+
columnGap: 0.5,
|
|
212
|
+
rowGap: 0.25
|
|
213
|
+
},
|
|
214
|
+
children: entries.map(([labelName, labelValue])=>/*#__PURE__*/ _jsxs(Fragment, {
|
|
215
|
+
children: [
|
|
216
|
+
/*#__PURE__*/ _jsxs(Typography, {
|
|
217
|
+
sx: {
|
|
218
|
+
wordBreak: 'break-all'
|
|
219
|
+
},
|
|
220
|
+
children: [
|
|
221
|
+
labelName,
|
|
222
|
+
":"
|
|
223
|
+
]
|
|
224
|
+
}),
|
|
225
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
226
|
+
fontWeight: 700,
|
|
227
|
+
sx: {
|
|
228
|
+
wordBreak: 'break-all'
|
|
229
|
+
},
|
|
230
|
+
children: labelValue
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
}, labelName))
|
|
234
|
+
})
|
|
235
|
+
]
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
//# sourceMappingURL=ExemplarMetadataTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/ExemplarMetadata/ExemplarMetadataTooltip.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Box, Divider, IconButton, Portal, Stack, Typography } from '@mui/material';\nimport type { Exemplar, Labels } from '@perses-dev/spec';\nimport Pin from 'mdi-material-ui/Pin';\nimport PinOutline from 'mdi-material-ui/PinOutline';\nimport type { ReactElement } from 'react';\nimport { Fragment } from 'react';\nimport useResizeObserver from 'use-resize-observer';\n\nimport { useTimeZone } from '../context/TimeZoneProvider';\nimport type { FormatOptions } from '../model/units';\nimport { formatValue } from '../model/units';\nimport {\n assembleTransform,\n getTooltipStyles,\n PIN_TOOLTIP_HELP_TEXT,\n TOOLTIP_BG_COLOR_FALLBACK,\n TOOLTIP_MAX_WIDTH,\n UNPIN_TOOLTIP_HELP_TEXT,\n useMousePosition,\n} from '../TimeSeriesTooltip';\nimport type { CursorCoordinates } from '../TimeSeriesTooltip/tooltip-model';\n\nexport interface ExemplarMetadataTooltipProps {\n exemplar: Exemplar;\n seriesLabels?: Labels;\n /**\n * CSS selector of the element the tooltip should be portaled into (e.g. `#dashboard`).\n * Passed as-is to `document.querySelector`, so it must be a selector and not a bare element id.\n */\n containerId?: string;\n format?: FormatOptions;\n /**\n * Position where the tooltip has been pinned, or null when it follows the mouse.\n */\n pinnedPos: CursorCoordinates | null;\n enablePinning?: boolean;\n onUnpinClick?: () => void;\n}\n\n/**\n * Tooltip showing an exemplar's metadata (series labels, exemplar labels, value and timestamp).\n * Follows the mouse while hovering an exemplar marker and can be pinned in place, the same way\n * the annotation tooltip works.\n */\nexport function ExemplarMetadataTooltip({\n exemplar,\n seriesLabels,\n containerId,\n format,\n pinnedPos,\n enablePinning = true,\n onUnpinClick,\n}: ExemplarMetadataTooltipProps): ReactElement | null {\n const { formatWithUserTimeZone } = useTimeZone();\n const mousePos = useMousePosition();\n const { height, width, ref: tooltipRef } = useResizeObserver<HTMLDivElement>();\n\n const isPinned = pinnedPos !== null;\n if (!isPinned && mousePos === null) return null;\n\n const containerElement = containerId ? document.querySelector(containerId) : undefined;\n const maxHeight = containerElement ? containerElement.getBoundingClientRect().height : undefined;\n // Fall back to the pinned position: a pinned tooltip can render before any mousemove happened.\n const transform = assembleTransform(mousePos ?? pinnedPos, pinnedPos, height ?? 0, width ?? 0, containerElement);\n\n const { labels, value, timestamp } = exemplar;\n const formattedValue = formatValue(value, format);\n const date = new Date(timestamp);\n const formattedDate = formatWithUserTimeZone(date, 'MMM dd, yyyy - ');\n const formattedTime = formatWithUserTimeZone(date, 'HH:mm:ss');\n\n // Only sections with content take part in the layout, so no divider is left dangling\n // when a label set is empty.\n const sections: Array<{ key: string; content: ReactElement }> = [];\n if (seriesLabels && Object.keys(seriesLabels).length > 0) {\n sections.push({ key: 'series-labels', content: <LabelGrid title=\"Series labels\" labels={seriesLabels} /> });\n }\n if (Object.keys(labels).length > 0) {\n sections.push({ key: 'exemplar-labels', content: <LabelGrid title=\"Exemplar labels\" labels={labels} /> });\n }\n sections.push({\n key: 'value',\n content: (\n <Box>\n <Typography variant=\"overline\" component=\"div\">\n Value\n </Typography>\n <Typography fontWeight={700}>{formattedValue}</Typography>\n </Box>\n ),\n });\n\n return (\n <Portal container={containerElement}>\n <Box ref={tooltipRef} sx={(theme) => getTooltipStyles(theme, pinnedPos, maxHeight)} style={{ transform }}>\n <Stack spacing={0.5}>\n <Box\n sx={(theme) => ({\n width: '100%',\n maxWidth: TOOLTIP_MAX_WIDTH,\n padding: theme.spacing(1.5, 2, 0.5, 2),\n backgroundColor: theme.palette.designSystem?.grey[800] ?? TOOLTIP_BG_COLOR_FALLBACK,\n position: 'sticky',\n top: 0,\n left: 0,\n })}\n >\n <Box sx={{ display: 'flex', alignItems: 'center', paddingBottom: 0.5, width: '100%' }}>\n <Box sx={{ flexGrow: 1, minWidth: 0 }}>\n <Typography\n variant=\"caption\"\n sx={(theme) => ({\n color: theme.palette.common.white,\n })}\n >\n {formattedDate}\n </Typography>\n <Typography variant=\"caption\">\n <strong>{formattedTime}</strong>\n </Typography>\n </Box>\n {enablePinning && (\n <Stack direction=\"row\" alignItems=\"center\" sx={{ marginLeft: 1, flexShrink: 0 }}>\n <Typography sx={{ marginRight: 0.5, fontSize: 11, verticalAlign: 'middle' }}>\n {isPinned ? UNPIN_TOOLTIP_HELP_TEXT : PIN_TOOLTIP_HELP_TEXT}\n </Typography>\n {isPinned ? (\n <IconButton\n aria-label={UNPIN_TOOLTIP_HELP_TEXT}\n onClick={() => {\n if (onUnpinClick !== undefined) onUnpinClick();\n }}\n sx={{ padding: 0, color: 'inherit' }}\n >\n <Pin sx={{ fontSize: 16 }} />\n </IconButton>\n ) : (\n <PinOutline sx={{ fontSize: 16 }} />\n )}\n </Stack>\n )}\n </Box>\n <Divider sx={(theme) => ({ width: '100%', borderColor: theme.palette.grey['500'] })} />\n </Box>\n <Stack spacing={1} sx={(theme) => ({ padding: theme.spacing(0.5, 2, 1.5, 2) })}>\n {sections.map((section, index) => (\n <Fragment key={section.key}>\n {index > 0 && <Divider sx={(theme) => ({ borderColor: theme.palette.grey['500'] })} />}\n {section.content}\n </Fragment>\n ))}\n </Stack>\n </Stack>\n </Box>\n </Portal>\n );\n}\n\nfunction LabelGrid({ title, labels }: { title: string; labels: Labels }): ReactElement {\n const entries = Object.entries(labels);\n return (\n <Box>\n <Typography variant=\"overline\" component=\"div\">\n {title}\n </Typography>\n <Box\n sx={{\n display: 'grid',\n // The first column is sized by the longest label name, so all values line up\n // at the same horizontal position.\n gridTemplateColumns: 'minmax(0, max-content) minmax(0, 1fr)',\n columnGap: 0.5,\n rowGap: 0.25,\n }}\n >\n {entries.map(([labelName, labelValue]) => (\n <Fragment key={labelName}>\n <Typography sx={{ wordBreak: 'break-all' }}>{labelName}:</Typography>\n <Typography fontWeight={700} sx={{ wordBreak: 'break-all' }}>\n {labelValue}\n </Typography>\n </Fragment>\n ))}\n </Box>\n </Box>\n );\n}\n"],"names":["Box","Divider","IconButton","Portal","Stack","Typography","Pin","PinOutline","Fragment","useResizeObserver","useTimeZone","formatValue","assembleTransform","getTooltipStyles","PIN_TOOLTIP_HELP_TEXT","TOOLTIP_BG_COLOR_FALLBACK","TOOLTIP_MAX_WIDTH","UNPIN_TOOLTIP_HELP_TEXT","useMousePosition","ExemplarMetadataTooltip","exemplar","seriesLabels","containerId","format","pinnedPos","enablePinning","onUnpinClick","formatWithUserTimeZone","mousePos","height","width","ref","tooltipRef","isPinned","containerElement","document","querySelector","undefined","maxHeight","getBoundingClientRect","transform","labels","value","timestamp","formattedValue","date","Date","formattedDate","formattedTime","sections","Object","keys","length","push","key","content","LabelGrid","title","variant","component","fontWeight","container","sx","theme","style","spacing","maxWidth","padding","backgroundColor","palette","designSystem","grey","position","top","left","display","alignItems","paddingBottom","flexGrow","minWidth","color","common","white","strong","direction","marginLeft","flexShrink","marginRight","fontSize","verticalAlign","aria-label","onClick","borderColor","map","section","index","entries","gridTemplateColumns","columnGap","row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;gDAAE6B,aAAa7B,MAAMM,OAAO,CAACE,IAAI,CAAC,MAAM;4CAAC,CAAA;;oCAC/EuB,QAAQvC,OAAO;;+BAFHuC,QAAQxC,GAAG;;;;;;AAUxC;AAEA,SAASE,UAAU,EAAEC,KAAK,EAAEhB,MAAM,EAAqC;IACrE,MAAMuD,UAAU9C,OAAO8C,OAAO,CAACvD;IAC/B,qBACE,MAACzC;;0BACC,KAACK;gBAAWqD,SAAQ;gBAAWC,WAAU;0BACtCF;;0BAEH,KAACzD;gBACC8D,IAAI;oBACFa,SAAS;oBACT,6EAA6E;oBAC7E,mCAAmC;oBACnCsB,qBAAqB;oBACrBC,WAAW;oBACXC,QAAQ;gBACV;0BAECH,QAAQH,GAAG,CAAC,CAAC,CAACO,WAAWC,WAAW,iBACnC,MAAC7F;;0CACC,MAACH;gCAAWyD,IAAI;oCAAEwC,WAAW;gCAAY;;oCAAIF;oCAAU;;;0CACvD,KAAC/F;gCAAWuD,YAAY;gCAAKE,IAAI;oCAAEwC,WAAW;gCAAY;0CACvDD;;;uBAHUD;;;;AAUzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ExemplarMetadata/index.ts"],"names":[],"mappings":"AAYA,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
// See the License for the specific language governing permissions and
|
|
11
|
+
// limitations under the License.
|
|
12
|
+
export * from "./ExemplarMetadataTooltip.js";
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/ExemplarMetadata/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './ExemplarMetadataTooltip';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,+BAA4B"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAg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S,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./ColorPicker/index.js";
|
|
|
15
15
|
export * from "./ContentWithLegend/index.js";
|
|
16
16
|
export * from "./controls/index.js";
|
|
17
17
|
export * from "./Dialog/index.js";
|
|
18
|
+
export * from "./ExemplarMetadata/index.js";
|
|
18
19
|
export * from "./DensitySelector/index.js";
|
|
19
20
|
export * from "./DragAndDrop/index.js";
|
|
20
21
|
export * from "./Drawer/index.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './AlignSelector';\nexport * from './ColorPicker';\nexport * from './ContentWithLegend';\nexport * from './controls';\nexport * from './Dialog';\nexport * from './DensitySelector';\nexport * from './DragAndDrop';\nexport * from './Drawer';\nexport * from './EChart';\nexport * from './ErrorAlert';\nexport * from './ErrorBoundary';\nexport * from './FontSizeSelector';\nexport * from './FormEditor';\nexport * from './InfoTooltip';\nexport * from './JSONEditor';\nexport * from './Legend';\nexport * from './LinksEditor';\nexport * from './ModeSelector';\nexport * from './OptionsEditorLayout';\nexport * from './Overlay';\nexport * from './SettingsAutocomplete';\nexport * from './SortSelector';\nexport * from './Table';\nexport * from './ThresholdsEditor';\nexport * from './TimeRangeSelector';\nexport * from './TimeZoneSelector';\nexport * from './TimeSeriesTooltip';\nexport * from './ToolbarIconButton';\nexport * from './FormatControls';\nexport * from './YAxisLabel';\nexport * from './context';\nexport * from './utils';\nexport * from './model';\nexport * from './test-utils';\nexport * from './theme';\nexport * from './TransformsEditor';\nexport * from './RefreshIntervalPicker';\nexport * from './RepeatGrid';\nexport * from './ValueMappingEditor';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,2BAAkB;AAChC,cAAc,yBAAgB;AAC9B,cAAc,+BAAsB;AACpC,cAAc,sBAAa;AAC3B,cAAc,oBAAW;AACzB,cAAc,6BAAoB;AAClC,cAAc,yBAAgB;AAC9B,cAAc,oBAAW;AACzB,cAAc,oBAAW;AACzB,cAAc,kBAAe;AAC7B,cAAc,qBAAkB;AAChC,cAAc,8BAAqB;AACnC,cAAc,wBAAe;AAC7B,cAAc,yBAAgB;AAC9B,cAAc,kBAAe;AAC7B,cAAc,oBAAW;AACzB,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,iCAAwB;AACtC,cAAc,qBAAY;AAC1B,cAAc,kCAAyB;AACvC,cAAc,0BAAiB;AAC/B,cAAc,mBAAU;AACxB,cAAc,8BAAqB;AACnC,cAAc,+BAAsB;AACpC,cAAc,wBAAqB;AACnC,cAAc,+BAAsB;AACpC,cAAc,+BAAsB;AACpC,cAAc,4BAAmB;AACjC,cAAc,kBAAe;AAC7B,cAAc,qBAAY;AAC1B,cAAc,mBAAU;AACxB,cAAc,mBAAU;AACxB,cAAc,wBAAe;AAC7B,cAAc,mBAAU;AACxB,cAAc,8BAAqB;AACnC,cAAc,mCAA0B;AACxC,cAAc,wBAAe;AAC7B,cAAc,gCAAuB"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './AlignSelector';\nexport * from './ColorPicker';\nexport * from './ContentWithLegend';\nexport * from './controls';\nexport * from './Dialog';\nexport * from './ExemplarMetadata';\nexport * from './DensitySelector';\nexport * from './DragAndDrop';\nexport * from './Drawer';\nexport * from './EChart';\nexport * from './ErrorAlert';\nexport * from './ErrorBoundary';\nexport * from './FontSizeSelector';\nexport * from './FormEditor';\nexport * from './InfoTooltip';\nexport * from './JSONEditor';\nexport * from './Legend';\nexport * from './LinksEditor';\nexport * from './ModeSelector';\nexport * from './OptionsEditorLayout';\nexport * from './Overlay';\nexport * from './SettingsAutocomplete';\nexport * from './SortSelector';\nexport * from './Table';\nexport * from './ThresholdsEditor';\nexport * from './TimeRangeSelector';\nexport * from './TimeZoneSelector';\nexport * from './TimeSeriesTooltip';\nexport * from './ToolbarIconButton';\nexport * from './FormatControls';\nexport * from './YAxisLabel';\nexport * from './context';\nexport * from './utils';\nexport * from './model';\nexport * from './test-utils';\nexport * from './theme';\nexport * from './TransformsEditor';\nexport * from './RefreshIntervalPicker';\nexport * from './RepeatGrid';\nexport * from './ValueMappingEditor';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,2BAAkB;AAChC,cAAc,yBAAgB;AAC9B,cAAc,+BAAsB;AACpC,cAAc,sBAAa;AAC3B,cAAc,oBAAW;AACzB,cAAc,8BAAqB;AACnC,cAAc,6BAAoB;AAClC,cAAc,yBAAgB;AAC9B,cAAc,oBAAW;AACzB,cAAc,oBAAW;AACzB,cAAc,kBAAe;AAC7B,cAAc,qBAAkB;AAChC,cAAc,8BAAqB;AACnC,cAAc,wBAAe;AAC7B,cAAc,yBAAgB;AAC9B,cAAc,kBAAe;AAC7B,cAAc,oBAAW;AACzB,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,iCAAwB;AACtC,cAAc,qBAAY;AAC1B,cAAc,kCAAyB;AACvC,cAAc,0BAAiB;AAC/B,cAAc,mBAAU;AACxB,cAAc,8BAAqB;AACnC,cAAc,+BAAsB;AACpC,cAAc,wBAAqB;AACnC,cAAc,+BAAsB;AACpC,cAAc,+BAAsB;AACpC,cAAc,4BAAmB;AACjC,cAAc,kBAAe;AAC7B,cAAc,qBAAY;AAC1B,cAAc,mBAAU;AACxB,cAAc,mBAAU;AACxB,cAAc,wBAAe;AAC7B,cAAc,mBAAU;AACxB,cAAc,8BAAqB;AACnC,cAAc,mCAA0B;AACxC,cAAc,wBAAe;AAC7B,cAAc,gCAAuB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perses-dev/components",
|
|
3
|
-
"version": "0.55.0-beta.
|
|
3
|
+
"version": "0.55.0-beta.9",
|
|
4
4
|
"description": "Common UI components used across Perses features",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/perses/perses/blob/main/README.md",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@date-fns/tz": "^1.4.1",
|
|
35
35
|
"@fontsource/inter": "^5.0.0",
|
|
36
36
|
"@mui/x-date-pickers": "^7.23.1",
|
|
37
|
-
"@perses-dev/spec": "0.3.0-beta.
|
|
38
|
-
"@perses-dev/client": "0.55.0-beta.
|
|
37
|
+
"@perses-dev/spec": "0.3.0-beta.8",
|
|
38
|
+
"@perses-dev/client": "0.55.0-beta.9",
|
|
39
39
|
"numbro": "^2.3.6",
|
|
40
40
|
"@tanstack/match-sorter-utils": "^8.19.4",
|
|
41
41
|
"@tanstack/react-table": "^8.20.5",
|