@bizdoc/core 1.15.6 → 1.16.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 (109) hide show
  1. package/assets/bizdoc-schema.json +14 -13
  2. package/esm2020/lib/admin/admin-menu.component.mjs +3 -3
  3. package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +113 -44
  4. package/esm2020/lib/admin/configuration-designer/designer.base.mjs +43 -37
  5. package/esm2020/lib/admin/configuration-designer/designer.component.mjs +83 -84
  6. package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +8 -6
  7. package/esm2020/lib/admin/configuration-designer/elements/analysis-view.component.mjs +7 -7
  8. package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +5 -7
  9. package/esm2020/lib/admin/configuration-designer/elements/box-form.component.mjs +3 -3
  10. package/esm2020/lib/admin/configuration-designer/elements/configuration-datasource.component.mjs +31 -26
  11. package/esm2020/lib/admin/configuration-designer/elements/cube-index-utility.component.mjs +32 -0
  12. package/esm2020/lib/admin/configuration-designer/elements/cube-view.component.mjs +3 -3
  13. package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +91 -55
  14. package/esm2020/lib/admin/configuration-designer/elements/documents-widget.component.mjs +2 -2
  15. package/esm2020/lib/admin/configuration-designer/elements/folder.component.mjs +13 -9
  16. package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +30 -39
  17. package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +24 -17
  18. package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +13 -17
  19. package/esm2020/lib/admin/configuration-designer/elements/parallel-view.component.mjs +3 -3
  20. package/esm2020/lib/admin/configuration-designer/elements/pivot-view.component.mjs +2 -2
  21. package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +14 -6
  22. package/esm2020/lib/admin/configuration-designer/elements/return-to-role-action.component.mjs +11 -15
  23. package/esm2020/lib/admin/configuration-designer/elements/role.component.mjs +12 -8
  24. package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +8 -3
  25. package/esm2020/lib/admin/configuration-designer/elements/state.component.mjs +11 -10
  26. package/esm2020/lib/admin/configuration-designer/elements/sum-view.component.mjs +5 -6
  27. package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +2 -2
  28. package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +11 -11
  29. package/esm2020/lib/admin/configuration-designer/elements/usage-report.component.mjs +4 -4
  30. package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +14 -6
  31. package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +13 -11
  32. package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +14 -4
  33. package/esm2020/lib/admin/configuration-designer/icon-picker.component.mjs +12 -6
  34. package/esm2020/lib/admin/configuration-designer/privileges.component.mjs +25 -15
  35. package/esm2020/lib/admin/core/ace.input.mjs +14 -16
  36. package/esm2020/lib/admin/core/color-picker.input.mjs +2 -1
  37. package/esm2020/lib/admin/document-trace/document-trace.component.mjs +3 -3
  38. package/esm2020/lib/admin/form/designer/designer.component.mjs +96 -40
  39. package/esm2020/lib/admin/patterns/patterns.component.mjs +1 -1
  40. package/esm2020/lib/admin/system.service.mjs +4 -1
  41. package/esm2020/lib/compose/box/box.component.mjs +4 -3
  42. package/esm2020/lib/core/datasource.service.mjs +1 -1
  43. package/esm2020/lib/core/functions.mjs +10 -3
  44. package/esm2020/lib/core/layout/layout.component.mjs +18 -30
  45. package/esm2020/lib/core/mailbox.service.mjs +2 -2
  46. package/esm2020/lib/core/models.mjs +1 -1
  47. package/esm2020/lib/core/translations.mjs +6 -1
  48. package/esm2020/lib/cube/cube-info.service.mjs +1 -1
  49. package/esm2020/lib/cube/cube.service.mjs +1 -1
  50. package/esm2020/lib/cube/declarations.mjs +1 -1
  51. package/esm2020/lib/cube/matrix/matrix.base.mjs +2 -2
  52. package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +1 -1
  53. package/esm2020/lib/cube/matrix/table.component.mjs +19 -19
  54. package/esm2020/lib/cube/sum/sum.component.mjs +1 -1
  55. package/esm2020/lib/reports/cube/usage-base.mjs +1 -1
  56. package/esm2020/lib/shared.module.mjs +5 -4
  57. package/esm2020/lib/system.module.mjs +14 -8
  58. package/esm2020/lib/views/cube/parallel.component.mjs +1 -1
  59. package/esm2020/public-api.mjs +3 -2
  60. package/fesm2015/bizdoc-core.mjs +5670 -5435
  61. package/fesm2015/bizdoc-core.mjs.map +1 -1
  62. package/fesm2020/bizdoc-core.mjs +5525 -5291
  63. package/fesm2020/bizdoc-core.mjs.map +1 -1
  64. package/lib/admin/configuration-designer/designer-element.component.d.ts +30 -10
  65. package/lib/admin/configuration-designer/designer.base.d.ts +75 -36
  66. package/lib/admin/configuration-designer/designer.component.d.ts +10 -7
  67. package/lib/admin/configuration-designer/elements/action.component.d.ts +2 -0
  68. package/lib/admin/configuration-designer/elements/analysis-view.component.d.ts +2 -1
  69. package/lib/admin/configuration-designer/elements/configuration-datasource.component.d.ts +9 -8
  70. package/lib/admin/configuration-designer/elements/cube-index-utility.component.d.ts +12 -0
  71. package/lib/admin/configuration-designer/elements/cube.component.d.ts +17 -7
  72. package/lib/admin/configuration-designer/elements/documents-widget.component.d.ts +2 -2
  73. package/lib/admin/configuration-designer/elements/folder.component.d.ts +3 -0
  74. package/lib/admin/configuration-designer/elements/form.component.d.ts +7 -2
  75. package/lib/admin/configuration-designer/elements/guide.component.d.ts +4 -2
  76. package/lib/admin/configuration-designer/elements/matrix-view.component.d.ts +0 -2
  77. package/lib/admin/configuration-designer/elements/pivot-view.component.d.ts +1 -1
  78. package/lib/admin/configuration-designer/elements/report.component.d.ts +3 -0
  79. package/lib/admin/configuration-designer/elements/return-to-role-action.component.d.ts +2 -4
  80. package/lib/admin/configuration-designer/elements/role.component.d.ts +5 -2
  81. package/lib/admin/configuration-designer/elements/rule.component.d.ts +2 -0
  82. package/lib/admin/configuration-designer/elements/state.component.d.ts +4 -1
  83. package/lib/admin/configuration-designer/elements/tasks-report.component.d.ts +2 -2
  84. package/lib/admin/configuration-designer/elements/type.component.d.ts +3 -1
  85. package/lib/admin/configuration-designer/elements/utility.component.d.ts +3 -0
  86. package/lib/admin/configuration-designer/elements/view.component.d.ts +4 -6
  87. package/lib/admin/configuration-designer/elements/widget.component.d.ts +2 -0
  88. package/lib/admin/configuration-designer/privileges.component.d.ts +6 -4
  89. package/lib/admin/core/ace.input.d.ts +4 -4
  90. package/lib/admin/core/color-picker.input.d.ts +1 -0
  91. package/lib/admin/form/designer/designer.component.d.ts +20 -12
  92. package/lib/admin/patterns/patterns.component.d.ts +2 -2
  93. package/lib/admin/system.service.d.ts +6 -0
  94. package/lib/core/datasource.service.d.ts +3 -3
  95. package/lib/core/layout/layout.component.d.ts +0 -2
  96. package/lib/core/models.d.ts +2 -2
  97. package/lib/core/translations.d.ts +5 -0
  98. package/lib/cube/cube-info.service.d.ts +3 -2
  99. package/lib/cube/cube.service.d.ts +8 -8
  100. package/lib/cube/declarations.d.ts +2 -0
  101. package/lib/cube/matrix/matrix.base.d.ts +4 -3
  102. package/lib/cube/matrix/matrix.pane.component.d.ts +3 -2
  103. package/lib/cube/matrix/table.component.d.ts +9 -5
  104. package/lib/reports/cube/usage-base.d.ts +2 -2
  105. package/lib/shared.module.d.ts +150 -151
  106. package/lib/system.module.d.ts +50 -47
  107. package/lib/views/cube/parallel.component.d.ts +1 -1
  108. package/package.json +1 -1
  109. package/public-api.d.ts +4 -3
