@bizdoc/core 1.10.2 → 1.10.3
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/esm2020/lib/admin/positions/positions.component.mjs +130 -61
- package/esm2020/lib/core/session.service.mjs +4 -1
- package/esm2020/lib/cube/accum/accum.component.mjs +67 -15
- package/esm2020/lib/cube/chart/chart.component.mjs +62 -13
- package/esm2020/lib/cube/cube-view.component.mjs +1 -2
- package/esm2020/lib/cube/cube.service.mjs +5 -4
- package/esm2020/lib/cube/declarations.mjs +1 -1
- package/esm2020/lib/cube/explore/explore-items.component.mjs +40 -9
- package/esm2020/lib/cube/grid/grid.component.mjs +3 -4
- package/esm2020/lib/cube/grid/spreadsheet.component.mjs +39 -20
- package/esm2020/lib/cube/matrix/table.component.mjs +4 -4
- package/esm2020/lib/cube/pivot/pivot.component.mjs +79 -13
- package/esm2020/lib/reports/cube/usage-args.component.mjs +1 -1
- package/esm2020/lib/reports/cube/usage-base.mjs +1 -1
- package/esm2020/lib/reports/cube/usage-chart.component.mjs +76 -10
- package/esm2020/lib/reports/cube/usage-pivot.component.mjs +1 -1
- package/esm2020/lib/reports/report-viewer.component.mjs +40 -14
- package/esm2020/lib/views/cube/chart.component.mjs +1 -1
- package/esm2020/lib/views/cube/pivot.component.mjs +1 -1
- package/fesm2015/bizdoc-core.mjs +522 -152
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +521 -149
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/admin/positions/positions.component.d.ts +0 -1
- package/lib/core/session.service.d.ts +1 -0
- package/lib/cube/accum/accum.component.d.ts +4 -3
- package/lib/cube/chart/chart.component.d.ts +2 -1
- package/lib/cube/declarations.d.ts +0 -1
- package/lib/cube/explore/explore-items.component.d.ts +1 -1
- package/lib/cube/grid/grid.component.d.ts +1 -1
- package/lib/cube/grid/spreadsheet.component.d.ts +1 -2
- package/lib/cube/pivot/pivot.component.d.ts +1 -1
- package/lib/reports/cube/usage-args.component.d.ts +2 -2
- package/lib/reports/cube/usage-base.d.ts +8 -12
- package/lib/reports/cube/usage-chart.component.d.ts +1 -1
- package/lib/reports/report-viewer.component.d.ts +3 -1
- package/package.json +1 -1
@@ -79,7 +79,6 @@ export declare class PositionsComponent implements OnInit, OnDestroy, UtilityCom
|
|
79
79
|
editPattern(name: string): void;
|
80
80
|
save(): Promise<any>;
|
81
81
|
download(): Promise<void>;
|
82
|
-
upload(evt: InputEvent): Promise<void>;
|
83
82
|
ngOnDestroy(): void;
|
84
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<PositionsComponent, never>;
|
85
84
|
static ɵcmp: i0.ɵɵComponentDeclaration<PositionsComponent, "ng-component", never, {}, {}, never, never>;
|
@@ -28,8 +28,8 @@ export declare class CubeAccumulationChartComponent implements OnInit, OnChanges
|
|
28
28
|
height: string | number;
|
29
29
|
width: string | number;
|
30
30
|
cube: string;
|
31
|
-
|
32
|
-
|
31
|
+
private _xAxis;
|
32
|
+
set xAxis(val: string | string[]);
|
33
33
|
filters?: AxesMap;
|
34
34
|
chartType?: ChartType;
|
35
35
|
scope: ScopeType;
|
@@ -37,6 +37,7 @@ export declare class CubeAccumulationChartComponent implements OnInit, OnChanges
|
|
37
37
|
loading: boolean;
|
38
38
|
readonly loadingChange: EventEmitter<boolean>;
|
39
39
|
readonly explore: EventEmitter<AxisClickEvent>;
|
40
|
+
private _cube;
|
40
41
|
private readonly _intl;
|
41
42
|
private readonly _destroy;
|
42
43
|
/** chart ctor */
|
@@ -55,5 +56,5 @@ export declare class CubeAccumulationChartComponent implements OnInit, OnChanges
|
|
55
56
|
exportToExcel(title: string): void;
|
56
57
|
ngOnDestroy(): void;
|
57
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeAccumulationChartComponent, never>;
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CubeAccumulationChartComponent, "bizdoc-cube-accum", never, { "height": "height"; "width": "width"; "cube": "cube"; "xAxis": "xAxis"; "
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CubeAccumulationChartComponent, "bizdoc-cube-accum", never, { "height": "height"; "width": "width"; "cube": "cube"; "xAxis": "xAxis"; "filters": "filters"; "chartType": "chartType"; "scope": "scope"; "loading": "loading"; }, { "loadingChange": "loadingChange"; "explore": "explore"; }, never, never>;
|
59
60
|
}
|
@@ -18,6 +18,7 @@ export declare class CubeChartComponent implements OnInit, OnChanges, OnDestroy,
|
|
18
18
|
height: string | number;
|
19
19
|
cube: string;
|
20
20
|
private _xAxis;
|
21
|
+
private _cube;
|
21
22
|
get xAxis(): string[] | string;
|
22
23
|
set xAxis(value: string[] | string);
|
23
24
|
private _series?;
|
@@ -66,5 +67,5 @@ export declare class CubeChartComponent implements OnInit, OnChanges, OnDestroy,
|
|
66
67
|
exportToExcel(title: string): void;
|
67
68
|
ngOnDestroy(): void;
|
68
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeChartComponent, never>;
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CubeChartComponent, "bizdoc-cube-chart", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "yAxis": "yAxis"; "chartType": "chartType"; "indicesChartType": "indicesChartType"; "scope": "scope"; "
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CubeChartComponent, "bizdoc-cube-chart", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "yAxis": "yAxis"; "chartType": "chartType"; "indicesChartType": "indicesChartType"; "scope": "scope"; "loading": "loading"; }, { "explore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
|
70
71
|
}
|
@@ -38,7 +38,7 @@ export declare class ExploreItemsComponent implements OnInit, OnChanges, OnDestr
|
|
38
38
|
ngOnInit(): void;
|
39
39
|
ngOnDestroy(): void;
|
40
40
|
refresh(): void;
|
41
|
-
ngOnChanges(
|
41
|
+
ngOnChanges(_: SimpleChanges): void;
|
42
42
|
/** */
|
43
43
|
private _view;
|
44
44
|
private _index;
|
@@ -55,5 +55,5 @@ export declare class CubeGridComponent implements OnInit, OnChanges, CubeViewerC
|
|
55
55
|
exportToExcel(title: string): void;
|
56
56
|
ngOnDestroy(): void;
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeGridComponent, never>;
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CubeGridComponent, "bizdoc-cube-grid", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CubeGridComponent, "bizdoc-cube-grid", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "loading": "loading"; }, { "explore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
|
59
59
|
}
|
@@ -25,7 +25,6 @@ export declare class CubeSpreadsheetComponent implements OnInit, CubeViewerCompo
|
|
25
25
|
set series(val: string[] | string);
|
26
26
|
set indices(val: string[] | string);
|
27
27
|
filters?: AxesMap;
|
28
|
-
currencyCode: string;
|
29
28
|
readonly explore: EventEmitter<AxisClickEvent>;
|
30
29
|
loading: boolean;
|
31
30
|
readonly loadingChange: EventEmitter<boolean>;
|
@@ -59,5 +58,5 @@ export declare class CubeSpreadsheetComponent implements OnInit, CubeViewerCompo
|
|
59
58
|
exportToExcel(title: string): void;
|
60
59
|
ngOnDestroy(): void;
|
61
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeSpreadsheetComponent, never>;
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CubeSpreadsheetComponent, "bizdoc-cube-spreadsheet", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "yAxis": "yAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CubeSpreadsheetComponent, "bizdoc-cube-spreadsheet", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "yAxis": "yAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "loading": "loading"; }, { "explore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
|
63
62
|
}
|
@@ -92,5 +92,5 @@ export declare class CubePivotComponent implements CubeViewerComponent, OnInit,
|
|
92
92
|
resize(): void;
|
93
93
|
ngOnDestroy(): void;
|
94
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubePivotComponent, never>;
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CubePivotComponent, "bizdoc-cube-pivot", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "yAxis": "yAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "chartType": "chartType"; "indicesChartType": "indicesChartType"; "
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CubePivotComponent, "bizdoc-cube-pivot", never, { "width": "width"; "height": "height"; "cube": "cube"; "xAxis": "xAxis"; "yAxis": "yAxis"; "series": "series"; "indices": "indices"; "filters": "filters"; "chartType": "chartType"; "indicesChartType": "indicesChartType"; "loading": "loading"; }, { "explore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
|
96
96
|
}
|
@@ -3,7 +3,7 @@ import { FormBuilder, FormGroup } from "@angular/forms";
|
|
3
3
|
import { ArgumentsComponent } from "../../core/base";
|
4
4
|
import { SessionService } from "../../core/session.service";
|
5
5
|
import { ReportRef } from "../report-ref";
|
6
|
-
import { Args,
|
6
|
+
import { Args, UsageOptions } from "./usage-base";
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
/** */
|
9
9
|
export declare class UsageReportArgs implements OnInit, ArgumentsComponent<Args> {
|
@@ -14,7 +14,7 @@ export declare class UsageReportArgs implements OnInit, ArgumentsComponent<Args>
|
|
14
14
|
cube: string;
|
15
15
|
values: Args;
|
16
16
|
private _axes;
|
17
|
-
constructor(ref: ReportRef<
|
17
|
+
constructor(ref: ReportRef<UsageOptions>, _fb: FormBuilder, _session: SessionService);
|
18
18
|
ngOnInit(): void;
|
19
19
|
valuesChange(axes: any): void;
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsageReportArgs, never>;
|
@@ -11,15 +11,6 @@ import { PromptService } from "../../core/prompt.service";
|
|
11
11
|
import { ReportRef } from "../report-ref";
|
12
12
|
import { RouterImpl } from "../../core/router";
|
13
13
|
import * as i0 from "@angular/core";
|
14
|
-
export interface UsageOptions {
|
15
|
-
cube?: string;
|
16
|
-
yTitle?: string;
|
17
|
-
indices?: string[] | string;
|
18
|
-
series?: string[] | string;
|
19
|
-
filters?: AxesMap;
|
20
|
-
scope?: 'patterns' | 'positions';
|
21
|
-
collapse?: boolean;
|
22
|
-
}
|
23
14
|
export declare abstract class UsageReportBase<O extends UsageOptions> implements ReportComponent<Item, Args>, OnDestroy {
|
24
15
|
protected _reportRef: ReportRef<O>;
|
25
16
|
protected _type: DatasourceService;
|
@@ -65,11 +56,16 @@ export declare type Item = {
|
|
65
56
|
} & {
|
66
57
|
usage?: number;
|
67
58
|
};
|
68
|
-
export declare type
|
59
|
+
export declare type UsageOptions = {
|
60
|
+
xAxis?: string[] | string;
|
69
61
|
cube?: string;
|
70
62
|
exclude: string[];
|
71
|
-
|
72
|
-
|
63
|
+
yTitle?: string;
|
64
|
+
indices?: string[] | string;
|
65
|
+
series?: string[] | string;
|
66
|
+
filters?: AxesMap;
|
67
|
+
scope?: 'patterns' | 'positions';
|
68
|
+
collapse?: boolean;
|
73
69
|
};
|
74
70
|
export interface Args {
|
75
71
|
[axis: string]: string;
|
@@ -35,7 +35,7 @@ export declare class UsageChartComponent extends UsageReportBase<Options> implem
|
|
35
35
|
onData(result: Item[]): void;
|
36
36
|
private _draw;
|
37
37
|
onResize(): void;
|
38
|
-
onExport(
|
38
|
+
onExport(title: string): void;
|
39
39
|
/**
|
40
40
|
* adds data source description to item keys, and normalizes indices.
|
41
41
|
* @param result
|
@@ -8,6 +8,7 @@ import { PromptService } from '../core/prompt.service';
|
|
8
8
|
import { TranslateService } from '../core/translate.service';
|
9
9
|
import { BizDocComponentFactoryResolver } from '../core/component-factory-resolver';
|
10
10
|
import { TableViewComponent } from './table/table-view.component';
|
11
|
+
import { SessionService } from '../core/session.service';
|
11
12
|
import * as i0 from "@angular/core";
|
12
13
|
export declare class ReportViewerComponent implements OnChanges, OnDestroy {
|
13
14
|
private _http;
|
@@ -15,6 +16,7 @@ export declare class ReportViewerComponent implements OnChanges, OnDestroy {
|
|
15
16
|
private _injector;
|
16
17
|
private _hub;
|
17
18
|
private _translate;
|
19
|
+
private _session;
|
18
20
|
private _factoryResolver;
|
19
21
|
report: Report;
|
20
22
|
args: ParamMap;
|
@@ -29,7 +31,7 @@ export declare class ReportViewerComponent implements OnChanges, OnDestroy {
|
|
29
31
|
private readonly _resizing;
|
30
32
|
private readonly _destroy;
|
31
33
|
/** reportviewer ctor */
|
32
|
-
constructor(_http: HttpClient, _sb: PromptService, _injector: Injector, _hub: HubService, _translate: TranslateService, _factoryResolver: BizDocComponentFactoryResolver);
|
34
|
+
constructor(_http: HttpClient, _sb: PromptService, _injector: Injector, _hub: HubService, _translate: TranslateService, _session: SessionService, _factoryResolver: BizDocComponentFactoryResolver);
|
33
35
|
ngOnChanges(changes: SimpleChanges): void;
|
34
36
|
/** */
|
35
37
|
private _createView;
|