@bizdoc/core 1.16.9 → 1.16.10

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/assets/system/{Microsoft_Azure.svg → Azure.svg} +0 -0
  2. package/assets/system/QAD.svg +12 -358
  3. package/assets/system/priority.svg +19 -0
  4. package/esm2020/lib/admin/configuration-designer/cube-axes-filter.component.mjs +2 -2
  5. package/esm2020/lib/admin/configuration-designer/declarations.mjs +108 -0
  6. package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +120 -223
  7. package/esm2020/lib/admin/configuration-designer/designer.base.mjs +23 -82
  8. package/esm2020/lib/admin/configuration-designer/designer.component.mjs +5 -3
  9. package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +3 -3
  10. package/esm2020/lib/admin/configuration-designer/elements/analysis-view.component.mjs +13 -12
  11. package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +13 -12
  12. package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +89 -75
  13. package/esm2020/lib/admin/configuration-designer/elements/documents-widget.component.mjs +4 -3
  14. package/esm2020/lib/admin/configuration-designer/elements/folder.component.mjs +3 -3
  15. package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +6 -5
  16. package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +3 -3
  17. package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +3 -3
  18. package/esm2020/lib/admin/configuration-designer/elements/return-to-role-action.component.mjs +1 -1
  19. package/esm2020/lib/admin/configuration-designer/elements/role.component.mjs +6 -12
  20. package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +3 -3
  21. package/esm2020/lib/admin/configuration-designer/elements/state.component.mjs +3 -3
  22. package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +1 -1
  23. package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +3 -3
  24. package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +5 -11
  25. package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +3 -3
  26. package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +3 -3
  27. package/esm2020/lib/core/translations.mjs +10 -4
  28. package/esm2020/lib/system.module.mjs +6 -6
  29. package/esm2020/public-api.mjs +2 -2
  30. package/fesm2015/bizdoc-core.mjs +468 -521
  31. package/fesm2015/bizdoc-core.mjs.map +1 -1
  32. package/fesm2020/bizdoc-core.mjs +463 -508
  33. package/fesm2020/bizdoc-core.mjs.map +1 -1
  34. package/lib/admin/configuration-designer/cube-axes-filter.component.d.ts +1 -1
  35. package/lib/admin/configuration-designer/declarations.d.ts +203 -0
  36. package/lib/admin/configuration-designer/designer-element.component.d.ts +45 -65
  37. package/lib/admin/configuration-designer/designer.base.d.ts +5 -197
  38. package/lib/admin/configuration-designer/designer.component.d.ts +1 -1
  39. package/lib/admin/configuration-designer/elements/analysis-view.component.d.ts +1 -1
  40. package/lib/admin/configuration-designer/elements/analysis-widget.component.d.ts +1 -1
  41. package/lib/admin/configuration-designer/elements/cube.component.d.ts +30 -26
  42. package/lib/admin/configuration-designer/elements/documents-widget.component.d.ts +2 -1
  43. package/lib/admin/configuration-designer/elements/folder.component.d.ts +2 -1
  44. package/lib/admin/configuration-designer/elements/form.component.d.ts +2 -1
  45. package/lib/admin/configuration-designer/elements/report.component.d.ts +2 -1
  46. package/lib/admin/configuration-designer/elements/return-to-role-action.component.d.ts +2 -1
  47. package/lib/admin/configuration-designer/elements/role.component.d.ts +2 -1
  48. package/lib/admin/configuration-designer/elements/rule.component.d.ts +1 -1
  49. package/lib/admin/configuration-designer/elements/tasks-report.component.d.ts +2 -1
  50. package/lib/admin/configuration-designer/elements/view.component.d.ts +1 -1
  51. package/lib/admin/configuration-designer/elements/widget.component.d.ts +3 -2
  52. package/lib/core/translations.d.ts +9 -3
  53. package/lib/system.module.d.ts +16 -16
  54. package/package.json +1 -1
  55. package/public-api.d.ts +2 -2
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
4
4
  import { AxesMap } from '../../core/models';
5
5
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
6
6
  import { CubeService } from '../../cube/cube.service';