@@ -1,6 +1,6 @@
1
- import { EventEmitter, OnInit } from "@angular/core";
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from "@angular/core";
2
2
  import { FormBuilder } from "@angular/forms";
3
- import { MatSelectionListChange } from "@angular/material/list";
3
+ import { MatSelectionList, MatSelectionListChange } from "@angular/material/list";
4
4
  import { Role } from "../../core/models";
5
5
  import { SystemService } from "../system.service";
6
6
  import { DesignerRef, PrivilegesModel } from "./designer.base";
@@ -8,15 +8,17 @@ import * as i0 from "@angular/core";
8
8
  export declare class PrivilegesDesignComponent implements OnInit {
9
9
  private _fb;
10
10
  private _service;
11
+ private _cd;
11
12
  private _ref;
12
13
  model: PrivilegesModel;
13
- readonly change: EventEmitter<void>;
14
+ readonly change: EventEmitter<PrivilegesModel>;
15
+ list: MatSelectionList;
14
16
  readonly form: import("@angular/forms").FormGroup<{
15
17
  rule: import("@angular/forms").FormControl<unknown>;
16
18
  roles: import("@angular/forms").FormControl<string[]>;
17
19
  }>;
18
20
  roles: Role[];
19
- constructor(_fb: FormBuilder, _service: SystemService, _ref: DesignerRef);
21
+ constructor(_fb: FormBuilder, _service: SystemService, _cd: ChangeDetectorRef, _ref: DesignerRef);
20
22
  ngOnInit(): void;
21
23
  rolesChange(evt: MatSelectionListChange): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<PrivilegesDesignComponent, never>;
@@ -1,17 +1,16 @@
1
1
  import { OnDestroy, OnInit, ElementRef } from '@angular/core';
2
2
  import { NgControl, ControlValueAccessor } from '@angular/forms';
3
3
  import { Subject } from 'rxjs';
4
- import { HttpClient } from '@angular/common/http';
5
4
  import { MatFormFieldControl } from '@angular/material/form-field';
6
5
  import 'brace/mode/javascript';
7
6
  import 'brace/theme/github';
8
7
  import 'brace/ext/language_tools';
8
+ import { SystemService } from '../system.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class AceInput implements MatFormFieldControl<string>, ControlValueAccessor, OnDestroy, OnInit {
11
11
  ngControl: NgControl;
12
12
  private _el;
13
- private _http;
14
- focus(): void;
13
+ private _service;
15
14
  private static nextId;
16
15
  private _placeholder;
17
16
  private _required;
@@ -44,8 +43,9 @@ export declare class AceInput implements MatFormFieldControl<string>, ControlVal
44
43
  setDisabledState?(isDisabled: boolean): void;
45
44
  get value(): string;
46
45
  set value(val: string);
47
- constructor(ngControl: NgControl, _el: ElementRef, _http: HttpClient);
46
+ constructor(ngControl: NgControl, _el: ElementRef, _service: SystemService);
48
47
  ngOnInit(): void;
48
+ focus(): void;
49
49
  ngOnDestroy(): void;
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<AceInput, [{ optional: true; self: true; }, null, null]>;
51
51
  static ɵcmp: i0.ɵɵComponentDeclaration<AceInput, "bizdoc-ace-input", never, { "params": "params"; "placeholder": "placeholder"; "required": "required"; "disabled": "disabled"; "value": "value"; }, {}, never, never, false>;
@@ -11,6 +11,7 @@ export declare class ColorPicker implements MatFormFieldControl<string>, Control
11
11
  private _vc;
12
12
  private _element;
13
13
  private _dir;
14
+ controlType?: string;
14
15
  private static nextId;
15
16
  readonly _palettes: {
16
17
  [name: string]: {
@@ -1,6 +1,6 @@
1
1
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
2
- import { ChangeDetectorRef, OnInit } from "@angular/core";
3
- import { FormBuilder } from "@angular/forms";
2
+ import { ChangeDetectorRef, ElementRef, OnInit } from "@angular/core";
3
+ import { FormArray, FormBuilder, FormGroup } from "@angular/forms";
4
4
  import { Cube, FieldType, Type } from "../../../core/models";
5
5
  import { PromptService } from "../../../core/prompt.service";
6
6
  import { SessionService } from "../../../core/session.service";
@@ -14,38 +14,45 @@ export declare class FormDesignerComponent implements OnInit {
14
14
  private _cd;
15
15
  private _ps;
16
16
  private _session;
17
+ private _el;
17
18
  private _ref;
18
19
  loading: boolean;
19
20
  tools: boolean;
20
21
  saving: boolean;
21
22
  model: BoxFormMetadata;
22
- readonly history: BoxFormMetadata[];
23
+ readonly history: string[];
23
24
  historyIndex: number;
24
25
  readonly datatypes: Type[];
25
26
  readonly cubes: Cube[];
26
- readonly form: import("@angular/forms").FormGroup<{
27
+ readonly form: FormGroup<{
27
28
  subject: import("@angular/forms").FormControl<unknown>;
28
29
  value: import("@angular/forms").FormControl<unknown>;
29
30
  cube: import("@angular/forms").FormControl<unknown>;
30
31
  summary: import("@angular/forms").FormControl<unknown>;
32
+ sections: FormArray<import("@angular/forms").FormControl<unknown>>;
31
33
  }>;
32
34
  title: string;
33
35
  dirty: boolean;
34
36
  settings: boolean;
35
37
  private _formId;
36
- constructor(_fb: FormBuilder, _pane: PaneRef<any>, _cd: ChangeDetectorRef, _ps: PromptService, _session: SessionService, _ref: UtilityRef<boolean, {
38
+ constructor(_fb: FormBuilder, _pane: PaneRef<any>, _cd: ChangeDetectorRef, _ps: PromptService, _session: SessionService, _el: ElementRef, _ref: UtilityRef<boolean, {
37
39
  metadata: BoxFormMetadata;
38
40
  formId: string;
39
41
  }, BoxFormMetadata, string>);
40
42
  ngOnInit(): void;
41
43
  private _open;
44
+ private _assign;
45
+ private _sectionform;
46
+ private _rowform;
47
+ private _fieldform;
42
48
  addSection(evt?: Event): void;
43
- addRow(section: SectionModel, evt?: Event): void;
44
- addField(section: SectionModel, row: RowModel, kind: FieldType, evt?: Event): void;
45
- removeField(row: RowModel, field: FieldModel): void;
46
- removeSection(section: SectionModel): void;
47
- removeRow(section: SectionModel, row: RowModel): void;
49
+ addRow(section: FormGroup, evt?: Event): void;
50
+ addField(section: FormGroup, row: FormGroup, kind: FieldType, evt?: Event): void;
51
+ removeField(row: FormGroup, field: FormGroup): void;
52
+ removeSection(section: FormGroup): void;
53
+ removeRow(section: FormGroup, row: FormGroup): void;
48
54
  private _notifyChange;
55
+ private _restore;
49
56
  undo(): void;
50
57
  redo(): void;
51
58
  /**
@@ -53,7 +60,7 @@ export declare class FormDesignerComponent implements OnInit {
53
60
  * @param event
54
61
  */
55
62
  handleKeyboardEvent(event: KeyboardEvent): void;
56
- drop(event: CdkDragDrop<(FieldModel | RowModel | SectionModel)[]>): void;
63
+ drop(event: CdkDragDrop<FormGroup>, collection: FormArray): void;
57
64
  save(): void;
58
65
  static ɵfac: i0.ɵɵFactoryDeclaration<FormDesignerComponent, never>;
59
66
  static ɵcmp: i0.ɵɵComponentDeclaration<FormDesignerComponent, "ng-component", never, {}, {}, never, never, false>;
@@ -69,6 +76,7 @@ interface SectionModel {
69
76
  name: string;
70
77
  title: string;
71
78
  value?: string;
79
+ multiLine?: boolean;
72
80
  rows: RowModel[];
73
81
  }
74
82
  interface RowModel {
@@ -78,7 +86,7 @@ interface FieldModel {
78
86
  name: string;
79
87
  label: string;
80
88
  kind: FieldType;
81
- required: boolean;
89
+ required?: boolean;
82
90
  dataType?: string;
83
91
  min?: any;
84
92
  max?: any;
@@ -1,7 +1,7 @@
1
1
  import { OnInit, OnDestroy, TemplateRef } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
3
  import { Observable } from 'rxjs';
4
- import { Cube, AxisType } from '../../core/models';
4
+ import { Cube, AxisValue } from '../../core/models';
5
5
  import { UtilityComponent } from '../../core/base';
6
6
  import { SessionService } from '../../core/session.service';
7
7
  import { UtilityRef } from "../utility-ref";
@@ -69,7 +69,7 @@ interface Pattern {
69
69
  title: string;
70
70
  roles: string[];
71
71
  axes: {
72
- [axis: string]: AxisType;
72
+ [axis: string]: AxisValue;
73
73
  };
74
74
  }
75
75
  interface Role {
@@ -4,6 +4,7 @@ import { Form, Role } from '../core/models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SystemService {
6
6
  private _http;
7
+ rules(args?: any): Observable<Rule[]>;
7
8
  synchrinize(name: string): Observable<Object>;
8
9
  private static _cache;
9
10
  findAll(options: {
@@ -34,3 +35,8 @@ export interface DocumentInfo {
34
35
  }
35
36
  export interface CubeInfo {
36
37
  }
38
+ interface Rule {
39
+ name: string;
40
+ title: string;
41
+ }
42
+ export {};
@@ -33,9 +33,9 @@ export declare class DatasourceService {
33
33
  * @param type
34
34
  * @param params
35
35
  */
36
- all(type: string, queryParams?: string | number | ParamMap): Observable<{
37
- key: string;
38
- value: any;
36
+ all<K = any, V = any>(type: string, queryParams?: string | number | ParamMap): Observable<{
37
+ key: K;
38
+ value: V;
39
39
  }[]>;
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<DatasourceService, never>;
41
41
  static ɵprov: i0.ɵɵInjectableDeclaration<DatasourceService>;
@@ -14,7 +14,6 @@ export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDest
14
14
  valid: boolean;
15
15
  readonly validChange: EventEmitter<boolean>;
16
16
  containerRef: ViewContainerRef;
17
- private _cmpRef;
18
17
  private readonly _destroy;
19
18
  form: FormGroup;
20
19
  private _instance;
@@ -25,7 +24,6 @@ export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDest
25
24
  ngOnChanges(changes: SimpleChanges): void;
26
25
  create(): void;
27
26
  private _validations;
28
- private _bind;
29
27
  focus(): void;
30
28
  ngOnDestroy(): void;
31
29
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
@@ -561,9 +561,9 @@ export interface CubeAxis {
561
561
  descendentOf?: string;
562
562
  }
563
563
  export declare type AxisSelectionMode = 'None' | 'Single' | 'Multiple' | 'Search' | 'Pattern';
564
- export declare type AxisType = string | number | Array<string | number>;
564
+ export declare type AxisValue = string | number | Array<string | number>;
565
565
  export interface AxesMap {
566
- [axis: string]: AxisType;
566
+ [axis: string]: AxisValue;
567
567
  }
568
568
  export interface CubeView {
569
569
  xAxis: string[];
@@ -84,6 +84,11 @@ export declare const STRINGS: {
84
84
  ar: {};
85
85
  ru: {};
86
86
  en: {
87
+ XAxis: string;
88
+ Series: string;
89
+ Steps: string;
90
+ Sum: string;
91
+ ProgramPatternErr: string;
87
92
  Summary: string;
88
93
  SecurityLevel: string;
89
94
  Global: string;
@@ -7,6 +7,7 @@ import { Popup } from "../core/popup/popup.service";
7
7
  import { RouterImpl } from "../core/router";
8
8
  import { SumSettings } from "./matrix/table.component";
9
9
  import { ScopeType } from "../core/configuration";
10
+ import { AxisPlace, AxisType } from "./declarations";
10
11
  import * as i0 from "@angular/core";
11
12
  export interface CubeData {
12
13
  axes: AxesMap;
@@ -29,8 +30,8 @@ export interface CubeDataOptions {
29
30
  sum?: SumSettings | SumSettings[];
30
31
  seriesTotalLabel?: string;
31
32
  xAxisTotalLabel?: string;
32
- indexAt?: 'series' | 'xAxis';
33
- placeAt?: 'leading' | 'trailing';
33
+ indexAt?: AxisType;
34
+ placeAt?: AxisPlace;
34
35
  }
35
36
  export interface ExploreOptions {
36
37
  cube?: string;
@@ -1,7 +1,7 @@
1
1
  import { HttpClient, HttpErrorResponse } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { BizDocConfig, ParamMap, ScopeType } from '../core/configuration';
4
- import { FieldInfo, AxisType, AxesMap } from '../core/models';
4
+ import { FieldInfo, AxisValue, AxesMap } from '../core/models';
5
5
  import { SessionService } from '../core/session.service';
6
6
  import { DatasourceService } from '../core/datasource.service';
7
7
  import * as i0 from "@angular/core";
@@ -45,7 +45,7 @@ export declare class CubeService {
45
45
  inverseIndices?: boolean;
46
46
  /** axes */
47
47
  filters?: {
48
- [axis: string]: AxisType;
48
+ [axis: string]: AxisValue;
49
49
  };
50
50
  scope?: ScopeType;
51
51
  /** replace base */
@@ -75,7 +75,7 @@ export declare class CubeService {
75
75
  * @param options
76
76
  */
77
77
  resolve(cube: string, axes: {
78
- [key: string]: AxisType;
78
+ [key: string]: AxisValue;
79
79
  }, options?: {
80
80
  /** replace base */
81
81
  base?: {
@@ -95,7 +95,7 @@ export declare class CubeService {
95
95
  * @param options
96
96
  */
97
97
  explore(cube: string, axes: {
98
- [key: string]: AxisType;
98
+ [key: string]: AxisValue;
99
99
  }, options?: {
100
100
  /** restrict results to user patterns or positions */
101
101
  scope?: ScopeType;
@@ -118,7 +118,7 @@ export declare class CubeService {
118
118
  * @param options
119
119
  */
120
120
  indices(cube: string, index: string, axes: {
121
- [axis: string]: AxisType;
121
+ [axis: string]: AxisValue;
122
122
  }, options?: {
123
123
  /** restrict results to user patterns or positions */
124
124
  scope?: ScopeType;
@@ -134,7 +134,7 @@ export declare class CubeService {
134
134
  * @param options
135
135
  */
136
136
  item(cube: string, axes: {
137
- [axis: string]: AxisType;
137
+ [axis: string]: AxisValue;
138
138
  }, keys: (string | number)[] | string | number, options?: {
139
139
  /** replace base */
140
140
  base?: {
@@ -147,7 +147,7 @@ export declare class CubeService {
147
147
  * @param axes condition
148
148
  */
149
149
  constraints(cube: string, axes?: {
150
- [key: string]: AxisType;
150
+ [key: string]: AxisValue;
151
151
  }, options?: {
152
152
  source: 'constraints' | 'combinations';
153
153
  }): Observable<{
@@ -170,7 +170,7 @@ export declare class CubeService {
170
170
  * @param options
171
171
  */
172
172
  combinations(cube: string, axes?: {
173
- [key: string]: AxisType;
173
+ [key: string]: AxisValue;
174
174
  }, options?: {
175
175
  /** top */
176
176
  take?: number;
@@ -1,5 +1,7 @@
1
1
  import { EventEmitter, OnChanges } from '@angular/core';
2
2
  import { AxesMap } from '../core/models';
3
+ export declare type AxisType = 'Series' | 'XAxis';
4
+ export declare type AxisPlace = 'Leading' | 'Trailing';
3
5
  export interface AxisClickEvent {
4
6
  axes: AxesMap;
5
7
  /** index name */
@@ -1,8 +1,9 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { AxesMap, Cube, CubeAxis } from '../../core/models';
2
3
  import { SessionService } from '../../core/session.service';
3
4
  import { DatasourceService } from '../../core/datasource.service';
4
5
  import { CubeService, Pattern } from '../cube.service';
5
- import { AxesMap, Cube, CubeAxis } from '../../core/models';
6
+ import { AxisPlace, AxisType } from '../declarations';
6
7
  import { CubeMatrixComponent, SumSettings } from './table.component';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare abstract class CubeMatrixBase {
@@ -12,8 +13,8 @@ export declare abstract class CubeMatrixBase {
12
13
  abstract table: CubeMatrixComponent;
13
14
  seriesTotalLabel?: string;
14
15
  xAxisTotalLabel?: string;
15
- indexAt?: 'series' | 'xAxis';
16
- placeAt?: 'leading' | 'trailing';
16
+ indexAt?: AxisType;
17
+ placeAt?: AxisPlace;
17
18
  loading: boolean;
18
19
  private _axes;
19
20
  private _originalAxes;
@@ -9,6 +9,7 @@ import { CubeMatrixBase } from './matrix.base';
9
9
  import { TranslateService } from '../../core/translate.service';
10
10
  import { AxisClickEvent } from '../declarations';
11
11
  import { CubeMatrixComponent, SumSettings } from './table.component';
12
+ import { AxisPlace, AxisType } from '../declarations';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class CubeMatrixPaneComponent extends CubeMatrixBase implements OnInit {
14
15
  private _pane;
@@ -28,8 +29,8 @@ interface Data {
28
29
  /** */
29
30
  aggregation: string[];
30
31
  sum: SumSettings | SumSettings[];
31
- indexAt?: 'series' | 'xAxis';
32
- placeAt?: 'leading' | 'trailing';
32
+ indexAt?: AxisType;
33
+ placeAt?: AxisPlace;
33
34
  selection?: string | string[];
34
35
  xAxisTotalLabel?: string;
35
36
  seriesTotalLabel?: string;
@@ -7,6 +7,7 @@ import { AxesMap, Cube, CubeAxis, CubeIndex } from '../../core/models';
7
7
  import { ScopeType } from '../../core/configuration';
8
8
  import { TranslateService } from '../../core/translate.service';
9
9
  import { AxisClickEvent } from '../declarations';
10
+ import { AxisPlace, AxisType } from '../declarations';
10
11
  import * as i0 from "@angular/core";
11
12
  /** cube matrix component*/
12
13
  export declare class CubeMatrixComponent implements OnChanges {
@@ -26,8 +27,8 @@ export declare class CubeMatrixComponent implements OnChanges {
26
27
  _xAxis: string;
27
28
  _series: string;
28
29
  _indices?: string[] | string;
29
- indexAt: 'series' | 'xAxis';
30
- placeAt: 'leading' | 'trailing';
30
+ indexAt: AxisType;
31
+ placeAt: AxisPlace;
31
32
  scope: ScopeType;
32
33
  private _sum;
33
34
  set sum(val: SumSettings | SumSettings[]);
@@ -73,13 +74,16 @@ export declare class CubeMatrixComponent implements OnChanges {
73
74
  }
74
75
  export declare type SumSettings = {
75
76
  value?: string | number;
76
- axis: 'series' | 'xAxis';
77
+ axis: AxisType;
77
78
  title: string;
78
- format?: 'percent' | 'currency' | 'number';
79
+ format?: FormatType;
79
80
  precision?: string;
80
81
  explorable?: boolean;
81
- calculate?: 'quarter' | 'year' | 'month' | 'accumulate' | CalculateFn;
82
+ place?: AxisPlace;
83
+ calculate?: CalculateType;
82
84
  };
85
+ export declare type FormatType = 'Percent' | 'Currency' | 'Number';
86
+ export declare type CalculateType = 'Quarter' | 'Year' | 'Month' | 'Sum' | CalculateFn;
83
87
  export declare interface CalculateFn {
84
88
  (value: string, data: {
85
89
  [series: string]: {
@@ -2,7 +2,7 @@ import { OnDestroy } from "@angular/core";
2
2
  import { Directionality } from "@angular/cdk/bidi";
3
3
  import { Subject } from "rxjs";
4
4
  import { ChartSeriesType } from "@syncfusion/ej2-angular-pivotview";
5
- import { CubeAxis, Cube, CubeIndex, AxisType, Dimentions, AxesMap } from "../../core/models";
5
+ import { CubeAxis, Cube, CubeIndex, AxisValue, Dimentions, AxesMap } from "../../core/models";
6
6
  import { ReportComponent } from "../../core/base";
7
7
  import { SessionService } from "../../core/session.service";
8
8
  import { TranslateService } from "../../core/translate.service";
@@ -45,7 +45,7 @@ export declare abstract class UsageReportBase implements ReportComponent<Item, A
45
45
  abstract onData(data: Item[]): any;
46
46
  onBind(result: Item[], args?: Args): void;
47
47
  protected browse(paxes: {
48
- [axis: string]: AxisType;
48
+ [axis: string]: AxisValue;
49
49
  }, index?: string): void;
50
50
  ngOnDestroy(): void;
51
51
  static ɵfac: i0.ɵɵFactoryDeclaration<UsageReportBase, never>;