@squadbase/vantage 0.6.2-dev1.b28a4df → 0.6.2-dev1.b40ce36
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/{build-X5NVCQKT.js → build-A23M4GCH.js} +7 -7
- package/dist/{build-X5NVCQKT.js.map → build-A23M4GCH.js.map} +1 -1
- package/dist/{check-ZBIH422T.js → check-FBHT6W6J.js} +5 -5
- package/dist/{check-ZBIH422T.js.map → check-FBHT6W6J.js.map} +1 -1
- package/dist/chunk-2IAPIOPS.js +152 -0
- package/dist/chunk-2IAPIOPS.js.map +1 -0
- package/dist/chunk-57GHR5LN.js +163 -0
- package/dist/chunk-57GHR5LN.js.map +1 -0
- package/dist/{chunk-7DZGJQ3P.js → chunk-5C2SEDPH.js} +21 -4
- package/dist/chunk-5C2SEDPH.js.map +1 -0
- package/dist/chunk-6OTTGAPO.js +44 -0
- package/dist/chunk-6OTTGAPO.js.map +1 -0
- package/dist/{chunk-XPQSTZUU.js → chunk-7S52M2SL.js} +4 -3
- package/dist/chunk-7S52M2SL.js.map +1 -0
- package/dist/{chunk-V3LF7BE7.js → chunk-ANZLVSEP.js} +4 -5
- package/dist/chunk-ANZLVSEP.js.map +1 -0
- package/dist/{chunk-XQUSGIDG.js → chunk-CKWPK4RO.js} +10 -3
- package/dist/chunk-CKWPK4RO.js.map +1 -0
- package/dist/chunk-JXFCSF3K.js +673 -0
- package/dist/chunk-JXFCSF3K.js.map +1 -0
- package/dist/{chunk-UNCSBSO4.js → chunk-QOXXOFGL.js} +112 -927
- package/dist/chunk-QOXXOFGL.js.map +1 -0
- package/dist/{chunk-CEXAQQ5W.js → chunk-S5MDTHH7.js} +180 -18
- package/dist/chunk-S5MDTHH7.js.map +1 -0
- package/dist/{chunk-2ICNHUG6.js → chunk-SDJTTMLK.js} +64 -7
- package/dist/chunk-SDJTTMLK.js.map +1 -0
- package/dist/{chunk-WAMZWZJB.js → chunk-SHZM3EXB.js} +19 -8
- package/dist/chunk-SHZM3EXB.js.map +1 -0
- package/dist/{chunk-JKLLFVEU.js → chunk-UWSQUHX6.js} +4 -99
- package/dist/chunk-UWSQUHX6.js.map +1 -0
- package/dist/cli.js +6 -6
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +8 -2
- package/dist/client/index.js.map +1 -1
- package/dist/components/index.d.ts +13 -249
- package/dist/components/index.js +5 -2
- package/dist/delta-text-CvwBGJ95.d.ts +15 -0
- package/dist/{dev-4XEDTELV.js → dev-H4I2JL63.js} +7 -7
- package/dist/{dev-4XEDTELV.js.map → dev-H4I2JL63.js.map} +1 -1
- package/dist/doc/index.d.ts +215 -2
- package/dist/doc/index.js +307 -3
- package/dist/doc/index.js.map +1 -1
- package/dist/{doctor-5E2VEZPK.js → doctor-B2O3GJDU.js} +5 -5
- package/dist/{doctor-5E2VEZPK.js.map → doctor-B2O3GJDU.js.map} +1 -1
- package/dist/format-U0cQl069.d.ts +243 -0
- package/dist/query/index.js +2 -2
- package/dist/{routes-3SGAFDMC.js → routes-PVKNT777.js} +4 -4
- package/dist/{routes-3SGAFDMC.js.map → routes-PVKNT777.js.map} +1 -1
- package/dist/slide/index.d.ts +272 -1
- package/dist/slide/index.js +972 -2
- package/dist/slide/index.js.map +1 -1
- package/dist/table/index.js +7 -4
- package/dist/table/index.js.map +1 -1
- package/dist/ui/index.d.ts +4 -1
- package/dist/ui/index.js +3 -3
- package/dist/ui/index.js.map +1 -1
- package/dist/{upgrade-JHXZBGQS.js → upgrade-6DT7ADRP.js} +4 -4
- package/dist/{upgrade-JHXZBGQS.js.map → upgrade-6DT7ADRP.js.map} +1 -1
- package/dist/vite/index.js +3 -3
- package/docs/en/changelog.md +2 -0
- package/docs/en/components.md +13 -2
- package/docs/en/doc/delta-text.md +40 -0
- package/docs/en/doc/doc-action-items.md +49 -0
- package/docs/en/doc/doc-callout.md +38 -0
- package/docs/en/doc/doc-data-table.md +60 -0
- package/docs/en/doc/doc-executive-summary.md +64 -0
- package/docs/en/doc/doc-figure.md +56 -0
- package/docs/en/doc/doc-key-findings.md +61 -0
- package/docs/en/doc/doc-kpi-scorecard.md +80 -0
- package/docs/en/doc/doc-notes-and-sources.md +43 -0
- package/docs/en/doc/doc-report-header.md +46 -0
- package/docs/en/pages-and-metadata.md +15 -0
- package/docs/en/parts/area-chart.md +99 -0
- package/docs/en/parts/bar-chart.md +91 -0
- package/docs/en/parts/bar-list.md +50 -0
- package/docs/en/parts/category-bar.md +37 -0
- package/docs/en/parts/chart-frame.md +39 -0
- package/docs/en/parts/delta.md +4 -3
- package/docs/en/parts/donut-chart.md +72 -0
- package/docs/en/parts/funnel-steps.md +2 -1
- package/docs/en/parts/heatmap.md +53 -0
- package/docs/en/parts/kpi-card.md +2 -1
- package/docs/en/parts/legend.md +35 -0
- package/docs/en/parts/line-chart.md +94 -0
- package/docs/en/parts/progress-circle.md +33 -0
- package/docs/en/parts/sample-data.md +39 -0
- package/docs/en/parts/scatter-chart.md +56 -0
- package/docs/en/parts/tracker.md +36 -0
- package/docs/en/parts/updated-at.md +30 -0
- package/docs/en/parts/waterfall-chart.md +56 -0
- package/docs/en/slide/slide-chart-full.md +48 -0
- package/docs/en/slide/slide-chart-insight.md +52 -0
- package/docs/en/slide/slide-columns.md +46 -0
- package/docs/en/slide/slide-comparison.md +68 -0
- package/docs/en/slide/slide-cover.md +39 -0
- package/docs/en/slide/slide-exec-summary.md +47 -0
- package/docs/en/slide/slide-heading.md +38 -0
- package/docs/en/slide/slide-kpi-grid.md +55 -0
- package/docs/en/slide/slide-kpi-hero.md +58 -0
- package/docs/en/slide/slide-next-actions.md +49 -0
- package/docs/en/slide/slide-scorecard-table.md +54 -0
- package/docs/en/slide/slide-section.md +44 -0
- package/docs/en/slide/slide-source-line.md +34 -0
- package/docs/en/ui/alert-dialog.md +42 -0
- package/docs/en/ui/avatar.md +31 -0
- package/docs/en/ui/combobox.md +74 -0
- package/docs/en/ui/drawer.md +41 -0
- package/docs/en/ui/empty.md +1 -1
- package/docs/en/ui/error-state.md +4 -3
- package/docs/en/ui/field.md +42 -0
- package/docs/en/ui/hover-card.md +21 -0
- package/docs/en/ui/kbd.md +17 -0
- package/docs/en/ui/loading.md +1 -1
- package/docs/en/ui/pagination.md +36 -0
- package/docs/en/ui/radio-group.md +21 -0
- package/docs/en/ui/toast.md +44 -0
- package/docs/en/ui/toggle-group.md +4 -3
- package/docs/index.json +857 -77
- package/docs/ja/changelog.md +2 -0
- package/docs/ja/components.md +12 -1
- package/docs/ja/doc/delta-text.md +40 -0
- package/docs/ja/doc/doc-action-items.md +49 -0
- package/docs/ja/doc/doc-callout.md +38 -0
- package/docs/ja/doc/doc-data-table.md +60 -0
- package/docs/ja/doc/doc-executive-summary.md +64 -0
- package/docs/ja/doc/doc-figure.md +56 -0
- package/docs/ja/doc/doc-key-findings.md +61 -0
- package/docs/ja/doc/doc-kpi-scorecard.md +80 -0
- package/docs/ja/doc/doc-notes-and-sources.md +43 -0
- package/docs/ja/doc/doc-report-header.md +46 -0
- package/docs/ja/page-types/slide.md +1 -0
- package/docs/ja/pages-and-metadata.md +15 -0
- package/docs/ja/parts/area-chart.md +49 -25
- package/docs/ja/parts/bar-chart.md +50 -24
- package/docs/ja/parts/bar-list.md +31 -8
- package/docs/ja/parts/chart-frame.md +36 -0
- package/docs/ja/parts/delta.md +5 -4
- package/docs/ja/parts/donut-chart.md +45 -26
- package/docs/ja/parts/funnel-steps.md +27 -8
- package/docs/ja/parts/heatmap.md +45 -0
- package/docs/ja/parts/kpi-card.md +2 -1
- package/docs/ja/parts/legend.md +36 -0
- package/docs/ja/parts/line-chart.md +48 -22
- package/docs/ja/parts/sample-data.md +61 -0
- package/docs/ja/parts/scatter-chart.md +69 -0
- package/docs/ja/parts/updated-at.md +27 -0
- package/docs/ja/parts/waterfall-chart.md +61 -0
- package/docs/ja/slide/slide-chart-full.md +48 -0
- package/docs/ja/slide/slide-chart-insight.md +52 -0
- package/docs/ja/slide/slide-columns.md +46 -0
- package/docs/ja/slide/slide-comparison.md +68 -0
- package/docs/ja/slide/slide-cover.md +39 -0
- package/docs/ja/slide/slide-exec-summary.md +47 -0
- package/docs/ja/slide/slide-heading.md +38 -0
- package/docs/ja/slide/slide-kpi-grid.md +55 -0
- package/docs/ja/slide/slide-kpi-hero.md +58 -0
- package/docs/ja/slide/slide-next-actions.md +49 -0
- package/docs/ja/slide/slide-scorecard-table.md +54 -0
- package/docs/ja/slide/slide-section.md +44 -0
- package/docs/ja/slide/slide-source-line.md +34 -0
- package/docs/ja/ui/empty.md +1 -1
- package/docs/ja/ui/error-state.md +4 -3
- package/docs/ja/ui/loading.md +1 -1
- package/docs/ja/ui/toggle-group.md +4 -3
- package/package.json +2 -2
- package/registry/ui/area-chart.tsx +88 -26
- package/registry/ui/attention-list.tsx +303 -0
- package/registry/ui/bar-chart.tsx +88 -26
- package/registry/ui/bar-list.tsx +87 -24
- package/registry/ui/box-plot-chart.tsx +3906 -0
- package/registry/ui/category-bar.tsx +54 -19
- package/registry/ui/chart-frame.tsx +56 -21
- package/registry/ui/dashboard-card.tsx +2 -2
- package/registry/ui/delta.tsx +11 -8
- package/registry/ui/donut-chart.tsx +89 -26
- package/registry/ui/echart.tsx +194 -44
- package/registry/ui/funnel-steps.tsx +33 -5
- package/registry/ui/heatmap.tsx +55 -21
- package/registry/ui/histogram-chart.tsx +3986 -0
- package/registry/ui/kpi-card.tsx +41 -14
- package/registry/ui/legend.tsx +87 -24
- package/registry/ui/line-chart.tsx +88 -26
- package/registry/ui/page-shell.tsx +9 -9
- package/registry/ui/paired-chart.tsx +3827 -0
- package/registry/ui/sample-data.tsx +1 -1
- package/registry/ui/scatter-chart.tsx +88 -26
- package/registry/ui/section-header.tsx +2 -2
- package/registry/ui/slider.tsx +1 -1
- package/registry/ui/status-badge.tsx +8 -8
- package/registry/ui/tooltip.tsx +6 -2
- package/registry/ui/tracker.tsx +9 -3
- package/registry/ui/trend-indicator.tsx +2 -2
- package/registry/ui/waterfall-chart.tsx +88 -26
- package/skills/vantage-design/SKILL.md +27 -25
- package/skills/vantage-design/references/extract.md +16 -14
- package/skills/vantage-design/references/format.md +6 -5
- package/skills/vantage-design/references/presets.md +60 -110
- package/skills/vantage-pitfalls/SKILL.md +5 -0
- package/skills/vantage-slide/SKILL.md +54 -36
- package/templates/AGENTS.md +4 -2
- package/templates/agents/doc.md +48 -0
- package/templates/agents/page.md +22 -1
- package/templates/agents/slide.md +70 -2
- package/theme.css +24 -20
- package/dist/chunk-2ICNHUG6.js.map +0 -1
- package/dist/chunk-7DZGJQ3P.js.map +0 -1
- package/dist/chunk-CEXAQQ5W.js.map +0 -1
- package/dist/chunk-JKLLFVEU.js.map +0 -1
- package/dist/chunk-UNCSBSO4.js.map +0 -1
- package/dist/chunk-V3LF7BE7.js.map +0 -1
- package/dist/chunk-WAMZWZJB.js.map +0 -1
- package/dist/chunk-XPQSTZUU.js.map +0 -1
- package/dist/chunk-XQUSGIDG.js.map +0 -1
|
@@ -4,6 +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-U0cQl069.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-U0cQl069.js';
|
|
7
9
|
import { RowData, ColumnDef, SortingState, OnChangeFn, ColumnFiltersState, PaginationState, RowSelectionState, VisibilityState, TableMeta, Table } from '@tanstack/react-table';
|
|
8
10
|
export { ColumnDef, ColumnFiltersState, PaginationState, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
|
|
9
11
|
export { DateRange as RdpDateRange } from 'react-day-picker';
|
|
@@ -87,248 +89,6 @@ interface PageShellContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
87
89
|
}
|
|
88
90
|
declare const PageShellContent: React.ForwardRefExoticComponent<PageShellContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
89
91
|
|
|
90
|
-
/**
|
|
91
|
-
* Locale-aware number formatting shared by KPI cards, tables and charts. All
|
|
92
|
-
* shortening is delegated to `Intl.NumberFormat` (`notation: "compact"`); this
|
|
93
|
-
* module never hard-codes unit thresholds or unit strings.
|
|
94
|
-
*
|
|
95
|
-
* | `format` | input | ja-JP output |
|
|
96
|
-
* |--------------------------------------------|--------------|----------------|
|
|
97
|
-
* | `"compact"` (default) | `48_200_000` | `4,820万` |
|
|
98
|
-
* | `"number"` | `1234.567` | `1,234.57` |
|
|
99
|
-
* | `"currency"` (JPY, compact) | `48_200_000` | `¥4,820万` |
|
|
100
|
-
* | `{ type: "currency", notation: "standard" }` | `48_200_000` | `¥48,200,000` |
|
|
101
|
-
* | `{ type: "currency", currency: "USD" }` | `1234.5` | `$1,234.5` |
|
|
102
|
-
* | `"percent"` — pass a **ratio** | `0.124` | `12.4%` |
|
|
103
|
-
* | `{ type: "percent", digits: 0 }` | `0.124` | `12%` |
|
|
104
|
-
* | `"multiple"` | `1.5` | `1.5×` |
|
|
105
|
-
* | `{ type: "number", unit: "件" }` | `48_210` | `48,210件` |
|
|
106
|
-
* | `{ type: "compact", unit: "人" }` | `12_345` | `1.2万人` |
|
|
107
|
-
* | `"duration"` — pass **seconds** | `12_000` | `3時間20分` |
|
|
108
|
-
* | `{ type: "duration", durationUnit: "minute" }` | `2160` | `1.5日` |
|
|
109
|
-
*
|
|
110
|
-
* - `percent` takes a ratio (0.124 → 12.4%). Passing 12.4 renders 1,240%. The fraction
|
|
111
|
-
* digits are **fixed**, never trimmed (`PERCENT_DIGITS` = 1: 0.14 → "14.0%", never "14%"
|
|
112
|
-
* beside "11.9%"). Pass `digits` in the format to share another count across cards.
|
|
113
|
-
* - A minus sign is always U+2212 (`MINUS_SIGN`, "−1,234" / "−5.0%"), never the hyphen-minus.
|
|
114
|
-
* - `currency` defaults to JPY and to compact notation (万・億 in ja); pass
|
|
115
|
-
* `notation: "standard"` for every digit (tables, invoices). In ja-JP the yen
|
|
116
|
-
* sign is the half-width `¥`.
|
|
117
|
-
* - `unit` is a counter appended right after the number, with no space
|
|
118
|
-
* ("48,210件", "1.2万人"), for `number` / `compact` / `currency`. It is
|
|
119
|
-
* ignored for `percent` and `duration`, and for `multiple` it replaces the
|
|
120
|
-
* default `×` ("2.7倍"). Do not write it into a `valueFormatter` by hand.
|
|
121
|
-
* - Charts take the same `format` a KpiCard takes (`format="currency"`).
|
|
122
|
-
* `toValueFormatter(format)` turns it into a function for places that need
|
|
123
|
-
* one (a `valueFormatter`, table cells).
|
|
124
|
-
* - Missing values (null / undefined / NaN) render as `—` (`EMPTY_VALUE`).
|
|
125
|
-
* - Dates go through `formatDate` (`Intl.DateTimeFormat`): `"date"` → `2026/10/20`,
|
|
126
|
-
* `"datetime"` → `2026/10/20 14:30`, `"year-month"` → `2026年10月`, `"month"` → `10月`,
|
|
127
|
-
* `"year"` → `2026年`.
|
|
128
|
-
* - A period goes through `formatDateRange`: `2026/9/23〜10/20` (same year drops the end year),
|
|
129
|
-
* `2025/12/20〜2026/1/18` across years; month and day are not zero-padded.
|
|
130
|
-
*/
|
|
131
|
-
/**
|
|
132
|
-
* The kind of number a value is. Pick by what the number means, not by how
|
|
133
|
-
* long it is: `currency` for money, `percent` for a ratio, `multiple` for a
|
|
134
|
-
* factor ("1.5×"), `duration` for a length of time ("3時間20分"), `number` for
|
|
135
|
-
* exact counts in tables, `compact` (default) for large headline counts (万・億).
|
|
136
|
-
*/
|
|
137
|
-
type FormatKind = "number" | "compact" | "currency" | "percent" | "multiple" | "duration";
|
|
138
|
-
/** The unit a `duration` value is measured in. */
|
|
139
|
-
type DurationUnit = "second" | "minute" | "hour" | "day";
|
|
140
|
-
/**
|
|
141
|
-
* How to display a number: a `FormatKind` alone, or an object for digits,
|
|
142
|
-
* currency, notation and a counter. The same value is accepted by KpiCard,
|
|
143
|
-
* Delta, the charts (`format`) and `formatValue`.
|
|
144
|
-
*
|
|
145
|
-
* @example
|
|
146
|
-
* "currency" // ¥4,820万
|
|
147
|
-
* { type: "currency", notation: "standard" } // ¥48,200,000
|
|
148
|
-
* { type: "percent", digits: 1 } // 2.0%
|
|
149
|
-
* { type: "number", unit: "件" } // 48,210件
|
|
150
|
-
*/
|
|
151
|
-
type ValueFormat = FormatKind | {
|
|
152
|
-
type: FormatKind;
|
|
153
|
-
/** Fixed number of fraction digits. */
|
|
154
|
-
digits?: number;
|
|
155
|
-
/** ISO 4217 code for `currency`. Default `"JPY"`. */
|
|
156
|
-
currency?: string;
|
|
157
|
-
/** `currency` only: `"compact"` (default, 万・億) or `"standard"` (every digit). */
|
|
158
|
-
notation?: "compact" | "standard";
|
|
159
|
-
/** Counter appended after the number, e.g. `"件"`, `"人"`. Ignored for `percent` and `duration`. For `multiple` it replaces the default `×` (`"倍"` → `2.7倍`). */
|
|
160
|
-
unit?: string;
|
|
161
|
-
/** 値をこの数で割ってから整形する。例: `divisor: 100`(セント → ドル)。0 と非有限は無視。 */
|
|
162
|
-
divisor?: number;
|
|
163
|
-
/** `duration` only: the unit the value is in. Default `"second"`. Reads as "45秒" / "12分" / "3時間20分" / "1.5日" (`digits` sets the fraction digits of days). */
|
|
164
|
-
durationUnit?: DurationUnit;
|
|
165
|
-
};
|
|
166
|
-
/** Locale used when none is passed. Every function here takes a `locale` to override it. */
|
|
167
|
-
declare const DEFAULT_LOCALE = "ja-JP";
|
|
168
|
-
/** Shown in place of a missing value (null / undefined / NaN). */
|
|
169
|
-
declare const EMPTY_VALUE = "\u2014";
|
|
170
|
-
/** The minus sign every formatter writes (U+2212), so a negative never mixes with a hyphen-minus. */
|
|
171
|
-
declare const MINUS_SIGN = "\u2212";
|
|
172
|
-
/** Extra options for `formatValue`. */
|
|
173
|
-
interface FormatValueOptions {
|
|
174
|
-
/** `"auto"` (default) signs negatives only; `"exceptZero"` also writes `+` on positives (for differences). */
|
|
175
|
-
signDisplay?: "auto" | "exceptZero";
|
|
176
|
-
/** Round to this many significant digits (e.g. 3 for an estimate: 79,653,985 → 7,970万). */
|
|
177
|
-
significantDigits?: number;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* The kind of a format, whether it was given as a string or an object. Use it
|
|
181
|
-
* to branch on the meaning of a metric (e.g. a `percent` metric compares in
|
|
182
|
-
* points) without unpacking `ValueFormat` yourself.
|
|
183
|
-
*
|
|
184
|
-
* @param format - The format as a KpiCard / chart takes it. `undefined` means the default.
|
|
185
|
-
* @returns The `FormatKind`; `"compact"` when `format` is omitted.
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* formatKind("percent") // "percent"
|
|
189
|
-
* formatKind({ type: "currency", notation: "standard" }) // "currency"
|
|
190
|
-
* formatKind(undefined) // "compact"
|
|
191
|
-
*/
|
|
192
|
-
declare function formatKind(format: ValueFormat | undefined): FormatKind;
|
|
193
|
-
/**
|
|
194
|
-
* Format a number for display — KPI values, table cells, chart labels and
|
|
195
|
-
* sentences built from data (titles, summaries). See the table at the top of
|
|
196
|
-
* this module.
|
|
197
|
-
*
|
|
198
|
-
* @param value - The number. `null` / `undefined` / `NaN` render as `—`.
|
|
199
|
-
* For `percent`, a ratio (0.124 means 12.4%).
|
|
200
|
-
* @param format - How to display it. Default `"compact"`.
|
|
201
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
202
|
-
* @param options - `signDisplay` and `significantDigits` (rounding for estimates).
|
|
203
|
-
* @returns The display string. In ja-JP the yen sign is the half-width `¥`.
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
* formatValue(48_200_000, "currency") // "¥4,820万"
|
|
207
|
-
* formatValue(48_200_000, { type: "currency", notation: "standard" }) // "¥48,200,000"
|
|
208
|
-
* formatValue(0.021, "percent") // "2.1%"
|
|
209
|
-
* formatValue(0.124, "percent", "ja-JP", { signDisplay: "exceptZero" }) // "+12.4%"
|
|
210
|
-
* formatValue(79_653_985, "currency", "ja-JP", { significantDigits: 3 }) // "¥7,970万"
|
|
211
|
-
* formatValue(48_210, { type: "number", unit: "件" }) // "48,210件"
|
|
212
|
-
* formatValue(1.5, "multiple") // "1.5×"
|
|
213
|
-
* formatValue(null) // "—"
|
|
214
|
-
*/
|
|
215
|
-
declare function formatValue(value: number | null | undefined, format?: ValueFormat, locale?: string, options?: FormatValueOptions): string;
|
|
216
|
-
/**
|
|
217
|
-
* Like `formatValue`, but always signed (except zero) — for a difference
|
|
218
|
-
* between two values ("+¥530万", "−120件"). Use `formatPoints` instead for a
|
|
219
|
-
* difference between two rates.
|
|
220
|
-
*
|
|
221
|
-
* @param value - The difference (current − previous). Missing values render as `—`.
|
|
222
|
-
* @param format - Format of the metric itself. Default `"compact"`.
|
|
223
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
224
|
-
* @returns The signed display string; zero has no sign.
|
|
225
|
-
*
|
|
226
|
-
* @example
|
|
227
|
-
* formatDelta(5_300_000, "currency") // "+¥530万"
|
|
228
|
-
* formatDelta(-120, { type: "number", unit: "件" }) // "−120件"
|
|
229
|
-
* formatDelta(0.031, "percent") // "+3.1%"
|
|
230
|
-
* formatDelta(0, "currency") // "¥0"
|
|
231
|
-
*/
|
|
232
|
-
declare function formatDelta(value: number | null | undefined, format?: ValueFormat, locale?: string): string;
|
|
233
|
-
/**
|
|
234
|
-
* A difference between two rates in percentage points, always signed:
|
|
235
|
-
* `formatPoints(0.021 - 0.026)` → `"−0.5pt"`. Use it instead of a relative
|
|
236
|
-
* change for rate metrics (churn, conversion), where "−19.2%" reads as a drop
|
|
237
|
-
* of nineteen points. `signDisplay: "never"` drops the sign ("あと 0.5pt").
|
|
238
|
-
*
|
|
239
|
-
* @param difference - The difference of two **ratios** (0.021 − 0.026). Missing values render as `—`.
|
|
240
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
241
|
-
* @param options - `digits`: fixed fraction digits (default `PERCENT_DIGITS` = 1, so "0.0pt" / "+0.5pt"); `signDisplay`:
|
|
242
|
-
* `"exceptZero"` (default) or `"never"` when the sentence already says the direction.
|
|
243
|
-
* @returns The difference in points with the `pt` suffix.
|
|
244
|
-
*
|
|
245
|
-
* @example
|
|
246
|
-
* formatPoints(0.021 - 0.026) // "−0.5pt"
|
|
247
|
-
* formatPoints(0.031 - 0.026) // "+0.5pt"
|
|
248
|
-
* formatPoints(0.02 - 0.015, "ja-JP", { signDisplay: "never" }) // "0.5pt"(「目標まであと 0.5pt」)
|
|
249
|
-
*/
|
|
250
|
-
declare function formatPoints(difference: number | null | undefined, locale?: string, options?: {
|
|
251
|
-
digits?: number;
|
|
252
|
-
signDisplay?: "exceptZero" | "never";
|
|
253
|
-
}): string;
|
|
254
|
-
/**
|
|
255
|
-
* Binds a format and locale into a single-argument formatter, for a chart
|
|
256
|
-
* `valueFormatter` or a table cell: `valueFormatter={toValueFormatter("currency")}`.
|
|
257
|
-
* Prefer passing `format` to the chart directly; this is for APIs that only
|
|
258
|
-
* take a function.
|
|
259
|
-
*
|
|
260
|
-
* @param format - How to display each value. Default `"compact"`.
|
|
261
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
262
|
-
* @returns `(value) => string`, rendering missing values as `—`.
|
|
263
|
-
*
|
|
264
|
-
* @example
|
|
265
|
-
* const yen = toValueFormatter("currency")
|
|
266
|
-
* yen(48_200_000) // "¥4,820万"
|
|
267
|
-
* yen(null) // "—"
|
|
268
|
-
* const count = toValueFormatter({ type: "number", unit: "件" })
|
|
269
|
-
* count(48_210) // "48,210件"(表のセル)
|
|
270
|
-
*/
|
|
271
|
-
declare function toValueFormatter(format?: ValueFormat, locale?: string): (value: number | null | undefined) => string;
|
|
272
|
-
/**
|
|
273
|
-
* 日付の書式。何を表す日付かで選ぶ: 日単位は `"date"`、時刻まで要るなら `"datetime"`、
|
|
274
|
-
* 月次の集計は `"year-month"`(年をまたぐ軸)か `"month"`(同じ年の中の軸)、年次は `"year"`。
|
|
275
|
-
*/
|
|
276
|
-
type DateStyle = "date" | "datetime" | "month" | "year-month" | "year";
|
|
277
|
-
/** `formatDate` の追加オプション。 */
|
|
278
|
-
interface FormatDateOptions {
|
|
279
|
-
/**
|
|
280
|
-
* IANA のタイムゾーン名(例: `"Asia/Tokyo"`)。既定は実行環境のタイムゾーン。
|
|
281
|
-
* サーバーとブラウザで描画が食い違う(SSR)なら固定する。日付だけの文字列(`"2026-10-20"`)には効かず、常にその暦日のまま出す。
|
|
282
|
-
*/
|
|
283
|
-
timeZone?: string;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* 日付を表示用の文字列にする。表のセル・タイトル・文に埋める日付に使い、`toLocaleString` や手組みの
|
|
287
|
-
* `getMonth() + 1` は使わない。
|
|
288
|
-
*
|
|
289
|
-
* @param value - `Date`、エポックミリ秒、または日付文字列(`"2026-10-20"`、ISO 8601)。`null` / `undefined` / 解釈できない値は `—`。
|
|
290
|
-
* @param style - 何を表す日付か。既定 `"date"`。
|
|
291
|
-
* @param locale - BCP 47 ロケール。既定 `"ja-JP"`。
|
|
292
|
-
* @param options - `timeZone`。
|
|
293
|
-
* @returns 表示文字列。
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* formatDate("2026-10-20") // "2026/10/20"
|
|
297
|
-
* formatDate(new Date("2026-10-20T05:30:00Z"), "datetime", "ja-JP", { timeZone: "Asia/Tokyo" }) // "2026/10/20 14:30"
|
|
298
|
-
* formatDate("2026-10-01", "year-month") // "2026年10月"
|
|
299
|
-
* formatDate("2026-10-01", "month") // "10月"
|
|
300
|
-
* formatDate(null) // "—"
|
|
301
|
-
*/
|
|
302
|
-
declare function formatDate(value: Date | string | number | null | undefined, style?: DateStyle, locale?: string, options?: FormatDateOptions): string;
|
|
303
|
-
/** `formatDateRange` のオプション。 */
|
|
304
|
-
interface FormatDateRangeOptions extends FormatDateOptions {
|
|
305
|
-
/** BCP 47 ロケール。既定 `"ja-JP"`。 */
|
|
306
|
-
locale?: string;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* 期間を「2026/9/23〜10/20」の形にする。同じ年なら終了側の年を省き、年をまたぐときは両方に付ける。
|
|
310
|
-
* 月日はゼロ詰めしない。区切りは日本語で「〜」、それ以外のロケールでは「 – 」。始まりと終わりが同じ日なら 1 日だけ出す。
|
|
311
|
-
*
|
|
312
|
-
* @param start - 期間の最初の日(`Date`、エポックミリ秒、日付文字列)。`"2026-09-23"` のような日付だけの文字列はその暦日のまま出す。
|
|
313
|
-
* @param end - 期間の最後の日。
|
|
314
|
-
* @param options - `locale` と `timeZone`。
|
|
315
|
-
* @returns 表示文字列。どちらかが解釈できなければ `—`。
|
|
316
|
-
*
|
|
317
|
-
* @example
|
|
318
|
-
* formatDateRange("2026-09-23", "2026-10-20") // "2026/9/23〜10/20"
|
|
319
|
-
* formatDateRange("2025-12-20", "2026-01-18") // "2025/12/20〜2026/1/18"
|
|
320
|
-
*/
|
|
321
|
-
declare function formatDateRange(start: Date | string | number | null | undefined, end: Date | string | number | null | undefined, options?: FormatDateRangeOptions): string;
|
|
322
|
-
/**
|
|
323
|
-
* 文中の ISO の年月・日付(`2023-04`、`2026-10-20`)を `formatDate` の書式に置き換える。期間や出典の注記のように、
|
|
324
|
-
* 利用者が文字列で渡す文に日付が混ざるときの表示用(`"2023-04 以降"` → `"2023年4月 以降"`)。日付でない数字は触らない。
|
|
325
|
-
*
|
|
326
|
-
* @param text - 日付を含みうる文。
|
|
327
|
-
* @param locale - BCP 47 ロケール。既定 `"ja-JP"`。
|
|
328
|
-
* @returns ISO の年月は `"year-month"`、年月日は `"date"` で整形した文。
|
|
329
|
-
*/
|
|
330
|
-
declare function formatDatesInText(text: string, locale?: string): string;
|
|
331
|
-
|
|
332
92
|
/**
|
|
333
93
|
* Shared data shapes for the composite dashboard components. Kept in one place
|
|
334
94
|
* so filters, metrics and date pickers agree on the same vocabulary.
|
|
@@ -644,8 +404,8 @@ declare const AppShell: React.ForwardRefExoticComponent<AppShellProps & React.Re
|
|
|
644
404
|
|
|
645
405
|
declare const headingStyles: {
|
|
646
406
|
readonly h1: "text-3xl font-bold tracking-tight";
|
|
647
|
-
readonly h2: "text-
|
|
648
|
-
readonly h3: "text-
|
|
407
|
+
readonly h2: "text-base font-semibold tracking-tight";
|
|
408
|
+
readonly h3: "text-base font-semibold";
|
|
649
409
|
readonly h4: "text-lg font-semibold";
|
|
650
410
|
};
|
|
651
411
|
interface SectionHeaderProps {
|
|
@@ -2361,7 +2121,9 @@ interface KpiCardProps extends Omit<ComponentProps<"div">, "children"> {
|
|
|
2361
2121
|
provisional?: boolean | {
|
|
2362
2122
|
label?: string;
|
|
2363
2123
|
};
|
|
2364
|
-
/**
|
|
2124
|
+
/** Which direction is good: `"up"` (default) or `"down"` (churn, error rate). Wins over `polarity`. */
|
|
2125
|
+
betterWhen?: "up" | "down";
|
|
2126
|
+
/** @deprecated Older name of `betterWhen` (`"higher-is-better"` / `"lower-is-better"`). `"neutral"` (never colours the change, skips the target and record logic) is only reachable here. `betterWhen` wins if both are given. */
|
|
2365
2127
|
polarity?: Polarity;
|
|
2366
2128
|
/** `"relative"` ("+12.4%"), `"points"` ("-0.5pt") or `"difference"` ("+¥530万", in `format`). Default: points for a `percent` format, else relative. */
|
|
2367
2129
|
change?: ChangeDisplay;
|
|
@@ -2374,7 +2136,7 @@ interface KpiCardProps extends Omit<ComponentProps<"div">, "children"> {
|
|
|
2374
2136
|
/**
|
|
2375
2137
|
* Target for the current period. Under the value it adds a 6px bar (actual, the pace
|
|
2376
2138
|
* projection, a tick at the target) and one line "目標の 49%・このペースなら 98%"
|
|
2377
|
-
* (the projection only while `period` is in progress). With `
|
|
2139
|
+
* (the projection only while `period` is in progress). With `betterWhen="down"`
|
|
2378
2140
|
* or a rate target (points) there is no bar: "目標 … まであと …" in the footer.
|
|
2379
2141
|
*/
|
|
2380
2142
|
target?: number;
|
|
@@ -2437,7 +2199,7 @@ interface KpiCardProps extends Omit<ComponentProps<"div">, "children"> {
|
|
|
2437
2199
|
*/
|
|
2438
2200
|
declare function fillKpiTemplate(template: string, values: Readonly<Record<string, string | null | undefined>>): string;
|
|
2439
2201
|
declare function fillKpiTemplate(template: string, values: Readonly<Record<string, string | null | undefined>>, fallback: string | null): string | null;
|
|
2440
|
-
declare function KpiCard({ label, value, format, locale, comparison: comparisonProp, comparisons, provisional, polarity, change, neutralBand, showPrevious, summary, target, targetLabel, targetDisplay, period, history, historyGrain, showHistory, source, updatedAt, updatedAtDisplay, timeZone, now, isLoading, size, className, ...props }: KpiCardProps): React.JSX.Element;
|
|
2202
|
+
declare function KpiCard({ label, value, format, locale, comparison: comparisonProp, comparisons, provisional, betterWhen, polarity: polarityProp, change, neutralBand, showPrevious, summary, target, targetLabel, targetDisplay, period, history, historyGrain, showHistory, source, updatedAt, updatedAtDisplay, timeZone, now, isLoading, size, className, ...props }: KpiCardProps): React.JSX.Element;
|
|
2441
2203
|
|
|
2442
2204
|
declare const deltaVariants: (props?: ({
|
|
2443
2205
|
variant?: "inline" | "badge" | null | undefined;
|
|
@@ -2448,7 +2210,9 @@ interface DeltaProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">,
|
|
|
2448
2210
|
value: number | null | undefined;
|
|
2449
2211
|
/** What the value is compared against. Required so the delta always carries its label. */
|
|
2450
2212
|
comparison: Comparison;
|
|
2451
|
-
/**
|
|
2213
|
+
/** Which direction is good: `"up"` (default) or `"down"` (churn, error rate). Wins over `polarity`. */
|
|
2214
|
+
betterWhen?: "up" | "down";
|
|
2215
|
+
/** @deprecated Older name of `betterWhen` (`"higher-is-better"` / `"lower-is-better"`); `"neutral"` is only reachable here. `betterWhen` wins if both are given. */
|
|
2452
2216
|
polarity?: Polarity;
|
|
2453
2217
|
/** Absolute ratio below which the change reads as flat (0.01 = 1%). Default 0.01. */
|
|
2454
2218
|
neutralBand?: number;
|
|
@@ -2532,4 +2296,4 @@ interface SampleDataProps {
|
|
|
2532
2296
|
}
|
|
2533
2297
|
declare function SampleData({ label, children }: SampleDataProps): React.JSX.Element;
|
|
2534
2298
|
|
|
2535
|
-
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,
|
|
2299
|
+
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 };
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export { AppShell, AreaChart, BarChart, BarList, COMPARISON_LABELS, CategoryBar, ChartFrame,
|
|
2
|
-
|
|
1
|
+
export { AppShell, AreaChart, BarChart, BarList, COMPARISON_LABELS, CategoryBar, ChartFrame, 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, FilterBar, FilterBarActiveChips, FilterBarClearButton, FilterBarMultiSelect, FilterBarPreset, FilterBarSelect, FunnelSteps, Heatmap, KpiCard, Legend, LineChart, MetricUnit, MetricValue, MultiSelect, PageShell, PageShellActions, PageShellContent, PageShellDescription, PageShellHeader, PageShellHeaderEnd, PageShellHeading, PageShellMeta, PageShellSummary, PageShellSummaryCard, PageShellTitle, Placeholder, ProgressCircle, RECORD_MIN_POINTS, SampleBadge, SampleClaim, SampleData, ScatterChart, SearchableSelect, SectionHeader, SegmentedControl, StatusBadge, Tracker, 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-QOXXOFGL.js';
|
|
2
|
+
export { EChart, useResolvedChartColors } from '../chunk-JXFCSF3K.js';
|
|
3
|
+
export { Sparkline } from '../chunk-2IAPIOPS.js';
|
|
4
|
+
export { DEFAULT_LOCALE, EMPTY_VALUE, MINUS_SIGN, formatDate, formatDateRange, formatDatesInText, formatDelta, formatKind, formatPoints, formatValue, toValueFormatter } from '../chunk-57GHR5LN.js';
|
|
5
|
+
import '../chunk-7S52M2SL.js';
|
|
3
6
|
import '../chunk-PDOBHMUQ.js';
|
|
4
7
|
import '../chunk-U736PVHY.js';
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { V as ValueFormat } from './format-U0cQl069.js';
|
|
3
|
+
|
|
4
|
+
interface DeltaTextProps {
|
|
5
|
+
/** The change itself; its direction comes from the sign. `null` shows "—". */
|
|
6
|
+
value: number | null;
|
|
7
|
+
format?: ValueFormat;
|
|
8
|
+
/** Which way is good. Default `"up"`. */
|
|
9
|
+
betterWhen?: "up" | "down";
|
|
10
|
+
/** Name of the comparison, e.g. "前月比". Printed before the change; omit to print only the change. */
|
|
11
|
+
comparisonLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function DeltaText({ value, format, betterWhen, comparisonLabel }: DeltaTextProps): React.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { DeltaText as D, type DeltaTextProps as a };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { runDiagnostics } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { vantagePlugin } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
import { runDiagnostics } from './chunk-5C2SEDPH.js';
|
|
2
|
+
import './chunk-UWSQUHX6.js';
|
|
3
|
+
import { vantagePlugin } from './chunk-SDJTTMLK.js';
|
|
4
|
+
import './chunk-SHZM3EXB.js';
|
|
5
|
+
import './chunk-S5MDTHH7.js';
|
|
6
6
|
import { scanProject, timedAsync } from './chunk-RNTDBX6S.js';
|
|
7
7
|
import './chunk-46QI6GFC.js';
|
|
8
8
|
import './chunk-B7LLBNLV.js';
|
|
@@ -77,5 +77,5 @@ async function dev(root, args) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export { dev };
|
|
80
|
-
//# sourceMappingURL=dev-
|
|
81
|
-
//# sourceMappingURL=dev-
|
|
80
|
+
//# sourceMappingURL=dev-H4I2JL63.js.map
|
|
81
|
+
//# sourceMappingURL=dev-H4I2JL63.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/cli/dev.ts"],"names":[],"mappings":"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","file":"dev-
|
|
1
|
+
{"version":3,"sources":["../src/cli/dev.ts"],"names":[],"mappings":"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","file":"dev-H4I2JL63.js","sourcesContent":["import { createServer, loadEnv } from \"vite\"\nimport { runDiagnostics } from \"../core/diagnostics\"\nimport { timedAsync } from \"../core/profile\"\nimport { scanProject } from \"../core/scan\"\nimport { vantagePlugin } from \"../vite/index\"\nimport {\n applyApiBaseUrlFlag,\n log,\n printDiagnostics,\n reportPortInUse,\n resolveDraftPreview,\n resolveHmrOverlay,\n resolveHostOptions,\n resolvePortOptions,\n type ParsedArgs,\n} from \"./util\"\n\n/** `vantage dev` — start the dev server with HMR and the optional API server. */\nexport async function dev(root: string, args: ParsedArgs): Promise<number> {\n const model = scanProject(root)\n const errors = runDiagnostics(root, model).filter((d) => d.severity === \"error\")\n if (errors.length) {\n printDiagnostics(errors)\n log.error(\"Fix the errors above before starting the dev server.\")\n return 1\n }\n\n const mode = \"development\"\n applyApiBaseUrlFlag(args)\n const env = { ...process.env, ...loadEnv(mode, root, \"\") }\n const ports = resolvePortOptions(args.flags, 5173)\n if (!ports.ok) {\n log.error(ports.error)\n return 1\n }\n const { port, strictPort } = ports\n const hosts = resolveHostOptions(args.flags)\n if (!hosts.ok) {\n log.error(hosts.error)\n return 1\n }\n const overlay = resolveHmrOverlay(args.flags)\n\n const server = await timedAsync(\"vite:createServer\", () =>\n createServer({\n configFile: false,\n root,\n mode,\n // The model was just scanned for diagnostics; hand it over so the plugin\n // does not walk the project again.\n plugins: [vantagePlugin({ root, env, model, draftPreview: resolveDraftPreview(args.flags) })],\n // `host` / `allowedHosts` are only present when asked for, and `hmr` is\n // left alone unless the overlay is being turned off, so Vite's own\n // defaults (host, port, protocol) keep applying.\n server: {\n port,\n strictPort,\n ...hosts.options,\n ...(overlay ? {} : { hmr: { overlay: false } }),\n },\n clearScreen: false,\n }),\n )\n\n try {\n await timedAsync(\"vite:listen\", () => server.listen())\n } catch (err) {\n await server.close().catch(() => {})\n if (reportPortInUse(err, port, strictPort)) return 1\n throw err\n }\n log.brand(\"dev server ready\")\n server.printUrls()\n if (model.hasServer) log.info(\" \" + \"server/api enabled\")\n\n const shutdown = async () => {\n await server.close()\n process.exit(0)\n }\n process.on(\"SIGINT\", shutdown)\n process.on(\"SIGTERM\", shutdown)\n\n // Keep the process alive; the listening server owns the lifecycle.\n return new Promise<number>(() => {})\n}\n"]}
|
package/dist/doc/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { V as ValueFormat } from '../format-U0cQl069.js';
|
|
4
|
+
export { D as DeltaText, a as DeltaTextProps } from '../delta-text-CvwBGJ95.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Per-document token overrides. Anything left out falls through to `--doc-*`
|
|
@@ -40,4 +42,215 @@ interface DocumentProps extends HTMLAttributes<HTMLElement> {
|
|
|
40
42
|
*/
|
|
41
43
|
declare const Document: React.ForwardRefExoticComponent<DocumentProps & React.RefAttributes<HTMLElement>>;
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
type DocActionPriority = "high" | "medium" | "low";
|
|
46
|
+
interface DocActionItem {
|
|
47
|
+
action: ReactNode;
|
|
48
|
+
owner?: string;
|
|
49
|
+
/** Due date as written, e.g. "2026-11-15" or "11 月末". */
|
|
50
|
+
due?: string;
|
|
51
|
+
/** What we expect to change, e.g. "解約率 −0.5pt". */
|
|
52
|
+
impact?: string;
|
|
53
|
+
priority?: DocActionPriority;
|
|
54
|
+
}
|
|
55
|
+
interface DocActionItemsProps {
|
|
56
|
+
/** Heading text. Default "推奨する対応". */
|
|
57
|
+
title?: string;
|
|
58
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
59
|
+
headingLevel?: 2 | 3;
|
|
60
|
+
items: DocActionItem[];
|
|
61
|
+
variant?: "table" | "asks";
|
|
62
|
+
}
|
|
63
|
+
declare function DocActionItems({ title, headingLevel, items, variant }: DocActionItemsProps): React.JSX.Element;
|
|
64
|
+
|
|
65
|
+
type DocCalloutKind = "note" | "insight" | "warning" | "decision";
|
|
66
|
+
interface DocCalloutProps {
|
|
67
|
+
kind?: DocCalloutKind;
|
|
68
|
+
/** Heading of the box, one short line. Default: the kind's word. */
|
|
69
|
+
title?: string;
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
}
|
|
72
|
+
declare function DocCallout({ kind, title, children }: DocCalloutProps): React.JSX.Element;
|
|
73
|
+
|
|
74
|
+
type DocTableCell = string | number | null | undefined;
|
|
75
|
+
type DocTableRow = Record<string, DocTableCell>;
|
|
76
|
+
interface DocTableColumn {
|
|
77
|
+
key: string;
|
|
78
|
+
label: string;
|
|
79
|
+
/** Format of a numeric column. Without it, numbers use a plain thousands format. */
|
|
80
|
+
format?: ValueFormat;
|
|
81
|
+
/** Default: right for a column of numbers, left otherwise. */
|
|
82
|
+
align?: "left" | "right" | "center";
|
|
83
|
+
}
|
|
84
|
+
interface DocDataTableProps {
|
|
85
|
+
/** Table title, as a caption above the table. */
|
|
86
|
+
title?: string;
|
|
87
|
+
/** Unit or scale, e.g. "単位: 百万円". */
|
|
88
|
+
unit?: string;
|
|
89
|
+
columns: DocTableColumn[];
|
|
90
|
+
rows: DocTableRow[];
|
|
91
|
+
/** The total row, keyed like `rows`. */
|
|
92
|
+
total?: DocTableRow;
|
|
93
|
+
/** Row indexes to set in semibold. */
|
|
94
|
+
highlightRows?: number[];
|
|
95
|
+
footnotes?: {
|
|
96
|
+
mark: string;
|
|
97
|
+
text: string;
|
|
98
|
+
}[];
|
|
99
|
+
source?: string;
|
|
100
|
+
/** When the data was taken: a date only, e.g. "2026-10-03". "データ時点" is added here. */
|
|
101
|
+
asOf?: string;
|
|
102
|
+
}
|
|
103
|
+
declare function DocDataTable({ title, unit, columns, rows, total, highlightRows, footnotes, source, asOf }: DocDataTableProps): React.JSX.Element;
|
|
104
|
+
|
|
105
|
+
interface DocSummaryMetric {
|
|
106
|
+
label: string;
|
|
107
|
+
value: number | null;
|
|
108
|
+
format?: ValueFormat;
|
|
109
|
+
/** Overrides the shown value (e.g. "約 5,400 万円"). */
|
|
110
|
+
display?: string;
|
|
111
|
+
/** The change from the comparison; direction comes from its sign. Omit for no comparison. */
|
|
112
|
+
delta?: {
|
|
113
|
+
value: number;
|
|
114
|
+
format?: ValueFormat;
|
|
115
|
+
};
|
|
116
|
+
/** Name of the comparison, e.g. "前月比". Default "前期比". */
|
|
117
|
+
comparisonLabel?: string;
|
|
118
|
+
/** Which way is good. Default `"up"`. */
|
|
119
|
+
betterWhen?: "up" | "down";
|
|
120
|
+
}
|
|
121
|
+
interface DocExecutiveSummaryProps {
|
|
122
|
+
/** Heading text. Default "要旨". */
|
|
123
|
+
title?: string;
|
|
124
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
125
|
+
headingLevel?: 2 | 3;
|
|
126
|
+
/** The verdict in one sentence. */
|
|
127
|
+
conclusion: ReactNode;
|
|
128
|
+
/** 3–5 supporting points, most important first. */
|
|
129
|
+
points: ReactNode[];
|
|
130
|
+
/** Up to 3 headline numbers; any beyond are ignored. */
|
|
131
|
+
metrics?: DocSummaryMetric[];
|
|
132
|
+
}
|
|
133
|
+
declare function DocExecutiveSummary({ title, headingLevel, conclusion, points, metrics, }: DocExecutiveSummaryProps): React.JSX.Element;
|
|
134
|
+
|
|
135
|
+
interface DocFigureProps {
|
|
136
|
+
/** The finding, as a sentence. */
|
|
137
|
+
title: string;
|
|
138
|
+
/** Unit or scale, e.g. "単位: 百万円". */
|
|
139
|
+
unit?: string;
|
|
140
|
+
/** Figure number; shown as "図 N" in the caption. */
|
|
141
|
+
number?: number;
|
|
142
|
+
/** Where the data comes from. */
|
|
143
|
+
source?: string;
|
|
144
|
+
/** When the data was taken: a date only, e.g. "2026-10-03". */
|
|
145
|
+
asOf?: string;
|
|
146
|
+
/** Footnotes, one per line. */
|
|
147
|
+
notes?: string[];
|
|
148
|
+
/** The chart. */
|
|
149
|
+
children: ReactNode;
|
|
150
|
+
}
|
|
151
|
+
declare function DocFigure({ title, unit, number, source, asOf, notes, children }: DocFigureProps): React.JSX.Element;
|
|
152
|
+
|
|
153
|
+
interface DocFindingMetric {
|
|
154
|
+
label: string;
|
|
155
|
+
value: number | null;
|
|
156
|
+
format?: ValueFormat;
|
|
157
|
+
/** Overrides the shown value. */
|
|
158
|
+
display?: string;
|
|
159
|
+
/** The change from the comparison; direction comes from its sign. */
|
|
160
|
+
delta?: {
|
|
161
|
+
value: number;
|
|
162
|
+
format?: ValueFormat;
|
|
163
|
+
};
|
|
164
|
+
/** Name of the comparison, e.g. "前月比". Default "前期比". */
|
|
165
|
+
comparisonLabel?: string;
|
|
166
|
+
/** Which way is good. Default `"up"`. */
|
|
167
|
+
betterWhen?: "up" | "down";
|
|
168
|
+
}
|
|
169
|
+
interface DocFinding {
|
|
170
|
+
/** The conclusion, as a sentence. */
|
|
171
|
+
headline: string;
|
|
172
|
+
evidence: ReactNode;
|
|
173
|
+
metric?: DocFindingMetric;
|
|
174
|
+
}
|
|
175
|
+
interface DocKeyFindingsProps {
|
|
176
|
+
/** Heading text. Default "主要な発見". */
|
|
177
|
+
title?: string;
|
|
178
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
179
|
+
headingLevel?: 2 | 3;
|
|
180
|
+
/** 3–5 findings, most important first. */
|
|
181
|
+
findings: DocFinding[];
|
|
182
|
+
}
|
|
183
|
+
declare function DocKeyFindings({ title, headingLevel, findings }: DocKeyFindingsProps): React.JSX.Element;
|
|
184
|
+
|
|
185
|
+
interface DocScorecardMetric {
|
|
186
|
+
label: string;
|
|
187
|
+
value: number | null;
|
|
188
|
+
format?: ValueFormat;
|
|
189
|
+
/** Overrides the shown value. */
|
|
190
|
+
display?: string;
|
|
191
|
+
/** The change from the comparison; direction comes from its sign. */
|
|
192
|
+
delta?: {
|
|
193
|
+
value: number;
|
|
194
|
+
format?: ValueFormat;
|
|
195
|
+
};
|
|
196
|
+
/** Name of the comparison, e.g. "前年同期比". Default "前期比". */
|
|
197
|
+
comparisonLabel?: string;
|
|
198
|
+
/** Which way is good. Default `"up"`. */
|
|
199
|
+
betterWhen?: "up" | "down";
|
|
200
|
+
/** The target for the period, in the same `format` as `value`. */
|
|
201
|
+
target?: number;
|
|
202
|
+
/** One series over time, oldest first; the last one is the current value. */
|
|
203
|
+
trend?: {
|
|
204
|
+
x: string;
|
|
205
|
+
y: number;
|
|
206
|
+
}[];
|
|
207
|
+
}
|
|
208
|
+
interface DocKpiScorecardProps {
|
|
209
|
+
/** Heading text. Default "主要指標". */
|
|
210
|
+
title?: string;
|
|
211
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
212
|
+
headingLevel?: 2 | 3;
|
|
213
|
+
metrics: DocScorecardMetric[];
|
|
214
|
+
variant?: "table" | "grid";
|
|
215
|
+
/** When the numbers were taken: a date only, e.g. "2026-10-03". "データ時点" is added here. */
|
|
216
|
+
asOf?: string;
|
|
217
|
+
source?: string;
|
|
218
|
+
}
|
|
219
|
+
declare function DocKpiScorecard({ title, headingLevel, metrics, variant, asOf, source, }: DocKpiScorecardProps): React.JSX.Element;
|
|
220
|
+
|
|
221
|
+
interface DocReportHeaderProps {
|
|
222
|
+
/** The document title (h1). State the subject and the period, not a slogan. */
|
|
223
|
+
title: string;
|
|
224
|
+
/** One line under the title, e.g. who the report is for. */
|
|
225
|
+
subtitle?: ReactNode;
|
|
226
|
+
/** The period the numbers cover, e.g. "2026 年 9 月" or "2026-07-01 〜 2026-09-30". */
|
|
227
|
+
period?: string;
|
|
228
|
+
/** When the data was taken: a date only, e.g. "2026-10-03". Shown under "データ時点". */
|
|
229
|
+
asOf?: string;
|
|
230
|
+
author?: string;
|
|
231
|
+
/** Where the numbers come from, e.g. "受注管理システム、会計システム". */
|
|
232
|
+
source?: string;
|
|
233
|
+
}
|
|
234
|
+
declare function DocReportHeader({ title, subtitle, period, asOf, author, source }: DocReportHeaderProps): React.JSX.Element;
|
|
235
|
+
|
|
236
|
+
interface DocDefinition {
|
|
237
|
+
term: string;
|
|
238
|
+
description: ReactNode;
|
|
239
|
+
}
|
|
240
|
+
interface DocSource {
|
|
241
|
+
name: string;
|
|
242
|
+
/** Data as-of date, e.g. "2026-10-03". */
|
|
243
|
+
asOf?: string;
|
|
244
|
+
}
|
|
245
|
+
interface DocNotesAndSourcesProps {
|
|
246
|
+
/** Heading text. Default "注記・出典". */
|
|
247
|
+
title?: string;
|
|
248
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
249
|
+
headingLevel?: 2 | 3;
|
|
250
|
+
notes?: ReactNode[];
|
|
251
|
+
definitions?: DocDefinition[];
|
|
252
|
+
sources?: DocSource[];
|
|
253
|
+
}
|
|
254
|
+
declare function DocNotesAndSources({ title, headingLevel, notes, definitions, sources }: DocNotesAndSourcesProps): React.JSX.Element | null;
|
|
255
|
+
|
|
256
|
+
export { type DocActionItem, DocActionItems, type DocActionItemsProps, type DocActionPriority, DocCallout, type DocCalloutKind, type DocCalloutProps, DocDataTable, type DocDataTableProps, type DocDefinition, DocExecutiveSummary, type DocExecutiveSummaryProps, DocFigure, type DocFigureProps, type DocFinding, type DocFindingMetric, DocKeyFindings, type DocKeyFindingsProps, DocKpiScorecard, type DocKpiScorecardProps, DocNotesAndSources, type DocNotesAndSourcesProps, DocReportHeader, type DocReportHeaderProps, type DocScorecardMetric, type DocSource, type DocSummaryMetric, type DocTableCell, type DocTableColumn, type DocTableRow, Document, type DocumentProps, type DocumentTheme };
|