@squadbase/vantage 0.7.0 → 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.
Files changed (101) hide show
  1. package/README.md +1 -1
  2. package/dist/add-AU3EDPNW.js +6 -0
  3. package/dist/add-AU3EDPNW.js.map +1 -0
  4. package/dist/{chunk-AABMKHEU.js → chunk-35B3YIBF.js} +16 -7
  5. package/dist/chunk-35B3YIBF.js.map +1 -0
  6. package/dist/{chunk-QNOX7WLZ.js → chunk-5HBUBVQ3.js} +94 -8
  7. package/dist/chunk-5HBUBVQ3.js.map +1 -0
  8. package/dist/{chunk-EG4PX726.js → chunk-GWXKENNH.js} +122 -5
  9. package/dist/chunk-GWXKENNH.js.map +1 -0
  10. package/dist/{chunk-77CISBMG.js → chunk-I2GWIPTD.js} +3685 -350
  11. package/dist/chunk-I2GWIPTD.js.map +1 -0
  12. package/dist/{chunk-TRMHNMMZ.js → chunk-LYUGDHSF.js} +3 -3
  13. package/dist/{chunk-TRMHNMMZ.js.map → chunk-LYUGDHSF.js.map} +1 -1
  14. package/dist/{chunk-2IAPIOPS.js → chunk-U6MWBCM6.js} +28 -7
  15. package/dist/chunk-U6MWBCM6.js.map +1 -0
  16. package/dist/{chunk-3RJEOP3J.js → chunk-XRKSIC5Z.js} +5 -3
  17. package/dist/chunk-XRKSIC5Z.js.map +1 -0
  18. package/dist/cli.js +2 -2
  19. package/dist/components/index.d.ts +849 -12
  20. package/dist/components/index.js +5 -5
  21. package/dist/{delta-text-CbrOaW83.d.ts → delta-text-tav2Lh5d.d.ts} +1 -1
  22. package/dist/doc/index.d.ts +2 -2
  23. package/dist/doc/index.js +4 -4
  24. package/dist/{format-DihQkL1N.d.ts → format-D34piCei.d.ts} +2 -1
  25. package/dist/geo-japan-7BMSOJRX.js +8 -0
  26. package/dist/geo-japan-7BMSOJRX.js.map +1 -0
  27. package/dist/geo-us-GVOG7VXH.js +8 -0
  28. package/dist/geo-us-GVOG7VXH.js.map +1 -0
  29. package/dist/geo-world-35HL56UU.js +8 -0
  30. package/dist/geo-world-35HL56UU.js.map +1 -0
  31. package/dist/slide/index.d.ts +2 -2
  32. package/dist/slide/index.js +4 -4
  33. package/dist/table/index.js +5 -6
  34. package/dist/table/index.js.map +1 -1
  35. package/dist/ui/index.d.ts +35 -4
  36. package/dist/ui/index.js +174 -11
  37. package/dist/ui/index.js.map +1 -1
  38. package/dist/{upgrade-6DT7ADRP.js → upgrade-MCHMELWC.js} +3 -3
  39. package/dist/{upgrade-6DT7ADRP.js.map → upgrade-MCHMELWC.js.map} +1 -1
  40. package/docs/en/agent-skills.md +13 -14
  41. package/docs/en/changelog.md +8 -0
  42. package/docs/en/parts/draft-chart.md +42 -0
  43. package/docs/en/parts/page-shell.md +1 -1
  44. package/docs/index.json +70 -50
  45. package/docs/ja/agent-skills.md +14 -14
  46. package/docs/ja/changelog.md +8 -0
  47. package/docs/ja/parts/draft-chart.md +40 -0
  48. package/docs/ja/parts/page-shell.md +1 -1
  49. package/package.json +2 -2
  50. package/registry/parts.json +5319 -0
  51. package/registry/ui/area-chart.tsx +43 -8
  52. package/registry/ui/bar-chart.tsx +43 -8
  53. package/registry/ui/bar-list.tsx +43 -8
  54. package/registry/ui/box-plot-chart.tsx +42 -7
  55. package/registry/ui/category-bar.tsx +25 -5
  56. package/registry/ui/chart-frame.tsx +55 -14
  57. package/registry/ui/checkbox.tsx +4 -3
  58. package/registry/ui/code-block.tsx +44 -0
  59. package/registry/ui/combo-chart.tsx +1869 -0
  60. package/registry/ui/combobox.tsx +7 -0
  61. package/registry/ui/context-menu.tsx +71 -0
  62. package/registry/ui/dashboard-card.tsx +23 -10
  63. package/registry/ui/data-table.tsx +10 -2
  64. package/registry/ui/date-range-picker.tsx +51 -4
  65. package/registry/ui/delta.tsx +39 -12
  66. package/registry/ui/donut-chart.tsx +43 -8
  67. package/registry/ui/echart.tsx +167 -7
  68. package/registry/ui/file-dropzone.tsx +143 -0
  69. package/registry/ui/filter-bar.tsx +77 -2
  70. package/registry/ui/forecast-chart.tsx +4769 -0
  71. package/registry/ui/funnel-steps.tsx +23 -5
  72. package/registry/ui/heatmap.tsx +20 -3
  73. package/registry/ui/histogram-chart.tsx +42 -7
  74. package/registry/ui/kpi-card.tsx +15 -9
  75. package/registry/ui/legend.tsx +73 -15
  76. package/registry/ui/line-chart.tsx +43 -8
  77. package/registry/ui/metric-value.tsx +2 -2
  78. package/registry/ui/page-shell.tsx +27 -4
  79. package/registry/ui/paired-chart.tsx +44 -9
  80. package/registry/ui/pivot-table.tsx +1260 -0
  81. package/registry/ui/progress-circle.tsx +2 -2
  82. package/registry/ui/progress.tsx +1 -1
  83. package/registry/ui/scatter-chart.tsx +50 -12
  84. package/registry/ui/sparkline.tsx +44 -9
  85. package/registry/ui/states.tsx +34 -1
  86. package/registry/ui/status-badge.tsx +7 -7
  87. package/registry/ui/tabs.tsx +1 -0
  88. package/registry/ui/treemap.tsx +1934 -0
  89. package/registry/ui/waterfall-chart.tsx +64 -11
  90. package/templates/AGENTS.md +3 -3
  91. package/templates/agents/page.md +5 -4
  92. package/dist/add-4GHF2TX2.js +0 -6
  93. package/dist/add-4GHF2TX2.js.map +0 -1
  94. package/dist/chunk-2IAPIOPS.js.map +0 -1
  95. package/dist/chunk-3RJEOP3J.js.map +0 -1
  96. package/dist/chunk-77CISBMG.js.map +0 -1
  97. package/dist/chunk-AABMKHEU.js.map +0 -1
  98. package/dist/chunk-EG4PX726.js.map +0 -1
  99. package/dist/chunk-NZ5QIIG4.js +0 -74
  100. package/dist/chunk-NZ5QIIG4.js.map +0 -1
  101. package/dist/chunk-QNOX7WLZ.js.map +0 -1
