@arcfusionz/arc-analytic-ui 0.0.0

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 (156) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +13 -0
  2. package/dist/components/AnomalyCard/AnomalyCard.chart.d.ts +64 -0
  3. package/dist/components/AnomalyCard/AnomalyCard.chart.js +341 -0
  4. package/dist/components/AnomalyCard/AnomalyCard.d.ts +169 -0
  5. package/dist/components/AnomalyCard/AnomalyCard.js +1019 -0
  6. package/dist/components/AnomalyCard/AnomalyCard.model.d.ts +508 -0
  7. package/dist/components/AnomalyCard/AnomalyCard.model.js +553 -0
  8. package/dist/components/AnomalyCard/index.d.ts +4 -0
  9. package/dist/components/AnomalyCard/index.js +4 -0
  10. package/dist/components/ChartCard/ChartCard.chart.d.ts +72 -0
  11. package/dist/components/ChartCard/ChartCard.chart.js +1333 -0
  12. package/dist/components/ChartCard/ChartCard.d.ts +206 -0
  13. package/dist/components/ChartCard/ChartCard.js +718 -0
  14. package/dist/components/ChartCard/ChartCard.model.d.ts +452 -0
  15. package/dist/components/ChartCard/ChartCard.model.js +1223 -0
  16. package/dist/components/ChartCard/index.d.ts +4 -0
  17. package/dist/components/ChartCard/index.js +4 -0
  18. package/dist/components/ComparisonCard/ComparisonCard.chart.d.ts +80 -0
  19. package/dist/components/ComparisonCard/ComparisonCard.chart.js +337 -0
  20. package/dist/components/ComparisonCard/ComparisonCard.d.ts +200 -0
  21. package/dist/components/ComparisonCard/ComparisonCard.js +1325 -0
  22. package/dist/components/ComparisonCard/ComparisonCard.model.d.ts +309 -0
  23. package/dist/components/ComparisonCard/ComparisonCard.model.js +263 -0
  24. package/dist/components/ComparisonCard/index.d.ts +4 -0
  25. package/dist/components/ComparisonCard/index.js +4 -0
  26. package/dist/components/ForecastCard/ForecastCard.chart.d.ts +82 -0
  27. package/dist/components/ForecastCard/ForecastCard.chart.js +416 -0
  28. package/dist/components/ForecastCard/ForecastCard.d.ts +148 -0
  29. package/dist/components/ForecastCard/ForecastCard.js +1029 -0
  30. package/dist/components/ForecastCard/ForecastCard.model.d.ts +497 -0
  31. package/dist/components/ForecastCard/ForecastCard.model.js +554 -0
  32. package/dist/components/ForecastCard/index.d.ts +4 -0
  33. package/dist/components/ForecastCard/index.js +4 -0
  34. package/dist/components/HighlightCard/HighlightCard.chart.d.ts +122 -0
  35. package/dist/components/HighlightCard/HighlightCard.chart.js +660 -0
  36. package/dist/components/HighlightCard/HighlightCard.d.ts +202 -0
  37. package/dist/components/HighlightCard/HighlightCard.js +1286 -0
  38. package/dist/components/HighlightCard/HighlightCard.model.d.ts +692 -0
  39. package/dist/components/HighlightCard/HighlightCard.model.js +875 -0
  40. package/dist/components/HighlightCard/index.d.ts +4 -0
  41. package/dist/components/HighlightCard/index.js +4 -0
  42. package/dist/components/InsightCard/InsightCard.chart.d.ts +91 -0
  43. package/dist/components/InsightCard/InsightCard.chart.js +471 -0
  44. package/dist/components/InsightCard/InsightCard.d.ts +161 -0
  45. package/dist/components/InsightCard/InsightCard.js +961 -0
  46. package/dist/components/InsightCard/InsightCard.model.d.ts +405 -0
  47. package/dist/components/InsightCard/InsightCard.model.js +421 -0
  48. package/dist/components/InsightCard/index.d.ts +4 -0
  49. package/dist/components/InsightCard/index.js +4 -0
  50. package/dist/components/MetricCard/MetricCard.chart.d.ts +79 -0
  51. package/dist/components/MetricCard/MetricCard.chart.js +435 -0
  52. package/dist/components/MetricCard/MetricCard.d.ts +227 -0
  53. package/dist/components/MetricCard/MetricCard.js +1293 -0
  54. package/dist/components/MetricCard/MetricCard.model.d.ts +521 -0
  55. package/dist/components/MetricCard/MetricCard.model.js +627 -0
  56. package/dist/components/MetricCard/index.d.ts +4 -0
  57. package/dist/components/MetricCard/index.js +4 -0
  58. package/dist/components/ProfileCard/ProfileCard.chart.d.ts +64 -0
  59. package/dist/components/ProfileCard/ProfileCard.chart.js +427 -0
  60. package/dist/components/ProfileCard/ProfileCard.d.ts +140 -0
  61. package/dist/components/ProfileCard/ProfileCard.js +735 -0
  62. package/dist/components/ProfileCard/ProfileCard.model.d.ts +279 -0
  63. package/dist/components/ProfileCard/ProfileCard.model.js +244 -0
  64. package/dist/components/ProfileCard/index.d.ts +4 -0
  65. package/dist/components/ProfileCard/index.js +4 -0
  66. package/dist/components/ProgressCard/ProgressCard.chart.d.ts +73 -0
  67. package/dist/components/ProgressCard/ProgressCard.chart.js +373 -0
  68. package/dist/components/ProgressCard/ProgressCard.d.ts +137 -0
  69. package/dist/components/ProgressCard/ProgressCard.js +908 -0
  70. package/dist/components/ProgressCard/ProgressCard.model.d.ts +385 -0
  71. package/dist/components/ProgressCard/ProgressCard.model.js +389 -0
  72. package/dist/components/ProgressCard/index.d.ts +4 -0
  73. package/dist/components/ProgressCard/index.js +4 -0
  74. package/dist/components/ReportCard/ReportCard.chart.d.ts +45 -0
  75. package/dist/components/ReportCard/ReportCard.chart.js +231 -0
  76. package/dist/components/ReportCard/ReportCard.d.ts +153 -0
  77. package/dist/components/ReportCard/ReportCard.js +1118 -0
  78. package/dist/components/ReportCard/ReportCard.model.d.ts +392 -0
  79. package/dist/components/ReportCard/ReportCard.model.js +399 -0
  80. package/dist/components/ReportCard/index.d.ts +4 -0
  81. package/dist/components/ReportCard/index.js +4 -0
  82. package/dist/components/SankeyCard/SankeyCard.chart.d.ts +75 -0
  83. package/dist/components/SankeyCard/SankeyCard.chart.js +249 -0
  84. package/dist/components/SankeyCard/SankeyCard.d.ts +185 -0
  85. package/dist/components/SankeyCard/SankeyCard.js +788 -0
  86. package/dist/components/SankeyCard/SankeyCard.model.d.ts +501 -0
  87. package/dist/components/SankeyCard/SankeyCard.model.js +789 -0
  88. package/dist/components/SankeyCard/index.d.ts +4 -0
  89. package/dist/components/SankeyCard/index.js +4 -0
  90. package/dist/components/StatusCard/StatusCard.chart.d.ts +60 -0
  91. package/dist/components/StatusCard/StatusCard.chart.js +188 -0
  92. package/dist/components/StatusCard/StatusCard.d.ts +176 -0
  93. package/dist/components/StatusCard/StatusCard.js +989 -0
  94. package/dist/components/StatusCard/StatusCard.model.d.ts +555 -0
  95. package/dist/components/StatusCard/StatusCard.model.js +776 -0
  96. package/dist/components/StatusCard/index.d.ts +4 -0
  97. package/dist/components/StatusCard/index.js +4 -0
  98. package/dist/components/TableCard/TableCard.chart.d.ts +53 -0
  99. package/dist/components/TableCard/TableCard.chart.js +192 -0
  100. package/dist/components/TableCard/TableCard.d.ts +140 -0
  101. package/dist/components/TableCard/TableCard.js +811 -0
  102. package/dist/components/TableCard/TableCard.model.d.ts +381 -0
  103. package/dist/components/TableCard/TableCard.model.js +475 -0
  104. package/dist/components/TableCard/index.d.ts +4 -0
  105. package/dist/components/TableCard/index.js +4 -0
  106. package/dist/components/TargetCard/TargetCard.chart.d.ts +52 -0
  107. package/dist/components/TargetCard/TargetCard.chart.js +273 -0
  108. package/dist/components/TargetCard/TargetCard.d.ts +143 -0
  109. package/dist/components/TargetCard/TargetCard.js +910 -0
  110. package/dist/components/TargetCard/TargetCard.model.d.ts +468 -0
  111. package/dist/components/TargetCard/TargetCard.model.js +581 -0
  112. package/dist/components/TargetCard/index.d.ts +4 -0
  113. package/dist/components/TargetCard/index.js +4 -0
  114. package/dist/components/TreeCard/TreeCard.chart.d.ts +80 -0
  115. package/dist/components/TreeCard/TreeCard.chart.js +178 -0
  116. package/dist/components/TreeCard/TreeCard.d.ts +182 -0
  117. package/dist/components/TreeCard/TreeCard.js +1187 -0
  118. package/dist/components/TreeCard/TreeCard.model.d.ts +330 -0
  119. package/dist/components/TreeCard/TreeCard.model.js +401 -0
  120. package/dist/components/TreeCard/index.d.ts +4 -0
  121. package/dist/components/TreeCard/index.js +4 -0
  122. package/dist/components/TrendCard/TrendCard.chart.d.ts +75 -0
  123. package/dist/components/TrendCard/TrendCard.chart.js +393 -0
  124. package/dist/components/TrendCard/TrendCard.d.ts +224 -0
  125. package/dist/components/TrendCard/TrendCard.js +1053 -0
  126. package/dist/components/TrendCard/TrendCard.model.d.ts +545 -0
  127. package/dist/components/TrendCard/TrendCard.model.js +623 -0
  128. package/dist/components/TrendCard/index.d.ts +4 -0
  129. package/dist/components/TrendCard/index.js +4 -0
  130. package/dist/index.d.ts +76 -0
  131. package/dist/index.js +57 -0
  132. package/dist/lib/vega/ArcVegaChart.d.ts +24 -0
  133. package/dist/lib/vega/ArcVegaChart.js +42 -0
  134. package/dist/lib/vega/ArcVegaSurface.d.ts +13 -0
  135. package/dist/lib/vega/ArcVegaSurface.js +38 -0
  136. package/dist/lib/vega/axisTicks.js +156 -0
  137. package/dist/lib/vega/config.d.ts +29 -0
  138. package/dist/lib/vega/config.js +113 -0
  139. package/dist/lib/vega/embed.d.ts +29 -0
  140. package/dist/lib/vega/embed.js +29 -0
  141. package/dist/lib/vega/engine.d.ts +10 -0
  142. package/dist/lib/vega/engine.js +6 -0
  143. package/dist/lib/vega/formatters.d.ts +125 -0
  144. package/dist/lib/vega/formatters.js +277 -0
  145. package/dist/lib/vega/index.d.ts +11 -0
  146. package/dist/lib/vega/load.d.ts +13 -0
  147. package/dist/lib/vega/load.js +21 -0
  148. package/dist/lib/vega/time.d.ts +45 -0
  149. package/dist/lib/vega/time.js +105 -0
  150. package/dist/lib/vega/tokens.d.ts +73 -0
  151. package/dist/lib/vega/tokens.js +137 -0
  152. package/dist/lib/vega/tooltip.d.ts +45 -0
  153. package/dist/lib/vega/tooltip.js +124 -0
  154. package/dist/lib/vega/useArcVega.d.ts +43 -0
  155. package/dist/lib/vega/useArcVega.js +121 -0
  156. package/package.json +60 -0
