@squadbase/vantage 0.7.0 → 0.7.1-dev1.01a6413
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/README.md +1 -1
- package/dist/add-AU3EDPNW.js +6 -0
- package/dist/add-AU3EDPNW.js.map +1 -0
- package/dist/{chunk-AABMKHEU.js → chunk-35B3YIBF.js} +16 -7
- package/dist/chunk-35B3YIBF.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/{chunk-77CISBMG.js → chunk-YJQCB3UP.js} +3387 -204
- package/dist/chunk-YJQCB3UP.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/components/index.d.ts +627 -7
- 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/geo-japan-7BMSOJRX.js +8 -0
- package/dist/geo-japan-7BMSOJRX.js.map +1 -0
- package/dist/geo-us-GVOG7VXH.js +8 -0
- package/dist/geo-us-GVOG7VXH.js.map +1 -0
- package/dist/geo-world-35HL56UU.js +8 -0
- package/dist/geo-world-35HL56UU.js.map +1 -0
- 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/dist/{upgrade-6DT7ADRP.js → upgrade-MCHMELWC.js} +3 -3
- package/dist/{upgrade-6DT7ADRP.js.map → upgrade-MCHMELWC.js.map} +1 -1
- package/docs/en/agent-skills.md +13 -14
- package/docs/en/changelog.md +8 -0
- package/docs/en/parts/draft-chart.md +42 -0
- package/docs/en/parts/page-shell.md +1 -1
- package/docs/index.json +70 -50
- package/docs/ja/agent-skills.md +14 -14
- package/docs/ja/changelog.md +8 -0
- 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 +5221 -0
- package/registry/ui/chart-frame.tsx +8 -0
- package/registry/ui/combo-chart.tsx +1852 -0
- 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 +4734 -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 +1260 -0
- package/registry/ui/progress-circle.tsx +2 -2
- package/registry/ui/sparkline.tsx +1 -1
- package/registry/ui/treemap.tsx +1917 -0
- package/templates/AGENTS.md +3 -3
- package/templates/agents/page.md +5 -4
- package/dist/add-4GHF2TX2.js +0 -6
- package/dist/add-4GHF2TX2.js.map +0 -1
- package/dist/chunk-2IAPIOPS.js.map +0 -1
- package/dist/chunk-3RJEOP3J.js.map +0 -1
- package/dist/chunk-77CISBMG.js.map +0 -1
- package/dist/chunk-AABMKHEU.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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* FunnelSteps — proportional bars for a conversion funnel. Bars are sized
|
|
6
|
+
* FunnelSteps — proportional bars for a conversion funnel; put no parts inside it. Bars are sized
|
|
7
7
|
* against the first step, so pass the steps in descending order. Set
|
|
8
8
|
* `showConversion` to print the step-to-step rate between them; the lowest
|
|
9
9
|
* rate is then the only one emphasised (in the `--negative` colour). Pass
|
package/registry/ui/kpi-card.tsx
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* KpiCard — one metric
|
|
6
|
+
* KpiCard — one metric as a card of its own (label, value, delta, target, history), so do not put it in `DashboardCardPreset`.
|
|
7
|
+
*
|
|
8
|
+
* Five tiers, following shadcn dashboard-01 SectionCards:
|
|
7
9
|
*
|
|
8
10
|
* 1. label (CardDescription, muted)
|
|
9
11
|
* 2. value (CardTitle, tabular-nums; text-4xl once the card is ≥ 320px wide (a comparison label is ~180px, so narrower cards would overlap the value))
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* MetricValue
|
|
7
|
-
* trailing unit, sized as a pair so the unit stays subordinate at every size.
|
|
6
|
+
* MetricValue — the large number in a dashboard tile (with `MetricUnit`, its
|
|
7
|
+
* trailing unit, sized as a pair so the unit stays subordinate at every size).
|
|
8
8
|
*
|
|
9
9
|
* @deprecated KPI の数字は KpiCard を使う。KpiCard は書式(`format`、単位は
|
|
10
10
|
* `{ type: "number", unit: "社" }`)・比較ラベル・増減を値から計算するので、
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* PageShell — the
|
|
6
|
+
* PageShell — the outermost frame of a page; every other part goes inside it.
|
|
7
|
+
*
|
|
8
|
+
* It is the standard page frame: a bordered header band (title,
|
|
7
9
|
* description, meta, actions), an optional summary card row, and the content
|
|
8
10
|
* area. Composed from parts so a page can use only what it needs.
|
|
9
11
|
*/
|
|
@@ -149,11 +151,30 @@ function useLocale(locale?: string | null): string {
|
|
|
149
151
|
|
|
150
152
|
/* ---------- end of inlined code ---------- */
|
|
151
153
|
|
|
152
|
-
export interface PageShellProps extends HTMLAttributes<HTMLDivElement> {
|
|
154
|
+
export interface PageShellProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
155
|
+
/** The page heading. When given, the header (title and `description`) and the content area are drawn for you; `children` go in the content area. */
|
|
156
|
+
title?: string
|
|
157
|
+
/** One line under the title. Used only with `title`. */
|
|
158
|
+
description?: string
|
|
159
|
+
}
|
|
153
160
|
|
|
154
161
|
export const PageShell = forwardRef<HTMLDivElement, PageShellProps>(
|
|
155
|
-
({ className, ...props }, ref) => (
|
|
156
|
-
<div ref={ref} data-slot="page-shell" className={cn("flex flex-col", className)} {...props}
|
|
162
|
+
({ className, title, description, children, ...props }, ref) => (
|
|
163
|
+
<div ref={ref} data-slot="page-shell" className={cn("flex flex-col", className)} {...props}>
|
|
164
|
+
{title === undefined ? (
|
|
165
|
+
children
|
|
166
|
+
) : (
|
|
167
|
+
<>
|
|
168
|
+
<PageShellHeader>
|
|
169
|
+
<PageShellHeading>
|
|
170
|
+
<PageShellTitle>{title}</PageShellTitle>
|
|
171
|
+
{description ? <PageShellDescription>{description}</PageShellDescription> : null}
|
|
172
|
+
</PageShellHeading>
|
|
173
|
+
</PageShellHeader>
|
|
174
|
+
<PageShellContent>{children}</PageShellContent>
|
|
175
|
+
</>
|
|
176
|
+
)}
|
|
177
|
+
</div>
|
|
157
178
|
),
|
|
158
179
|
)
|
|
159
180
|
PageShell.displayName = "PageShell"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* PairedChart — 量(棒)と率・単価(線)を、同じ期間軸の上下 2
|
|
6
|
+
* PairedChart — 量(棒)と率・単価(線)を、同じ期間軸の上下 2 段で見せる型付きグラフ(`DashboardCardPreset` の中に置く)。
|
|
7
7
|
* 二重 Y 軸は持たない: 上段が棒の値軸、下段が線の値軸で、横軸(期間)とツールチップの位置は
|
|
8
8
|
* 1 つの ECharts の中で揃っている(ホバーすると同じ期間の棒と線の値が 1 枚のツールチップに出る)。
|
|
9
9
|
* 段ごとに `format`(件数・金額・%)を持ち、率を分子・分母から計算することはしない(呼び元が値を渡す)。
|