@bizdoc/core 1.14.4 → 1.14.8

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 (52) hide show
  1. package/assets/bizdoc-schema.json +7 -2
  2. package/esm2020/lib/admin/document-trace/document-trace.component.mjs +2 -2
  3. package/esm2020/lib/admin/form/workflow/workflow.component.mjs +2 -2
  4. package/esm2020/lib/admin/profiler/profiler.component.mjs +3 -11
  5. package/esm2020/lib/app.component.mjs +4 -3
  6. package/esm2020/lib/browse/browse.pane.component.mjs +3 -4
  7. package/esm2020/lib/compose/compose.pane.component.mjs +4 -3
  8. package/esm2020/lib/compose/trace/trace.pane.component.mjs +2 -2
  9. package/esm2020/lib/core/configuration.mjs +5 -5
  10. package/esm2020/lib/core/guide/guide.component.mjs +27 -15
  11. package/esm2020/lib/core/guide/help-tip.component.mjs +58 -0
  12. package/esm2020/lib/core/router.mjs +3 -1
  13. package/esm2020/lib/core/slots/pane-ref.mjs +35 -29
  14. package/esm2020/lib/core/slots/router.directive.mjs +3 -5
  15. package/esm2020/lib/core/slots/router.service.mjs +1 -4
  16. package/esm2020/lib/core/slots/slots.component.mjs +129 -93
  17. package/esm2020/lib/cube/cube-view.component.mjs +2 -2
  18. package/esm2020/lib/cube/matrix/matrix.base.mjs +1 -1
  19. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +1 -1
  20. package/esm2020/lib/cube/view.pane.component.mjs +5 -5
  21. package/esm2020/lib/dashboard/dashboard.component.mjs +25 -17
  22. package/esm2020/lib/dashboard/widget-item.component.mjs +2 -1
  23. package/esm2020/lib/reports/report-viewer.component.mjs +1 -1
  24. package/esm2020/lib/reports/report.pane.component.mjs +2 -2
  25. package/esm2020/lib/scheduler/scheduler.pane.component.mjs +2 -2
  26. package/esm2020/lib/shared.module.mjs +4 -3
  27. package/esm2020/lib/views/view-item.component.mjs +3 -2
  28. package/esm2020/lib/views/views.component.mjs +11 -3
  29. package/esm2020/lib/views/views.pane.component.mjs +14 -10
  30. package/esm2020/public-api.mjs +2 -2
  31. package/fesm2015/bizdoc-core.mjs +347 -241
  32. package/fesm2015/bizdoc-core.mjs.map +1 -1
  33. package/fesm2020/bizdoc-core.mjs +348 -240
  34. package/fesm2020/bizdoc-core.mjs.map +1 -1
  35. package/lib/admin/profiler/profiler.component.d.ts +0 -1
  36. package/lib/core/configuration.d.ts +4 -4
  37. package/lib/core/guide/guide.component.d.ts +2 -2
  38. package/lib/core/guide/help-tip.component.d.ts +16 -0
  39. package/lib/core/router.d.ts +2 -0
  40. package/lib/core/slots/pane-ref.d.ts +47 -45
  41. package/lib/core/slots/router.service.d.ts +2 -3
  42. package/lib/core/slots/slots.component.d.ts +21 -14
  43. package/lib/cube/matrix/matrix.base.d.ts +2 -2
  44. package/lib/cube/matrix/matrix.pane.component.d.ts +14 -1
  45. package/lib/dashboard/dashboard.component.d.ts +6 -2
  46. package/lib/dashboard/widget-item.component.d.ts +2 -0
  47. package/lib/shared.module.d.ts +183 -182
  48. package/lib/views/view-item.component.d.ts +2 -0
  49. package/lib/views/views.component.d.ts +4 -0
  50. package/lib/views/views.pane.component.d.ts +3 -2
  51. package/package.json +1 -1
  52. package/public-api.d.ts +1 -1
