@ember-joinery/chart 0.0.0-stage → 1.1.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.
- package/CHANGELOG.md +189 -0
- package/LICENSE.md +9 -0
- package/NOTICE +532 -0
- package/README.md +69 -2
- package/addon-main.cjs +4 -0
- package/declarations/-private/cartesian-chart.d.ts +413 -0
- package/declarations/-private/cartesian-chart.d.ts.map +1 -0
- package/declarations/-private/cartesian.d.ts +236 -0
- package/declarations/-private/cartesian.d.ts.map +1 -0
- package/declarations/-private/config.d.ts +13 -0
- package/declarations/-private/config.d.ts.map +1 -0
- package/declarations/-private/dots.d.ts +27 -0
- package/declarations/-private/dots.d.ts.map +1 -0
- package/declarations/-private/nice-ticks.d.ts +17 -0
- package/declarations/-private/nice-ticks.d.ts.map +1 -0
- package/declarations/-private/parts.d.ts +596 -0
- package/declarations/-private/parts.d.ts.map +1 -0
- package/declarations/-private/paths.d.ts +26 -0
- package/declarations/-private/paths.d.ts.map +1 -0
- package/declarations/-private/pie-chart.d.ts +244 -0
- package/declarations/-private/pie-chart.d.ts.map +1 -0
- package/declarations/-private/polar-chart.d.ts +423 -0
- package/declarations/-private/polar-chart.d.ts.map +1 -0
- package/declarations/-private/polar-geometry.d.ts +230 -0
- package/declarations/-private/polar-geometry.d.ts.map +1 -0
- package/declarations/-private/polar-parts.d.ts +315 -0
- package/declarations/-private/polar-parts.d.ts.map +1 -0
- package/declarations/-private/polar.d.ts +156 -0
- package/declarations/-private/polar.d.ts.map +1 -0
- package/declarations/-private/registry.d.ts +9 -0
- package/declarations/-private/registry.d.ts.map +1 -0
- package/declarations/-private/text-size.d.ts +13 -0
- package/declarations/-private/text-size.d.ts.map +1 -0
- package/declarations/-private/tick-interval.d.ts +35 -0
- package/declarations/-private/tick-interval.d.ts.map +1 -0
- package/declarations/components/area-chart.d.ts +16 -0
- package/declarations/components/area-chart.d.ts.map +1 -0
- package/declarations/components/bar-chart.d.ts +16 -0
- package/declarations/components/bar-chart.d.ts.map +1 -0
- package/declarations/components/chart-container.d.ts +66 -0
- package/declarations/components/chart-container.d.ts.map +1 -0
- package/declarations/components/chart-legend-content.d.ts +42 -0
- package/declarations/components/chart-legend-content.d.ts.map +1 -0
- package/declarations/components/chart-style.d.ts +19 -0
- package/declarations/components/chart-style.d.ts.map +1 -0
- package/declarations/components/chart-tooltip-content.d.ts +94 -0
- package/declarations/components/chart-tooltip-content.d.ts.map +1 -0
- package/declarations/components/dot.d.ts +22 -0
- package/declarations/components/dot.d.ts.map +1 -0
- package/declarations/components/line-chart.d.ts +16 -0
- package/declarations/components/line-chart.d.ts.map +1 -0
- package/declarations/components/pie-chart.d.ts +13 -0
- package/declarations/components/pie-chart.d.ts.map +1 -0
- package/declarations/components/radar-chart.d.ts +21 -0
- package/declarations/components/radar-chart.d.ts.map +1 -0
- package/declarations/components/radial-bar-chart.d.ts +17 -0
- package/declarations/components/radial-bar-chart.d.ts.map +1 -0
- package/declarations/components/rectangle.d.ts +32 -0
- package/declarations/components/rectangle.d.ts.map +1 -0
- package/declarations/components/sector.d.ts +47 -0
- package/declarations/components/sector.d.ts.map +1 -0
- package/declarations/index.d.ts +24 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/test-support/chart.d.ts +162 -0
- package/declarations/test-support/chart.d.ts.map +1 -0
- package/declarations/test-support/index.d.ts +3 -0
- package/declarations/test-support/index.d.ts.map +1 -0
- package/declarations/test-support/polar-chart.d.ts +62 -0
- package/declarations/test-support/polar-chart.d.ts.map +1 -0
- package/declarations/test-support.d.ts +2 -0
- package/declarations/types.d.ts +138 -0
- package/declarations/types.d.ts.map +1 -0
- package/dist/cartesian-D9hWDamz.js +1217 -0
- package/dist/cartesian-D9hWDamz.js.map +1 -0
- package/dist/cartesian-chart-BLj6Q_OB.js +1123 -0
- package/dist/cartesian-chart-BLj6Q_OB.js.map +1 -0
- package/dist/components/area-chart.js +20 -0
- package/dist/components/area-chart.js.map +1 -0
- package/dist/components/bar-chart.js +20 -0
- package/dist/components/bar-chart.js.map +1 -0
- package/dist/components/chart-container.js +54 -0
- package/dist/components/chart-container.js.map +1 -0
- package/dist/components/chart-legend-content.js +48 -0
- package/dist/components/chart-legend-content.js.map +1 -0
- package/dist/components/chart-style.js +35 -0
- package/dist/components/chart-style.js.map +1 -0
- package/dist/components/chart-tooltip-content.js +131 -0
- package/dist/components/chart-tooltip-content.js.map +1 -0
- package/dist/components/dot.js +18 -0
- package/dist/components/dot.js.map +1 -0
- package/dist/components/line-chart.js +20 -0
- package/dist/components/line-chart.js.map +1 -0
- package/dist/components/pie-chart.js +6 -0
- package/dist/components/pie-chart.js.map +1 -0
- package/dist/components/radar-chart.js +22 -0
- package/dist/components/radar-chart.js.map +1 -0
- package/dist/components/radial-bar-chart.js +20 -0
- package/dist/components/radial-bar-chart.js.map +1 -0
- package/dist/components/rectangle.js +5 -0
- package/dist/components/rectangle.js.map +1 -0
- package/dist/components/sector.js +5 -0
- package/dist/components/sector.js.map +1 -0
- package/dist/config-DnsUmxOT.js +35 -0
- package/dist/config-DnsUmxOT.js.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/parts-BWLhFFjB.js +355 -0
- package/dist/parts-BWLhFFjB.js.map +1 -0
- package/dist/pie-chart-CmDtW_Ge.js +646 -0
- package/dist/pie-chart-CmDtW_Ge.js.map +1 -0
- package/dist/polar-chart-GhgOSsH9.js +2242 -0
- package/dist/polar-chart-GhgOSsH9.js.map +1 -0
- package/dist/rectangle-Cl7tbXuZ.js +166 -0
- package/dist/rectangle-Cl7tbXuZ.js.map +1 -0
- package/dist/sector-7shQPJuQ.js +565 -0
- package/dist/sector-7shQPJuQ.js.map +1 -0
- package/dist/test-support.js +470 -0
- package/dist/test-support.js.map +1 -0
- package/dist/types.js +56 -0
- package/dist/types.js.map +1 -0
- package/package.json +117 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# @ember-joinery/chart
|
|
2
|
+
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [9728270]
|
|
8
|
+
- Updated dependencies [9728270]
|
|
9
|
+
- Updated dependencies [9728270]
|
|
10
|
+
- Updated dependencies [9728270]
|
|
11
|
+
- Updated dependencies [9728270]
|
|
12
|
+
- Updated dependencies [9728270]
|
|
13
|
+
- Updated dependencies [9728270]
|
|
14
|
+
- Updated dependencies [9728270]
|
|
15
|
+
- Updated dependencies [9728270]
|
|
16
|
+
- Updated dependencies [9728270]
|
|
17
|
+
- Updated dependencies [9728270]
|
|
18
|
+
- Updated dependencies [9728270]
|
|
19
|
+
- Updated dependencies [9728270]
|
|
20
|
+
- Updated dependencies [9728270]
|
|
21
|
+
- @ember-joinery/ember@1.1.0
|
|
22
|
+
- @ember-joinery/test-support@1.1.0
|
|
23
|
+
- @ember-joinery/primitives@1.1.0
|
|
24
|
+
|
|
25
|
+
## 1.0.1
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [2b887bf]
|
|
30
|
+
- Updated dependencies [2b887bf]
|
|
31
|
+
- Updated dependencies [2b887bf]
|
|
32
|
+
- Updated dependencies [2b887bf]
|
|
33
|
+
- Updated dependencies [2b887bf]
|
|
34
|
+
- Updated dependencies [2b887bf]
|
|
35
|
+
- Updated dependencies [2b887bf]
|
|
36
|
+
- Updated dependencies [2b887bf]
|
|
37
|
+
- @ember-joinery/primitives@1.0.1
|
|
38
|
+
- @ember-joinery/ember@1.0.1
|
|
39
|
+
- @ember-joinery/test-support@1.0.1
|
|
40
|
+
|
|
41
|
+
## 1.0.0
|
|
42
|
+
|
|
43
|
+
### Major Changes
|
|
44
|
+
|
|
45
|
+
- a73065d: `@ember-joinery/chart` is a new add-on: shadcn's charts, drawn as declarative Glimmer SVG on
|
|
46
|
+
`d3-scale` and `d3-shape` with an API shaped like recharts. `ChartContainer` takes the chart's
|
|
47
|
+
`@config` (labels, icons and colours, set as `--color-<key>` variables, light and dark) and the
|
|
48
|
+
`@initialDimension` it draws at before it is measured, and yields `AreaChart`, `BarChart` and `LineChart`, which yield recharts' parts: `XAxis`, `YAxis`,
|
|
49
|
+
`CartesianGrid`, `Area`, `Bar` and `Line` (each with `LabelList`), `ChartTooltip` and
|
|
50
|
+
`ChartLegend`. The geometry is recharts 3's (margins, nice ticks, overlapping labels dropped,
|
|
51
|
+
stacking, bar bands, curves), so a chart draws the paths recharts draws, with recharts' class
|
|
52
|
+
names. `ChartTooltipContent` and `ChartLegendContent` are shadcn's; the tooltip follows the
|
|
53
|
+
pointer and, with the accessibility layer, the arrow keys, and its `@formatter` is a function
|
|
54
|
+
that returns an entry's text or a component that draws the entry (recharts' formatter can
|
|
55
|
+
return markup). `Dot` and `ChartStyle` go with them. Its `/test-support` has `ChartHarness`,
|
|
56
|
+
`ChartTooltipHarness` and `ChartLegendHarness`. `@ember-joinery/ember`'s CSS styles the chart,
|
|
57
|
+
its tooltip and its legend. The built modules that hold code ported from recharts keep
|
|
58
|
+
recharts' MIT notice.
|
|
59
|
+
|
|
60
|
+
### Minor Changes
|
|
61
|
+
|
|
62
|
+
- a73065d: `ChartContainer` yields `PieChart`, recharts' pie chart: its `Pie` draws recharts 3's sectors,
|
|
63
|
+
with a label and a line past each one (`@label`, `true` or a component), an inner radius for a
|
|
64
|
+
donut, and a `@shape` that draws each sector with `Sector`; it yields `LabelList`, `Label` (a
|
|
65
|
+
`@content` component handed the chart's ring, for a donut's total) and `Cell`. Its tooltip shows
|
|
66
|
+
the sector under the pointer, and with the accessibility layer the arrow keys step through the
|
|
67
|
+
sectors. A bar takes the `fill` in its row and its `Cell`'s, its labels take that fill, its
|
|
68
|
+
`@shape` draws each bar with `Rectangle`, and a bar with no length is left out, as recharts'
|
|
69
|
+
are. A `ChartLegend`'s `@class` reaches its content. `ChartHarness` reads a pie's sectors, label
|
|
70
|
+
lists and label lines, and points at a sector. The guide's Charts section has the bar and pie
|
|
71
|
+
charts of shadcn's charts gallery.
|
|
72
|
+
- a73065d: `ChartContainer` yields `RadarChart` and `RadialBarChart`, recharts 3's polar charts, with
|
|
73
|
+
recharts' polar parts: `PolarGrid` (polygon or circle rings, spokes), `PolarAngleAxis` (whose
|
|
74
|
+
`@tick` takes a component), `PolarRadiusAxis` (yielding `Label`, whose `@content` component is
|
|
75
|
+
handed the chart's ring, for a total in the middle), `Radar` (with `@dot` and `@activeDot`, and
|
|
76
|
+
`[low, high]` pairs for a band) and `RadialBar` (with a `@background` track, `@cornerRadius`,
|
|
77
|
+
`@stackId`, a row's own `fill`, and `LabelList`, whose `insideStart` labels run along the bar).
|
|
78
|
+
They draw the paths recharts draws, with its class names; the tooltip follows the pointer round
|
|
79
|
+
the ring and, with the accessibility layer, the arrow keys from row to row. A bar chart's
|
|
80
|
+
tooltip opened by `@defaultIndex` or the keyboard now points at the row's tick half way down the
|
|
81
|
+
chart, as recharts' does, rather than at its bar, and a tooltip glides from row to row only
|
|
82
|
+
when the user doesn't prefer reduced motion (`@isAnimationActive`, `'auto'` by default, as
|
|
83
|
+
recharts'). `/test-support` adds `PolarChartHarness`. The guide's Charts section has the radar,
|
|
84
|
+
radial and tooltip charts of shadcn's charts gallery.
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- a53c07b: Type checks in package source use `@sindresorhus/is` (`isString`, `isFunction`, …) instead of `typeof`, and a lint rule keeps it that way. `@sindresorhus/is` is a new runtime dependency, so `ember-joinery add` now installs it into the app for most components, `icon` included. `isNumber` rejects `NaN`, so a `NaN` reaching a numeric check now takes the non-number branch.
|
|
89
|
+
- a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
|
|
90
|
+
notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
|
|
91
|
+
from the repository's root by the package's `prepack`.
|
|
92
|
+
- Updated dependencies [a73065d]
|
|
93
|
+
- Updated dependencies [a73065d]
|
|
94
|
+
- Updated dependencies [a73065d]
|
|
95
|
+
- Updated dependencies [a73065d]
|
|
96
|
+
- Updated dependencies [a73065d]
|
|
97
|
+
- Updated dependencies [a73065d]
|
|
98
|
+
- Updated dependencies [a73065d]
|
|
99
|
+
- Updated dependencies [a73065d]
|
|
100
|
+
- Updated dependencies [a73065d]
|
|
101
|
+
- Updated dependencies [a73065d]
|
|
102
|
+
- Updated dependencies [a73065d]
|
|
103
|
+
- Updated dependencies [a73065d]
|
|
104
|
+
- Updated dependencies [a73065d]
|
|
105
|
+
- Updated dependencies [a73065d]
|
|
106
|
+
- Updated dependencies [a73065d]
|
|
107
|
+
- Updated dependencies [a73065d]
|
|
108
|
+
- Updated dependencies [a73065d]
|
|
109
|
+
- Updated dependencies [a73065d]
|
|
110
|
+
- Updated dependencies [a73065d]
|
|
111
|
+
- Updated dependencies [a73065d]
|
|
112
|
+
- Updated dependencies [a73065d]
|
|
113
|
+
- Updated dependencies [a73065d]
|
|
114
|
+
- Updated dependencies [a73065d]
|
|
115
|
+
- Updated dependencies [a73065d]
|
|
116
|
+
- Updated dependencies [a73065d]
|
|
117
|
+
- Updated dependencies [a73065d]
|
|
118
|
+
- Updated dependencies [a73065d]
|
|
119
|
+
- Updated dependencies [a73065d]
|
|
120
|
+
- Updated dependencies [a73065d]
|
|
121
|
+
- Updated dependencies [a73065d]
|
|
122
|
+
- Updated dependencies [a73065d]
|
|
123
|
+
- Updated dependencies [a73065d]
|
|
124
|
+
- Updated dependencies [a73065d]
|
|
125
|
+
- Updated dependencies [a73065d]
|
|
126
|
+
- Updated dependencies [a73065d]
|
|
127
|
+
- Updated dependencies [a73065d]
|
|
128
|
+
- Updated dependencies [a73065d]
|
|
129
|
+
- Updated dependencies [17c5b5c]
|
|
130
|
+
- Updated dependencies [17c5b5c]
|
|
131
|
+
- Updated dependencies [99eab0c]
|
|
132
|
+
- Updated dependencies [a73065d]
|
|
133
|
+
- Updated dependencies [a73065d]
|
|
134
|
+
- Updated dependencies [a73065d]
|
|
135
|
+
- Updated dependencies [a73065d]
|
|
136
|
+
- Updated dependencies [a73065d]
|
|
137
|
+
- Updated dependencies [a73065d]
|
|
138
|
+
- Updated dependencies [a73065d]
|
|
139
|
+
- Updated dependencies [a73065d]
|
|
140
|
+
- Updated dependencies [a73065d]
|
|
141
|
+
- Updated dependencies [a73065d]
|
|
142
|
+
- Updated dependencies [a73065d]
|
|
143
|
+
- Updated dependencies [a73065d]
|
|
144
|
+
- Updated dependencies [a73065d]
|
|
145
|
+
- Updated dependencies [a73065d]
|
|
146
|
+
- Updated dependencies [a73065d]
|
|
147
|
+
- Updated dependencies [a73065d]
|
|
148
|
+
- Updated dependencies [a73065d]
|
|
149
|
+
- Updated dependencies [a73065d]
|
|
150
|
+
- Updated dependencies [a73065d]
|
|
151
|
+
- Updated dependencies [a73065d]
|
|
152
|
+
- Updated dependencies [a73065d]
|
|
153
|
+
- Updated dependencies [a73065d]
|
|
154
|
+
- Updated dependencies [a73065d]
|
|
155
|
+
- Updated dependencies [a73065d]
|
|
156
|
+
- Updated dependencies [a73065d]
|
|
157
|
+
- Updated dependencies [a73065d]
|
|
158
|
+
- Updated dependencies [a73065d]
|
|
159
|
+
- Updated dependencies [a73065d]
|
|
160
|
+
- Updated dependencies [a73065d]
|
|
161
|
+
- Updated dependencies [a73065d]
|
|
162
|
+
- Updated dependencies [a73065d]
|
|
163
|
+
- Updated dependencies [a73065d]
|
|
164
|
+
- Updated dependencies [a73065d]
|
|
165
|
+
- Updated dependencies [a73065d]
|
|
166
|
+
- Updated dependencies [a73065d]
|
|
167
|
+
- Updated dependencies [a73065d]
|
|
168
|
+
- Updated dependencies [a73065d]
|
|
169
|
+
- Updated dependencies [a73065d]
|
|
170
|
+
- Updated dependencies [a73065d]
|
|
171
|
+
- Updated dependencies [a73065d]
|
|
172
|
+
- Updated dependencies [a73065d]
|
|
173
|
+
- Updated dependencies [a73065d]
|
|
174
|
+
- Updated dependencies [a73065d]
|
|
175
|
+
- Updated dependencies [a73065d]
|
|
176
|
+
- Updated dependencies [a73065d]
|
|
177
|
+
- Updated dependencies [a73065d]
|
|
178
|
+
- Updated dependencies [a73065d]
|
|
179
|
+
- Updated dependencies [a73065d]
|
|
180
|
+
- Updated dependencies [a73065d]
|
|
181
|
+
- Updated dependencies [a73065d]
|
|
182
|
+
- Updated dependencies [a73065d]
|
|
183
|
+
- Updated dependencies [a73065d]
|
|
184
|
+
- Updated dependencies [a73065d]
|
|
185
|
+
- Updated dependencies [a73065d]
|
|
186
|
+
- Updated dependencies [a73065d]
|
|
187
|
+
- @ember-joinery/primitives@1.0.0
|
|
188
|
+
- @ember-joinery/ember@1.0.0
|
|
189
|
+
- @ember-joinery/test-support@1.0.0
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Joe Gaudet
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|