@zsherman/charts 0.0.0-stage → 0.1.0
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/CHANGELOG.md +7 -0
- package/LICENSE +373 -0
- package/README.md +13 -2
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/dom/bar-list/bar-list.js +386 -0
- package/dist/dom/bar-list/bar-list.styles.js +171 -0
- package/dist/dom/bar-list/index.js +1 -0
- package/dist/dom/chart/chart.js +716 -0
- package/dist/dom/chart/chart.styles.js +165 -0
- package/dist/dom/chart/index.js +1 -0
- package/dist/dom/chart-grid/chart-grid.js +67 -0
- package/dist/dom/chart-grid/index.js +1 -0
- package/dist/dom/donut/donut.js +565 -0
- package/dist/dom/donut/donut.styles.js +111 -0
- package/dist/dom/donut/index.js +1 -0
- package/dist/dom/heat-graph/calendar.js +118 -0
- package/dist/dom/heat-graph/heat-graph.js +423 -0
- package/dist/dom/heat-graph/heat-graph.styles.js +168 -0
- package/dist/dom/heat-graph/index.js +1 -0
- package/dist/dom/heat-matrix/heat-matrix.js +346 -0
- package/dist/dom/heat-matrix/heat-matrix.styles.js +155 -0
- package/dist/dom/heat-matrix/index.js +1 -0
- package/dist/dom/heat-matrix/model.js +41 -0
- package/dist/dom/index.js +13 -0
- package/dist/dom/internal/colors.js +44 -0
- package/dist/dom/internal/floating-tip.js +83 -0
- package/dist/dom/internal/format.js +43 -0
- package/dist/dom/internal/grid-context.js +5 -0
- package/dist/dom/internal/hidden.styles.js +16 -0
- package/dist/dom/internal/legend.js +112 -0
- package/dist/dom/internal/legend.styles.js +108 -0
- package/dist/dom/internal/markers.js +101 -0
- package/dist/dom/internal/options.js +300 -0
- package/dist/dom/internal/place.js +27 -0
- package/dist/dom/internal/scheme-watch.js +73 -0
- package/dist/dom/internal/share.js +28 -0
- package/dist/dom/internal/types.js +0 -0
- package/dist/dom/row-chart/index.js +1 -0
- package/dist/dom/row-chart/model.js +59 -0
- package/dist/dom/row-chart/row-chart.js +691 -0
- package/dist/dom/row-chart/row-chart.styles.js +242 -0
- package/dist/dom/segmented-bar/index.js +1 -0
- package/dist/dom/segmented-bar/segmented-bar.js +280 -0
- package/dist/dom/segmented-bar/segmented-bar.styles.js +88 -0
- package/dist/dom/sparkline/index.js +1 -0
- package/dist/dom/sparkline/sparkline.js +145 -0
- package/dist/dom/stacked-histogram/histogram.js +137 -0
- package/dist/dom/stacked-histogram/index.js +1 -0
- package/dist/dom/stacked-histogram/stacked-histogram.js +761 -0
- package/dist/dom/stacked-histogram/stacked-histogram.styles.js +211 -0
- package/dist/dom/state-timeline/index.js +1 -0
- package/dist/dom/state-timeline/model.js +166 -0
- package/dist/dom/state-timeline/state-timeline.js +729 -0
- package/dist/dom/state-timeline/state-timeline.styles.js +171 -0
- package/dist/dom/status-history/index.js +1 -0
- package/dist/dom/status-history/status-history.js +542 -0
- package/dist/dom/status-history/status-history.styles.js +171 -0
- package/dist/solid/bar-list/bar-list.jsx +139 -0
- package/dist/solid/bar-list/bar-list.styles.jsx +171 -0
- package/dist/solid/bar-list/index.jsx +1 -0
- package/dist/solid/chart/chart.jsx +454 -0
- package/dist/solid/chart/chart.styles.jsx +165 -0
- package/dist/solid/chart/index.jsx +1 -0
- package/dist/solid/chart-grid/chart-grid.jsx +46 -0
- package/dist/solid/chart-grid/index.jsx +1 -0
- package/dist/solid/donut/donut.jsx +291 -0
- package/dist/solid/donut/donut.styles.jsx +111 -0
- package/dist/solid/donut/index.jsx +1 -0
- package/dist/solid/heat-graph/calendar.jsx +118 -0
- package/dist/solid/heat-graph/heat-graph.jsx +228 -0
- package/dist/solid/heat-graph/heat-graph.styles.jsx +168 -0
- package/dist/solid/heat-graph/index.jsx +1 -0
- package/dist/solid/heat-matrix/heat-matrix.jsx +165 -0
- package/dist/solid/heat-matrix/heat-matrix.styles.jsx +155 -0
- package/dist/solid/heat-matrix/index.jsx +1 -0
- package/dist/solid/heat-matrix/model.jsx +41 -0
- package/dist/solid/index.jsx +13 -0
- package/dist/solid/internal/colors.jsx +44 -0
- package/dist/solid/internal/floating-tip.jsx +68 -0
- package/dist/solid/internal/format.jsx +43 -0
- package/dist/solid/internal/grid-context.jsx +5 -0
- package/dist/solid/internal/hidden.styles.jsx +16 -0
- package/dist/solid/internal/legend.jsx +35 -0
- package/dist/solid/internal/legend.styles.jsx +108 -0
- package/dist/solid/internal/markers.jsx +101 -0
- package/dist/solid/internal/options.jsx +300 -0
- package/dist/solid/internal/place.jsx +27 -0
- package/dist/solid/internal/scheme-watch.jsx +73 -0
- package/dist/solid/internal/share.jsx +28 -0
- package/dist/solid/internal/types.jsx +0 -0
- package/dist/solid/row-chart/index.jsx +1 -0
- package/dist/solid/row-chart/model.jsx +59 -0
- package/dist/solid/row-chart/row-chart.jsx +312 -0
- package/dist/solid/row-chart/row-chart.styles.jsx +242 -0
- package/dist/solid/segmented-bar/index.jsx +1 -0
- package/dist/solid/segmented-bar/segmented-bar.jsx +125 -0
- package/dist/solid/segmented-bar/segmented-bar.styles.jsx +88 -0
- package/dist/solid/sparkline/index.jsx +1 -0
- package/dist/solid/sparkline/sparkline.jsx +88 -0
- package/dist/solid/stacked-histogram/histogram.jsx +137 -0
- package/dist/solid/stacked-histogram/index.jsx +1 -0
- package/dist/solid/stacked-histogram/stacked-histogram.jsx +381 -0
- package/dist/solid/stacked-histogram/stacked-histogram.styles.jsx +211 -0
- package/dist/solid/state-timeline/index.jsx +1 -0
- package/dist/solid/state-timeline/model.jsx +166 -0
- package/dist/solid/state-timeline/state-timeline.jsx +387 -0
- package/dist/solid/state-timeline/state-timeline.styles.jsx +171 -0
- package/dist/solid/status-history/index.jsx +1 -0
- package/dist/solid/status-history/status-history.jsx +279 -0
- package/dist/solid/status-history/status-history.styles.jsx +171 -0
- package/dist/styles.css +1 -0
- package/dist/types/bar-list/bar-list.d.ts +91 -0
- package/dist/types/bar-list/bar-list.styles.d.ts +148 -0
- package/dist/types/bar-list/index.d.ts +3 -0
- package/dist/types/chart/chart.d.ts +98 -0
- package/dist/types/chart/chart.styles.d.ts +145 -0
- package/dist/types/chart/index.d.ts +3 -0
- package/dist/types/chart-grid/chart-grid.d.ts +35 -0
- package/dist/types/chart-grid/index.d.ts +2 -0
- package/dist/types/donut/donut.d.ts +124 -0
- package/dist/types/donut/donut.styles.d.ts +96 -0
- package/dist/types/donut/index.d.ts +3 -0
- package/dist/types/heat-graph/calendar.d.ts +61 -0
- package/dist/types/heat-graph/heat-graph.d.ts +82 -0
- package/dist/types/heat-graph/heat-graph.styles.d.ts +141 -0
- package/dist/types/heat-graph/index.d.ts +4 -0
- package/dist/types/heat-matrix/heat-matrix.d.ts +65 -0
- package/dist/types/heat-matrix/heat-matrix.styles.d.ts +135 -0
- package/dist/types/heat-matrix/index.d.ts +3 -0
- package/dist/types/heat-matrix/model.d.ts +15 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/internal/colors.d.ts +22 -0
- package/dist/types/internal/floating-tip.d.ts +15 -0
- package/dist/types/internal/format.d.ts +7 -0
- package/dist/types/internal/grid-context.d.ts +9 -0
- package/dist/types/internal/hidden.styles.d.ts +15 -0
- package/dist/types/internal/legend.d.ts +18 -0
- package/dist/types/internal/legend.styles.d.ts +96 -0
- package/dist/types/internal/markers.d.ts +16 -0
- package/dist/types/internal/options.d.ts +59 -0
- package/dist/types/internal/place.d.ts +20 -0
- package/dist/types/internal/scheme-watch.d.ts +12 -0
- package/dist/types/internal/share.d.ts +19 -0
- package/dist/types/internal/types.d.ts +163 -0
- package/dist/types/row-chart/index.d.ts +4 -0
- package/dist/types/row-chart/model.d.ts +50 -0
- package/dist/types/row-chart/row-chart.d.ts +148 -0
- package/dist/types/row-chart/row-chart.styles.d.ts +216 -0
- package/dist/types/segmented-bar/index.d.ts +3 -0
- package/dist/types/segmented-bar/segmented-bar.d.ts +65 -0
- package/dist/types/segmented-bar/segmented-bar.styles.d.ts +75 -0
- package/dist/types/sparkline/index.d.ts +3 -0
- package/dist/types/sparkline/sparkline.d.ts +38 -0
- package/dist/types/stacked-histogram/histogram.d.ts +48 -0
- package/dist/types/stacked-histogram/index.d.ts +4 -0
- package/dist/types/stacked-histogram/stacked-histogram.d.ts +73 -0
- package/dist/types/stacked-histogram/stacked-histogram.styles.d.ts +187 -0
- package/dist/types/state-timeline/index.d.ts +3 -0
- package/dist/types/state-timeline/model.d.ts +63 -0
- package/dist/types/state-timeline/state-timeline.d.ts +108 -0
- package/dist/types/state-timeline/state-timeline.styles.d.ts +151 -0
- package/dist/types/status-history/index.d.ts +3 -0
- package/dist/types/status-history/status-history.d.ts +72 -0
- package/dist/types/status-history/status-history.styles.d.ts +150 -0
- package/docs/api.json +1346 -0
- package/docs/bar-list.md +190 -0
- package/docs/chart-grid.md +77 -0
- package/docs/chart.md +355 -0
- package/docs/donut.md +182 -0
- package/docs/heat-graph.md +121 -0
- package/docs/heat-matrix.md +108 -0
- package/docs/llms.txt +68 -0
- package/docs/row-chart.md +193 -0
- package/docs/search-index.json +291 -0
- package/docs/segmented-bar.md +128 -0
- package/docs/sparkline.md +82 -0
- package/docs/stacked-histogram.md +123 -0
- package/docs/state-timeline.md +141 -0
- package/docs/status-history.md +121 -0
- package/package.json +104 -4
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import "@stylexjs/stylex";
|
|
2
|
+
// src/state-timeline/state-timeline.styles.ts
|
|
3
|
+
const styles = {
|
|
4
|
+
root: {
|
|
5
|
+
kB7OPa: "x9f619",
|
|
6
|
+
k1xSpc: "xrvj5dj",
|
|
7
|
+
kOIVth: "xgtrjx6",
|
|
8
|
+
k7Eaqz: "xeuugli",
|
|
9
|
+
kMv6JI: "x13rcfk",
|
|
10
|
+
kGuDYH: "x409pna",
|
|
11
|
+
kLWn49: "xau0z5x",
|
|
12
|
+
kMwMTN: "x1yjpjgc",
|
|
13
|
+
$$css: true
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
k1xSpc: "x78zum5",
|
|
17
|
+
kwnvtZ: "x1a02dak",
|
|
18
|
+
k1C7PZ: "x1lcxfya",
|
|
19
|
+
khm7nJ: "x1xpjfrv",
|
|
20
|
+
kogj98: "x1ghz6dp",
|
|
21
|
+
kmVPX3: "x1717udv",
|
|
22
|
+
kB88ic: "xe8uvvx",
|
|
23
|
+
kGuDYH: "xb5fjo1",
|
|
24
|
+
kMwMTN: "xe2mk2a",
|
|
25
|
+
$$css: true
|
|
26
|
+
},
|
|
27
|
+
legendItem: {
|
|
28
|
+
k1xSpc: "x3nfvp2",
|
|
29
|
+
kGNEyG: "x6s0dn4",
|
|
30
|
+
kOIVth: "x1xuqxfr",
|
|
31
|
+
$$css: true
|
|
32
|
+
},
|
|
33
|
+
swatch: {
|
|
34
|
+
kmuXW: "x2lah0s",
|
|
35
|
+
kzqmXN: "x1e7hgle",
|
|
36
|
+
kZKoxP: "x1qa65zt",
|
|
37
|
+
kaIpWk: "x1cum3z5",
|
|
38
|
+
kWkggS: "xrmkqiu",
|
|
39
|
+
kAXs8y: "x1kzknox",
|
|
40
|
+
$$css: true
|
|
41
|
+
},
|
|
42
|
+
plot: {
|
|
43
|
+
kVAEAm: "x1n2onr6",
|
|
44
|
+
k1xSpc: "xrvj5dj",
|
|
45
|
+
kumcoG: "x19zelgp",
|
|
46
|
+
k1C7PZ: "xa2zc0e",
|
|
47
|
+
k7Eaqz: "xeuugli",
|
|
48
|
+
kaIpWk: "x1b6xorz",
|
|
49
|
+
k3XXqK: "x1t137rt x9v5kkp",
|
|
50
|
+
kMeerF: "x1de99jn",
|
|
51
|
+
kInvED: "x2wh2y9",
|
|
52
|
+
kjBf7l: "xi1ptex x1x84bn5",
|
|
53
|
+
$$css: true
|
|
54
|
+
},
|
|
55
|
+
rows: {
|
|
56
|
+
k1xSpc: "xrvj5dj",
|
|
57
|
+
kBCFzs: "x1osaytk",
|
|
58
|
+
kumcoG: "x4w6khx",
|
|
59
|
+
khm7nJ: "x1nhl685",
|
|
60
|
+
kogj98: "x1ghz6dp",
|
|
61
|
+
kmVPX3: "x1717udv",
|
|
62
|
+
kB88ic: "xe8uvvx",
|
|
63
|
+
$$css: true
|
|
64
|
+
},
|
|
65
|
+
row: {
|
|
66
|
+
k1xSpc: "xrvj5dj",
|
|
67
|
+
kBCFzs: "x1osaytk",
|
|
68
|
+
kumcoG: "x4w6khx",
|
|
69
|
+
kGNEyG: "x6s0dn4",
|
|
70
|
+
k7Eaqz: "xeuugli",
|
|
71
|
+
$$css: true
|
|
72
|
+
},
|
|
73
|
+
label: {
|
|
74
|
+
k7Eaqz: "xeuugli",
|
|
75
|
+
kVQacm: "xb3r6kr",
|
|
76
|
+
kg5iWk: "xlyipyv",
|
|
77
|
+
khDVqt: "xuxw1ft",
|
|
78
|
+
k9WMMc: "xp4054r",
|
|
79
|
+
kGuDYH: "xb5fjo1",
|
|
80
|
+
k63SB2: "x1lyc3gu xfbqhvr",
|
|
81
|
+
kMwMTN: "xe2mk2a x1qjambr",
|
|
82
|
+
$$css: true
|
|
83
|
+
},
|
|
84
|
+
track: {
|
|
85
|
+
k1xSpc: "x1lliihq",
|
|
86
|
+
kzqmXN: "xh8yej3",
|
|
87
|
+
kZKoxP: "xtu93z8",
|
|
88
|
+
kaIpWk: "x1cum3z5",
|
|
89
|
+
kWkggS: "x1rjxnwd",
|
|
90
|
+
kAXs8y: "x1kzknox",
|
|
91
|
+
$$css: true
|
|
92
|
+
},
|
|
93
|
+
axis: {
|
|
94
|
+
kVAEAm: "x1n2onr6",
|
|
95
|
+
kBCFzs: "x1npkx4u",
|
|
96
|
+
kZKoxP: "xmll18r",
|
|
97
|
+
keoZOQ: "x108si3",
|
|
98
|
+
kGuDYH: "xb5fjo1",
|
|
99
|
+
kMwMTN: "xe2mk2a",
|
|
100
|
+
kcqcaj: "xss6m8b",
|
|
101
|
+
$$css: true
|
|
102
|
+
},
|
|
103
|
+
tick: {
|
|
104
|
+
kVAEAm: "x10l6tqk",
|
|
105
|
+
k87sOh: "x13vifvy",
|
|
106
|
+
khDVqt: "xuxw1ft",
|
|
107
|
+
kIY38u: "x16n82f9",
|
|
108
|
+
kQ0QjF: "xa7awgv",
|
|
109
|
+
$$css: true
|
|
110
|
+
},
|
|
111
|
+
cursor: {
|
|
112
|
+
kVAEAm: "x10l6tqk",
|
|
113
|
+
k87sOh: "x13vifvy",
|
|
114
|
+
kzqmXN: "x1i1rx1s",
|
|
115
|
+
kfzvcC: "x47corl",
|
|
116
|
+
kWkggS: "x1878pr6 xwvh9j7",
|
|
117
|
+
kSiTet: "x1ks1olk",
|
|
118
|
+
kAXs8y: "x1kzknox",
|
|
119
|
+
$$css: true
|
|
120
|
+
},
|
|
121
|
+
tooltip: {
|
|
122
|
+
kB7OPa: "x9f619",
|
|
123
|
+
k1xSpc: "xrvj5dj",
|
|
124
|
+
kOIVth: "xz09phk",
|
|
125
|
+
k7Eaqz: "xuu4ctt",
|
|
126
|
+
ks0D6T: "xsbr6jr",
|
|
127
|
+
k8WAf4: "xqy2vlu",
|
|
128
|
+
kg3NbH: "xxobuei",
|
|
129
|
+
kWkggS: "xm9f0jk",
|
|
130
|
+
kMwMTN: "x1yjpjgc",
|
|
131
|
+
kMzoRj: "xmkeg23",
|
|
132
|
+
ksu8eU: "x1y0btm7",
|
|
133
|
+
kVAM5u: "x1wpxzwl x1w1tqly",
|
|
134
|
+
kaIpWk: "x1ttroej",
|
|
135
|
+
kGVxlE: "xfw8du2",
|
|
136
|
+
kGuDYH: "xb5fjo1",
|
|
137
|
+
kLWn49: "xau0z5x",
|
|
138
|
+
$$css: true
|
|
139
|
+
},
|
|
140
|
+
tooltipHeading: {
|
|
141
|
+
k63SB2: "x1vmg6u2",
|
|
142
|
+
kHjlTd: "xj0a0fe",
|
|
143
|
+
$$css: true
|
|
144
|
+
},
|
|
145
|
+
tooltipMuted: {
|
|
146
|
+
kMwMTN: "xe2mk2a",
|
|
147
|
+
kcqcaj: "xss6m8b",
|
|
148
|
+
kQ0QjF: "xa7awgv",
|
|
149
|
+
$$css: true
|
|
150
|
+
},
|
|
151
|
+
tooltipState: {
|
|
152
|
+
k1xSpc: "x78zum5",
|
|
153
|
+
kGNEyG: "x6s0dn4",
|
|
154
|
+
kOIVth: "x8rwxmg",
|
|
155
|
+
$$css: true
|
|
156
|
+
},
|
|
157
|
+
tooltipValue: {
|
|
158
|
+
keTefX: "xvc5jky",
|
|
159
|
+
kcqcaj: "xss6m8b",
|
|
160
|
+
k63SB2: "x1vmg6u2",
|
|
161
|
+
kQ0QjF: "xa7awgv",
|
|
162
|
+
$$css: true
|
|
163
|
+
},
|
|
164
|
+
empty: {
|
|
165
|
+
kogj98: "x1ghz6dp",
|
|
166
|
+
k8WAf4: "x5eapc7",
|
|
167
|
+
kMwMTN: "xe2mk2a",
|
|
168
|
+
$$css: true
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
export { styles };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatusHistory } from "./status-history.jsx";
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { cssColor } from "../internal/colors.jsx";
|
|
2
|
+
import { fills, styles } from "./status-history.styles.jsx";
|
|
3
|
+
import * as stylex from "@stylexjs/stylex";
|
|
4
|
+
import { useLocale, useMessages } from "@zsherman/kit/locale-provider";
|
|
5
|
+
import { For, Show, createEffect, createMemo, createSignal, omit } from "solid-js";
|
|
6
|
+
// src/status-history/status-history.tsx
|
|
7
|
+
const STATES = [
|
|
8
|
+
"success",
|
|
9
|
+
"degraded",
|
|
10
|
+
"error",
|
|
11
|
+
"unknown"
|
|
12
|
+
];
|
|
13
|
+
const DEFAULT_LABELS = {
|
|
14
|
+
success: "Healthy",
|
|
15
|
+
degraded: "Degraded",
|
|
16
|
+
error: "Failed",
|
|
17
|
+
unknown: "No data"
|
|
18
|
+
};
|
|
19
|
+
const DAY = 864e5;
|
|
20
|
+
const toDate = (t) => t instanceof Date ? t : new Date(t);
|
|
21
|
+
/**
|
|
22
|
+
* A row of bars, one per check interval, colored by what the check found: healthy, degraded, failed or no
|
|
23
|
+
* data. For the recent health of one service on a monitor card. A grid with one tab stop: the arrow keys move
|
|
24
|
+
* by interval, each bar is named with its time and state, and the tooltip follows the pointer and the focus.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <StatusHistory label="Checkout, last 90 hours: 99% healthy, 1 failure" data={checks} title="Checkout" summary="99% uptime" />
|
|
28
|
+
*/
|
|
29
|
+
function StatusHistory(props) {
|
|
30
|
+
const rest = omit(props, "label", "data", "height", "gap", "title", "summary", "startLabel", "endLabel", "axis", "legend", "colors", "timeZone", "formatTime", "onSelectEntry", "labels", "class");
|
|
31
|
+
const locale = useLocale();
|
|
32
|
+
const messages = useMessages("statusHistory");
|
|
33
|
+
const word = (s) => props.labels?.[s] ?? messages()?.[s] ?? DEFAULT_LABELS[s];
|
|
34
|
+
const fill = (s) => {
|
|
35
|
+
const c = props.colors?.[s];
|
|
36
|
+
return c ? cssColor(c, 0) : fills[s];
|
|
37
|
+
};
|
|
38
|
+
/** The typical interval: whether times need a clock, and how the axis is written. */
|
|
39
|
+
const step = createMemo(() => {
|
|
40
|
+
const d = props.data;
|
|
41
|
+
if (d.length < 2) return DAY;
|
|
42
|
+
return Math.abs(toDate(d.at(-1).time).getTime() - toDate(d[0].time).getTime()) / (d.length - 1);
|
|
43
|
+
});
|
|
44
|
+
const formats = createMemo(() => {
|
|
45
|
+
const withTime = step() < DAY;
|
|
46
|
+
return {
|
|
47
|
+
long: new Intl.DateTimeFormat(locale(), {
|
|
48
|
+
...withTime ? {
|
|
49
|
+
dateStyle: "medium",
|
|
50
|
+
timeStyle: "short"
|
|
51
|
+
} : { dateStyle: "medium" },
|
|
52
|
+
timeZone: props.timeZone
|
|
53
|
+
}),
|
|
54
|
+
tick: new Intl.DateTimeFormat(locale(), withTime && step() * props.data.length < 2 * DAY ? {
|
|
55
|
+
hour: "numeric",
|
|
56
|
+
minute: "2-digit",
|
|
57
|
+
timeZone: props.timeZone
|
|
58
|
+
} : {
|
|
59
|
+
month: "short",
|
|
60
|
+
day: "numeric",
|
|
61
|
+
timeZone: props.timeZone
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
/** The bars with their words, computed once per data or locale change, so the cells render plain values. */
|
|
66
|
+
const bars = createMemo(() => {
|
|
67
|
+
const f = formats();
|
|
68
|
+
const format = props.formatTime ?? ((d) => f.long.format(d));
|
|
69
|
+
return props.data.map((entry, index) => {
|
|
70
|
+
const date = toDate(entry.time);
|
|
71
|
+
const time = format(date);
|
|
72
|
+
return {
|
|
73
|
+
entry,
|
|
74
|
+
index,
|
|
75
|
+
date,
|
|
76
|
+
time,
|
|
77
|
+
name: `${time}: ${word(entry.status)}${entry.note ? `. ${entry.note}` : ""}`
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* Up to five dates under the bars. Over days, a tick marks the first interval of each new day (thinned to
|
|
83
|
+
* fit); within a day, evenly spaced intervals with their times.
|
|
84
|
+
*/
|
|
85
|
+
const ticks = createMemo(() => {
|
|
86
|
+
const all = bars();
|
|
87
|
+
const n = all.length;
|
|
88
|
+
if (!props.axis || n === 0) return [];
|
|
89
|
+
const f = formats().tick;
|
|
90
|
+
const text = all.map((b) => f.format(b.date));
|
|
91
|
+
let picked = Array.from({ length: n }, (_v, i) => i).filter((i) => i > 0 && text[i] !== text[i - 1]);
|
|
92
|
+
if (picked.length < 2) {
|
|
93
|
+
const count = Math.min(n, 5);
|
|
94
|
+
picked = [...new Set(Array.from({ length: count }, (_v, k) => count === 1 ? 0 : Math.round(k * (n - 1) / (count - 1))))];
|
|
95
|
+
} else if (picked.length > 5) {
|
|
96
|
+
const every = Math.ceil(picked.length / 5);
|
|
97
|
+
picked = picked.filter((_i, k) => k % every === 0);
|
|
98
|
+
}
|
|
99
|
+
return picked.map((i) => {
|
|
100
|
+
const at = (i + .5) / n * 100;
|
|
101
|
+
return {
|
|
102
|
+
text: text[i],
|
|
103
|
+
left: `${at}%`,
|
|
104
|
+
align: at < 6 ? "start" : at > 94 ? "end" : "center"
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
const counts = createMemo(() => {
|
|
109
|
+
const out = {
|
|
110
|
+
success: 0,
|
|
111
|
+
degraded: 0,
|
|
112
|
+
error: 0,
|
|
113
|
+
unknown: 0
|
|
114
|
+
};
|
|
115
|
+
for (const e of props.data) out[e.status]++;
|
|
116
|
+
return out;
|
|
117
|
+
});
|
|
118
|
+
const [active, setActive] = createSignal();
|
|
119
|
+
const [tip, setTip] = createSignal();
|
|
120
|
+
const current = () => {
|
|
121
|
+
const n = bars().length;
|
|
122
|
+
const i = active();
|
|
123
|
+
return n === 0 ? void 0 : i !== void 0 && i < n ? i : n - 1;
|
|
124
|
+
};
|
|
125
|
+
let root;
|
|
126
|
+
let row;
|
|
127
|
+
const barAt = (i) => row?.querySelector(`[data-index="${i}"]`);
|
|
128
|
+
createEffect(current, (i) => {
|
|
129
|
+
if (!row) return;
|
|
130
|
+
for (const el of row.querySelectorAll("[tabindex=\"0\"]")) el.tabIndex = -1;
|
|
131
|
+
if (i !== void 0) {
|
|
132
|
+
const el = barAt(i);
|
|
133
|
+
if (el) el.tabIndex = 0;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
function showTip(i) {
|
|
137
|
+
const bar = barAt(i);
|
|
138
|
+
if (!bar) return;
|
|
139
|
+
const box = root.getBoundingClientRect();
|
|
140
|
+
const r = bar.getBoundingClientRect();
|
|
141
|
+
const x = r.left + r.width / 2 - box.left;
|
|
142
|
+
const align = x > box.width - 112 ? "end" : x < 112 ? "start" : "center";
|
|
143
|
+
const left = align === "end" ? r.right - box.left : align === "start" ? r.left - box.left : x;
|
|
144
|
+
setTip({
|
|
145
|
+
index: i,
|
|
146
|
+
left,
|
|
147
|
+
top: r.top - box.top,
|
|
148
|
+
align
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
const indexFrom = (event) => {
|
|
152
|
+
const v = event.target.closest("[data-index]")?.dataset["index"];
|
|
153
|
+
return v === void 0 ? void 0 : Number(v);
|
|
154
|
+
};
|
|
155
|
+
const select = (i) => {
|
|
156
|
+
const b = bars()[i];
|
|
157
|
+
if (b && props.onSelectEntry) props.onSelectEntry(b.entry, i);
|
|
158
|
+
};
|
|
159
|
+
function onKeyDown(event) {
|
|
160
|
+
const i = current();
|
|
161
|
+
if (i === void 0) return;
|
|
162
|
+
const last = bars().length - 1;
|
|
163
|
+
const rtl = getComputedStyle(root).direction === "rtl";
|
|
164
|
+
let next;
|
|
165
|
+
switch (event.key) {
|
|
166
|
+
case "ArrowLeft":
|
|
167
|
+
next = rtl ? i + 1 : i - 1;
|
|
168
|
+
break;
|
|
169
|
+
case "ArrowRight":
|
|
170
|
+
next = rtl ? i - 1 : i + 1;
|
|
171
|
+
break;
|
|
172
|
+
case "Home":
|
|
173
|
+
next = 0;
|
|
174
|
+
break;
|
|
175
|
+
case "End":
|
|
176
|
+
next = last;
|
|
177
|
+
break;
|
|
178
|
+
case "Enter":
|
|
179
|
+
case " ":
|
|
180
|
+
if (!props.onSelectEntry) return;
|
|
181
|
+
event.preventDefault();
|
|
182
|
+
select(i);
|
|
183
|
+
return;
|
|
184
|
+
case "Escape":
|
|
185
|
+
setTip(void 0);
|
|
186
|
+
return;
|
|
187
|
+
default: return;
|
|
188
|
+
}
|
|
189
|
+
event.preventDefault();
|
|
190
|
+
next = Math.max(0, Math.min(last, next));
|
|
191
|
+
setActive(next);
|
|
192
|
+
barAt(next)?.focus();
|
|
193
|
+
}
|
|
194
|
+
const Corners = (p) => <Show when={p.start != null || p.end != null}>
|
|
195
|
+
<div data-slot={`status-history-${p.placement}`} {...stylex.attrs(styles.corners, p.placement === "header" ? styles.header : styles.footer)}>
|
|
196
|
+
<Show when={p.start != null}>
|
|
197
|
+
<div {...stylex.attrs(styles.cornerStart, p.placement === "header" && styles.title)}>{p.start}</div>
|
|
198
|
+
</Show>
|
|
199
|
+
<Show when={p.end != null}>
|
|
200
|
+
<div {...stylex.attrs(styles.cornerEnd)}>{p.end}</div>
|
|
201
|
+
</Show>
|
|
202
|
+
</div>
|
|
203
|
+
</Show>;
|
|
204
|
+
return <div {...rest} ref={(el) => root = el} data-slot="status-history" class={[stylex.props(styles.root).className, props.class]} style={{
|
|
205
|
+
"--sh-height": `${props.height ?? 32}px`,
|
|
206
|
+
"--sh-gap": `${props.gap ?? 2}px`,
|
|
207
|
+
"--sh-count": String(Math.max(1, props.data.length))
|
|
208
|
+
}}>
|
|
209
|
+
<Corners placement="header" start={props.title} end={props.summary} />
|
|
210
|
+
<div role="grid" aria-label={props.label} aria-readonly="true" data-slot="status-history-grid">
|
|
211
|
+
<div ref={(el) => row = el} role="row" data-slot="status-history-bars" {...stylex.attrs(styles.bars)} onKeyDown={onKeyDown} onPointerOver={(e) => {
|
|
212
|
+
const i = indexFrom(e);
|
|
213
|
+
if (i !== void 0) showTip(i);
|
|
214
|
+
}} onPointerLeave={() => setTip(void 0)} onFocusIn={(e) => {
|
|
215
|
+
const i = indexFrom(e);
|
|
216
|
+
if (i !== void 0) {
|
|
217
|
+
setActive(i);
|
|
218
|
+
showTip(i);
|
|
219
|
+
}
|
|
220
|
+
}} onFocusOut={() => setTip(void 0)} onClick={(e) => {
|
|
221
|
+
const i = indexFrom(e);
|
|
222
|
+
if (i !== void 0) select(i);
|
|
223
|
+
}}>
|
|
224
|
+
<For each={bars()}>
|
|
225
|
+
{(b) => <div role="gridcell" data-index={b.index} data-status={b.entry.status} aria-label={b.name} aria-colindex={b.index + 1} tabindex={b.index === bars().length - 1 ? 0 : -1} {...stylex.attrs(styles.bar, props.onSelectEntry && styles.clickable)} style={{ "--sh-fill": fill(b.entry.status) }} />}
|
|
226
|
+
</For>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
<Show when={ticks().length}>
|
|
230
|
+
<div aria-hidden="true" data-slot="status-history-axis" {...stylex.attrs(styles.axis)}>
|
|
231
|
+
<For each={ticks()} keyed={false}>
|
|
232
|
+
{(t) => <span {...stylex.attrs(styles.tick)} style={{
|
|
233
|
+
"inset-inline-start": t().align === "start" ? "0" : t().align === "end" ? void 0 : t().left,
|
|
234
|
+
"inset-inline-end": t().align === "end" ? "0" : void 0,
|
|
235
|
+
transform: t().align === "center" ? "translateX(-50%)" : void 0
|
|
236
|
+
}}>
|
|
237
|
+
{t().text}
|
|
238
|
+
</span>}
|
|
239
|
+
</For>
|
|
240
|
+
</div>
|
|
241
|
+
</Show>
|
|
242
|
+
<Corners placement="footer" start={props.startLabel} end={props.endLabel} />
|
|
243
|
+
<Show when={props.legend}>
|
|
244
|
+
<ul data-slot="status-history-legend" {...stylex.attrs(styles.legend)}>
|
|
245
|
+
<For each={STATES.filter((s) => counts()[s] > 0)}>
|
|
246
|
+
{(s) => <li {...stylex.attrs(styles.legendItem)}>
|
|
247
|
+
<span aria-hidden="true" {...stylex.attrs(styles.swatch)} style={{ "--sh-fill": fill(s) }} />
|
|
248
|
+
{word(s)}
|
|
249
|
+
<span {...stylex.attrs(styles.count)}>
|
|
250
|
+
{new Intl.NumberFormat(locale()).format(counts()[s])}
|
|
251
|
+
</span>
|
|
252
|
+
</li>}
|
|
253
|
+
</For>
|
|
254
|
+
</ul>
|
|
255
|
+
</Show>
|
|
256
|
+
<Show when={tip()}>
|
|
257
|
+
{(t) => <div aria-hidden="true" data-slot="status-history-tooltip" {...stylex.attrs(styles.tooltip)} style={{
|
|
258
|
+
left: `${t().left}px`,
|
|
259
|
+
top: `${t().top}px`,
|
|
260
|
+
transform: `translate(${t().align === "end" ? "-100%" : t().align === "start" ? "0" : "-50%"}, calc(-100% - 6px))`
|
|
261
|
+
}}>
|
|
262
|
+
{(() => {
|
|
263
|
+
const b = bars()[t().index];
|
|
264
|
+
return b && <>
|
|
265
|
+
<span {...stylex.attrs(styles.tooltipTime)}>{b.time}</span>
|
|
266
|
+
<span {...stylex.attrs(styles.tooltipStatus)}>
|
|
267
|
+
<span {...stylex.attrs(styles.swatch)} style={{ "--sh-fill": fill(b.entry.status) }} />
|
|
268
|
+
{word(b.entry.status)}
|
|
269
|
+
</span>
|
|
270
|
+
<Show when={b.entry.note}>
|
|
271
|
+
<span>{b.entry.note}</span>
|
|
272
|
+
</Show>
|
|
273
|
+
</>;
|
|
274
|
+
})()}
|
|
275
|
+
</div>}
|
|
276
|
+
</Show>
|
|
277
|
+
</div>;
|
|
278
|
+
}
|
|
279
|
+
export { StatusHistory };
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import "@stylexjs/stylex";
|
|
2
|
+
// src/status-history/status-history.styles.ts
|
|
3
|
+
const styles = {
|
|
4
|
+
root: {
|
|
5
|
+
kVAEAm: "x1n2onr6",
|
|
6
|
+
kB7OPa: "x9f619",
|
|
7
|
+
k1xSpc: "x78zum5",
|
|
8
|
+
kXwgrk: "xdt5ytf",
|
|
9
|
+
kOIVth: "x8rwxmg",
|
|
10
|
+
k7Eaqz: "xeuugli",
|
|
11
|
+
kMv6JI: "x13rcfk",
|
|
12
|
+
kMwMTN: "x1yjpjgc",
|
|
13
|
+
$$css: true
|
|
14
|
+
},
|
|
15
|
+
corners: {
|
|
16
|
+
k1xSpc: "x78zum5",
|
|
17
|
+
kGNEyG: "x1pha0wt",
|
|
18
|
+
kOIVth: "x1llk9iu",
|
|
19
|
+
kLWn49: "xau0z5x",
|
|
20
|
+
kMwMTN: "xe2mk2a",
|
|
21
|
+
$$css: true
|
|
22
|
+
},
|
|
23
|
+
header: {
|
|
24
|
+
kGuDYH: "x409pna",
|
|
25
|
+
$$css: true
|
|
26
|
+
},
|
|
27
|
+
footer: {
|
|
28
|
+
kGuDYH: "xb5fjo1",
|
|
29
|
+
$$css: true
|
|
30
|
+
},
|
|
31
|
+
cornerStart: {
|
|
32
|
+
kUk6DE: "x1cqoux5",
|
|
33
|
+
k7Eaqz: "xeuugli",
|
|
34
|
+
kHjlTd: "xj0a0fe",
|
|
35
|
+
$$css: true
|
|
36
|
+
},
|
|
37
|
+
title: {
|
|
38
|
+
k63SB2: "x1vmg6u2",
|
|
39
|
+
kMwMTN: "x1yjpjgc",
|
|
40
|
+
$$css: true
|
|
41
|
+
},
|
|
42
|
+
cornerEnd: {
|
|
43
|
+
kUk6DE: "x1cqoux5",
|
|
44
|
+
k7Eaqz: "xeuugli",
|
|
45
|
+
keTefX: "xvc5jky",
|
|
46
|
+
k9WMMc: "xp4054r",
|
|
47
|
+
kHjlTd: "xj0a0fe",
|
|
48
|
+
$$css: true
|
|
49
|
+
},
|
|
50
|
+
bars: {
|
|
51
|
+
k1xSpc: "xrvj5dj",
|
|
52
|
+
kprqdN: "x1mt1orb",
|
|
53
|
+
klIVar: "x1rnidkh",
|
|
54
|
+
k1C7PZ: "x1a8hsgq",
|
|
55
|
+
kZKoxP: "xwc3of0",
|
|
56
|
+
k3XXqK: "x1t137rt",
|
|
57
|
+
$$css: true
|
|
58
|
+
},
|
|
59
|
+
bar: {
|
|
60
|
+
kB7OPa: "x9f619",
|
|
61
|
+
k7Eaqz: "xeuugli",
|
|
62
|
+
kmVPX3: "x1717udv",
|
|
63
|
+
kkrTdU: "xt0e3qv",
|
|
64
|
+
k3XXqK: "x1t137rt x9v5kkp",
|
|
65
|
+
kMeerF: "x1de99jn",
|
|
66
|
+
kInvED: "x1y3gkto",
|
|
67
|
+
kjBf7l: "xi1ptex x1x84bn5",
|
|
68
|
+
kaIpWk: "x1cum3z5",
|
|
69
|
+
kWkggS: "xxf19ts",
|
|
70
|
+
kSiTet: "x1hc1fzr x1mdnquu",
|
|
71
|
+
kAXs8y: "x1kzknox",
|
|
72
|
+
$$css: true
|
|
73
|
+
},
|
|
74
|
+
clickable: {
|
|
75
|
+
kkrTdU: "x1ypdohk",
|
|
76
|
+
$$css: true
|
|
77
|
+
},
|
|
78
|
+
axis: {
|
|
79
|
+
kVAEAm: "x1n2onr6",
|
|
80
|
+
kZKoxP: "x1l36t39",
|
|
81
|
+
kGuDYH: "xb5fjo1",
|
|
82
|
+
kLWn49: "xl2ypbo",
|
|
83
|
+
kMwMTN: "xe2mk2a",
|
|
84
|
+
kcqcaj: "xss6m8b",
|
|
85
|
+
$$css: true
|
|
86
|
+
},
|
|
87
|
+
tick: {
|
|
88
|
+
kVAEAm: "x10l6tqk",
|
|
89
|
+
k87sOh: "x13vifvy",
|
|
90
|
+
khDVqt: "xuxw1ft",
|
|
91
|
+
$$css: true
|
|
92
|
+
},
|
|
93
|
+
legend: {
|
|
94
|
+
k1xSpc: "x78zum5",
|
|
95
|
+
kwnvtZ: "x1a02dak",
|
|
96
|
+
kOIVth: "xgtrjx6",
|
|
97
|
+
kogj98: "x1ghz6dp",
|
|
98
|
+
kmVPX3: "x1717udv",
|
|
99
|
+
kB88ic: "xe8uvvx",
|
|
100
|
+
kGuDYH: "xb5fjo1",
|
|
101
|
+
kLWn49: "xau0z5x",
|
|
102
|
+
kMwMTN: "xe2mk2a",
|
|
103
|
+
$$css: true
|
|
104
|
+
},
|
|
105
|
+
legendItem: {
|
|
106
|
+
k1xSpc: "x3nfvp2",
|
|
107
|
+
kGNEyG: "x6s0dn4",
|
|
108
|
+
kOIVth: "x1xuqxfr",
|
|
109
|
+
$$css: true
|
|
110
|
+
},
|
|
111
|
+
count: {
|
|
112
|
+
kcqcaj: "xss6m8b",
|
|
113
|
+
kMwMTN: "x1yjpjgc",
|
|
114
|
+
k63SB2: "x1vmg6u2",
|
|
115
|
+
$$css: true
|
|
116
|
+
},
|
|
117
|
+
swatch: {
|
|
118
|
+
kmuXW: "x2lah0s",
|
|
119
|
+
k1xSpc: "x1rg5ohu",
|
|
120
|
+
kzqmXN: "x1e7hgle",
|
|
121
|
+
kZKoxP: "x1qa65zt",
|
|
122
|
+
kaIpWk: "x1cum3z5",
|
|
123
|
+
kWkggS: "xxf19ts",
|
|
124
|
+
kAXs8y: "x1kzknox",
|
|
125
|
+
$$css: true
|
|
126
|
+
},
|
|
127
|
+
tooltip: {
|
|
128
|
+
kVAEAm: "x10l6tqk",
|
|
129
|
+
kY2c9j: "x1vjfegm",
|
|
130
|
+
k87sOh: "x13vifvy",
|
|
131
|
+
kbCHJM: "xu96u03",
|
|
132
|
+
kB7OPa: "x9f619",
|
|
133
|
+
k1xSpc: "xrvj5dj",
|
|
134
|
+
kOIVth: "xz09phk",
|
|
135
|
+
ks0D6T: "xuj78ke",
|
|
136
|
+
k8WAf4: "xqy2vlu",
|
|
137
|
+
kg3NbH: "xxobuei",
|
|
138
|
+
kWkggS: "xm9f0jk",
|
|
139
|
+
kMwMTN: "x1yjpjgc",
|
|
140
|
+
kMzoRj: "xmkeg23",
|
|
141
|
+
ksu8eU: "x1y0btm7",
|
|
142
|
+
kVAM5u: "x1wpxzwl x1w1tqly",
|
|
143
|
+
kaIpWk: "x1ttroej",
|
|
144
|
+
kGVxlE: "xfw8du2",
|
|
145
|
+
kGuDYH: "xb5fjo1",
|
|
146
|
+
kLWn49: "xau0z5x",
|
|
147
|
+
kfzvcC: "x47corl",
|
|
148
|
+
$$css: true
|
|
149
|
+
},
|
|
150
|
+
tooltipTime: {
|
|
151
|
+
kMwMTN: "xe2mk2a",
|
|
152
|
+
khDVqt: "xuxw1ft",
|
|
153
|
+
$$css: true
|
|
154
|
+
},
|
|
155
|
+
tooltipStatus: {
|
|
156
|
+
k1xSpc: "x78zum5",
|
|
157
|
+
kGNEyG: "x6s0dn4",
|
|
158
|
+
kOIVth: "x1xuqxfr",
|
|
159
|
+
k63SB2: "x1vmg6u2",
|
|
160
|
+
khDVqt: "xuxw1ft",
|
|
161
|
+
$$css: true
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
/** Each state's default fill: the kit's status colors, and a faint neutral for "no result". */
|
|
165
|
+
const fills = {
|
|
166
|
+
success: "var(--sui-success)",
|
|
167
|
+
degraded: "var(--sui-warning)",
|
|
168
|
+
error: "var(--sui-danger)",
|
|
169
|
+
unknown: "color-mix(in oklab, var(--sui-text-subtle) 35%, transparent)"
|
|
170
|
+
};
|
|
171
|
+
export { fills, styles };
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer sui.reset,ui-sdk,sui.base;@layer sui.components{@layer priority1{:root{--sui-chart-1:light-dark(oklch(57.5% .163 255.5),oklch(62.2% .161 255.1));--sui-chart-2:light-dark(oklch(67.1% .175 40.6),oklch(62.2% .173 40.1));--sui-chart-3:light-dark(oklch(66.9% .141 162.1),oklch(62.1% .128 163.1));--sui-chart-4:light-dark(oklch(76.4% .161 75.1),oklch(67% .143 73.2));--sui-chart-5:light-dark(oklch(71.6% .141 357.4),oklch(62.2% .171 .8));--sui-chart-6:light-dark(oklch(52.9% .18 142.5),oklch(62.1% .207 142.6));--sui-chart-7:light-dark(oklch(52.7% .197 283.4),oklch(67% .145 286.8));--sui-chart-8:light-dark(oklch(62.3% .191 24.9),oklch(66.9% .159 22.3));--sui-chart-heat-1:light-dark(oklch(97% .06 102),oklch(88% .08 100));--sui-chart-heat-2:light-dark(oklch(91% .11 92),oklch(82% .11 88));--sui-chart-heat-3:light-dark(oklch(83% .12 70),oklch(76% .12 68));--sui-chart-heat-4:light-dark(oklch(72% .14 45),oklch(69% .14 45));--sui-chart-heat-5:light-dark(oklch(52% .17 27),oklch(52% .16 27));--sui-chart-heat-text:oklch(24% .03 60);--sui-chart-heat-text-inverse:oklch(98.5% .005 90)}}@layer priority2{.x10a8y8t{inset:0}.xkdpibf{margin:-1px}.x1ghz6dp{margin:0}.x1bpp3o7{margin:auto}.x1717udv{padding:0}}@layer priority3{.x9r1u3d{border-color:#0000}.xqa1mra{border-color:var(--sui-accent)}.x1wpxzwl{border-color:var(--sui-border)}.x1nj7uno{border-radius:1px}.x1ijmkg9{border-radius:25%}.x1cum3z5{border-radius:2px}.x16rqkct{border-radius:50%}.x10hpsqq{border-radius:9999px}.x1ttroej{border-radius:var(--sui-radius-md)}.x1b6xorz{border-radius:var(--sui-radius-sm)}.x1y0btm7{border-style:solid}.xc342km{border-width:0}.xmkeg23{border-width:1px}.x1cqoux5{flex:1 1 0}.xehxkzz{flex:12rem}.x12lumcd{flex:auto}.x195vfkc{gap:2px}.xpowot6{gap:var(--sui-space-0_5)}.x1xuqxfr{gap:var(--sui-space-1_5)}.xz09phk{gap:var(--sui-space-1)}.x8rwxmg{gap:var(--sui-space-2)}.xgtrjx6{gap:var(--sui-space-3)}.x1llk9iu{gap:var(--sui-space-4)}.xcjfhwz{gap:var(--sui-space-6)}.x1osaytk{grid-column:1/-1}.xgkxs2y{grid-column:1}.x1npkx4u{grid-column:2}.x1ms6mhf{grid-row:1}.x10no89f{inset-block:0}.xe8uvvx{list-style:none}.x1iyyiug{margin-inline:-2px}.xgjtpfo{margin-inline:calc(-1 * var(--sui-space-2))}.xb3r6kr{overflow:hidden}.x1rea2x4{overflow:visible}.x1ucdaca{padding-block:var(--sui-space-1_5)}.x1ncfnsi{padding-block:var(--sui-space-1)}.xqy2vlu{padding-block:var(--sui-space-2)}.x5eapc7{padding-block:var(--sui-space-3)}.xnjsko4{padding-inline:0}.xloswcj{padding-inline:var(--sui-space-1)}.x1d6xsf{padding-inline:var(--sui-space-2)}.xxobuei{padding-inline:var(--sui-space-3)}.x1ku5rj1{place-items:center}.x1hl2dhg{text-decoration:none}@media (forced-colors:active){.x1w1tqly.x1w1tqly{border-color:canvastext}.x1n2ykn.x1n2ykn{border-color:highlight}}}@layer priority4{.x1ua5tub{-webkit-box-orient:vertical}.x1h7i4cw{-webkit-line-clamp:2}.x10ukxgv{align-content:start}.x1pha0wt{align-items:baseline}.x6s0dn4{align-items:center}.x1cy8zhl{align-items:flex-start}.x18hd8ej{animation-duration:1.6s}.xa4qsjk{animation-iteration-count:infinite}.xawfmm4{animation-name:x1n0h3kt-B}.x4hg4is{animation-timing-function:ease-in-out}.x1plog1{aspect-ratio:1}.x811dei{background-color:color-mix(in oklab,var(--bar) 22%,transparent)}.x1h3hdkg{background-color:color-mix(in oklab,var(--bar) 42%,transparent)}.x19xktzh{background-color:color-mix(in oklab,var(--bar) 45%,var(--sui-surface))}.xus7kxw{background-color:color-mix(in oklab,var(--hg-color) 30%,var(--sui-surface-muted))}.xzu3jkp{background-color:color-mix(in oklab,var(--hg-color) 55%,var(--sui-surface-muted))}.x16hdbtb{background-color:color-mix(in oklab,var(--hg-color) 78%,var(--sui-surface-muted))}.xxrc88{background-color:color-mix(in oklab,var(--sui-accent) 8%,transparent)}.xhb7yn7{background-color:color-mix(in oklab,var(--sui-surface) 65%,transparent)}.xjbqb8w{background-color:#0000}.xqa76ta{background-color:var(--bar)}.x1olrfse{background-color:var(--hg-color)}.xxf19ts{background-color:var(--sh-fill)}.x3yl11l{background-color:var(--sui-accent-subtle)}.xllakjs{background-color:var(--sui-accent)}.x1l62bwj{background-color:var(--sui-border)}.xozx054{background-color:var(--sui-chart-heat-1)}.xpydojf{background-color:var(--sui-chart-heat-2)}.x19ppr2v{background-color:var(--sui-chart-heat-3)}.x324701{background-color:var(--sui-chart-heat-4)}.xbzkzya{background-color:var(--sui-chart-heat-5)}.x1t2kxjd{background-color:var(--sui-surface-hover)}.x1rjxnwd{background-color:var(--sui-surface-muted)}.xm9f0jk{background-color:var(--sui-surface)}.x1878pr6{background-color:var(--sui-text)}.xrmkqiu{background-color:var(--swatch)}.x1fb1h6r{background-image:repeating-linear-gradient(to right,var(--swatch) 0 4px,transparent 4px 7px)}.x1vathgz{border-collapse:separate}.x1jkpq5q{border-spacing:2px}.x1bjtdd6{box-shadow:0 0 0 1px var(--sui-surface)}.xacm4fh{box-shadow:0 0 0 2px var(--sui-surface)}.x1gnnqk1{box-shadow:none}.xfw8du2{box-shadow:var(--sui-shadow-md)}.x9f619{box-sizing:border-box}.xeh89do{clip:rect(0 0 0 0)}.x1heor9g{color:inherit}.x1bhb14y{color:var(--sui-chart-heat-text-inverse)}.xxqkoqo{color:var(--sui-chart-heat-text)}.xsi4m1h{color:var(--sui-surface)}.xe2mk2a{color:var(--sui-text-muted)}.xarme7a{color:var(--sui-text-subtle)}.x1yjpjgc{color:var(--sui-text)}.x1a8hsgq{column-gap:min(var(--sh-gap),calc(30% / var(--sh-count)))}.xruald1{column-gap:var(--hg-gap)}.xa2zc0e{column-gap:var(--sui-space-3)}.x1lcxfya{column-gap:var(--sui-space-4)}.xsid9ct{cursor:crosshair}.xt0e3qv{cursor:default}.x7eptgl{cursor:ew-resize}.x1ypdohk{cursor:pointer}.xzt5al7{direction:ltr}.x104kibb{display:-webkit-box}.x1lliihq{display:block}.x78zum5{display:flex}.xrvj5dj{display:grid}.x1rg5ohu{display:inline-block}.x3nfvp2{display:inline-flex}.x1s85apg{display:none}.x1mrn7af{fill:var(--sui-border)}.x1utnb0w{fill:var(--swatch)}.x1r8uery{flex-basis:0}.xdt5ytf{flex-direction:column}.x1iyjqo2{flex-grow:1}.x2lah0s{flex-shrink:0}.xs83m0k{flex-shrink:1}.x1a02dak{flex-wrap:wrap}.xjb2p0i{font-family:inherit}.xhrs3nv{font-family:var(--sui-font-mono)}.x13rcfk{font-family:var(--sui-font-sans)}.x1qlqyl8{font-size:inherit}.x409pna{font-size:var(--sui-text-sm)}.xb5fjo1{font-size:var(--sui-text-xs)}.xss6m8b{font-variant-numeric:tabular-nums}.x1vmg6u2{font-weight:var(--sui-weight-medium)}.x1lyc3gu{font-weight:var(--sui-weight-regular)}.x15nt8z6{font-weight:var(--sui-weight-semibold)}.x1tzjh5l{forced-color-adjust:auto}.x1kzknox{forced-color-adjust:none}.x1rnidkh{grid-auto-columns:minmax(0,1fr)}.x1mt1orb{grid-auto-flow:column}.x19zelgp{grid-template-columns:fit-content(35%) minmax(0,1fr)}.x9v58at{grid-template-columns:fit-content(40%) minmax(0,1fr)}.x8sxmsg{grid-template-columns:minmax(0,1fr) auto auto}.xju1xpo{grid-template-columns:minmax(0,1fr) auto}.x1ymqfbz{grid-template-columns:repeat(auto-fill,minmax(min(15rem,100%),1fr))}.x4w6khx{grid-template-columns:subgrid}.x1lsewcy{grid-template-columns:var(--hg-columns)}.xqketvx{grid-template-columns:var(--x-gridTemplateColumns)}.x1o0tod{inset-inline-start:0}.xl56j7k{justify-content:center}.x13a6bvl{justify-content:flex-end}.x619ttb{justify-items:start}.xo5v014{line-height:1}.xl2ypbo{line-height:1rem}.x15bjb6t{line-height:inherit}.xau0z5x{line-height:var(--sui-leading-tight)}.x1hb08if{margin-inline-start:-1px}.xvc5jky{margin-inline-start:auto}.x1pxmky9{margin-inline-start:calc(-1 * var(--sui-space-2))}.x13s9l50{mask-image:linear-gradient(#000 calc(100% - 3.5rem),#0000)}.x3onkmb{opacity:.35}.xwq05k6{opacity:.55}.x1ks1olk{opacity:.7}.x1hc1fzr{opacity:1}.x17fapuw{outline-color:canvastext}.xi1ptex{outline-color:var(--sui-focus)}.x2ssjo2{outline-offset:-2px}.x1y3gkto{outline-offset:1px}.x1hl8ikr{outline-offset:2px}.x2wh2y9{outline-offset:4px}.x1t137rt{outline-style:none}.x1qgsegg{outline-width:1px}.x1de99jn{outline-width:2px}.xj0a0fe{overflow-wrap:anywhere}.x1mzt3pk{overflow-wrap:break-word}.xea92sw{padding-inline-end:var(--sui-space-1)}.x1bpuik{padding-inline-end:var(--sui-space-2)}.x4bmtaa{padding-inline-start:var(--sui-space-2)}.x47corl{pointer-events:none}.x10l6tqk{position:absolute}.xixxii4{position:fixed}.x1n2onr6{position:relative}.xefgwda{row-gap:var(--hg-gap)}.x1nhl685{row-gap:var(--st-gap)}.xj1go3b{row-gap:var(--sui-space-1_5)}.x1xpjfrv{row-gap:var(--sui-space-1)}.x140o2bo{table-layout:fixed}.x2b8uid{text-align:center}.xp4054r{text-align:end}.x1yc453h{text-align:start}.xkrqix3{text-decoration-line:none}.xlyipyv{text-overflow:ellipsis}.xx69xxh{touch-action:pan-y}.x11lhmoz{transform:translate(-50%,-50%)}.xuuh30{transform:translate(-50%)}.xctwqe3{transition-duration:var(--sui-duration-fast)}.x15406qy{transition-property:background-color}.x19991ni{transition-property:opacity}.x16n82f9{translate:-50%}.xa7awgv{unicode-bidi:plaintext}.x87ps6o{-webkit-user-select:none;user-select:none}.x3ajldb{vertical-align:bottom}.xuxw1ft{white-space:nowrap}.x1vjfegm{z-index:1}.x9v5kkp:focus-visible{outline-style:solid}.x12f1u69:hover{background-color:var(--sui-surface-hover)}.x1mdnquu:hover{opacity:.75}@media (prefers-reduced-motion:reduce){.x1aquc0h.x1aquc0h{animation-name:none}}@media (forced-colors:active){.xwvh9j7.xwvh9j7{background-color:canvastext}.x1o55y2u.x1o55y2u{background-color:graytext}.x1jzqe4.x1jzqe4{background-color:highlight}.xfii2vb.xfii2vb{fill:graytext}.x1x84bn5.x1x84bn5{outline-color:highlight}.x815t2r.x815t2r{outline-style:solid}.xcthrzx.xcthrzx{outline-width:1px}}@media (prefers-reduced-motion:reduce){.x12w9bfk.x12w9bfk{transition-duration:0s}}}@layer priority5{.x9b9q96{border-bottom-color:var(--sui-border)}.x1q0q8m5{border-bottom-style:solid}.xso031l{border-bottom-width:1px}.x8diiv1{border-top-color:var(--sui-border)}.x13fuv20{border-top-style:solid}.x178xt8z{border-top-width:1px}.x48lskh{bottom:-3px}.x1ey2m1c{bottom:0}.xdd4er5{bottom:auto}.x1qa65zt{height:.625rem}.xvle69y{height:.75rem}.xf08kfj{height:.875rem}.xmll18r{height:1.25rem}.xb8l8e1{height:1.75rem}.x5yr21d{height:100%}.x170jfvy{height:10px}.x1v9usgg{height:14px}.xg2ss61{height:1lh}.xjm9jq1{height:1px}.x1l36t39{height:1rem}.x36qwtl{height:2px}.xols6we{height:6px}.xihsyjl{height:calc(var(--donut-hole) * .78)}.x1e27r4u{height:calc(var(--sb-height) + 6px)}.x76gpqy{height:var(--donut-size)}.x1arfg6c{height:var(--hg-mark,100%)}.xqcgfsk{height:var(--hm-cell-height)}.x17hm2qj{height:var(--sb-height)}.xwc3of0{height:var(--sh-height)}.xtu93z8{height:var(--st-row)}.xeb2k7{height:var(--sui-item-height)}.xu96u03{left:0}.x1mlafj8{margin-top:calc(.5lh - .3125rem)}.x14c0qtv{margin-top:var(--sui-space-0_5)}.x108si3{margin-top:var(--sui-space-1)}.xg9uls3{margin-top:var(--sui-space-2)}.x193iq5w{max-width:100%}.xuj78ke{max-width:min(18rem,100%)}.x2y036v{max-width:min(18rem,100vw - 16px)}.xsbr6jr{max-width:min(20rem,100vw - 16px)}.x1pw4g4d{min-height:1.75rem}.xeuugli{min-width:0}.xuu4ctt{min-width:10rem}.x9041oi{min-width:2px}.x1k8l6nd{min-width:3rem}.xzhy1st{min-width:8rem}.x1ag9ea8{min-width:9rem}.xw2csxc{overflow-x:auto}.x9ystxo{padding-bottom:var(--sui-space-1)}.xmudmli{padding-top:var(--sui-space-1)}.xwukr4l{right:auto}.x13vifvy{top:0}.xwa60dl{top:50%}.x1e7hgle{width:.625rem}.x1jw3ynk{width:.75rem}.xh8yej3{width:100%}.x1fsd2vl{width:10px}.x1i1rx1s{width:1px}.xcdlrvm{width:1rem}.xfo62xy{width:2px}.x51ohtg{width:4px}.x1v4s8kt{width:6px}.xxy18xx{width:calc(var(--donut-hole) * .78)}.xh3so6z{width:var(--donut-size)}.xzbjvqy{width:var(--hg-cell-size,auto)}.xz950gh{width:var(--hg-mark,100%)}.x83mle0{width:var(--hm-header,10rem)}}@layer priority6{.x1duwuep[data-active]{background-color:var(--sui-surface-hover)}.x1ymmt2b[data-active]{box-shadow:inset 0 0 0 2px}.x1b9byvc[aria-pressed=false]{color:var(--sui-text-subtle)}.x1qjambr[data-active]{color:var(--sui-text)}.xfbqhvr[data-active]{font-weight:var(--sui-weight-medium)}.x1f7ip12[aria-pressed=false]{text-decoration-line:line-through}}@layer priority7{.x5avmn6:before{inset-inline:var(--sui-space-2)}}@layer priority8{.xviiqbq:before{background-color:var(--sui-border)}.x10tli2e:before{content:""}.x1hmns74:before{position:absolute}@media (forced-colors:active){.x15j5p1n.x15j5p1n:before{background-color:canvastext}}}@layer priority9{.xy80zi5:before{height:1px}.xa67ly5:before{top:calc(-1 * (var(--sui-space-2) + var(--sui-space-1)) / 2 - .5px)}}@property --x-gridTemplateColumns{syntax:"*";inherits:false}@keyframes x1n0h3kt-B{0%,to{opacity:1}50%{opacity:.6}}[data-slot=chart-plot] .uplot,[data-slot=chart-plot] .uplot *,[data-slot=chart-plot] .uplot :before,[data-slot=chart-plot] .uplot :after{box-sizing:border-box}[data-slot=chart-plot] .uplot{width:min-content;font-family:inherit;line-height:1.5}[data-slot=chart-plot] .u-wrap{-webkit-user-select:none;user-select:none;position:relative}[data-slot=chart-plot] .u-over,[data-slot=chart-plot] .u-under{position:absolute}[data-slot=chart-plot] .u-under{overflow:hidden}[data-slot=chart-plot] .uplot canvas{width:100%;height:100%;display:block;position:relative}[data-slot=chart-plot] .u-axis{position:absolute}[data-slot=chart-plot] .u-select{pointer-events:none;background:color-mix(in oklab, var(--sui-accent) 12%, transparent);border-inline:1px solid color-mix(in oklab, var(--sui-accent) 50%, transparent);position:absolute}[data-slot=chart-plot] .u-cursor-x,[data-slot=chart-plot] .u-cursor-y{pointer-events:none;will-change:transform;position:absolute;top:0;left:0}[data-slot=chart-plot] .u-hz .u-cursor-x,[data-slot=chart-plot] .u-vt .u-cursor-y{border-right:1px solid var(--sui-border-strong);height:100%}[data-slot=chart-plot] .u-hz .u-cursor-y,[data-slot=chart-plot] .u-vt .u-cursor-x{border-bottom:1px solid var(--sui-border-strong);width:100%}[data-slot=chart-plot] .u-cursor-pt{pointer-events:none;will-change:transform;border:0 solid;border-radius:50%;position:absolute;top:0;left:0;background-clip:padding-box!important}[data-slot=chart-plot] .u-axis.u-off,[data-slot=chart-plot] .u-select.u-off,[data-slot=chart-plot] .u-cursor-x.u-off,[data-slot=chart-plot] .u-cursor-y.u-off,[data-slot=chart-plot] .u-cursor-pt.u-off{display:none}@media (forced-colors:active){[data-slot=chart-plot] .u-hz .u-cursor-x,[data-slot=chart-plot] .u-vt .u-cursor-y{border-right-color:canvastext}[data-slot=chart-plot] .u-select{background:0 0;border-inline-color:highlight}}}@layer sui.theme;
|