@bizdoc/core 1.12.3 → 1.12.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.
Files changed (55) hide show
  1. package/esm2020/lib/admin/document-trace/trace-element.component.mjs +3 -3
  2. package/esm2020/lib/browse/browse-items.component.mjs +43 -35
  3. package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +35 -14
  4. package/esm2020/lib/compose/action/action-picker.component.mjs +15 -14
  5. package/esm2020/lib/compose/action/action.base.mjs +9 -4
  6. package/esm2020/lib/compose/action/action.pane.dialog.exp.mjs +13 -12
  7. package/esm2020/lib/compose/compose.pane.component.mjs +4 -3
  8. package/esm2020/lib/compose/form.component.mjs +6 -3
  9. package/esm2020/lib/compose/trace/flow.component.mjs +96 -52
  10. package/esm2020/lib/compose/trace/trace.base.mjs +6 -2
  11. package/esm2020/lib/compose/trace/trace.component.mjs +131 -146
  12. package/esm2020/lib/core/configuration.mjs +2 -1
  13. package/esm2020/lib/core/hub.service.mjs +1 -1
  14. package/esm2020/lib/core/mailbox.service.mjs +3 -1
  15. package/esm2020/lib/core/models.mjs +1 -1
  16. package/esm2020/lib/core/slots/router.service.mjs +4 -16
  17. package/esm2020/lib/core/slots/slots.component.mjs +8 -6
  18. package/esm2020/lib/core/translations.mjs +17 -5
  19. package/esm2020/lib/cube/cube-info.service.mjs +3 -3
  20. package/esm2020/lib/cube/cube.service.mjs +5 -3
  21. package/esm2020/lib/cube/explore/explore-items.component.mjs +5 -3
  22. package/esm2020/lib/cube/explore/explore.pane.component.mjs +3 -1
  23. package/esm2020/lib/cube/matrix/matrix.base.mjs +1 -1
  24. package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +1 -1
  25. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +5 -3
  26. package/esm2020/lib/cube/matrix/popup.component.mjs +7 -5
  27. package/esm2020/lib/cube/matrix/table.component.mjs +136 -123
  28. package/esm2020/lib/cube/pivot/pivot.component.mjs +76 -78
  29. package/esm2020/lib/home/home-base.component.mjs +2 -2
  30. package/esm2020/lib/routes.desktop.mjs +2 -2
  31. package/esm2020/lib/shared.module.mjs +17 -2
  32. package/esm2020/lib/views/cube/matrix.component.mjs +1 -1
  33. package/fesm2015/bizdoc-core.mjs +751 -627
  34. package/fesm2015/bizdoc-core.mjs.map +1 -1
  35. package/fesm2020/bizdoc-core.mjs +744 -633
  36. package/fesm2020/bizdoc-core.mjs.map +1 -1
  37. package/lib/browse/browse-items.component.d.ts +3 -1
  38. package/lib/compose/action/action-picker.component.d.ts +2 -1
  39. package/lib/compose/action/action.base.d.ts +3 -1
  40. package/lib/compose/action/action.pane.dialog.exp.d.ts +2 -1
  41. package/lib/compose/trace/flow.component.d.ts +0 -1
  42. package/lib/compose/trace/trace.base.d.ts +5 -2
  43. package/lib/compose/trace/trace.component.d.ts +1 -19
  44. package/lib/core/configuration.d.ts +2 -1
  45. package/lib/core/hub.service.d.ts +1 -0
  46. package/lib/core/models.d.ts +6 -1
  47. package/lib/core/slots/router.service.d.ts +0 -4
  48. package/lib/core/translations.d.ts +12 -0
  49. package/lib/cube/cube-info.service.d.ts +2 -0
  50. package/lib/cube/cube.service.d.ts +1 -0
  51. package/lib/cube/explore/explore-items.component.d.ts +1 -0
  52. package/lib/cube/matrix/matrix.base.d.ts +2 -0
  53. package/lib/cube/matrix/table.component.d.ts +10 -4
  54. package/lib/cube/pivot/pivot.component.d.ts +2 -1
  55. 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;
@@ -30,7 +30,6 @@ export declare class FlowViewComponent extends TraceBase implements OnChanges, O
30
30
  ngOnChanges(_changes: SimpleChanges): void;
31
31
  private _initialize;
32
32
  private _refresh;
