@bino-bi/bn-template-engine 1.0.0-next.66 → 1.0.0-next.67
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/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/{p-a794c6ea.entry.js → p-420ed339.entry.js} +1 -1
- package/dist/cjs/bn-annotation-layer_30.cjs.entry.js +6 -5
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +6 -5
- package/dist/components/bn-chart-time-renderer.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/{p-isJcvi4q.js → p-D-9Zller.js} +1 -1
- package/dist/esm/bn-annotation-layer_30.entry.js +6 -5
- package/package.json +1 -1
|
@@ -25189,12 +25189,12 @@ class TimeChart {
|
|
|
25189
25189
|
}
|
|
25190
25190
|
// a 0 is a scenario without a value in this total, as for the parts
|
|
25191
25191
|
const has = (name) => Number.isFinite(data[name]) && data[name] !== 0;
|
|
25192
|
-
|
|
25193
|
-
|
|
25192
|
+
// of the side with the series only the series counts, of the other side the first name
|
|
25193
|
+
const used = (names) => {
|
|
25194
25194
|
const ofSeries = names.filter((name) => series.has(name));
|
|
25195
|
-
|
|
25196
|
-
return used.length > 0 ? used.reduce((sum, name) => sum + data[name], 0) : null;
|
|
25195
|
+
return (ofSeries.length > 0 ? ofSeries : names.slice(0, 1)).filter(has);
|
|
25197
25196
|
};
|
|
25197
|
+
const side = (names) => used(names).length > 0 ? used(names).reduce((sum, name) => sum + data[name], 0) : null;
|
|
25198
25198
|
const baseSide = side(bases);
|
|
25199
25199
|
const deltaSide = side(deltas);
|
|
25200
25200
|
if (baseSide == null || deltaSide == null) {
|
|
@@ -25202,7 +25202,8 @@ class TimeChart {
|
|
|
25202
25202
|
}
|
|
25203
25203
|
base = baseSide;
|
|
25204
25204
|
delta = deltaSide;
|
|
25205
|
-
|
|
25205
|
+
// the notation of what is in the value, not of every name of the row
|
|
25206
|
+
used(bases).forEach((name) => notations.add(name.slice(0, 2)));
|
|
25206
25207
|
}
|
|
25207
25208
|
else {
|
|
25208
25209
|
// the same periods as the column, so the two tell the same: with `last` the one
|
package/package.json
CHANGED