@squadbase/vantage 0.7.0-dev1.5d49eae → 0.7.0-dev1.6e23119
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-NYQJ5UY4.js → chunk-DULE4EDK.js} +2008 -273
- package/dist/chunk-DULE4EDK.js.map +1 -0
- package/dist/{chunk-TRMHNMMZ.js → chunk-LYUGDHSF.js} +3 -3
- package/dist/{chunk-TRMHNMMZ.js.map → chunk-LYUGDHSF.js.map} +1 -1
- package/dist/{chunk-QNOX7WLZ.js → chunk-MQUIAP66.js} +69 -4
- package/dist/chunk-MQUIAP66.js.map +1 -0
- package/dist/{chunk-2IAPIOPS.js → chunk-P2KIHF65.js} +2 -2
- package/dist/chunk-P2KIHF65.js.map +1 -0
- package/dist/{chunk-3RJEOP3J.js → chunk-XRKSIC5Z.js} +5 -3
- package/dist/chunk-XRKSIC5Z.js.map +1 -0
- package/dist/components/index.d.ts +276 -6
- package/dist/components/index.js +4 -4
- package/dist/{delta-text-CbrOaW83.d.ts → delta-text-tav2Lh5d.d.ts} +1 -1
- package/dist/doc/index.d.ts +2 -2
- package/dist/doc/index.js +4 -4
- package/dist/{format-DihQkL1N.d.ts → format-D34piCei.d.ts} +2 -1
- package/dist/slide/index.d.ts +2 -2
- package/dist/slide/index.js +3 -3
- package/dist/table/index.js +4 -5
- package/dist/table/index.js.map +1 -1
- package/dist/ui/index.js +2 -3
- package/dist/ui/index.js.map +1 -1
- package/docs/en/parts/draft-chart.md +42 -0
- package/docs/en/parts/page-shell.md +1 -1
- package/docs/index.json +68 -48
- package/docs/ja/parts/draft-chart.md +40 -0
- package/docs/ja/parts/page-shell.md +1 -1
- package/package.json +2 -2
- package/registry/parts.json +5214 -0
- package/registry/ui/chart-frame.tsx +8 -0
- package/registry/ui/combo-chart.tsx +2 -1
- package/registry/ui/dashboard-card.tsx +3 -1
- package/registry/ui/data-table.tsx +3 -1
- package/registry/ui/delta.tsx +3 -1
- package/registry/ui/filter-bar.tsx +3 -1
- package/registry/ui/forecast-chart.tsx +4726 -0
- package/registry/ui/funnel-steps.tsx +1 -1
- package/registry/ui/kpi-card.tsx +3 -1
- package/registry/ui/metric-value.tsx +2 -2
- package/registry/ui/page-shell.tsx +25 -4
- package/registry/ui/paired-chart.tsx +1 -1
- package/registry/ui/pivot-table.tsx +2 -1
- package/registry/ui/progress-circle.tsx +2 -2
- package/registry/ui/sparkline.tsx +1 -1
- package/registry/ui/treemap.tsx +2 -1
- package/dist/chunk-2IAPIOPS.js.map +0 -1
- package/dist/chunk-3RJEOP3J.js.map +0 -1
- package/dist/chunk-NYQJ5UY4.js.map +0 -1
- package/dist/chunk-NZ5QIIG4.js +0 -74
- package/dist/chunk-NZ5QIIG4.js.map +0 -1
- package/dist/chunk-QNOX7WLZ.js.map +0 -1
|
@@ -1428,6 +1428,8 @@ export interface ChartFrameProps extends Omit<HTMLAttributes<HTMLElement>, "titl
|
|
|
1428
1428
|
plotRole?: "img" | "group"
|
|
1429
1429
|
/** 値の表。画面には出さず(`sr-only`)、スクリーンリーダー向けに図の中に置く。`chartDataTable` で作る。 */
|
|
1430
1430
|
dataTable?: ChartDataTable
|
|
1431
|
+
/** プロットの下に常に出す小さな注記(近似値である旨など)。読み込み中・空のときも出す。 */
|
|
1432
|
+
footnote?: string
|
|
1431
1433
|
/** プロット(チャート本体)。読み込み中・空のときは描かない。 */
|
|
1432
1434
|
children?: ReactNode
|
|
1433
1435
|
}
|
|
@@ -1448,6 +1450,7 @@ export const ChartFrame = forwardRef<HTMLDivElement, ChartFrameProps>(function C
|
|
|
1448
1450
|
ariaLabel,
|
|
1449
1451
|
plotRole = "img",
|
|
1450
1452
|
dataTable,
|
|
1453
|
+
footnote,
|
|
1451
1454
|
className,
|
|
1452
1455
|
children,
|
|
1453
1456
|
...props
|
|
@@ -1496,6 +1499,11 @@ export const ChartFrame = forwardRef<HTMLDivElement, ChartFrameProps>(function C
|
|
|
1496
1499
|
<ChartFrameContext.Provider value>{children}</ChartFrameContext.Provider>
|
|
1497
1500
|
)}
|
|
1498
1501
|
</div>
|
|
1502
|
+
{footnote && (
|
|
1503
|
+
<p data-slot="chart-frame-footnote" className="text-xs leading-snug text-muted-foreground">
|
|
1504
|
+
{footnote}
|
|
1505
|
+
</p>
|
|
1506
|
+
)}
|
|
1499
1507
|
{state === "ready" && dataTable && dataTable.rows.length > 0 && (
|
|
1500
1508
|
<ChartDataTableView table={dataTable} fallbackCaption={title ?? ariaLabel} />
|
|
1501
1509
|
)}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* ComboChart — bars, lines and areas on one category / time axis, with up to two value axes (left and right).
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
7
8
|
* It exists to reproduce a Tableau dual-axis sheet faithfully (a Pareto: sales as bars, the cumulative share as a
|
|
8
9
|
* line on the right). For a new dashboard prefer PairedChart, which stacks the two measures in panels over a
|
|
9
10
|
* shared axis instead of reading two scales off one plot.
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* DashboardCardPreset — a card (title, description, action, content) for one tile that holds a chart, ranking or table; not for a single KPI, since `KpiCard` is itself a card.
|
|
7
|
+
*
|
|
8
|
+
* `DashboardCard` is the tighter card used for dashboard tiles: smaller padding
|
|
7
9
|
* than the plain `Card`, a title/description/action header, and a matching
|
|
8
10
|
* skeleton for the loading state. `DashboardCardPreset` wires the common
|
|
9
11
|
* arrangement in one prop-driven component.
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* DataTablePreset — a table (toolbar, body, pagination) over TanStack Table.
|
|
7
|
+
*
|
|
8
|
+
* `DataTable` is the compound form: `<DataTable>` owns the
|
|
7
9
|
* table instance and publishes it on context; the toolbar, body, pagination and
|
|
8
10
|
* column-visibility parts read from that context, so a page composes only the
|
|
9
11
|
* pieces it wants. `DataTablePreset` assembles the usual arrangement.
|
package/registry/ui/delta.tsx
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Delta — the change of a value against a comparison,
|
|
6
|
+
* Delta — the change of a value against a comparison, as arrow + signed change + comparison label on one line; it is not a card, so place it beside a value.
|
|
7
|
+
*
|
|
8
|
+
* It renders as arrow + signed
|
|
7
9
|
* change + comparison label ("↑ +12.4% vs. prior month"; ja: "↑ +12.4% 前月比") on one line, in the page's
|
|
8
10
|
* language (`<html lang>`) unless `locale` is given.
|
|
9
11
|
*
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* FilterBarPreset — a whole filter row built from a `FilterConfig[]`, placed at the top of a page or section.
|
|
7
|
+
*
|
|
8
|
+
* `FilterBar` is the compound form: `<FilterBar>` holds the (always
|
|
7
9
|
* controlled) filter values on context; the select, multi-select, active-chip
|
|
8
10
|
* and clear parts read and update them. `FilterBarPreset` builds the whole row
|
|
9
11
|
* from a `FilterConfig[]`.
|