33
- refresh(): void;
34
33
  /**
35
34
  *
36
35
  * @param obj
@@ -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 abstract class TraceBase {
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
- abstract refresh(): any;
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 | 'Owner' | 'Pending' | 'Estimate';
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 {};
@@ -32,7 +32,8 @@ export declare enum OpenPolicy {
32
32
  Expandable = 16,
33
33
  Tab = 48,
34
34
  Dialog = 112,
35
- Dismissable = 128
35
+ Dismissable = 128,
36
+ Toggle = 256
36
37
  }
37
38
  export declare const DEFAULT_POLICY: OpenPolicy;
38
39
  export interface BizDocChildConfig {
@@ -58,6 +58,7 @@ export declare class HubService {
58
58
  static ɵprov: i0.ɵɵInjectableDeclaration<HubService>;
59
59
  }
60
60
  interface NewMailEvent {
61
+ userId: string;
61
62
  model: RecipientModel<any>;
62
63
  }
63
64
  interface MailUpdateEvent {
@@ -84,16 +84,19 @@ 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
  }
90
91
  export interface ConnectorInfo {
92
+ virtualizing?: boolean;
91
93
  estimate: boolean;
92
94
  time?: Date;
93
95
  sourceId: string;
94
96
  targetId: string;
95
97
  }
96
98
  export interface NodeInfo {
99
+ virtualizing?: boolean;
97
100
  id: string;
98
101
  /** node */
99
102
  type: string;
@@ -102,12 +105,12 @@ export interface NodeInfo {
102
105
  /** seconds */
103
106
  standardTime?: number;
104
107
  error?: string;
105
- fyi?: boolean;
106
108
  }
107
109
  export interface Log {
108
110
  recipientId?: number;
109
111
  userId: string;
110
112
  byId?: string;
113
+ toId?: string;
111
114
  time: Date;
112
115
  model?: {};
113
116
  type: LogType;
@@ -137,7 +140,9 @@ export interface Recipient {
137
140
  estimate?: boolean;
138
141
  action?: string;
139
142
  toId?: string;
143
+ fyi?: boolean;
140
144
  id: number;
145
+ note?: string;
141
146
  }
142
147
  export interface ScheduledEvent {
143
148
  id: number;
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from '@angular/cdk/portal';
2
- import { Type } from '@angular/core';
3
2
  import { Subject } from 'rxjs';
4
3
  import { OpenPolicy } from '../configuration';
5
4
  import { NavigationBase, PaneRef } from './pane-ref';
@@ -12,11 +11,8 @@ export declare class PanesRouter {
12
11
  readonly _navigate$: Subject<{
13
12
  commands?: any[];
14
13
  component?: ComponentType<any>;
15
- toggle?: boolean;
16
14
  } & NavigationOptions>;
17
15
  constructor();
18
- toggle(commands: any[] | Type<any>, options?: NavigationOptions): Promise<PaneRef<any>>;
19
- replace(url: string): void;
20
16
  navigate(commands: any[] | ComponentType<any>, options?: NavigationOptions): Promise<PaneRef<any>>;
21
17
  get events(): import("rxjs").Observable<NavigationBase>;
22
18
  collapse(): void;
@@ -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;
@@ -42,6 +42,7 @@ export declare class CubeService {
42
42
  /** include one or more index serie */
43
43
  indices?: string | string[];
44
44
  groupIndices?: boolean;
45
+ inverseIndices?: boolean;
45
46
  /** axes */
46
47
  filters?: {
47
48
  [axis: string]: AxisType;
@@ -16,6 +16,7 @@ export declare class ExploreItemsComponent implements OnInit, OnChanges, OnDestr
16
16
  private _translate;
17
17
  readonly CURRENCY_FORMAT: string;
18
18
  private _pageSize;
19
+ private _data;
19
20
  get pageSize(): number;
20
21
  set pageSize(value: number);
21
22
  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 _stringify;
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 | CubeIndex): void;
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 {};
@@ -92,7 +92,8 @@ export declare class CubePivotComponent implements CubeViewerComponent, OnInit,
92
92
  * @param e
93
93
  */
94
94
  pointClick(e: IPointEventArgs): void;
95
- exportToExcel(title: string): any;
95
+ exportToExcel(title: string): Promise<void>;
96
+ private _exportExcel;
96
97
  private _draw;
97
98
  dataBound(_: any): void;
98
99
  resize(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "1.12.3",
3
+ "version": "1.12.4",
4
4
  "author": "Moding Ltd.",
5
5
  "homepage": "https://github.com/moding-il/bizdoc.core",
6
6
  "license": "https://github.com/moding-il/bizdoc.core/blob/master/License.md",