web-mojo 2.4.12 → 2.4.14
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 +6 -0
- package/dist/admin.cjs.js +1 -1
- package/dist/admin.es.js +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.es.js +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +1 -1
- package/dist/chunks/{exportChart-CyPESnlQ.js → exportChart-CiiOP0OV.js} +2 -2
- package/dist/chunks/{exportChart-CJ824MnD.js.map → exportChart-CiiOP0OV.js.map} +1 -1
- package/dist/chunks/{exportChart-CJ824MnD.js → exportChart-D_QM7QwD.js} +2 -2
- package/dist/chunks/{exportChart-CyPESnlQ.js.map → exportChart-D_QM7QwD.js.map} +1 -1
- package/dist/chunks/{version-B5EuEVdn.js → version-CF8OZ-hE.js} +2 -2
- package/dist/chunks/{version-B5EuEVdn.js.map → version-CF8OZ-hE.js.map} +1 -1
- package/dist/chunks/{version-DDmBPDCH.js → version-D_sJdHZU.js} +2 -2
- package/dist/chunks/{version-DDmBPDCH.js.map → version-D_sJdHZU.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
### MetricsMiniChartWidget — fix: `{{now_value}}` showed yesterday's value when `trendOffset > 0`
|
|
6
|
+
|
|
7
|
+
- **Fixed:** `{{now_value}}` in the subtitle template now always reads from the latest bucket, independent of `trendOffset`. Previously it was shifted back by `trendOffset` buckets — so a widget with `trendOffset: 1` and a subtitle like `'{{now_value}} Today'` rendered yesterday's value next to the static "Today" label. The chart's tooltip on the rightmost bar showed the correct (today's) value, exposing the mismatch.
|
|
8
|
+
- **Behavior change for callers using `trendOffset > 0`:** `{{now_value}}` now jumps from "N back" to the latest bucket. Migration: callers who genuinely want the offset-shifted windowed sum should switch to `{{lastValue}}` (already documented; already respects `trendOffset` and `trendRange`). Callers using the default `trendOffset: 0` see no change.
|
|
9
|
+
- **Unchanged:** `trendOffset` still shifts the trending comparison window (`lastValue`, `prevValue`, `trendingPercent`) — that's its remaining purpose, and the original use case (skip an incomplete current bucket in trending math) still works.
|
|
10
|
+
|
|
5
11
|
### Charts — `apiParams` passthrough on metrics-aware components
|
|
6
12
|
|
|
7
13
|
- **Added:** `MetricsChart` and `MetricsMiniChart` accept an `apiParams: object` constructor option — a passthrough map for arbitrary `/api/metrics/fetch` query params the framework doesn't yet promote to first-class options. `MetricsMiniChartWidget` forwards the option through `chartOptions` to its inner mini chart.
|