@object-ui/plugin-charts 17.2.0 → 17.3.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 +74 -0
- package/dist/index.js +368 -349
- package/dist/index.umd.cjs +2 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# @object-ui/plugin-charts
|
|
2
2
|
|
|
3
|
+
## 17.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9e9e9a9: `DrillDownConfig` now declares only keys a renderer reads, and `target: 'navigate'` is honoured on charts too (#3354).
|
|
8
|
+
|
|
9
|
+
**Removed — two keys no renderer has ever read.** `DrillDownConfig.view` (self-described as "reserved") and `DrillDownConfig.sort` ("default sort applied to the drill list") had zero read sites repo-wide: the drill drawer rendered its inline `object-data-table` regardless of `view`, and no widget put `sort` into the drilled table schema. Authoring either did nothing, silently. They are removed rather than implemented because nothing asked for them, and this interface is the shape the protocol's own `drillDown` declaration is being derived from (objectstack#5022) — left in place, they were about to become dead keys carrying protocol authority. Removing a declared key from a published interface is technically breaking for anyone who wrote one, but only in the sense that TypeScript now reports what was already true at runtime: the key did nothing. Per this repo's version policy the bump stays `minor` (the fixed release group tracks `@objectstack`'s major). A compile-time pin in `@object-ui/types` keeps both keys from drifting back without a reader.
|
|
10
|
+
|
|
11
|
+
**Fixed — `ObjectChart` no longer degrades `target: 'navigate'` to a drawer.** All five widgets share `DrillDownConfig`, whose `target` JSDoc promises `'navigate'` skips the in-place view and opens the object's full list page when the host provides drill navigation. `DrillDownDrawer` delivered that for the table / pivot / metric widgets, but `ObjectChart` draws its own drawer and branched on `'dialog'` only — so `'navigate'` fell through to the default side sheet, indistinguishable from `'drawer'` even with a host handler wired. The chart now routes `'navigate'` through `DrillNavigationContext.openRecordList` with the same merged filter the drawer would have used, and keeps the documented fallback: with no host navigation handler it degrades to the drawer. `'drawer'` / `'dialog'` behaviour is unchanged, and the header's "Open in list" escape hatch stays independent of `target`.
|
|
12
|
+
|
|
13
|
+
The `object-chart` registry input deliberately keeps advertising `target: 'drawer' | 'dialog'` only. `ChartDrillDownSchema` in `@objectstack/spec` declares the chart drill target as those two, strictly, and the publish-time react-page lint parses that schema against the authored literal — so listing `'navigate'` in the designer palette would offer authors a value the publish gate rejects. Widening the protocol union is a spec-side follow-up (objectstack#5435); `'navigate'` works today for any host that composes an `object-chart` schema directly.
|
|
14
|
+
|
|
15
|
+
- 524a635: `<ObjectChart>` declares `drillDown` as a registry input, so the SDUI save gate treats the segment drill as a contract prop instead of an unknown one (framework#5022).
|
|
16
|
+
|
|
17
|
+
The component has read `schema.drillDown` all along — it is what opens the drawer of underlying records when you click a bar or a slice — but the prop was declared in neither the protocol nor this registry entry. The manifest the save gate validates page JSX against is built verbatim from these `inputs`, so an author who wrote the drill got an `unknown-prop` diagnostic for a prop that works. `@objectstack/spec` now declares the shape (`ChartDrillDownSchema`, published on the react-tier `<ObjectChart>` contract); this is the renderer half.
|
|
18
|
+
|
|
19
|
+
The published input describes the six keys the spec declares — `enabled`, `filter`, `title`, `target` (`'drawer' | 'dialog'`), `columns`, `maxRows` — and deliberately not the wider `DrillDownConfig` this repo shares with the table / pivot / metric widgets: `ObjectChart` reads none of `mode` / `report` / `view` / `sort`, and does not implement `target: 'navigate'` (it renders the drawer instead — objectui#3354).
|
|
20
|
+
|
|
21
|
+
The untyped `(schema as any).drillDown` read is now typed as `DrillDownConfig`. Narrowing it to the spec's `ChartDrillDown` is left as a TODO on the version pin: `@objectstack/spec` is pinned at `^17.0.0-rc.2` here and the declaration lands in the next rc, and re-declaring the shape locally would be the fork that lets the two drift.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [18cd432]
|
|
26
|
+
- Updated dependencies [532cf8b]
|
|
27
|
+
- Updated dependencies [680080a]
|
|
28
|
+
- Updated dependencies [a7651e6]
|
|
29
|
+
- Updated dependencies [d915c47]
|
|
30
|
+
- Updated dependencies [b71fc92]
|
|
31
|
+
- Updated dependencies [65516ba]
|
|
32
|
+
- Updated dependencies [94c5b7c]
|
|
33
|
+
- Updated dependencies [ca0fa8f]
|
|
34
|
+
- Updated dependencies [34595eb]
|
|
35
|
+
- Updated dependencies [3889ffb]
|
|
36
|
+
- Updated dependencies [5781fb1]
|
|
37
|
+
- Updated dependencies [7e2406a]
|
|
38
|
+
- Updated dependencies [9e9e9a9]
|
|
39
|
+
- Updated dependencies [56409c2]
|
|
40
|
+
- Updated dependencies [042e09d]
|
|
41
|
+
- Updated dependencies [9cbcbf4]
|
|
42
|
+
- Updated dependencies [85c4c9c]
|
|
43
|
+
- Updated dependencies [fd54c3e]
|
|
44
|
+
- Updated dependencies [4eeb932]
|
|
45
|
+
- Updated dependencies [5c856ec]
|
|
46
|
+
- Updated dependencies [23018cc]
|
|
47
|
+
- Updated dependencies [53811d1]
|
|
48
|
+
- Updated dependencies [68b6a28]
|
|
49
|
+
- Updated dependencies [0554e88]
|
|
50
|
+
- Updated dependencies [d915c47]
|
|
51
|
+
- Updated dependencies [f44d872]
|
|
52
|
+
- Updated dependencies [28b2e65]
|
|
53
|
+
- Updated dependencies [509104a]
|
|
54
|
+
- Updated dependencies [825bbe3]
|
|
55
|
+
- Updated dependencies [6195841]
|
|
56
|
+
- Updated dependencies [5dd0127]
|
|
57
|
+
- Updated dependencies [06632e9]
|
|
58
|
+
- Updated dependencies [a415684]
|
|
59
|
+
- Updated dependencies [a4cff5b]
|
|
60
|
+
- Updated dependencies [175bd79]
|
|
61
|
+
- Updated dependencies [5af2852]
|
|
62
|
+
- Updated dependencies [f833d3a]
|
|
63
|
+
- Updated dependencies [a6ec93d]
|
|
64
|
+
- Updated dependencies [2a9513d]
|
|
65
|
+
- Updated dependencies [71be406]
|
|
66
|
+
- Updated dependencies [d22ae31]
|
|
67
|
+
- Updated dependencies [c7ed4c3]
|
|
68
|
+
- Updated dependencies [2409e1d]
|
|
69
|
+
- Updated dependencies [789fe3e]
|
|
70
|
+
- Updated dependencies [8d8094a]
|
|
71
|
+
- @object-ui/core@17.3.0
|
|
72
|
+
- @object-ui/components@17.3.0
|
|
73
|
+
- @object-ui/types@17.3.0
|
|
74
|
+
- @object-ui/i18n@17.3.0
|
|
75
|
+
- @object-ui/react@17.3.0
|
|
76
|
+
|
|
3
77
|
## 17.2.0
|
|
4
78
|
|
|
5
79
|
### Minor Changes
|