@@ -0,0 +1,76 @@
1
+ import { ArcDeltaDirection, ArcDeltaMode, ArcNumberFormatKind, ArcNumberFormatSpec, ArcTimeFormatSpec, ArcTimeGranularity, FormatDeltaOptions, FormattedDelta, MISSING_VALUE, formatDate, formatDateRange, formatDelta, formatNumber, parseArcNumberFormat, parseArcTimeFormat, registerArcFormatters } from "./lib/vega/formatters.js";
2
+ import { ChartTokens, readChartTokens, useChartTokens } from "./lib/vega/tokens.js";
3
+ import { AnomalyBounds, AnomalyCardLabels, AnomalyCardSize, AnomalyCardState, AnomalyCardStatus, AnomalyDeltaMode, AnomalyDirection, AnomalyEpisode, AnomalyExplanation, AnomalyFlagShape, AnomalyGoodDirection, AnomalyHeadline, AnomalyInsightSegment, AnomalyMark, AnomalyPeak, AnomalyPeriodRow, AnomalyPoint, AnomalyPolarity, AnomalyRow, AnomalyScale, AnomalySpanRow, AnomalyStanding, AnomalySummary, AnomalyTextFormatters, AnomalyTooltipModel, AnomalyVerdict, AnomalyXType, BuildAnomalyDescriptionInput, DEFAULT_ANOMALY_LABELS, DeriveAnomalyStateInput, NormalizeAnomalyOptions, anomalyAxisGranularity, anomalyColorFor, anomalyPolarityFor, anomalyShapeFor, buildAnomalyChartDescription, buildAnomalyDescription, buildAnomalyExplanation, buildAnomalyInsight, buildAnomalyPeriodRows, buildAnomalySpanRows, buildAnomalyTooltip, createAnomalyFormatters, deriveAnomalyStanding, deriveAnomalyState, normalizeAnomalies, resolveAnomalyLabels } from "./components/AnomalyCard/AnomalyCard.model.js";
4
+ import { AnomalyCard, AnomalyCardProps } from "./components/AnomalyCard/AnomalyCard.js";
5
+ import { ANOMALY_HOVER_PARAM, ANOMALY_PERIODS_DATASET, ANOMALY_SPAN_DATASET, ANOMALY_TABLE_DATASET, ANOMALY_X_TICKS_PARAM, AnomalyPlotSpecOptions, buildAnomalyPlotSpec } from "./components/AnomalyCard/AnomalyCard.chart.js";
6
+ import "./components/AnomalyCard/index.js";
7
+ import { BuildChartDescriptionInput, CHART_OTHER_KEY, CHART_TABLE_ROW_CAP, CHART_TYPES, CHART_TYPE_ORDER, ChartAggregate, ChartCardLabels, ChartCardSize, ChartCardState, ChartCardStatus, ChartColorMode, ChartExtent, ChartExtremes, ChartFieldType, ChartIntent, ChartLegendKind, ChartRampBucket, ChartRecord, ChartRow, ChartSeriesColor, ChartSeriesInfo, ChartSort, ChartSummary, ChartTableColumn, ChartTableModel, ChartTextFormatters, ChartType, ChartTypeFields, ChartTypeInfo, ChartWebRow, CreateChartFormattersOptions, DEFAULT_CHART_LABELS, DeriveChartStateInput, NormalizeChartDataOptions, RADAR_RING_FRACTIONS, buildChartDescription, buildChartPlotDescription, buildChartTableModel, buildRadarWebRows, buildRampBuckets, chartSeriesColorAt, createChartFormatters, deriveChartState, hasEnoughData, inferFieldType, inferGranularity, missingChartFields, normalizeChartData, resolveChartColorMode, resolveChartLabels } from "./components/ChartCard/ChartCard.model.js";
8
+ import { ChartCard, ChartCardProps, ChartLegendPosition, ChartTableToggle } from "./components/ChartCard/ChartCard.js";
9
+ import { CHART_AXES_DATASET, CHART_HOVER_PARAM, CHART_SERIES_NAMES_PARAM, CHART_TABLE_DATASET, CHART_X_TICKS_PARAM, ChartSpecOptions, buildChartSpec } from "./components/ChartCard/ChartCard.chart.js";
10
+ import "./components/ChartCard/index.js";
11
+ import { BuildComparisonDescriptionInput, COMPARISON_OTHER_KEY, ComparisonCardLabels, ComparisonCardSize, ComparisonCardState, ComparisonCardStatus, ComparisonDelta, ComparisonDeltaExplanation, ComparisonDeltaMode, ComparisonGoodDirection, ComparisonHeadline, ComparisonItem, ComparisonMark, ComparisonPolarity, ComparisonRole, ComparisonRow, ComparisonScale, ComparisonSort, ComparisonSummary, ComparisonTextFormatters, DEFAULT_COMPARISON_LABELS, DeriveComparisonDeltaOptions, DeriveComparisonStateInput, NormalizeItemsOptions, buildComparisonChartDescription, buildComparisonDescription, createComparisonFormatters, deriveComparisonDelta, deriveComparisonState, normalizeItems, resolveComparisonLabels } from "./components/ComparisonCard/ComparisonCard.model.js";
12
+ import { ComparisonCard, ComparisonCardProps } from "./components/ComparisonCard/ComparisonCard.js";
13
+ import { COMPARISON_HOVER_PARAM, COMPARISON_REFERENCE_DATASET, COMPARISON_TABLE_DATASET, COMPARISON_ZERO_DATASET, ComparisonPlotSpecOptions, MAX_BAR_HEIGHT, buildComparisonPlotSpec, comparisonNeedsZero, comparisonOrientation, comparisonUsesFrom, resolveComparisonScale } from "./components/ComparisonCard/ComparisonCard.chart.js";
14
+ import "./components/ComparisonCard/index.js";
15
+ import { BuildForecastDescriptionInput, BuildForecastInsightInput, DEFAULT_FORECAST_LABELS, DeriveForecastDeltaOptions, DeriveForecastOutlookInput, DeriveForecastProjectionOptions, DeriveForecastStateInput, ForecastCardLabels, ForecastCardSize, ForecastCardState, ForecastCardStatus, ForecastDelta, ForecastDeltaExplanation, ForecastDeltaMode, ForecastGoodDirection, ForecastHeadline, ForecastInsightSegment, ForecastKind, ForecastMark, ForecastMoment, ForecastOutlook, ForecastPeriodRow, ForecastPoint, ForecastPolarity, ForecastProjection, ForecastReading, ForecastRegionRow, ForecastRow, ForecastScale, ForecastSummary, ForecastTextFormatters, ForecastTooltipModel, ForecastXType, NormalizeForecastOptions, buildForecastBoundaryRows, buildForecastChartDescription, buildForecastDescription, buildForecastInsight, buildForecastLandingRows, buildForecastPeriodRows, buildForecastRegionRows, buildForecastTooltip, createForecastFormatters, deriveForecastCrossing, deriveForecastDelta, deriveForecastOutlook, deriveForecastProjection, deriveForecastState, forecastAxisGranularity, normalizeForecast, reachesTarget, resolveForecastLabels } from "./components/ForecastCard/ForecastCard.model.js";
16
+ import { ForecastCard, ForecastCardProps } from "./components/ForecastCard/ForecastCard.js";
17
+ import { FORECAST_BOUNDARY_DATASET, FORECAST_HOVER_PARAM, FORECAST_INTERVAL_DATASET, FORECAST_LANDING_DATASET, FORECAST_PERIODS_DATASET, FORECAST_REFERENCE_DATASET, FORECAST_REGION_DATASET, FORECAST_REGION_END_PARAM, FORECAST_REGION_START_PARAM, FORECAST_TABLE_DATASET, FORECAST_X_TICKS_PARAM, ForecastPlotSpecOptions, buildForecastPlotSpec } from "./components/ForecastCard/ForecastCard.chart.js";
18
+ import "./components/ForecastCard/index.js";
19
+ import { BuildHighlightAnalysisInsightInput, BuildHighlightDescriptionInput, DEFAULT_HIGHLIGHT_LABELS, DEFAULT_PERCENTILE_THRESHOLDS, DEFAULT_SIGMA_THRESHOLDS, DeriveHighlightDeltaOptions, DeriveHighlightStateInput, DerivePeersOptions, HighlightBandRow, HighlightBaseline, HighlightCardLabels, HighlightCardSize, HighlightCardState, HighlightCardStatus, HighlightContextDatasets, HighlightContextRow, HighlightDelta, HighlightDeltaMode, HighlightDriver, HighlightDriverInfo, HighlightDriversInfo, HighlightEndpointRow, HighlightGoodDirection, HighlightInsightSegment, HighlightLeg, HighlightMark, HighlightOutsideRow, HighlightPeer, HighlightPeerMode, HighlightPeerStats, HighlightPoint, HighlightPolarity, HighlightReading, HighlightRow, HighlightScale, HighlightSection, HighlightSeverity, HighlightSeverityThresholds, HighlightSummary, HighlightTextFormatters, HighlightWindow, HighlightWindowInfo, HighlightXType, NormalizeDriversOptions, ResolveHighlightWindowOptions, buildContextDescription, buildDriverRows, buildDriversDescription, buildHighlightAnalysisInsight, buildHighlightContextDatasets, buildHighlightDescription, buildPeerVerdict, buildPeersDescription, buildTypicalRows, createHighlightFormatters, deriveHighlightDelta, deriveHighlightState, derivePeers, highlightSegmentsToText, normalizeDrivers, normalizeHighlightSeries, resolveHighlightLabels, resolveHighlightWindow } from "./components/HighlightCard/HighlightCard.model.js";
20
+ import { HighlightCard, HighlightCardProps } from "./components/HighlightCard/HighlightCard.js";
21
+ import { HIGHLIGHT_BAND_DATASET, HIGHLIGHT_DRIVERS_DATASET, HIGHLIGHT_DRIVER_HOVER_PARAM, HIGHLIGHT_ENDPOINTS_DATASET, HIGHLIGHT_END_PARAM, HIGHLIGHT_HOVER_PARAM, HIGHLIGHT_INSIDE_DATASET, HIGHLIGHT_OUTSIDE_DATASET, HIGHLIGHT_PEERS_DATASET, HIGHLIGHT_PEER_HOVER_PARAM, HIGHLIGHT_START_PARAM, HIGHLIGHT_TABLE_DATASET, HIGHLIGHT_TYPICAL_DATASET, HIGHLIGHT_X_TICKS_PARAM, HIGHLIGHT_ZERO_DATASET, HighlightContextSpecOptions, HighlightDriversSpecOptions, HighlightPeersSpecOptions, MAX_DRIVER_BAR_HEIGHT, buildHighlightContextSpec, buildHighlightDriversSpec, buildHighlightPeersSpec } from "./components/HighlightCard/HighlightCard.chart.js";
22
+ import "./components/HighlightCard/index.js";
23
+ import { BuildInsightDescriptionInput, CONFIDENCE_BOUNDS, DEFAULT_INSIGHT_LABELS, DEFAULT_SEVERITY_THRESHOLDS, DeriveInsightStateInput, InsightCardLabels, InsightCardSize, InsightCardState, InsightCardStatus, InsightConfidenceLevel, InsightDeltaMode, InsightEvidence, InsightFeedback, InsightGoodDirection, InsightIntervalRow, InsightKind, InsightObservation, InsightPoint, InsightPolarity, InsightRow, InsightSeverity, InsightSeverityThresholds, InsightStrengthKind, InsightStripRow, InsightSummary, InsightTextFormatters, InsightXType, NormalizeInsightOptions, buildInsightChartDescription, buildInsightDescription, buildInsightProvenance, createInsightFormatters, deriveInsightPolarity, deriveInsightSeverity, deriveInsightState, formatInsightX, inferInsightXType, insightAxisGranularity, insightConfidenceLevel, insightFormatIsPercent, normalizeInsight, resolveInsightLabels } from "./components/InsightCard/InsightCard.model.js";
24
+ import { INSIGHT_FLAG_PARAM, INSIGHT_HOVER_PARAM, INSIGHT_INTERVAL_DATASET, INSIGHT_POINTS_DATASET, INSIGHT_STRIP_DATASET, INSIGHT_X_TICKS_PARAM, InsightAxes, InsightSparkSpecOptions, InsightStripSpecOptions, buildInsightSparkSpec, buildInsightStripSpec } from "./components/InsightCard/InsightCard.chart.js";
25
+ import { InsightCard, InsightCardProps } from "./components/InsightCard/InsightCard.js";
26
+ import "./components/InsightCard/index.js";
27
+ import { DEFAULT_METRIC_LABELS, DescribeComparisonsOptions, METRIC_PREVIOUS_KEY, MetricCardLabels, MetricCardSize, MetricCardState, MetricCardStatus, MetricCardVariant, MetricComparison, MetricComparisonCandidate, MetricComparisonRow, MetricDelta, MetricDeltaExplanation, MetricDeltaMode, MetricGoodDirection, MetricHighlightBand, MetricHighlightContextRow, MetricHighlightDatasets, MetricHighlightDetails, MetricHighlightInfo, MetricHighlightPoint, MetricHighlightRange, MetricHighlightReading, MetricHighlightReadingText, MetricHighlightStep, MetricHighlightStretch, MetricHighlightTrendRow, MetricInsightSegment, MetricPolarity, MetricTargetInfo, MetricTextFormatters, MetricTrendAxes, MetricTrendMark, MetricTrendPoint, MetricTrendRow, MetricTrendScale, MetricTrendSummary, MetricTrendXType, ResolveHighlightOptions, axisGranularity, buildHighlightDatasets, buildHighlightDetails, buildHighlightInsight, buildMetricChartDescription, buildMetricDescription, createMetricFormatters, deriveDelta, deriveMetricState, deriveTarget, describeComparisons, insightSegmentsToText, normalizeComparisons, normalizeTrend, resolveComparison, resolveHighlight, resolveMetricLabels } from "./components/MetricCard/MetricCard.model.js";
28
+ import { MetricCard, MetricCardBaseProps, MetricCardComparisonProps, MetricCardProps, MetricCardVariantProps } from "./components/MetricCard/MetricCard.js";
29
+ import { METRIC_CONTEXT_DATASET, METRIC_HIGHLIGHT_DATASET, METRIC_HIGHLIGHT_END_PARAM, METRIC_HIGHLIGHT_POINTS_DATASET, METRIC_HIGHLIGHT_ROWS_DATASET, METRIC_HIGHLIGHT_START_PARAM, METRIC_HOVER_PARAM, METRIC_LATEST_DATASET, METRIC_REFERENCE_DATASET, METRIC_TREND_DATASET, METRIC_X_TICKS_PARAM, MetricTrendSpecOptions, buildMetricTrendSpec } from "./components/MetricCard/MetricCard.chart.js";
30
+ import "./components/MetricCard/index.js";
31
+ import { BuildProfileDescriptionInput, DEFAULT_PROFILE_LABELS, DeriveProfileStateInput, NormalizeProfileOptions, ProfileCardLabels, ProfileCardSize, ProfileCardState, ProfileCardStatus, ProfileCell, ProfileItem, ProfileMark, ProfileMetric, ProfileMetricInfo, ProfileNormalize, ProfileRole, ProfileSeries, ProfileSummary, ProfileTextFormatters, RADAR_MAX_AXES, RADAR_MAX_SERIES, RADAR_MIN_AXES, buildProfileChartDescription, buildProfileDescription, createProfileFormatters, deriveProfileHighlights, deriveProfileState, normalizeProfile, resolveProfileLabels } from "./components/ProfileCard/ProfileCard.model.js";
32
+ import { ProfileCard, ProfileCardProps } from "./components/ProfileCard/ProfileCard.js";
33
+ import { PROFILE_AXES_DATASET, PROFILE_CELLS_DATASET, PROFILE_HOVER_PARAM, PROFILE_RINGS_DATASET, ProfilePlotSpecOptions, buildProfilePlotSpec, profileNeedsRings } from "./components/ProfileCard/ProfileCard.chart.js";
34
+ import "./components/ProfileCard/index.js";
35
+ import { CreateProgressFormattersInput, DEFAULT_PROGRESS_LABELS, DeriveProgressRunInput, DeriveProgressStateInput, ProgressCardLabels, ProgressCardSize, ProgressCardState, ProgressCardStatus, ProgressDescriptionInput, ProgressDetailRow, ProgressHeadline, ProgressPoint, ProgressPolarity, ProgressProjection, ProgressRate, ProgressRun, ProgressSnapshot, ProgressStage, ProgressStageInput, ProgressStageTone, ProgressTextFormatters, ProgressVerdict, buildProgressChartDescription, buildProgressDescription, buildProgressExplanation, buildProgressHeadline, buildProgressReadingRows, buildProgressStageRows, buildStageBarLabel, createProgressFormatters, dayDiff, deriveProgressRun, deriveProgressStages, deriveProgressState, resolveProgressLabels } from "./components/ProgressCard/ProgressCard.model.js";
36
+ import { ProgressCard, ProgressCardProps } from "./components/ProgressCard/ProgressCard.js";
37
+ import { PROGRESS_COMPLETED_DATASET, PROGRESS_DUE_DATASET, PROGRESS_FINISH_DATASET, PROGRESS_GAP_DATASET, PROGRESS_HOVER_PARAM, PROGRESS_IDEAL_DATASET, PROGRESS_LATEST_DATASET, PROGRESS_PROJECTION_DATASET, PROGRESS_SCOPE_DATASET, PROGRESS_X_TICKS_PARAM, ProgressBurnUpSpecOptions, buildProgressBurnUpSpec } from "./components/ProgressCard/ProgressCard.chart.js";
38
+ import "./components/ProgressCard/index.js";
39
+ import { REPORT_BANDS_DATASET, REPORT_BOUNDS_DATASET, REPORT_MAX_BAR_HEIGHT, REPORT_MAX_PARAM, REPORT_MIN_PARAM, REPORT_TABLE_DATASET, ReportBandPaint, ReportBulletSpecOptions, buildReportBulletSpec } from "./components/ReportCard/ReportCard.chart.js";
40
+ import { BuildReportDescriptionInput, DEFAULT_REPORT_BANDS, DEFAULT_REPORT_LABELS, DeriveReportStateInput, NormalizeCriteriaOptions, REPORT_OTHER_KEY, ReportBand, ReportBandSpan, ReportBandTone, ReportCardLabels, ReportCardSize, ReportCardState, ReportCardStatus, ReportCriterion, ReportDelta, ReportGoodDirection, ReportHeadline, ReportOverall, ReportOverallExplanation, ReportOverallMode, ReportOverallSource, ReportPolarity, ReportRole, ReportRow, ReportScoreDomain, ReportScoreSource, ReportSort, ReportSummary, ReportTextFormatters, buildReportChartDescription, buildReportDescription, createReportFormatters, deriveReportDelta, deriveReportState, findBand, normalizeBands, normalizeCriteria, resolveReportLabels, resolveScore } from "./components/ReportCard/ReportCard.model.js";
41
+ import { ReportCard, ReportCardProps } from "./components/ReportCard/ReportCard.js";
42
+ import "./components/ReportCard/index.js";
43
+ import { BuildSankeyDescriptionInput, DEFAULT_SANKEY_LABELS, DeriveSankeyStateInput, HAIRLINE_PX, LayoutSankeyOptions, NormalizeSankeyOptions, RIBBON_SAMPLES, SANKEY_MAX_IDENTITY, SANKEY_MIN_FLOWS, SANKEY_MIN_STAGES, SankeyAlign, SankeyCardLabels, SankeyCardSize, SankeyCardState, SankeyCardStatus, SankeyColor, SankeyHighlights, SankeyInsightSegment, SankeyLayout, SankeyLink, SankeyLinkInfo, SankeyNode, SankeyNodeInfo, SankeyNodeLabels, SankeyNodeOrder, SankeyNodeRow, SankeyRejectedLink, SankeyRibbonRow, SankeySummary, SankeyTextFormatters, SankeyTone, buildSankeyChartDescription, buildSankeyDescription, buildSankeyInsight, createSankeyFormatters, deriveSankeyHighlights, deriveSankeyState, layoutSankey, normalizeSankey, resolveSankeyLabels, sankeyInsightToText } from "./components/SankeyCard/SankeyCard.model.js";
44
+ import { SankeyCard, SankeyCardProps } from "./components/SankeyCard/SankeyCard.js";
45
+ import { SANKEY_HOVER_PARAM, SANKEY_NODES_DATASET, SANKEY_NODE_HOVER_PARAM, SANKEY_RIBBONS_DATASET, SANKEY_SELECTED_PARAM, SankeyPlotSpecOptions, buildSankeyPlotSpec } from "./components/SankeyCard/SankeyCard.chart.js";
46
+ import "./components/SankeyCard/index.js";
47
+ import { BuildStatusDescriptionInput, BuildStatusExplanationInput, BuildStatusStripInput, CreateStatusFormattersInput, DEFAULT_STATUS_LABELS, DeriveStatusRunInput, DeriveStatusStateInput, FormatDurationOptions, STATUS_LEVELS, STATUS_SEVERITY, StatusCardLabels, StatusCardSize, StatusCardState, StatusCardStatus, StatusChartDescriptionInput, StatusDetailRow, StatusDurationUnits, StatusExplanationInput, StatusHeadline, StatusHold, StatusIncident, StatusIncidentRow, StatusLevel, StatusPeriod, StatusPolarity, StatusResolution, StatusRun, StatusSegment, StatusSla, StatusStrip, StatusStripRow, StatusTextFormatters, StatusUptimeMode, StatusVerdict, StatusWindow, StatusWindowInput, buildStatusChartDescription, buildStatusDescription, buildStatusDetailRows, buildStatusExplanation, buildStatusIncidentRows, buildStatusStrip, createStatusFormatters, deriveIncidents, deriveStatusRun, deriveStatusState, describeResolution, formatDuration, formatStripCell, normalizeHistory, resolveStatusHold, resolveStatusLabels, resolveStatusWindow, resolveStep, statusHue, statusLevelBreakdown, statusStepKey } from "./components/StatusCard/StatusCard.model.js";
48
+ import { StatusCard, StatusCardBaseProps, StatusCardLabelProps, StatusCardProps } from "./components/StatusCard/StatusCard.js";
49
+ import { STATUS_AXIS_ROW_PX, STATUS_CELL_GAP_MAX_PX, STATUS_CELL_GAP_MIN_PX, STATUS_CELL_GAP_RATIO, STATUS_HOVER_PARAM, STATUS_MAX_PARAM, STATUS_MIN_CELL_PX, STATUS_MIN_PARAM, STATUS_TABLE_DATASET, STATUS_WINDOW_DATASET, STATUS_X_TICKS_PARAM, StatusTimelineSpecOptions, buildStatusTimelineSpec } from "./components/StatusCard/StatusCard.chart.js";
50
+ import "./components/StatusCard/index.js";
51
+ import { BuildTableDescriptionInput, BuildTableInsightInput, DEFAULT_TABLE_LABELS, DeriveTableStateInput, NormalizeTableInput, TableCardAlign, TableCardBadgeColumn, TableCardBarColumn, TableCardCell, TableCardCellDelta, TableCardColumn, TableCardColumnKind, TableCardColumnModel, TableCardDeltaColumn, TableCardGoodDirection, TableCardLabels, TableCardNumberColumn, TableCardPolarity, TableCardRow, TableCardRowModel, TableCardSize, TableCardSort, TableCardSortDirection, TableCardState, TableCardStatus, TableCardSummary, TableCardTextColumn, TableCardTone, TableCardTotal, TableCardTrendColumn, TableCardTrendMark, TableCardTrendPoint, TableCardTrendSummary, buildTableDescription, buildTableInsight, columnId, columnValueFormat, deltaPolarity, deriveTableState, nextSort, normalizeTable, normalizeTrendPoints, resolveTableLabels, summarizeTrend, trendTimeFormat } from "./components/TableCard/TableCard.model.js";
52
+ import { TableCard, TableCardBaseProps, TableCardLabelProps, TableCardProps } from "./components/TableCard/TableCard.js";
53
+ import { ArcVegaConfigOptions, arcVegaConfig } from "./lib/vega/config.js";
54
+ import { TABLE_TREND_DATASET, TABLE_TREND_HOVER_PARAM, TABLE_TREND_LATEST_DATASET, TableTrendSpecOptions, buildTableTrendSpec } from "./components/TableCard/TableCard.chart.js";
55
+ import "./components/TableCard/index.js";
56
+ import { BuildTargetDescriptionInput, BuildTargetDetailRowsInput, DEFAULT_TARGET_LABELS, DeriveTargetDeltaOptions, DeriveTargetProgressInput, DeriveTargetStateInput, TargetBounds, TargetCardLabels, TargetCardSize, TargetCardState, TargetCardStatus, TargetDelta, TargetDeltaMode, TargetDetailRow, TargetElapsed, TargetExplanationInput, TargetGoodDirection, TargetHeadline, TargetPace, TargetPaceStatus, TargetPeriod, TargetPeriodBounds, TargetPolarity, TargetProgress, TargetProjection, TargetTextFormatters, TargetTone, TargetTrack, buildTargetChartDescription, buildTargetDescription, buildTargetDetailRows, buildTargetExplanation, createTargetFormatters, deriveElapsed, deriveTargetDelta, deriveTargetProgress, deriveTargetState, formatPeriod, formatValuePair, paceWord, periodDays, resolvePeriod, resolveTargetLabels } from "./components/TargetCard/TargetCard.model.js";
57
+ import { TargetCard, TargetCardProps } from "./components/TargetCard/TargetCard.js";
58
+ import { TARGET_ACTUAL_DATASET, TARGET_BOUNDS_DATASET, TARGET_LABEL_ROW_PX, TARGET_MARKERS_DATASET, TARGET_MARKER_PARAM, TARGET_MAX_PARAM, TARGET_MIN_PARAM, TARGET_PROJECTION_DATASET, TargetBulletSpecOptions, buildTargetBulletSpec } from "./components/TargetCard/TargetCard.chart.js";
59
+ import "./components/TargetCard/index.js";
60
+ import { BuildTreeDescriptionInput, BuildTreeOptions, DEFAULT_RESIDUAL_TOLERANCE, DEFAULT_TREE_LABELS, DeriveTreeDeltaOptions, DeriveTreeStateInput, TREE_OTHER_KEY, TREE_RESIDUAL_KEY, TreeCardLabels, TreeCardSize, TreeCardState, TreeCardStatus, TreeColorBy, TreeDelta, TreeDeltaMode, TreeGoodDirection, TreeHeadline, TreeNode, TreeNodeRole, TreePolarity, TreeRollup, TreeRow, TreeRowSecondary, TreeSort, TreeSummary, TreeTextFormatters, buildTree, buildTreeChartDescription, buildTreeDescription, createTreeFormatters, deriveTreeDelta, deriveTreeState, resolveTreeLabels } from "./components/TreeCard/TreeCard.model.js";
61
+ import { TreeCard, TreeCardProps } from "./components/TreeCard/TreeCard.js";
62
+ import { TREE_DEPTH_STEPS, TREE_HOVER_PARAM, TREE_MAX_BAR_HEIGHT, TREE_TABLE_DATASET, TREE_TOTAL_PARAM, TREE_ZERO_DATASET, TreeBarsSpecOptions, buildTreeBarsSpec, treeBarColor } from "./components/TreeCard/TreeCard.chart.js";
63
+ import "./components/TreeCard/index.js";
64
+ import { BuildTrendDescriptionInput, DEFAULT_TREND_LABELS, DeriveTrendDeltaOptions, DeriveTrendSpanOptions, DeriveTrendStateInput, NormalizeSeriesOptions, TREND_OTHER_KEY, TrendBand, TrendBandRow, TrendCardLabels, TrendCardSize, TrendCardState, TrendCardStatus, TrendDelta, TrendDeltaExplanation, TrendDeltaMode, TrendGoodDirection, TrendHeadline, TrendInsightSegment, TrendMark, TrendNormalize, TrendPeriodRow, TrendPoint, TrendPolarity, TrendRow, TrendScale, TrendSeries, TrendSeriesColor, TrendSeriesColorMode, TrendSeriesInfo, TrendSpan, TrendStack, TrendSummary, TrendTextFormatters, TrendTooltipEntry, TrendTooltipModel, TrendXType, bandAt, buildLatestRows, buildPeriodRows, buildTrendChartDescription, buildTrendDescription, buildTrendInsight, buildTrendTooltip, createTrendFormatters, deriveTrendDelta, deriveTrendSpan, deriveTrendState, normalizeSeries, resolveBands, resolveSeriesColorMode, resolveTrendLabels, seriesColorAt, trendAxisGranularity } from "./components/TrendCard/TrendCard.model.js";
65
+ import { TrendCard, TrendCardProps, TrendLegendMode } from "./components/TrendCard/TrendCard.js";
66
+ import { TREND_BANDS_DATASET, TREND_HOVER_PARAM, TREND_LATEST_DATASET, TREND_PERIODS_DATASET, TREND_REFERENCE_DATASET, TREND_TABLE_DATASET, TREND_X_TICKS_PARAM, TrendPlotSpecOptions, buildTrendPlotSpec } from "./components/TrendCard/TrendCard.chart.js";
67
+ import "./components/TrendCard/index.js";
68
+ import { ZonedParts, resolveInstant, timeZoneOffsetMs, zonedDayStart, zonedMidnight, zonedParts } from "./lib/vega/time.js";
69
+ import { ArcTooltipContext, ArcTooltipHandle, ArcTooltipRows, UseArcTooltipHandlerOptions, useArcTooltipHandler } from "./lib/vega/tooltip.js";
70
+ import { ArcEmbedOptionsInput, VEGA_WARN, arcEmbedOptions } from "./lib/vega/embed.js";
71
+ import { ArcVegaDatasets, UseArcVegaParams } from "./lib/vega/useArcVega.js";
72
+ import { ArcVegaSurfaceProps } from "./lib/vega/ArcVegaSurface.js";
73
+ import { ArcEngine, getLoadedEngine, loadEngine } from "./lib/vega/load.js";
74
+ import { ArcVegaChart, ArcVegaChartProps, useArcEngine } from "./lib/vega/ArcVegaChart.js";
75
+ import "./lib/vega/index.js";
76
+ export { ANOMALY_HOVER_PARAM, ANOMALY_PERIODS_DATASET, ANOMALY_SPAN_DATASET, ANOMALY_TABLE_DATASET, ANOMALY_X_TICKS_PARAM, type AnomalyBounds, AnomalyCard, type AnomalyCardLabels, type AnomalyCardProps, type AnomalyCardSize, type AnomalyCardState, type AnomalyCardStatus, type AnomalyDeltaMode, type AnomalyDirection, type AnomalyEpisode, type AnomalyExplanation, type AnomalyFlagShape, type AnomalyGoodDirection, type AnomalyHeadline, type AnomalyInsightSegment, type AnomalyMark, type AnomalyPeak, type AnomalyPeriodRow, type AnomalyPlotSpecOptions, type AnomalyPoint, type AnomalyPolarity, type AnomalyRow, type AnomalyScale, type AnomalySpanRow, type AnomalyStanding, type AnomalySummary, type AnomalyTextFormatters, type AnomalyTooltipModel, type AnomalyVerdict, type AnomalyXType, type ArcDeltaDirection, type ArcDeltaMode, type ArcEmbedOptionsInput, type ArcEngine, type ArcNumberFormatKind, type ArcNumberFormatSpec, type ArcTimeFormatSpec, type ArcTimeGranularity, type ArcTooltipContext, type ArcTooltipHandle, ArcTooltipRows, ArcVegaChart, type ArcVegaChartProps, type ArcVegaConfigOptions, type ArcVegaDatasets, type ArcVegaSurfaceProps, type BuildAnomalyDescriptionInput, type BuildChartDescriptionInput, type BuildComparisonDescriptionInput, type BuildForecastDescriptionInput, type BuildForecastInsightInput, type BuildHighlightAnalysisInsightInput, type BuildHighlightDescriptionInput, type BuildInsightDescriptionInput, type BuildProfileDescriptionInput, type BuildReportDescriptionInput, type BuildSankeyDescriptionInput, type BuildStatusDescriptionInput, type BuildStatusExplanationInput, type BuildStatusStripInput, type BuildTableDescriptionInput, type BuildTableInsightInput, type BuildTargetDescriptionInput, type BuildTargetDetailRowsInput, type BuildTreeDescriptionInput, type BuildTreeOptions, type BuildTrendDescriptionInput, CHART_AXES_DATASET, CHART_HOVER_PARAM, CHART_OTHER_KEY, CHART_SERIES_NAMES_PARAM, CHART_TABLE_DATASET, CHART_TABLE_ROW_CAP, CHART_TYPES, CHART_TYPE_ORDER, CHART_X_TICKS_PARAM, COMPARISON_HOVER_PARAM, COMPARISON_OTHER_KEY, COMPARISON_REFERENCE_DATASET, COMPARISON_TABLE_DATASET, COMPARISON_ZERO_DATASET, CONFIDENCE_BOUNDS, type ChartAggregate, ChartCard, type ChartCardLabels, type ChartCardProps, type ChartCardSize, type ChartCardState, type ChartCardStatus, type ChartColorMode, type ChartExtent, type ChartExtremes, type ChartFieldType, type ChartIntent, type ChartLegendKind, type ChartLegendPosition, type ChartRampBucket, type ChartRecord, type ChartRow, type ChartSeriesColor, type ChartSeriesInfo, type ChartSort, type ChartSpecOptions, type ChartSummary, type ChartTableColumn, type ChartTableModel, type ChartTableToggle, type ChartTextFormatters, type ChartTokens, type ChartType, type ChartTypeFields, type ChartTypeInfo, type ChartWebRow, ComparisonCard, type ComparisonCardLabels, type ComparisonCardProps, type ComparisonCardSize, type ComparisonCardState, type ComparisonCardStatus, type ComparisonDelta, type ComparisonDeltaExplanation, type ComparisonDeltaMode, type ComparisonGoodDirection, type ComparisonHeadline, type ComparisonItem, type ComparisonMark, type ComparisonPlotSpecOptions, type ComparisonPolarity, type ComparisonRole, type ComparisonRow, type ComparisonScale, type ComparisonSort, type ComparisonSummary, type ComparisonTextFormatters, type CreateChartFormattersOptions, type CreateProgressFormattersInput, type CreateStatusFormattersInput, DEFAULT_ANOMALY_LABELS, DEFAULT_CHART_LABELS, DEFAULT_COMPARISON_LABELS, DEFAULT_FORECAST_LABELS, DEFAULT_HIGHLIGHT_LABELS, DEFAULT_INSIGHT_LABELS, DEFAULT_METRIC_LABELS, DEFAULT_PERCENTILE_THRESHOLDS, DEFAULT_PROFILE_LABELS, DEFAULT_PROGRESS_LABELS, DEFAULT_REPORT_BANDS, DEFAULT_REPORT_LABELS, DEFAULT_RESIDUAL_TOLERANCE, DEFAULT_SANKEY_LABELS, DEFAULT_SEVERITY_THRESHOLDS, DEFAULT_SIGMA_THRESHOLDS, DEFAULT_STATUS_LABELS, DEFAULT_TABLE_LABELS, DEFAULT_TARGET_LABELS, DEFAULT_TREE_LABELS, DEFAULT_TREND_LABELS, type DeriveAnomalyStateInput, type DeriveChartStateInput, type DeriveComparisonDeltaOptions, type DeriveComparisonStateInput, type DeriveForecastDeltaOptions, type DeriveForecastOutlookInput, type DeriveForecastProjectionOptions, type DeriveForecastStateInput, type DeriveHighlightDeltaOptions, type DeriveHighlightStateInput, type DeriveInsightStateInput, type DerivePeersOptions, type DeriveProfileStateInput, type DeriveProgressRunInput, type DeriveProgressStateInput, type DeriveReportStateInput, type DeriveSankeyStateInput, type DeriveStatusRunInput, type DeriveStatusStateInput, type DeriveTableStateInput, type DeriveTargetDeltaOptions, type DeriveTargetProgressInput, type DeriveTargetStateInput, type DeriveTreeDeltaOptions, type DeriveTreeStateInput, type DeriveTrendDeltaOptions, type DeriveTrendSpanOptions, type DeriveTrendStateInput, type DescribeComparisonsOptions, FORECAST_BOUNDARY_DATASET, FORECAST_HOVER_PARAM, FORECAST_INTERVAL_DATASET, FORECAST_LANDING_DATASET, FORECAST_PERIODS_DATASET, FORECAST_REFERENCE_DATASET, FORECAST_REGION_DATASET, FORECAST_REGION_END_PARAM, FORECAST_REGION_START_PARAM, FORECAST_TABLE_DATASET, FORECAST_X_TICKS_PARAM, ForecastCard, type ForecastCardLabels, type ForecastCardProps, type ForecastCardSize, type ForecastCardState, type ForecastCardStatus, type ForecastDelta, type ForecastDeltaExplanation, type ForecastDeltaMode, type ForecastGoodDirection, type ForecastHeadline, type ForecastInsightSegment, type ForecastKind, type ForecastMark, type ForecastMoment, type ForecastOutlook, type ForecastPeriodRow, type ForecastPlotSpecOptions, type ForecastPoint, type ForecastPolarity, type ForecastProjection, type ForecastReading, type ForecastRegionRow, type ForecastRow, type ForecastScale, type ForecastSummary, type ForecastTextFormatters, type ForecastTooltipModel, type ForecastXType, type FormatDeltaOptions, type FormatDurationOptions, type FormattedDelta, HAIRLINE_PX, HIGHLIGHT_BAND_DATASET, HIGHLIGHT_DRIVERS_DATASET, HIGHLIGHT_DRIVER_HOVER_PARAM, HIGHLIGHT_ENDPOINTS_DATASET, HIGHLIGHT_END_PARAM, HIGHLIGHT_HOVER_PARAM, HIGHLIGHT_INSIDE_DATASET, HIGHLIGHT_OUTSIDE_DATASET, HIGHLIGHT_PEERS_DATASET, HIGHLIGHT_PEER_HOVER_PARAM, HIGHLIGHT_START_PARAM, HIGHLIGHT_TABLE_DATASET, HIGHLIGHT_TYPICAL_DATASET, HIGHLIGHT_X_TICKS_PARAM, HIGHLIGHT_ZERO_DATASET, type HighlightBandRow, type HighlightBaseline, HighlightCard, type HighlightCardLabels, type HighlightCardProps, type HighlightCardSize, type HighlightCardState, type HighlightCardStatus, type HighlightContextDatasets, type HighlightContextRow, type HighlightContextSpecOptions, type HighlightDelta, type HighlightDeltaMode, type HighlightDriver, type HighlightDriverInfo, type HighlightDriversInfo, type HighlightDriversSpecOptions, type HighlightEndpointRow, type HighlightGoodDirection, type HighlightInsightSegment, type HighlightLeg, type HighlightMark, type HighlightOutsideRow, type HighlightPeer, type HighlightPeerMode, type HighlightPeerStats, type HighlightPeersSpecOptions, type HighlightPoint, type HighlightPolarity, type HighlightReading, type HighlightRow, type HighlightScale, type HighlightSection, type HighlightSeverity, type HighlightSeverityThresholds, type HighlightSummary, type HighlightTextFormatters, type HighlightWindow, type HighlightWindowInfo, type HighlightXType, INSIGHT_FLAG_PARAM, INSIGHT_HOVER_PARAM, INSIGHT_INTERVAL_DATASET, INSIGHT_POINTS_DATASET, INSIGHT_STRIP_DATASET, INSIGHT_X_TICKS_PARAM, type InsightAxes, InsightCard, type InsightCardLabels, type InsightCardProps, type InsightCardSize, type InsightCardState, type InsightCardStatus, type InsightConfidenceLevel, type InsightDeltaMode, type InsightEvidence, type InsightFeedback, type InsightGoodDirection, type InsightIntervalRow, type InsightKind, type InsightObservation, type InsightPoint, type InsightPolarity, type InsightRow, type InsightSeverity, type InsightSeverityThresholds, type InsightSparkSpecOptions, type InsightStrengthKind, type InsightStripRow, type InsightStripSpecOptions, type InsightSummary, type InsightTextFormatters, type InsightXType, type LayoutSankeyOptions, MAX_BAR_HEIGHT, MAX_DRIVER_BAR_HEIGHT, METRIC_CONTEXT_DATASET, METRIC_HIGHLIGHT_DATASET, METRIC_HIGHLIGHT_END_PARAM, METRIC_HIGHLIGHT_POINTS_DATASET, METRIC_HIGHLIGHT_ROWS_DATASET, METRIC_HIGHLIGHT_START_PARAM, METRIC_HOVER_PARAM, METRIC_LATEST_DATASET, METRIC_PREVIOUS_KEY, METRIC_REFERENCE_DATASET, METRIC_TREND_DATASET, METRIC_X_TICKS_PARAM, MISSING_VALUE, MetricCard, type MetricCardBaseProps, type MetricCardComparisonProps, type MetricCardLabels, type MetricCardProps, type MetricCardSize, type MetricCardState, type MetricCardStatus, type MetricCardVariant, type MetricCardVariantProps, type MetricComparison, type MetricComparisonCandidate, type MetricComparisonRow, type MetricDelta, type MetricDeltaExplanation, type MetricDeltaMode, type MetricGoodDirection, type MetricHighlightBand, type MetricHighlightContextRow, type MetricHighlightDatasets, type MetricHighlightDetails, type MetricHighlightInfo, type MetricHighlightPoint, type MetricHighlightRange, type MetricHighlightReading, type MetricHighlightReadingText, type MetricHighlightStep, type MetricHighlightStretch, type MetricHighlightTrendRow, type MetricInsightSegment, type MetricPolarity, type MetricTargetInfo, type MetricTextFormatters, type MetricTrendAxes, type MetricTrendMark, type MetricTrendPoint, type MetricTrendRow, type MetricTrendScale, type MetricTrendSpecOptions, type MetricTrendSummary, type MetricTrendXType, type NormalizeAnomalyOptions, type NormalizeChartDataOptions, type NormalizeCriteriaOptions, type NormalizeDriversOptions, type NormalizeForecastOptions, type NormalizeInsightOptions, type NormalizeItemsOptions, type NormalizeProfileOptions, type NormalizeSankeyOptions, type NormalizeSeriesOptions, type NormalizeTableInput, PROFILE_AXES_DATASET, PROFILE_CELLS_DATASET, PROFILE_HOVER_PARAM, PROFILE_RINGS_DATASET, PROGRESS_COMPLETED_DATASET, PROGRESS_DUE_DATASET, PROGRESS_FINISH_DATASET, PROGRESS_GAP_DATASET, PROGRESS_HOVER_PARAM, PROGRESS_IDEAL_DATASET, PROGRESS_LATEST_DATASET, PROGRESS_PROJECTION_DATASET, PROGRESS_SCOPE_DATASET, PROGRESS_X_TICKS_PARAM, ProfileCard, type ProfileCardLabels, type ProfileCardProps, type ProfileCardSize, type ProfileCardState, type ProfileCardStatus, type ProfileCell, type ProfileItem, type ProfileMark, type ProfileMetric, type ProfileMetricInfo, type ProfileNormalize, type ProfilePlotSpecOptions, type ProfileRole, type ProfileSeries, type ProfileSummary, type ProfileTextFormatters, type ProgressBurnUpSpecOptions, ProgressCard, type ProgressCardLabels, type ProgressCardProps, type ProgressCardSize, type ProgressCardState, type ProgressCardStatus, type ProgressDescriptionInput, type ProgressDetailRow, type ProgressHeadline, type ProgressPoint, type ProgressPolarity, type ProgressProjection, type ProgressRate, type ProgressRun, type ProgressSnapshot, type ProgressStage, type ProgressStageInput, type ProgressStageTone, type ProgressTextFormatters, type ProgressVerdict, RADAR_MAX_AXES, RADAR_MAX_SERIES, RADAR_MIN_AXES, RADAR_RING_FRACTIONS, REPORT_BANDS_DATASET, REPORT_BOUNDS_DATASET, REPORT_MAX_BAR_HEIGHT, REPORT_MAX_PARAM, REPORT_MIN_PARAM, REPORT_OTHER_KEY, REPORT_TABLE_DATASET, RIBBON_SAMPLES, type ReportBand, type ReportBandPaint, type ReportBandSpan, type ReportBandTone, type ReportBulletSpecOptions, ReportCard, type ReportCardLabels, type ReportCardProps, type ReportCardSize, type ReportCardState, type ReportCardStatus, type ReportCriterion, type ReportDelta, type ReportGoodDirection, type ReportHeadline, type ReportOverall, type ReportOverallExplanation, type ReportOverallMode, type ReportOverallSource, type ReportPolarity, type ReportRole, type ReportRow, type ReportScoreDomain, type ReportScoreSource, type ReportSort, type ReportSummary, type ReportTextFormatters, type ResolveHighlightOptions, type ResolveHighlightWindowOptions, SANKEY_HOVER_PARAM, SANKEY_MAX_IDENTITY, SANKEY_MIN_FLOWS, SANKEY_MIN_STAGES, SANKEY_NODES_DATASET, SANKEY_NODE_HOVER_PARAM, SANKEY_RIBBONS_DATASET, SANKEY_SELECTED_PARAM, STATUS_AXIS_ROW_PX, STATUS_CELL_GAP_MAX_PX, STATUS_CELL_GAP_MIN_PX, STATUS_CELL_GAP_RATIO, STATUS_HOVER_PARAM, STATUS_LEVELS, STATUS_MAX_PARAM, STATUS_MIN_CELL_PX, STATUS_MIN_PARAM, STATUS_SEVERITY, STATUS_TABLE_DATASET, STATUS_WINDOW_DATASET, STATUS_X_TICKS_PARAM, type SankeyAlign, SankeyCard, type SankeyCardLabels, type SankeyCardProps, type SankeyCardSize, type SankeyCardState, type SankeyCardStatus, type SankeyColor, type SankeyHighlights, type SankeyInsightSegment, type SankeyLayout, type SankeyLink, type SankeyLinkInfo, type SankeyNode, type SankeyNodeInfo, type SankeyNodeLabels, type SankeyNodeOrder, type SankeyNodeRow, type SankeyPlotSpecOptions, type SankeyRejectedLink, type SankeyRibbonRow, type SankeySummary, type SankeyTextFormatters, type SankeyTone, StatusCard, type StatusCardBaseProps, type StatusCardLabelProps, type StatusCardLabels, type StatusCardProps, type StatusCardSize, type StatusCardState, type StatusCardStatus, type StatusChartDescriptionInput, type StatusDetailRow, type StatusDurationUnits, type StatusExplanationInput, type StatusHeadline, type StatusHold, type StatusIncident, type StatusIncidentRow, type StatusLevel, type StatusPeriod, type StatusPolarity, type StatusResolution, type StatusRun, type StatusSegment, type StatusSla, type StatusStrip, type StatusStripRow, type StatusTextFormatters, type StatusTimelineSpecOptions, type StatusUptimeMode, type StatusVerdict, type StatusWindow, type StatusWindowInput, TABLE_TREND_DATASET, TABLE_TREND_HOVER_PARAM, TABLE_TREND_LATEST_DATASET, TARGET_ACTUAL_DATASET, TARGET_BOUNDS_DATASET, TARGET_LABEL_ROW_PX, TARGET_MARKERS_DATASET, TARGET_MARKER_PARAM, TARGET_MAX_PARAM, TARGET_MIN_PARAM, TARGET_PROJECTION_DATASET, TREE_DEPTH_STEPS, TREE_HOVER_PARAM, TREE_MAX_BAR_HEIGHT, TREE_OTHER_KEY, TREE_RESIDUAL_KEY, TREE_TABLE_DATASET, TREE_TOTAL_PARAM, TREE_ZERO_DATASET, TREND_BANDS_DATASET, TREND_HOVER_PARAM, TREND_LATEST_DATASET, TREND_OTHER_KEY, TREND_PERIODS_DATASET, TREND_REFERENCE_DATASET, TREND_TABLE_DATASET, TREND_X_TICKS_PARAM, TableCard, type TableCardAlign, type TableCardBadgeColumn, type TableCardBarColumn, type TableCardBaseProps, type TableCardCell, type TableCardCellDelta, type TableCardColumn, type TableCardColumnKind, type TableCardColumnModel, type TableCardDeltaColumn, type TableCardGoodDirection, type TableCardLabelProps, type TableCardLabels, type TableCardNumberColumn, type TableCardPolarity, type TableCardProps, type TableCardRow, type TableCardRowModel, type TableCardSize, type TableCardSort, type TableCardSortDirection, type TableCardState, type TableCardStatus, type TableCardSummary, type TableCardTextColumn, type TableCardTone, type TableCardTotal, type TableCardTrendColumn, type TableCardTrendMark, type TableCardTrendPoint, type TableCardTrendSummary, type TableTrendSpecOptions, type TargetBounds, type TargetBulletSpecOptions, TargetCard, type TargetCardLabels, type TargetCardProps, type TargetCardSize, type TargetCardState, type TargetCardStatus, type TargetDelta, type TargetDeltaMode, type TargetDetailRow, type TargetElapsed, type TargetExplanationInput, type TargetGoodDirection, type TargetHeadline, type TargetPace, type TargetPaceStatus, type TargetPeriod, type TargetPeriodBounds, type TargetPolarity, type TargetProgress, type TargetProjection, type TargetTextFormatters, type TargetTone, type TargetTrack, type TreeBarsSpecOptions, TreeCard, type TreeCardLabels, type TreeCardProps, type TreeCardSize, type TreeCardState, type TreeCardStatus, type TreeColorBy, type TreeDelta, type TreeDeltaMode, type TreeGoodDirection, type TreeHeadline, type TreeNode, type TreeNodeRole, type TreePolarity, type TreeRollup, type TreeRow, type TreeRowSecondary, type TreeSort, type TreeSummary, type TreeTextFormatters, type TrendBand, type TrendBandRow, TrendCard, type TrendCardLabels, type TrendCardProps, type TrendCardSize, type TrendCardState, type TrendCardStatus, type TrendDelta, type TrendDeltaExplanation, type TrendDeltaMode, type TrendGoodDirection, type TrendHeadline, type TrendInsightSegment, type TrendLegendMode, type TrendMark, type TrendNormalize, type TrendPeriodRow, type TrendPlotSpecOptions, type TrendPoint, type TrendPolarity, type TrendRow, type TrendScale, type TrendSeries, type TrendSeriesColor, type TrendSeriesColorMode, type TrendSeriesInfo, type TrendSpan, type TrendStack, type TrendSummary, type TrendTextFormatters, type TrendTooltipEntry, type TrendTooltipModel, type TrendXType, type UseArcTooltipHandlerOptions, type UseArcVegaParams, VEGA_WARN, type ZonedParts, anomalyAxisGranularity, anomalyColorFor, anomalyPolarityFor, anomalyShapeFor, arcEmbedOptions, arcVegaConfig, axisGranularity, bandAt, buildAnomalyChartDescription, buildAnomalyDescription, buildAnomalyExplanation, buildAnomalyInsight, buildAnomalyPeriodRows, buildAnomalyPlotSpec, buildAnomalySpanRows, buildAnomalyTooltip, buildChartDescription, buildChartPlotDescription, buildChartSpec, buildChartTableModel, buildComparisonChartDescription, buildComparisonDescription, buildComparisonPlotSpec, buildContextDescription, buildDriverRows, buildDriversDescription, buildForecastBoundaryRows, buildForecastChartDescription, buildForecastDescription, buildForecastInsight, buildForecastLandingRows, buildForecastPeriodRows, buildForecastPlotSpec, buildForecastRegionRows, buildForecastTooltip, buildHighlightAnalysisInsight, buildHighlightContextDatasets, buildHighlightContextSpec, buildHighlightDatasets, buildHighlightDescription, buildHighlightDetails, buildHighlightDriversSpec, buildHighlightInsight, buildHighlightPeersSpec, buildInsightChartDescription, buildInsightDescription, buildInsightProvenance, buildInsightSparkSpec, buildInsightStripSpec, buildLatestRows, buildMetricChartDescription, buildMetricDescription, buildMetricTrendSpec, buildPeerVerdict, buildPeersDescription, buildPeriodRows, buildProfileChartDescription, buildProfileDescription, buildProfilePlotSpec, buildProgressBurnUpSpec, buildProgressChartDescription, buildProgressDescription, buildProgressExplanation, buildProgressHeadline, buildProgressReadingRows, buildProgressStageRows, buildRadarWebRows, buildRampBuckets, buildReportBulletSpec, buildReportChartDescription, buildReportDescription, buildSankeyChartDescription, buildSankeyDescription, buildSankeyInsight, buildSankeyPlotSpec, buildStageBarLabel, buildStatusChartDescription, buildStatusDescription, buildStatusDetailRows, buildStatusExplanation, buildStatusIncidentRows, buildStatusStrip, buildStatusTimelineSpec, buildTableDescription, buildTableInsight, buildTableTrendSpec, buildTargetBulletSpec, buildTargetChartDescription, buildTargetDescription, buildTargetDetailRows, buildTargetExplanation, buildTree, buildTreeBarsSpec, buildTreeChartDescription, buildTreeDescription, buildTrendChartDescription, buildTrendDescription, buildTrendInsight, buildTrendPlotSpec, buildTrendTooltip, buildTypicalRows, chartSeriesColorAt, columnId, columnValueFormat, comparisonNeedsZero, comparisonOrientation, comparisonUsesFrom, createAnomalyFormatters, createChartFormatters, createComparisonFormatters, createForecastFormatters, createHighlightFormatters, createInsightFormatters, createMetricFormatters, createProfileFormatters, createProgressFormatters, createReportFormatters, createSankeyFormatters, createStatusFormatters, createTargetFormatters, createTreeFormatters, createTrendFormatters, dayDiff, deltaPolarity, deriveAnomalyStanding, deriveAnomalyState, deriveChartState, deriveComparisonDelta, deriveComparisonState, deriveDelta, deriveElapsed, deriveForecastCrossing, deriveForecastDelta, deriveForecastOutlook, deriveForecastProjection, deriveForecastState, deriveHighlightDelta, deriveHighlightState, deriveIncidents, deriveInsightPolarity, deriveInsightSeverity, deriveInsightState, deriveMetricState, derivePeers, deriveProfileHighlights, deriveProfileState, deriveProgressRun, deriveProgressStages, deriveProgressState, deriveReportDelta, deriveReportState, deriveSankeyHighlights, deriveSankeyState, deriveStatusRun, deriveStatusState, deriveTableState, deriveTarget, deriveTargetDelta, deriveTargetProgress, deriveTargetState, deriveTreeDelta, deriveTreeState, deriveTrendDelta, deriveTrendSpan, deriveTrendState, describeComparisons, describeResolution, findBand, forecastAxisGranularity, formatDate, formatDateRange, formatDelta, formatDuration, formatInsightX, formatNumber, formatPeriod, formatStripCell, formatValuePair, getLoadedEngine, hasEnoughData, highlightSegmentsToText, inferFieldType, inferGranularity, inferInsightXType, insightAxisGranularity, insightConfidenceLevel, insightFormatIsPercent, insightSegmentsToText, layoutSankey, loadEngine, missingChartFields, nextSort, normalizeAnomalies, normalizeBands, normalizeChartData, normalizeComparisons, normalizeCriteria, normalizeDrivers, normalizeForecast, normalizeHighlightSeries, normalizeHistory, normalizeInsight, normalizeItems, normalizeProfile, normalizeSankey, normalizeSeries, normalizeTable, normalizeTrend, normalizeTrendPoints, paceWord, parseArcNumberFormat, parseArcTimeFormat, periodDays, profileNeedsRings, reachesTarget, readChartTokens, registerArcFormatters, resolveAnomalyLabels, resolveBands, resolveChartColorMode, resolveChartLabels, resolveComparison, resolveComparisonLabels, resolveComparisonScale, resolveForecastLabels, resolveHighlight, resolveHighlightLabels, resolveHighlightWindow, resolveInsightLabels, resolveInstant, resolveMetricLabels, resolvePeriod, resolveProfileLabels, resolveProgressLabels, resolveReportLabels, resolveSankeyLabels, resolveScore, resolveSeriesColorMode, resolveStatusHold, resolveStatusLabels, resolveStatusWindow, resolveStep, resolveTableLabels, resolveTargetLabels, resolveTreeLabels, resolveTrendLabels, sankeyInsightToText, seriesColorAt, statusHue, statusLevelBreakdown, statusStepKey, summarizeTrend, timeZoneOffsetMs, treeBarColor, trendAxisGranularity, trendTimeFormat, useArcEngine, useArcTooltipHandler, useChartTokens, zonedDayStart, zonedMidnight, zonedParts };
package/dist/index.js ADDED
@@ -0,0 +1,57 @@
1
+ import { getLoadedEngine, loadEngine } from "./lib/vega/load.js";
2
+ import { ArcVegaChart, useArcEngine } from "./lib/vega/ArcVegaChart.js";
3
+ import { VEGA_WARN, arcEmbedOptions } from "./lib/vega/embed.js";
4
+ import { MISSING_VALUE, formatDate, formatDateRange, formatDelta, formatNumber, parseArcNumberFormat, parseArcTimeFormat, registerArcFormatters } from "./lib/vega/formatters.js";
5
+ import { readChartTokens, useChartTokens } from "./lib/vega/tokens.js";
6
+ import { ArcTooltipRows, useArcTooltipHandler } from "./lib/vega/tooltip.js";
7
+ import { arcVegaConfig } from "./lib/vega/config.js";
8
+ import { ANOMALY_HOVER_PARAM, ANOMALY_PERIODS_DATASET, ANOMALY_SPAN_DATASET, ANOMALY_TABLE_DATASET, ANOMALY_X_TICKS_PARAM, buildAnomalyPlotSpec } from "./components/AnomalyCard/AnomalyCard.chart.js";
9
+ import { DEFAULT_ANOMALY_LABELS, anomalyAxisGranularity, anomalyColorFor, anomalyPolarityFor, anomalyShapeFor, buildAnomalyChartDescription, buildAnomalyDescription, buildAnomalyExplanation, buildAnomalyInsight, buildAnomalyPeriodRows, buildAnomalySpanRows, buildAnomalyTooltip, createAnomalyFormatters, deriveAnomalyStanding, deriveAnomalyState, normalizeAnomalies, resolveAnomalyLabels } from "./components/AnomalyCard/AnomalyCard.model.js";
10
+ import { AnomalyCard } from "./components/AnomalyCard/AnomalyCard.js";
11
+ import { CHART_OTHER_KEY, CHART_TABLE_ROW_CAP, CHART_TYPES, CHART_TYPE_ORDER, DEFAULT_CHART_LABELS, RADAR_RING_FRACTIONS, buildChartDescription, buildChartPlotDescription, buildChartTableModel, buildRadarWebRows, buildRampBuckets, chartSeriesColorAt, createChartFormatters, deriveChartState, hasEnoughData, inferFieldType, inferGranularity, missingChartFields, normalizeChartData, resolveChartColorMode, resolveChartLabels } from "./components/ChartCard/ChartCard.model.js";
12
+ import { CHART_AXES_DATASET, CHART_HOVER_PARAM, CHART_SERIES_NAMES_PARAM, CHART_TABLE_DATASET, CHART_X_TICKS_PARAM, buildChartSpec } from "./components/ChartCard/ChartCard.chart.js";
13
+ import { ChartCard } from "./components/ChartCard/ChartCard.js";
14
+ import { COMPARISON_HOVER_PARAM, COMPARISON_REFERENCE_DATASET, COMPARISON_TABLE_DATASET, COMPARISON_ZERO_DATASET, MAX_BAR_HEIGHT, buildComparisonPlotSpec, comparisonNeedsZero, comparisonOrientation, comparisonUsesFrom, resolveComparisonScale } from "./components/ComparisonCard/ComparisonCard.chart.js";
15
+ import { COMPARISON_OTHER_KEY, DEFAULT_COMPARISON_LABELS, buildComparisonChartDescription, buildComparisonDescription, createComparisonFormatters, deriveComparisonDelta, deriveComparisonState, normalizeItems, resolveComparisonLabels } from "./components/ComparisonCard/ComparisonCard.model.js";
16
+ import { ComparisonCard } from "./components/ComparisonCard/ComparisonCard.js";
17
+ import { FORECAST_BOUNDARY_DATASET, FORECAST_HOVER_PARAM, FORECAST_INTERVAL_DATASET, FORECAST_LANDING_DATASET, FORECAST_PERIODS_DATASET, FORECAST_REFERENCE_DATASET, FORECAST_REGION_DATASET, FORECAST_REGION_END_PARAM, FORECAST_REGION_START_PARAM, FORECAST_TABLE_DATASET, FORECAST_X_TICKS_PARAM, buildForecastPlotSpec } from "./components/ForecastCard/ForecastCard.chart.js";
18
+ import { DEFAULT_FORECAST_LABELS, buildForecastBoundaryRows, buildForecastChartDescription, buildForecastDescription, buildForecastInsight, buildForecastLandingRows, buildForecastPeriodRows, buildForecastRegionRows, buildForecastTooltip, createForecastFormatters, deriveForecastCrossing, deriveForecastDelta, deriveForecastOutlook, deriveForecastProjection, deriveForecastState, forecastAxisGranularity, normalizeForecast, reachesTarget, resolveForecastLabels } from "./components/ForecastCard/ForecastCard.model.js";
19
+ import { ForecastCard } from "./components/ForecastCard/ForecastCard.js";
20
+ import { HIGHLIGHT_BAND_DATASET, HIGHLIGHT_DRIVERS_DATASET, HIGHLIGHT_DRIVER_HOVER_PARAM, HIGHLIGHT_ENDPOINTS_DATASET, HIGHLIGHT_END_PARAM, HIGHLIGHT_HOVER_PARAM, HIGHLIGHT_INSIDE_DATASET, HIGHLIGHT_OUTSIDE_DATASET, HIGHLIGHT_PEERS_DATASET, HIGHLIGHT_PEER_HOVER_PARAM, HIGHLIGHT_START_PARAM, HIGHLIGHT_TABLE_DATASET, HIGHLIGHT_TYPICAL_DATASET, HIGHLIGHT_X_TICKS_PARAM, HIGHLIGHT_ZERO_DATASET, MAX_DRIVER_BAR_HEIGHT, buildHighlightContextSpec, buildHighlightDriversSpec, buildHighlightPeersSpec } from "./components/HighlightCard/HighlightCard.chart.js";
21
+ import { DEFAULT_HIGHLIGHT_LABELS, DEFAULT_PERCENTILE_THRESHOLDS, DEFAULT_SIGMA_THRESHOLDS, buildContextDescription, buildDriverRows, buildDriversDescription, buildHighlightAnalysisInsight, buildHighlightContextDatasets, buildHighlightDescription, buildPeerVerdict, buildPeersDescription, buildTypicalRows, createHighlightFormatters, deriveHighlightDelta, deriveHighlightState, derivePeers, highlightSegmentsToText, normalizeDrivers, normalizeHighlightSeries, resolveHighlightLabels, resolveHighlightWindow } from "./components/HighlightCard/HighlightCard.model.js";
22
+ import { HighlightCard } from "./components/HighlightCard/HighlightCard.js";
23
+ import { INSIGHT_FLAG_PARAM, INSIGHT_HOVER_PARAM, INSIGHT_INTERVAL_DATASET, INSIGHT_POINTS_DATASET, INSIGHT_STRIP_DATASET, INSIGHT_X_TICKS_PARAM, buildInsightSparkSpec, buildInsightStripSpec } from "./components/InsightCard/InsightCard.chart.js";
24
+ import { CONFIDENCE_BOUNDS, DEFAULT_INSIGHT_LABELS, DEFAULT_SEVERITY_THRESHOLDS, buildInsightChartDescription, buildInsightDescription, buildInsightProvenance, createInsightFormatters, deriveInsightPolarity, deriveInsightSeverity, deriveInsightState, formatInsightX, inferInsightXType, insightAxisGranularity, insightConfidenceLevel, insightFormatIsPercent, normalizeInsight, resolveInsightLabels } from "./components/InsightCard/InsightCard.model.js";
25
+ import { InsightCard } from "./components/InsightCard/InsightCard.js";
26
+ import { METRIC_CONTEXT_DATASET, METRIC_HIGHLIGHT_DATASET, METRIC_HIGHLIGHT_END_PARAM, METRIC_HIGHLIGHT_POINTS_DATASET, METRIC_HIGHLIGHT_ROWS_DATASET, METRIC_HIGHLIGHT_START_PARAM, METRIC_HOVER_PARAM, METRIC_LATEST_DATASET, METRIC_REFERENCE_DATASET, METRIC_TREND_DATASET, METRIC_X_TICKS_PARAM, buildMetricTrendSpec } from "./components/MetricCard/MetricCard.chart.js";
27
+ import { DEFAULT_METRIC_LABELS, METRIC_PREVIOUS_KEY, axisGranularity, buildHighlightDatasets, buildHighlightDetails, buildHighlightInsight, buildMetricChartDescription, buildMetricDescription, createMetricFormatters, deriveDelta, deriveMetricState, deriveTarget, describeComparisons, insightSegmentsToText, normalizeComparisons, normalizeTrend, resolveComparison, resolveHighlight, resolveMetricLabels } from "./components/MetricCard/MetricCard.model.js";
28
+ import { MetricCard } from "./components/MetricCard/MetricCard.js";
29
+ import { PROFILE_AXES_DATASET, PROFILE_CELLS_DATASET, PROFILE_HOVER_PARAM, PROFILE_RINGS_DATASET, buildProfilePlotSpec, profileNeedsRings } from "./components/ProfileCard/ProfileCard.chart.js";
30
+ import { DEFAULT_PROFILE_LABELS, RADAR_MAX_AXES, RADAR_MAX_SERIES, RADAR_MIN_AXES, buildProfileChartDescription, buildProfileDescription, createProfileFormatters, deriveProfileHighlights, deriveProfileState, normalizeProfile, resolveProfileLabels } from "./components/ProfileCard/ProfileCard.model.js";
31
+ import { ProfileCard } from "./components/ProfileCard/ProfileCard.js";
32
+ import { PROGRESS_COMPLETED_DATASET, PROGRESS_DUE_DATASET, PROGRESS_FINISH_DATASET, PROGRESS_GAP_DATASET, PROGRESS_HOVER_PARAM, PROGRESS_IDEAL_DATASET, PROGRESS_LATEST_DATASET, PROGRESS_PROJECTION_DATASET, PROGRESS_SCOPE_DATASET, PROGRESS_X_TICKS_PARAM, buildProgressBurnUpSpec } from "./components/ProgressCard/ProgressCard.chart.js";
33
+ import { resolveInstant, timeZoneOffsetMs, zonedDayStart, zonedMidnight, zonedParts } from "./lib/vega/time.js";
34
+ import { DEFAULT_PROGRESS_LABELS, buildProgressChartDescription, buildProgressDescription, buildProgressExplanation, buildProgressHeadline, buildProgressReadingRows, buildProgressStageRows, buildStageBarLabel, createProgressFormatters, dayDiff, deriveProgressRun, deriveProgressStages, deriveProgressState, resolveProgressLabels } from "./components/ProgressCard/ProgressCard.model.js";
35
+ import { ProgressCard } from "./components/ProgressCard/ProgressCard.js";
36
+ import { REPORT_BANDS_DATASET, REPORT_BOUNDS_DATASET, REPORT_MAX_BAR_HEIGHT, REPORT_MAX_PARAM, REPORT_MIN_PARAM, REPORT_TABLE_DATASET, buildReportBulletSpec } from "./components/ReportCard/ReportCard.chart.js";
37
+ import { DEFAULT_REPORT_BANDS, DEFAULT_REPORT_LABELS, REPORT_OTHER_KEY, buildReportChartDescription, buildReportDescription, createReportFormatters, deriveReportDelta, deriveReportState, findBand, normalizeBands, normalizeCriteria, resolveReportLabels, resolveScore } from "./components/ReportCard/ReportCard.model.js";
38
+ import { ReportCard } from "./components/ReportCard/ReportCard.js";
39
+ import { SANKEY_HOVER_PARAM, SANKEY_NODES_DATASET, SANKEY_NODE_HOVER_PARAM, SANKEY_RIBBONS_DATASET, SANKEY_SELECTED_PARAM, buildSankeyPlotSpec } from "./components/SankeyCard/SankeyCard.chart.js";
40
+ import { DEFAULT_SANKEY_LABELS, HAIRLINE_PX, RIBBON_SAMPLES, SANKEY_MAX_IDENTITY, SANKEY_MIN_FLOWS, SANKEY_MIN_STAGES, buildSankeyChartDescription, buildSankeyDescription, buildSankeyInsight, createSankeyFormatters, deriveSankeyHighlights, deriveSankeyState, layoutSankey, normalizeSankey, resolveSankeyLabels, sankeyInsightToText } from "./components/SankeyCard/SankeyCard.model.js";
41
+ import { SankeyCard } from "./components/SankeyCard/SankeyCard.js";
42
+ import { STATUS_AXIS_ROW_PX, STATUS_CELL_GAP_MAX_PX, STATUS_CELL_GAP_MIN_PX, STATUS_CELL_GAP_RATIO, STATUS_HOVER_PARAM, STATUS_MAX_PARAM, STATUS_MIN_CELL_PX, STATUS_MIN_PARAM, STATUS_TABLE_DATASET, STATUS_WINDOW_DATASET, STATUS_X_TICKS_PARAM, buildStatusTimelineSpec } from "./components/StatusCard/StatusCard.chart.js";
43
+ import { DEFAULT_STATUS_LABELS, STATUS_LEVELS, STATUS_SEVERITY, buildStatusChartDescription, buildStatusDescription, buildStatusDetailRows, buildStatusExplanation, buildStatusIncidentRows, buildStatusStrip, createStatusFormatters, deriveIncidents, deriveStatusRun, deriveStatusState, describeResolution, formatDuration, formatStripCell, normalizeHistory, resolveStatusHold, resolveStatusLabels, resolveStatusWindow, resolveStep, statusHue, statusLevelBreakdown, statusStepKey } from "./components/StatusCard/StatusCard.model.js";
44
+ import { StatusCard } from "./components/StatusCard/StatusCard.js";
45
+ import { TABLE_TREND_DATASET, TABLE_TREND_HOVER_PARAM, TABLE_TREND_LATEST_DATASET, buildTableTrendSpec } from "./components/TableCard/TableCard.chart.js";
46
+ import { DEFAULT_TABLE_LABELS, buildTableDescription, buildTableInsight, columnId, columnValueFormat, deltaPolarity, deriveTableState, nextSort, normalizeTable, normalizeTrendPoints, resolveTableLabels, summarizeTrend, trendTimeFormat } from "./components/TableCard/TableCard.model.js";
47
+ import { TableCard } from "./components/TableCard/TableCard.js";
48
+ import { TARGET_ACTUAL_DATASET, TARGET_BOUNDS_DATASET, TARGET_LABEL_ROW_PX, TARGET_MARKERS_DATASET, TARGET_MARKER_PARAM, TARGET_MAX_PARAM, TARGET_MIN_PARAM, TARGET_PROJECTION_DATASET, buildTargetBulletSpec } from "./components/TargetCard/TargetCard.chart.js";
49
+ import { DEFAULT_TARGET_LABELS, buildTargetChartDescription, buildTargetDescription, buildTargetDetailRows, buildTargetExplanation, createTargetFormatters, deriveElapsed, deriveTargetDelta, deriveTargetProgress, deriveTargetState, formatPeriod, formatValuePair, paceWord, periodDays, resolvePeriod, resolveTargetLabels } from "./components/TargetCard/TargetCard.model.js";
50
+ import { TargetCard } from "./components/TargetCard/TargetCard.js";
51
+ import { TREE_DEPTH_STEPS, TREE_HOVER_PARAM, TREE_MAX_BAR_HEIGHT, TREE_TABLE_DATASET, TREE_TOTAL_PARAM, TREE_ZERO_DATASET, buildTreeBarsSpec, treeBarColor } from "./components/TreeCard/TreeCard.chart.js";
52
+ import { DEFAULT_RESIDUAL_TOLERANCE, DEFAULT_TREE_LABELS, TREE_OTHER_KEY, TREE_RESIDUAL_KEY, buildTree, buildTreeChartDescription, buildTreeDescription, createTreeFormatters, deriveTreeDelta, deriveTreeState, resolveTreeLabels } from "./components/TreeCard/TreeCard.model.js";
53
+ import { TreeCard } from "./components/TreeCard/TreeCard.js";
54
+ import { TREND_BANDS_DATASET, TREND_HOVER_PARAM, TREND_LATEST_DATASET, TREND_PERIODS_DATASET, TREND_REFERENCE_DATASET, TREND_TABLE_DATASET, TREND_X_TICKS_PARAM, buildTrendPlotSpec } from "./components/TrendCard/TrendCard.chart.js";
55
+ import { DEFAULT_TREND_LABELS, TREND_OTHER_KEY, bandAt, buildLatestRows, buildPeriodRows, buildTrendChartDescription, buildTrendDescription, buildTrendInsight, buildTrendTooltip, createTrendFormatters, deriveTrendDelta, deriveTrendSpan, deriveTrendState, normalizeSeries, resolveBands, resolveSeriesColorMode, resolveTrendLabels, seriesColorAt, trendAxisGranularity } from "./components/TrendCard/TrendCard.model.js";
56
+ import { TrendCard } from "./components/TrendCard/TrendCard.js";
57
+ export { ANOMALY_HOVER_PARAM, ANOMALY_PERIODS_DATASET, ANOMALY_SPAN_DATASET, ANOMALY_TABLE_DATASET, ANOMALY_X_TICKS_PARAM, AnomalyCard, ArcTooltipRows, ArcVegaChart, CHART_AXES_DATASET, CHART_HOVER_PARAM, CHART_OTHER_KEY, CHART_SERIES_NAMES_PARAM, CHART_TABLE_DATASET, CHART_TABLE_ROW_CAP, CHART_TYPES, CHART_TYPE_ORDER, CHART_X_TICKS_PARAM, COMPARISON_HOVER_PARAM, COMPARISON_OTHER_KEY, COMPARISON_REFERENCE_DATASET, COMPARISON_TABLE_DATASET, COMPARISON_ZERO_DATASET, CONFIDENCE_BOUNDS, ChartCard, ComparisonCard, DEFAULT_ANOMALY_LABELS, DEFAULT_CHART_LABELS, DEFAULT_COMPARISON_LABELS, DEFAULT_FORECAST_LABELS, DEFAULT_HIGHLIGHT_LABELS, DEFAULT_INSIGHT_LABELS, DEFAULT_METRIC_LABELS, DEFAULT_PERCENTILE_THRESHOLDS, DEFAULT_PROFILE_LABELS, DEFAULT_PROGRESS_LABELS, DEFAULT_REPORT_BANDS, DEFAULT_REPORT_LABELS, DEFAULT_RESIDUAL_TOLERANCE, DEFAULT_SANKEY_LABELS, DEFAULT_SEVERITY_THRESHOLDS, DEFAULT_SIGMA_THRESHOLDS, DEFAULT_STATUS_LABELS, DEFAULT_TABLE_LABELS, DEFAULT_TARGET_LABELS, DEFAULT_TREE_LABELS, DEFAULT_TREND_LABELS, FORECAST_BOUNDARY_DATASET, FORECAST_HOVER_PARAM, FORECAST_INTERVAL_DATASET, FORECAST_LANDING_DATASET, FORECAST_PERIODS_DATASET, FORECAST_REFERENCE_DATASET, FORECAST_REGION_DATASET, FORECAST_REGION_END_PARAM, FORECAST_REGION_START_PARAM, FORECAST_TABLE_DATASET, FORECAST_X_TICKS_PARAM, ForecastCard, HAIRLINE_PX, HIGHLIGHT_BAND_DATASET, HIGHLIGHT_DRIVERS_DATASET, HIGHLIGHT_DRIVER_HOVER_PARAM, HIGHLIGHT_ENDPOINTS_DATASET, HIGHLIGHT_END_PARAM, HIGHLIGHT_HOVER_PARAM, HIGHLIGHT_INSIDE_DATASET, HIGHLIGHT_OUTSIDE_DATASET, HIGHLIGHT_PEERS_DATASET, HIGHLIGHT_PEER_HOVER_PARAM, HIGHLIGHT_START_PARAM, HIGHLIGHT_TABLE_DATASET, HIGHLIGHT_TYPICAL_DATASET, HIGHLIGHT_X_TICKS_PARAM, HIGHLIGHT_ZERO_DATASET, HighlightCard, INSIGHT_FLAG_PARAM, INSIGHT_HOVER_PARAM, INSIGHT_INTERVAL_DATASET, INSIGHT_POINTS_DATASET, INSIGHT_STRIP_DATASET, INSIGHT_X_TICKS_PARAM, InsightCard, MAX_BAR_HEIGHT, MAX_DRIVER_BAR_HEIGHT, METRIC_CONTEXT_DATASET, METRIC_HIGHLIGHT_DATASET, METRIC_HIGHLIGHT_END_PARAM, METRIC_HIGHLIGHT_POINTS_DATASET, METRIC_HIGHLIGHT_ROWS_DATASET, METRIC_HIGHLIGHT_START_PARAM, METRIC_HOVER_PARAM, METRIC_LATEST_DATASET, METRIC_PREVIOUS_KEY, METRIC_REFERENCE_DATASET, METRIC_TREND_DATASET, METRIC_X_TICKS_PARAM, MISSING_VALUE, MetricCard, PROFILE_AXES_DATASET, PROFILE_CELLS_DATASET, PROFILE_HOVER_PARAM, PROFILE_RINGS_DATASET, PROGRESS_COMPLETED_DATASET, PROGRESS_DUE_DATASET, PROGRESS_FINISH_DATASET, PROGRESS_GAP_DATASET, PROGRESS_HOVER_PARAM, PROGRESS_IDEAL_DATASET, PROGRESS_LATEST_DATASET, PROGRESS_PROJECTION_DATASET, PROGRESS_SCOPE_DATASET, PROGRESS_X_TICKS_PARAM, ProfileCard, ProgressCard, RADAR_MAX_AXES, RADAR_MAX_SERIES, RADAR_MIN_AXES, RADAR_RING_FRACTIONS, REPORT_BANDS_DATASET, REPORT_BOUNDS_DATASET, REPORT_MAX_BAR_HEIGHT, REPORT_MAX_PARAM, REPORT_MIN_PARAM, REPORT_OTHER_KEY, REPORT_TABLE_DATASET, RIBBON_SAMPLES, ReportCard, SANKEY_HOVER_PARAM, SANKEY_MAX_IDENTITY, SANKEY_MIN_FLOWS, SANKEY_MIN_STAGES, SANKEY_NODES_DATASET, SANKEY_NODE_HOVER_PARAM, SANKEY_RIBBONS_DATASET, SANKEY_SELECTED_PARAM, STATUS_AXIS_ROW_PX, STATUS_CELL_GAP_MAX_PX, STATUS_CELL_GAP_MIN_PX, STATUS_CELL_GAP_RATIO, STATUS_HOVER_PARAM, STATUS_LEVELS, STATUS_MAX_PARAM, STATUS_MIN_CELL_PX, STATUS_MIN_PARAM, STATUS_SEVERITY, STATUS_TABLE_DATASET, STATUS_WINDOW_DATASET, STATUS_X_TICKS_PARAM, SankeyCard, StatusCard, TABLE_TREND_DATASET, TABLE_TREND_HOVER_PARAM, TABLE_TREND_LATEST_DATASET, TARGET_ACTUAL_DATASET, TARGET_BOUNDS_DATASET, TARGET_LABEL_ROW_PX, TARGET_MARKERS_DATASET, TARGET_MARKER_PARAM, TARGET_MAX_PARAM, TARGET_MIN_PARAM, TARGET_PROJECTION_DATASET, TREE_DEPTH_STEPS, TREE_HOVER_PARAM, TREE_MAX_BAR_HEIGHT, TREE_OTHER_KEY, TREE_RESIDUAL_KEY, TREE_TABLE_DATASET, TREE_TOTAL_PARAM, TREE_ZERO_DATASET, TREND_BANDS_DATASET, TREND_HOVER_PARAM, TREND_LATEST_DATASET, TREND_OTHER_KEY, TREND_PERIODS_DATASET, TREND_REFERENCE_DATASET, TREND_TABLE_DATASET, TREND_X_TICKS_PARAM, TableCard, TargetCard, TreeCard, TrendCard, VEGA_WARN, anomalyAxisGranularity, anomalyColorFor, anomalyPolarityFor, anomalyShapeFor, arcEmbedOptions, arcVegaConfig, axisGranularity, bandAt, buildAnomalyChartDescription, buildAnomalyDescription, buildAnomalyExplanation, buildAnomalyInsight, buildAnomalyPeriodRows, buildAnomalyPlotSpec, buildAnomalySpanRows, buildAnomalyTooltip, buildChartDescription, buildChartPlotDescription, buildChartSpec, buildChartTableModel, buildComparisonChartDescription, buildComparisonDescription, buildComparisonPlotSpec, buildContextDescription, buildDriverRows, buildDriversDescription, buildForecastBoundaryRows, buildForecastChartDescription, buildForecastDescription, buildForecastInsight, buildForecastLandingRows, buildForecastPeriodRows, buildForecastPlotSpec, buildForecastRegionRows, buildForecastTooltip, buildHighlightAnalysisInsight, buildHighlightContextDatasets, buildHighlightContextSpec, buildHighlightDatasets, buildHighlightDescription, buildHighlightDetails, buildHighlightDriversSpec, buildHighlightInsight, buildHighlightPeersSpec, buildInsightChartDescription, buildInsightDescription, buildInsightProvenance, buildInsightSparkSpec, buildInsightStripSpec, buildLatestRows, buildMetricChartDescription, buildMetricDescription, buildMetricTrendSpec, buildPeerVerdict, buildPeersDescription, buildPeriodRows, buildProfileChartDescription, buildProfileDescription, buildProfilePlotSpec, buildProgressBurnUpSpec, buildProgressChartDescription, buildProgressDescription, buildProgressExplanation, buildProgressHeadline, buildProgressReadingRows, buildProgressStageRows, buildRadarWebRows, buildRampBuckets, buildReportBulletSpec, buildReportChartDescription, buildReportDescription, buildSankeyChartDescription, buildSankeyDescription, buildSankeyInsight, buildSankeyPlotSpec, buildStageBarLabel, buildStatusChartDescription, buildStatusDescription, buildStatusDetailRows, buildStatusExplanation, buildStatusIncidentRows, buildStatusStrip, buildStatusTimelineSpec, buildTableDescription, buildTableInsight, buildTableTrendSpec, buildTargetBulletSpec, buildTargetChartDescription, buildTargetDescription, buildTargetDetailRows, buildTargetExplanation, buildTree, buildTreeBarsSpec, buildTreeChartDescription, buildTreeDescription, buildTrendChartDescription, buildTrendDescription, buildTrendInsight, buildTrendPlotSpec, buildTrendTooltip, buildTypicalRows, chartSeriesColorAt, columnId, columnValueFormat, comparisonNeedsZero, comparisonOrientation, comparisonUsesFrom, createAnomalyFormatters, createChartFormatters, createComparisonFormatters, createForecastFormatters, createHighlightFormatters, createInsightFormatters, createMetricFormatters, createProfileFormatters, createProgressFormatters, createReportFormatters, createSankeyFormatters, createStatusFormatters, createTargetFormatters, createTreeFormatters, createTrendFormatters, dayDiff, deltaPolarity, deriveAnomalyStanding, deriveAnomalyState, deriveChartState, deriveComparisonDelta, deriveComparisonState, deriveDelta, deriveElapsed, deriveForecastCrossing, deriveForecastDelta, deriveForecastOutlook, deriveForecastProjection, deriveForecastState, deriveHighlightDelta, deriveHighlightState, deriveIncidents, deriveInsightPolarity, deriveInsightSeverity, deriveInsightState, deriveMetricState, derivePeers, deriveProfileHighlights, deriveProfileState, deriveProgressRun, deriveProgressStages, deriveProgressState, deriveReportDelta, deriveReportState, deriveSankeyHighlights, deriveSankeyState, deriveStatusRun, deriveStatusState, deriveTableState, deriveTarget, deriveTargetDelta, deriveTargetProgress, deriveTargetState, deriveTreeDelta, deriveTreeState, deriveTrendDelta, deriveTrendSpan, deriveTrendState, describeComparisons, describeResolution, findBand, forecastAxisGranularity, formatDate, formatDateRange, formatDelta, formatDuration, formatInsightX, formatNumber, formatPeriod, formatStripCell, formatValuePair, getLoadedEngine, hasEnoughData, highlightSegmentsToText, inferFieldType, inferGranularity, inferInsightXType, insightAxisGranularity, insightConfidenceLevel, insightFormatIsPercent, insightSegmentsToText, layoutSankey, loadEngine, missingChartFields, nextSort, normalizeAnomalies, normalizeBands, normalizeChartData, normalizeComparisons, normalizeCriteria, normalizeDrivers, normalizeForecast, normalizeHighlightSeries, normalizeHistory, normalizeInsight, normalizeItems, normalizeProfile, normalizeSankey, normalizeSeries, normalizeTable, normalizeTrend, normalizeTrendPoints, paceWord, parseArcNumberFormat, parseArcTimeFormat, periodDays, profileNeedsRings, reachesTarget, readChartTokens, registerArcFormatters, resolveAnomalyLabels, resolveBands, resolveChartColorMode, resolveChartLabels, resolveComparison, resolveComparisonLabels, resolveComparisonScale, resolveForecastLabels, resolveHighlight, resolveHighlightLabels, resolveHighlightWindow, resolveInsightLabels, resolveInstant, resolveMetricLabels, resolvePeriod, resolveProfileLabels, resolveProgressLabels, resolveReportLabels, resolveSankeyLabels, resolveScore, resolveSeriesColorMode, resolveStatusHold, resolveStatusLabels, resolveStatusWindow, resolveStep, resolveTableLabels, resolveTargetLabels, resolveTreeLabels, resolveTrendLabels, sankeyInsightToText, seriesColorAt, statusHue, statusLevelBreakdown, statusStepKey, summarizeTrend, timeZoneOffsetMs, treeBarColor, trendAxisGranularity, trendTimeFormat, useArcEngine, useArcTooltipHandler, useChartTokens, zonedDayStart, zonedMidnight, zonedParts };
@@ -0,0 +1,24 @@
1
+ import { ArcVegaSurfaceProps } from "./ArcVegaSurface.js";
2
+ import { ArcEngine } from "./load.js";
3
+ import { ReactNode } from "react";
4
+ //#region src/lib/vega/ArcVegaChart.d.ts
5
+ /**
6
+ * The engine, or `null` until its lazy chunk resolves. Synchronous after the
7
+ * first resolution, so only the very first chart on a page shows a fallback.
8
+ */
9
+ declare function useArcEngine(): ArcEngine | null;
10
+ interface ArcVegaChartProps extends ArcVegaSurfaceProps {
11
+ /** Rendered in place of the chart until the engine chunk has loaded — a `Skeleton` shaped like the plot. */
12
+ fallback?: ReactNode;
13
+ }
14
+ /**
15
+ * An Arc-branded Vega-Lite chart for consumers with a chart this package does
16
+ * not ship: pass a structural spec (named datasets, `arcVegaConfig` inside)
17
+ * and `arcEmbedOptions`, push rows through `datasets`, size through `width` /
18
+ * `height`, and read selections through `onSignal`. The engine loads lazily;
19
+ * `fallback` holds the space until it does. Engine-free at module scope, so
20
+ * it is safe to import anywhere, including server-rendered trees.
21
+ */
22
+ declare const ArcVegaChart: import("react").ForwardRefExoticComponent<ArcVegaChartProps & import("react").RefAttributes<HTMLDivElement>>;
23
+ //#endregion
24
+ export { ArcVegaChart, ArcVegaChartProps, useArcEngine };
@@ -0,0 +1,42 @@
1
+ import { getLoadedEngine, loadEngine } from "./load.js";
2
+ import { forwardRef, useEffect, useState } from "react";
3
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
4
+ //#region src/lib/vega/ArcVegaChart.tsx
5
+ /**
6
+ * The engine, or `null` until its lazy chunk resolves. Synchronous after the
7
+ * first resolution, so only the very first chart on a page shows a fallback.
8
+ */
9
+ function useArcEngine() {
10
+ const [engine, setEngine] = useState(getLoadedEngine);
11
+ useEffect(() => {
12
+ if (engine) return;
13
+ let cancelled = false;
14
+ loadEngine().then((loaded) => {
15
+ if (!cancelled) setEngine(loaded);
16
+ }, () => {});
17
+ return () => {
18
+ cancelled = true;
19
+ };
20
+ }, [engine]);
21
+ return engine;
22
+ }
23
+ /**
24
+ * An Arc-branded Vega-Lite chart for consumers with a chart this package does
25
+ * not ship: pass a structural spec (named datasets, `arcVegaConfig` inside)
26
+ * and `arcEmbedOptions`, push rows through `datasets`, size through `width` /
27
+ * `height`, and read selections through `onSignal`. The engine loads lazily;
28
+ * `fallback` holds the space until it does. Engine-free at module scope, so
29
+ * it is safe to import anywhere, including server-rendered trees.
30
+ */
31
+ const ArcVegaChart = forwardRef(({ fallback = null, ...rest }, ref) => {
32
+ const engine = useArcEngine();
33
+ if (!engine) return /* @__PURE__ */ jsx(Fragment$1, { children: fallback });
34
+ const Surface = engine.ArcVegaSurface;
35
+ return /* @__PURE__ */ jsx(Surface, {
36
+ ref,
37
+ ...rest
38
+ });
39
+ });
40
+ ArcVegaChart.displayName = "ArcVegaChart";
41
+ //#endregion
42
+ export { ArcVegaChart, useArcEngine };
@@ -0,0 +1,13 @@
1
+ import { UseArcVegaParams } from "./useArcVega.js";
2
+ import { ComponentPropsWithoutRef } from "react";
3
+ //#region src/lib/vega/ArcVegaSurface.d.ts
4
+ interface ArcVegaSurfaceProps extends Omit<UseArcVegaParams, "ref">, Omit<ComponentPropsWithoutRef<"div">, "children" | "onError"> {}
5
+ /**
6
+ * The element Vega renders into, driven by `useArcVega`. Engine-bound — this
7
+ * module imports react-vega and vega statically — so components never import
8
+ * it directly: they render `ArcVegaChart`, which loads this through the lazy
9
+ * engine chunk and shows a fallback until it lands.
10
+ */
11
+ declare const ArcVegaSurface: import("react").ForwardRefExoticComponent<ArcVegaSurfaceProps & import("react").RefAttributes<HTMLDivElement>>;
12
+ //#endregion
13
+ export { ArcVegaSurface, ArcVegaSurfaceProps };
@@ -0,0 +1,38 @@
1
+ import { useArcVega } from "./useArcVega.js";
2
+ import { forwardRef, useCallback, useRef } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/lib/vega/ArcVegaSurface.tsx
5
+ /**
6
+ * The element Vega renders into, driven by `useArcVega`. Engine-bound — this
7
+ * module imports react-vega and vega statically — so components never import
8
+ * it directly: they render `ArcVegaChart`, which loads this through the lazy
9
+ * engine chunk and shows a fallback until it lands.
10
+ */
11
+ const ArcVegaSurface = forwardRef(({ spec, options, datasets, description, width, height, signals, onSignal, onEmbed, onError, ...rest }, forwardedRef) => {
12
+ const innerRef = useRef(null);
13
+ const setRef = useCallback((node) => {
14
+ innerRef.current = node;
15
+ if (typeof forwardedRef === "function") forwardedRef(node);
16
+ else if (forwardedRef) forwardedRef.current = node;
17
+ }, [forwardedRef]);
18
+ useArcVega({
19
+ ref: innerRef,
20
+ spec,
21
+ options,
22
+ datasets,
23
+ description,
24
+ width,
25
+ height,
26
+ signals,
27
+ onSignal,
28
+ onEmbed,
29
+ onError
30
+ });
31
+ return /* @__PURE__ */ jsx("div", {
32
+ ref: setRef,
33
+ ...rest
34
+ });
35
+ });
36
+ ArcVegaSurface.displayName = "ArcVegaSurface";
37
+ //#endregion
38
+ export { ArcVegaSurface };
@@ -0,0 +1,156 @@
1
+ //#region src/lib/vega/axisTicks.ts
2
+ /** Shared with the axis's labelLimit expression; long labels are ellipsized. */
3
+ const AXIS_LABEL_LIMIT_EXPR = "max(8, min(80, width / 2 - 12))";
4
+ const LABEL_GAP_PX = 12;
5
+ const SAME_POSITION_PX = .5;
6
+ function labelLimitFor(width) {
7
+ return Math.max(8, Math.min(80, width / 2 - 12));
8
+ }
9
+ function measureLabel(text, limit) {
10
+ return Math.min(limit, Array.from(text).reduce((sum, char) => sum + (char.charCodeAt(0) > 255 ? 11 : 7), 0));
11
+ }
12
+ /**
13
+ * Where a domain value lands on the axis, in plot pixels from the left edge —
14
+ * linear between the domain ends for a continuous domain, the band centre for
15
+ * a discrete one. `null` when the value is not on the axis.
16
+ */
17
+ function positionOf(value, domain, width, discrete) {
18
+ if (discrete) {
19
+ const index = domain.findIndex((entry) => String(entry) === String(value));
20
+ return index < 0 ? null : (index + .5) * width / domain.length;
21
+ }
22
+ const first = +domain[0];
23
+ const last = +domain[domain.length - 1];
24
+ const numeric = +value;
25
+ if (!Number.isFinite(numeric)) return null;
26
+ if (last === first) return 0;
27
+ return width * (numeric - first) / (last - first);
28
+ }
29
+ function samePosition(a, b) {
30
+ return a != null && b != null && Math.abs(a - b) < SAME_POSITION_PX;
31
+ }
32
+ function resolveAnchors(anchors) {
33
+ const present = (anchors ?? []).filter((anchor) => anchor != null && (typeof anchor !== "number" || Number.isFinite(anchor)));
34
+ if (present.length === 0) return null;
35
+ return {
36
+ start: present[0],
37
+ end: present[present.length - 1]
38
+ };
39
+ }
40
+ /**
41
+ * How a highlight's bound labels sit: the start label ends at its tick and the
42
+ * end label begins at its tick, so the two flank the highlighted band and a
43
+ * narrow band cannot make them collide. A label that would leave the plot
44
+ * flips inward instead.
45
+ */
46
+ function anchorAlign(kind, position, labelWidth, width) {
47
+ if (kind === "start") return position - labelWidth < 0 ? "left" : "right";
48
+ return position + labelWidth > width ? "right" : "left";
49
+ }
50
+ function boxFor(value, position, align, labelWidth) {
51
+ const left = align === "left" ? position : align === "right" ? position - labelWidth : position - labelWidth / 2;
52
+ return {
53
+ value,
54
+ position,
55
+ left,
56
+ right: left + labelWidth
57
+ };
58
+ }
59
+ function collides(box, kept) {
60
+ return kept.some((other) => box.left < other.right + LABEL_GAP_PX && other.left < box.right + LABEL_GAP_PX);
61
+ }
62
+ /**
63
+ * Ticks for an axis with a highlighted window: the window's bounds come first
64
+ * (the end bound wins when even flanking cannot separate the two), then the
65
+ * domain ends wherever their labels still fit. Interior labels are not added —
66
+ * on a tile the highlighted period is the only interior date worth naming.
67
+ */
68
+ function selectAnchoredTicks(domain, width, discrete, formatLabel, anchors) {
69
+ const limit = labelLimitFor(width);
70
+ const kept = [];
71
+ const place = (value, align) => {
72
+ const position = positionOf(value, domain, width, discrete);
73
+ if (position == null || kept.some((box) => samePosition(box.position, position))) return;
74
+ const labelWidth = measureLabel(formatLabel(value), limit);
75
+ const box = boxFor(value, position, align(position, labelWidth), labelWidth);
76
+ if (!collides(box, kept)) kept.push(box);
77
+ };
78
+ place(anchors.end, (position, labelWidth) => anchorAlign("end", position, labelWidth, width));
79
+ place(anchors.start, (position, labelWidth) => anchorAlign("start", position, labelWidth, width));
80
+ place(domain[0], () => "left");
81
+ place(domain[domain.length - 1], () => "right");
82
+ return kept.sort((a, b) => a.position - b.position).map((box) => box.value);
83
+ }
84
+ /**
85
+ * Keep both ends of an x domain and fit evenly spaced interior labels between
86
+ * them. Called by a Vega expression, so data and view-width changes update
87
+ * the existing axis without rebuilding the chart.
88
+ *
89
+ * The 11px guide font gets a conservative character-width budget. First and
90
+ * last labels face inward; intermediate labels are centered. Discrete domains
91
+ * sample real categories in their original order, continuous domains interpolate.
92
+ *
93
+ * With `anchors` (a highlighted window's `[start, end]`), the window's bounds
94
+ * are labelled instead of evenly spaced dates — see `selectAnchoredTicks` —
95
+ * and `axisLabelAlign` gives each label the matching alignment.
96
+ */
97
+ function selectAxisTicks(domain, width, discrete, formatLabel, anchors) {
98
+ if (!domain.length) return [];
99
+ const first = domain[0];
100
+ const last = domain[domain.length - 1];
101
+ if (domain.length === 1 || !discrete && +first === +last) return [first];
102
+ if (!Number.isFinite(width) || width <= 0) return [first, last];
103
+ const resolvedAnchors = resolveAnchors(anchors);
104
+ if (resolvedAnchors) return selectAnchoredTicks(domain, width, discrete, formatLabel, resolvedAnchors);
105
+ const labelLimit = labelLimitFor(width);
106
+ const labelWidth = (text) => measureLabel(text, labelLimit);
107
+ const span = discrete ? width * (domain.length - 1) / domain.length : width;
108
+ const maxCount = Math.min(12, Math.max(2, Math.floor(span / 40) + 1), discrete ? domain.length : Infinity);
109
+ for (let count = maxCount; count >= 2; count--) {
110
+ const ticks = [];
111
+ const labels = /* @__PURE__ */ new Set();
112
+ let previousRight = -Infinity;
113
+ let fits = true;
114
+ for (let index = 0; index < count; index++) {
115
+ const fraction = index / (count - 1);
116
+ const domainIndex = Math.round(fraction * (domain.length - 1));
117
+ const value = index === 0 ? first : index === count - 1 ? last : discrete ? domain[domainIndex] : +first + (+last - +first) * fraction;
118
+ const position = discrete ? span * domainIndex / (domain.length - 1) : span * fraction;
119
+ const text = formatLabel(value);
120
+ const size = labelWidth(text);
121
+ const left = index === 0 ? position : index === count - 1 ? position - size : position - size / 2;
122
+ if (left - previousRight < LABEL_GAP_PX || count > 2 && labels.has(text)) {
123
+ fits = false;
124
+ break;
125
+ }
126
+ ticks.push(value);
127
+ labels.add(text);
128
+ previousRight = left + size;
129
+ }
130
+ if (fits) return ticks;
131
+ }
132
+ return [first, last];
133
+ }
134
+ /**
135
+ * The alignment of one axis label, mirroring the placement `selectAxisTicks`
136
+ * assumed when it chose the ticks: a highlighted window's start label ends at
137
+ * its tick and its end label begins at its tick (flipping inward at the plot's
138
+ * edges), the domain ends face inward, everything else is centered. Called by
139
+ * the axis's `labelAlign` expression, so the two can never disagree.
140
+ */
141
+ function axisLabelAlign(value, domain, width, discrete, formatLabel, anchors) {
142
+ if (!domain.length) return "center";
143
+ const position = positionOf(value, domain, width, discrete);
144
+ if (position == null) return "center";
145
+ const resolvedAnchors = resolveAnchors(anchors);
146
+ if (resolvedAnchors) {
147
+ const labelWidth = measureLabel(formatLabel(value), labelLimitFor(width));
148
+ if (samePosition(position, positionOf(resolvedAnchors.end, domain, width, discrete))) return anchorAlign("end", position, labelWidth, width);
149
+ if (samePosition(position, positionOf(resolvedAnchors.start, domain, width, discrete))) return anchorAlign("start", position, labelWidth, width);
150
+ }
151
+ if (samePosition(position, positionOf(domain[0], domain, width, discrete))) return "left";
152
+ if (samePosition(position, positionOf(domain[domain.length - 1], domain, width, discrete))) return "right";
153
+ return "center";
154
+ }
155
+ //#endregion
156
+ export { AXIS_LABEL_LIMIT_EXPR, axisLabelAlign, selectAxisTicks };
@@ -0,0 +1,29 @@
1
+ import { ChartTokens } from "./tokens.js";
2
+ import { Config } from "vega-lite";
3
+ //#region src/lib/vega/config.d.ts
4
+ interface ArcVegaConfigOptions {
5
+ /** BCP 47 locale baked into the default number and time formats (`compact@th-TH`). */
6
+ locale?: string;
7
+ /** IANA time zone baked into the default time format. */
8
+ timeZone?: string;
9
+ /**
10
+ * d3 locale definitions for the parts of Vega-Lite that still format through
11
+ * d3 (time units, `format` strings without a `formatType`). Per spec, never
12
+ * `vega.formatLocale`, which is global.
13
+ */
14
+ vegaLocale?: Config["locale"];
15
+ }
16
+ /**
17
+ * The Vega-Lite `config` that makes a chart an Arc chart: transparent
18
+ * background, the brand font stacks (Vega draws its own text, so the Thai
19
+ * fallback rides the stack string), a hairline solid grid on `chart-grid`,
20
+ * quiet axes and labels in the muted text role, ranges drawn from the
21
+ * `chart-*` slots, thin quiet marks, ARIA on, and the Intl-backed
22
+ * `arcNumber` / `arcTime` formatters as the default format types.
23
+ *
24
+ * Rebuild it whenever `tokens` change (a theme flip) — it is part of the spec,
25
+ * so that is the one legitimate re-embed.
26
+ */
27
+ declare function arcVegaConfig(tokens: ChartTokens, { locale, timeZone, vegaLocale }?: ArcVegaConfigOptions): Config;
28
+ //#endregion
29
+ export { ArcVegaConfigOptions, arcVegaConfig };