7
- import { DesignerRef, ElementModel } from './designer.base';
7
+ import { DesignerRef, ElementModel } from './declarations';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class DesignerCubeFilterComponent implements OnInit, OnChanges, OnDestroy {
10
10
  private readonly _service;
@@ -0,0 +1,203 @@
1
+ import { Injector } from "@angular/core";
2
+ import { FormGroup } from "@angular/forms";
3
+ import { ScopeType } from "../../core/configuration";
4
+ import { AxesMap, ChartType, CubeFilter, FieldInfo, FolderColumn, GuideStep, PositionPolicy, ViewType } from "../../core/models";
5
+ import { Subject } from "rxjs";
6
+ export declare const FAMILY_SVG: {
7
+ Azure: string;
8
+ SAP: string;
9
+ Mfg: string;
10
+ Priority: string;
11
+ };
12
+ /** */
13
+ export declare class DesignerRef<O = any> {
14
+ private _designer;
15
+ private _element;
16
+ mode: DesignMode;
17
+ _unlock$: Subject<boolean>;
18
+ _state$: Subject<any>;
19
+ constructor(_designer: DesignerModel, _element: ElementModel, mode: DesignMode);
20
+ get designer(): DesignerInfo;
21
+ get model(): ElementInfo<O>;
22
+ get unlock(): import("rxjs").Observable<boolean>;
23
+ get state(): import("rxjs").Observable<any>;
24
+ create(element: ElementInfo, template?: string): ElementInfo<any>;
25
+ }
26
+ export interface DesignerElementComponent<T> {
27
+ model: ElementInfo<T>;
28
+ mode: DesignMode;
29
+ form: FormGroup;
30
+ onContinue?(): any;
31
+ }
32
+ export declare type DesignMode = 'add' | 'edit' | 'widget';
33
+ export declare function clone(element: ElementModel): any;
34
+ export declare function arrayOf(val: string | string[]): string[];
35
+ /**
36
+ *
37
+ * @param name
38
+ */
39
+ export declare function programName(name: string): string;
40
+ export interface DesignerModel {
41
+ types: ElementModel<any>[];
42
+ tTypes: TemplateInfo[];
43
+ guides: ElementModel<any>[];
44
+ reports: ElementModel<any>[];
45
+ tReports: TemplateInfo[];
46
+ forms: ElementModel<any>[];
47
+ tForms: TemplateInfo[];
48
+ cubes: ElementModel<any>[];
49
+ tCubes: TemplateInfo[];
50
+ utilities: ElementModel<any>[];
51
+ tUtilities: TemplateInfo[];
52
+ folders: ElementModel<any>[];
53
+ roles: ElementModel<any>[];
54
+ rules: ElementModel<any>[];
55
+ tRules: TemplateInfo[];
56
+ views: ElementModel<any>[];
57
+ tViews: TemplateInfo[];
58
+ widgets: ElementModel<any>[];
59
+ tWidgets: TemplateInfo[];
60
+ actions: ElementModel<any>[];
61
+ tActions: TemplateInfo[];
62
+ states: ElementModel<any>[];
63
+ }
64
+ export interface TemplateInfo {
65
+ template?: string;
66
+ title?: string;
67
+ key?: string;
68
+ icon?: string;
69
+ family?: string;
70
+ help?: string;
71
+ type?: string;
72
+ arguments?: FieldInfo[];
73
+ }
74
+ export interface ElementModel<T = any> {
75
+ key?: string;
76
+ injector: Injector;
77
+ ordinal?: number;
78
+ help?: string;
79
+ configurationFile?: string;
80
+ template?: string;
81
+ icon?: string;
82
+ resource?: string;
83
+ copyOf?: string;
84
+ family?: string;
85
+ type?: string;
86
+ name: string;
87
+ title: string;
88
+ disabled?: boolean;
89
+ draft?: boolean;
90
+ empty?: boolean;
91
+ options?: T;
92
+ arguments?: FieldInfo[];
93
+ privileges?: PrivilegesModel;
94
+ filters?: CubeFilter;
95
+ columns?: FolderColumn[];
96
+ anomaly?: AnomalyPolicy;
97
+ verb?: string;
98
+ you?: string;
99
+ youMale?: string;
100
+ youFemale?: string;
101
+ past?: string;
102
+ pastMale?: string;
103
+ pastFemale?: string;
104
+ adjective?: string;
105
+ loggable?: boolean;
106
+ adjectivePlural?: string;
107
+ assignable?: boolean;
108
+ position?: PositionPolicy;
109
+ multiple?: boolean;
110
+ shape?: string;
111
+ group?: number;
112
+ dataType?: string;
113
+ steps?: GuideStep[];
114
+ currencyCode?: string;
115
+ axes?: CubeAxisModel[];
116
+ views?: CubeViewModel[];
117
+ indices?: CubeIndexModel[];
118
+ scope?: ScopeType;
119
+ color?: string;
120
+ backgroundColor?: string;
121
+ rules?: PermissionModel[];
122
+ positions?: {
123
+ [key: string]: string[];
124
+ };
125
+ patterns?: PatternModel[];
126
+ }
127
+ export interface CubeIndexModel {
128
+ name: string;
129
+ accumulate?: boolean;
130
+ hidden?: boolean;
131
+ title: string;
132
+ }
133
+ export interface CubeViewModel {
134
+ privileges?: PrivilegesModel;
135
+ xAxis: string[];
136
+ series?: string[];
137
+ filters?: AxesMap;
138
+ indices?: string[];
139
+ icon?: string;
140
+ guide?: string;
141
+ name: string;
142
+ title: string;
143
+ type: ViewType;
144
+ chartType?: ChartType;
145
+ indicesChartType?: ChartType;
146
+ }
147
+ export interface CubeAxisModel {
148
+ name: string;
149
+ title: string;
150
+ dataType: string;
151
+ hidden?: boolean;
152
+ combination?: boolean;
153
+ indexable?: boolean;
154
+ sensitive?: boolean;
155
+ resourceType?: string;
156
+ selectionMode?: 'Single' | 'Pattern' | 'Multiple' | 'Search' | 'None';
157
+ descendentOf?: string;
158
+ }
159
+ export declare type AnomalyPolicy = 'Positions' | 'Recipients';
160
+ export interface PatternModel {
161
+ title: string;
162
+ resourceType?: string;
163
+ axes: AxesMap;
164
+ rule?: string;
165
+ roles?: string[];
166
+ }
167
+ export interface PermissionModel {
168
+ name: string;
169
+ title: string;
170
+ rule?: string;
171
+ roles?: string[];
172
+ }
173
+ export interface PrivilegesModel {
174
+ rule?: string;
175
+ roles?: string[];
176
+ }
177
+ export interface DesignerInfo {
178
+ types: ElementInfo[];
179
+ guides: ElementInfo[];
180
+ reports: ElementInfo[];
181
+ tReports: TemplateInfo[];
182
+ forms: ElementInfo[];
183
+ cubes: ElementInfo[];
184
+ utilities: ElementInfo[];
185
+ folders: ElementInfo[];
186
+ roles: ElementInfo[];
187
+ rules: ElementInfo[];
188
+ views: ElementInfo[];
189
+ widgets: ElementInfo[];
190
+ actions: ElementInfo[];
191
+ states: ElementInfo[];
192
+ }
193
+ export interface ElementInfo<T = any> {
194
+ family?: string;
195
+ type?: string;
196
+ key?: string;
197
+ name: string;
198
+ title: string;
199
+ disabled?: boolean;
200
+ draft?: boolean;
201
+ empty?: boolean;
202
+ options?: T;
203
+ }
@@ -1,63 +1,64 @@
1
- import { AfterViewInit, ComponentFactoryResolver, ElementRef, EventEmitter, Injector, OnDestroy, QueryList, ViewContainerRef } from "@angular/core";
1
+ import { AfterViewInit, ComponentRef, ElementRef, EventEmitter, OnDestroy, TemplateRef } from "@angular/core";
2
2
  import { FormBuilder, FormGroup } from "@angular/forms";
3
3
  import { BizDocComponentFactoryResolver } from "../../core/component-factory-resolver";
4
+ import { SystemService } from "../system.service";
4
5
  import { Role } from "../../core/models";
6
+ import { DesignerRef, ElementModel, DesignMode, DesignerElementComponent } from "./declarations";
7
+ import { LayoutComponent } from "../../core/layout/layout.component";
8
+ import { Portal } from "@angular/cdk/portal";
5
9
  import { PaneRef } from "../../core/slots/pane-ref";
6
- import { SystemService } from "../system.service";
7
- import { DesignerRef, ElementModel, DesignMode } from "./designer.base";
8
10
  import * as i0 from "@angular/core";
9
- export declare class DesignerElementInfoComponent {
10
- private _cfr;
11
- private _ref;
12
- svg: {
13
- Azure: string;
14
- SAP: string;
15
- };
16
- model: ElementModel<any>;
17
- _econtainer: ViewContainerRef;
18
- _arguments: ViewContainerRef;
19
- constructor(_cfr: BizDocComponentFactoryResolver, _ref: DesignerRef<any>);
20
- ngOnInit(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementInfoComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<DesignerElementInfoComponent, "bizdoc-designer-element-widget", never, {}, {}, never, ["*"], false>;
11
+ export declare class EditContentDirective {
12
+ templateRef: TemplateRef<unknown>;
13
+ constructor(templateRef: TemplateRef<unknown>);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditContentDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EditContentDirective, "[bizdocEditContent]", never, {}, {}, never, never, false>;
23
16
  }
24
- export declare class DesignerElementAddComponent {
25
- private _ref;
26
- private _injector;
27
- private _cfr;
28
- model: ElementModel<any>;
29
- form: FormGroup;
30
- readonly complete: EventEmitter<any>;
31
- _econtainer: ViewContainerRef;
32
- constructor(_ref: DesignerRef<any>, _injector: Injector, _cfr: BizDocComponentFactoryResolver);
33
- ngOnInit(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementAddComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<DesignerElementAddComponent, "bizdoc-designer-element-add", never, { "form": "form"; }, { "complete": "complete"; }, never, ["*"], false>;
17
+ export declare class WidgetContentDirective {
18
+ templateRef: TemplateRef<unknown>;
19
+ constructor(templateRef: TemplateRef<unknown>);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetContentDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WidgetContentDirective, "[bizdocContent]", never, {}, {}, never, never, false>;
36
22
  }
37
- export declare class DesignerElementPhaseComponent implements AfterViewInit, OnDestroy {
23
+ export declare class AddContentDirective {
24
+ templateRef: TemplateRef<unknown>;
25
+ constructor(templateRef: TemplateRef<unknown>);
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddContentDirective, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AddContentDirective, "[bizdocAddContent]", never, {}, {}, never, never, false>;
28
+ }
29
+ /**
30
+ */
31
+ export declare class DesignerItemComponent implements AfterViewInit, OnDestroy {
38
32
  private _ref;
33
+ private _element;
34
+ private _pane;
39
35
  private _fb;
40
- private _injector;
41
36
  private _cfr;
42
- private _componentFactoryResolver;
43
37
  private _service;
44
- private _element;
45
- state: string;
38
+ readonly svg: {
39
+ Azure: string;
40
+ SAP: string;
41
+ Mfg: string;
42
+ Priority: string;
43
+ };
46
44
  form: FormGroup;
47
- readonly onSave: EventEmitter<any>;
48
- _econtainer: ViewContainerRef;
49
- _arguments: ViewContainerRef;
50
- model: ElementModel<any>;
45
+ readonly onContinue: EventEmitter<any>;
46
+ readonly onSave: EventEmitter<ElementModel<any>>;
51
47
  roles: Role[];
52
- valid: boolean;
53
- dirty: boolean;
48
+ editContent: EditContentDirective;
49
+ widgetContent: WidgetContentDirective;
50
+ options: Portal<any>;
54
51
  mode: DesignMode;
52
+ model: ElementModel<any>;
53
+ private _options;
55
54
  private readonly _destroy;
56
- constructor(_ref: DesignerRef<any>, _fb: FormBuilder, _injector: Injector, _cfr: BizDocComponentFactoryResolver, _componentFactoryResolver: ComponentFactoryResolver, _service: SystemService, _element: ElementRef<HTMLDivElement>);
55
+ constructor(_ref: DesignerRef<any>, _element: ElementRef<HTMLDivElement>, _pane: PaneRef, _fb: FormBuilder, _cfr: BizDocComponentFactoryResolver, _service: SystemService);
56
+ attached(componentRef: ComponentRef<DesignerElementComponent<any>> | ComponentRef<LayoutComponent>): void;
57
57
  ngOnInit(): void;
58
- refresh(): void;
58
+ private _addForm;
59
59
  ngAfterViewInit(): void;
60
60
  unlock(evt: Event): void;
61
+ continue(): void;
61
62
  save(): void;
62
63
  /**
63
64
  * Ctrl-s save
@@ -65,27 +66,6 @@ export declare class DesignerElementPhaseComponent implements AfterViewInit, OnD
65
66
  */
66
67
  handleKeyboardEvent(event: KeyboardEvent): void;
67
68
  ngOnDestroy(): void;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementPhaseComponent, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<DesignerElementPhaseComponent, "bizdoc-designer-element-edit", never, { "state": "state"; "form": "form"; }, { "onSave": "save"; }, never, ["*"], false>;
70
- }
71
- /**
72
- */
73
- export declare class DesignerItemComponent {
74
- private _ref;
75
- private _pane;
76
- info: DesignerElementInfoComponent;
77
- add: DesignerElementAddComponent;
78
- phases: QueryList<DesignerElementPhaseComponent>;
79
- state: string;
80
- readonly save: EventEmitter<any>;
81
- mode: DesignMode;
82
- valid: boolean;
83
- dirty: boolean;
84
- model: ElementModel<any>;
85
- phase: DesignerElementPhaseComponent;
86
- constructor(_ref: DesignerRef<any>, _pane: PaneRef);
87
- ngOnChanges(): void;
88
- ngAfterContentInit(): void;
89
- static ɵfac: i0.ɵɵFactoryDeclaration<DesignerItemComponent, [null, { optional: true; }]>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<DesignerItemComponent, "bizdoc-designer-element", never, { "state": "state"; }, { "save": "save"; }, ["info", "add", "phases"], ["bizdoc-designer-element-widget", "bizdoc-designer-element-add", "bizdoc-designer-element-edit"], false>;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<DesignerItemComponent, [null, null, { optional: true; }, null, null, null]>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<DesignerItemComponent, "bizdoc-designer-element", never, { "form": "form"; }, { "onContinue": "continue"; "onSave": "save"; }, ["editContent", "widgetContent"], never, false>;
91
71
  }
@@ -1,35 +1,10 @@
1
- import { EventEmitter, Injector, OnInit } from "@angular/core";
1
+ import { OnInit } from "@angular/core";
2
2
  import { FormArray, FormBuilder, FormGroup } from "@angular/forms";
3
3
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
4
4
  import { MatSelectChange } from "@angular/material/select";
5
- import { ScopeType } from "../../core/configuration";
6
- import { AxesMap, ChartType, CubeFilter, FieldInfo, FolderColumn, GuideStep, PositionPolicy, ViewType } from "../../core/models";
7
- import { Subject } from "rxjs";
5
+ import { DesignerElementComponent, DesignMode, ElementModel, DesignerRef, CubeAxisModel } from "./declarations";
6
+ import { DesignerItemComponent } from "./designer-element.component";
8
7
  import * as i0 from "@angular/core";
9
- export declare const FAMILY_SVG: {
10
- Azure: string;
11
- SAP: string;
12
- };
13
- /** */
14
- export declare class DesignerRef<O = any> {
15
- private _designer;
16
- private _element;
17
- mode: DesignMode;
18
- _lock$: Subject<boolean>;
19
- _state$: Subject<any>;
20
- constructor(_designer: DesignerModel, _element: ElementModel, mode: DesignMode);
21
- get designer(): DesignerInfo;
22
- get model(): ElementInfo<O>;
23
- get unlock(): import("rxjs").Observable<boolean>;
24
- get state(): import("rxjs").Observable<any>;
25
- create(element: ElementInfo, template?: string): ElementInfo<any>;
26
- }
27
- export interface DesignerElementComponent<T> {
28
- model: ElementInfo<T>;
29
- mode: DesignMode;
30
- form: FormGroup;
31
- }
32
- export declare type DesignMode = 'add' | 'edit' | 'widget';
33
8
  /** */
34
9
  export declare abstract class DesignerElementComponentBase<T = any> implements DesignerElementComponent<T> {
35
10
  protected _fb: FormBuilder;
@@ -45,21 +20,14 @@ export declare abstract class DesignerElementComponentBase<T = any> implements D
45
20
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementComponentBase<any>, never>;
46
21
  static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerElementComponentBase<any>, never, never, {}, {}, never, never, false>;
47
22
  }
48
- export declare function clone(element: ElementModel): any;
49
23
  export declare abstract class DesignerTypeElementComponent<T = any> extends DesignerElementComponentBase<T> {
50
24
  protected _fb: FormBuilder;
51
25
  protected _ref: DesignerRef<T>;
52
- save: EventEmitter<ElementModel>;
26
+ designer: DesignerItemComponent;
53
27
  constructor(_fb: FormBuilder, _ref: DesignerRef<T>);
54
28
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerTypeElementComponent<any>, never>;
55
29
  static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerTypeElementComponent<any>, never, never, {}, {}, never, never, false>;
56
30
  }
57
- export declare function arrayOf(val: string | string[]): string[];
58
- /**
59
- *
60
- * @param name
61
- */
62
- export declare function programName(name: string): string;
63
31
  /** */
64
32
  export declare abstract class DesignerCubeElementComponent<T = any> extends DesignerElementComponentBase<T> implements OnInit {
65
33
  readonly cubes: ElementModel[];
@@ -79,164 +47,4 @@ export declare abstract class DesignerCubeElementComponent<T = any> extends Desi
79
47
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerCubeElementComponent<any>, never>;
80
48
  static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerCubeElementComponent<any>, never, never, {}, {}, never, never, false>;
81
49
  }
82
- export interface DesignerModel {
83
- types: ElementModel<any>[];
84
- tTypes: TemplateInfo[];
85
- guides: ElementModel<any>[];
86
- reports: ElementModel<any>[];
87
- tReports: TemplateInfo[];
88
- forms: ElementModel<any>[];
89
- tForms: TemplateInfo[];
90
- cubes: ElementModel<any>[];
91
- tCubes: TemplateInfo[];
92
- utilities: ElementModel<any>[];
93
- tUtilities: TemplateInfo[];
94
- folders: ElementModel<any>[];
95
- roles: ElementModel<any>[];
96
- rules: ElementModel<any>[];
97
- tRules: TemplateInfo[];
98
- views: ElementModel<any>[];
99
- tViews: TemplateInfo[];
100
- widgets: ElementModel<any>[];
101
- tWidgets: TemplateInfo[];
102
- actions: ElementModel<any>[];
103
- tActions: TemplateInfo[];
104
- states: ElementModel<any>[];
105
- }
106
- export interface TemplateInfo {
107
- template?: string;
108
- title?: string;
109
- icon?: string;
110
- family?: string;
111
- help?: string;
112
- type?: string;
113
- arguments?: FieldInfo[];
114
- }
115
- export interface ElementModel<T = any> {
116
- injector: Injector;
117
- ordinal?: number;
118
- help?: string;
119
- configurationFile?: string;
120
- template?: string;
121
- icon?: string;
122
- resource?: string;
123
- copyOf?: string;
124
- family?: string;
125
- type?: string;
126
- name: string;
127
- title: string;
128
- disabled?: boolean;
129
- draft?: boolean;
130
- empty?: boolean;
131
- options?: T;
132
- arguments?: FieldInfo[];
133
- privileges?: PrivilegesModel;
134
- filters?: CubeFilter;
135
- columns?: FolderColumn[];
136
- anomaly?: AnomalyPolicy;
137
- verb?: string;
138
- you?: string;
139
- youMale?: string;
140
- youFemale?: string;
141
- past?: string;
142
- pastMale?: string;
143
- pastFemale?: string;
144
- adjective?: string;
145
- loggable?: boolean;
146
- adjectivePlural?: string;
147
- assignable?: boolean;
148
- position?: PositionPolicy;
149
- multiple?: boolean;
150
- shape?: string;
151
- group?: number;
152
- dataType?: string;
153
- steps?: GuideStep[];
154
- currencyCode?: string;
155
- axes?: CubeAxisModel[];
156
- views?: CubeViewModel[];
157
- indices?: CubeIndexModel[];
158
- scope?: ScopeType;
159
- color?: string;
160
- backgroundColor?: string;
161
- rules?: PermissionModel[];
162
- positions?: {
163
- [key: string]: string[];
164
- };
165
- patterns?: PatternModel[];
166
- }
167
- export interface CubeIndexModel {
168
- name: string;
169
- accumulate?: boolean;
170
- hidden?: boolean;
171
- title: string;
172
- }
173
- export interface CubeViewModel {
174
- privileges?: PrivilegesModel;
175
- xAxis: string[];
176
- series?: string[];
177
- filters?: AxesMap;
178
- indices?: string[];
179
- icon?: string;
180
- guide?: string;
181
- name: string;
182
- title: string;
183
- type: ViewType;
184
- chartType?: ChartType;
185
- indicesChartType?: ChartType;
186
- }
187
- export interface CubeAxisModel {
188
- name: string;
189
- title: string;
190
- dataType: string;
191
- hidden?: boolean;
192
- combination?: boolean;
193
- indexable?: boolean;
194
- sensitive?: boolean;
195
- resourceType?: string;
196
- selectionMode?: 'Single' | 'Pattern' | 'Multiple' | 'Search' | 'None';
197
- descendentOf?: string;
198
- }
199
- export declare type AnomalyPolicy = 'Positions' | 'Recipients';
200
- export interface PatternModel {
201
- title: string;
202
- resourceType?: string;
203
- axes: AxesMap;
204
- rule?: string;
205
- roles?: string[];
206
- }
207
- export interface PermissionModel {
208
- name: string;
209
- title: string;
210
- rule?: string;
211
- roles?: string[];
212
- }
213
- export interface PrivilegesModel {
214
- rule?: string;
215
- roles?: string[];
216
- }
217
- export interface DesignerInfo {
218
- types: ElementInfo[];
219
- guides: ElementInfo[];
220
- reports: ElementInfo[];
221
- tReports: TemplateInfo[];
222
- forms: ElementInfo[];
223
- cubes: ElementInfo[];
224
- utilities: ElementInfo[];
225
- folders: ElementInfo[];
226
- roles: ElementInfo[];
227
- rules: ElementInfo[];
228
- views: ElementInfo[];
229
- widgets: ElementInfo[];
230
- actions: ElementInfo[];
231
- states: ElementInfo[];
232
- }
233
- export interface ElementInfo<T = any> {
234
- family?: string;
235
- type?: string;
236
- name: string;
237
- title: string;
238
- disabled?: boolean;
239
- draft?: boolean;
240
- empty?: boolean;
241
- options?: T;
242
- }
50
+ export declare function isAccum(chartType: any): boolean;
@@ -7,7 +7,7 @@ import { PromptService } from "../../core/prompt.service";
7
7
  import { PanesRouter } from "../../core/slots/router.service";
8
8
  import { TranslateService } from "../../core/translate.service";
9
9
  import { UtilityRef } from "../utility-ref";
10
- import { ElementModel, DesignerModel, TemplateInfo } from "./designer.base";
10
+ import { ElementModel, DesignerModel, TemplateInfo } from "./declarations";
11
11
  import * as i0 from "@angular/core";
12
12
  /** */
13
13
  export declare class ConfigurationDesignerComponent implements UtilityComponent, OnInit {
@@ -14,7 +14,7 @@ export declare class ChartViewDesignComponent extends DesignerCubeElementCompone
14
14
  filters: import("@angular/forms").FormGroup<{}>;
15
15
  scope: import("@angular/forms").FormControl<unknown>;
16
16
  }>;
17
- get isAccum(): boolean;
17
+ ngOnInit(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartViewDesignComponent, never>;
19
19
  static ɵcmp: i0.ɵɵComponentDeclaration<ChartViewDesignComponent, "ng-component", never, {}, {}, never, never, false>;
20
20
  }
@@ -13,7 +13,7 @@ export declare class AnalysisWidgetDesignComponent extends DesignerCubeElementCo
13
13
  indicesChartType: import("@angular/forms").FormControl<unknown>;
14
14
  scope: import("@angular/forms").FormControl<unknown>;
15
15
  }>;
16
- get isAccum(): boolean;
16
+ ngOnInit(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AnalysisWidgetDesignComponent, never>;
18
18
  static ɵcmp: i0.ɵɵComponentDeclaration<AnalysisWidgetDesignComponent, "ng-component", never, {}, {}, never, never, false>;
19
19
  }