@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,122 @@
1
+ import { ChartTokens } from "../../lib/vega/tokens.js";
2
+ import { HighlightMark, HighlightScale, HighlightXType } from "./HighlightCard.model.js";
3
+ import { TopLevelSpec } from "vega-lite";
4
+ //#region src/components/HighlightCard/HighlightCard.chart.d.ts
5
+ /** Context plot: every reading, with `hl` and the window's `tone`. */
6
+ declare const HIGHLIGHT_TABLE_DATASET = "table";
7
+ /** Context plot: the readings outside the window with a `seg` of `before` or `after` — the gray runs. */
8
+ declare const HIGHLIGHT_OUTSIDE_DATASET = "outside";
9
+ /** Context plot: the readings inside the window — the coloured segment. */
10
+ declare const HIGHLIGHT_INSIDE_DATASET = "inside";
11
+ /** Context plot: the window's start and end readings — the two dots. */
12
+ declare const HIGHLIGHT_ENDPOINTS_DATASET = "endpoints";
13
+ /** Context plot: one row `{ start, end, tone }` — the band wash and the axis anchors. */
14
+ declare const HIGHLIGHT_BAND_DATASET = "band";
15
+ /** Peer strip: one row per compared window, `{ change, isHighlight, … }`. */
16
+ declare const HIGHLIGHT_PEERS_DATASET = "peers";
17
+ /** Peer strip: one row `{ low, high }` — the typical-range wash. */
18
+ declare const HIGHLIGHT_TYPICAL_DATASET = "typical";
19
+ /** Peer strip and drivers: one row `{ value: 0 }` — the hairline at no change. */
20
+ declare const HIGHLIGHT_ZERO_DATASET = "zero";
21
+ /** Drivers: one row per contributor, `{ key, label, value, tone, role }`. */
22
+ declare const HIGHLIGHT_DRIVERS_DATASET = "drivers";
23
+ /** Context plot: the nearest-reading hover selection. */
24
+ declare const HIGHLIGHT_HOVER_PARAM = "hover";
25
+ /** Peer strip: the hovered window. */
26
+ declare const HIGHLIGHT_PEER_HOVER_PARAM = "peer_hover";
27
+ /** Drivers: the hovered bar. */
28
+ declare const HIGHLIGHT_DRIVER_HOVER_PARAM = "driver_hover";
29
+ /** Context plot: responsive x tick values, recomputed by Vega when the domain or width changes. */
30
+ declare const HIGHLIGHT_X_TICKS_PARAM = "highlight_x_ticks";
31
+ /** Context plot: the window's snapped bounds, read from the `band` dataset — the x axis labels them. */
32
+ declare const HIGHLIGHT_START_PARAM = "highlight_start";
33
+ declare const HIGHLIGHT_END_PARAM = "highlight_end";
34
+ /** Bars stay ≤ 24px however tall the rows are. */
35
+ declare const MAX_DRIVER_BAR_HEIGHT = 24;
36
+ interface HighlightContextSpecOptions {
37
+ mark: HighlightMark;
38
+ scale: HighlightScale;
39
+ xType: HighlightXType;
40
+ height: number;
41
+ /** Draw both axes with labels — a hairline x domain and hairline y grid lines. */
42
+ axes: boolean;
43
+ /** Wire the nearest-reading hover selection and the tooltip channel. */
44
+ tooltip: boolean;
45
+ /** Tooltip titles. */
46
+ xTitle: string;
47
+ yTitle: string;
48
+ /** `arcNumber` grammar for values (`currency:THB:compact@en-US`). */
49
+ valueFormat: string;
50
+ /** `arcTime` grammar for temporal x in tooltips (`day@en-US@Asia/Bangkok`). */
51
+ timeFormat: string;
52
+ /** `arcTime` grammar for x-axis tick labels — the axis-length form. */
53
+ axisTimeFormat: string;
54
+ locale?: string;
55
+ timeZone?: string;
56
+ }
57
+ /**
58
+ * The window inside the whole series: a quiet band washes its extent, the
59
+ * readings outside it draw in the context gray, the window itself draws in its
60
+ * polarity hue, its start and end are dotted, and the x axis labels the
61
+ * window's bounds before the domain's ends. Lines may crop (`scale: "auto"`);
62
+ * areas and bars keep a zero baseline whatever `scale` says — proportional ink
63
+ * is not negotiable. Gaps stay gaps: Vega-Lite's default `invalid` handling
64
+ * breaks the path at a null reading.
65
+ */
66
+ declare function buildHighlightContextSpec(options: HighlightContextSpecOptions, tokens: ChartTokens): TopLevelSpec;
67
+ interface HighlightPeersSpecOptions {
68
+ height: number;
69
+ /** Wire the hover selection and the tooltip channel. */
70
+ tooltip: boolean;
71
+ /** Tooltip titles. */
72
+ windowTitle: string;
73
+ changeTitle: string;
74
+ /** `arcNumber` grammar for the change axis — `percent:1` for a relative comparison, the value's own format for an absolute one. */
75
+ changeFormat: string;
76
+ /** Localised title for the typical-range wash. */
77
+ typicalTitle: string;
78
+ locale?: string;
79
+ timeZone?: string;
80
+ }
81
+ /**
82
+ * Every comparable window's change on ONE shared position scale, as a strip
83
+ * plot: the typical range as a quiet wash, a hairline at no change, one thin
84
+ * tick per compared window in the context gray, and the highlighted window as
85
+ * a solid dot in its polarity hue.
86
+ *
87
+ * A strip plot, not a summary statistic, because showing the peers is the
88
+ * honest way to say "unusual" — the reader sees the spread they are being
89
+ * asked to accept, the crowd near zero and the tail this window sits in.
90
+ * Every tick is also a row in the panel's table, so nothing lives only here.
91
+ */
92
+ declare function buildHighlightPeersSpec(options: HighlightPeersSpecOptions, tokens: ChartTokens): TopLevelSpec;
93
+ interface HighlightDriversSpecOptions {
94
+ /** Bar thickness in pixels, capped at 24. Centered in each row's band. */
95
+ barHeight: number;
96
+ /** Initial plot height — rows × step. The live value rides the View API. */
97
+ height: number;
98
+ /** Wire the hover selection and the tooltip channel. */
99
+ tooltip: boolean;
100
+ /** Tooltip titles. */
101
+ driverTitle: string;
102
+ contributionTitle: string;
103
+ shareTitle: string;
104
+ /** `arcNumber` grammar for contributions — the value's own format, signed. */
105
+ valueFormat: string;
106
+ locale?: string;
107
+ timeZone?: string;
108
+ }
109
+ /**
110
+ * The window's change decomposed: one horizontal bar per contributor from a
111
+ * shared zero, positive to the right and negative to the left, in the
112
+ * diverging polarity hues. Sorted by absolute contribution upstream, so the
113
+ * biggest mover is the first row.
114
+ *
115
+ * Bars only — the names, amounts and shares are DOM text beside the plot, so
116
+ * every band has no padding and the bar centers line up with the rows that
117
+ * carry the text. A hairline at zero is always drawn: these values are signed
118
+ * by nature, and the reader must see which side of no-change each one is on.
119
+ */
120
+ declare function buildHighlightDriversSpec(options: HighlightDriversSpecOptions, tokens: ChartTokens): TopLevelSpec;
121
+ //#endregion
122
+ export { 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 };