@squadbase/vantage 0.7.1-dev1.01a6413 → 0.7.1-dev1.0d13f9a
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/{chunk-MQUIAP66.js → chunk-5HBUBVQ3.js} +28 -7
- package/dist/chunk-5HBUBVQ3.js.map +1 -0
- package/dist/{chunk-EG4PX726.js → chunk-GWXKENNH.js} +122 -5
- package/dist/chunk-GWXKENNH.js.map +1 -0
- package/dist/{chunk-YJQCB3UP.js → chunk-I2GWIPTD.js} +219 -67
- package/dist/chunk-I2GWIPTD.js.map +1 -0
- package/dist/{chunk-P2KIHF65.js → chunk-U6MWBCM6.js} +28 -7
- package/dist/chunk-U6MWBCM6.js.map +1 -0
- package/dist/components/index.d.ts +223 -6
- package/dist/components/index.js +4 -4
- package/dist/doc/index.js +1 -1
- package/dist/slide/index.js +1 -1
- package/dist/table/index.js +4 -4
- package/dist/ui/index.d.ts +35 -4
- package/dist/ui/index.js +174 -10
- package/dist/ui/index.js.map +1 -1
- package/package.json +2 -2
- package/registry/parts.json +101 -3
- package/registry/ui/area-chart.tsx +43 -8
- package/registry/ui/bar-chart.tsx +43 -8
- package/registry/ui/bar-list.tsx +43 -8
- package/registry/ui/box-plot-chart.tsx +42 -7
- package/registry/ui/category-bar.tsx +25 -5
- package/registry/ui/chart-frame.tsx +47 -14
- package/registry/ui/checkbox.tsx +4 -3
- package/registry/ui/code-block.tsx +44 -0
- package/registry/ui/combo-chart.tsx +20 -3
- package/registry/ui/combobox.tsx +7 -0
- package/registry/ui/context-menu.tsx +71 -0
- package/registry/ui/dashboard-card.tsx +20 -9
- package/registry/ui/data-table.tsx +7 -1
- package/registry/ui/date-range-picker.tsx +51 -4
- package/registry/ui/delta.tsx +36 -11
- package/registry/ui/donut-chart.tsx +43 -8
- package/registry/ui/echart.tsx +167 -7
- package/registry/ui/file-dropzone.tsx +143 -0
- package/registry/ui/filter-bar.tsx +74 -1
- package/registry/ui/forecast-chart.tsx +42 -7
- package/registry/ui/funnel-steps.tsx +22 -4
- package/registry/ui/heatmap.tsx +20 -3
- package/registry/ui/histogram-chart.tsx +42 -7
- package/registry/ui/kpi-card.tsx +12 -8
- package/registry/ui/legend.tsx +73 -15
- package/registry/ui/line-chart.tsx +43 -8
- package/registry/ui/page-shell.tsx +2 -0
- package/registry/ui/paired-chart.tsx +43 -8
- package/registry/ui/progress.tsx +1 -1
- package/registry/ui/scatter-chart.tsx +50 -12
- package/registry/ui/sparkline.tsx +43 -8
- package/registry/ui/states.tsx +34 -1
- package/registry/ui/status-badge.tsx +7 -7
- package/registry/ui/tabs.tsx +1 -0
- package/registry/ui/treemap.tsx +20 -3
- package/registry/ui/waterfall-chart.tsx +64 -11
- package/dist/chunk-EG4PX726.js.map +0 -1
- package/dist/chunk-MQUIAP66.js.map +0 -1
- package/dist/chunk-P2KIHF65.js.map +0 -1
- package/dist/chunk-YJQCB3UP.js.map +0 -1
|
@@ -4,6 +4,25 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
|
|
5
5
|
// @squadbase/vantage — generated build. Do not edit.
|
|
6
6
|
var VB_WIDTH = 100;
|
|
7
|
+
var TOKEN_CLASS = {
|
|
8
|
+
"chart-1": "text-chart-1",
|
|
9
|
+
"chart-2": "text-chart-2",
|
|
10
|
+
"chart-3": "text-chart-3",
|
|
11
|
+
"chart-4": "text-chart-4",
|
|
12
|
+
"chart-5": "text-chart-5",
|
|
13
|
+
positive: "text-positive",
|
|
14
|
+
warning: "text-warning",
|
|
15
|
+
negative: "text-negative",
|
|
16
|
+
neutral: "text-neutral",
|
|
17
|
+
info: "text-info"
|
|
18
|
+
};
|
|
19
|
+
function resolveSparklineColor(color) {
|
|
20
|
+
const value = color.trim();
|
|
21
|
+
const tokenClass = TOKEN_CLASS[value];
|
|
22
|
+
if (tokenClass) return { className: tokenClass };
|
|
23
|
+
if (/^(?:[\w-]+:)*!?text-/.test(value) || /\s/.test(value) && !value.includes("(")) return { className: color };
|
|
24
|
+
return { css: value };
|
|
25
|
+
}
|
|
7
26
|
function normalizeData(values, height, vPad = 2) {
|
|
8
27
|
const min = Math.min(...values);
|
|
9
28
|
const max = Math.max(...values);
|
|
@@ -50,7 +69,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
50
69
|
data = NO_ROWS,
|
|
51
70
|
variant = "line",
|
|
52
71
|
height = 40,
|
|
53
|
-
color = "
|
|
72
|
+
color = "chart-1",
|
|
54
73
|
area = false,
|
|
55
74
|
animate = false,
|
|
56
75
|
highlight = "auto",
|
|
@@ -63,6 +82,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
63
82
|
if (animate) setMounted(true);
|
|
64
83
|
}, [animate]);
|
|
65
84
|
if (data.length === 0) return null;
|
|
85
|
+
const { className: colorClass, css: colorCss } = resolveSparklineColor(color);
|
|
66
86
|
const values = data.map((d) => d.value);
|
|
67
87
|
const ys = normalizeData(values, height);
|
|
68
88
|
const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0;
|
|
@@ -81,6 +101,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
81
101
|
"aria-hidden": ariaLabel ? void 0 : true,
|
|
82
102
|
className: cn("overflow-visible", className),
|
|
83
103
|
...props,
|
|
104
|
+
style: colorCss ? { color: colorCss, ...props.style } : props.style,
|
|
84
105
|
children: [
|
|
85
106
|
variant === "line" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
86
107
|
area && /* @__PURE__ */ jsx(
|
|
@@ -88,7 +109,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
88
109
|
{
|
|
89
110
|
d: buildAreaPath(ys, height),
|
|
90
111
|
strokeWidth: 0,
|
|
91
|
-
className: cn("fill-current opacity-15",
|
|
112
|
+
className: cn("fill-current opacity-15", colorClass)
|
|
92
113
|
}
|
|
93
114
|
),
|
|
94
115
|
/* @__PURE__ */ jsx(
|
|
@@ -103,7 +124,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
103
124
|
pathLength: animate ? 1 : void 0,
|
|
104
125
|
strokeDasharray: animate ? 1 : void 0,
|
|
105
126
|
strokeDashoffset: animate ? mounted ? 0 : 1 : void 0,
|
|
106
|
-
className: cn("stroke-current", animate && "motion-reduce:transition-none!",
|
|
127
|
+
className: cn("stroke-current", animate && "motion-reduce:transition-none!", colorClass),
|
|
107
128
|
style: animate ? { transition: "stroke-dashoffset 0.6s ease-in-out" } : void 0
|
|
108
129
|
}
|
|
109
130
|
),
|
|
@@ -120,7 +141,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
120
141
|
strokeWidth: p.kind === "latest" ? 5 : 4,
|
|
121
142
|
strokeLinecap: "round",
|
|
122
143
|
vectorEffect: "non-scaling-stroke",
|
|
123
|
-
className: cn("stroke-current", p.kind === "latest" ?
|
|
144
|
+
className: cn("stroke-current", p.kind === "latest" ? colorClass : "text-muted-foreground")
|
|
124
145
|
},
|
|
125
146
|
p.kind
|
|
126
147
|
);
|
|
@@ -134,7 +155,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
134
155
|
width: rect.w,
|
|
135
156
|
height: animate ? mounted ? rect.h : 0 : rect.h,
|
|
136
157
|
rx: 0.5,
|
|
137
|
-
className: cn("fill-current", animate && "motion-reduce:transition-none!",
|
|
158
|
+
className: cn("fill-current", animate && "motion-reduce:transition-none!", colorClass),
|
|
138
159
|
style: animate ? {
|
|
139
160
|
transition: `height 0.4s ease-out ${i * 0.02}s, y 0.4s ease-out ${i * 0.02}s`
|
|
140
161
|
} : void 0
|
|
@@ -148,5 +169,5 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
148
169
|
Sparkline.displayName = "Sparkline";
|
|
149
170
|
|
|
150
171
|
export { Sparkline };
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
152
|
-
//# sourceMappingURL=chunk-
|
|
172
|
+
//# sourceMappingURL=chunk-U6MWBCM6.js.map
|
|
173
|
+
//# sourceMappingURL=chunk-U6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CAAA,CAAE,GAAA,CAAI,CAAC,IAAA,EAAM,CAAA,qBACnC,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YAEC,GAAG,IAAA,CAAK,CAAA;AAAA,YACR,GAAG,OAAA,GAAW,OAAA,GAAU,IAAA,CAAK,CAAA,GAAI,SAAU,IAAA,CAAK,CAAA;AAAA,YAChD,OAAO,IAAA,CAAK,CAAA;AAAA,YACZ,QAAQ,OAAA,GAAW,OAAA,GAAU,IAAA,CAAK,CAAA,GAAI,IAAK,IAAA,CAAK,CAAA;AAAA,YAChD,EAAA,EAAI,GAAA;AAAA,YACJ,SAAA,EAAW,EAAA,CAAG,cAAA,EAAgB,OAAA,IAAW,kCAAkC,UAAU,CAAA;AAAA,YACrF,OACE,OAAA,GACI;AAAA,cACE,YAAY,CAAA,qBAAA,EAAwB,CAAA,GAAI,IAAI,CAAA,mBAAA,EAAsB,IAAI,IAAI,CAAA,CAAA;AAAA,aAC5E,GACA;AAAA,WAAA;AAAA,UAZD;AAAA,SAeR;AAAA;AAAA;AAAA,GACL;AAEJ,CAAC;AACD,SAAA,CAAU,WAAA,GAAc,WAAA","file":"chunk-U6MWBCM6.js","sourcesContent":["\"use client\"\n\n/**\n * Sparkline — an inline trend micro-chart; put no parts inside it. Deliberately *not* an `EChart`: a\n * sparkline sits inside table cells and KPI tiles by the dozen, where one\n * ECharts instance per cell would be wasteful. This renders a single stateless\n * `<svg>` instead, so hundreds of them stay cheap.\n */\nimport { forwardRef, useEffect, useState, type SVGAttributes } from \"react\"\n\nimport { cn } from \"../lib/utils\"\nimport type { ChartColor, ChartHighlight } from \"../lib/types\"\n\nexport type SparklineVariant = \"line\" | \"bar\"\n\nexport interface SparklineDataPoint {\n value: number\n label?: string\n}\n\nexport interface SparklineProps extends SVGAttributes<SVGSVGElement> {\n data: SparklineDataPoint[]\n variant?: SparklineVariant\n height?: number\n /**\n * Line / bar colour: a theme series token (`\"chart-1\"`〜`\"chart-5\"`), a meaning colour\n * (`\"positive\"` / `\"negative\"` / `\"warning\"` / `\"neutral\"` / `\"info\"`), or any CSS colour\n * (`\"#16a34a\"`, `\"var(--destructive)\"`) — the same {@link ChartColor} the other charts take.\n * Drives both stroke and fill via `currentColor`. Defaults to `\"chart-1\"`.\n * Tailwind text-colour classes (`\"text-primary\"`) still work for compatibility; prefer the tokens above.\n */\n color?: ChartColor\n area?: boolean\n /** マウント時に線を引く / 棒を伸ばす。既定 `false`(`prefers-reduced-motion` では常に無効)。 */\n animate?: boolean\n /**\n * 点の強調(Tufte 流)。`\"auto\"` は最新・最大・最小の 3 点だけに小さな点を打つ\n * (最新は系列の色、最大・最小は muted)。`\"latest\"` は最新の 1 点だけ、`\"none\"` は線だけ。`variant=\"line\"` のときだけ効く。既定 `\"auto\"`。\n */\n highlight?: ChartHighlight | \"latest\"\n /** 指定すると `role=\"img\"` で読み上げ対象にする。省略時は装飾として `aria-hidden`。 */\n \"aria-label\"?: string\n className?: string\n}\n\nconst VB_WIDTH = 100\n\n/** Literal class names (not built from a template) so Tailwind's scanner keeps them. */\nconst TOKEN_CLASS: Record<string, string> = {\n \"chart-1\": \"text-chart-1\",\n \"chart-2\": \"text-chart-2\",\n \"chart-3\": \"text-chart-3\",\n \"chart-4\": \"text-chart-4\",\n \"chart-5\": \"text-chart-5\",\n positive: \"text-positive\",\n warning: \"text-warning\",\n negative: \"text-negative\",\n neutral: \"text-neutral\",\n info: \"text-info\",\n}\n\n/**\n * `color` を class か inline の CSS colour に振り分ける。トークン・意味色は `text-*` に、\n * `text-` で始まる旧来の class 指定はそのまま class に、それ以外(`#hex` / `var(--x)` / `rgb()` …)は CSS colour として扱う。\n */\nfunction resolveSparklineColor(color: string): { className?: string; css?: string } {\n const value = color.trim()\n const tokenClass = TOKEN_CLASS[value]\n if (tokenClass) return { className: tokenClass }\n if (/^(?:[\\w-]+:)*!?text-/.test(value) || (/\\s/.test(value) && !value.includes(\"(\"))) return { className: color }\n return { css: value }\n}\n\n/** Map raw values onto SVG y-coordinates (inverted, padded). */\nfunction normalizeData(values: number[], height: number, vPad = 2): number[] {\n const min = Math.min(...values)\n const max = Math.max(...values)\n const range = max - min\n const drawHeight = height - vPad * 2\n if (range === 0) return values.map(() => vPad + drawHeight / 2)\n return values.map((v) => height - vPad - ((v - min) / range) * drawHeight)\n}\n\nfunction buildLinePath(ys: number[]): string {\n if (ys.length === 0) return \"\"\n const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0\n return ys\n .map((y, i) => `${i === 0 ? \"M\" : \"L\"}${(i * step).toFixed(2)},${y.toFixed(2)}`)\n .join(\" \")\n}\n\nfunction buildAreaPath(ys: number[], height: number): string {\n if (ys.length === 0) return \"\"\n const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0\n const lastX = ((ys.length - 1) * step).toFixed(2)\n return `${buildLinePath(ys)} L${lastX},${height} L0,${height} Z`\n}\n\nexport type SparklinePointKind = \"latest\" | \"max\" | \"min\"\n\nexport interface SparklinePoint {\n kind: SparklinePointKind\n index: number\n}\n\n/**\n * The points a Tufte-style sparkline marks: the latest, the max and the min.\n * A point that is both latest and max/min is drawn once, as `latest`; a flat\n * series marks only the latest. Ties pick the most recent occurrence.\n */\nexport function sparklineHighlightPoints(values: number[]): SparklinePoint[] {\n if (values.length === 0) return []\n const last = values.length - 1\n const points: SparklinePoint[] = [{ kind: \"latest\", index: last }]\n let maxI = 0\n let minI = 0\n let max = values[0] as number\n let min = max\n values.forEach((v, i) => {\n if (v >= max) [max, maxI] = [v, i]\n if (v <= min) [min, minI] = [v, i]\n })\n const latest = values[last] as number\n if (max === min) return points\n if (max !== latest) points.push({ kind: \"max\", index: maxI })\n if (min !== latest) points.push({ kind: \"min\", index: minI })\n return points\n}\n\ninterface BarRect {\n x: number\n y: number\n w: number\n h: number\n}\n\nfunction buildBarRects(ys: number[], height: number, gap = 1): BarRect[] {\n const barW = Math.max(1, VB_WIDTH / ys.length - gap)\n return ys.map((y, i) => ({ x: i * (barW + gap), y, w: barW, h: height - y }))\n}\n\n/** Rows not given yet (a draft fills props in steps): draw the empty state, keep the same array between renders. */\nconst NO_ROWS: never[] = []\n\nexport const Sparkline = forwardRef<SVGSVGElement, SparklineProps>(function Sparkline(\n {\n data = NO_ROWS,\n variant = \"line\",\n height = 40,\n color = \"chart-1\",\n area = false,\n animate = false,\n highlight = \"auto\",\n \"aria-label\": ariaLabel,\n className,\n ...props\n },\n ref,\n) {\n const [mounted, setMounted] = useState(false)\n\n useEffect(() => {\n if (animate) setMounted(true)\n }, [animate])\n\n if (data.length === 0) return null\n\n const { className: colorClass, css: colorCss } = resolveSparklineColor(color)\n\n const values = data.map((d) => d.value)\n const ys = normalizeData(values, height)\n const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0\n const points =\n variant !== \"line\"\n ? []\n : highlight === \"auto\"\n ? sparklineHighlightPoints(values)\n : highlight === \"latest\"\n ? [{ kind: \"latest\" as const, index: values.length - 1 }]\n : []\n\n return (\n <svg\n ref={ref}\n data-slot=\"sparkline\"\n viewBox={`0 0 ${VB_WIDTH} ${height}`}\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height={height}\n role={ariaLabel ? \"img\" : undefined}\n aria-label={ariaLabel}\n aria-hidden={ariaLabel ? undefined : true}\n className={cn(\"overflow-visible\", className)}\n {...props}\n style={colorCss ? { color: colorCss, ...props.style } : props.style}\n >\n {variant === \"line\" && (\n <>\n {area && (\n <path\n d={buildAreaPath(ys, height)}\n strokeWidth={0}\n className={cn(\"fill-current opacity-15\", colorClass)}\n />\n )}\n <path\n d={buildLinePath(ys)}\n fill=\"none\"\n strokeWidth={1.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n vectorEffect=\"non-scaling-stroke\"\n pathLength={animate ? 1 : undefined}\n strokeDasharray={animate ? 1 : undefined}\n strokeDashoffset={animate ? (mounted ? 0 : 1) : undefined}\n className={cn(\"stroke-current\", animate && \"motion-reduce:transition-none!\", colorClass)}\n style={animate ? { transition: \"stroke-dashoffset 0.6s ease-in-out\" } : undefined}\n />\n {/* A zero-length round-capped stroke with a non-scaling width stays a\n circle even though the viewBox stretches (`preserveAspectRatio=\"none\"`). */}\n {points.map((p) => {\n const x = (p.index * step).toFixed(2)\n const y = (ys[p.index] ?? 0).toFixed(2)\n return (\n <path\n key={p.kind}\n data-slot=\"sparkline-point\"\n data-point={p.kind}\n d={`M${x},${y} L${x},${y}`}\n fill=\"none\"\n strokeWidth={p.kind === \"latest\" ? 5 : 4}\n strokeLinecap=\"round\"\n vectorEffect=\"non-scaling-stroke\"\n className={cn(\"stroke-current\", p.kind === \"latest\" ? colorClass : \"text-muted-foreground\")}\n />\n )\n })}\n </>\n )}\n\n {variant === \"bar\" &&\n buildBarRects(ys, height).map((rect, i) => (\n <rect\n key={i}\n x={rect.x}\n y={animate ? (mounted ? rect.y : height) : rect.y}\n width={rect.w}\n height={animate ? (mounted ? rect.h : 0) : rect.h}\n rx={0.5}\n className={cn(\"fill-current\", animate && \"motion-reduce:transition-none!\", colorClass)}\n style={\n animate\n ? {\n transition: `height 0.4s ease-out ${i * 0.02}s, y 0.4s ease-out ${i * 0.02}s`,\n }\n : undefined\n }\n />\n ))}\n </svg>\n )\n})\nSparkline.displayName = \"Sparkline\"\n"]}
|
|
@@ -50,6 +50,8 @@ interface PageShellHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
status?: ReactNode;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
+
* PageShellHeader — the page header band (title and update time, source / period, overall status); inside `PageShell` without `title`, with the title in `PageShellHeading`.
|
|
54
|
+
*
|
|
53
55
|
* A wrapping flex row, not a two-column grid: when the heading cannot keep its
|
|
54
56
|
* 20rem basis next to `PageShellHeaderEnd`, the end block drops below it. A
|
|
55
57
|
* `1fr auto` grid would instead hand the heading whatever the end block leaves,
|
|
@@ -453,13 +455,16 @@ declare function DashboardCardSkeleton({ className }: DashboardCardSkeletonProps
|
|
|
453
455
|
interface DashboardCardPresetProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, Pick<DashboardCardProps, "subgrid" | "size"> {
|
|
454
456
|
title?: ReactNode;
|
|
455
457
|
description?: ReactNode;
|
|
458
|
+
/** One headline number or status at the right end of the header ("212 tasks", a `StatusBadge`). Put the number in `<span className="font-medium text-foreground">`. */
|
|
459
|
+
headline?: ReactNode;
|
|
456
460
|
actions?: ReactNode;
|
|
461
|
+
/** One line at the bottom of the card: a summary fact on the left, an action or hint on the right. */
|
|
457
462
|
footer?: ReactNode;
|
|
458
463
|
headerClassName?: string;
|
|
459
464
|
contentClassName?: string;
|
|
460
465
|
footerClassName?: string;
|
|
461
466
|
}
|
|
462
|
-
declare function DashboardCardPreset({ title, description, actions, footer, children, headerClassName, contentClassName, footerClassName, className, subgrid, ...props }: DashboardCardPresetProps): React.JSX.Element;
|
|
467
|
+
declare function DashboardCardPreset({ title, description, headline, actions, footer, children, headerClassName, contentClassName, footerClassName, className, subgrid, ...props }: DashboardCardPresetProps): React.JSX.Element;
|
|
463
468
|
|
|
464
469
|
interface EChartProps {
|
|
465
470
|
/**
|
|
@@ -873,7 +878,7 @@ declare const AreaChart: (<T extends Record<string, unknown>>(props: AreaChartPr
|
|
|
873
878
|
* (`index`) and the series keys (`categories`) instead of an ECharts option.
|
|
874
879
|
* Grouped, stacked or 100%-stacked; vertical or horizontal bars. Colours are the
|
|
875
880
|
* `--chart-1..5` tokens in fixed order (more than 5 series fold into「その他」)
|
|
876
|
-
* and follow light/dark. The value axis always
|
|
881
|
+
* and follow light/dark. The value axis always reaches 0 (negative values add a solid zero line on their own). A horizontal bar chart of one
|
|
877
882
|
* series (`barOptions.layout: "vertical"`) is a light tint by default, like BarList; `barOptions.highlight`
|
|
878
883
|
* names the one bar the page is about, drawn in the full colour.
|
|
879
884
|
* Renders inside `ChartFrame` (title, summary, loading skeleton, empty state).
|
|
@@ -1224,6 +1229,43 @@ interface WaterfallChartProps<T extends Record<string, unknown> = Record<string,
|
|
|
1224
1229
|
/** 見出しが無いときのプロット領域の読み上げ名。省略時は「<金額の列>のウォーターフォールチャート」。 */
|
|
1225
1230
|
ariaLabel?: string;
|
|
1226
1231
|
}
|
|
1232
|
+
type WaterfallKind = "total" | "increase" | "decrease" | "flat" | "gap";
|
|
1233
|
+
interface WaterfallStep {
|
|
1234
|
+
name: string;
|
|
1235
|
+
kind: WaterfallKind;
|
|
1236
|
+
/** A step's signed change, a total's value. `null` for a gap. */
|
|
1237
|
+
value: number | null;
|
|
1238
|
+
/** The running total before this step (a total starts at 0). */
|
|
1239
|
+
start: number;
|
|
1240
|
+
/** The running total after this step. */
|
|
1241
|
+
end: number;
|
|
1242
|
+
row: Record<string, unknown>;
|
|
1243
|
+
}
|
|
1244
|
+
/** What `mode="delta"` leaves out of the bars: the opening / closing totals and the net change of the moves. */
|
|
1245
|
+
interface WaterfallDeltaEnds {
|
|
1246
|
+
/** The first total row when it comes before every move (its value, `null` when the row carries none). */
|
|
1247
|
+
opening: {
|
|
1248
|
+
name: string;
|
|
1249
|
+
value: number | null;
|
|
1250
|
+
} | null;
|
|
1251
|
+
/** The last total row when it comes after every move; a missing value is the opening plus the net change. */
|
|
1252
|
+
closing: {
|
|
1253
|
+
name: string;
|
|
1254
|
+
value: number | null;
|
|
1255
|
+
} | null;
|
|
1256
|
+
/** The sum of every move (the cumulative change at the last step). */
|
|
1257
|
+
net: number;
|
|
1258
|
+
}
|
|
1259
|
+
interface WaterfallStack {
|
|
1260
|
+
/** The transparent base under each bar (0 when the bar starts at the axis or crosses it). */
|
|
1261
|
+
base: number[];
|
|
1262
|
+
/** The part of each bar above 0. */
|
|
1263
|
+
pos: number[];
|
|
1264
|
+
/** The part of each bar below 0 (≤ 0). */
|
|
1265
|
+
neg: number[];
|
|
1266
|
+
/** Which series carries the step's value label. */
|
|
1267
|
+
labelOn: ("pos" | "neg")[];
|
|
1268
|
+
}
|
|
1227
1269
|
/** Generic over the row type, so `index` / `categories` keys are checked against `data`. */
|
|
1228
1270
|
declare const WaterfallChart: (<T extends Record<string, unknown>>(props: WaterfallChartProps<T> & {
|
|
1229
1271
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -1329,6 +1371,25 @@ interface ScatterChartProps<T extends Record<string, unknown> = Record<string, u
|
|
|
1329
1371
|
/** 見出しが無いときのプロット領域の読み上げ名。省略時は「<y の列>×<x の列>の散布図」。 */
|
|
1330
1372
|
ariaLabel?: string;
|
|
1331
1373
|
}
|
|
1374
|
+
interface ScatterPoint {
|
|
1375
|
+
x: number;
|
|
1376
|
+
y: number;
|
|
1377
|
+
/** `null` when there is no size column or the cell is missing. */
|
|
1378
|
+
size: number | null;
|
|
1379
|
+
/** The point's name (`index` column), or `""`. */
|
|
1380
|
+
name: string;
|
|
1381
|
+
/** The series value from the `series` column, or `""`. */
|
|
1382
|
+
series: string;
|
|
1383
|
+
/** The `labelKey` text printed beside the dot (`""` / absent without a `labelKey` column). */
|
|
1384
|
+
label?: string;
|
|
1385
|
+
row: Record<string, unknown>;
|
|
1386
|
+
}
|
|
1387
|
+
interface ScatterSeries {
|
|
1388
|
+
/** The series name (the `series` value, or「その他」for the folded series). `""` without a `series` column. */
|
|
1389
|
+
name: string;
|
|
1390
|
+
isOther: boolean;
|
|
1391
|
+
points: ScatterPoint[];
|
|
1392
|
+
}
|
|
1332
1393
|
/** Generic over the row type, so `x` / `y` / `size` / `index` / `series` keys are checked against `data`. */
|
|
1333
1394
|
declare const ScatterChart: (<T extends Record<string, unknown>>(props: ScatterChartProps<T> & {
|
|
1334
1395
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -1345,6 +1406,10 @@ interface LegendProps {
|
|
|
1345
1406
|
labels?: Record<string, string>;
|
|
1346
1407
|
/** 並べ方。`"horizontal"`(既定。折り返す横並び)か `"vertical"`(縦並び)。 */
|
|
1347
1408
|
layout?: "horizontal" | "vertical";
|
|
1409
|
+
/** 隠している系列名(`onHiddenChange` と対)。グラフに渡す `categories` からこの系列を外す。色は凡例の全 `categories` で決まるので、外しても残りの色は変わらない。 */
|
|
1410
|
+
hidden?: string[];
|
|
1411
|
+
/** 渡すと凡例のチップが押せるボタンになり、押すたびに系列を隠す・戻す(キーボードで操作でき、隠れたチップは薄くなる)。新しい `hidden` が渡される。 */
|
|
1412
|
+
onHiddenChange?: (hidden: string[]) => void;
|
|
1348
1413
|
/** 凡例の読み上げ名。省略時は「凡例」。 */
|
|
1349
1414
|
ariaLabel?: string;
|
|
1350
1415
|
className?: string;
|
|
@@ -1371,7 +1436,8 @@ interface ChartFrameProps extends Omit<HTMLAttributes<HTMLElement>, "title" | "c
|
|
|
1371
1436
|
/** 見出しが無いときのプロット領域のラベル。 */
|
|
1372
1437
|
ariaLabel?: string;
|
|
1373
1438
|
/**
|
|
1374
|
-
*
|
|
1439
|
+
* プロットの役割。既定 `"img"`(canvas のグラフ。`role="img"` と名前・要約は
|
|
1440
|
+
* `EChart` が canvas にだけ付け、操作ボタンは画像の外に置く)。行がボタンやリンクになる
|
|
1375
1441
|
* HTML のグラフ(BarList・FunnelSteps)は `"group"` にして、中身を読ませる。
|
|
1376
1442
|
*/
|
|
1377
1443
|
plotRole?: "img" | "group";
|
|
@@ -1531,6 +1597,16 @@ interface HeatmapProps<T extends Record<string, unknown> = Record<string, unknow
|
|
|
1531
1597
|
/** スクリーンリーダー向けのラベル。省略時は `<yの列>×<xの列>のヒートマップ`。 */
|
|
1532
1598
|
ariaLabel?: string;
|
|
1533
1599
|
}
|
|
1600
|
+
interface HeatmapCell {
|
|
1601
|
+
/** Index into `xs`. */
|
|
1602
|
+
xi: number;
|
|
1603
|
+
/** Index into `ys`. */
|
|
1604
|
+
yi: number;
|
|
1605
|
+
/** `null` for a gap. */
|
|
1606
|
+
value: number | null;
|
|
1607
|
+
flagged: boolean;
|
|
1608
|
+
row: Record<string, unknown> | null;
|
|
1609
|
+
}
|
|
1534
1610
|
/** Generic over the row type, so `x` / `y` / `value` keys are checked against `data`. */
|
|
1535
1611
|
declare const Heatmap: (<T extends Record<string, unknown>>(props: HeatmapProps<T> & {
|
|
1536
1612
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -1588,6 +1664,22 @@ declare const PairedChart: (<T extends Record<string, unknown>>(props: PairedCha
|
|
|
1588
1664
|
displayName?: string;
|
|
1589
1665
|
};
|
|
1590
1666
|
|
|
1667
|
+
interface BoxStats {
|
|
1668
|
+
/** 数えた値の個数。 */
|
|
1669
|
+
count: number;
|
|
1670
|
+
/** 最小・最大(外れ値を含む)。 */
|
|
1671
|
+
min: number;
|
|
1672
|
+
max: number;
|
|
1673
|
+
q1: number;
|
|
1674
|
+
median: number;
|
|
1675
|
+
q3: number;
|
|
1676
|
+
/** ひげの下端・上端: 柵(Q1−k×IQR / Q3+k×IQR)の内側にある最小・最大の実測値。 */
|
|
1677
|
+
whiskerLow: number;
|
|
1678
|
+
whiskerHigh: number;
|
|
1679
|
+
/** 柵の外側の値(昇順)。 */
|
|
1680
|
+
outliers: number[];
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1591
1683
|
interface HistogramThreshold {
|
|
1592
1684
|
/** 線を引く値(例 SLA の 3 日)。 */
|
|
1593
1685
|
value: number;
|
|
@@ -1634,6 +1726,10 @@ interface BoxPlotChartProps extends Omit<ChartCommonProps, "data" | "index" | "c
|
|
|
1634
1726
|
/** ホバー時のツールチップを出す。既定 `true`。 */
|
|
1635
1727
|
showTooltip?: boolean;
|
|
1636
1728
|
}
|
|
1729
|
+
interface BoxPlotEntry {
|
|
1730
|
+
name: string;
|
|
1731
|
+
stats: BoxStats | null;
|
|
1732
|
+
}
|
|
1637
1733
|
declare const BoxPlotChart: React.ForwardRefExoticComponent<BoxPlotChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
1638
1734
|
|
|
1639
1735
|
type AttentionKind = "overdue" | "risk" | "dueSoon" | "stale";
|
|
@@ -1953,6 +2049,15 @@ interface FilledMapProps<T extends Record<string, unknown> = Record<string, unkn
|
|
|
1953
2049
|
/** スクリーンリーダー向けのラベル。省略時は `<valueの列>の地図`。 */
|
|
1954
2050
|
ariaLabel?: string;
|
|
1955
2051
|
}
|
|
2052
|
+
interface FilledMapRegion {
|
|
2053
|
+
code: string;
|
|
2054
|
+
/** The row's region value as written (what `onSelect` receives), or `null` without a row. */
|
|
2055
|
+
key: string | null;
|
|
2056
|
+
/** Display name: `labels[key]` when given, else the map's name in the page's language (「東京都」 for "13"). */
|
|
2057
|
+
name: string;
|
|
2058
|
+
value: number | null;
|
|
2059
|
+
row: Record<string, unknown> | null;
|
|
2060
|
+
}
|
|
1956
2061
|
/** Generic over the row type, so `region` / `value` keys are checked against `data`. */
|
|
1957
2062
|
declare const FilledMap: (<T extends Record<string, unknown>>(props: FilledMapProps<T> & {
|
|
1958
2063
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -2025,6 +2130,17 @@ interface SymbolMapProps<T extends Record<string, unknown> = Record<string, unkn
|
|
|
2025
2130
|
/** スクリーンリーダー向けのラベル。 */
|
|
2026
2131
|
ariaLabel?: string;
|
|
2027
2132
|
}
|
|
2133
|
+
interface SymbolMapPoint {
|
|
2134
|
+
lon: number;
|
|
2135
|
+
lat: number;
|
|
2136
|
+
name: string | null;
|
|
2137
|
+
size: number | null;
|
|
2138
|
+
/** Numeric colour value (numeric `color`). */
|
|
2139
|
+
shade: number | null;
|
|
2140
|
+
/** Category (categorical `color`), as text. */
|
|
2141
|
+
category: string | null;
|
|
2142
|
+
row: Record<string, unknown>;
|
|
2143
|
+
}
|
|
2028
2144
|
/** Generic over the row type, so the column keys are checked against `data`. */
|
|
2029
2145
|
declare const SymbolMap: (<T extends Record<string, unknown>>(props: SymbolMapProps<T> & {
|
|
2030
2146
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -2094,6 +2210,13 @@ interface TreemapProps<T extends Record<string, unknown> = Record<string, unknow
|
|
|
2094
2210
|
/** スクリーンリーダー向けのラベル。 */
|
|
2095
2211
|
ariaLabel?: string;
|
|
2096
2212
|
}
|
|
2213
|
+
interface TreemapLeaf {
|
|
2214
|
+
name: string;
|
|
2215
|
+
group: string | null;
|
|
2216
|
+
value: number | null;
|
|
2217
|
+
shade: number | null;
|
|
2218
|
+
row: Record<string, unknown>;
|
|
2219
|
+
}
|
|
2097
2220
|
/** Generic over the row type, so the column keys are checked against `data`. */
|
|
2098
2221
|
declare const Treemap: (<T extends Record<string, unknown>>(props: TreemapProps<T> & {
|
|
2099
2222
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -2110,8 +2233,14 @@ interface SparklineProps extends SVGAttributes<SVGSVGElement> {
|
|
|
2110
2233
|
data: SparklineDataPoint[];
|
|
2111
2234
|
variant?: SparklineVariant;
|
|
2112
2235
|
height?: number;
|
|
2113
|
-
/**
|
|
2114
|
-
|
|
2236
|
+
/**
|
|
2237
|
+
* Line / bar colour: a theme series token (`"chart-1"`〜`"chart-5"`), a meaning colour
|
|
2238
|
+
* (`"positive"` / `"negative"` / `"warning"` / `"neutral"` / `"info"`), or any CSS colour
|
|
2239
|
+
* (`"#16a34a"`, `"var(--destructive)"`) — the same {@link ChartColor} the other charts take.
|
|
2240
|
+
* Drives both stroke and fill via `currentColor`. Defaults to `"chart-1"`.
|
|
2241
|
+
* Tailwind text-colour classes (`"text-primary"`) still work for compatibility; prefer the tokens above.
|
|
2242
|
+
*/
|
|
2243
|
+
color?: ChartColor;
|
|
2115
2244
|
area?: boolean;
|
|
2116
2245
|
/** マウント時に線を引く / 棒を伸ばす。既定 `false`(`prefers-reduced-motion` では常に無効)。 */
|
|
2117
2246
|
animate?: boolean;
|
|
@@ -2124,6 +2253,11 @@ interface SparklineProps extends SVGAttributes<SVGSVGElement> {
|
|
|
2124
2253
|
"aria-label"?: string;
|
|
2125
2254
|
className?: string;
|
|
2126
2255
|
}
|
|
2256
|
+
type SparklinePointKind = "latest" | "max" | "min";
|
|
2257
|
+
interface SparklinePoint {
|
|
2258
|
+
kind: SparklinePointKind;
|
|
2259
|
+
index: number;
|
|
2260
|
+
}
|
|
2127
2261
|
declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<SVGSVGElement>>;
|
|
2128
2262
|
|
|
2129
2263
|
declare module "@tanstack/react-table" {
|
|
@@ -2378,6 +2512,19 @@ declare function DataTable<TData, TValue>({ columns, data, enableSorting, sortin
|
|
|
2378
2512
|
declare namespace DataTable {
|
|
2379
2513
|
var displayName: string;
|
|
2380
2514
|
}
|
|
2515
|
+
interface SparklineColumnOptions<TData> {
|
|
2516
|
+
/** 列 ID(CSV・列の表示切り替えで使う)。 */
|
|
2517
|
+
id: string;
|
|
2518
|
+
/** 見出し。 */
|
|
2519
|
+
header: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* 行の数列を返す(古い順。例: 直近 8 週の売上)。null / undefined / 2 点未満の行は「—」。
|
|
2522
|
+
* NaN などの有限でない値は取り除いてから数える。
|
|
2523
|
+
*/
|
|
2524
|
+
values: (row: TData) => readonly (number | null | undefined)[] | null | undefined;
|
|
2525
|
+
/** スクリーンリーダー向けの数値の書式(`meta.format` と同じ語彙)。既定は `"number"`。 */
|
|
2526
|
+
format?: ValueFormat;
|
|
2527
|
+
}
|
|
2381
2528
|
declare const DataTableToolbar: React.ForwardRefExoticComponent<DataTableToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
2382
2529
|
declare const DataTableContent: React.ForwardRefExoticComponent<DataTableContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
2383
2530
|
declare const DataTablePagination: React.ForwardRefExoticComponent<DataTablePaginationProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2492,6 +2639,16 @@ declare function FilterBarMultiSelect({ filterKey, label, options, placeholder,
|
|
|
2492
2639
|
declare namespace FilterBarMultiSelect {
|
|
2493
2640
|
var displayName: string;
|
|
2494
2641
|
}
|
|
2642
|
+
interface FilterBarAddFilterProps {
|
|
2643
|
+
/** Conditions offered in the menu. Only `select` / `multi-select` entries with options are listed. */
|
|
2644
|
+
filters: FilterConfig[];
|
|
2645
|
+
className?: string;
|
|
2646
|
+
}
|
|
2647
|
+
/** A menu that lists the conditions; each opens a submenu of values to check. Checked values show as chips. */
|
|
2648
|
+
declare function FilterBarAddFilter({ filters, className }: FilterBarAddFilterProps): React.JSX.Element;
|
|
2649
|
+
declare namespace FilterBarAddFilter {
|
|
2650
|
+
var displayName: string;
|
|
2651
|
+
}
|
|
2495
2652
|
interface FilterBarActiveChipsProps {
|
|
2496
2653
|
/** Filter configs used to resolve option labels. Without them, raw values show. */
|
|
2497
2654
|
filters?: FilterConfig[];
|
|
@@ -2568,6 +2725,14 @@ interface DateRangePickerProps {
|
|
|
2568
2725
|
* <DateRangePicker fiscalYearStartMonth={1} />
|
|
2569
2726
|
*/
|
|
2570
2727
|
fiscalYearStartMonth?: number;
|
|
2728
|
+
/**
|
|
2729
|
+
* 比較期間。渡すと選択範囲から比較する範囲を計算し、トリガーに添える。
|
|
2730
|
+
* `previous-period` は直前の同じ日数、`previous-year` は 1 年前の同じ日付。比較の日付は渡さない。
|
|
2731
|
+
*
|
|
2732
|
+
* @example
|
|
2733
|
+
* <DateRangePicker comparison="previous-year" />
|
|
2734
|
+
*/
|
|
2735
|
+
comparison?: "previous-period" | "previous-year";
|
|
2571
2736
|
maxDate?: Date;
|
|
2572
2737
|
minDate?: Date;
|
|
2573
2738
|
placeholder?: string;
|
|
@@ -2873,6 +3038,58 @@ interface TrendIndicatorProps {
|
|
|
2873
3038
|
*/
|
|
2874
3039
|
declare const TrendIndicator: React.ForwardRefExoticComponent<TrendIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
2875
3040
|
|
|
3041
|
+
/**
|
|
3042
|
+
* 状態の語彙の正本: status → ラベルと色調。StatusBadge の既定の表示と、Tracker の凡例など
|
|
3043
|
+
* 同じ状態を語る他の場所が、同じ語を使うためにここから参照する。`label` は英語(フォールバック)で、
|
|
3044
|
+
* ページの言語に合わせた語は `statusLabel(status, locale)` で引く。
|
|
3045
|
+
*/
|
|
3046
|
+
declare const STATUS_VOCABULARY: {
|
|
3047
|
+
readonly success: {
|
|
3048
|
+
readonly label: "Healthy";
|
|
3049
|
+
readonly tone: "positive";
|
|
3050
|
+
};
|
|
3051
|
+
readonly partial: {
|
|
3052
|
+
readonly label: "Partially failed";
|
|
3053
|
+
readonly tone: "warning";
|
|
3054
|
+
};
|
|
3055
|
+
readonly failed: {
|
|
3056
|
+
readonly label: "Failed";
|
|
3057
|
+
readonly tone: "negative";
|
|
3058
|
+
};
|
|
3059
|
+
readonly delayed: {
|
|
3060
|
+
readonly label: "Delayed";
|
|
3061
|
+
readonly tone: "warning";
|
|
3062
|
+
};
|
|
3063
|
+
readonly running: {
|
|
3064
|
+
readonly label: "Running";
|
|
3065
|
+
readonly tone: "info";
|
|
3066
|
+
};
|
|
3067
|
+
readonly stopped: {
|
|
3068
|
+
readonly label: "Stopped";
|
|
3069
|
+
readonly tone: "neutral";
|
|
3070
|
+
};
|
|
3071
|
+
readonly active: {
|
|
3072
|
+
readonly label: "Active";
|
|
3073
|
+
readonly tone: "positive";
|
|
3074
|
+
};
|
|
3075
|
+
readonly inactive: {
|
|
3076
|
+
readonly label: "Inactive";
|
|
3077
|
+
readonly tone: "neutral";
|
|
3078
|
+
};
|
|
3079
|
+
readonly warning: {
|
|
3080
|
+
readonly label: "Warning";
|
|
3081
|
+
readonly tone: "warning";
|
|
3082
|
+
};
|
|
3083
|
+
readonly error: {
|
|
3084
|
+
readonly label: "Error";
|
|
3085
|
+
readonly tone: "negative";
|
|
3086
|
+
};
|
|
3087
|
+
readonly pending: {
|
|
3088
|
+
readonly label: "Pending";
|
|
3089
|
+
readonly tone: "info";
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
type StatusKey = keyof typeof STATUS_VOCABULARY;
|
|
2876
3093
|
interface StatusBadgeProps {
|
|
2877
3094
|
status: string;
|
|
2878
3095
|
label?: string;
|
|
@@ -2936,4 +3153,4 @@ interface DraftChartProps {
|
|
|
2936
3153
|
*/
|
|
2937
3154
|
declare function DraftChart({ children }: DraftChartProps): React.JSX.Element | null;
|
|
2938
3155
|
|
|
2939
|
-
export { AppShell, type AppShellHeaderProps, type AppShellProps, type AppShellSidebarProps, AreaChart, type AreaChartProps, type AttentionKind, AttentionList, type AttentionListProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListOptions, type BarListProps, type BarListSortOrder, BoxPlotChart, type BoxPlotChartProps, type BoxPlotGroup, COMPARISON_LABELS, CategoryBar, type CategoryBarMarker, type CategoryBarProps, type ChangeDisplay, type ChartActionsOptions, type ChartAnnotation, type ChartColor, type ChartColorToken, type ChartColors, type ChartCommonProps, type ChartComparison, type ChartEmptyState, type ChartEventPayload, type ChartForecast, type ChartForecastRow, ChartFrame, type ChartFrameProps, type ChartHighlight, type ChartRootAttributes, type ChartSeriesColor, type ChartSkeletonVariant, type ChartThreshold, type ChartTone, type ComboAxis, ComboChart, type ComboChartProps, type ComboReferenceLine, type ComboSeries, type ComboSeriesType, type Comparison, type ComparisonKind, type ComparisonOptions, type ComparisonResult, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, type DashboardCardActionProps, DashboardCardContent, type DashboardCardContentProps, DashboardCardDescription, type DashboardCardDescriptionProps, DashboardCardFooter, type DashboardCardFooterProps, DashboardCardHeader, type DashboardCardHeaderProps, DashboardCardPreset, type DashboardCardPresetProps, type DashboardCardProps, DashboardCardSkeleton, type DashboardCardSkeletonProps, DashboardCardTitle, type DashboardCardTitleProps, DataTable, DataTableColumnVisibility, type DataTableColumnVisibilityProps, DataTableContent, type DataTableContentProps, DataTableExport, type DataTableExportProps, DataTablePagination, type DataTablePaginationProps, DataTablePreset, type DataTablePresetProps, type DataTableProps, DataTableToolbar, type DataTableToolbarProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateStyle, Delta, type DeltaDirection, type DeltaProps, type DeltaSentiment, DonutChart, type DonutChartOptions, type DonutChartProps, type DonutVariant, DraftChart, type DraftChartProps, EChart, type EChartProps, FilledMap, type FilledMapName, type FilledMapProps, FilterBar, FilterBarActiveChips, type FilterBarActiveChipsProps, FilterBarClearButton, type FilterBarClearButtonProps, FilterBarMultiSelect, type FilterBarMultiSelectProps, FilterBarPreset, type FilterBarPresetProps, type FilterBarProps, FilterBarSelect, type FilterBarSelectProps, type FilterConfig, type FilterOption, type FilterType, type FilterValues, ForecastChart, type ForecastChartProps, type ForecastComponent, type ForecastOptions, type ForecastPeriod, type FunnelStep, FunnelSteps, type FunnelStepsProps, Heatmap, type HeatmapProps, HistogramChart, type HistogramChartProps, type HistogramThreshold, type HistoryGrain, KpiCard, type KpiCardProps, type KpiCardSource, type KpiPeriod, Legend, type LegendProps, LineChart, type LineChartProps, type MetricItem, MetricUnit, type MetricUnitProps, MetricValue, type MetricValueProps, type MetricVariant, MultiSelect, type MultiSelectProps, type NavGroup, type NavItem, type NumericKeys, PageShell, PageShellActions, type PageShellActionsProps, PageShellContent, type PageShellContentProps, PageShellDescription, type PageShellDescriptionProps, PageShellHeader, PageShellHeaderEnd, type PageShellHeaderEndProps, type PageShellHeaderProps, PageShellHeading, type PageShellHeadingProps, PageShellMeta, type PageShellMetaProps, type PageShellProps, PageShellSummary, PageShellSummaryCard, type PageShellSummaryCardProps, type PageShellSummaryProps, PageShellTitle, type PageShellTitleProps, PairedChart, type PairedChartProps, type PairedPanel, type PeriodGrain, PivotTable, type PivotTableProps, Placeholder, type PlaceholderProps, type Polarity, type PresetItem, ProgressCircle, type ProgressCircleProps, RECORD_MIN_POINTS, type RecordInsight, SampleBadge, type SampleBadgeProps, SampleClaim, SampleData, type SampleDataProps, ScatterChart, type ScatterChartProps, type ScatterReferenceLine, SearchableSelect, type SearchableSelectProps, SectionHeader, type SectionHeaderProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, type SelectOption, type SelectOptionGroup, type SelectOptions, Sparkline, type SparklineDataPoint, type SparklineProps, type SparklineVariant, StatusBadge, type StatusBadgeProps, SymbolMap, type SymbolMapBasemap, type SymbolMapProps, type TargetProgress, Tracker, type TrackerBlock, type TrackerProps, Treemap, type TreemapProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, UpdatedAt, type UpdatedAtProps, ValueFormat, type ValueFormatter, WaterfallChart, type WaterfallChartProps, type WaterfallMode, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useResolvedChartColors, useSampleMark };
|
|
3156
|
+
export { AppShell, type AppShellHeaderProps, type AppShellProps, type AppShellSidebarProps, AreaChart, type AreaChartProps, type AttentionKind, AttentionList, type AttentionListProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListOptions, type BarListProps, type BarListSortOrder, BoxPlotChart, type BoxPlotChartProps, type BoxPlotEntry, type BoxPlotGroup, COMPARISON_LABELS, CategoryBar, type CategoryBarMarker, type CategoryBarProps, type ChangeDisplay, type ChartActionsOptions, type ChartAnnotation, type ChartColor, type ChartColorToken, type ChartColors, type ChartCommonProps, type ChartComparison, type ChartEmptyState, type ChartEventPayload, type ChartForecast, type ChartForecastRow, ChartFrame, type ChartFrameProps, type ChartHighlight, type ChartRootAttributes, type ChartSeriesColor, type ChartSkeletonVariant, type ChartThreshold, type ChartTone, type ComboAxis, ComboChart, type ComboChartProps, type ComboReferenceLine, type ComboSeries, type ComboSeriesType, type Comparison, type ComparisonKind, type ComparisonOptions, type ComparisonResult, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, type DashboardCardActionProps, DashboardCardContent, type DashboardCardContentProps, DashboardCardDescription, type DashboardCardDescriptionProps, DashboardCardFooter, type DashboardCardFooterProps, DashboardCardHeader, type DashboardCardHeaderProps, DashboardCardPreset, type DashboardCardPresetProps, type DashboardCardProps, DashboardCardSkeleton, type DashboardCardSkeletonProps, DashboardCardTitle, type DashboardCardTitleProps, DataTable, DataTableColumnVisibility, type DataTableColumnVisibilityProps, DataTableContent, type DataTableContentProps, DataTableExport, type DataTableExportProps, DataTablePagination, type DataTablePaginationProps, DataTablePreset, type DataTablePresetProps, type DataTableProps, DataTableToolbar, type DataTableToolbarProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateStyle, Delta, type DeltaDirection, type DeltaProps, type DeltaSentiment, DonutChart, type DonutChartOptions, type DonutChartProps, type DonutVariant, DraftChart, type DraftChartProps, EChart, type EChartProps, FilledMap, type FilledMapName, type FilledMapProps, type FilledMapRegion, FilterBar, FilterBarActiveChips, type FilterBarActiveChipsProps, FilterBarAddFilter, type FilterBarAddFilterProps, FilterBarClearButton, type FilterBarClearButtonProps, FilterBarMultiSelect, type FilterBarMultiSelectProps, FilterBarPreset, type FilterBarPresetProps, type FilterBarProps, FilterBarSelect, type FilterBarSelectProps, type FilterConfig, type FilterOption, type FilterType, type FilterValues, ForecastChart, type ForecastChartProps, type ForecastComponent, type ForecastOptions, type ForecastPeriod, type FunnelStep, FunnelSteps, type FunnelStepsProps, Heatmap, type HeatmapCell, type HeatmapProps, HistogramChart, type HistogramChartProps, type HistogramThreshold, type HistoryGrain, KpiCard, type KpiCardProps, type KpiCardSource, type KpiPeriod, Legend, type LegendProps, LineChart, type LineChartProps, type MetricItem, MetricUnit, type MetricUnitProps, MetricValue, type MetricValueProps, type MetricVariant, MultiSelect, type MultiSelectProps, type NavGroup, type NavItem, type NumericKeys, PageShell, PageShellActions, type PageShellActionsProps, PageShellContent, type PageShellContentProps, PageShellDescription, type PageShellDescriptionProps, PageShellHeader, PageShellHeaderEnd, type PageShellHeaderEndProps, type PageShellHeaderProps, PageShellHeading, type PageShellHeadingProps, PageShellMeta, type PageShellMetaProps, type PageShellProps, PageShellSummary, PageShellSummaryCard, type PageShellSummaryCardProps, type PageShellSummaryProps, PageShellTitle, type PageShellTitleProps, PairedChart, type PairedChartProps, type PairedPanel, type PeriodGrain, PivotTable, type PivotTableProps, Placeholder, type PlaceholderProps, type Polarity, type PresetItem, ProgressCircle, type ProgressCircleProps, RECORD_MIN_POINTS, type RecordInsight, SampleBadge, type SampleBadgeProps, SampleClaim, SampleData, type SampleDataProps, ScatterChart, type ScatterChartProps, type ScatterPoint, type ScatterReferenceLine, type ScatterSeries, SearchableSelect, type SearchableSelectProps, SectionHeader, type SectionHeaderProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, type SelectOption, type SelectOptionGroup, type SelectOptions, Sparkline, type SparklineColumnOptions, type SparklineDataPoint, type SparklinePoint, type SparklinePointKind, type SparklineProps, type SparklineVariant, StatusBadge, type StatusBadgeProps, type StatusKey, SymbolMap, type SymbolMapBasemap, type SymbolMapPoint, type SymbolMapProps, type TargetProgress, Tracker, type TrackerBlock, type TrackerProps, Treemap, type TreemapLeaf, type TreemapProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, UpdatedAt, type UpdatedAtProps, ValueFormat, type ValueFormatter, WaterfallChart, type WaterfallChartProps, type WaterfallDeltaEnds, type WaterfallKind, type WaterfallMode, type WaterfallStack, type WaterfallStep, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useResolvedChartColors, useSampleMark };
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AppShell, AreaChart, AttentionList, BarChart, BarList, BoxPlotChart, COMPARISON_LABELS, CategoryBar, ChartFrame, ComboChart, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, DashboardCardContent, DashboardCardDescription, DashboardCardFooter, DashboardCardHeader, DashboardCardPreset, DashboardCardSkeleton, DashboardCardTitle, DataTable, DataTableColumnVisibility, DataTableContent, DataTableExport, DataTablePagination, DataTablePreset, DataTableToolbar, DateRangePicker, Delta, DonutChart, DraftChart, FilledMap, FilterBar, FilterBarActiveChips, FilterBarClearButton, FilterBarMultiSelect, FilterBarPreset, FilterBarSelect, ForecastChart, FunnelSteps, Heatmap, HistogramChart, KpiCard, Legend, LineChart, MetricUnit, MetricValue, MultiSelect, PageShell, PageShellActions, PageShellContent, PageShellDescription, PageShellHeader, PageShellHeaderEnd, PageShellHeading, PageShellMeta, PageShellSummary, PageShellSummaryCard, PageShellTitle, PairedChart, PivotTable, Placeholder, ProgressCircle, RECORD_MIN_POINTS, SampleBadge, SampleClaim, SampleData, ScatterChart, SearchableSelect, SectionHeader, SegmentedControl, StatusBadge, SymbolMap, Tracker, Treemap, TrendIndicator, UpdatedAt, WaterfallChart, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useSampleMark } from '../chunk-
|
|
2
|
-
export { EChart, useResolvedChartColors } from '../chunk-
|
|
3
|
-
export { Sparkline } from '../chunk-
|
|
1
|
+
export { AppShell, AreaChart, AttentionList, BarChart, BarList, BoxPlotChart, COMPARISON_LABELS, CategoryBar, ChartFrame, ComboChart, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, DashboardCardContent, DashboardCardDescription, DashboardCardFooter, DashboardCardHeader, DashboardCardPreset, DashboardCardSkeleton, DashboardCardTitle, DataTable, DataTableColumnVisibility, DataTableContent, DataTableExport, DataTablePagination, DataTablePreset, DataTableToolbar, DateRangePicker, Delta, DonutChart, DraftChart, FilledMap, FilterBar, FilterBarActiveChips, FilterBarAddFilter, FilterBarClearButton, FilterBarMultiSelect, FilterBarPreset, FilterBarSelect, ForecastChart, FunnelSteps, Heatmap, HistogramChart, KpiCard, Legend, LineChart, MetricUnit, MetricValue, MultiSelect, PageShell, PageShellActions, PageShellContent, PageShellDescription, PageShellHeader, PageShellHeaderEnd, PageShellHeading, PageShellMeta, PageShellSummary, PageShellSummaryCard, PageShellTitle, PairedChart, PivotTable, Placeholder, ProgressCircle, RECORD_MIN_POINTS, SampleBadge, SampleClaim, SampleData, ScatterChart, SearchableSelect, SectionHeader, SegmentedControl, StatusBadge, SymbolMap, Tracker, Treemap, TrendIndicator, UpdatedAt, WaterfallChart, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useSampleMark } from '../chunk-I2GWIPTD.js';
|
|
2
|
+
export { EChart, useResolvedChartColors } from '../chunk-GWXKENNH.js';
|
|
3
|
+
export { Sparkline } from '../chunk-U6MWBCM6.js';
|
|
4
4
|
export { DEFAULT_LOCALE, EMPTY_VALUE, MINUS_SIGN, formatDate, formatDateRange, formatDatesInText, formatDelta, formatKind, formatPoints, formatValue, toValueFormatter } from '../chunk-XRKSIC5Z.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-5HBUBVQ3.js';
|
|
6
6
|
import '../chunk-ROHNXP7J.js';
|
|
7
7
|
import '../chunk-U736PVHY.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/doc/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
2
2
|
export { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
3
|
-
import { Sparkline } from '../chunk-
|
|
3
|
+
import { Sparkline } from '../chunk-U6MWBCM6.js';
|
|
4
4
|
import { formatValue } from '../chunk-XRKSIC5Z.js';
|
|
5
5
|
import { Button, uiLanguage, useLocale } from '../chunk-ROHNXP7J.js';
|
|
6
6
|
import '../chunk-U736PVHY.js';
|
package/dist/slide/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
|
2
2
|
export { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
3
3
|
import { useSearchState } from '../chunk-ZO62C6T4.js';
|
|
4
4
|
import '../chunk-6S4BAIGV.js';
|
|
5
|
-
import { EChart } from '../chunk-
|
|
5
|
+
import { EChart } from '../chunk-GWXKENNH.js';
|
|
6
6
|
import { formatValue, EMPTY_VALUE } from '../chunk-XRKSIC5Z.js';
|
|
7
7
|
import { uiLanguage, useLocale } from '../chunk-ROHNXP7J.js';
|
|
8
8
|
import '../chunk-U736PVHY.js';
|
package/dist/table/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FILE_PAGE_MAX_ROWS, FILE_PAGE_MAX_BYTES } from '../chunk-C2CX6GLX.js';
|
|
2
2
|
import { useQuery } from '../chunk-ANZLVSEP.js';
|
|
3
3
|
import '../chunk-CKWPK4RO.js';
|
|
4
|
-
import { PageShell, PageShellHeader, PageShellHeading, PageShellTitle, PageShellMeta, PageShellActions, PageShellContent } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import { PageShell, PageShellHeader, PageShellHeading, PageShellTitle, PageShellMeta, PageShellActions, PageShellContent } from '../chunk-I2GWIPTD.js';
|
|
5
|
+
import '../chunk-GWXKENNH.js';
|
|
6
|
+
import '../chunk-U6MWBCM6.js';
|
|
7
7
|
import '../chunk-XRKSIC5Z.js';
|
|
8
|
-
import { Loading, ErrorState } from '../chunk-
|
|
8
|
+
import { Loading, ErrorState } from '../chunk-5HBUBVQ3.js';
|
|
9
9
|
import { Button } from '../chunk-ROHNXP7J.js';
|
|
10
10
|
import { cn } from '../chunk-U736PVHY.js';
|
|
11
11
|
import { useRef, useState, useMemo, useLayoutEffect, useEffect, useCallback } from 'react';
|