@@ -4,8 +4,8 @@ import { HTMLAttributes, ReactNode, ComponentType, ElementType, Ref, ReactElemen
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import { EChartsOption } from 'echarts';
6
6
  export { EChartsOption } from 'echarts';
7
- import { V as ValueFormat, a as DateStyle } from '../format-DihQkL1N.js';
8
- export { D as DEFAULT_LOCALE, E as EMPTY_VALUE, F as FormatDateOptions, b as FormatKind, c as FormatValueOptions, M as MINUS_SIGN, f as formatDate, d as formatDateRange, e as formatDatesInText, g as formatDelta, h as formatKind, i as formatPoints, j as formatValue, t as toValueFormatter } from '../format-DihQkL1N.js';
7
+ import { V as ValueFormat, a as DateStyle } from '../format-D34piCei.js';
8
+ export { D as DEFAULT_LOCALE, E as EMPTY_VALUE, F as FormatDateOptions, b as FormatKind, c as FormatValueOptions, M as MINUS_SIGN, f as formatDate, d as formatDateRange, e as formatDatesInText, g as formatDelta, h as formatKind, i as formatPoints, j as formatValue, t as toValueFormatter } from '../format-D34piCei.js';
9
9
  import { RowData, ColumnDef, SortingState, OnChangeFn, ColumnFiltersState, PaginationState, RowSelectionState, VisibilityState, TableMeta, Table } from '@tanstack/react-table';
10
10
  export { ColumnDef, ColumnFiltersState, PaginationState, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
11
11
  export { DateRange as RdpDateRange } from 'react-day-picker';
@@ -25,7 +25,11 @@ interface UpdatedAtProps {
25
25
  }
26
26
  declare const UpdatedAt: React.ForwardRefExoticComponent<UpdatedAtProps & React.RefAttributes<HTMLTimeElement>>;
27
27
 
28
- interface PageShellProps extends HTMLAttributes<HTMLDivElement> {
28
+ interface PageShellProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
29
+ /** The page heading. When given, the header (title and `description`) and the content area are drawn for you; `children` go in the content area. */
30
+ title?: string;
31
+ /** One line under the title. Used only with `title`. */
32
+ description?: string;
29
33
  }
30
34
  declare const PageShell: React.ForwardRefExoticComponent<PageShellProps & React.RefAttributes<HTMLDivElement>>;
31
35
  interface PageShellHeaderProps extends HTMLAttributes<HTMLDivElement> {
@@ -46,6 +50,8 @@ interface PageShellHeaderProps extends HTMLAttributes<HTMLDivElement> {
46
50
  status?: ReactNode;
47
51
  }
48
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
+ *
49
55
  * A wrapping flex row, not a two-column grid: when the heading cannot keep its
50
56
  * 20rem basis next to `PageShellHeaderEnd`, the end block drops below it. A
51
57
  * `1fr auto` grid would instead hand the heading whatever the end block leaves,
@@ -449,13 +455,16 @@ declare function DashboardCardSkeleton({ className }: DashboardCardSkeletonProps
449
455
  interface DashboardCardPresetProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, Pick<DashboardCardProps, "subgrid" | "size"> {
450
456
  title?: ReactNode;
451
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;
452
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. */
453
462
  footer?: ReactNode;
454
463
  headerClassName?: string;
455
464
  contentClassName?: string;
456
465
  footerClassName?: string;
457
466
  }
458
- 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;
459
468
 
460
469
  interface EChartProps {
461
470
  /**
@@ -869,7 +878,7 @@ declare const AreaChart: (<T extends Record<string, unknown>>(props: AreaChartPr
869
878
  * (`index`) and the series keys (`categories`) instead of an ECharts option.
870
879
  * Grouped, stacked or 100%-stacked; vertical or horizontal bars. Colours are the
871
880
  * `--chart-1..5` tokens in fixed order (more than 5 series fold into「その他」)
872
- * and follow light/dark. The value axis always starts at 0. A horizontal bar chart of one
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
873
882
  * series (`barOptions.layout: "vertical"`) is a light tint by default, like BarList; `barOptions.highlight`
874
883
  * names the one bar the page is about, drawn in the full colour.
875
884
  * Renders inside `ChartFrame` (title, summary, loading skeleton, empty state).
@@ -1220,6 +1229,43 @@ interface WaterfallChartProps<T extends Record<string, unknown> = Record<string,
1220
1229
  /** 見出しが無いときのプロット領域の読み上げ名。省略時は「<金額の列>のウォーターフォールチャート」。 */
1221
1230
  ariaLabel?: string;
1222
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
+ }
1223
1269
  /** Generic over the row type, so `index` / `categories` keys are checked against `data`. */
1224
1270
  declare const WaterfallChart: (<T extends Record<string, unknown>>(props: WaterfallChartProps<T> & {
1225
1271
  ref?: Ref<HTMLDivElement>;
@@ -1325,6 +1371,25 @@ interface ScatterChartProps<T extends Record<string, unknown> = Record<string, u
1325
1371
  /** 見出しが無いときのプロット領域の読み上げ名。省略時は「<y の列>×<x の列>の散布図」。 */
1326
1372
  ariaLabel?: string;
1327
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
+ }
1328
1393
  /** Generic over the row type, so `x` / `y` / `size` / `index` / `series` keys are checked against `data`. */
1329
1394
  declare const ScatterChart: (<T extends Record<string, unknown>>(props: ScatterChartProps<T> & {
1330
1395
  ref?: Ref<HTMLDivElement>;
@@ -1341,6 +1406,10 @@ interface LegendProps {
1341
1406
  labels?: Record<string, string>;
1342
1407
  /** 並べ方。`"horizontal"`(既定。折り返す横並び)か `"vertical"`(縦並び)。 */
1343
1408
  layout?: "horizontal" | "vertical";
1409
+ /** 隠している系列名(`onHiddenChange` と対)。グラフに渡す `categories` からこの系列を外す。色は凡例の全 `categories` で決まるので、外しても残りの色は変わらない。 */
1410
+ hidden?: string[];
1411
+ /** 渡すと凡例のチップが押せるボタンになり、押すたびに系列を隠す・戻す(キーボードで操作でき、隠れたチップは薄くなる)。新しい `hidden` が渡される。 */
1412
+ onHiddenChange?: (hidden: string[]) => void;
1344
1413
  /** 凡例の読み上げ名。省略時は「凡例」。 */
1345
1414
  ariaLabel?: string;
1346
1415
  className?: string;
@@ -1367,12 +1436,15 @@ interface ChartFrameProps extends Omit<HTMLAttributes<HTMLElement>, "title" | "c
1367
1436
  /** 見出しが無いときのプロット領域のラベル。 */
1368
1437
  ariaLabel?: string;
1369
1438
  /**
1370
- * プロット領域の役割。既定 `"img"`(canvas のグラフ)。行がボタンやリンクになる
1439
+ * プロットの役割。既定 `"img"`(canvas のグラフ。`role="img"` と名前・要約は
1440
+ * `EChart` が canvas にだけ付け、操作ボタンは画像の外に置く)。行がボタンやリンクになる
1371
1441
  * HTML のグラフ(BarList・FunnelSteps)は `"group"` にして、中身を読ませる。
1372
1442
  */
1373
1443
  plotRole?: "img" | "group";
1374
1444
  /** 値の表。画面には出さず(`sr-only`)、スクリーンリーダー向けに図の中に置く。`chartDataTable` で作る。 */
1375
1445
  dataTable?: ChartDataTable;
1446
+ /** プロットの下に常に出す小さな注記(近似値である旨など)。読み込み中・空のときも出す。 */
1447
+ footnote?: string;
1376
1448
  /** プロット(チャート本体)。読み込み中・空のときは描かない。 */
1377
1449
  children?: ReactNode;
1378
1450
  }
@@ -1446,7 +1518,7 @@ declare const FunnelSteps: (<T extends object = FunnelStep>(props: FunnelStepsPr
1446
1518
  */
1447
1519
 
1448
1520
  /** Columns of `T` that hold numbers (null / undefined allowed for gaps); untyped rows keep every key. */
1449
- type NumericColumn<T> = {
1521
+ type NumericColumn$2<T> = {
1450
1522
  [K in keyof T]-?: unknown extends T[K] ? K : T[K] extends number | bigint | null | undefined ? K : never;
1451
1523
  }[keyof T] & string;
1452
1524
  interface HeatmapProps<T extends Record<string, unknown> = Record<string, unknown>> extends ChartRootAttributes {
@@ -1457,7 +1529,7 @@ interface HeatmapProps<T extends Record<string, unknown> = Record<string, unknow
1457
1529
  /** 縦軸(行)に使う列名。例 `"weekday"`・`"cohort"`。先頭の行が一番上。 */
1458
1530
  y: keyof T & string;
1459
1531
  /** マスの濃さを決める数値の列名。null・欠損・数値でない値のマスは塗らない(0 とは別。ツールチップとデータ表は「—」)。 */
1460
- value: NumericColumn<T>;
1532
+ value: NumericColumn$2<T>;
1461
1533
  /** 横軸の並び順(と表示するマス)。省略時は `data` の出現順。ここに無い x の行は描かない。 */
1462
1534
  xLabels?: string[];
1463
1535
  /** 縦軸の並び順(と表示するマス)。省略時は `data` の出現順。ここに無い y の行は描かない。 */
@@ -1499,7 +1571,7 @@ interface HeatmapProps<T extends Record<string, unknown> = Record<string, unknow
1499
1571
  * ツールチップとデータ表に添える列(同じ行の別の数値)。例 `["breached"]` →「月曜 9時台 電話 12件・SLA 未達 2件」の「SLA 未達 2件」。
1500
1572
  * 列名の表示は `labels`、値は `format`(単位つきの書式なら同じ単位)で出る。
1501
1573
  */
1502
- details?: NumericColumn<T>[];
1574
+ details?: NumericColumn$2<T>[];
1503
1575
  /**
1504
1576
  * この列が真(`true` / 0 でない数)の行のマスに、注意色(`--negative`)の枠を付ける。
1505
1577
  * 例 SLA 未達が集中したマス。色だけでなく枠の太さでも区別でき、ツールチップに「要注意」と出る。
@@ -1525,6 +1597,16 @@ interface HeatmapProps<T extends Record<string, unknown> = Record<string, unknow
1525
1597
  /** スクリーンリーダー向けのラベル。省略時は `<yの列>×<xの列>のヒートマップ`。 */
1526
1598
  ariaLabel?: string;
1527
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
+ }
1528
1610
  /** Generic over the row type, so `x` / `y` / `value` keys are checked against `data`. */
1529
1611
  declare const Heatmap: (<T extends Record<string, unknown>>(props: HeatmapProps<T> & {
1530
1612
  ref?: Ref<HTMLDivElement>;
@@ -1532,6 +1614,616 @@ declare const Heatmap: (<T extends Record<string, unknown>>(props: HeatmapProps<
1532
1614
  displayName?: string;
1533
1615
  };
1534
1616
 
1617
+ /**
1618
+ * PairedChart — 量(棒)と率・単価(線)を、同じ期間軸の上下 2 段で見せる型付きグラフ(`DashboardCardPreset` の中に置く)。
1619
+ * 二重 Y 軸は持たない: 上段が棒の値軸、下段が線の値軸で、横軸(期間)とツールチップの位置は
1620
+ * 1 つの ECharts の中で揃っている(ホバーすると同じ期間の棒と線の値が 1 枚のツールチップに出る)。
1621
+ * 段ごとに `format`(件数・金額・%)を持ち、率を分子・分母から計算することはしない(呼び元が値を渡す)。
1622
+ * 棒は 0 起点。色は `--chart-1..5` を固定順(棒 → 線の順に続く)で使い、ライト/ダークに追従する。
1623
+ * `ChartFrame` の中に描く(見出し・要約・読み込み中・空表示)。
1624
+ */
1625
+
1626
+ /** 1 段ぶんの設定。 */
1627
+ interface PairedPanel<T extends Record<string, unknown> = Record<string, unknown>> {
1628
+ /** この段に描く系列の列。 */
1629
+ categories: NumericKeys<T>[];
1630
+ /** 系列の色。省略時は `--chart-1..5` を固定順(上段の続きから下段)。 */
1631
+ colors?: ChartColors<T>;
1632
+ /** 値の書式(件数 `number`・金額 `currency`・率 `percent` など)。`percent` は比率(0.124 → 12.4%)を渡す。 */
1633
+ format?: ValueFormat;
1634
+ /** `format` で足りないときの自前の書式。 */
1635
+ valueFormatter?: ValueFormatter;
1636
+ /** 値軸の見出し(「売上」「客単価」など)。 */
1637
+ yAxisLabel?: string;
1638
+ /** 値軸の上限。データが超えるときは軸を広げる。 */
1639
+ maxValue?: number;
1640
+ }
1641
+ interface PairedChartProps<T extends Record<string, unknown> = Record<string, unknown>> extends Pick<ChartCommonProps<T>, "data" | "index" | "labels" | "title" | "summary" | "isLoading" | "emptyState" | "chartOptions" | "actions" | "fileName" | "className" | "ariaLabel"> {
1642
+ /** 上段。量を棒で。`type` は BarChart と同じ(`stacked` で積み上げ)。 */
1643
+ bars: PairedPanel<T> & {
1644
+ type?: CartesianStackType;
1645
+ };
1646
+ /** 下段。率・単価を線で。`fitToData` で値軸をデータに合わせる(率が狭い幅で動くとき)。 */
1647
+ line: PairedPanel<T> & {
1648
+ fitToData?: boolean;
1649
+ minValue?: number;
1650
+ };
1651
+ /** 全体の高さ(px)。既定 400。 */
1652
+ height?: number;
1653
+ /** 上段:下段の高さの比。既定 `[3, 2]`。 */
1654
+ heightRatio?: [number, number];
1655
+ /** 値軸ラベルの幅(px)。2 段の左端を揃える。既定 64。 */
1656
+ yAxisWidth?: number;
1657
+ showLegend?: boolean;
1658
+ showTooltip?: boolean;
1659
+ }
1660
+ /** Generic over the row type, so `index` / `categories` / `colors` keys are checked against `data`. */
1661
+ declare const PairedChart: (<T extends Record<string, unknown>>(props: PairedChartProps<T> & {
1662
+ ref?: Ref<HTMLDivElement>;
1663
+ }) => ReactElement) & {
1664
+ displayName?: string;
1665
+ };
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
+
1683
+ interface HistogramThreshold {
1684
+ /** 線を引く値(例 SLA の 3 日)。 */
1685
+ value: number;
1686
+ /** 線の名前(例「SLA」)。ツールチップ・要約・データ表の注記に出る。 */
1687
+ label?: string;
1688
+ }
1689
+ interface HistogramChartProps extends Omit<ChartCommonProps, "data" | "index" | "categories" | "colors" | "labels" | "summary"> {
1690
+ /** 生の値の配列。number か数値文字列。null・数にならない値は数えない。 */
1691
+ values: unknown[];
1692
+ /** 階級の幅。省略すると値の範囲から区切りのよい幅(1・2・2.5・5 × 10^n)を選ぶ。 */
1693
+ binWidth?: number;
1694
+ /** 階級の始まり。省略は幅の倍数に切り下げた最小値。 */
1695
+ start?: number;
1696
+ /** 上限。この値以上は 1 つの「<上限>以上」階級にまとめる。省略するとまとめない。 */
1697
+ max?: number;
1698
+ /** しきい値の線(任意)。階級の途中にも引ける。 */
1699
+ threshold?: HistogramThreshold;
1700
+ /** 件数の単位。既定は日本語のページで「件」、それ以外は単位なし。 */
1701
+ countUnit?: string;
1702
+ /** 横軸の値の名前(データ表の先頭列)。既定「値」。例「解決日数」 */
1703
+ valueLabel?: string;
1704
+ /** 1 文要約(自由文)。`"auto"` なら件数・最頻の階級・しきい値超えの割合を組む。省略時は要約なし。 */
1705
+ summary?: string | "auto";
1706
+ /** ホバー時のツールチップを出す。既定 `true`。 */
1707
+ showTooltip?: boolean;
1708
+ }
1709
+ declare const HistogramChart: React.ForwardRefExoticComponent<HistogramChartProps & React.RefAttributes<HTMLDivElement>>;
1710
+
1711
+ interface BoxPlotGroup {
1712
+ /** 箱の名前(横軸)。 */
1713
+ name: string;
1714
+ /** 生の値の配列。number か数値文字列。null・数にならない値は数えない。 */
1715
+ values: unknown[];
1716
+ }
1717
+ interface BoxPlotChartProps extends Omit<ChartCommonProps, "data" | "index" | "categories" | "colors" | "labels" | "summary"> {
1718
+ /** 群ごとの値。並びがそのまま左から右の順。 */
1719
+ groups: BoxPlotGroup[];
1720
+ /** ひげの長さ(四分位範囲の何倍までを外れ値にしないか)。既定 1.5。 */
1721
+ whisker?: number;
1722
+ /** 値(縦軸)の名前。ツールチップとデータ表に出る。既定「値」。例「残業時間」 */
1723
+ valueLabel?: string;
1724
+ /** 1 文要約(自由文)。`"auto"` なら中央値が最大・最小の群と外れ値の数を組む。省略時は要約なし。 */
1725
+ summary?: string | "auto";
1726
+ /** ホバー時のツールチップを出す。既定 `true`。 */
1727
+ showTooltip?: boolean;
1728
+ }
1729
+ interface BoxPlotEntry {
1730
+ name: string;
1731
+ stats: BoxStats | null;
1732
+ }
1733
+ declare const BoxPlotChart: React.ForwardRefExoticComponent<BoxPlotChartProps & React.RefAttributes<HTMLDivElement>>;
1734
+
1735
+ type AttentionKind = "overdue" | "risk" | "dueSoon" | "stale";
1736
+ type DateInput = Date | string | null | undefined;
1737
+ interface AttentionJudgement {
1738
+ kind: AttentionKind;
1739
+ /**
1740
+ * overdue: 期日を過ぎた日数(1 以上)/ dueSoon: 期日までの日数(0 = 当日)/
1741
+ * stale: 最終の動きからの日数/ risk: 0。
1742
+ */
1743
+ days: number;
1744
+ }
1745
+ interface AttentionListProps<T> {
1746
+ rows: T[];
1747
+ /** 基準日(`"2026-10-23"` か Date)。 */
1748
+ asOf: Date | string;
1749
+ /** 期日の何日前から「期限間近」にするか。既定 7。 */
1750
+ dueSoonDays?: number;
1751
+ /** この日数動きがなければ「滞留」。未指定なら滞留は判定しない。 */
1752
+ staleDays?: number;
1753
+ /** 区分名の差し替え(例: `{ overdue: "入金遅れ" }`)。 */
1754
+ labels?: Partial<Record<AttentionKind, string>>;
1755
+ /** 行の ID。省略時は `idKey` の列、それも無ければ行の順番。 */
1756
+ getRowId?: (row: T) => string;
1757
+ /** 行の見出し(顧客名・案件名など)。省略時は `titleKey` の列、それも無ければ空。 */
1758
+ getTitle?: (row: T) => ReactNode;
1759
+ getDueDate?: (row: T) => DateInput;
1760
+ getLastActivityAt?: (row: T) => DateInput;
1761
+ /** リスクと判定する行。期日・滞留より先に出す。 */
1762
+ isRisk?: (row: T) => boolean;
1763
+ /** 行の ID の列名(JSON で書ける `getRowId`)。 */
1764
+ idKey?: string;
1765
+ /** 見出しの列名(JSON で書ける `getTitle`)。 */
1766
+ titleKey?: string;
1767
+ /** 期日の列名(JSON で書ける `getDueDate`)。値は `"2026-10-23"` 形式の日付か Date。 */
1768
+ dueDateKey?: string;
1769
+ /** 最後に動きがあった日の列名(JSON で書ける `getLastActivityAt`)。 */
1770
+ lastActivityAtKey?: string;
1771
+ /** リスクの列名(JSON で書ける `isRisk`)。値が真の行をリストにする。 */
1772
+ riskKey?: string;
1773
+ /** 次の一手の列名(JSON で書ける `getNextAction`)。値が空の行には添えない。 */
1774
+ nextActionKey?: string;
1775
+ /** 理由の文。省略すると区分と日数から作る。 */
1776
+ getReason?: (row: T, judgement: AttentionJudgement) => ReactNode;
1777
+ /** 次の一手。判定に当たる行に添える。 */
1778
+ getNextAction?: (row: T, judgement: AttentionJudgement) => ReactNode;
1779
+ /** 見出しの右に出す補足(金額・担当者など)。 */
1780
+ getMeta?: (row: T) => ReactNode;
1781
+ /** 行を押したとき。渡すと行が button になる。 */
1782
+ onRowClick?: (row: T) => void;
1783
+ /** 判定に当たらない行も末尾に出す。既定 false。 */
1784
+ includeUnflagged?: boolean;
1785
+ /** 該当なしのときの見出し・説明。 */
1786
+ emptyTitle?: string;
1787
+ emptyDescription?: string;
1788
+ className?: string;
1789
+ }
1790
+ declare function AttentionList<T>({ rows, asOf, dueSoonDays, staleDays, labels, getRowId, getTitle, getDueDate, getLastActivityAt, isRisk, idKey, titleKey, dueDateKey, lastActivityAtKey, riskKey, nextActionKey, getReason, getNextAction, getMeta, onRowClick, includeUnflagged, emptyTitle, emptyDescription, className, ...rest }: AttentionListProps<T> & Omit<HTMLAttributes<HTMLUListElement>, keyof AttentionListProps<T>>): React.JSX.Element;
1791
+ declare namespace AttentionList {
1792
+ var displayName: string;
1793
+ }
1794
+
1795
+ /**
1796
+ * ComboChart — bars, lines and areas on one category / time axis, with up to two value axes (left and right); use it only to migrate a Tableau dual-axis sheet, and use `PairedChart` for a new dashboard.
1797
+ *
1798
+ * It exists to reproduce a Tableau dual-axis sheet faithfully (a Pareto: sales as bars, the cumulative share as a
1799
+ * line on the right). For a new dashboard prefer PairedChart, which stacks the two measures in panels over a
1800
+ * shared axis instead of reading two scales off one plot.
1801
+ *
1802
+ * Each value axis starts at 0 (bars always do; a negative value extends the axis below it), carries its own format
1803
+ * (`format` left, `rightFormat` right), and never repeats a tick label: the tick step widens until every label on
1804
+ * the axis reads differently. Only the left axis draws grid lines. `referenceLines` draw dashed lines on either axis.
1805
+ * Clicking a bar or a point calls `onSelect` with its row.
1806
+ */
1807
+
1808
+ type ComboSeriesType = "bar" | "line" | "area";
1809
+ type ComboAxis = "left" | "right";
1810
+ /** One measure of a ComboChart. */
1811
+ interface ComboSeries<K extends string = string> {
1812
+ /** 値の列名。 */
1813
+ key: K;
1814
+ /** 描き方。`"bar"`(棒)・`"line"`(線)・`"area"`(面)。 */
1815
+ type: ComboSeriesType;
1816
+ /** どちらの値の軸で読むか。既定 `"left"`。`"right"` の系列が 1 つでもあると右軸を出す。 */
1817
+ axis?: ComboAxis;
1818
+ /** 凡例・ツールチップの表示名。省略時は `labels[key]`、無ければ列名。 */
1819
+ label?: string;
1820
+ /** 色。`"chart-1"`〜`"chart-5"` か意味色。省略時は系列の順にトークン色。 */
1821
+ color?: ChartSeriesColor;
1822
+ }
1823
+ /** A dashed horizontal (vertical with `layout="vertical"`) line at a value of one axis. */
1824
+ interface ComboReferenceLine {
1825
+ /** 線を引く値。 */
1826
+ value: number;
1827
+ /** どちらの軸の値か。既定 `"left"`。 */
1828
+ axis?: ComboAxis;
1829
+ /** 線のラベル。省略時は軸の書式で値を書く。 */
1830
+ label?: string;
1831
+ }
1832
+ interface ComboChartProps<T extends Record<string, unknown> = Record<string, unknown>> extends ChartRootAttributes {
1833
+ /** 行の配列。1 行 = カテゴリ軸の 1 つの値(集計済み)。 */
1834
+ data: T[];
1835
+ /** カテゴリ軸(横軸)の列名。例 `"month"`・`"product"`。行の順に並ぶ。 */
1836
+ index: keyof T & string;
1837
+ /** 描く系列。`{ key, type: "bar" | "line" | "area", axis?: "left" | "right", label? }` の配列。描く順(後ろほど手前)。 */
1838
+ series: ComboSeries<keyof T & string>[];
1839
+ /** 左軸(と左軸の系列のツールチップ・データ表)の書式。既定 `"compact"` 相当の短い表記。 */
1840
+ format?: ValueFormat;
1841
+ /** 右軸の書式。例 パレート図の累積比なら `"percent"`。省略時は `format`。 */
1842
+ rightFormat?: ValueFormat;
1843
+ /** 列名・カテゴリの値 → 表示名。 */
1844
+ labels?: Record<string, string>;
1845
+ /** 参照線(目標・平均など)。`{ value, axis?, label? }` の配列。 */
1846
+ referenceLines?: ComboReferenceLine[];
1847
+ /** 同じ軸の棒どうし・面どうしを積み上げる。既定 `false`(棒は横に並べる)。 */
1848
+ stacked?: boolean;
1849
+ /** `"vertical"` でカテゴリを縦軸に並べる(横棒)。左軸は下、右軸は上になる。既定 `"horizontal"`。 */
1850
+ layout?: "horizontal" | "vertical";
1851
+ /** 凡例を出す。既定 `true`(系列が 2 つ以上のとき)。 */
1852
+ showLegend?: boolean;
1853
+ /** ホバーでツールチップを出す。既定 `true`。 */
1854
+ showTooltip?: boolean;
1855
+ /** 棒・点のクリック。その行を受け取る(フィルターの操作に使う)。 */
1856
+ onSelect?: (row: T) => void;
1857
+ /** グラフの見出し。 */
1858
+ title?: string;
1859
+ /** グラフが言っていることの 1 文要約。 */
1860
+ summary?: string;
1861
+ /** 読み込み中。最終形と同じ高さのスケルトンを出す。 */
1862
+ isLoading?: boolean;
1863
+ /** `data` が空のときの表示。 */
1864
+ emptyState?: ChartEmptyState;
1865
+ /** プロット領域の高さ(px)。既定 288。 */
1866
+ height?: number;
1867
+ /** 生成した EChartsOption に最後に深くマージする逃げ道。 */
1868
+ chartOptions?: EChartsOption;
1869
+ /** グラフ右上に PNG 保存/コピーのボタンを出す。 */
1870
+ actions?: boolean | ChartActionsOptions;
1871
+ /** PNG 保存時のファイル名(拡張子つき)。 */
1872
+ fileName?: string;
1873
+ className?: string;
1874
+ /** スクリーンリーダー向けのラベル。 */
1875
+ ariaLabel?: string;
1876
+ }
1877
+ /** Generic over the row type, so `index` and the series keys are checked against `data`. */
1878
+ declare const ComboChart: (<T extends Record<string, unknown>>(props: ComboChartProps<T> & {
1879
+ ref?: Ref<HTMLDivElement>;
1880
+ }) => ReactElement) & {
1881
+ displayName?: string;
1882
+ };
1883
+
1884
+ /**
1885
+ * 等間隔の 1 系列に対する指数平滑法(ETS、誤差は加法)の予測。依存なしの純関数で、同じ入力には同じ出力を返す(乱数を使わない)。
1886
+ *
1887
+ * - モデルは トレンド(なし / 加法)× 季節(なし / 加法 / 乗法)。乗法トレンドは扱わず、加法トレンドとして当てはめる
1888
+ * (`model.trend` には実際に当てはめた `"additive"` が入る)。乗法トレンドの予測区間は閉じた式が無く、決定的に出せないため。
1889
+ * - 平滑化係数(α・β・γ)と初期の水準・傾きは、1 期先予測の残差平方和の最小化(誤差が加法なので最尤と同じ)を
1890
+ * Nelder–Mead で解く。範囲は 0 < α < 1、0 < β < α、0 < γ < 1 − α。初期の季節成分は古典的分解(最初の数季節の移動平均)で決める。
1891
+ * - `"auto"` は当てはめられる組み合わせをすべて当て、AICc が最小のものを選ぶ(Tableau も最大 8 モデルから AIC で選ぶ)。
1892
+ * - 予測区間は ETS(A,·,·) の分散の式(Hyndman ほか 2008 / fpp の表)で、点予測 ± z·σ·√(分散の倍率)。σ は残差から。
1893
+ * 乗法の季節は閉じた式が無いので、2 期先以降の項に季節指数の 2 乗を掛ける近似にしている。
1894
+ * - Tableau はパラメータの推定方法を公開していないため、同じモデルを選んでも値は一致しない(近似値として扱う)。
1895
+ */
1896
+ /** トレンド・季節の指定。`"auto"` は当てはめられる候補から AICc で選ぶ。 */
1897
+ type ForecastComponent = "none" | "additive" | "multiplicative" | "auto";
1898
+ interface ForecastOptions {
1899
+ /** トレンド。既定 `"auto"`。`"multiplicative"` は加法トレンドとして当てはめる。 */
1900
+ trend?: ForecastComponent;
1901
+ /** 季節。既定 `"auto"`。`seasonLength` が 1 以下か、点が 2 季節分に満たないときは季節なしに落とす。 */
1902
+ season?: ForecastComponent;
1903
+ /** 1 季節の期数(月次 12・四半期 4・曜日 7)。省略か 1 で季節なし。 */
1904
+ seasonLength?: number;
1905
+ /**
1906
+ * 予測する期数。既定は季節ありなら 1 季節分(`seasonLength`)、なければ当てはめた点の 4 分の 1(1〜12 期)。
1907
+ * 末尾の除外期(`ignoreLast` と末尾の欠損)はこれとは別に予測する。
1908
+ */
1909
+ horizon?: number;
1910
+ /** 予測区間の信頼水準(0〜1)。既定 0.95。 */
1911
+ confidence?: number;
1912
+ /** 末尾から除外する期数(締まっていない期)。当てはめに使わず、予測する側に回す。既定 0。 */
1913
+ ignoreLast?: number;
1914
+ }
1915
+
1916
+ /**
1917
+ * ForecastChart — a time-series line chart that continues each series with an exponential-smoothing forecast (dashed line and shaded prediction interval) computed from `data` at render time; place it inside `DashboardCardPreset`, and use it to migrate a Tableau forecast sheet.
1918
+ *
1919
+ * Pass the rows, the date column (`x`), the value column (`y`) and optionally a column that splits the rows into
1920
+ * series (`series`, e.g. a segment). Rows that fall in the same period and series are summed. The forecast is
1921
+ * recomputed on every change of the inputs (never stored or fetched) with the model family in `forecast`
1922
+ * (trend / season, `"auto"` picks the lowest AICc), so it is an approximation: a fixed note under the plot always
1923
+ * says so (name the source tool with `forecastSource`; `forecastNote` only adds to it). A series with too few points draws its actuals only.
1924
+ */
1925
+
1926
+ /** 予測の 1 期の長さ。未来の日付を進める単位。 */
1927
+ type ForecastPeriod = "day" | "week" | "month" | "quarter" | "year";
1928
+ interface ForecastChartProps<T extends Record<string, unknown> = Record<string, unknown>> extends Omit<ChartCommonProps<T>, "index" | "categories" | "colors"> {
1929
+ /** 日付の列名。ISO の日付・年月(`"2026-01"`)・年・`Date` を受ける。 */
1930
+ x: keyof T & string;
1931
+ /** 値の列名。number か数値文字列。 */
1932
+ y: keyof T & string;
1933
+ /** 系列に分ける列名(セグメントなど)。省略時は 1 系列。6 つ以上は合計の大きい 5 つ +「その他」にまとめる。 */
1934
+ series?: keyof T & string;
1935
+ /** 1 期の長さ。省略時は日付の間隔から推定する。同じ期に入る行は合計する。 */
1936
+ period?: ForecastPeriod;
1937
+ /**
1938
+ * 予測の設定(トレンド・季節・季節の長さ・期数・信頼水準・末尾の除外期)。`seasonLength` を省略すると `period` から
1939
+ * 決める(月 12・四半期 4・週 52・日 7・年は季節なし)。例: `forecast={{ trend: "additive", season: "additive", horizon: 12 }}`
1940
+ */
1941
+ forecast?: ForecastOptions;
1942
+ /** 凡例・ツールチップ・境目の縦線に出す予測の呼び名。既定は表示言語の「予測」/ "Forecast"。 */
1943
+ forecastLabel?: string;
1944
+ /**
1945
+ * 予測の元になったツール(`"Tableau"` など)。プロットの下の注記に「〈ツール〉の予測値とは一致しない」と名前で出す。
1946
+ * 注記そのもの(近似であること)は部品が必ず出し、置き換えられない。
1947
+ */
1948
+ forecastSource?: string;
1949
+ /** 注記のあとに足す補足(集計の範囲など)。近似の注記を置き換えるものではない。 */
1950
+ forecastNote?: string;
1951
+ /** 系列色。配列は系列の順、record は系列名ごと。省略時はトークン順。 */
1952
+ colors?: ChartColors;
1953
+ /** 凡例・ツールチップを出す。既定 `true`。 */
1954
+ showLegend?: boolean;
1955
+ showTooltip?: boolean;
1956
+ /** 値軸の目盛り線を出す。既定 `true`。 */
1957
+ showGridLines?: boolean;
1958
+ showXAxis?: boolean;
1959
+ showYAxis?: boolean;
1960
+ /** y 軸ラベルの幅(px)。 */
1961
+ yAxisWidth?: number;
1962
+ /** 値軸の下限・上限(データ・予測区間がはみ出すときは軸を広げる)。 */
1963
+ minValue?: number;
1964
+ maxValue?: number;
1965
+ /** 値軸を 0 からではなくデータに合わせる。既定 `false`。 */
1966
+ fitToData?: boolean;
1967
+ xAxisLabel?: string;
1968
+ yAxisLabel?: string;
1969
+ }
1970
+ /** Generic over the row type, so `x` / `y` / `series` are checked against `data`. */
1971
+ declare const ForecastChart: (<T extends Record<string, unknown>>(props: ForecastChartProps<T> & {
1972
+ ref?: Ref<HTMLDivElement>;
1973
+ }) => ReactElement) & {
1974
+ displayName?: string;
1975
+ };
1976
+
1977
+ /** The maps the parts draw. */
1978
+ type GeoMapName = "japan" | "us" | "world";
1979
+
1980
+ /**
1981
+ * FilledMap — a choropleth: each region (Japanese prefecture, US state or country) shaded by a number. Pass rows,
1982
+ * the column naming the region and the number to shade by instead of an ECharts option.
1983
+ *
1984
+ * Regions are matched by name or code, in Japanese or English: 「東京都」「東京」「Tokyo」「JP-13」「13」,
1985
+ * 「California」「CA」「US-CA」, 「Japan」「JPN」「JP」 (case, width and accents don't matter: "Ōita" = "Oita").
1986
+ * `map="auto"` (default) picks the map whose regions the most rows name. A row that names no region is not drawn;
1987
+ * it is listed in the screen-reader table instead.
1988
+ *
1989
+ * Shading is a single-colour ramp of one theme colour (`tone`, `--chart-1` by default) like Heatmap: the lowest
1990
+ * value is the tone mixed 20% into the surface, the highest the tone itself, never a rainbow. A region with no row
1991
+ * (or a null value) is grey. `selected` dims the other regions; clicking a region calls `onSelect` (a filter action).
1992
+ * The boundaries (Natural Earth, public domain) load on demand, so the part shows its skeleton for a moment the first time.
1993
+ */
1994
+
1995
+ /** Columns of `T` that hold numbers (null / undefined allowed for gaps); untyped rows keep every key. */
1996
+ type NumericColumn$1<T> = {
1997
+ [K in keyof T]-?: unknown extends T[K] ? K : T[K] extends number | bigint | null | undefined ? K : never;
1998
+ }[keyof T] & string;
1999
+ type FilledMapName = GeoMapName | "auto";
2000
+ interface FilledMapProps<T extends Record<string, unknown> = Record<string, unknown>> extends ChartRootAttributes {
2001
+ /** 行の配列。1 行 = 1 地域。同じ地域が複数あれば後の行が勝つ。値は number か数値文字列。 */
2002
+ data: T[];
2003
+ /** 地域を表す列名。都道府県名(「東京都」「東京」「Tokyo」)・州名・国名か、コード(`JP-13`・`13`・`CA`・`US-CA`・`JPN`・`JP`)。 */
2004
+ region: keyof T & string;
2005
+ /** 塗りの濃さを決める数値の列名。null・欠損の地域は灰色(0 とは別)。 */
2006
+ value: NumericColumn$1<T>;
2007
+ /** 描く地図。`"japan"`(都道府県)・`"us"`(州)・`"world"`(国)。既定 `"auto"`(地域の列の値が最も多く当たる地図)。 */
2008
+ map?: FilledMapName;
2009
+ /** 列名・地域の値 → 表示名(ツールチップ・データ表)。例 `{ sales: "売上" }`。 */
2010
+ labels?: Record<string, string>;
2011
+ /** 数値の書式(`"number"` / `"currency"` / `"percent"` / `{ type: "number", unit: "件" }` など)。既定 `"number"`。 */
2012
+ format?: ValueFormat;
2013
+ /** 書式を関数で直接渡す逃げ道。`format` より優先する。 */
2014
+ valueFormatter?: ValueFormatter;
2015
+ /** 濃淡の色。`"chart-1"`〜`"chart-5"` か意味色。薄い → 濃いの単色(レインボーにしない)。既定 `"chart-1"`。 */
2016
+ tone?: ChartSeriesColor;
2017
+ /** 濃さの固定スケール。省略時はデータの最小〜最大。範囲外の値は端に丸める。 */
2018
+ scale?: {
2019
+ min?: number;
2020
+ max?: number;
2021
+ };
2022
+ /** 凡例(薄い → 濃いの帯と両端の値)を出す。既定 `true`。 */
2023
+ showLegend?: boolean;
2024
+ /** ホバーでツールチップを出す。既定 `true`。 */
2025
+ showTooltip?: boolean;
2026
+ /** ツールチップとデータ表に添える列(同じ行の別の値)。数値は `format`、それ以外は文字のまま。 */
2027
+ details?: (keyof T & string)[];
2028
+ /** 選択中の地域(`region` 列の値。名前・コードのどの書き方でもよい)。渡すと、それ以外の地域を薄くする。 */
2029
+ selected?: string[];
2030
+ /** 地域のクリック。`region` 列の値と、その行を受け取る(フィルターの操作に使う)。データの無い地域では呼ばない。 */
2031
+ onSelect?: (region: string, row: T) => void;
2032
+ /** グラフの見出し。 */
2033
+ title?: string;
2034
+ /** グラフが言っていることの 1 文要約。`"auto"` で最大の地域から自動生成。 */
2035
+ summary?: string | "auto";
2036
+ /** 読み込み中。最終形と同じ高さのスケルトンを出す。 */
2037
+ isLoading?: boolean;
2038
+ /** `data` が空のときの表示。 */
2039
+ emptyState?: ChartEmptyState;
2040
+ /** プロット領域の高さ(px)。既定 288。 */
2041
+ height?: number;
2042
+ /** 生成した EChartsOption に最後に深くマージする逃げ道。 */
2043
+ chartOptions?: EChartsOption;
2044
+ /** グラフ右上に PNG 保存/コピーのボタンを出す。 */
2045
+ actions?: boolean | ChartActionsOptions;
2046
+ /** PNG 保存時のファイル名(拡張子つき)。 */
2047
+ fileName?: string;
2048
+ className?: string;
2049
+ /** スクリーンリーダー向けのラベル。省略時は `<valueの列>の地図`。 */
2050
+ ariaLabel?: string;
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
+ }
2061
+ /** Generic over the row type, so `region` / `value` keys are checked against `data`. */
2062
+ declare const FilledMap: (<T extends Record<string, unknown>>(props: FilledMapProps<T> & {
2063
+ ref?: Ref<HTMLDivElement>;
2064
+ }) => ReactElement) & {
2065
+ displayName?: string;
2066
+ };
2067
+
2068
+ /**
2069
+ * SymbolMap — points at latitude / longitude over a faint boundary basemap (Japan's prefectures, US states or the
2070
+ * countries of the world). Pass rows and the two coordinate columns instead of an ECharts option.
2071
+ *
2072
+ * `size` scales each symbol's area by a number; `color` colours it by a number (a single-hue ramp of `tone`, like
2073
+ * Heatmap) or by a category (`--chart-1..5` in order of appearance, the 6th category on as「その他」/ "Other").
2074
+ * `basemap="auto"` (default) picks the smallest map holding every point. A row without usable coordinates is not
2075
+ * drawn; it is listed in the screen-reader table instead. `selected` dims the other points; clicking a point calls
2076
+ * `onSelect` (a filter action). The boundaries (Natural Earth, public domain) load on demand.
2077
+ */
2078
+
2079
+ type SymbolMapBasemap = GeoMapName | "auto";
2080
+ interface SymbolMapProps<T extends Record<string, unknown> = Record<string, unknown>> extends ChartRootAttributes {
2081
+ /** 行の配列。1 行 = 1 点。 */
2082
+ data: T[];
2083
+ /** 緯度の列名(-90〜90。数値か数値文字列)。 */
2084
+ latitude: keyof T & string;
2085
+ /** 経度の列名(-180〜180。数値か数値文字列)。 */
2086
+ longitude: keyof T & string;
2087
+ /** 点の名前の列名(ツールチップ・データ表・`selected` の照合に使う)。 */
2088
+ name?: keyof T & string;
2089
+ /** 点の大きさ(面積)を決める数値の列名。省略時は同じ大きさ。 */
2090
+ size?: keyof T & string;
2091
+ /** 点の色を決める列名。数値なら `tone` の単色の濃淡、文字ならカテゴリ色(`--chart-1..5` の出現順、6 つ目以降は「その他」)。 */
2092
+ color?: keyof T & string;
2093
+ /** 背景の地図。`"japan"`・`"us"`・`"world"`。既定 `"auto"`(全部の点が入る最も狭い地図)。 */
2094
+ basemap?: SymbolMapBasemap;
2095
+ /** 列名 → 表示名(ツールチップ・凡例・データ表)。 */
2096
+ labels?: Record<string, string>;
2097
+ /** 数値の書式(`color` の数値と、`sizeFormat` が無いときの `size`)。既定 `"number"`。 */
2098
+ format?: ValueFormat;
2099
+ /** `size` の値の書式。省略時は `format`。 */
2100
+ sizeFormat?: ValueFormat;
2101
+ /** 数値の `color` の濃淡の色。`"chart-1"`〜`"chart-5"` か意味色。既定 `"chart-1"`。 */
2102
+ tone?: ChartSeriesColor;
2103
+ /** 凡例(数値の色なら濃淡の帯、カテゴリなら色の一覧)を出す。既定 `true`。 */
2104
+ showLegend?: boolean;
2105
+ /** ホバーでツールチップを出す。既定 `true`。 */
2106
+ showTooltip?: boolean;
2107
+ /** ツールチップとデータ表に添える列。 */
2108
+ details?: (keyof T & string)[];
2109
+ /** 選択中の点(`name` 列の値)。渡すと、それ以外の点を薄くする。 */
2110
+ selected?: string[];
2111
+ /** 点のクリック。その行を受け取る(フィルターの操作に使う)。 */
2112
+ onSelect?: (row: T) => void;
2113
+ /** グラフの見出し。 */
2114
+ title?: string;
2115
+ /** グラフが言っていることの 1 文要約。 */
2116
+ summary?: string;
2117
+ /** 読み込み中。最終形と同じ高さのスケルトンを出す。 */
2118
+ isLoading?: boolean;
2119
+ /** `data` が空のときの表示。 */
2120
+ emptyState?: ChartEmptyState;
2121
+ /** プロット領域の高さ(px)。既定 288。 */
2122
+ height?: number;
2123
+ /** 生成した EChartsOption に最後に深くマージする逃げ道。 */
2124
+ chartOptions?: EChartsOption;
2125
+ /** グラフ右上に PNG 保存/コピーのボタンを出す。 */
2126
+ actions?: boolean | ChartActionsOptions;
2127
+ /** PNG 保存時のファイル名(拡張子つき)。 */
2128
+ fileName?: string;
2129
+ className?: string;
2130
+ /** スクリーンリーダー向けのラベル。 */
2131
+ ariaLabel?: string;
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
+ }
2144
+ /** Generic over the row type, so the column keys are checked against `data`. */
2145
+ declare const SymbolMap: (<T extends Record<string, unknown>>(props: SymbolMapProps<T> & {
2146
+ ref?: Ref<HTMLDivElement>;
2147
+ }) => ReactElement) & {
2148
+ displayName?: string;
2149
+ };
2150
+
2151
+ /**
2152
+ * Treemap — parts of a whole as nested rectangles whose areas are the values.
2153
+ * Pass rows, the leaf column (`index`),
2154
+ * optionally a parent column (`group`, for two levels) and the number (`value`) instead of an ECharts option.
2155
+ *
2156
+ * Colour is categorical by `group` (or by `index` without one): `--chart-1..5` for the largest five, the rest the
2157
+ * 「その他」grey. A numeric `color` column shades each tile on a single-hue ramp of `tone` instead (like Heatmap).
2158
+ * Each tile carries its name and value when it fits. Values that are zero, negative or missing take no area; they
2159
+ * stay in the screen-reader table. Clicking a tile calls `onSelect` with its row.
2160
+ */
2161
+
2162
+ /** Columns of `T` that hold numbers (null / undefined allowed for gaps); untyped rows keep every key. */
2163
+ type NumericColumn<T> = {
2164
+ [K in keyof T]-?: unknown extends T[K] ? K : T[K] extends number | bigint | null | undefined ? K : never;
2165
+ }[keyof T] & string;
2166
+ interface TreemapProps<T extends Record<string, unknown> = Record<string, unknown>> extends ChartRootAttributes {
2167
+ /** 行の配列。1 行 = 1 タイル(集計済みの値)。 */
2168
+ data: T[];
2169
+ /** タイル(葉)の名前の列名。例 `"product"`。 */
2170
+ index: keyof T & string;
2171
+ /** 親の列名(2 階層にする)。例 `"category"`。省略時は 1 階層。 */
2172
+ group?: keyof T & string;
2173
+ /** タイルの面積を決める数値の列名。0 以下・欠損の行は面積を持たない(データ表には残る)。 */
2174
+ value: NumericColumn<T>;
2175
+ /** タイルの色を決める数値の列名(`tone` の単色の濃淡)。省略時は `group`(無ければ `index`)ごとのカテゴリ色。 */
2176
+ color?: NumericColumn<T>;
2177
+ /** 列名・値 → 表示名(タイル・ツールチップ・凡例・データ表)。 */
2178
+ labels?: Record<string, string>;
2179
+ /** `value` の書式。既定 `"number"`。 */
2180
+ format?: ValueFormat;
2181
+ /** `color` の値の書式。省略時は `format`。 */
2182
+ colorFormat?: ValueFormat;
2183
+ /** 書式を関数で直接渡す逃げ道(`value`)。`format` より優先する。 */
2184
+ valueFormatter?: ValueFormatter;
2185
+ /** 数値の `color` の濃淡の色。既定 `"chart-1"`。 */
2186
+ tone?: ChartSeriesColor;
2187
+ /** 凡例(カテゴリ色なら色の一覧、数値の色なら濃淡の帯)を出す。既定 `true`(カテゴリ色は `group` があるときだけ)。 */
2188
+ showLegend?: boolean;
2189
+ /** ホバーでツールチップを出す。既定 `true`。 */
2190
+ showTooltip?: boolean;
2191
+ /** タイルのクリック。その行を受け取る(フィルターの操作に使う)。 */
2192
+ onSelect?: (row: T) => void;
2193
+ /** グラフの見出し。 */
2194
+ title?: string;
2195
+ /** グラフが言っていることの 1 文要約。`"auto"` で最大のタイルとその構成比。 */
2196
+ summary?: string | "auto";
2197
+ /** 読み込み中。最終形と同じ高さのスケルトンを出す。 */
2198
+ isLoading?: boolean;
2199
+ /** `data` が空のときの表示。 */
2200
+ emptyState?: ChartEmptyState;
2201
+ /** プロット領域の高さ(px)。既定 288。 */
2202
+ height?: number;
2203
+ /** 生成した EChartsOption に最後に深くマージする逃げ道。 */
2204
+ chartOptions?: EChartsOption;
2205
+ /** グラフ右上に PNG 保存/コピーのボタンを出す。 */
2206
+ actions?: boolean | ChartActionsOptions;
2207
+ /** PNG 保存時のファイル名(拡張子つき)。 */
2208
+ fileName?: string;
2209
+ className?: string;
2210
+ /** スクリーンリーダー向けのラベル。 */
2211
+ ariaLabel?: string;
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
+ }
2220
+ /** Generic over the row type, so the column keys are checked against `data`. */
2221
+ declare const Treemap: (<T extends Record<string, unknown>>(props: TreemapProps<T> & {
2222
+ ref?: Ref<HTMLDivElement>;
2223
+ }) => ReactElement) & {
2224
+ displayName?: string;
2225
+ };
2226
+
1535
2227
  type SparklineVariant = "line" | "bar";
1536
2228
  interface SparklineDataPoint {
1537
2229
  value: number;
@@ -1541,8 +2233,14 @@ interface SparklineProps extends SVGAttributes<SVGSVGElement> {
1541
2233
  data: SparklineDataPoint[];
1542
2234
  variant?: SparklineVariant;
1543
2235
  height?: number;
1544
- /** Tailwind text-colour class; drives both stroke and fill via `currentColor`. */
1545
- color?: string;
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;
1546
2244
  area?: boolean;
1547
2245
  /** マウント時に線を引く / 棒を伸ばす。既定 `false`(`prefers-reduced-motion` では常に無効)。 */
1548
2246
  animate?: boolean;
@@ -1555,6 +2253,11 @@ interface SparklineProps extends SVGAttributes<SVGSVGElement> {
1555
2253
  "aria-label"?: string;
1556
2254
  className?: string;
1557
2255
  }
2256
+ type SparklinePointKind = "latest" | "max" | "min";
2257
+ interface SparklinePoint {
2258
+ kind: SparklinePointKind;
2259
+ index: number;
2260
+ }
1558
2261
  declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<SVGSVGElement>>;
1559
2262
 
1560
2263
  declare module "@tanstack/react-table" {
@@ -1809,6 +2512,19 @@ declare function DataTable<TData, TValue>({ columns, data, enableSorting, sortin
1809
2512
  declare namespace DataTable {
1810
2513
  var displayName: string;
1811
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
+ }
1812
2528
  declare const DataTableToolbar: React.ForwardRefExoticComponent<DataTableToolbarProps & React.RefAttributes<HTMLDivElement>>;
1813
2529
  declare const DataTableContent: React.ForwardRefExoticComponent<DataTableContentProps & React.RefAttributes<HTMLDivElement>>;
1814
2530
  declare const DataTablePagination: React.ForwardRefExoticComponent<DataTablePaginationProps & React.RefAttributes<HTMLDivElement>>;
@@ -1852,6 +2568,41 @@ declare namespace DataTablePreset {
1852
2568
  var displayName: string;
1853
2569
  }
1854
2570
 
2571
+ interface PivotTableProps<T extends Record<string, unknown> = Record<string, unknown>> {
2572
+ /** 集計済みの行の配列。1 行 = 1 マス(行の次元 × 列の次元の組)。同じ組が複数あれば後の行が勝つ(合計はしない)。 */
2573
+ data: T[];
2574
+ /** 行の次元の列名(左から入れ子)。例 `["region", "category"]`。空なら 1 行。 */
2575
+ rows: (keyof T & string)[];
2576
+ /** 列の次元の列名(上から入れ子)。例 `["year"]`。空なら列の見出しは値の名前だけ。 */
2577
+ columns: (keyof T & string)[];
2578
+ /** マスに出す数値の列名。2 つ以上なら列の次元ごとに小列に分かれる。 */
2579
+ values: (keyof T & string)[];
2580
+ /** 値ごとの書式。例 `{ sales: "currency", margin: "percent" }`。無い値は `"number"`。 */
2581
+ formats?: Partial<Record<string, ValueFormat>>;
2582
+ /** 列名・次元の値 → 表示名(見出しに反映)。 */
2583
+ labels?: Record<string, string>;
2584
+ /** 値でマスを塗る(ハイライト表)。`true` で全部の値(値ごとに最小〜最大)、値の列名でその値だけ。既定 `false`。 */
2585
+ highlight?: boolean | string;
2586
+ /** 塗りの色。`"chart-1"`〜`"chart-5"` か意味色。薄い → 濃いの単色。既定 `"chart-1"`。 */
2587
+ tone?: ChartSeriesColor;
2588
+ /** マスのクリック。そのマスの行を受け取る(フィルターの操作に使う)。値の無いマスでは呼ばない。 */
2589
+ onSelect?: (row: T) => void;
2590
+ /** 表の見出し。 */
2591
+ title?: string;
2592
+ /** 表が言っていることの 1 文要約。 */
2593
+ summary?: string;
2594
+ /** 読み込み中。スケルトンを出す。 */
2595
+ isLoading?: boolean;
2596
+ /** `data` が空のときの表示。 */
2597
+ emptyState?: ChartEmptyState;
2598
+ /** 表の箱の最大の高さ(px)。超えると箱の中で縦にスクロールし、見出しは上に残る。既定 480。 */
2599
+ maxHeight?: number;
2600
+ className?: string;
2601
+ /** スクリーンリーダー向けのラベル。省略時は見出し。 */
2602
+ ariaLabel?: string;
2603
+ }
2604
+ declare function PivotTable<T extends Record<string, unknown>>({ data, rows: rowDims, columns: colDims, values: valueKeys, formats, labels, highlight, tone, onSelect, title, summary, isLoading, emptyState, maxHeight, className, ariaLabel, }: PivotTableProps<T>): React.JSX.Element;
2605
+
1855
2606
  interface FilterBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1856
2607
  value: FilterValues;
1857
2608
  onChange: (values: FilterValues) => void;
@@ -1888,6 +2639,16 @@ declare function FilterBarMultiSelect({ filterKey, label, options, placeholder,
1888
2639
  declare namespace FilterBarMultiSelect {
1889
2640
  var displayName: string;
1890
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
+ }
1891
2652
  interface FilterBarActiveChipsProps {
1892
2653
  /** Filter configs used to resolve option labels. Without them, raw values show. */
1893
2654
  filters?: FilterConfig[];
@@ -1964,6 +2725,14 @@ interface DateRangePickerProps {
1964
2725
  * <DateRangePicker fiscalYearStartMonth={1} />
1965
2726
  */
1966
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";
1967
2736
  maxDate?: Date;
1968
2737
  minDate?: Date;
1969
2738
  placeholder?: string;
@@ -2269,6 +3038,58 @@ interface TrendIndicatorProps {
2269
3038
  */
2270
3039
  declare const TrendIndicator: React.ForwardRefExoticComponent<TrendIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
2271
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;
2272
3093
  interface StatusBadgeProps {
2273
3094
  status: string;
2274
3095
  label?: string;
@@ -2316,4 +3137,20 @@ interface SampleDataProps {
2316
3137
  }
2317
3138
  declare function SampleData({ label, children }: SampleDataProps): React.JSX.Element;
2318
3139
 
2319
- export { AppShell, type AppShellHeaderProps, type AppShellProps, type AppShellSidebarProps, AreaChart, type AreaChartProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListOptions, type BarListProps, type BarListSortOrder, 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 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, EChart, type EChartProps, 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, type FunnelStep, FunnelSteps, type FunnelStepsProps, Heatmap, type HeatmapProps, 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, type PeriodGrain, 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, type TargetProgress, Tracker, type TrackerBlock, type TrackerProps, 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 };
3140
+ interface DraftChartProps {
3141
+ /** The proposed chart: one card (e.g. `DashboardCardPreset`), as it would sit in the page. */
3142
+ children: ReactElement;
3143
+ }
3144
+ /**
3145
+ * A chart proposed to the page that nobody has accepted yet. Accepting it removes the
3146
+ * `<DraftChart>` tags and keeps the child; removing it deletes the whole element. Both are
3147
+ * source edits made outside the framework — this component only decides what each build shows.
3148
+ *
3149
+ * - `vantage build` (published dashboards): renders nothing, so viewers never see a proposal.
3150
+ * - `vantage dev` (the editor preview): renders the child faded under the page background, and
3151
+ * marks the child's root element with `data-sq-draft` so the editor can find it and draw its
3152
+ * own controls over it. The component itself draws no buttons or text.
3153
+ */
3154
+ declare function DraftChart({ children }: DraftChartProps): React.JSX.Element | null;
3155
+
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 };