Commit a71ede6
feat(31-03): chartjs per-type components (8) + /auto entry (A/G2 + B)
codegen generalized from "1 source -> 6 leaves" to "1 source + 8 variant specs ->
6 leaves, each exporting the generic Chart + Line/Bar/Pie/Doughnut/PolarArea/
Radar/Scatter/Bubble". Each variant is a codegen-transformed FULL-source component
(bounded, fail-loud transform of Chart.rozie: remove the `type` prop + its $watch,
pin `type`, narrow+add registration, rename) — so every typed component carries
the FULL surface (props-type / 3 events / 8-verb handle / tooltip+fallback slots)
uniformly across all 6 targets with ZERO cross-framework forwarding ceremony
(strictly richer than thin wrappers, the refinement logged in 31-SPEC).
Each variant registers only its own controller set (tree-shakable). Per-leaf
`/auto` entry (`@rozie-ui/chartjs-<fw>/auto`) registers ...registerables +
re-exports the barrel — the kitchen-sink convenience. All 6 leaves now carry a
barrel index.ts (source leaves gained one; `.` export repointed). Bundled
react/solid/lit add a `src/auto.ts` tsdown entry + `./auto` package export.
Tree-shaking: generic Chart (consumer-registers, 31-02) + source-leaf per-type
imports tree-shake natively; bundled-leaf typed components currently share one
chunk (documented; per-variant chunking tracked). Guide gains a Registration &
per-type components section; comparison-doc cells flipped to ✓ (per-type +
tree-shakable registration) + datasetIdKey/fallback caveats closed.
Gates: codegen ENFORCING 11-row PASS; all 6×9 components compile 0-err; 3 bundled
leaves build (index+auto, dts) + typecheck green; pack dry-runs ship /auto+barrel+
variants; engine-examples 1382; docs 110 anchors/0 broken.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 18f9be4 commit a71ede6
79 files changed
Lines changed: 18890 additions & 165 deletions
File tree
- docs/guide
- packages/ui/chartjs
- packages
- angular
- src
- lit
- src
- react
- src
- solid
- src
- svelte
- src
- vue
- src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
163 | 149 | | |
164 | 150 | | |
165 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
32 | 59 | | |
33 | 60 | | |
34 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
0 commit comments