@@ -64,7 +64,6 @@ export declare class ProfilerComponent implements OnInit, OnDestroy {
64
64
  /** */
65
65
  private _series;
66
66
  private _actionName;
67
- resize(): void;
68
67
  pointClick(evt: IPointEventArgs): void;
69
68
  userDisplay(item: UserInfo): string;
70
69
  trace(id: number): void;
@@ -30,10 +30,10 @@ export declare enum OpenPolicy {
30
30
  Defer = 4,
31
31
  Pinnable = 8,
32
32
  Stretch = 16,
33
- Tab = 32,
34
- Dialog = 96,
35
- Expandable = 128,
36
- Toggle = 256,
33
+ Expandable = 32,
34
+ Toggle = 64,
35
+ Tab = 128,
36
+ Dialog = 384,
37
37
  Dismissable = 512
38
38
  }
39
39
  export declare const DEFAULT_POLICY: OpenPolicy;
@@ -19,9 +19,9 @@ export declare class GuideComponent implements OnInit {
19
19
  ngOnInit(): void;
20
20
  /**
21
21
  *
22
- * @param i
22
+ * @param steps
23
23
  */
24
- private _move;
24
+ private _moveBy;
25
25
  keydown(evt: KeyboardEvent): void;
26
26
  next(): void;
27
27
  prev(): void;
@@ -0,0 +1,16 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { GuideService } from './guide.service';
3
+ import * as i0 from "@angular/core";
4
+ /** */
5
+ export declare class HelpTipComponent implements OnInit {
6
+ private _guide;
7
+ name: string;
8
+ _message: string;
9
+ showTip: boolean;
10
+ constructor(_guide: GuideService);
11
+ ngOnInit(): void;
12
+ open(evt: MouseEvent): void;
13
+ dismiss(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelpTipComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<HelpTipComponent, "bizdoc-help-tip", never, { "name": "name"; }, {}, never, never>;
16
+ }
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare abstract class RouterImpl {
5
5
  abstract navigate(commands: (string | number)[], extra?: any): any;
6
6
  }
7
+ /** desktop */
7
8
  export declare class PaneRouter extends RouterImpl {
8
9
  private _router;
9
10
  constructor(_router: PanesRouter);
@@ -11,6 +12,7 @@ export declare class PaneRouter extends RouterImpl {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<PaneRouter, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<PaneRouter>;
13
14
  }
15
+ /** mobile */
14
16
  export declare class NgRouter extends RouterImpl {
15
17
  private _router;
16
18
  constructor(_router: Router);
@@ -1,4 +1,3 @@
1
- import { ComponentPortal } from "@angular/cdk/portal";
2
1
  import { Type, Injector, InjectionToken } from "@angular/core";
3
2
  import { BehaviorSubject, Subject } from "rxjs";
4
3
  import { ParamMap, PaneRoute, OpenPolicy } from "../configuration";
@@ -13,55 +12,58 @@ export declare class CollapseNavigation extends NavigationBase {
13
12
  }
14
13
  export declare class BackNavigation extends NavigationBase {
15
14
  }
16
- export declare abstract class NavigationPaneBase extends NavigationBase {
15
+ export declare abstract class NavigationPaneBase<T = any> extends NavigationBase {
17
16
  private _pane;
18
- constructor(_pane: PaneRef<any>);
19
- get pane(): PaneRef<any>;
17
+ constructor(_pane: PaneRef<T>);
18
+ get pane(): PaneRef<T>;
20
19
  }
21
20
  export declare class NavigationStart extends NavigationPaneBase {
22
21
  }
23
- export declare class NavigationSelected extends NavigationPaneBase {
22
+ /** pane fucus change */
23
+ export declare class NavigationFocus extends NavigationPaneBase {
24
24
  }
25
- export declare class NavigationEnd extends NavigationPaneBase {
25
+ export declare class NavigationEnd<T = any> extends NavigationPaneBase<T> {
26
26
  }
27
- export declare class NavigationMode extends NavigationPaneBase {
27
+ export declare class NavigationMode<T = any> extends NavigationPaneBase<T> {
28
28
  readonly mode: PaneMode;
29
- constructor(mode: PaneMode, pane: PaneRef<any>);
29
+ constructor(mode: PaneMode, pane: PaneRef<T>);
30
30
  }
31
- export declare class NavigationFullscreen extends NavigationPaneBase {
32
- readonly fullscreen: boolean;
33
- constructor(fullscreen: boolean, pane: PaneRef<any>);
31
+ export declare class NavigationExpand<T = any> extends NavigationPaneBase<T> {
32
+ readonly expended: boolean;
33
+ constructor(expended: boolean, pane: PaneRef<T>);
34
34
  }
35
- export declare class NavigationClose extends NavigationPaneBase {
35
+ export declare class NavigationResize<T = any> extends NavigationPaneBase<T> {
36
+ readonly dimentions: Dimentions;
37
+ constructor(dimentions: Dimentions, pane: PaneRef<T>);
36
38
  }
37
- export declare class ParamNavigation extends NavigationPaneBase {
39
+ export declare class NavigationClose<T = any> extends NavigationPaneBase<T> {
40
+ }
41
+ export declare class ParamNavigation<T = any> extends NavigationPaneBase<T> {
38
42
  readonly params: ParamMap;
39
- constructor(params: ParamMap, pane: PaneRef<any>);
43
+ constructor(params: ParamMap, pane: PaneRef<T>);
40
44
  }
41
- export declare class QueryParamNavigation extends NavigationPaneBase {
45
+ export declare class QueryParamNavigation<T = any> extends NavigationPaneBase<T> {
42
46
  readonly queryParams: ParamMap;
43
- constructor(queryParams: ParamMap, pane: PaneRef<any>);
47
+ constructor(queryParams: ParamMap, pane: PaneRef<T>);
44
48
  }
45
49
  export declare type PaneMode = 'tab' | 'pane';
46
50
  export interface PaneOptions {
47
51
  title?: string;
48
52
  group?: string;
49
53
  help?: string;
50
- state?: {
51
- [name: string]: any;
52
- };
54
+ state?: any;
53
55
  openPolicy?: OpenPolicy;
54
56
  }
55
- export declare type PaneAction = 'expand' | 'focus' | 'close' | 'refresh';
56
- export declare class PaneRef<T = any> {
57
+ export declare type PaneCommand = 'expand' | 'focus' | 'close' | 'recycle';
58
+ /** */
59
+ export declare class PaneRef<ComponentType = any, DataType = ParamMap> {
57
60
  component: Type<any>;
58
61
  private _options;
59
- readonly _comm$: Subject<string>;
62
+ readonly _comm$: Subject<PaneCommand>;
60
63
  /** */
61
- readonly _data$: BehaviorSubject<ParamMap>;
64
+ readonly _data$: BehaviorSubject<DataType>;
62
65
  readonly _params$: BehaviorSubject<ParamMap>;
63
66
  readonly _queryParams$: BehaviorSubject<ParamMap>;
64
- readonly _resize$: BehaviorSubject<Dimentions>;
65
67
  readonly _events$: Subject<NavigationBase>;
66
68
  title: string;
67
69
  icon?: string;
@@ -71,40 +73,39 @@ export declare class PaneRef<T = any> {
71
73
  animation: string;
72
74
  group: string;
73
75
  help: string;
74
- expandable: boolean;
75
- _fullscreen: boolean;
76
- _instance: T;
76
+ _expanded: boolean;
77
+ _instance: ComponentType;
77
78
  _path: string;
78
79
  _queryString: string;
79
- _injector: Injector;
80
- _portal: ComponentPortal<T>;
81
80
  _mode: PaneMode;
82
- _stretch: boolean;
81
+ private _injector;
82
+ private _expandable;
83
+ private _stretchable;
84
+ get expandable(): boolean;
83
85
  get injector(): Injector;
84
- get fullscreen(): boolean;
86
+ get expanded(): boolean;
85
87
  get fullPath(): string;
86
- get instance(): T;
87
- get data(): any;
88
- get dataChange(): import("rxjs").Observable<ParamMap>;
88
+ get instance(): ComponentType;
89
+ get data(): DataType;
90
+ get dataChange(): import("rxjs").Observable<DataType>;
89
91
  get params(): ParamMap;
90
- get resize(): import("rxjs").Observable<Dimentions>;
91
92
  get paramsChange(): import("rxjs").Observable<ParamMap>;
92
93
  get queryString(): string;
93
94
  get queryParams(): ParamMap;
94
95
  get queryParamsChange(): import("rxjs").Observable<ParamMap>;
95
96
  get events(): import("rxjs").Observable<NavigationBase>;
97
+ get resized(): import("rxjs").Observable<NavigationBase>;
96
98
  get closing(): import("rxjs").Observable<NavigationBase>;
97
- get modeChange(): import("rxjs").Observable<NavigationBase>;
98
- get fullscreenChange(): import("rxjs").Observable<NavigationBase>;
99
+ get expandeding(): import("rxjs").Observable<NavigationBase>;
99
100
  get path(): string;
100
101
  get mode(): PaneMode;
101
- get parent(): PaneRef<any>;
102
- get stretch(): boolean;
103
- set stretch(val: boolean);
102
+ get parent(): PaneRef<any, ParamMap>;
103
+ get stretchable(): boolean;
104
+ set stretchable(val: boolean);
104
105
  get dialog(): boolean;
105
106
  get dismissable(): boolean;
106
107
  get route(): PaneRoute;
107
- constructor(component: Type<any>, mode: PaneMode, _options: {
108
+ constructor(component: Type<any>, injector: Injector, _options: {
108
109
  path?: string;
109
110
  route?: PaneRoute;
110
111
  title?: string;
@@ -113,19 +114,20 @@ export declare class PaneRef<T = any> {
113
114
  icon?: string;
114
115
  animation?: string;
115
116
  help?: string;
116
- fullscreen?: boolean;
117
+ mode: PaneMode;
118
+ expanded?: boolean;
117
119
  dialog?: boolean;
118
- stretch?: boolean;
120
+ stretchable?: boolean;
119
121
  parent?: PaneRef<any>;
120
122
  queryString?: string;
121
- data?: ParamMap;
123
+ data?: DataType;
122
124
  params?: ParamMap;
123
125
  queryParams?: ParamMap;
124
126
  expandable?: boolean;
125
127
  dismissable?: boolean;
126
128
  });
127
129
  decendentOf(pane: PaneRef<any>): boolean;
128
- refresh(): void;
130
+ recycle(): void;
129
131
  focus(): void;
130
132
  close(): void;
131
133
  expand(): void;
@@ -3,11 +3,10 @@ import { Subject } from 'rxjs';
3
3
  import { OpenPolicy } from '../configuration';
4
4
  import { NavigationBase, PaneRef } from './pane-ref';
5
5
  import * as i0 from "@angular/core";
6
+ export declare type RouterCommand = 'collapse';
6
7
  export declare class PanesRouter {
7
8
  readonly _events$: Subject<NavigationBase>;
8
- readonly _comm$: Subject<string>;
9
- _active: PaneRef;
10
- get active(): PaneRef;
9
+ readonly _comm$: Subject<"collapse">;
11
10
  readonly _navigate$: Subject<{
12
11
  commands?: any[];
13
12
  component?: ComponentType<any>;
@@ -6,7 +6,7 @@ import { PanesRouter } from './router.service';
6
6
  import { SessionService } from '../session.service';
7
7
  import { CdkScrollable, ComponentType } from '@angular/cdk/overlay';
8
8
  import { WindowTitleService } from '../window-title.service';
9
- import { PaneRoute } from '../configuration';
9
+ import { PaneRoute, ParamMap } from '../configuration';
10
10
  import { GuideService } from '../guide/guide.service';
11
11
  import * as i0 from "@angular/core";
12
12
  declare global {
@@ -49,10 +49,11 @@ export declare class SlotsComponent implements OnInit, OnDestroy {
49
49
  };
50
50
  readonly ripple: RippleConfig;
51
51
  accent: string;
52
- private _navigating;
52
+ private _navigationInProcess;
53
53
  private _repository;
54
54
  private readonly _pending;
55
55
  private readonly _rtl;
56
+ private readonly _resizing;
56
57
  private readonly _destroy;
57
58
  constructor(data: ExtendedRoute[], _session: SessionService, _cd: ChangeDetectorRef, _router: PanesRouter, _title: WindowTitleService, _guide: GuideService, _injector: Injector);
58
59
  ngOnInit(): void;
@@ -83,12 +84,8 @@ export declare class SlotsComponent implements OnInit, OnDestroy {
83
84
  */
84
85
  private _navParams;
85
86
  /** */
86
- private _sync;
87
- /**
88
- *
89
- * @param mode
90
- */
91
- private _history;
87
+ private _syncBrowserHistory;
88
+ private _constructHistoryState;
92
89
  drop(evt: CdkDragDrop<string, string>): void;
93
90
  togglePinned(pane: PaneRef<any>): void;
94
91
  private _queryString;
@@ -121,8 +118,8 @@ export declare class SlotsComponent implements OnInit, OnDestroy {
121
118
  */
122
119
  private _parentstate;
123
120
  private _resolve;
124
- add<T>(component: ComponentType<T>, options?: PaneOptions): PaneRef<T>;
125
- insert<T>(position: number, component: ComponentType<T>, options?: PaneOptions): PaneRef<T>;
121
+ add<T>(component: ComponentType<T>, options?: PaneOptions): PaneRef<T, ParamMap>;
122
+ insert<T>(position: number, component: ComponentType<T>, options?: PaneOptions): PaneRef<T, ParamMap>;
126
123
  private _insertPane;
127
124
  /**
128
125
  *
@@ -138,22 +135,32 @@ export declare class SlotsComponent implements OnInit, OnDestroy {
138
135
  private _insertTab;
139
136
  guide(name: string): void;
140
137
  back(): void;
141
- private _back;
138
+ /**
139
+ *
140
+ * @param steps
141
+ */
142
+ private _navBack;
142
143
  tabBack(): void;
143
144
  /**
144
145
  *
145
- * @param e
146
+ * @param command
146
147
  * @param pane
147
148
  */
148
- private _action;
149
+ private _paneCommand;
149
150
  /**
150
151
  * escape
151
152
  * @param event
152
153
  */
153
154
  collapse(): Promise<void>;
154
155
  onResize(): void;
156
+ /** */
155
157
  private _resize;
156
158
  closeTab(position: number): void;
159
+ /**
160
+ *
161
+ * @param pane
162
+ */
163
+ private _closing;
157
164
  expandPane(): void;
158
165
  private _getHistoryStep;
159
166
  expandTab(): void;
@@ -186,7 +193,7 @@ export declare class SlotsComponent implements OnInit, OnDestroy {
186
193
  scrollTo(index: number): void;
187
194
  private get _children();
188
195
  done(): void;
189
- navigationArrows(_?: Event): void;
196
+ enableNavigationArrows(_?: Event): void;
190
197
  scrollBy(n: number): void;
191
198
  focus(index: any): void;
192
199
  onPaneResize(pane: PaneRef<any>, event: MouseEvent): void;
@@ -10,8 +10,8 @@ export declare abstract class CubeMatrixBase {
10
10
  private _ds;
11
11
  protected _session: SessionService;
12
12
  table: CubeMatrixComponent;
13
- seriesTotalLabel: string;
14
- xAxisTotalLabel: string;
13
+ seriesTotalLabel?: string;
14
+ xAxisTotalLabel?: string;
15
15
  indexAt?: 'series' | 'xAxis';
16
16
  placeAt?: 'leading' | 'trailing';
17
17
  loading: boolean;
@@ -8,16 +8,29 @@ import { AxesMap } from '../../core/models';
8
8
  import { CubeMatrixBase } from './matrix.base';
9
9
  import { TranslateService } from '../../core/translate.service';
10
10
  import { AxisClickEvent } from '../declarations';
11
+ import { SumSettings } from './table.component';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class CubeMatrixPaneComponent extends CubeMatrixBase implements OnInit {
13
14
  private _pane;
14
15
  private _router;
15
16
  private _translate;
16
17
  /** cube-info ctor */
17
- constructor(_pane: PaneRef<CubeMatrixPaneComponent>, _router: PanesRouter, _translate: TranslateService, service: CubeService, ds: DatasourceService, session: SessionService);
18
+ constructor(_pane: PaneRef<CubeMatrixPaneComponent, Data>, _router: PanesRouter, _translate: TranslateService, service: CubeService, ds: DatasourceService, session: SessionService);
18
19
  ngOnInit(): void;
19
20
  onFilter(queryParams: AxesMap): void;
20
21
  explore(evt: AxisClickEvent): void;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixPaneComponent, never>;
22
23
  static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixPaneComponent, "ng-component", never, {}, {}, never, never>;
23
24
  }
25
+ interface Data {
26
+ indices: string | string[];
27
+ /** */
28
+ aggregation: string[];
29
+ sum: SumSettings | SumSettings[];
30
+ indexAt?: 'series' | 'xAxis';
31
+ placeAt?: 'leading' | 'trailing';
32
+ selection?: string | string[];
33
+ xAxisTotalLabel?: string;
34
+ seriesTotalLabel?: string;
35
+ }
36
+ export {};
@@ -5,16 +5,20 @@ import { MediaObserver } from '@angular/flex-layout';
5
5
  import { WindowTitleService } from '../core/window-title.service';
6
6
  import { TranslateService } from '../core/translate.service';
7
7
  import { GuideService } from '../core/guide/guide.service';
8
+ import { WidgetItemComponent } from './widget-item.component';
9
+ import { PaneRef } from '../core/slots/pane-ref';
10
+ import { QueryList } from '@angular/core';
8
11
  import * as i0 from "@angular/core";
9
12
  export declare class DashboardComponent implements OnDestroy {
10
13
  private _guide;
14
+ components: QueryList<WidgetItemComponent>;
11
15
  private readonly _destroy;
12
16
  /** dashboard ctor */
13
17
  readonly widgets: Widget[];
14
18
  cols: number;
15
- constructor(_guide: GuideService, observableMedia: MediaObserver, session: SessionService, title: WindowTitleService, translate: TranslateService);
19
+ constructor(_guide: GuideService, observableMedia: MediaObserver, session: SessionService, pane: PaneRef, title: WindowTitleService, translate: TranslateService);
16
20
  guide(name: string): void;
17
21
  ngOnDestroy(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, [null, null, null, { optional: true; }, null, null]>;
19
23
  static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "bizdoc-dashboard", never, {}, {}, never, never>;
20
24
  }
@@ -1,6 +1,7 @@
1
1
  import { ViewContainerRef, OnDestroy, Injector, AfterViewInit, OnInit } from '@angular/core';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { Widget } from '../core/models';
4
+ import { WidgetRef } from "./widget-ref";
4
5
  import { BizDocComponentFactoryResolver } from '../core/component-factory-resolver';
5
6
  import { PromptService } from '../core/prompt.service';
6
7
  import { Popup } from '../core/popup/popup.service';
@@ -20,6 +21,7 @@ export declare class WidgetItemComponent implements OnInit, AfterViewInit, OnDes
20
21
  args: any;
21
22
  constructor(_popup: Popup, _http: HttpClient, _sb: PromptService, _injector: Injector, _vc: ViewContainerRef, _cf: BizDocComponentFactoryResolver);
22
23
  ngOnInit(): void;
24
+ get widgetRef(): WidgetRef<any>;
23
25
  ngAfterViewInit(): void;
24
26
  private _dim;
25
27
  refresh(args?: any): void;