Cross-package helpers for per-column value formatting. Used by both
viewer-datagrid (cell formatting) and viewer-charts (axis ticks,
tooltips, legends) so a column's number_format / date_format
configuration produces identical output across plugins.
The format configs mirror the Intl.NumberFormatOptions /
Intl.DateTimeFormatOptions shapes one-for-one — they're written
straight into the respective constructors. The date_format.format
discriminator ("simple" | "custom") selects between two derivation
paths: simple uses dateStyle / timeStyle, custom uses the
per-field overrides (year / month / day / ...).
Cross-package helpers for per-column value formatting. Used by both
viewer-datagrid(cell formatting) andviewer-charts(axis ticks, tooltips, legends) so a column'snumber_format/date_formatconfiguration produces identical output across plugins.The format configs mirror the
Intl.NumberFormatOptions/Intl.DateTimeFormatOptionsshapes one-for-one — they're written straight into the respective constructors. Thedate_format.formatdiscriminator ("simple" | "custom") selects between two derivation paths: simple usesdateStyle/timeStyle, custom uses the per-field overrides (year / month / day / ...).