@bizdoc/core 1.12.3 → 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/esm2020/lib/browse/browse-items.component.mjs +42 -34
- package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +35 -14
- 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/form.component.mjs +6 -3
- package/esm2020/lib/compose/trace/flow.component.mjs +82 -45
- package/esm2020/lib/compose/trace/trace.base.mjs +6 -2
- package/esm2020/lib/compose/trace/trace.component.mjs +131 -146
- package/esm2020/lib/core/models.mjs +1 -1
- package/esm2020/lib/core/translations.mjs +16 -4
- package/esm2020/lib/cube/cube-info.service.mjs +3 -3
- package/esm2020/lib/cube/cube.service.mjs +5 -3
- package/esm2020/lib/cube/matrix/matrix.base.mjs +1 -1
- package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +1 -1
- package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +5 -3
- package/esm2020/lib/cube/matrix/popup.component.mjs +7 -5
- package/esm2020/lib/cube/matrix/table.component.mjs +133 -120
- package/esm2020/lib/views/cube/matrix.component.mjs +1 -1
- package/fesm2015/bizdoc-core.mjs +617 -518
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +611 -517
- 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/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 +4 -1
- package/lib/core/translations.d.ts +12 -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/table.component.d.ts +10 -4
- 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,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
@@ -84,6 +84,7 @@ export interface WorkflowInfo {
|
|
84
84
|
}
|
85
85
|
export interface RecipientModel<T = any> extends HeaderModel<T>, DocumentModel<T> {
|
86
86
|
actions?: string[];
|
87
|
+
fyi: boolean;
|
87
88
|
originId?: number;
|
88
89
|
tags?: string[];
|
89
90
|
}
|
@@ -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;
|
@@ -137,7 +138,9 @@ export interface Recipient {
|
|
137
138
|
estimate?: boolean;
|
138
139
|
action?: string;
|
139
140
|
toId?: string;
|
141
|
+
fyi?: boolean;
|
140
142
|
id: number;
|
143
|
+
note?: string;
|
141
144
|
}
|
142
145
|
export interface ScheduledEvent {
|
143
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;
|
@@ -212,8 +214,11 @@ export declare const STRINGS: {
|
|
212
214
|
ReceivedTime: string;
|
213
215
|
ReceivedBy: string;
|
214
216
|
ActionTakenBy: string;
|
217
|
+
ActionTakenByTo: string;
|
215
218
|
YouTakenActionBy: string;
|
219
|
+
YouTakenActionByTo: string;
|
216
220
|
ActionTakenByYou: string;
|
221
|
+
ActionTakenByYouTo: string;
|
217
222
|
EscalatedTo: string;
|
218
223
|
EscalatedFrom: string;
|
219
224
|
EscalatedBy: string;
|
@@ -373,6 +378,7 @@ export declare const STRINGS: {
|
|
373
378
|
Submitted: string;
|
374
379
|
SubmittedMany: string;
|
375
380
|
Sent: string;
|
381
|
+
SentTo: string;
|
376
382
|
SentMany: string;
|
377
383
|
Number: string;
|
378
384
|
Owner: string;
|
@@ -715,7 +721,9 @@ export declare const STRINGS: {
|
|
715
721
|
ShowDeleted: string;
|
716
722
|
Days: string;
|
717
723
|
Name: string;
|
724
|
+
ActionTo: string;
|
718
725
|
YouSubstituteActionTaken: string;
|
726
|
+
YouSubstituteActionTakenTo: string;
|
719
727
|
SubstitutingYou: string;
|
720
728
|
SubstitutingYouMale: string;
|
721
729
|
SubstitutingYouFemale: string;
|
@@ -744,8 +752,11 @@ export declare const STRINGS: {
|
|
744
752
|
YouTakenAction: string;
|
745
753
|
YouTakenActionTo: string;
|
746
754
|
ActionTakenBy: string;
|
755
|
+
ActionTakenByTo: string;
|
747
756
|
YouTakenActionBy: string;
|
757
|
+
YouTakenActionByTo: string;
|
748
758
|
ActionTakenByYou: string;
|
759
|
+
ActionTakenByYouTo: string;
|
749
760
|
Sound: string;
|
750
761
|
TaggedInComments: string;
|
751
762
|
TaggedYourselfNotify: string;
|
@@ -889,6 +900,7 @@ export declare const STRINGS: {
|
|
889
900
|
Submitted: string;
|
890
901
|
SubmittedMany: string;
|
891
902
|
Sent: string;
|
903
|
+
SentTo: string;
|
892
904
|
SentMany: string;
|
893
905
|
Task: string;
|
894
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;
|
@@ -26,6 +26,8 @@ export declare class CubeMatrixComponent implements OnChanges {
|
|
26
26
|
_xAxis: string;
|
27
27
|
_series: string;
|
28
28
|
private _indices?;
|
29
|
+
indexAt: 'series' | 'xAxis';
|
30
|
+
placeAt: 'leading' | 'trailing';
|
29
31
|
scope: ScopeType;
|
30
32
|
private _sum;
|
31
33
|
set sum(val: SumSettings | SumSettings[]);
|
@@ -54,18 +56,20 @@ export declare class CubeMatrixComponent implements OnChanges {
|
|
54
56
|
private _prepare;
|
55
57
|
constructor(_sb: PromptService, _service: CubeService, _session: SessionService, _translate: TranslateService, _ds: DatasourceService);
|
56
58
|
ngOnChanges(changes: SimpleChanges): void;
|
59
|
+
private _addindices;
|
57
60
|
private _addsumheaders;
|
58
61
|
refresh(): void;
|
59
|
-
private
|
62
|
+
private _serialize;
|
60
63
|
private _clone;
|
61
64
|
private _totals;
|
62
65
|
private _calculatesum;
|
66
|
+
private _stringify;
|
63
67
|
private _format;
|
64
|
-
explore(column: HeaderInfo, row: HeaderInfo
|
68
|
+
explore(column: HeaderInfo, row: HeaderInfo): void;
|
65
69
|
export(): void;
|
66
70
|
_move(x: any, y: any): void;
|
67
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixComponent, never>;
|
68
|
-
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>;
|
69
73
|
}
|
70
74
|
export declare type SumSettings = {
|
71
75
|
value?: string | number;
|
@@ -75,7 +79,7 @@ export declare type SumSettings = {
|
|
75
79
|
precision?: string;
|
76
80
|
accumulate?: boolean;
|
77
81
|
explorable?: boolean;
|
78
|
-
calculate?: 'quarter' | 'year' | 'month' | CalculateFn;
|
82
|
+
calculate?: 'quarter' | 'year' | 'month' | 'accumulate' | CalculateFn;
|
79
83
|
};
|
80
84
|
export declare interface CalculateFn {
|
81
85
|
(value: string, data: {
|
@@ -89,6 +93,8 @@ declare type HeaderInfo = {
|
|
89
93
|
value: any;
|
90
94
|
precision?: string;
|
91
95
|
explorable?: boolean;
|
96
|
+
accumulate?: boolean;
|
92
97
|
sum?: SumSettings;
|
98
|
+
index?: CubeIndex;
|
93
99
|
};
|
94
100
|
export {};
|
package/package.json
CHANGED