@bizdoc/core 1.11.3 → 1.12.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.
Files changed (42) hide show
  1. package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +4 -2
  2. package/esm2020/lib/compose/action/return-action.component.mjs +11 -5
  3. package/esm2020/lib/compose/trace/flow.component.mjs +26 -7
  4. package/esm2020/lib/compose/trace/people.component.mjs +3 -2
  5. package/esm2020/lib/compose/trace/trace.component.mjs +21 -8
  6. package/esm2020/lib/core/controls/combination-picker.mjs +3 -3
  7. package/esm2020/lib/core/controls/file.input.mjs +7 -4
  8. package/esm2020/lib/core/mailbox.service.mjs +4 -6
  9. package/esm2020/lib/core/models.mjs +1 -1
  10. package/esm2020/lib/core/slots/slots.component.mjs +4 -4
  11. package/esm2020/lib/core/translations.mjs +11 -5
  12. package/esm2020/lib/cube/declarations.mjs +1 -1
  13. package/esm2020/lib/cube/explore/explore-items.component.mjs +4 -4
  14. package/esm2020/lib/cube/explore/explore.pane.component.mjs +5 -4
  15. package/esm2020/lib/cube/grid/spreadsheet.component.mjs +5 -5
  16. package/esm2020/lib/cube/matrix/matrix.base.mjs +2 -5
  17. package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +5 -3
  18. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +9 -4
  19. package/esm2020/lib/cube/matrix/popup.component.mjs +3 -3
  20. package/esm2020/lib/cube/matrix/table.component.mjs +27 -24
  21. package/esm2020/lib/cube/parallel/parallel.component.mjs +2 -2
  22. package/esm2020/lib/dashboard/recents/recents.widget.mjs +24 -26
  23. package/esm2020/lib/home/options/options.component.mjs +4 -3
  24. package/esm2020/lib/views/cube/explore.component.mjs +7 -4
  25. package/esm2020/lib/views/cube/matrix.component.mjs +6 -4
  26. package/fesm2015/bizdoc-core.mjs +188 -129
  27. package/fesm2015/bizdoc-core.mjs.map +1 -1
  28. package/fesm2020/bizdoc-core.mjs +187 -129
  29. package/fesm2020/bizdoc-core.mjs.map +1 -1
  30. package/lib/compose/action/return-action.component.d.ts +3 -1
  31. package/lib/core/models.d.ts +3 -1
  32. package/lib/core/translations.d.ts +6 -0
  33. package/lib/cube/explore/explore-items.component.d.ts +1 -1
  34. package/lib/cube/matrix/matrix.base.d.ts +0 -1
  35. package/lib/cube/matrix/matrix.mobile.component.d.ts +2 -1
  36. package/lib/cube/matrix/matrix.pane.component.d.ts +2 -1
  37. package/lib/cube/matrix/table.component.d.ts +3 -2
  38. package/lib/dashboard/recents/recents.widget.d.ts +10 -9
  39. package/lib/home/options/options.component.d.ts +2 -1
  40. package/lib/views/cube/explore.component.d.ts +2 -0
  41. package/lib/views/cube/matrix.component.d.ts +3 -2
  42. package/package.json +1 -1
@@ -4,11 +4,13 @@ import { Recipient } from '../../core/models';
4
4
  import { ActionRef } from './action-ref';
5
5
  import { SessionService } from '../../core/session.service';
6
6
  import { AccountService } from '../../core/account.service';
7
+ import { OnInit } from '@angular/core';
7
8
  import * as i0 from "@angular/core";
