@bizdoc/core 1.12.0 → 1.13.0-next.1
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/themes/brown.min.css +1 -1
- package/assets/themes/dark.min.css +1 -1
- package/assets/themes/deep-purple-teal.min.css +1 -1
- package/assets/themes/default.min.css +1 -1
- package/assets/themes/green.min.css +1 -1
- package/assets/themes/indigo.min.css +1 -1
- package/esm2020/lib/browse/browse-items.component.mjs +42 -34
- package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +36 -13
- package/esm2020/lib/compose/action/action-picker.component.mjs +15 -14
- package/esm2020/lib/compose/action/action.base.mjs +9 -4
- package/esm2020/lib/compose/action/action.pane.dialog.exp.mjs +13 -12
- package/esm2020/lib/compose/action/assign-action.component.mjs +15 -7
- package/esm2020/lib/compose/form.component.mjs +6 -3
- package/esm2020/lib/compose/trace/flow.component.mjs +84 -47
- package/esm2020/lib/compose/trace/trace.base.mjs +6 -2
- package/esm2020/lib/compose/trace/trace.component.mjs +131 -144
- package/esm2020/lib/core/models.mjs +1 -1
- package/esm2020/lib/core/slots/slots.component.mjs +3 -3
- package/esm2020/lib/core/translations.mjs +19 -3
- package/esm2020/lib/cube/cube-info.service.mjs +3 -3
- package/esm2020/lib/cube/cube.service.mjs +5 -3
- package/esm2020/lib/cube/declarations.mjs +1 -1
- package/esm2020/lib/cube/matrix/matrix.base.mjs +1 -1
- package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +6 -4
- package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +9 -5
- package/esm2020/lib/cube/matrix/popup.component.mjs +7 -5
- package/esm2020/lib/cube/matrix/table.component.mjs +192 -173
- package/esm2020/lib/views/cube/matrix.component.mjs +7 -5
- package/fesm2015/bizdoc-core.mjs +708 -580
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +702 -582
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/browse/browse-items.component.d.ts +3 -1
- package/lib/compose/action/action-picker.component.d.ts +2 -1
- package/lib/compose/action/action.base.d.ts +3 -1
- package/lib/compose/action/action.pane.dialog.exp.d.ts +2 -1
- package/lib/compose/action/assign-action.component.d.ts +5 -2
- package/lib/compose/trace/flow.component.d.ts +0 -1
- package/lib/compose/trace/trace.base.d.ts +5 -2
- package/lib/compose/trace/trace.component.d.ts +1 -19
- package/lib/core/models.d.ts +6 -2
- package/lib/core/translations.d.ts +16 -0
- package/lib/cube/cube-info.service.d.ts +2 -0
- package/lib/cube/cube.service.d.ts +1 -0
- package/lib/cube/matrix/matrix.base.d.ts +2 -0
- package/lib/cube/matrix/matrix.mobile.component.d.ts +2 -1
- package/lib/cube/matrix/matrix.pane.component.d.ts +2 -1
- package/lib/cube/matrix/table.component.d.ts +15 -8
- package/lib/views/cube/matrix.component.d.ts +3 -2
- package/package.json +1 -1
@@ -13,10 +13,12 @@ import { PromptService } from '../core/prompt.service';
|
|
13
13
|
import { BrowseFilterArgs } from './filter/filter.component';
|
14
14
|
import { RouterImpl } from '../core/router';
|
15
15
|
import { BizDocConfig } from '../core/configuration';
|
16
|
+
import { AccountService } from '../core/account.service';
|
16
17
|
import * as i0 from "@angular/core";
|
17
18
|
export declare const TAKE = 200, SIZE = 20, HEADER_COLUMN_NAMES: string[];
|
18
19
|
export declare class BrowseItemsComponent implements OnInit, OnChanges, OnDestroy {
|
19
20
|
private _mailbox;
|
21
|
+
private _accounts;
|
20
22
|
private _cube;
|
21
23
|
private _session;
|
22
24
|
private _sb;
|
@@ -51,7 +53,7 @@ export declare class BrowseItemsComponent implements OnInit, OnChanges, OnDestro
|
|
51
53
|
private readonly _loading$;
|
52
54
|
enableAnalysis: boolean;
|
53
55
|
/** browse ctor */
|
54
|
-
constructor(_mailbox: MailboxService, _cube: CubeService, _session: SessionService, _sb: PromptService, _translate: TranslateService, _cd: ChangeDetectorRef, _router: RouterImpl, _messaging: HubService, _config: BizDocConfig);
|
56
|
+
constructor(_mailbox: MailboxService, _accounts: AccountService, _cube: CubeService, _session: SessionService, _sb: PromptService, _translate: TranslateService, _cd: ChangeDetectorRef, _router: RouterImpl, _messaging: HubService, _config: BizDocConfig);
|
55
57
|
ngOnInit(): void;
|
56
58
|
ngOnChanges(_: SimpleChanges): void;
|
57
59
|
private _assign;
|
@@ -5,6 +5,7 @@ import { Action, RecipientModel } from '../../core/models';
|
|
5
5
|
import { SessionService } from '../../core/session.service';
|
6
6
|
import { ActionBase } from './action.base';
|
7
7
|
import { PromptService } from '../../core/prompt.service';
|
8
|
+
import { AccountService } from '../../core/account.service';
|
8
9
|
import * as i0 from "@angular/core";
|
9
10
|
export declare class ActionPicker extends ActionBase implements OnChanges, AfterViewInit {
|
10
11
|
model: RecipientModel<any>;
|
@@ -13,7 +14,7 @@ export declare class ActionPicker extends ActionBase implements OnChanges, After
|
|
13
14
|
working: boolean;
|
14
15
|
readonly workingChange: EventEmitter<boolean>;
|
15
16
|
actions: Action[];
|
16
|
-
constructor(model: RecipientModel<any>, _session: SessionService, mailbox: MailboxService, _dialog: MatDialog, sb: PromptService);
|
17
|
+
constructor(model: RecipientModel<any>, _session: SessionService, mailbox: MailboxService, _dialog: MatDialog, accounts: AccountService, sb: PromptService);
|
17
18
|
ngAfterViewInit(): void;
|
18
19
|
ngOnChanges(changes: SimpleChanges): void;
|
19
20
|
private _sortActions;
|
@@ -1,11 +1,13 @@
|
|
1
|
+
import { AccountService } from '../../core/account.service';
|
1
2
|
import { MailboxService } from '../../core/mailbox.service';
|
2
3
|
import { Action, RecipientModel } from '../../core/models';
|
3
4
|
import { PromptService } from '../../core/prompt.service';
|
4
5
|
export declare abstract class ActionBase {
|
5
6
|
private _mailbox;
|
7
|
+
private _accounts;
|
6
8
|
protected _sb: PromptService;
|
7
9
|
model: RecipientModel<any>;
|
8
|
-
constructor(_mailbox: MailboxService, _sb: PromptService);
|
10
|
+
constructor(_mailbox: MailboxService, _accounts: AccountService, _sb: PromptService);
|
9
11
|
protected _ok(action: Action, args: any): import("rxjs").Observable<RecipientModel<any>>;
|
10
12
|
private _handleError;
|
11
13
|
}
|
@@ -7,6 +7,7 @@ import { MailboxService } from '../../core/mailbox.service';
|
|
7
7
|
import { PromptService } from '../../core/prompt.service';
|
8
8
|
import { ParamMap } from '../../core/configuration';
|
9
9
|
import { ActionBase } from './action.base';
|
10
|
+
import { AccountService } from '../../core/account.service';
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export declare class ActionPaneComponent extends ActionBase implements OnInit, OnDestroy {
|
12
13
|
private _pane;
|
@@ -19,7 +20,7 @@ export declare class ActionPaneComponent extends ActionBase implements OnInit, O
|
|
19
20
|
readonly okChange: EventEmitter<ParamMap>;
|
20
21
|
private readonly _destroy;
|
21
22
|
/** action-dialog ctor */
|
22
|
-
constructor(_pane: PaneRef<ActionPaneComponent>, mailbox: MailboxService, _fr: BizDocComponentFactoryResolver, _fr2: ComponentFactoryResolver, sb: PromptService, session: SessionService);
|
23
|
+
constructor(_pane: PaneRef<ActionPaneComponent>, mailbox: MailboxService, _fr: BizDocComponentFactoryResolver, _fr2: ComponentFactoryResolver, accounts: AccountService, sb: PromptService, session: SessionService);
|
23
24
|
close(): void;
|
24
25
|
ok(): void;
|
25
26
|
ngOnInit(): void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { FormBuilder } from '@angular/forms';
|
3
3
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
4
4
|
import { Observable } from 'rxjs';
|
@@ -7,16 +7,19 @@ import { ArgumentsComponent } from '../../core/base';
|
|
7
7
|
import { SessionService } from '../../core/session.service';
|
8
8
|
import { AccountService } from '../../core/account.service';
|
9
9
|
import * as i0 from "@angular/core";
|
10
|
-
export declare class AssignActionComponent implements ArgumentsComponent, OnInit {
|
10
|
+
export declare class AssignActionComponent implements ArgumentsComponent, OnInit, OnDestroy {
|
11
11
|
private _fb;
|
12
12
|
private _session;
|
13
13
|
private _accounts;
|
14
14
|
readonly form: import("@angular/forms").FormGroup;
|
15
|
+
readonly userId: import("@angular/forms").FormControl;
|
15
16
|
users: Observable<UserInfo[]>;
|
17
|
+
private _destroy;
|
16
18
|
constructor(_fb: FormBuilder, _session: SessionService, _accounts: AccountService);
|
17
19
|
ngOnInit(): void;
|
18
20
|
display(v: UserInfo): string;
|
19
21
|
change(evt: MatAutocompleteSelectedEvent): void;
|
22
|
+
ngOnDestroy(): void;
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssignActionComponent, never>;
|
21
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<AssignActionComponent, "ng-component", never, {}, {}, never, never>;
|
22
25
|
}
|
@@ -1,15 +1,18 @@
|
|
1
1
|
import { Observable, Subject } from "rxjs";
|
2
2
|
import { NodeInfo, DocumentModel } from "../../core/models";
|
3
3
|
import { HubService } from "../../core/hub.service";
|
4
|
+
import { OnChanges } from "@angular/core";
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare const START_NODE = "start";
|
6
|
-
export declare
|
7
|
+
export declare const You = "you";
|
8
|
+
export declare abstract class TraceBase implements OnChanges {
|
7
9
|
abstract model: DocumentModel<any>;
|
8
10
|
private _standardTime;
|
9
11
|
protected _destroy: Subject<void>;
|
10
12
|
constructor(hub: HubService);
|
11
13
|
onLoad(): Observable<any> | null;
|
12
|
-
|
14
|
+
refresh(): void;
|
15
|
+
abstract ngOnChanges(changes: any): any;
|
13
16
|
protected resetEstimateTime(): void;
|
14
17
|
/**
|
15
18
|
*
|
@@ -26,24 +26,7 @@ export declare class TraceViewComponent extends TraceBase implements OnChanges {
|
|
26
26
|
private _showAll;
|
27
27
|
get showAll(): boolean;
|
28
28
|
set showAll(value: boolean);
|
29
|
-
refresh(): void;
|
30
|
-
/**
|
31
|
-
* user name, chat anchor tag or You
|
32
|
-
* @param user
|
33
|
-
*/
|
34
|
-
private _nameOf;
|
35
|
-
/**
|
36
|
-
*
|
37
|
-
* @param userId
|
38
|
-
*/
|
39
|
-
private _userOf;
|
40
29
|
private _roleName;
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @param action
|
44
|
-
* @param user
|
45
|
-
*/
|
46
|
-
private _actionName;
|
47
30
|
chat(e: MouseEvent): void;
|
48
31
|
/**
|
49
32
|
* model version compare, form component in 'compare' view mode
|
@@ -55,7 +38,7 @@ export declare class TraceViewComponent extends TraceBase implements OnChanges {
|
|
55
38
|
}
|
56
39
|
interface Trace {
|
57
40
|
fyi?: boolean;
|
58
|
-
type: LogType | '
|
41
|
+
type: LogType | 'Pending' | 'Estimate';
|
59
42
|
name?: string;
|
60
43
|
estimate?: boolean;
|
61
44
|
pending?: boolean;
|
@@ -67,6 +50,5 @@ interface Trace {
|
|
67
50
|
durationMax?: number;
|
68
51
|
fileName?: string;
|
69
52
|
time?: Date;
|
70
|
-
model?: {};
|
71
53
|
}
|
72
54
|
export {};
|
package/lib/core/models.d.ts
CHANGED
@@ -61,6 +61,7 @@ export interface DocumentModel<T = any> {
|
|
61
61
|
};
|
62
62
|
parent?: Chain;
|
63
63
|
children?: Chain[];
|
64
|
+
toId?: string;
|
64
65
|
}
|
65
66
|
export interface Chain {
|
66
67
|
completed: boolean;
|
@@ -83,9 +84,9 @@ export interface WorkflowInfo {
|
|
83
84
|
}
|
84
85
|
export interface RecipientModel<T = any> extends HeaderModel<T>, DocumentModel<T> {
|
85
86
|
actions?: string[];
|
87
|
+
fyi: boolean;
|
86
88
|
originId?: number;
|
87
89
|
tags?: string[];
|
88
|
-
toId?: string;
|
89
90
|
}
|
90
91
|
export interface ConnectorInfo {
|
91
92
|
estimate: boolean;
|
@@ -102,12 +103,12 @@ export interface NodeInfo {
|
|
102
103
|
/** seconds */
|
103
104
|
standardTime?: number;
|
104
105
|
error?: string;
|
105
|
-
fyi?: boolean;
|
106
106
|
}
|
107
107
|
export interface Log {
|
108
108
|
recipientId?: number;
|
109
109
|
userId: string;
|
110
110
|
byId?: string;
|
111
|
+
toId?: string;
|
111
112
|
time: Date;
|
112
113
|
model?: {};
|
113
114
|
type: LogType;
|
@@ -136,7 +137,10 @@ export interface Recipient {
|
|
136
137
|
replied?: Date;
|
137
138
|
estimate?: boolean;
|
138
139
|
action?: string;
|
140
|
+
toId?: string;
|
141
|
+
fyi?: boolean;
|
139
142
|
id: number;
|
143
|
+
note?: string;
|
140
144
|
}
|
141
145
|
export interface ScheduledEvent {
|
142
146
|
id: number;
|
@@ -195,7 +195,9 @@ export declare const STRINGS: {
|
|
195
195
|
Notifications: string;
|
196
196
|
Days: string;
|
197
197
|
Name: string;
|
198
|
+
ActionTo: string;
|
198
199
|
YouSubstituteActionTaken: string;
|
200
|
+
YouSubstituteActionTakenTo: string;
|
199
201
|
Substituting: string;
|
200
202
|
SubstitutingForYou: string;
|
201
203
|
YouSubstitute: string;
|
@@ -205,13 +207,18 @@ export declare const STRINGS: {
|
|
205
207
|
SubstitutingFor: string;
|
206
208
|
SubstitutingNote: string;
|
207
209
|
ActionTaken: string;
|
210
|
+
ActionTakenTo: string;
|
208
211
|
YouTakenAction: string;
|
212
|
+
YouTakenActionTo: string;
|
209
213
|
YouReceived: string;
|
210
214
|
ReceivedTime: string;
|
211
215
|
ReceivedBy: string;
|
212
216
|
ActionTakenBy: string;
|
217
|
+
ActionTakenByTo: string;
|
213
218
|
YouTakenActionBy: string;
|
219
|
+
YouTakenActionByTo: string;
|
214
220
|
ActionTakenByYou: string;
|
221
|
+
ActionTakenByYouTo: string;
|
215
222
|
EscalatedTo: string;
|
216
223
|
EscalatedFrom: string;
|
217
224
|
EscalatedBy: string;
|
@@ -371,6 +378,7 @@ export declare const STRINGS: {
|
|
371
378
|
Submitted: string;
|
372
379
|
SubmittedMany: string;
|
373
380
|
Sent: string;
|
381
|
+
SentTo: string;
|
374
382
|
SentMany: string;
|
375
383
|
Number: string;
|
376
384
|
Owner: string;
|
@@ -713,7 +721,9 @@ export declare const STRINGS: {
|
|
713
721
|
ShowDeleted: string;
|
714
722
|
Days: string;
|
715
723
|
Name: string;
|
724
|
+
ActionTo: string;
|
716
725
|
YouSubstituteActionTaken: string;
|
726
|
+
YouSubstituteActionTakenTo: string;
|
717
727
|
SubstitutingYou: string;
|
718
728
|
SubstitutingYouMale: string;
|
719
729
|
SubstitutingYouFemale: string;
|
@@ -731,6 +741,7 @@ export declare const STRINGS: {
|
|
731
741
|
SubstitutingByYouFemale: string;
|
732
742
|
SubstitutingNote: string;
|
733
743
|
ActionTaken: string;
|
744
|
+
ActionTakenTo: string;
|
734
745
|
YouReceived: string;
|
735
746
|
ReceivedTimeFemale: string;
|
736
747
|
ReceivedTimeMale: string;
|
@@ -739,9 +750,13 @@ export declare const STRINGS: {
|
|
739
750
|
ReceivedByMale: string;
|
740
751
|
ReceivedByFemale: string;
|
741
752
|
YouTakenAction: string;
|
753
|
+
YouTakenActionTo: string;
|
742
754
|
ActionTakenBy: string;
|
755
|
+
ActionTakenByTo: string;
|
743
756
|
YouTakenActionBy: string;
|
757
|
+
YouTakenActionByTo: string;
|
744
758
|
ActionTakenByYou: string;
|
759
|
+
ActionTakenByYouTo: string;
|
745
760
|
Sound: string;
|
746
761
|
TaggedInComments: string;
|
747
762
|
TaggedYourselfNotify: string;
|
@@ -885,6 +900,7 @@ export declare const STRINGS: {
|
|
885
900
|
Submitted: string;
|
886
901
|
SubmittedMany: string;
|
887
902
|
Sent: string;
|
903
|
+
SentTo: string;
|
888
904
|
SentMany: string;
|
889
905
|
Task: string;
|
890
906
|
Who: string;
|
@@ -29,6 +29,8 @@ export interface CubeDataOptions {
|
|
29
29
|
sum?: SumSettings | SumSettings[];
|
30
30
|
seriesTotalLabel?: string;
|
31
31
|
xAxisTotalLabel?: string;
|
32
|
+
indexAt?: 'series' | 'xAxis';
|
33
|
+
placeAt?: 'leading' | 'trailing';
|
32
34
|
}
|
33
35
|
export interface ExploreOptions {
|
34
36
|
cube?: string;
|
@@ -12,6 +12,8 @@ export declare abstract class CubeMatrixBase {
|
|
12
12
|
table: CubeMatrixComponent;
|
13
13
|
seriesTotalLabel: string;
|
14
14
|
xAxisTotalLabel: string;
|
15
|
+
indexAt?: 'series' | 'xAxis';
|
16
|
+
placeAt?: 'leading' | 'trailing';
|
15
17
|
loading: boolean;
|
16
18
|
private _axes;
|
17
19
|
private _originalAxes;
|
@@ -6,6 +6,7 @@ import { CubeService } from '../cube.service';
|
|
6
6
|
import { AxesMap } from '../../core/models';
|
7
7
|
import { WindowTitleService } from '../../core/window-title.service';
|
8
8
|
import { CubeMatrixBase } from './matrix.base';
|
9
|
+
import { AxisClickEvent } from '../declarations';
|
9
10
|
import * as i0 from "@angular/core";
|
10
11
|
export declare class CubeMatrixMobileComponent extends CubeMatrixBase implements OnInit {
|
11
12
|
private _title;
|
@@ -15,7 +16,7 @@ export declare class CubeMatrixMobileComponent extends CubeMatrixBase implements
|
|
15
16
|
constructor(_title: WindowTitleService, _route: ActivatedRoute, _router: Router, service: CubeService, ds: DatasourceService, session: SessionService);
|
16
17
|
ngOnInit(): void;
|
17
18
|
onFilter(axes: AxesMap): void;
|
18
|
-
explore(
|
19
|
+
explore(evt: AxisClickEvent): void;
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixMobileComponent, never>;
|
20
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixMobileComponent, "ng-component", never, {}, {}, never, never>;
|
21
22
|
}
|
@@ -7,6 +7,7 @@ import { PaneRef } from '../../core/slots/pane-ref';
|
|
7
7
|
import { AxesMap } from '../../core/models';
|
8
8
|
import { CubeMatrixBase } from './matrix.base';
|
9
9
|
import { TranslateService } from '../../core/translate.service';
|
10
|
+
import { AxisClickEvent } from '../declarations';
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export declare class CubeMatrixPaneComponent extends CubeMatrixBase implements OnInit {
|
12
13
|
private _pane;
|
@@ -16,7 +17,7 @@ export declare class CubeMatrixPaneComponent extends CubeMatrixBase implements O
|
|
16
17
|
constructor(_pane: PaneRef<CubeMatrixPaneComponent>, _router: PanesRouter, _translate: TranslateService, service: CubeService, ds: DatasourceService, session: SessionService);
|
17
18
|
ngOnInit(): void;
|
18
19
|
onFilter(queryParams: AxesMap): void;
|
19
|
-
explore(
|
20
|
+
explore(evt: AxisClickEvent): void;
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixPaneComponent, never>;
|
21
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixPaneComponent, "ng-component", never, {}, {}, never, never>;
|
22
23
|
}
|
@@ -6,6 +6,7 @@ import { PromptService } from '../../core/prompt.service';
|
|
6
6
|
import { AxesMap, Cube, CubeAxis, CubeIndex } from '../../core/models';
|
7
7
|
import { ScopeType } from '../../core/configuration';
|
8
8
|
import { TranslateService } from '../../core/translate.service';
|
9
|
+
import { AxisClickEvent } from '../declarations';
|
9
10
|
import * as i0 from "@angular/core";
|
10
11
|
/** cube matrix component*/
|
11
12
|
export declare class CubeMatrixComponent implements OnChanges {
|
@@ -25,6 +26,8 @@ export declare class CubeMatrixComponent implements OnChanges {
|
|
25
26
|
_xAxis: string;
|
26
27
|
_series: string;
|
27
28
|
private _indices?;
|
29
|
+
indexAt: 'series' | 'xAxis';
|
30
|
+
placeAt: 'leading' | 'trailing';
|
28
31
|
scope: ScopeType;
|
29
32
|
private _sum;
|
30
33
|
set sum(val: SumSettings | SumSettings[]);
|
@@ -33,7 +36,7 @@ export declare class CubeMatrixComponent implements OnChanges {
|
|
33
36
|
loading: boolean;
|
34
37
|
get interactive(): boolean;
|
35
38
|
set interactive(value: boolean);
|
36
|
-
readonly onExplore: EventEmitter<
|
39
|
+
readonly onExplore: EventEmitter<AxisClickEvent>;
|
37
40
|
readonly loadingChange: EventEmitter<boolean>;
|
38
41
|
rows: HeaderInfo[];
|
39
42
|
columns: HeaderInfo[];
|
@@ -53,17 +56,20 @@ export declare class CubeMatrixComponent implements OnChanges {
|
|
53
56
|
private _prepare;
|
54
57
|
constructor(_sb: PromptService, _service: CubeService, _session: SessionService, _translate: TranslateService, _ds: DatasourceService);
|
55
58
|
ngOnChanges(changes: SimpleChanges): void;
|
59
|
+
private _addindices;
|
56
60
|
private _addsumheaders;
|
57
61
|
refresh(): void;
|
58
|
-
private
|
62
|
+
private _serialize;
|
63
|
+
private _clone;
|
59
64
|
private _totals;
|
60
65
|
private _calculatesum;
|
66
|
+
private _stringify;
|
61
67
|
private _format;
|
62
68
|
explore(column: HeaderInfo, row: HeaderInfo): void;
|
63
69
|
export(): void;
|
64
|
-
|
70
|
+
_move(x: any, y: any): void;
|
65
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixComponent, never>;
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixComponent, "bizdoc-cube-matrix", never, { "seriesTotalLabel": "seriesTotalLabel"; "xAxisTotalLabel": "xAxisTotalLabel"; "_cube": "cube"; "_xAxis": "xAxis"; "_series": "series"; "_indices": "indices"; "scope": "scope"; "sum": "sum"; "filters": "filters"; "loading": "loading"; "interactive": "interactive"; }, { "onExplore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixComponent, "bizdoc-cube-matrix", never, { "seriesTotalLabel": "seriesTotalLabel"; "xAxisTotalLabel": "xAxisTotalLabel"; "_cube": "cube"; "_xAxis": "xAxis"; "_series": "series"; "_indices": "indices"; "indexAt": "indexAt"; "placeAt": "placeAt"; "scope": "scope"; "sum": "sum"; "filters": "filters"; "loading": "loading"; "interactive": "interactive"; }, { "onExplore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
|
67
73
|
}
|
68
74
|
export declare type SumSettings = {
|
69
75
|
value?: string | number;
|
@@ -72,7 +78,8 @@ export declare type SumSettings = {
|
|
72
78
|
format?: 'percent' | 'currency' | 'number';
|
73
79
|
precision?: string;
|
74
80
|
accumulate?: boolean;
|
75
|
-
|
81
|
+
explorable?: boolean;
|
82
|
+
calculate?: 'quarter' | 'year' | 'month' | 'accumulate' | CalculateFn;
|
76
83
|
};
|
77
84
|
export declare interface CalculateFn {
|
78
85
|
(value: string, data: {
|
@@ -84,10 +91,10 @@ export declare interface CalculateFn {
|
|
84
91
|
declare type HeaderInfo = {
|
85
92
|
key: string;
|
86
93
|
value: any;
|
87
|
-
format?: 'percent' | 'currency' | 'number';
|
88
94
|
precision?: string;
|
89
|
-
accumulate?: boolean;
|
90
95
|
explorable?: boolean;
|
91
|
-
|
96
|
+
accumulate?: boolean;
|
97
|
+
sum?: SumSettings;
|
98
|
+
index?: CubeIndex;
|
92
99
|
};
|
93
100
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Observable } from "rxjs";
|
2
|
-
import {
|
2
|
+
import { CubeAxis } from "../../core/models";
|
3
3
|
import { SessionService } from "../../core/session.service";
|
4
4
|
import { RouterImpl } from "../../core/router";
|
5
5
|
import { CubeService, Pattern } from "../../cube/cube.service";
|
@@ -7,6 +7,7 @@ import { DocumentViewRef } from "../document-view-ref";
|
|
7
7
|
import { CubeBase } from "./cube-base";
|
8
8
|
import { CubeMatrixComponent, SumSettings } from "../../cube/matrix/table.component";
|
9
9
|
import { ScopeType } from "../../core/configuration";
|
10
|
+
import { AxisClickEvent } from "../../cube/declarations";
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export declare class CubeDocumentMatrixComponent extends CubeBase<Options> {
|
12
13
|
private _router;
|
@@ -24,7 +25,7 @@ export declare class CubeDocumentMatrixComponent extends CubeBase<Options> {
|
|
24
25
|
sum?: SumSettings | SumSettings[];
|
25
26
|
constructor(viewRef: DocumentViewRef<Options>, _router: RouterImpl, service: CubeService, session: SessionService);
|
26
27
|
onViewBind(): void;
|
27
|
-
explore(
|
28
|
+
explore(evt: AxisClickEvent): void;
|
28
29
|
/**
|
29
30
|
*
|
30
31
|
* @param value
|
package/package.json
CHANGED