@bizdoc/core 1.10.0-next.12 → 1.10.0-next.13
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/fesm2020/bizdoc-core.mjs
CHANGED
@@ -14118,14 +14118,13 @@ class CubeMatrixComponent {
|
|
14118
14118
|
this.xAxis = this.cube.axes.find(a => a.name === this._xAxis);
|
14119
14119
|
this.series = this.cube.axes.find(a => a.name === this._series);
|
14120
14120
|
this.data = null;
|
14121
|
-
this._prepare = forkJoin(this._ds.all(this.series.dataType).pipe(tap(r => this.rows = r)), this._ds.all(this.xAxis.dataType).pipe(tap(c => this.columns = c))).toPromise().then(() => this._sum &&
|
14122
|
-
this._addsum());
|
14121
|
+
this._prepare = forkJoin(this._ds.all(this.series.dataType).pipe(tap(r => this.rows = r)), this._ds.all(this.xAxis.dataType).pipe(tap(c => this.columns = c))).toPromise().then(() => this._sum && this._addsumheaders());
|
14123
14122
|
this.refresh();
|
14124
14123
|
}
|
14125
14124
|
else if (changes['filters'])
|
14126
14125
|
this.refresh();
|
14127
14126
|
}
|
14128
|
-
|
14127
|
+
_addsumheaders() {
|
14129
14128
|
this._sum.forEach((s, i) => {
|
14130
14129
|
let { value, axis } = s;
|
14131
14130
|
const element = {
|
@@ -14183,9 +14182,7 @@ class CubeMatrixComponent {
|
|
14183
14182
|
}));
|
14184
14183
|
}
|
14185
14184
|
_string(data) {
|
14186
|
-
|
14187
|
-
data[xAxis][series] = formatNumber(data[xAxis][series], this.LANGUAGE, this.PRECISION);
|
14188
|
-
}
|
14185
|
+
const fmt = (xAxis, series) => data[xAxis][series] = formatNumber(data[xAxis][series], this.LANGUAGE, this.PRECISION);
|
14189
14186
|
this.columns.forEach(c => {
|
14190
14187
|
if (c.index !== undefined)
|
14191
14188
|
return;
|