@object-ui/plugin-report 14.0.0 → 14.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 +69 -0
- package/dist/index.js +252 -260
- package/dist/index.umd.cjs +2 -2
- package/dist/mergeFilters.d.ts +1 -10
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
# @object-ui/plugin-report
|
|
2
2
|
|
|
3
|
+
## 14.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 887062c: feat(dashboard): dashboard-level filters (date / region) driving multiple charts (framework#2501)
|
|
8
|
+
|
|
9
|
+
A dashboard's `dateRange` + `globalFilters` declarations are now wired end to
|
|
10
|
+
end: the filter values live as dashboard-level variables (the page variables
|
|
11
|
+
primitive, so they're also readable as `page.<name>` in widget expressions),
|
|
12
|
+
a filter bar renders above the widgets, and at render time the dashboard
|
|
13
|
+
broadcasts the active values into every bound widget's inline query —
|
|
14
|
+
`AND`-merged with the widget's own `filter`. Charts stay inline and
|
|
15
|
+
self-contained; each widget maps a filter to **its own** field.
|
|
16
|
+
|
|
17
|
+
- **`@object-ui/types`** — `globalFilters[].name` (stable filter/variable key,
|
|
18
|
+
defaults to `field`) and `DashboardWidgetSchema.filterBindings`
|
|
19
|
+
(`Record<string, string | false>`: per-widget field override / `false`
|
|
20
|
+
opt-out). Zod mirrors included. **Pending paired `@objectstack/spec`
|
|
21
|
+
alignment (framework#2501)** — same precedent as `dataset` /
|
|
22
|
+
`categoryGranularity`.
|
|
23
|
+
- **`@object-ui/core`** — new pure `dashboard-filters` module
|
|
24
|
+
(`resolveDashboardFilterDefs`, `dashboardFilterVariableDefs`,
|
|
25
|
+
`buildFilterCondition`, `buildWidgetScopedFilter`); `mergeFilters` lifted
|
|
26
|
+
from plugin-report (re-exported there unchanged). Date presets emit
|
|
27
|
+
date-macro tokens (`{30_days_ago}` …) so widgets resolve them at query time
|
|
28
|
+
like hand-authored filters.
|
|
29
|
+
- **`@object-ui/plugin-dashboard`** — `DashboardFilterBar` (date presets +
|
|
30
|
+
custom range calendar, select with static `options` or `optionsFrom`,
|
|
31
|
+
text/number inputs, reset); `DashboardRenderer` mounts a
|
|
32
|
+
`PageVariablesProvider` when filters are declared and merges the
|
|
33
|
+
widget-scoped condition into inline widgets' `filter` and dataset widgets'
|
|
34
|
+
`runtimeFilter`. Dashboards without filters render exactly as before.
|
|
35
|
+
|
|
36
|
+
Binding precedence: explicit `filterBindings` string/`false` → legacy
|
|
37
|
+
`targetWidgets` allow-list → the filter's own `field` (dateRange defaults to
|
|
38
|
+
`created_at`). Static-data widgets are not filtered.
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [82441e4]
|
|
41
|
+
- Updated dependencies [2efa9fd]
|
|
42
|
+
- Updated dependencies [0890fa7]
|
|
43
|
+
- Updated dependencies [2ded18c]
|
|
44
|
+
- Updated dependencies [e628d1f]
|
|
45
|
+
- Updated dependencies [5523fc4]
|
|
46
|
+
- Updated dependencies [887062c]
|
|
47
|
+
- Updated dependencies [579b24d]
|
|
48
|
+
- Updated dependencies [2b30583]
|
|
49
|
+
- Updated dependencies [23d65c3]
|
|
50
|
+
- Updated dependencies [06d5ec6]
|
|
51
|
+
- Updated dependencies [055e1d2]
|
|
52
|
+
- Updated dependencies [9e2d58f]
|
|
53
|
+
- Updated dependencies [dea65f7]
|
|
54
|
+
- Updated dependencies [f30ff68]
|
|
55
|
+
- Updated dependencies [073e7aa]
|
|
56
|
+
- Updated dependencies [3e8bf07]
|
|
57
|
+
- Updated dependencies [6c0135c]
|
|
58
|
+
- Updated dependencies [5b52624]
|
|
59
|
+
- Updated dependencies [4afb251]
|
|
60
|
+
- Updated dependencies [d5b1bc0]
|
|
61
|
+
- Updated dependencies [f94905d]
|
|
62
|
+
- Updated dependencies [2712fc1]
|
|
63
|
+
- Updated dependencies [f0f10f5]
|
|
64
|
+
- @object-ui/i18n@14.1.0
|
|
65
|
+
- @object-ui/fields@14.1.0
|
|
66
|
+
- @object-ui/core@14.1.0
|
|
67
|
+
- @object-ui/types@14.1.0
|
|
68
|
+
- @object-ui/react@14.1.0
|
|
69
|
+
- @object-ui/plugin-grid@14.1.0
|
|
70
|
+
- @object-ui/components@14.1.0
|
|
71
|
+
|
|
3
72
|
## 14.0.0
|
|
4
73
|
|
|
5
74
|
### Patch Changes
|