@bizdoc/core 1.16.3 → 1.16.6
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.
- package/assets/system/Microsoft_Azure.svg +23 -0
- package/assets/system/QAD.svg +359 -0
- package/assets/system/sap.svg +1 -0
- package/esm2020/lib/admin/configuration-designer/cube-axes-filter.component.mjs +112 -0
- package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +204 -131
- package/esm2020/lib/admin/configuration-designer/designer.base.mjs +57 -10
- package/esm2020/lib/admin/configuration-designer/designer.component.mjs +86 -56
- package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +36 -16
- package/esm2020/lib/admin/configuration-designer/elements/analysis-view.component.mjs +5 -4
- package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +5 -4
- package/esm2020/lib/admin/configuration-designer/elements/anomaly-rule.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/box-form.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/configuration-datasource.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/cube-index-utility.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/cube-view.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +81 -63
- package/esm2020/lib/admin/configuration-designer/elements/documents-report.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/documents-widget.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/explore-view.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/folder.component.mjs +42 -13
- package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +12 -17
- package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +8 -13
- package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +5 -4
- package/esm2020/lib/admin/configuration-designer/elements/parallel-view.component.mjs +4 -4
- package/esm2020/lib/admin/configuration-designer/elements/performance-widget.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/pivot-view.component.mjs +4 -4
- package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +9 -14
- package/esm2020/lib/admin/configuration-designer/elements/return-to-role-action.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/role.component.mjs +13 -5
- package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +6 -13
- package/esm2020/lib/admin/configuration-designer/elements/state.component.mjs +20 -15
- package/esm2020/lib/admin/configuration-designer/elements/sum-view.component.mjs +4 -4
- package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +8 -14
- package/esm2020/lib/admin/configuration-designer/elements/usage-report.component.mjs +4 -4
- package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +6 -6
- package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +6 -13
- package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +7 -12
- package/esm2020/lib/admin/configuration-designer/icon-picker.component.mjs +3 -3
- package/esm2020/lib/admin/form/workflow/node.component.mjs +2 -2
- package/esm2020/lib/bizdoc.module.mjs +1 -3
- package/esm2020/lib/core/functions.mjs +4 -3
- package/esm2020/lib/core/layout/input.base.mjs +45 -1
- package/esm2020/lib/core/layout/input.field.mjs +3 -2
- package/esm2020/lib/core/layout/layout.component.mjs +16 -58
- package/esm2020/lib/core/models.mjs +1 -1
- package/esm2020/lib/core/slots/router.service.mjs +1 -1
- package/esm2020/lib/core/slots/slots.component.mjs +12 -7
- package/esm2020/lib/core/translations.mjs +15 -2
- package/esm2020/lib/dashboard/widget-item.component.mjs +2 -2
- package/esm2020/lib/reports/arguments-component.mjs +2 -2
- package/esm2020/lib/shared.module.mjs +3 -1
- package/esm2020/lib/system.module.mjs +10 -9
- package/esm2020/lib/views/cube/sum.component.mjs +1 -1
- package/fesm2015/bizdoc-core.mjs +1604 -1306
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +1591 -1294
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/admin/configuration-designer/cube-axes-filter.component.d.ts +35 -0
- package/lib/admin/configuration-designer/designer-element.component.d.ts +66 -27
- package/lib/admin/configuration-designer/designer.base.d.ts +99 -38
- package/lib/admin/configuration-designer/designer.component.d.ts +8 -4
- package/lib/admin/configuration-designer/elements/action.component.d.ts +18 -4
- package/lib/admin/configuration-designer/elements/cube.component.d.ts +1 -8
- package/lib/admin/configuration-designer/elements/folder.component.d.ts +8 -4
- package/lib/admin/configuration-designer/elements/report.component.d.ts +3 -3
- package/lib/admin/configuration-designer/elements/role.component.d.ts +2 -0
- package/lib/admin/configuration-designer/elements/state.component.d.ts +4 -0
- package/lib/core/layout/input.base.d.ts +4 -1
- package/lib/core/layout/input.field.d.ts +1 -1
- package/lib/core/layout/layout.component.d.ts +5 -7
- package/lib/core/models.d.ts +5 -4
- package/lib/core/slots/router.service.d.ts +2 -0
- package/lib/core/translations.d.ts +13 -0
- package/lib/system.module.d.ts +50 -49
- package/lib/views/cube/sum.component.d.ts +3 -3
- package/package.json +16 -16
@@ -0,0 +1,35 @@
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
2
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import { AxesMap } from '../../core/models';
|
5
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
6
|
+
import { CubeService } from '../../cube/cube.service';
|
7
|
+
import { DesignerRef, ElementModel } from './designer.base';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class DesignerCubeFilterComponent implements OnInit, OnChanges, OnDestroy {
|
10
|
+
private readonly _service;
|
11
|
+
private _ref;
|
12
|
+
private readonly _fb;
|
13
|
+
readonly pattern: RegExp;
|
14
|
+
cube: ElementModel;
|
15
|
+
model: AxesMap;
|
16
|
+
form: FormGroup;
|
17
|
+
readonly sources: {
|
18
|
+
[axis: string]: Observable<{
|
19
|
+
[key: string]: any;
|
20
|
+
}>;
|
21
|
+
};
|
22
|
+
private readonly _decendents;
|
23
|
+
private readonly _ancestors;
|
24
|
+
private readonly _destroy;
|
25
|
+
ngOnInit(): void;
|
26
|
+
ngOnChanges(changes: SimpleChanges): void;
|
27
|
+
private _initialize;
|
28
|
+
/** filter ctor */
|
29
|
+
constructor(_service: CubeService, _ref: DesignerRef, _fb: FormBuilder);
|
30
|
+
display(keyValue: any): any;
|
31
|
+
change(axis: string, evt: MatAutocompleteSelectedEvent): void;
|
32
|
+
ngOnDestroy(): void;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerCubeFilterComponent, never>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DesignerCubeFilterComponent, "bizdoc-designer-cube-filter", never, { "cube": "cube"; "model": "model"; "form": "form"; }, {}, never, never, false>;
|
35
|
+
}
|
@@ -1,47 +1,86 @@
|
|
1
|
-
import {
|
1
|
+
import { AfterViewInit, ComponentFactoryResolver, ElementRef, EventEmitter, Injector, OnDestroy, QueryList, ViewContainerRef } from "@angular/core";
|
2
2
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
3
3
|
import { BizDocComponentFactoryResolver } from "../../core/component-factory-resolver";
|
4
|
+
import { Role } from "../../core/models";
|
4
5
|
import { PaneRef } from "../../core/slots/pane-ref";
|
5
6
|
import { SystemService } from "../system.service";
|
6
|
-
import {
|
7
|
+
import { DesignerRef, ElementModel, DesignMode } from "./designer.base";
|
7
8
|
import * as i0 from "@angular/core";
|
8
|
-
export
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
export declare class DesignerElementInfoComponent {
|
10
|
+
private _cfr;
|
11
|
+
private _ref;
|
12
|
+
svg: {
|
13
|
+
Azure: string;
|
14
|
+
SAP: string;
|
15
|
+
Mfg: string;
|
16
|
+
};
|
17
|
+
model: ElementModel<any>;
|
18
|
+
_econtainer: ViewContainerRef;
|
19
|
+
_arguments: ViewContainerRef;
|
20
|
+
constructor(_cfr: BizDocComponentFactoryResolver, _ref: DesignerRef<any>);
|
21
|
+
ngOnInit(): void;
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementInfoComponent, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DesignerElementInfoComponent, "bizdoc-designer-element-info", never, {}, {}, never, ["*"], false>;
|
13
24
|
}
|
14
|
-
export declare class
|
15
|
-
private
|
16
|
-
private _pane;
|
25
|
+
export declare class DesignerElementPhaseComponent implements AfterViewInit, OnDestroy {
|
26
|
+
private _ref;
|
17
27
|
private _fb;
|
18
|
-
private
|
28
|
+
private _injector;
|
19
29
|
private _cfr;
|
20
|
-
private
|
30
|
+
private _componentFactoryResolver;
|
31
|
+
private _service;
|
32
|
+
private _element;
|
33
|
+
state: string;
|
21
34
|
form: FormGroup;
|
22
|
-
|
23
|
-
template: string;
|
24
|
-
model: ElementModel;
|
25
|
-
designer: DesignerModel;
|
26
|
-
change: EventEmitter<ElementModel>;
|
27
|
-
_container: ViewContainerRef;
|
35
|
+
readonly onSave: EventEmitter<any>;
|
28
36
|
_econtainer: ViewContainerRef;
|
37
|
+
_arguments: ViewContainerRef;
|
38
|
+
model: ElementModel<any>;
|
39
|
+
roles: Role[];
|
29
40
|
valid: boolean;
|
30
41
|
dirty: boolean;
|
31
|
-
|
32
|
-
|
33
|
-
constructor(_injector: Injector,
|
34
|
-
save(): void;
|
42
|
+
private readonly _destroy;
|
43
|
+
active: boolean;
|
44
|
+
constructor(_ref: DesignerRef<any>, _fb: FormBuilder, _injector: Injector, _cfr: BizDocComponentFactoryResolver, _componentFactoryResolver: ComponentFactoryResolver, _service: SystemService, _element: ElementRef<HTMLDivElement>);
|
35
45
|
ngOnInit(): void;
|
36
|
-
|
37
|
-
|
38
|
-
|
46
|
+
ngAfterViewInit(): void;
|
47
|
+
unlock(evt: Event): void;
|
48
|
+
save(): void;
|
39
49
|
/**
|
40
50
|
* Ctrl-s save
|
41
51
|
* @param event
|
42
52
|
*/
|
43
53
|
handleKeyboardEvent(event: KeyboardEvent): void;
|
44
54
|
ngOnDestroy(): void;
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementPhaseComponent, never>;
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DesignerElementPhaseComponent, "bizdoc-designer-element-edit", never, { "state": "state"; "form": "form"; }, { "onSave": "save"; }, never, ["*"], false>;
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
```html
|
60
|
+
<bizdoc-designer-element (save)="save.emit($event)">
|
61
|
+
<bizdoc-designer-element-info>
|
62
|
+
</bizdoc-designer-element-info>
|
63
|
+
<bizdoc-designer-element-edit [form]="form">
|
64
|
+
<form autocomplete="off" [formGroup]="form">
|
65
|
+
</form>
|
66
|
+
</bizdoc-designer-element-edit>
|
67
|
+
</bizdoc-designer-element>
|
68
|
+
```
|
69
|
+
*/
|
70
|
+
export declare class DesignerItemComponent {
|
71
|
+
private _pane;
|
72
|
+
info: DesignerElementInfoComponent;
|
73
|
+
phases: QueryList<DesignerElementPhaseComponent>;
|
74
|
+
state: string;
|
75
|
+
readonly save: EventEmitter<any>;
|
76
|
+
mode: DesignMode;
|
77
|
+
valid: boolean;
|
78
|
+
dirty: boolean;
|
79
|
+
model: ElementModel<any>;
|
80
|
+
phase: DesignerElementPhaseComponent;
|
81
|
+
constructor(ref: DesignerRef<any>, _pane: PaneRef);
|
82
|
+
ngOnChanges(): void;
|
83
|
+
ngAfterContentInit(): void;
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerItemComponent, [null, { optional: true; }]>;
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DesignerItemComponent, "bizdoc-designer-element", never, { "state": "state"; }, { "save": "save"; }, ["info", "phases"], ["bizdoc-designer-element-info", "bizdoc-designer-element-edit"], false>;
|
47
86
|
}
|
@@ -1,51 +1,56 @@
|
|
1
|
-
import { OnInit } from "@angular/core";
|
1
|
+
import { EventEmitter, Injector, 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
5
|
import { ScopeType } from "../../core/configuration";
|
6
|
-
import { AxesMap,
|
6
|
+
import { AxesMap, ChartType, CubeAxis, CubeFilter, FieldInfo, FolderColumn, GuideStep, PositionPolicy, ViewType } from "../../core/models";
|
7
|
+
import { Subject } from "rxjs";
|
7
8
|
import * as i0 from "@angular/core";
|
9
|
+
export declare const FAMILY_SVG: {
|
10
|
+
Azure: string;
|
11
|
+
SAP: string;
|
12
|
+
Mfg: string;
|
13
|
+
};
|
14
|
+
/** */
|
8
15
|
export declare class DesignerRef<O = any> {
|
9
16
|
private _designer;
|
10
17
|
private _element;
|
11
|
-
|
18
|
+
mode: DesignMode;
|
19
|
+
_lock$: Subject<boolean>;
|
20
|
+
constructor(_designer: DesignerModel, _element: ElementModel, mode: DesignMode);
|
12
21
|
get designer(): DesignerInfo;
|
13
|
-
get
|
14
|
-
get
|
15
|
-
}
|
16
|
-
export interface ElementInfo<O = any> {
|
17
|
-
family?: string;
|
18
|
-
type?: string;
|
19
|
-
name: string;
|
20
|
-
title: string;
|
21
|
-
disabled?: boolean;
|
22
|
-
draft?: boolean;
|
23
|
-
empty?: boolean;
|
22
|
+
get model(): ElementInfo<O>;
|
23
|
+
get lockChange(): import("rxjs").Observable<boolean>;
|
24
24
|
}
|
25
25
|
export interface DesignerElementComponent<T> {
|
26
26
|
model: ElementInfo<T>;
|
27
27
|
mode: DesignMode;
|
28
28
|
form: FormGroup;
|
29
|
+
save: EventEmitter<ElementInfo>;
|
29
30
|
}
|
30
|
-
export declare type DesignMode = 'edit' | 'widget';
|
31
|
+
export declare type DesignMode = 'add' | 'edit' | 'widget';
|
31
32
|
/** */
|
32
33
|
export declare abstract class DesignerElementComponentBase<T = any> implements DesignerElementComponent<T> {
|
33
34
|
protected _fb: FormBuilder;
|
34
|
-
protected _ref: DesignerRef
|
35
|
+
protected _ref: DesignerRef<T>;
|
35
36
|
mode: DesignMode;
|
36
37
|
model: ElementModel<T>;
|
38
|
+
save: EventEmitter<ElementModel>;
|
37
39
|
get options(): T;
|
38
40
|
abstract form: FormGroup;
|
39
|
-
constructor(_fb: FormBuilder, _ref: DesignerRef);
|
41
|
+
constructor(_fb: FormBuilder, _ref: DesignerRef<T>);
|
40
42
|
drop(event: CdkDragDrop<FormGroup>, collection: FormArray): void;
|
43
|
+
disable(...names: string[]): void;
|
44
|
+
enable(...names: string[]): void;
|
41
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerElementComponentBase<any>, never>;
|
42
46
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerElementComponentBase<any>, never, never, {}, {}, never, never, false>;
|
43
47
|
}
|
48
|
+
export declare function clone(element: ElementModel): any;
|
44
49
|
export declare abstract class DesignerTypeElementComponent<T = any> extends DesignerElementComponentBase<T> {
|
45
|
-
ngOnInit(): void;
|
46
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerTypeElementComponent<any>, never>;
|
47
51
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerTypeElementComponent<any>, never, never, {}, {}, never, never, false>;
|
48
52
|
}
|
53
|
+
export declare function arrayOf(val: string | string[]): string[];
|
49
54
|
/**
|
50
55
|
*
|
51
56
|
* @param name
|
@@ -70,22 +75,6 @@ export declare abstract class DesignerCubeElementComponent<T = any> extends Desi
|
|
70
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerCubeElementComponent<any>, never>;
|
71
76
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerCubeElementComponent<any>, never, never, {}, {}, never, never, false>;
|
72
77
|
}
|
73
|
-
export interface DesignerInfo {
|
74
|
-
types: ElementInfo[];
|
75
|
-
guides: ElementInfo[];
|
76
|
-
reports: ElementInfo[];
|
77
|
-
tReports: TemplateInfo[];
|
78
|
-
forms: ElementInfo[];
|
79
|
-
cubes: ElementInfo[];
|
80
|
-
utilities: ElementInfo[];
|
81
|
-
folders: ElementInfo[];
|
82
|
-
roles: ElementInfo[];
|
83
|
-
rules: ElementInfo[];
|
84
|
-
views: ElementInfo[];
|
85
|
-
widgets: ElementInfo[];
|
86
|
-
actions: ElementInfo[];
|
87
|
-
states: ElementInfo[];
|
88
|
-
}
|
89
78
|
export interface DesignerModel {
|
90
79
|
types: ElementModel<any>[];
|
91
80
|
tTypes: TemplateInfo[];
|
@@ -120,12 +109,13 @@ export interface TemplateInfo {
|
|
120
109
|
arguments?: FieldInfo[];
|
121
110
|
}
|
122
111
|
export interface ElementModel<T = any> {
|
112
|
+
injector: Injector;
|
123
113
|
ordinal?: number;
|
124
114
|
help?: string;
|
125
115
|
configurationFile?: string;
|
126
116
|
template?: string;
|
127
117
|
icon?: string;
|
128
|
-
resource?:
|
118
|
+
resource?: string;
|
129
119
|
copyOf?: string;
|
130
120
|
family?: string;
|
131
121
|
type?: string;
|
@@ -137,15 +127,30 @@ export interface ElementModel<T = any> {
|
|
137
127
|
options?: T;
|
138
128
|
arguments?: FieldInfo[];
|
139
129
|
privileges?: PrivilegesModel;
|
130
|
+
filters?: CubeFilter;
|
131
|
+
columns?: FolderColumn[];
|
140
132
|
anomaly?: AnomalyPolicy;
|
133
|
+
verb?: string;
|
134
|
+
you?: string;
|
135
|
+
youMale?: string;
|
136
|
+
youFemale?: string;
|
137
|
+
past?: string;
|
138
|
+
pastMale?: string;
|
139
|
+
pastFemale?: string;
|
140
|
+
adjective?: string;
|
141
|
+
loggable?: boolean;
|
142
|
+
adjectivePlural?: string;
|
141
143
|
assignable?: boolean;
|
142
144
|
position?: PositionPolicy;
|
145
|
+
multiple?: boolean;
|
146
|
+
shape?: string;
|
147
|
+
group?: number;
|
143
148
|
dataType?: string;
|
144
149
|
steps?: GuideStep[];
|
145
150
|
currencyCode?: string;
|
146
|
-
axes?:
|
147
|
-
views?:
|
148
|
-
indices?:
|
151
|
+
axes?: CubeAxisModel[];
|
152
|
+
views?: CubeViewModel[];
|
153
|
+
indices?: CubeIndexModel[];
|
149
154
|
scope?: ScopeType;
|
150
155
|
color?: string;
|
151
156
|
backgroundColor?: string;
|
@@ -155,6 +160,37 @@ export interface ElementModel<T = any> {
|
|
155
160
|
};
|
156
161
|
patterns?: PatternModel[];
|
157
162
|
}
|
163
|
+
export interface CubeIndexModel {
|
164
|
+
name: string;
|
165
|
+
accumulate?: boolean;
|
166
|
+
hidden?: boolean;
|
167
|
+
title: string;
|
168
|
+
}
|
169
|
+
export interface CubeViewModel {
|
170
|
+
privileges?: PrivilegesModel;
|
171
|
+
xAxis: string[];
|
172
|
+
series?: string[];
|
173
|
+
filters?: AxesMap;
|
174
|
+
indices?: string[];
|
175
|
+
icon?: string;
|
176
|
+
guide?: string;
|
177
|
+
name: string;
|
178
|
+
title: string;
|
179
|
+
type: ViewType;
|
180
|
+
chartType?: ChartType;
|
181
|
+
indicesChartType?: ChartType;
|
182
|
+
}
|
183
|
+
export interface CubeAxisModel {
|
184
|
+
name: string;
|
185
|
+
title: string;
|
186
|
+
dataType: string;
|
187
|
+
hidden?: boolean;
|
188
|
+
combination?: boolean;
|
189
|
+
indexable?: boolean;
|
190
|
+
sensitive?: boolean;
|
191
|
+
selectionMode?: 'Single' | 'Pattern' | 'Multiple' | 'Search' | 'None';
|
192
|
+
descendentOf?: string;
|
193
|
+
}
|
158
194
|
export declare type AnomalyPolicy = 'Positions' | 'Recipients';
|
159
195
|
export interface PatternModel {
|
160
196
|
title: string;
|
@@ -172,3 +208,28 @@ export interface PrivilegesModel {
|
|
172
208
|
rule?: string;
|
173
209
|
roles?: string[];
|
174
210
|
}
|
211
|
+
export interface DesignerInfo {
|
212
|
+
types: ElementInfo[];
|
213
|
+
guides: ElementInfo[];
|
214
|
+
reports: ElementInfo[];
|
215
|
+
tReports: TemplateInfo[];
|
216
|
+
forms: ElementInfo[];
|
217
|
+
cubes: ElementInfo[];
|
218
|
+
utilities: ElementInfo[];
|
219
|
+
folders: ElementInfo[];
|
220
|
+
roles: ElementInfo[];
|
221
|
+
rules: ElementInfo[];
|
222
|
+
views: ElementInfo[];
|
223
|
+
widgets: ElementInfo[];
|
224
|
+
actions: ElementInfo[];
|
225
|
+
states: ElementInfo[];
|
226
|
+
}
|
227
|
+
export interface ElementInfo<O = any> {
|
228
|
+
family?: string;
|
229
|
+
type?: string;
|
230
|
+
name: string;
|
231
|
+
title: string;
|
232
|
+
disabled?: boolean;
|
233
|
+
draft?: boolean;
|
234
|
+
empty?: boolean;
|
235
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
2
|
-
import {
|
2
|
+
import { ComponentType } from "@angular/cdk/portal";
|
3
|
+
import { Injector, OnInit } from "@angular/core";
|
3
4
|
import { MatMenuTrigger } from "@angular/material/menu";
|
4
5
|
import { UtilityComponent } from "../../core/base";
|
5
6
|
import { PromptService } from "../../core/prompt.service";
|
@@ -13,13 +14,14 @@ export declare class ConfigurationDesignerComponent implements UtilityComponent,
|
|
13
14
|
private _panes;
|
14
15
|
private _translate;
|
15
16
|
private _ps;
|
17
|
+
private _injector;
|
16
18
|
private _ref;
|
17
19
|
loading: boolean;
|
18
20
|
saving: boolean;
|
19
21
|
dirty: boolean;
|
20
22
|
sections: Section[];
|
21
23
|
model: DesignerModel;
|
22
|
-
constructor(_panes: PanesRouter, _translate: TranslateService, _ps: PromptService, _ref: UtilityRef<boolean, DesignerModel, DesignerModel>);
|
24
|
+
constructor(_panes: PanesRouter, _translate: TranslateService, _ps: PromptService, _injector: Injector, _ref: UtilityRef<boolean, DesignerModel, DesignerModel>);
|
23
25
|
ngOnInit(): void;
|
24
26
|
drop(event: CdkDragDrop<ElementModel[]>): void;
|
25
27
|
/**
|
@@ -29,17 +31,19 @@ export declare class ConfigurationDesignerComponent implements UtilityComponent,
|
|
29
31
|
handleKeyboardEvent(event: KeyboardEvent): void;
|
30
32
|
discard(section: Section, element: ElementModel): void;
|
31
33
|
private _insert;
|
34
|
+
private _open;
|
35
|
+
private _createInjector;
|
32
36
|
add(section: Section, menu: MatMenuTrigger, evt: Event): void;
|
33
37
|
create(section: Section, template: TemplateInfo): void;
|
34
38
|
copy(section: Section, element: ElementModel): void;
|
35
|
-
edit(element: ElementModel, section: Section):
|
39
|
+
edit(element: ElementModel, section: Section): void;
|
36
40
|
toggleDisabled(element: ElementModel): void;
|
37
41
|
save(): Promise<void>;
|
38
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationDesignerComponent, never>;
|
39
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationDesignerComponent, "ng-component", never, {}, {}, never, never, false>;
|
40
44
|
}
|
41
45
|
interface Section {
|
42
|
-
|
46
|
+
comp: ComponentType<any>;
|
43
47
|
type: string;
|
44
48
|
elements: ElementModel[];
|
45
49
|
templates: TemplateInfo[];
|
@@ -1,8 +1,22 @@
|
|
1
1
|
import { FormGroup } from "@angular/forms";
|
2
2
|
import { DesignerTypeElementComponent } from "../designer.base";
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
export declare class ActionDesignerComponent extends DesignerTypeElementComponent {
|
5
|
+
private static resources;
|
6
|
+
form: FormGroup<{
|
7
|
+
multiple: import("@angular/forms").FormControl<unknown>;
|
8
|
+
color: import("@angular/forms").FormControl<unknown>;
|
9
|
+
verb: import("@angular/forms").FormControl<unknown>;
|
10
|
+
you: import("@angular/forms").FormControl<unknown>;
|
11
|
+
youMale: import("@angular/forms").FormControl<unknown>;
|
12
|
+
youFemale: import("@angular/forms").FormControl<unknown>;
|
13
|
+
past: import("@angular/forms").FormControl<unknown>;
|
14
|
+
pastMale: import("@angular/forms").FormControl<unknown>;
|
15
|
+
pastFemale: import("@angular/forms").FormControl<unknown>;
|
16
|
+
adjective: import("@angular/forms").FormControl<unknown>;
|
17
|
+
adjectivePlural: import("@angular/forms").FormControl<unknown>;
|
18
|
+
}>;
|
19
|
+
ngOnInit(): void;
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionDesignerComponent, never>;
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionDesignerComponent, "ng-component", never, {}, {}, never, never, false>;
|
8
22
|
}
|
@@ -1,8 +1,5 @@
|
|
1
|
-
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
2
1
|
import { OnInit } from "@angular/core";
|
3
2
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
4
|
-
import { MatSelectChange } from "@angular/material/select";
|
5
|
-
import { CubeAxis } from "../../../core/models";
|
6
3
|
import { PromptService } from "../../../core/prompt.service";
|
7
4
|
import { CubeInfo, SystemService } from "../../system.service";
|
8
5
|
import { DesignerTypeElementComponent, DesignerRef, ElementInfo } from "../designer.base";
|
@@ -23,31 +20,27 @@ export declare class CubeDesignComponent extends DesignerTypeElementComponent im
|
|
23
20
|
scope: import("@angular/forms").FormControl<any>;
|
24
21
|
anomaly: import("@angular/forms").FormControl<any>;
|
25
22
|
}>;
|
26
|
-
secondaryAxes: CubeAxis[][];
|
27
23
|
usage: CubeInfo;
|
28
24
|
syncing: boolean;
|
29
25
|
readonly types: ElementInfo[];
|
30
26
|
constructor(fb: FormBuilder, _service: SystemService, _ps: PromptService, ref: DesignerRef);
|
31
27
|
sync(): void;
|
32
28
|
ngOnInit(): void;
|
33
|
-
dropView(event: CdkDragDrop<FormGroup>): void;
|
34
29
|
removeAxis(index: number): void;
|
35
30
|
removeIndex(index: number): void;
|
36
31
|
removePattern(index: number): void;
|
37
32
|
removeView(index: number): void;
|
33
|
+
createAxis(): any;
|
38
34
|
addAxis(): void;
|
39
35
|
addIndex(): void;
|
40
36
|
addView(): void;
|
41
37
|
addPattern(): void;
|
42
38
|
nameOf(axis: string | string[]): string;
|
43
|
-
xAxisSelected(index: number, evt: MatSelectChange): void;
|
44
|
-
protected _secondaryAxes(index: number, axis: string[] | string): void;
|
45
39
|
private _formview;
|
46
40
|
private _formaxis;
|
47
41
|
private _formindex;
|
48
42
|
private _formpattern;
|
49
43
|
datatype(name: string): string;
|
50
|
-
isAccum(index: number): boolean;
|
51
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeDesignComponent, never>;
|
52
45
|
static ɵcmp: i0.ɵɵComponentDeclaration<CubeDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
53
46
|
}
|
@@ -1,9 +1,13 @@
|
|
1
|
-
import { DesignerTypeElementComponent } from "../designer.base";
|
1
|
+
import { DesignerTypeElementComponent, ElementInfo } from "../designer.base";
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class FolderDesignComponent extends DesignerTypeElementComponent {
|
4
|
-
readonly
|
5
|
-
|
6
|
-
|
4
|
+
readonly columns: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
|
5
|
+
readonly form: import("@angular/forms").FormGroup<{}>;
|
6
|
+
cubes: ElementInfo[];
|
7
|
+
cube: ElementInfo<any>;
|
8
|
+
ngOnInit(): void;
|
9
|
+
private _formcolumn;
|
10
|
+
add(): void;
|
7
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FolderDesignComponent, never>;
|
8
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<FolderDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
9
13
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { DesignerTypeElementComponent, ElementInfo } from "../designer.base";
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class
|
3
|
+
export declare class ReportDesignerComponent extends DesignerTypeElementComponent {
|
4
4
|
readonly form: import("@angular/forms").FormGroup<{
|
5
5
|
guide: import("@angular/forms").FormControl<unknown>;
|
6
6
|
icon: import("@angular/forms").FormControl<unknown>;
|
7
7
|
}>;
|
8
8
|
guides: ElementInfo[];
|
9
9
|
ngOnInit(): void;
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportDesignerComponent, never>;
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReportDesignerComponent, "ng-component", never, {}, {}, never, never, false>;
|
12
12
|
}
|
@@ -5,7 +5,9 @@ export declare class RoleDesignComponent extends DesignerTypeElementComponent {
|
|
5
5
|
dataType: import("@angular/forms").FormControl<any>;
|
6
6
|
}>;
|
7
7
|
types: ElementInfo[];
|
8
|
+
dataTypeDisabled: boolean;
|
8
9
|
ngOnInit(): void;
|
10
|
+
enableTypeEdit(): void;
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<RoleDesignComponent, never>;
|
10
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<RoleDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
11
13
|
}
|
@@ -1,10 +1,14 @@
|
|
1
1
|
import { DesignerTypeElementComponent } from "../designer.base";
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class StateDesignComponent extends DesignerTypeElementComponent {
|
4
|
+
private static resources;
|
4
5
|
readonly form: import("@angular/forms").FormGroup<{
|
6
|
+
past: import("@angular/forms").FormControl<unknown>;
|
7
|
+
future: import("@angular/forms").FormControl<unknown>;
|
5
8
|
color: import("@angular/forms").FormControl<unknown>;
|
6
9
|
backgroundColor: import("@angular/forms").FormControl<unknown>;
|
7
10
|
}>;
|
11
|
+
ngOnInit(): void;
|
8
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<StateDesignComponent, never>;
|
9
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<StateDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
10
14
|
}
|
@@ -3,8 +3,11 @@ import { FieldInfo } from '../models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare abstract class FieldBase {
|
5
5
|
abstract control: AbstractControl;
|
6
|
-
|
6
|
+
private _field;
|
7
|
+
set field(val: FieldInfo);
|
8
|
+
get field(): FieldInfo;
|
7
9
|
abstract focus(): any;
|
10
|
+
private _validations;
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldBase, never>;
|
9
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldBase, never, never, {}, {}, never, never, false>;
|
10
13
|
}
|
@@ -10,5 +10,5 @@ export declare class InputField extends FieldBase implements OnInit {
|
|
10
10
|
ngOnInit(): void;
|
11
11
|
focus(): void;
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputField, never>;
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputField, "
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputField, "bizdoc-input-field", never, {}, {}, never, never, false>;
|
14
14
|
}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { EventEmitter, ViewContainerRef, OnDestroy, OnChanges, SimpleChanges, ComponentFactoryResolver, AfterViewInit
|
1
|
+
import { EventEmitter, ViewContainerRef, OnDestroy, OnChanges, SimpleChanges, ComponentFactoryResolver, AfterViewInit } from '@angular/core';
|
2
2
|
import { FieldInfo } from '../models';
|
3
3
|
import { FormGroup } from '@angular/forms';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDestroy {
|
6
6
|
private _resolver;
|
7
|
-
private _zone;
|
8
7
|
fields: FieldInfo[];
|
9
8
|
model: {};
|
10
9
|
readonly modelChange: EventEmitter<{}>;
|
@@ -13,16 +12,15 @@ export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDest
|
|
13
12
|
params: any;
|
14
13
|
valid: boolean;
|
15
14
|
readonly validChange: EventEmitter<boolean>;
|
16
|
-
|
15
|
+
_containerRef: ViewContainerRef;
|
17
16
|
private readonly _destroy;
|
18
|
-
form: FormGroup
|
17
|
+
readonly form: FormGroup<{}>;
|
19
18
|
private _children;
|
20
19
|
/** layout ctor */
|
21
|
-
constructor(_resolver: ComponentFactoryResolver
|
20
|
+
constructor(_resolver: ComponentFactoryResolver);
|
22
21
|
ngAfterViewInit(): void;
|
23
22
|
ngOnChanges(changes: SimpleChanges): void;
|
24
|
-
|
25
|
-
private _validations;
|
23
|
+
formulate(): void;
|
26
24
|
focus(): void;
|
27
25
|
ngOnDestroy(): void;
|
28
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
package/lib/core/models.d.ts
CHANGED
@@ -406,11 +406,12 @@ export interface License {
|
|
406
406
|
expiration?: Date;
|
407
407
|
companyName: string;
|
408
408
|
}
|
409
|
+
export interface CubeFilter {
|
410
|
+
cube?: string;
|
411
|
+
axes: string[];
|
412
|
+
}
|
409
413
|
export interface Folder {
|
410
|
-
filters?:
|
411
|
-
cube?: string;
|
412
|
-
axes: string[];
|
413
|
-
};
|
414
|
+
filters?: CubeFilter;
|
414
415
|
name: string;
|
415
416
|
group?: string;
|
416
417
|
icon?: string;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Injector } from '@angular/core';
|
1
2
|
import { ComponentType } from '@angular/cdk/portal';
|
2
3
|
import { Subject } from 'rxjs';
|
3
4
|
import { OpenPolicy } from '../configuration';
|
@@ -31,6 +32,7 @@ export interface NavigationOptions {
|
|
31
32
|
title?: string;
|
32
33
|
help?: string;
|
33
34
|
group?: string;
|
35
|
+
injector?: Injector;
|
34
36
|
policy?: OpenPolicy;
|
35
37
|
expandable?: boolean;
|
36
38
|
}
|
@@ -84,6 +84,19 @@ export declare const STRINGS: {
|
|
84
84
|
ar: {};
|
85
85
|
ru: {};
|
86
86
|
en: {
|
87
|
+
Past: string;
|
88
|
+
Future: string;
|
89
|
+
Verb: string;
|
90
|
+
Adjective: string;
|
91
|
+
AdjectivePlural: string;
|
92
|
+
AnomalyNotification: string;
|
93
|
+
AnalysisSecurityGlobalHelp: string;
|
94
|
+
AnalysisSecurityPositionsHelp: string;
|
95
|
+
AnalysisSecurityPatternsHelp: string;
|
96
|
+
ReceivedAgo: string;
|
97
|
+
IssuedAgo: string;
|
98
|
+
Unlock: string;
|
99
|
+
DescendentOf: string;
|
87
100
|
XAxis: string;
|
88
101
|
Series: string;
|
89
102
|
Steps: string;
|