@object-ui/plugin-charts 17.7.0 → 18.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.
- package/CHANGELOG.md +414 -0
- package/dist/ChartRenderer.d.ts +6 -0
- package/dist/ObjectChart.d.ts +12 -9
- package/dist/index.js +693 -646
- package/dist/index.umd.cjs +2 -2
- package/dist/normalizeChartSchema.d.ts +17 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,419 @@
|
|
|
1
1
|
# @object-ui/plugin-charts
|
|
2
2
|
|
|
3
|
+
## 18.0.0
|
|
4
|
+
|
|
5
|
+
### Dependency floors
|
|
6
|
+
|
|
7
|
+
Computed from `.objectstack-sha` `06cab4849a8a`: the earliest published `@objectstack/spec` that contains it is `18.0.0`.
|
|
8
|
+
|
|
9
|
+
- `@objectstack/spec` (`devDependencies`): `^18.0.0-next.1` → `^18.0.0`
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 6f3299f: objectui moves to major 18, following `@objectstack/*` from 17 to 18 (objectui#12334). objectui's major is not a count of its own breaking changes: it tracks the major of the `@objectstack/spec` its packages depend on, so that the same major means compatible across the two projects. These packages already declare `@objectstack/*` on the 18 line (objectui#12030), so every package in the fixed release group crosses to 18 together. It is the one `major` that rule admits: objectui's own breaking changes ship as `minor`, described in their entries.
|
|
14
|
+
|
|
15
|
+
The 18 line is released from Changesets pre mode on the `next` tag (`.changeset/pre.json`), as `@objectstack/*` 18 is: these releases are `18.0.0-next.N` on the npm `next` dist-tag, and they do not move `latest`. The first `18.0.0` on `latest` comes when `@objectstack` 18 is generally available and this repository leaves pre mode.
|
|
16
|
+
|
|
17
|
+
What a consumer must do to take it is in the `@objectstack/*` 18 entry of this release (objectui#12030): move its own `@objectstack/*` packages to the 18 line at the same time.
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- fd060f0: The `object-chart` and `view:chart` registrations no longer declare `objectName`
|
|
22
|
+
required, so the page compile accepts a node whose `dataSource` binding names the
|
|
23
|
+
object, and a chart that names its object in neither place shows a hint instead
|
|
24
|
+
of an empty frame (objectui#11605).
|
|
25
|
+
|
|
26
|
+
`object-chart` has no spec row. The binding doc says a node bound by
|
|
27
|
+
`dataSource.object` needs no `objectName` of its own, and the renderer agrees:
|
|
28
|
+
`dataSource.object` lands on `objectName` before the chart reads the node. The
|
|
29
|
+
registrations still declared `required: true`, and the page compile reads them,
|
|
30
|
+
so a bound chart with no `objectName` of its own was refused with
|
|
31
|
+
`missing-required-prop` and the save failed.
|
|
32
|
+
|
|
33
|
+
**Clause-②: yes (widening)** — an `object-chart` (or `view:chart`) node that
|
|
34
|
+
names its object through `dataSource.object` and sets no `objectName` now
|
|
35
|
+
compiles and saves. A node that names its object in neither place also compiles
|
|
36
|
+
now, and the chart shows "No object named: set objectName or dataSource.object."
|
|
37
|
+
where it used to draw an empty frame with no message. A chart with inline
|
|
38
|
+
`data`, a `dataset` or a `bind` path shows no hint and renders as before. The
|
|
39
|
+
published `objectName` inputs now carry a description that says the binding can
|
|
40
|
+
supply them.
|
|
41
|
+
- 96fcf30: **Clause-②: yes (an export widens, and an accept set narrows)**
|
|
42
|
+
|
|
43
|
+
A chart's value axis over a count now draws whole-number ticks (objectui#11681). Dashboard charts over a `count` measure ("Tasks by Status", "Projects by Health", "Invoices by Month") used to read 0.5, 0.8, 1.5 or 2.3 on their value axis. The dataset answer states each measure column's aggregate (`fields[].aggregate`, from `@objectstack/spec` 18). The chart now carries it to the axis, and an axis whose series all plot `count` or `count_distinct` sets `allowDecimals: false`. Any other measure on the axis keeps the previous ticks, so a sum over currency keeps its decimals. Every cartesian value axis is covered, including the horizontal-bar value axis that runs across the plot. Each side of a dual-axis chart decides for itself.
|
|
44
|
+
|
|
45
|
+
- `@object-ui/core` (widens): `buildChartSeries` copies a result field's `aggregate` onto the series it derives. `ChartResultField` and `ChartSeriesBinding` gain an optional `aggregate`. `INTEGER_AGGREGATES` and `isIntegerAggregate` are new exports.
|
|
46
|
+
- `@object-ui/plugin-dashboard`: the dataset widget keeps the aggregate on the series it builds. That includes the comparison overlay and the series a dimensionless chart transposes, which states an aggregate only when every measure shares it.
|
|
47
|
+
- `@object-ui/plugin-charts` (widens): the `dataKey` arm of `ChartRendererProps.schema.series` and `NormalizedSeries` (carried by the exported `NormalizedChartSchema`) gain an optional `aggregate`, read by `normalizeSeries`. The accept set only widens: nothing that compiled before is refused. The member is renderer-internal.
|
|
48
|
+
- `@object-ui/types` (narrows): `aggregate` on a chart series is refused by name. FROM: `ChartDataSeriesSchema` (and so `ChartSchema.series[]`) accepted `{ name, aggregate: 'count' }` and stripped the key. TO: it refuses that series with an `invalid_type` issue at `aggregate`, and `ChartDataSeries.aggregate` is typed `?: never`. The key is internal: declare the aggregate on the dataset measure instead.
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- 82500a7: Rotated x-axis labels fit inside the chart, and the dashboard inspector's Layout fields are readable (objectui#11796).
|
|
53
|
+
|
|
54
|
+
- **Rotated category labels are no longer cut off.** When a bar, line or area chart turns its x-axis labels to fit them, each label hangs its start away from the plot. The axis used to reserve a fixed 60px for them, which counted the text width alone, so the longest labels ran past it and the chart cut off their first letters ("acklog" for Backlog, "ogress" for In Progress on a dashboard bar chart). The axis now reserves the room its longest drawn label needs at the rotation angle: more for long labels, less for short ones, with a wide glyph (Chinese, Japanese, Korean) counted a full em. Every rotated label is now shortened with an ellipsis past 12 characters, also on axes with more than five categories, where a long label used to be clipped mid-word instead. The full name stays on the bar's tooltip. Charts whose labels do not rotate keep the axis height they had.
|
|
55
|
+
- **The dashboard inspector stacks its fields.** Studio's dashboard inspector is a narrow side panel, and the dashboard form's Layout section put Columns, Gap and Refresh Interval Seconds in three columns there: a two-digit value showed one digit and the labels wrapped onto several lines. The inspector now renders every section of the form in one column, in the declared field order. Other forms keep the column layout their sections declare.
|
|
56
|
+
|
|
57
|
+
Nothing is added to either package entry: no export, prop, type member or language-pack key.
|
|
58
|
+
- d03b022: `ObjectChart` decides its missing-category-axis refusal before it fetches, so a chart that refuses reads nothing (objectui#12061).
|
|
59
|
+
|
|
60
|
+
The refusal (`chart-missing-category-axis`, objectui#8168) is drawn when an object-bound chart declares no category by any spelling (`aggregate.groupBy`, `xAxisKey`, `xAxis.field`). It was a render-time return only: the fetch ran anyway, issuing the object's `find` with no `$top` (or `aggregate` with no `groupBy`), and the rows were then discarded. Since objectui#6152 round 15, every chart list view that names no `dataset` composes that node, so each render of such a view paid for the read.
|
|
61
|
+
|
|
62
|
+
Now the refusal and the fetch read one value. A refused chart issues no `find`, no `aggregate` and no comparison query, and a data-invalidation event for its object does not start one. The refusal's code, `role="alert"` and wording are unchanged, and it is still the first paint, with no loading skeleton before it. A chart with a category fetches exactly as before. A chart that is refused at mount and later given a category (for example, a spec `xAxis` added in a designer preview) fetches at that point.
|
|
63
|
+
- 1e6d83b: Data-bound blocks title their "data source could not be resolved" panel in the page's language (objectui#12920, the family of objectui#12910). The panel shows when a block's `dataSource.view` names a view its object does not have. Each block's title now reads `@object-ui/i18n` through `useObjectTranslation`, with the `en` pack's value as the inline default, so a page with no `I18nProvider` draws the same English it drew before.
|
|
64
|
+
|
|
65
|
+
- **Plugin blocks.** `object-calendar`, `object-chart`, `object-metric`, `object-pivot`, `detail-view`, `record:related_list`, `object-form`, `embeddable-form`, `object-master-detail-form`, `record:line_items`, `object-gantt`, `object-grid`, `object-kanban`, `list-view`, `object-map` and `object-timeline` read one `element.KIND.sourceUnresolved` key per block kind. `object-metric` reads `element.number.sourceUnresolved`, the key `element:number` already reads for the same sentence. The three forms share `element.form.sourceUnresolved`. `record:related_list`'s panel for a failed `parentDataSource` read reads `element.relatedList.parentUnreadable` ("This related list’s parent record could not be read").
|
|
66
|
+
- **`@object-ui/react` panel defaults.** `ElementDataSourceErrorPanel` with no `title` reads `element.component.sourceUnresolved`, and `NoDataSourcePanel` with no `title` reads `element.component.noDataSource`. A passed `title` still wins, an empty string included. Props and markup do not change.
|
|
67
|
+
|
|
68
|
+
Clause-②: yes
|
|
69
|
+
|
|
70
|
+
The new keys in `@object-ui/i18n` widen its exported `TranslationKeys`. No prop, input or export of these packages changes.
|
|
71
|
+
- 988aa9f: Charts and dataset widgets read their object's metadata through the data source, so the widgets of one dashboard ask for one object's metadata once (objectui#13039).
|
|
72
|
+
|
|
73
|
+
The chart's category colours and dimension labels come from the bound object's field options. It read them with its own request to `/api/v1/meta/object/NAME`, outside the data source's metadata cache, so every chart over one object sent one more request for the same document. The chart now reads it through the data source's `getObjectSchema` when one is in scope: the read that its own group-by labels, the metric tile and the data table already use, and that the ObjectStack adapter joins while it is in flight. With no data source, or one that cannot answer `getObjectSchema`, the chart reads the document directly as before.
|
|
74
|
+
|
|
75
|
+
The dataset label hook in `@object-ui/react` (`useDatasetDimensionMeta`, behind `useDatasetDimensionLabels`) made the same per-widget request, one for every non-metric dataset widget on a dashboard and for the dataset report block. It now reads through the `SchemaRendererProvider`'s data source in the same way when that source answers `getObjectSchema`, and reads the document directly otherwise.
|
|
76
|
+
|
|
77
|
+
Colours, labels and dotted dimension paths resolve as they did. Nothing is added to the package entry.
|
|
78
|
+
- 5115c1f: Advanced chart axis tick labels now use the theme's muted foreground instead of recharts' default `#666`, so they stay readable on dark cards (objectui#13129). Every axis the advanced chart draws, cartesian and polar, shares one tick style.
|
|
79
|
+
- 9a4ddb2: A category x axis rotates its labels, and cuts them at 12 characters, only when the measured band cannot hold them (objectui#13241). A full-width bar chart now draws a name such as "Needs Analysis" whole and horizontal instead of "Needs Analy…"; a narrow widget whose labels do not fit keeps rotating and cutting them, with the full name on the bar's tooltip. Until the chart's width is measured, the length rule applies as before.
|
|
80
|
+
- 0253416: feat(plugin-list)!: a chart list view binds only an ADR-0021 `dataset`; the legacy inline chart axes and their `name` / `value` floors are retired on every route (objectui#6152, round 15)
|
|
81
|
+
|
|
82
|
+
Clause-②: no
|
|
83
|
+
|
|
84
|
+
**Changed (breaking for a stored chart view that names no `dataset`).** Every door refuses the
|
|
85
|
+
pre-ADR-0021 chart axes on a list view: `@objectstack/spec`'s chart block is a strict object of
|
|
86
|
+
`chartType`, `dataset`, `dimensions` and `values`, and `@object-ui/types`, `objectui validate` and the
|
|
87
|
+
platform's view write door judge by it, top-level and in the `options` bag. The renderers kept
|
|
88
|
+
reading the axes, so a chart view stored before the doors closed still drew an inline aggregate, and
|
|
89
|
+
a chart view that declared nothing was drawn from the invented fields `name` and `value`. They no
|
|
90
|
+
longer do, on every route that did: `ListView`'s chart branch and its capability gate, the object
|
|
91
|
+
page's chart view (`@object-ui/app-shell`) and `ObjectView`'s own views (`@object-ui/plugin-view`).
|
|
92
|
+
|
|
93
|
+
| stored chart block (either nesting) | what renders now | write instead |
|
|
94
|
+
| :--- | :--- | :--- |
|
|
95
|
+
| `xAxisField` / `categoryField`, `yAxisFields` / `valueField`, `aggregation` (and, on the object page, `series` and `filter` on the block) | the chart's refusal: "Chart category axis required", in place of the chart; a view of another type no longer offers Chart in its view switcher | `chart: { dataset, values, dimensions }`, naming an ADR-0021 dataset of the object |
|
|
96
|
+
| no binding at all on a view whose `viewType` is `chart` | the same refusal, where a chart grouped by `name` and counting `value` used to draw | the same dataset block |
|
|
97
|
+
|
|
98
|
+
A dataset-bound chart renders as before. The refusal is `ObjectChart`'s own screen for an object-bound
|
|
99
|
+
chart that names no category axis (objectui#8168); its remedy names that component's keys, not the
|
|
100
|
+
list view's dataset block.
|
|
101
|
+
|
|
102
|
+
**Not measured: production.** The census before this change (objectui#6152 round 13) found no writer
|
|
103
|
+
and no stored row carrying these axes in any repository corpus a seat can reach, with positive
|
|
104
|
+
controls; this repository's create-view dialog writes the dataset block. Stored view and page
|
|
105
|
+
metadata in deployments was not measured. A row that carries the axes renders the refusal until it is
|
|
106
|
+
re-saved with a dataset block.
|
|
107
|
+
|
|
108
|
+
- `@object-ui/plugin-view`: an `ObjectView` kanban view no longer reads `kanban.conditionalFormatting`.
|
|
109
|
+
The list view's kanban block does not declare it, and every door that judges the block refuses it
|
|
110
|
+
by name; the view's own `conditionalFormatting` is the one place it is read. The development-only
|
|
111
|
+
flat-key warning no longer names `dateField`, `groupBy`, `groupField`, `imageField` or
|
|
112
|
+
`subtitleField`, which it told an author to move into a block that refuses them.
|
|
113
|
+
- `@object-ui/app-shell`: the object page's development-only flat-key warning no longer names the
|
|
114
|
+
twelve keys every per-kind block refuses (among them `groupField`, `imageField`, `cardFields`,
|
|
115
|
+
`xAxisField`, `yAxisFields`, `aggregation` and `series`).
|
|
116
|
+
- `@object-ui/plugin-charts`, `@object-ui/types`: comments only, where they said the list-view relays
|
|
117
|
+
still read the legacy axes.
|
|
118
|
+
- Updated dependencies [18d7b48]
|
|
119
|
+
- Updated dependencies [172acc3]
|
|
120
|
+
- Updated dependencies [f0496bd]
|
|
121
|
+
- Updated dependencies [c4c506b]
|
|
122
|
+
- Updated dependencies [9db9ff3]
|
|
123
|
+
- Updated dependencies [c096f03]
|
|
124
|
+
- Updated dependencies [d92b2a1]
|
|
125
|
+
- Updated dependencies [92f4e2b]
|
|
126
|
+
- Updated dependencies [b10c68e]
|
|
127
|
+
- Updated dependencies [bdc9049]
|
|
128
|
+
- Updated dependencies [e8c0b96]
|
|
129
|
+
- Updated dependencies [b92329c]
|
|
130
|
+
- Updated dependencies [2e818d0]
|
|
131
|
+
- Updated dependencies [fd060f0]
|
|
132
|
+
- Updated dependencies [fd060f0]
|
|
133
|
+
- Updated dependencies [8b14aec]
|
|
134
|
+
- Updated dependencies [2abec3a]
|
|
135
|
+
- Updated dependencies [9dfaca6]
|
|
136
|
+
- Updated dependencies [c000398]
|
|
137
|
+
- Updated dependencies [73b5d77]
|
|
138
|
+
- Updated dependencies [7b17705]
|
|
139
|
+
- Updated dependencies [fc3c2cc]
|
|
140
|
+
- Updated dependencies [f9f4a62]
|
|
141
|
+
- Updated dependencies [848ba0e]
|
|
142
|
+
- Updated dependencies [57d82cb]
|
|
143
|
+
- Updated dependencies [de96f3d]
|
|
144
|
+
- Updated dependencies [9ca3cac]
|
|
145
|
+
- Updated dependencies [c910630]
|
|
146
|
+
- Updated dependencies [ce464d9]
|
|
147
|
+
- Updated dependencies [e6dcd85]
|
|
148
|
+
- Updated dependencies [96fcf30]
|
|
149
|
+
- Updated dependencies [7a2c60b]
|
|
150
|
+
- Updated dependencies [834c559]
|
|
151
|
+
- Updated dependencies [22b503c]
|
|
152
|
+
- Updated dependencies [9fc68aa]
|
|
153
|
+
- Updated dependencies [d50f724]
|
|
154
|
+
- Updated dependencies [17acfbb]
|
|
155
|
+
- Updated dependencies [6be0f7a]
|
|
156
|
+
- Updated dependencies [89cc738]
|
|
157
|
+
- Updated dependencies [c0862c1]
|
|
158
|
+
- Updated dependencies [c0862c1]
|
|
159
|
+
- Updated dependencies [c0862c1]
|
|
160
|
+
- Updated dependencies [c0862c1]
|
|
161
|
+
- Updated dependencies [c0862c1]
|
|
162
|
+
- Updated dependencies [c0862c1]
|
|
163
|
+
- Updated dependencies [ded4494]
|
|
164
|
+
- Updated dependencies [d172f63]
|
|
165
|
+
- Updated dependencies [4c0de52]
|
|
166
|
+
- Updated dependencies [a80fef7]
|
|
167
|
+
- Updated dependencies [3bf8894]
|
|
168
|
+
- Updated dependencies [e06365c]
|
|
169
|
+
- Updated dependencies [1e1f09e]
|
|
170
|
+
- Updated dependencies [455c646]
|
|
171
|
+
- Updated dependencies [f34e877]
|
|
172
|
+
- Updated dependencies [f34e877]
|
|
173
|
+
- Updated dependencies [9844bbf]
|
|
174
|
+
- Updated dependencies [cef0eee]
|
|
175
|
+
- Updated dependencies [7ebff39]
|
|
176
|
+
- Updated dependencies [054fd84]
|
|
177
|
+
- Updated dependencies [5275d1f]
|
|
178
|
+
- Updated dependencies [7241a81]
|
|
179
|
+
- Updated dependencies [74add0c]
|
|
180
|
+
- Updated dependencies [aaba865]
|
|
181
|
+
- Updated dependencies [f1781be]
|
|
182
|
+
- Updated dependencies [fbad078]
|
|
183
|
+
- Updated dependencies [45d5853]
|
|
184
|
+
- Updated dependencies [4f4fc03]
|
|
185
|
+
- Updated dependencies [2312bd9]
|
|
186
|
+
- Updated dependencies [6d5eb34]
|
|
187
|
+
- Updated dependencies [c5406c2]
|
|
188
|
+
- Updated dependencies [c5406c2]
|
|
189
|
+
- Updated dependencies [d99b731]
|
|
190
|
+
- Updated dependencies [2571a3e]
|
|
191
|
+
- Updated dependencies [2a48bd4]
|
|
192
|
+
- Updated dependencies [8a55f0c]
|
|
193
|
+
- Updated dependencies [c7b30bd]
|
|
194
|
+
- Updated dependencies [20c6d35]
|
|
195
|
+
- Updated dependencies [417e245]
|
|
196
|
+
- Updated dependencies [69bca0a]
|
|
197
|
+
- Updated dependencies [023f00d]
|
|
198
|
+
- Updated dependencies [158c75d]
|
|
199
|
+
- Updated dependencies [7525045]
|
|
200
|
+
- Updated dependencies [5af42db]
|
|
201
|
+
- Updated dependencies [ce991bd]
|
|
202
|
+
- Updated dependencies [3c0f806]
|
|
203
|
+
- Updated dependencies [1071393]
|
|
204
|
+
- Updated dependencies [5f75cfa]
|
|
205
|
+
- Updated dependencies [6757a93]
|
|
206
|
+
- Updated dependencies [b7cd5c8]
|
|
207
|
+
- Updated dependencies [5330038]
|
|
208
|
+
- Updated dependencies [c9fc10b]
|
|
209
|
+
- Updated dependencies [dc6d28e]
|
|
210
|
+
- Updated dependencies [c0c2f79]
|
|
211
|
+
- Updated dependencies [0665c3b]
|
|
212
|
+
- Updated dependencies [d2500d8]
|
|
213
|
+
- Updated dependencies [e723f58]
|
|
214
|
+
- Updated dependencies [82bb1d5]
|
|
215
|
+
- Updated dependencies [f3d5408]
|
|
216
|
+
- Updated dependencies [b231607]
|
|
217
|
+
- Updated dependencies [b231607]
|
|
218
|
+
- Updated dependencies [466a219]
|
|
219
|
+
- Updated dependencies [6fb281d]
|
|
220
|
+
- Updated dependencies [54159d3]
|
|
221
|
+
- Updated dependencies [fa778e6]
|
|
222
|
+
- Updated dependencies [334f0cf]
|
|
223
|
+
- Updated dependencies [c08c933]
|
|
224
|
+
- Updated dependencies [92f979d]
|
|
225
|
+
- Updated dependencies [c4dd707]
|
|
226
|
+
- Updated dependencies [c4dd707]
|
|
227
|
+
- Updated dependencies [7578323]
|
|
228
|
+
- Updated dependencies [38bb373]
|
|
229
|
+
- Updated dependencies [923504f]
|
|
230
|
+
- Updated dependencies [5c2982a]
|
|
231
|
+
- Updated dependencies [97e7d4e]
|
|
232
|
+
- Updated dependencies [10aba37]
|
|
233
|
+
- Updated dependencies [5d3f437]
|
|
234
|
+
- Updated dependencies [51c661e]
|
|
235
|
+
- Updated dependencies [7af0ab3]
|
|
236
|
+
- Updated dependencies [b434f5f]
|
|
237
|
+
- Updated dependencies [9f282ef]
|
|
238
|
+
- Updated dependencies [fd4872f]
|
|
239
|
+
- Updated dependencies [f0532d8]
|
|
240
|
+
- Updated dependencies [cea429b]
|
|
241
|
+
- Updated dependencies [3092aca]
|
|
242
|
+
- Updated dependencies [82e5f53]
|
|
243
|
+
- Updated dependencies [d81e460]
|
|
244
|
+
- Updated dependencies [8106db1]
|
|
245
|
+
- Updated dependencies [068a540]
|
|
246
|
+
- Updated dependencies [ca45c6d]
|
|
247
|
+
- Updated dependencies [093d55b]
|
|
248
|
+
- Updated dependencies [b64fda3]
|
|
249
|
+
- Updated dependencies [a8051d6]
|
|
250
|
+
- Updated dependencies [72594f2]
|
|
251
|
+
- Updated dependencies [524136e]
|
|
252
|
+
- Updated dependencies [2b06a91]
|
|
253
|
+
- Updated dependencies [6f3299f]
|
|
254
|
+
- Updated dependencies [065a1cf]
|
|
255
|
+
- Updated dependencies [f2b17c6]
|
|
256
|
+
- Updated dependencies [52d6194]
|
|
257
|
+
- Updated dependencies [23bf859]
|
|
258
|
+
- Updated dependencies [1c72d77]
|
|
259
|
+
- Updated dependencies [2b4d3f1]
|
|
260
|
+
- Updated dependencies [d75f212]
|
|
261
|
+
- Updated dependencies [37db09f]
|
|
262
|
+
- Updated dependencies [ff9df88]
|
|
263
|
+
- Updated dependencies [70e843f]
|
|
264
|
+
- Updated dependencies [caac3b2]
|
|
265
|
+
- Updated dependencies [a2225f9]
|
|
266
|
+
- Updated dependencies [5c4deb5]
|
|
267
|
+
- Updated dependencies [a8e5b73]
|
|
268
|
+
- Updated dependencies [d9d9d98]
|
|
269
|
+
- Updated dependencies [c950345]
|
|
270
|
+
- Updated dependencies [21f9577]
|
|
271
|
+
- Updated dependencies [044f231]
|
|
272
|
+
- Updated dependencies [f8267df]
|
|
273
|
+
- Updated dependencies [9b82ced]
|
|
274
|
+
- Updated dependencies [3821a3a]
|
|
275
|
+
- Updated dependencies [3eb3ec1]
|
|
276
|
+
- Updated dependencies [92c2a69]
|
|
277
|
+
- Updated dependencies [646caea]
|
|
278
|
+
- Updated dependencies [1ffd6a2]
|
|
279
|
+
- Updated dependencies [5f8ecf6]
|
|
280
|
+
- Updated dependencies [8ed7e5a]
|
|
281
|
+
- Updated dependencies [6c4d00d]
|
|
282
|
+
- Updated dependencies [db8ce2f]
|
|
283
|
+
- Updated dependencies [726d8c9]
|
|
284
|
+
- Updated dependencies [f0e760a]
|
|
285
|
+
- Updated dependencies [a5bb7ac]
|
|
286
|
+
- Updated dependencies [f78efdd]
|
|
287
|
+
- Updated dependencies [8a8bcf3]
|
|
288
|
+
- Updated dependencies [f74638c]
|
|
289
|
+
- Updated dependencies [ef71a09]
|
|
290
|
+
- Updated dependencies [8614705]
|
|
291
|
+
- Updated dependencies [619e3f7]
|
|
292
|
+
- Updated dependencies [ca7a4c3]
|
|
293
|
+
- Updated dependencies [c9e6742]
|
|
294
|
+
- Updated dependencies [f62b6ff]
|
|
295
|
+
- Updated dependencies [608033b]
|
|
296
|
+
- Updated dependencies [611566b]
|
|
297
|
+
- Updated dependencies [efa9cb4]
|
|
298
|
+
- Updated dependencies [d66d7e8]
|
|
299
|
+
- Updated dependencies [15d8ca6]
|
|
300
|
+
- Updated dependencies [378896d]
|
|
301
|
+
- Updated dependencies [9d857c9]
|
|
302
|
+
- Updated dependencies [670ea10]
|
|
303
|
+
- Updated dependencies [ff215d9]
|
|
304
|
+
- Updated dependencies [71243db]
|
|
305
|
+
- Updated dependencies [a8add5c]
|
|
306
|
+
- Updated dependencies [33ee9de]
|
|
307
|
+
- Updated dependencies [4839f5c]
|
|
308
|
+
- Updated dependencies [a23e804]
|
|
309
|
+
- Updated dependencies [c7462e7]
|
|
310
|
+
- Updated dependencies [36e2f7b]
|
|
311
|
+
- Updated dependencies [ac59073]
|
|
312
|
+
- Updated dependencies [44cb469]
|
|
313
|
+
- Updated dependencies [e058d76]
|
|
314
|
+
- Updated dependencies [c999d4c]
|
|
315
|
+
- Updated dependencies [8df2608]
|
|
316
|
+
- Updated dependencies [5483297]
|
|
317
|
+
- Updated dependencies [ed43c79]
|
|
318
|
+
- Updated dependencies [260ef71]
|
|
319
|
+
- Updated dependencies [655e897]
|
|
320
|
+
- Updated dependencies [655e897]
|
|
321
|
+
- Updated dependencies [8d80845]
|
|
322
|
+
- Updated dependencies [69a408f]
|
|
323
|
+
- Updated dependencies [d2b21a1]
|
|
324
|
+
- Updated dependencies [5ff64ef]
|
|
325
|
+
- Updated dependencies [64acb7e]
|
|
326
|
+
- Updated dependencies [4ff5b6b]
|
|
327
|
+
- Updated dependencies [473e5a0]
|
|
328
|
+
- Updated dependencies [b279016]
|
|
329
|
+
- Updated dependencies [bb6c38c]
|
|
330
|
+
- Updated dependencies [26323c4]
|
|
331
|
+
- Updated dependencies [9753811]
|
|
332
|
+
- Updated dependencies [2727527]
|
|
333
|
+
- Updated dependencies [3da39ae]
|
|
334
|
+
- Updated dependencies [bc281f4]
|
|
335
|
+
- Updated dependencies [d637be3]
|
|
336
|
+
- Updated dependencies [2cfdc99]
|
|
337
|
+
- Updated dependencies [2cfdc99]
|
|
338
|
+
- Updated dependencies [1e6d83b]
|
|
339
|
+
- Updated dependencies [1e6d83b]
|
|
340
|
+
- Updated dependencies [6058bf8]
|
|
341
|
+
- Updated dependencies [c219165]
|
|
342
|
+
- Updated dependencies [a7ae252]
|
|
343
|
+
- Updated dependencies [fb501bc]
|
|
344
|
+
- Updated dependencies [30083da]
|
|
345
|
+
- Updated dependencies [7f9cc37]
|
|
346
|
+
- Updated dependencies [025130c]
|
|
347
|
+
- Updated dependencies [76f91f8]
|
|
348
|
+
- Updated dependencies [ea34d9b]
|
|
349
|
+
- Updated dependencies [8aa8e3e]
|
|
350
|
+
- Updated dependencies [024b7b6]
|
|
351
|
+
- Updated dependencies [cb80001]
|
|
352
|
+
- Updated dependencies [909c64e]
|
|
353
|
+
- Updated dependencies [9e7e1a5]
|
|
354
|
+
- Updated dependencies [2493e85]
|
|
355
|
+
- Updated dependencies [d0b9648]
|
|
356
|
+
- Updated dependencies [46dbf32]
|
|
357
|
+
- Updated dependencies [a928aaa]
|
|
358
|
+
- Updated dependencies [47508f3]
|
|
359
|
+
- Updated dependencies [61ed5ad]
|
|
360
|
+
- Updated dependencies [1b94d50]
|
|
361
|
+
- Updated dependencies [6f877f1]
|
|
362
|
+
- Updated dependencies [988aa9f]
|
|
363
|
+
- Updated dependencies [1ce0711]
|
|
364
|
+
- Updated dependencies [fb85637]
|
|
365
|
+
- Updated dependencies [9f1dd79]
|
|
366
|
+
- Updated dependencies [df71568]
|
|
367
|
+
- Updated dependencies [d11174a]
|
|
368
|
+
- Updated dependencies [2d8a8b7]
|
|
369
|
+
- Updated dependencies [cbac9d7]
|
|
370
|
+
- Updated dependencies [9eb1479]
|
|
371
|
+
- Updated dependencies [74e37aa]
|
|
372
|
+
- Updated dependencies [961b69f]
|
|
373
|
+
- Updated dependencies [52907d7]
|
|
374
|
+
- Updated dependencies [f466b0a]
|
|
375
|
+
- Updated dependencies [673a71c]
|
|
376
|
+
- Updated dependencies [616df65]
|
|
377
|
+
- Updated dependencies [58798ec]
|
|
378
|
+
- Updated dependencies [8803ca5]
|
|
379
|
+
- Updated dependencies [e70c21d]
|
|
380
|
+
- Updated dependencies [4b92c5a]
|
|
381
|
+
- Updated dependencies [06be396]
|
|
382
|
+
- Updated dependencies [3650d94]
|
|
383
|
+
- Updated dependencies [7c05f21]
|
|
384
|
+
- Updated dependencies [8cd4db4]
|
|
385
|
+
- Updated dependencies [daeb77f]
|
|
386
|
+
- Updated dependencies [eb4552e]
|
|
387
|
+
- Updated dependencies [3c3115e]
|
|
388
|
+
- Updated dependencies [55e90fd]
|
|
389
|
+
- Updated dependencies [9b75509]
|
|
390
|
+
- Updated dependencies [b13ea3c]
|
|
391
|
+
- Updated dependencies [d7e9e9a]
|
|
392
|
+
- Updated dependencies [cf62edf]
|
|
393
|
+
- Updated dependencies [0253416]
|
|
394
|
+
- Updated dependencies [5d77c09]
|
|
395
|
+
- Updated dependencies [3fd8625]
|
|
396
|
+
- Updated dependencies [1473757]
|
|
397
|
+
- Updated dependencies [d73d987]
|
|
398
|
+
- Updated dependencies [12ff256]
|
|
399
|
+
- Updated dependencies [26b0bd2]
|
|
400
|
+
- Updated dependencies [26b0bd2]
|
|
401
|
+
- Updated dependencies [d328698]
|
|
402
|
+
- Updated dependencies [d328698]
|
|
403
|
+
- Updated dependencies [b4e0787]
|
|
404
|
+
- Updated dependencies [088e0f7]
|
|
405
|
+
- Updated dependencies [78b07f4]
|
|
406
|
+
- Updated dependencies [f962cdc]
|
|
407
|
+
- Updated dependencies [b403bb3]
|
|
408
|
+
- Updated dependencies [8a25fee]
|
|
409
|
+
- Updated dependencies [4016370]
|
|
410
|
+
- Updated dependencies [12dc7b4]
|
|
411
|
+
- @object-ui/types@18.0.0
|
|
412
|
+
- @object-ui/components@18.0.0
|
|
413
|
+
- @object-ui/core@18.0.0
|
|
414
|
+
- @object-ui/i18n@18.0.0
|
|
415
|
+
- @object-ui/react@18.0.0
|
|
416
|
+
|
|
3
417
|
## 17.7.0
|
|
4
418
|
|
|
5
419
|
### Minor Changes
|
package/dist/ChartRenderer.d.ts
CHANGED
|
@@ -46,6 +46,11 @@ export interface ChartRendererProps {
|
|
|
46
46
|
* `chartType` stays on the `dataKey` arm alone: it is the renderer's
|
|
47
47
|
* INTERNAL spelling of `type`, and it wins when an entry writes both.
|
|
48
48
|
* Pinned at compile time in `ChartRenderer.seriesTypeArm-8086.test.ts`.
|
|
49
|
+
*
|
|
50
|
+
* `aggregate` is internal too, on the `dataKey` arm alone (objectui#11681):
|
|
51
|
+
* the measure's aggregate, carried by `buildChartSeries` from the dataset
|
|
52
|
+
* answer, so a value axis over counts draws whole-number ticks. The
|
|
53
|
+
* authoring face refuses it by name (`ChartDataSeriesSchema.aggregate`).
|
|
49
54
|
*/
|
|
50
55
|
series?: Array<{
|
|
51
56
|
dataKey: string;
|
|
@@ -58,6 +63,7 @@ export interface ChartRendererProps {
|
|
|
58
63
|
stack?: string;
|
|
59
64
|
yAxis?: 'left' | 'right';
|
|
60
65
|
color?: string;
|
|
66
|
+
aggregate?: string;
|
|
61
67
|
} | {
|
|
62
68
|
name: string;
|
|
63
69
|
label?: unknown;
|
package/dist/ObjectChart.d.ts
CHANGED
|
@@ -42,10 +42,12 @@ export declare function aggregateValueKey(aggregate: {
|
|
|
42
42
|
* one layer up, on the AUTHORED list-view chart block.
|
|
43
43
|
*
|
|
44
44
|
* ⚠️ It is one layer up, not this layer. `resolveListChartBinding` reads
|
|
45
|
-
* `{ chart, options.chart }`
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
45
|
+
* `{ chart, options.chart }` — the block an author writes on a LIST VIEW, whose
|
|
46
|
+
* only binding since objectui#6152 round 15 is an ADR-0021 `dataset` (its
|
|
47
|
+
* pre-ADR-0021 `xAxisField` / `categoryField` / `yAxisFields` leg retired). By
|
|
48
|
+
* the time a schema reaches this component the relays have already translated
|
|
49
|
+
* that block into `{ dataset, dimensions, values }`, or, for a block naming no
|
|
50
|
+
* dataset, into an object-bound node naming no category, and the producers that never
|
|
49
51
|
* had such a block at all (the two dashboard surfaces, and directly authored
|
|
50
52
|
* `object-chart` metadata) compose the translated shape straight away. So the
|
|
51
53
|
* upstream resolver cannot be CALLED here — asked for `schema.chart` it would
|
|
@@ -138,11 +140,12 @@ export { extractRecords } from '@object-ui/core';
|
|
|
138
140
|
*
|
|
139
141
|
* With the anchor, a wrong VALUE TYPE on a declared key is a compile error at
|
|
140
142
|
* the producer (`xAxisKey: 42`, `series: 'x'`, `type: 'chart'`, and every
|
|
141
|
-
* `BaseSchema` member — `visible: 42`). ⚠️ A MISSPELLED key
|
|
142
|
-
* `BaseSchema`
|
|
143
|
-
* objectui#6576 accepted knowingly
|
|
144
|
-
*
|
|
145
|
-
*
|
|
143
|
+
* `BaseSchema` member — `visible: 42`). ⚠️ A MISSPELLED key was still accepted
|
|
144
|
+
* while `BaseSchema` carried `[key: string]: any` (objectui#5155), the same
|
|
145
|
+
* ceiling objectui#6576 accepted knowingly; objectui#8347 removed it, so a
|
|
146
|
+
* misspelled key in a fresh literal is refused now.
|
|
147
|
+
* `__tests__/ObjectChart.schemaAnchor-7946.test.ts` pins both halves, the
|
|
148
|
+
* flipped ceiling row included, so the anchor is not read as more than it is.
|
|
146
149
|
*/
|
|
147
150
|
export interface ObjectChartProps {
|
|
148
151
|
/**
|