@bizdoc/core 1.11.0-next.3 → 1.11.0-next.4
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/assets/bizdoc-schema.json +4 -7
- package/esm2020/lib/compose/attachments/attachments.component.mjs +2 -2
- package/esm2020/lib/compose/form.component.mjs +2 -2
- package/esm2020/lib/core/controls/file.input.mjs +3 -3
- package/esm2020/lib/core/models.mjs +1 -1
- package/esm2020/lib/cube/chart/chart.component.mjs +2 -3
- package/esm2020/lib/cube/cube.service.mjs +4 -2
- package/esm2020/lib/cube/filter/filter.component.mjs +9 -9
- package/esm2020/lib/dashboard/cube/filter/filter.component.mjs +1 -1
- package/esm2020/lib/reports/cube/usage-args.component.mjs +3 -5
- package/fesm2015/bizdoc-core.mjs +18 -19
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +18 -19
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/compose/attachments/attachments.component.d.ts +2 -2
- package/lib/core/models.d.ts +1 -1
- package/lib/reports/cube/usage-args.component.d.ts +0 -1
- package/package.json +1 -1
package/fesm2020/bizdoc-core.mjs
CHANGED
@@ -5573,7 +5573,9 @@ class CubeService {
|
|
5573
5573
|
* @param axis name
|
5574
5574
|
*/
|
5575
5575
|
values(cube, axis, dependencies) {
|
5576
|
-
|
5576
|
+
let cacheId = cube + axis;
|
5577
|
+
dependencies && Object.keys(dependencies).forEach(k => cacheId += k);
|
5578
|
+
return this._cacheOr(cacheId, () => this._http.get(`/api/cube/segmentvalues/${cube}/${axis}`, { params: dependencies }));
|
5577
5579
|
}
|
5578
5580
|
/**
|
5579
5581
|
* get axis combinations
|
@@ -5882,19 +5884,19 @@ class CubeFilterComponent {
|
|
5882
5884
|
this._cube.axes.forEach(a => {
|
5883
5885
|
if (a.hidden || a.selectionMode === 'None')
|
5884
5886
|
return;
|
5885
|
-
let {
|
5886
|
-
if (
|
5887
|
+
let { descendentOf } = a;
|
5888
|
+
if (descendentOf) {
|
5887
5889
|
let ancestors = this._ancestors[a.name] = [];
|
5888
|
-
while (
|
5889
|
-
let axis = this._cube.axes.find(a => a.name ===
|
5890
|
+
while (descendentOf) {
|
5891
|
+
let axis = this._cube.axes.find(a => a.name === descendentOf);
|
5890
5892
|
ancestors.push(axis.name);
|
5891
5893
|
if (a.selectionMode !== 'Pattern') {
|
5892
|
-
if (!this._decendents[
|
5893
|
-
this._decendents[
|
5894
|
+
if (!this._decendents[descendentOf])
|
5895
|
+
this._decendents[descendentOf] = [a.name];
|
5894
5896
|
else
|
5895
|
-
this._decendents[
|
5897
|
+
this._decendents[descendentOf].push(a.name);
|
5896
5898
|
}
|
5897
|
-
|
5899
|
+
descendentOf = axis.descendentOf;
|
5898
5900
|
}
|
5899
5901
|
}
|
5900
5902
|
const ctrl = config[a.name] = this._fb.control(this.axes[a.name]);
|
@@ -6709,7 +6711,7 @@ class AttachmentsComponent {
|
|
6709
6711
|
this.ngOnChanges();
|
6710
6712
|
}
|
6711
6713
|
discard(item) {
|
6712
|
-
const task = () => this._mailbox.removeattachment(this.model.
|
6714
|
+
const task = () => this._mailbox.removeattachment(this.model.id, item.id).subscribe(() => {
|
6713
6715
|
//item.deleted = true;
|
6714
6716
|
this.model.attachments.remove(item);
|
6715
6717
|
this.ngOnChanges();
|
@@ -8219,7 +8221,7 @@ class ComposeFormComponent {
|
|
8219
8221
|
fileMap[f.name] = model;
|
8220
8222
|
this.model.attachments.push(model);
|
8221
8223
|
});
|
8222
|
-
return this._mailbox.upload(this.model.
|
8224
|
+
return this._mailbox.upload(this.model.id, this.model.formId, this.model.version, files).
|
8223
8225
|
pipe(tap((r) => {
|
8224
8226
|
files.length === 1 ? this._sb.toast(!exists ? 'UploadOk' : 'UploadVersionOk', files[0].name) :
|
8225
8227
|
this._sb.toast('UploadMany', files.length);
|
@@ -9295,14 +9297,13 @@ class CubeChartComponent {
|
|
9295
9297
|
}
|
9296
9298
|
CubeChartComponent.nextId = 0;
|
9297
9299
|
CubeChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CubeChartComponent, deps: [{ token: CubeService }, { token: PromptService }, { token: TranslateService }, { token: SessionService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
9298
|
-
CubeChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: CubeChartComponent, selector: "bizdoc-cube-chart", inputs: { width: "width", height: "height", cube: "cube", xAxis: "xAxis", series: "series", indices: "indices", filters: "filters", yAxis: "yAxis", chartType: "chartType", indicesChartType: "indicesChartType", scope: "scope", loading: "loading", palettes: "palettes" }, outputs: { explore: "explore", loadingChange: "loadingChange" }, host: {
|
9300
|
+
CubeChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: CubeChartComponent, selector: "bizdoc-cube-chart", inputs: { width: "width", height: "height", cube: "cube", xAxis: "xAxis", series: "series", indices: "indices", filters: "filters", yAxis: "yAxis", chartType: "chartType", indicesChartType: "indicesChartType", scope: "scope", loading: "loading", palettes: "palettes" }, outputs: { explore: "explore", loadingChange: "loadingChange" }, host: { properties: { "id": "this.id" }, classAttribute: "cube-view" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
|
9299
9301
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CubeChartComponent, decorators: [{
|
9300
9302
|
type: Component,
|
9301
9303
|
args: [{
|
9302
9304
|
selector: 'bizdoc-cube-chart',
|
9303
9305
|
template: '',
|
9304
9306
|
host: {
|
9305
|
-
dir: 'ltr',
|
9306
9307
|
class: 'cube-view'
|
9307
9308
|
}
|
9308
9309
|
}]
|
@@ -21933,10 +21934,8 @@ let UsageReportArgs = class UsageReportArgs {
|
|
21933
21934
|
this.exclude.push(exclude);
|
21934
21935
|
}
|
21935
21936
|
const cube = this._session.profile.cubes.find(c => c.name == name) || this._session.profile.cubes[0], controls = {};
|
21936
|
-
|
21937
|
-
|
21938
|
-
controls[a.name] = this._fb.control(null);
|
21939
|
-
});
|
21937
|
+
const axes = cube.axes.filter(a => !a.hidden && a.selectionMode !== 'None');
|
21938
|
+
axes.forEach(a => controls[a.name] = this._fb.control(null));
|
21940
21939
|
this.form = this._fb.group(controls);
|
21941
21940
|
}
|
21942
21941
|
ngOnInit() {
|
@@ -25793,7 +25792,7 @@ class FileInput {
|
|
25793
25792
|
});
|
25794
25793
|
}
|
25795
25794
|
discard(item) {
|
25796
|
-
const task = () => this._mailbox.removeattachment(this._model.
|
25795
|
+
const task = () => this._mailbox.removeattachment(this._model.id, item.id).subscribe(() => {
|
25797
25796
|
item.deleted = true;
|
25798
25797
|
if (this.multiple) {
|
25799
25798
|
this.items.remove(item);
|
@@ -25960,7 +25959,7 @@ class FileInput {
|
|
25960
25959
|
_upload(files) {
|
25961
25960
|
const observables = [];
|
25962
25961
|
for (let file of files) {
|
25963
|
-
let observable = this._mailbox.upload(this._model.
|
25962
|
+
let observable = this._mailbox.upload(this._model.id, this._model.formId, this._model.version, [file], { isPrivate: true }).
|
25964
25963
|
pipe(tap$1(e => {
|
25965
25964
|
// if (e.progress) {
|
25966
25965
|
// }
|