8
- export declare class ReturnActionComponent implements ArgumentsComponent {
9
+ export declare class ReturnActionComponent implements ArgumentsComponent, OnInit {
9
10
  private _fb;
10
11
  readonly recipients: Recipient[];
11
12
  constructor(_fb: FormBuilder, actionRef: ActionRef, session: SessionService, accounts: AccountService);
13
+ ngOnInit(): void;
12
14
  readonly form: import("@angular/forms").FormGroup;
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ReturnActionComponent, never>;
14
16
  static ɵcmp: i0.ɵɵComponentDeclaration<ReturnActionComponent, "ng-component", never, {}, {}, never, never>;
@@ -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;
@@ -85,7 +86,6 @@ export interface RecipientModel<T = any> extends HeaderModel<T>, DocumentModel<T
85
86
  actions?: string[];
86
87
  originId?: number;
87
88
  tags?: string[];
88
- toId?: string;
89
89
  }
90
90
  export interface ConnectorInfo {
91
91
  estimate: boolean;
@@ -136,6 +136,7 @@ export interface Recipient {
136
136
  replied?: Date;
137
137
  estimate?: boolean;
138
138
  action?: string;
139
+ toId?: string;
139
140
  id: number;
140
141
  }
141
142
  export interface ScheduledEvent {
@@ -247,6 +248,7 @@ export interface Profile {
247
248
  photo?: string;
248
249
  userId: string;
249
250
  byId?: string;
251
+ byName?: string;
250
252
  name: string;
251
253
  impersonating?: string;
252
254
  available?: AvailabilityState;
@@ -205,7 +205,9 @@ export declare const STRINGS: {
205
205
  SubstitutingFor: string;
206
206
  SubstitutingNote: string;
207
207
  ActionTaken: string;
208
+ ActionTakenTo: string;
208
209
  YouTakenAction: string;
210
+ YouTakenActionTo: string;
209
211
  YouReceived: string;
210
212
  ReceivedTime: string;
211
213
  ReceivedBy: string;
@@ -516,6 +518,8 @@ export declare const STRINGS: {
516
518
  'he-IL': {
517
519
  Condition: string;
518
520
  DragFile: string;
521
+ DragFileMale: string;
522
+ DragFileFemale: string;
519
523
  Mention: string;
520
524
  Working: string;
521
525
  WorkingMale: string;
@@ -729,6 +733,7 @@ export declare const STRINGS: {
729
733
  SubstitutingByYouFemale: string;
730
734
  SubstitutingNote: string;
731
735
  ActionTaken: string;
736
+ ActionTakenTo: string;
732
737
  YouReceived: string;
733
738
  ReceivedTimeFemale: string;
734
739
  ReceivedTimeMale: string;
@@ -737,6 +742,7 @@ export declare const STRINGS: {
737
742
  ReceivedByMale: string;
738
743
  ReceivedByFemale: string;
739
744
  YouTakenAction: string;
745
+ YouTakenActionTo: string;
740
746
  ActionTakenBy: string;
741
747
  YouTakenActionBy: string;
742
748
  ActionTakenByYou: string;
@@ -39,7 +39,6 @@ export declare class ExploreItemsComponent implements OnInit, OnChanges, OnDestr
39
39
  /** drill-down ctor */
40
40
  constructor(_service: CubeService, _sb: PromptService, _session: SessionService, _translate: TranslateService);
41
41
  ngOnInit(): void;
42
- ngOnDestroy(): void;
43
42
  refresh(): void;
44
43
  ngOnChanges(_: SimpleChanges): void;
45
44
  /** */
@@ -48,6 +47,7 @@ export declare class ExploreItemsComponent implements OnInit, OnChanges, OnDestr
48
47
  private _datasource;
49
48
  expand(item: any): void;
50
49
  exportExcel(): void;
50
+ ngOnDestroy(): void;
51
51
  static ɵfac: i0.ɵɵFactoryDeclaration<ExploreItemsComponent, never>;
52
52
  static ɵcmp: i0.ɵɵComponentDeclaration<ExploreItemsComponent, "bizdoc-cube-explore", never, { "pageSize": "pageSize"; "cube": "cube"; "index": "index"; "scope": "scope"; "axes": "axes"; "loading": "loading"; }, { "explore": "explore"; "load": "load"; "loadingChange": "loadingChange"; }, never, never>;
53
53
  }
@@ -63,7 +63,6 @@ export declare abstract class CubeMatrixBase {
63
63
  * @param pattern
64
64
  */
65
65
  aggregate(pattern: Pattern): void;
66
- private _copyAxesToFilterValues;
67
66
  reset(): void;
68
67
  refresh(): void;
69
68
  static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixBase, never>;
@@ -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(axes: AxesMap): void;
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(queryParams: AxesMap): void;
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 {
@@ -33,7 +34,7 @@ export declare class CubeMatrixComponent implements OnChanges {
33
34
  loading: boolean;
34
35
  get interactive(): boolean;
35
36
  set interactive(value: boolean);
36
- readonly onExplore: EventEmitter<AxesMap>;
37
+ readonly onExplore: EventEmitter<AxisClickEvent>;
37
38
  readonly loadingChange: EventEmitter<boolean>;
38
39
  rows: HeaderInfo[];
39
40
  columns: HeaderInfo[];
@@ -59,7 +60,7 @@ export declare class CubeMatrixComponent implements OnChanges {
59
60
  private _totals;
60
61
  private _calculatesum;
61
62
  private _format;
62
- explore(column: HeaderInfo, row: HeaderInfo): void;
63
+ explore(column: HeaderInfo, row: HeaderInfo | CubeIndex): void;
63
64
  export(): void;
64
65
  move(x: any, y: any): void;
65
66
  static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixComponent, never>;
@@ -7,33 +7,34 @@ import { FormControl } from '@angular/forms';
7
7
  import { BizDocConfig } from '../../core/configuration';
8
8
  import { RouterImpl } from '../../core/router';
9
9
  import { SessionService } from '../../core/session.service';
10
+ import { PromptService } from '../../core/prompt.service';
10
11
  import * as i0 from "@angular/core";
11
- export declare class RecentsWidget implements WidgetComponent<MailInfo[]>, OnInit, OnDestroy {
12
+ export declare class RecentsWidget implements WidgetComponent<RecipientInfo[]>, OnInit, OnDestroy {
12
13
  private _router;
13
14
  private _service;
14
- dataSource: MatTableDataSource<MailInfo>;
15
- loading: boolean;
15
+ private _ps;
16
+ dataSource: MatTableDataSource<RecipientInfo>;
16
17
  height: string;
17
18
  readonly search: FormControl;
18
19
  readonly enableAnalysis: boolean;
19
20
  readonly columns: string[];
20
21
  private readonly _destroy;
21
- private readonly _loading;
22
- constructor(_router: RouterImpl, _service: MailboxService, ref: WidgetRef, session: SessionService, config: BizDocConfig);
22
+ constructor(_router: RouterImpl, _service: MailboxService, _ps: PromptService, ref: WidgetRef, session: SessionService, config: BizDocConfig);
23
23
  ngOnInit(): void;
24
- onBind(data: MailInfo[]): void;
24
+ onBind(data: RecipientInfo[]): void;
25
25
  private _navigate;
26
- open(item: MailInfo): void;
27
- view(item: MailInfo, evt: Event): void;
26
+ open(item: RecipientInfo): void;
27
+ view(item: RecipientInfo, evt: Event): void;
28
28
  ngOnDestroy(): void;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<RecentsWidget, never>;
30
30
  static ɵcmp: i0.ɵɵComponentDeclaration<RecentsWidget, "ng-component", never, {}, {}, never, never>;
31
31
  }
32
- interface MailInfo {
32
+ interface RecipientInfo {
33
33
  id: number;
34
34
  formId: string;
35
35
  number?: string;
36
36
  subject?: string;
37
37
  stateId: string;
38
+ loading?: boolean;
38
39
  }
39
40
  export {};
@@ -18,9 +18,10 @@ export declare class QuickOptionsComponent implements OnInit, OnDestroy {
18
18
  private _session;
19
19
  private _dialog;
20
20
  readonly name: string;
21
- available: AvailabilityState;
21
+ readonly by: string;
22
22
  online: boolean;
23
23
  theme: string;
24
+ available: AvailabilityState;
24
25
  readonly languages: string[];
25
26
  readonly themes: Theme[];
26
27
  readonly guides: Guide[];
@@ -21,6 +21,7 @@ export declare class CubeExploreViewComponent extends CubeBase<Options> {
21
21
  }[]>;
22
22
  };
23
23
  filters: CubeAxis[];
24
+ pageSize: number;
24
25
  constructor(viewRef: DocumentViewRef<Options>, _sb: PromptService, _router: RouterImpl, service: CubeService, _ds: DatasourceService, session: SessionService);
25
26
  onViewBind(): void;
26
27
  /**
@@ -37,5 +38,6 @@ interface Options {
37
38
  aggregate?: string[];
38
39
  filters: string[];
39
40
  scope?: ScopeType;
41
+ pageSize?: number;
40
42
  }
41
43
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Observable } from "rxjs";
2
- import { AxesMap, CubeAxis } from "../../core/models";
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(axes: AxesMap): void;
28
+ explore(evt: AxisClickEvent): void;
28
29
  /**
29
30
  *
30
31
  * @param value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "1.11.3",
3
+ "version": "1.12.1",
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",